runtime

package
v0.0.0-...-ac6e8c9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseSpec

func BaseSpec(rootfs string, rootless bool) (*runtimespec.Spec, error)

func LoadSpec

func LoadSpec(bundleDir string) (runtimespec.Spec, error)

Types

type BaseContainer

type BaseContainer struct {
	Spec          runtimespec.Spec
	State         runtimespec.State
	CreatedAt     time.Time
	BaseDir       string
	StateFilePath string
}

func Load

func Load(rootDir string, id string) (*BaseContainer, error)

func LoadWithBundleConfig

func LoadWithBundleConfig(rootDir string, id string) (*BaseContainer, error)

func New

func New(rootDir string, id string, bundleDir string) (*BaseContainer, error)

func (*BaseContainer) Destroy

func (c *BaseContainer) Destroy() error

func (*BaseContainer) ID

func (c *BaseContainer) ID() string

func (*BaseContainer) IsCreated

func (c *BaseContainer) IsCreated() bool

func (*BaseContainer) IsRunning

func (c *BaseContainer) IsRunning() bool

func (*BaseContainer) IsStopped

func (c *BaseContainer) IsStopped() bool

func (*BaseContainer) Rootfs

func (c *BaseContainer) Rootfs() string

func (*BaseContainer) Save

func (c *BaseContainer) Save() error

func (*BaseContainer) SaveAsCreated

func (c *BaseContainer) SaveAsCreated() error

func (*BaseContainer) SetPid

func (c *BaseContainer) SetPid(pid int)

func (*BaseContainer) UpdateStatus

func (c *BaseContainer) UpdateStatus(newStatus string) error

Jump to

Keyboard shortcuts

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