MCPcopy Index your code
hub / github.com/coder/coder / ParseOptions

Method ParseOptions

codersdk/deployment.go:697–707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

695}
696
697func (c SSHConfig) ParseOptions() (map[string]string, error) {
698 m := make(map[string]string)
699 for _, opt := range c.SSHConfigOptions {
700 key, value, err := ParseSSHConfigOption(opt)
701 if err != nil {
702 return nil, err
703 }
704 m[key] = value
705 }
706 return m, nil
707}
708
709// ParseSSHConfigOption parses a single ssh config option into its key/value pair.
710func ParseSSHConfigOption(opt string) (key string, value string, err error) {

Callers 2

ServerMethod · 0.80

Calls 1

ParseSSHConfigOptionFunction · 0.85

Tested by 1