()
| 92 | return res, nil |
| 93 | } |
| 94 | func (c Client) ListAllContainers() ([]container.Summary, error) { |
| 95 | var ( |
| 96 | options container.ListOptions |
| 97 | ) |
| 98 | options.All = true |
| 99 | containers, err := c.cli.ContainerList(context.Background(), options) |
| 100 | if err != nil { |
| 101 | return nil, err |
| 102 | } |
| 103 | return containers, nil |
| 104 | } |
| 105 | |
| 106 | func (c Client) CreateNetwork(name string) error { |
| 107 | _, err := c.cli.NetworkCreate(context.Background(), name, network.CreateOptions{ |
no outgoing calls
no test coverage detected