Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerdRuntime ¶
type ContainerdRuntime struct {
// contains filtered or unexported fields
}
ContainerdRuntime implements runtime.Runtime using containerd.
func New ¶
func New(_ context.Context) (*ContainerdRuntime, error)
New creates a ContainerdRuntime connected to the local containerd socket.
func (*ContainerdRuntime) Close ¶
func (r *ContainerdRuntime) Close() error
Close releases the containerd client.
func (*ContainerdRuntime) Run ¶
func (r *ContainerdRuntime) Run(ctx context.Context, opts runtime.RunOptions) (runtime.Container, error)
Run pulls the image, creates a container and task, sets up CNI networking, and starts the task.
Click to show internal directories.
Click to hide internal directories.