Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime interface {
CreateContainer(
id container.ID,
bundleDir string,
logfile string,
exitfile string,
attachfile string,
stdin bool,
stdinOnce bool,
timeout time.Duration,
) (pid int, err error)
StartContainer(id container.ID) error
KillContainer(id container.ID, sig os.Signal) error
DeleteContainer(id container.ID) error
ContainerState(container.ID) (StateResp, error)
}
Runtime 代表一个 OCI container runtime 接口
type RuntimeSpec ¶
type RuntimeSpec []byte
func NewSpec ¶
func NewSpec(options SpecOptions) (RuntimeSpec, error)
type SpecOptions ¶
Click to show internal directories.
Click to hide internal directories.