MCPcopy Create free account
hub / github.com/docker/cli / String

Method String

cli/command/swarm/opts.go:112–119  ·  view source on GitHub ↗

String returns a string repr of this option.

()

Source from the content-addressed store, hash-verified

110
111// String returns a string repr of this option.
112func (m *ExternalCAOption) String() string {
113 externalCAs := make([]string, 0, len(m.values))
114 for _, externalCA := range m.values {
115 repr := fmt.Sprintf("%s: %s", externalCA.Protocol, externalCA.URL)
116 externalCAs = append(externalCAs, repr)
117 }
118 return strings.Join(externalCAs, ", ")
119}
120
121// Value returns the external CAs
122func (m *ExternalCAOption) Value() []*swarm.ExternalCA {

Callers 2

TestExternalCAOptionFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestExternalCAOptionFunction · 0.76