(properties garden.Properties)
| 37 | } |
| 38 | |
| 39 | func (client *client) Containers(properties garden.Properties) ([]garden.Container, error) { |
| 40 | handles, err := client.connection.List(properties) |
| 41 | if err != nil { |
| 42 | return nil, err |
| 43 | } |
| 44 | |
| 45 | containers := []garden.Container{} |
| 46 | for _, handle := range handles { |
| 47 | containers = append(containers, newContainer(handle, client.connection)) |
| 48 | } |
| 49 | |
| 50 | return containers, nil |
| 51 | } |
| 52 | |
| 53 | func (client *client) Destroy(handle string) error { |
| 54 | err := client.connection.Destroy(handle) |
nothing calls this directly
no test coverage detected