Documentation
¶
Index ¶
- type Manager
- func (m *Manager) Close() error
- func (m *Manager) CreateContainer(ctx context.Context, opts containerd.ContainerOptions) (string, error)
- func (m *Manager) CreateVolume(ctx context.Context, name string, opts map[string]string) error
- func (m *Manager) DeleteVolume(ctx context.Context, name string) error
- func (m *Manager) GetContainerMetrics(ctx context.Context, containerID string) (*containerd.ContainerStats, error)
- func (m *Manager) ListContainers(ctx context.Context) ([]*containerd.Container, error)
- func (m *Manager) ListVolumes(ctx context.Context) ([]*containerd.Volume, error)
- func (m *Manager) PullImage(ctx context.Context, image string) error
- func (m *Manager) StopContainer(ctx context.Context, containerID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager implements the ContainerRuntime interface for Docker
func NewManager ¶
NewManager creates a new Docker manager
func (*Manager) CreateContainer ¶
func (m *Manager) CreateContainer(ctx context.Context, opts containerd.ContainerOptions) (string, error)
CreateContainer creates a new container
func (*Manager) CreateVolume ¶
CreateVolume creates a new volume
func (*Manager) DeleteVolume ¶
DeleteVolume deletes a volume
func (*Manager) GetContainerMetrics ¶
func (m *Manager) GetContainerMetrics(ctx context.Context, containerID string) (*containerd.ContainerStats, error)
GetContainerMetrics returns metrics for a container
func (*Manager) ListContainers ¶
ListContainers returns a list of containers
func (*Manager) ListVolumes ¶
ListVolumes returns a list of volumes
Click to show internal directories.
Click to hide internal directories.