MCPcopy Create free account
hub / github.com/cloudfoundry/garden / Containers

Method Containers

client/client.go:39–51  ·  view source on GitHub ↗
(properties garden.Properties)

Source from the content-addressed store, hash-verified

37}
38
39func (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
53func (client *client) Destroy(handle string) error {
54 err := client.connection.Destroy(handle)

Callers

nothing calls this directly

Calls 2

newContainerFunction · 0.85
ListMethod · 0.65

Tested by

no test coverage detected