String returns a string repr of this option.
()
| 110 | |
| 111 | // String returns a string repr of this option. |
| 112 | func (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 |
| 122 | func (m *ExternalCAOption) Value() []*swarm.ExternalCA { |
no outgoing calls