MCPcopy Create free account
hub / github.com/docker/secrets-engine / parseArg

Function parseArg

plugins/pass/commands/set.go:152–158  ·  view source on GitHub ↗
(arg string)

Source from the content-addressed store, hash-verified

150}
151
152func parseArg(arg string) (*secret, error) {
153 key, value, found := strings.Cut(arg, "=")
154 if !found {
155 return nil, fmt.Errorf("no key=value pair: %s", arg)
156 }
157 return &secret{id: key, val: value}, nil
158}
159
160func readAllWithContext(ctx context.Context, r io.Reader) ([]byte, error) {
161 var buf []byte

Callers 1

SetCommandFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected