MCPcopy
hub / github.com/containerd/containerd / Labels

Method Labels

client/sandbox.go:71–78  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

69}
70
71func (s *sandboxClient) Labels(ctx context.Context) (map[string]string, error) {
72 sandbox, err := s.client.SandboxStore().Get(ctx, s.ID())
73 if err != nil {
74 return nil, err
75 }
76
77 return sandbox.Labels, nil
78}
79
80func (s *sandboxClient) Start(ctx context.Context) error {
81 _, err := s.client.SandboxController(s.metadata.Sandboxer).Start(ctx, s.ID())

Callers

nothing calls this directly

Calls 3

IDMethod · 0.95
GetMethod · 0.65
SandboxStoreMethod · 0.65

Tested by

no test coverage detected