Documentation ¶
Index ¶
- type Container
- type ContainerStatus
- type Runtime
- func (r *Runtime) ContainerDir() string
- func (r *Runtime) ContainerStatus(c *Container) *specs.State
- func (r *Runtime) CreateContainer(c *Container) error
- func (r *Runtime) DeleteContainer(c *Container) error
- func (r *Runtime) Name() string
- func (r *Runtime) Path() string
- func (r *Runtime) StartContainer(c *Container) error
- func (r *Runtime) StopContainer(c *Container) error
- func (r *Runtime) UpdateStatus(c *Container) error
- func (r *Runtime) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container respresents a runtime container.
func NewContainer ¶
func NewContainer(name string, bundlePath string, logPath string, labels map[string]string, sandbox string) (*Container, error)
NewContainer creates a container object.
func (*Container) BundlePath ¶
BundlePath returns the bundlePath of the container.
type ContainerStatus ¶
type ContainerStatus struct { }
ContainerStatus represents the status of a container.
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime stores the information about a oci runtime
func (*Runtime) ContainerDir ¶
ContainerDir returns the path to the base directory for storing container configurations
func (*Runtime) ContainerStatus ¶
ContainerStatus returns the state of a container.
func (*Runtime) CreateContainer ¶
CreateContainer creates a container.
func (*Runtime) DeleteContainer ¶
DeleteContainer deletes a container.
func (*Runtime) StartContainer ¶
StartContainer starts a container.
func (*Runtime) StopContainer ¶
StopContainer stops a container.
func (*Runtime) UpdateStatus ¶
updateStatus refreshes the status of the container.
Click to show internal directories.
Click to hide internal directories.