MCPcopy
hub / github.com/containerd/containerd / NamespaceService

Method NamespaceService

client/client.go:690–697  ·  view source on GitHub ↗

NamespaceService returns the underlying Namespaces Store

()

Source from the content-addressed store, hash-verified

688
689// NamespaceService returns the underlying Namespaces Store
690func (c *Client) NamespaceService() namespaces.Store {
691 if c.namespaceStore != nil {
692 return c.namespaceStore
693 }
694 c.connMu.Lock()
695 defer c.connMu.Unlock()
696 return NewNamespaceStoreFromClient(namespacesapi.NewNamespacesClient(c.conn))
697}
698
699// ContainerService returns the underlying container Store
700func (c *Client) ContainerService() containers.Store {

Callers 5

GetLabelMethod · 0.95
TestMainFunction · 0.80
namespaces.goFile · 0.80
reconcileMethod · 0.80

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 2

TestMainFunction · 0.64