newFormat returns a Format for rendering using a Context.
(source string)
| 198 | |
| 199 | // newFormat returns a Format for rendering using a Context. |
| 200 | func newFormat(source string) formatter.Format { |
| 201 | switch source { |
| 202 | case formatter.PrettyFormatKey: |
| 203 | return serviceInspectPrettyTemplate |
| 204 | default: |
| 205 | return formatter.Format(strings.TrimPrefix(source, formatter.RawFormatKey)) |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | func resolveNetworks(service swarm.Service, getNetwork inspect.GetRefFunc) map[string]string { |
| 210 | networkNames := make(map[string]string) |
no outgoing calls
searching dependent graphs…