MCPcopy Create free account
hub / github.com/buildertools/entropy / processClientTarget

Function processClientTarget

client.go:127–141  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

125}
126
127func processClientTarget(c *cli.Context) (isUnix bool, target string, err error) {
128 for _, v := range c.GlobalStringSlice(`host`) {
129 if strings.HasPrefix(v, "tcp://") {
130 isUnix = false
131 target = strings.TrimPrefix(v, "tcp://")
132 err = nil
133 }
134 if strings.HasPrefix(v, "unix://") {
135 isUnix = true
136 target = strings.TrimPrefix(v, "unix://")
137 err = nil
138 }
139 }
140 return
141}

Callers 4

ClientCreatePolicyFunction · 0.85
RequestPolicyListFunction · 0.85
RequestInjectorListFunction · 0.85
DeletePolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected