MCPcopy
hub / github.com/containerd/containerd / LeasesService

Method LeasesService

client/client.go:779–786  ·  view source on GitHub ↗

LeasesService returns the underlying Leases Client

()

Source from the content-addressed store, hash-verified

777
778// LeasesService returns the underlying Leases Client
779func (c *Client) LeasesService() leases.Manager {
780 if c.leasesService != nil {
781 return c.leasesService
782 }
783 c.connMu.Lock()
784 defer c.connMu.Unlock()
785 return leasesproxy.NewLeaseManager(leasesapi.NewLeasesClient(c.conn))
786}
787
788// HealthService returns the underlying GRPC HealthClient
789func (c *Client) HealthService() grpc_health_v1.HealthClient {

Callers 11

WithLeaseMethod · 0.95
testExportImportFunction · 0.80
TestLeaseResourcesFunction · 0.80
ensureLeaseExistMethod · 0.80
RunPodSandboxMethod · 0.80
RemovePodSandboxMethod · 0.80
leases.goFile · 0.80
prune.goFile · 0.80
unmount.goFile · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 4

testExportImportFunction · 0.64
TestLeaseResourcesFunction · 0.64