Documentation ¶
Index ¶
- func BaseSpec(rootfs string, rootless bool) (*runtimespec.Spec, error)
- func LoadSpec(bundleDir string) (runtimespec.Spec, error)
- type BaseContainer
- func (c *BaseContainer) Destroy() error
- func (c *BaseContainer) ID() string
- func (c *BaseContainer) IsCreated() bool
- func (c *BaseContainer) IsRunning() bool
- func (c *BaseContainer) IsStopped() bool
- func (c *BaseContainer) Rootfs() string
- func (c *BaseContainer) Save() error
- func (c *BaseContainer) SaveAsCreated() error
- func (c *BaseContainer) SetPid(pid int)
- func (c *BaseContainer) UpdateStatus(newStatus string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseContainer ¶
type BaseContainer struct { Spec runtimespec.Spec State runtimespec.State CreatedAt time.Time BaseDir string StateFilePath string }
func LoadWithBundleConfig ¶
func LoadWithBundleConfig(rootDir string, id 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
Click to show internal directories.
Click to hide internal directories.