container

package
v0.0.0-...-2440f66 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLowerDirs

func GetLowerDirs(mountpoint string) ([]string, error)

Types

type EngineType

type EngineType string
const (
	EngineUnknown EngineType = "unknown"
	EngineDocker  EngineType = "docker"
	EnginePouch   EngineType = "pouch"
)

type InspectResult

type InspectResult struct {
	LowerDirs string
	UpperDir  string
	Image     string
	Mounts    []Mount
	Pid       int
}

type Manager

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

func NewManager

func NewManager(cfg *config.Runtime) (*Manager, error)

func (*Manager) Inspect

func (m *Manager) Inspect(ctx context.Context, containerIDWithType string) (*InspectResult, error)

func (*Manager) Pause

func (m *Manager) Pause(ctx context.Context, containerIDWithType string) error

func (*Manager) UnPause

func (m *Manager) UnPause(ctx context.Context, containerIDWithType string) error

type Mount

type Mount struct {
	Destination string
	Source      string
}

Jump to

Keyboard shortcuts

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