MCPcopy
hub / github.com/containerd/containerd / Client

Struct Client

client/client.go:221–235  ·  view source on GitHub ↗

Client is the client to interact with containerd and its various services using a uniform interface

Source from the content-addressed store, hash-verified

219// Client is the client to interact with containerd and its various services
220// using a uniform interface
221type Client struct {
222 services
223 connMu sync.Mutex
224 conn *grpc.ClientConn
225 defaultns string
226 platform platforms.MatchComparer
227 connector func() (*grpc.ClientConn, error)
228
229 // this should only be accessed via default*() functions
230 defaults struct {
231 runtime string
232 sandboxer string
233 mut sync.Mutex
234 }
235}
236
237// Reconnect re-establishes the GRPC connection to the containerd daemon
238func (c *Client) Reconnect() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected