Documentation
¶
Index ¶
- func GetBaseDir(rootDir string) string
- type Container
- func (c *Container) Command() []string
- func (c *Container) Delete() error
- func (c *Container) IsCreated() bool
- func (c *Container) IsExited() bool
- func (c *Container) IsStarted() bool
- func (c *Container) Mount() error
- func (c *Container) Refresh() error
- func (c *Container) Rootfs() string
- func (c *Container) Unmount() error
- type ContainerOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBaseDir ¶
Types ¶
type Container ¶
type Container struct { ID string BaseDir string Image *image.Image Config *runtimespec.Spec Opts ContainerOpts ExposedPorts []network.ExposedPort CreatedAt time.Time StartedAt time.Time ExitedAt time.Time LogFilePath string UseFuse bool }
func (*Container) Command ¶
Command returns the container's command, which is what gets executed in the container when it starts.
func (*Container) IsCreated ¶
IsCreated returns `true` when the container has been created, and `false` otherwise.
func (*Container) IsExited ¶
IsExited returns `true` when the container has exited, and `false` otherwise.
func (*Container) IsStarted ¶
IsStarted returns `true` when the container has started, and `false` otherwise.
func (*Container) Mount ¶
Mount creates a bundle configuration for the container and mounts its root filesystem.
Click to show internal directories.
Click to hide internal directories.