MCPcopy Index your code
hub / github.com/containerd/containerd / Runtime

Method Runtime

client/client.go:254–257  ·  view source on GitHub ↗

Runtime returns the name of the runtime being used

()

Source from the content-addressed store, hash-verified

252
253// Runtime returns the name of the runtime being used
254func (c *Client) Runtime() string {
255 runtime, _ := c.defaultRuntime(context.TODO())
256 return runtime
257}
258
259func (c *Client) defaultRuntime(ctx context.Context) (string, error) {
260 c.defaults.mut.Lock()

Callers

nothing calls this directly

Calls 1

defaultRuntimeMethod · 0.95

Tested by

no test coverage detected