Documentation ¶
Index ¶
- func DataStore(dataRoot, address string) (string, error)
- func NewClient(ctx context.Context, namespace, address string, opts ...containerd.ClientOpt) (*containerd.Client, context.Context, context.CancelFunc, error)
- func NewClientWithPlatform(ctx context.Context, namespace, address, platform string, ...) (*containerd.Client, context.Context, context.CancelFunc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataStore ¶
DataStore returns a string like "/var/lib/nerdctl/1935db59". "1935db9" is from `$(echo -n "/run/containerd/containerd.sock" | sha256sum | cut -c1-8)` on Windows it will return "%PROGRAMFILES%/nerdctl/1935db59"
func NewClient ¶
func NewClient(ctx context.Context, namespace, address string, opts ...containerd.ClientOpt) (*containerd.Client, context.Context, context.CancelFunc, error)
func NewClientWithPlatform ¶
func NewClientWithPlatform(ctx context.Context, namespace, address, platform string, clientOpts ...containerd.ClientOpt) (*containerd.Client, context.Context, context.CancelFunc, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.