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

Method Create

client/client.go:30–37  ·  view source on GitHub ↗
(spec garden.ContainerSpec)

Source from the content-addressed store, hash-verified

28}
29
30func (client *client) Create(spec garden.ContainerSpec) (garden.Container, error) {
31 handle, err := client.connection.Create(spec)
32 if err != nil {
33 return nil, err
34 }
35
36 return newContainer(handle, client.connection), nil
37}
38
39func (client *client) Containers(properties garden.Properties) ([]garden.Container, error) {
40 handles, err := client.connection.List(properties)

Callers

nothing calls this directly

Calls 2

newContainerFunction · 0.85
CreateMethod · 0.65

Tested by

no test coverage detected