MCPcopy Index your code
hub / github.com/docker/cli / Set

Method Set

cli/command/swarm/opts.go:96–104  ·  view source on GitHub ↗

Set parses an external CA option.

(value string)

Source from the content-addressed store, hash-verified

94
95// Set parses an external CA option.
96func (m *ExternalCAOption) Set(value string) error {
97 parsed, err := parseExternalCA(value)
98 if err != nil {
99 return err
100 }
101
102 m.values = append(m.values, parsed)
103 return nil
104}
105
106// Type returns the type of this option.
107func (*ExternalCAOption) Type() string {

Callers 3

TestExternalCAOptionFunction · 0.95

Calls 1

parseExternalCAFunction · 0.85

Tested by 3

TestExternalCAOptionFunction · 0.76