Documentation ¶
Index ¶
- func GetNewClient(address string, namespace string) (*containerd.Client, error)
- func GetNewContainerdRuntime(config libruntime.RuntimeConfig, startServer bool) (libruntime.Runtime, error)
- func SetupNewServer(config server.Config) (*server.Server, error)
- type ContainerdRuntime
- func (cr *ContainerdRuntime) Create(ctx context.Context, containerName, imageName string, specs *runtimespecs.Spec) (*libruntime.Container, error)
- func (cr *ContainerdRuntime) Delete(ctx context.Context, ctr *libruntime.Container) error
- func (c ContainerdRuntime) Exec(ctx context.Context, ctr libruntime.Container, cmd []string) error
- func (cr *ContainerdRuntime) GetContainer(ctx context.Context, containerName string) (*libruntime.Container, error)
- func (cr *ContainerdRuntime) Pull(ctx context.Context, image string) (libruntime.Image, error)
- func (cr *ContainerdRuntime) RemoveImage(ctx context.Context, image string) error
- func (cr *ContainerdRuntime) Run(ctx context.Context, containerName, imageName string, specs *runtimespecs.Spec) (<-chan interface{}, *libruntime.Container, error)
- func (cr *ContainerdRuntime) Runnable(ctx context.Context, ctr *libruntime.Container) error
- func (cr *ContainerdRuntime) Start(ctx context.Context, ctr *libruntime.Container) error
- func (cr *ContainerdRuntime) Stop(ctx context.Context, ctr *libruntime.Container) error
- func (cr *ContainerdRuntime) Version(ctx context.Context) string
- func (cr *ContainerdRuntime) Wait(ctx context.Context, ctr *libruntime.Container) (<-chan interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNewClient ¶
func GetNewClient(address string, namespace string) (*containerd.Client, error)
func GetNewContainerdRuntime ¶
func GetNewContainerdRuntime(config libruntime.RuntimeConfig, startServer bool) (libruntime.Runtime, error)
GetNewContainerdRuntime creates new instance of containerd test setup
Types ¶
type ContainerdRuntime ¶
type ContainerdRuntime struct {
// contains filtered or unexported fields
}
ContainerdRuntime implements all containerd funtions
func (*ContainerdRuntime) Create ¶
func (cr *ContainerdRuntime) Create(ctx context.Context, containerName, imageName string, specs *runtimespecs.Spec) (*libruntime.Container, error)
Create creates the container from given image.
func (*ContainerdRuntime) Delete ¶
func (cr *ContainerdRuntime) Delete(ctx context.Context, ctr *libruntime.Container) error
Delete the container from filesystem
func (ContainerdRuntime) Exec ¶
func (c ContainerdRuntime) Exec(ctx context.Context, ctr libruntime.Container, cmd []string) error
func (*ContainerdRuntime) GetContainer ¶
func (cr *ContainerdRuntime) GetContainer(ctx context.Context, containerName string) (*libruntime.Container, error)
GetContainer return the container, if it exists.
func (*ContainerdRuntime) Pull ¶
func (cr *ContainerdRuntime) Pull(ctx context.Context, image string) (libruntime.Image, error)
Pull the image from remote registry.
func (*ContainerdRuntime) RemoveImage ¶
func (cr *ContainerdRuntime) RemoveImage(ctx context.Context, image string) error
RemoveImage from remote registry.
func (*ContainerdRuntime) Run ¶
func (cr *ContainerdRuntime) Run(ctx context.Context, containerName, imageName string, specs *runtimespecs.Spec) (<-chan interface{}, *libruntime.Container, error)
Run creates and run the task (container instance)
func (*ContainerdRuntime) Runnable ¶
func (cr *ContainerdRuntime) Runnable(ctx context.Context, ctr *libruntime.Container) error
func (*ContainerdRuntime) Start ¶
func (cr *ContainerdRuntime) Start(ctx context.Context, ctr *libruntime.Container) error
func (*ContainerdRuntime) Stop ¶
func (cr *ContainerdRuntime) Stop(ctx context.Context, ctr *libruntime.Container) error
Stop the task running instance of container
func (*ContainerdRuntime) Version ¶
func (cr *ContainerdRuntime) Version(ctx context.Context) string
Version of containerd
func (*ContainerdRuntime) Wait ¶
func (cr *ContainerdRuntime) Wait(ctx context.Context, ctr *libruntime.Container) (<-chan interface{}, error)
Click to show internal directories.
Click to hide internal directories.