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

Method Labels

client/container.go:139–145  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

137}
138
139func (c *container) Labels(ctx context.Context) (map[string]string, error) {
140 r, err := c.get(ctx)
141 if err != nil {
142 return nil, err
143 }
144 return r.Labels, nil
145}
146
147func (c *container) SetLabels(ctx context.Context, labels map[string]string) (map[string]string, error) {
148 ctx, span := tracing.StartSpan(ctx, "container.SetLabels",

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected