MCPcopy
hub / github.com/containerd/containerd / Close

Method Close

client/client.go:680–687  ·  view source on GitHub ↗

Close closes the clients connection to containerd

()

Source from the content-addressed store, hash-verified

678
679// Close closes the clients connection to containerd
680func (c *Client) Close() error {
681 c.connMu.Lock()
682 defer c.connMu.Unlock()
683 if c.conn != nil {
684 return c.conn.Close()
685 }
686 return nil
687}
688
689// NamespaceService returns the underlying Namespaces Store
690func (c *Client) NamespaceService() namespaces.Store {

Callers 3

TestClientTTRPC_NewFunction · 0.95
TestClientTTRPC_CloseFunction · 0.95

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
CloseMethod · 0.65

Tested by 3

TestClientTTRPC_NewFunction · 0.76
TestClientTTRPC_CloseFunction · 0.76