MCPcopy
hub / github.com/containers/toolbox / Get

Method Get

src/pkg/podman/container.go:279–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277}
278
279func (containers *Containers) Get() Container {
280 if containers.i < 1 {
281 panic("called Containers.Get() without calling Containers.Next()")
282 }
283
284 container := containers.data[containers.i-1]
285 return &container
286}
287
288func (containers *Containers) Next() bool {
289 available := containers.i < len(containers.data)

Callers 1

getContainersFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected