Documentation
¶
Overview ¶
Package ctrhelper provides helpers for container-related APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerdInstanceHelper ¶
func ContainerdInstanceHelper(ctx context.Context, req *common.ContainerdInstance) (context.Context, context.Context, *containerdapi.Client, error)
ContainerdInstanceHelper helps to create containerd client and context from the given ContainerdInstance.
This function returns:
- inbound context annotated with the appropriate containerd namespace
- detached (context.Background()) context with the appropriate containerd namespace
- containerd client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.