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 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.