SwarmAPI defines the API for Docker Swarm
| 105 | |
| 106 | // SwarmAPI defines the API for Docker Swarm |
| 107 | type SwarmAPI interface { |
| 108 | Node(id string) (*swarm.Node, error) |
| 109 | NodeChangeAvailability(nodeID string, availability swarm.NodeAvailability) error |
| 110 | Nodes() ([]swarm.Node, error) |
| 111 | NodeTasks(nodeID string) ([]swarm.Task, error) |
| 112 | ResolveNode(id string) (string, error) |
| 113 | ResolveService(id string) (string, error) |
| 114 | Service(id string) (*swarm.Service, error) |
| 115 | ServiceLogs(id string, since string, withTimeStamps bool) (io.ReadCloser, error) |
| 116 | Services() ([]swarm.Service, error) |
| 117 | ServiceRemove(id string) error |
| 118 | ServiceScale(id string, replicas uint64) error |
| 119 | ServiceTasks(services ...string) ([]swarm.Task, error) |
| 120 | ServiceUpdate(id string) error |
| 121 | Stacks() ([]Stack, error) |
| 122 | StackConfigs(stack string) ([]swarm.Config, error) |
| 123 | StackNetworks(stack string) ([]network.Inspect, error) |
| 124 | StackRemove(id string) error |
| 125 | StackSecrets(stack string) ([]swarm.Secret, error) |
| 126 | StackTasks(stack string) ([]swarm.Task, error) |
| 127 | Task(id string) (swarm.Task, error) |
| 128 | } |
| 129 | |
| 130 | // Stats holds runtime stats for a container |
| 131 | type Stats struct { |
no outgoing calls
no test coverage detected