NamespaceService returns the underlying Namespaces Store
()
| 688 | |
| 689 | // NamespaceService returns the underlying Namespaces Store |
| 690 | func (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 |
| 700 | func (c *Client) ContainerService() containers.Store { |