Documentation ¶
Index ¶
Constants ¶
View Source
const ( Root = "/var/lib/boss" Extension = "io.boss/container" )
Variables ¶
This section is empty.
Functions ¶
func WithBossConfig ¶
func WithBossConfig(config *Container, image containerd.Image) containerd.NewContainerOpts
WithBossConfig is a containerd.NewContainerOpts for spec and container configuration
Types ¶
type Container ¶
type Container struct { ID string `toml:"id"` Image string `toml:"image"` Resources *Resources `toml:"resources"` GPUs *GPUs `toml:"gpus"` Mounts []Mount `toml:"mounts"` Env []string `toml:"env"` Args []string `toml:"args"` Labels []string `toml:"labels"` Network NetworkType `toml:"network"` Services map[string]Service `toml:"services"` }
type NetworkType ¶
type NetworkType string
const ( Host NetworkType = "host" CNI NetworkType = "cni" None NetworkType = "" )
Click to show internal directories.
Click to hide internal directories.