containermanager

package
v3.1.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Overview

Package containermanager defines the operations on the remote instance's CRI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerdService

type ContainerdService struct {
	// contains filtered or unexported fields
}

ContainerdService is a ContainerManager service implementation for containerd.

func NewContainerdService

func NewContainerdService(sshClient ssh.Interface, scope scope.KKInstanceScope, instanceScope *scope.InstanceScope) *ContainerdService

NewContainerdService returns a new ContainerdService given the remote instance container manager client.

func (*ContainerdService) Get

func (s *ContainerdService) Get(timeout time.Duration) error

Get gets the binary of containerd and related components and copy them to the remote instance.

func (*ContainerdService) Install

func (s *ContainerdService) Install() error

Install installs the container manager and related components.

func (*ContainerdService) IsExist

func (s *ContainerdService) IsExist() bool

IsExist returns true if the container manager is installed.

func (*ContainerdService) Type

func (s *ContainerdService) Type() string

Type returns the type containerd of the container manager.

func (*ContainerdService) Version

func (s *ContainerdService) Version() string

Version returns the version of the container manager.

type DockerService

type DockerService struct {
	// contains filtered or unexported fields
}

DockerService is a ContainerManager service implementation for docker.

func NewDockerService

func NewDockerService(sshClient ssh.Interface, scope scope.KKInstanceScope, instanceScope *scope.InstanceScope) *DockerService

NewDockerService returns a new DockerService given the remote instance container manager client.

func (*DockerService) CRIDockerdVersion

func (d *DockerService) CRIDockerdVersion() string

CRIDockerdVersion returns the version of the cri-dockerd.

func (*DockerService) Get

func (d *DockerService) Get(timeout time.Duration) error

Get gets the binary of docker and related components and copy them to the remote instance.

func (*DockerService) Install

func (d *DockerService) Install() error

Install installs the container manager and related components.

func (*DockerService) IsExist

func (d *DockerService) IsExist() bool

IsExist returns true if the container manager is installed.

func (*DockerService) Type

func (d *DockerService) Type() string

Type returns the type docker of the container manager.

func (*DockerService) Version

func (d *DockerService) Version() string

Version returns the version of the container manager.

type Service

type Service interface {
	Type() string
	Version() string
	IsExist() bool
	Get(timeout time.Duration) error
	Install() error
}

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together.

func NewService

func NewService(sshClient ssh.Interface, scope scope.KKInstanceScope, instanceScope *scope.InstanceScope) Service

NewService returns a new service given the remote instance container manager client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL