Documentation ¶
Index ¶
- Constants
- func CompleteSpec(ctx context.Context, r *libpod.Runtime, s *specgen.SpecGenerator) error
- func GenerateNamespaceContainerOpts(s *specgen.SpecGenerator, rt *libpod.Runtime) ([]libpod.CtrCreateOption, error)
- func GetNamespaceOptions(ns []string) ([]libpod.PodCreateOption, error)
- func InitFSMounts(mounts []spec.Mount) error
- func MakeContainer(rt *libpod.Runtime, s *specgen.SpecGenerator) (*libpod.Container, error)
- func MakePod(p *specgen.PodSpecGenerator, rt *libpod.Runtime) (*libpod.Pod, error)
- func SpecGenToOCI(s *specgen.SpecGenerator, rt *libpod.Runtime, newImage *image.Image) (*spec.Spec, error)
- func SupercedeUserMounts(mounts []spec.Mount, configMount []spec.Mount) []spec.Mount
Constants ¶
View Source
const ( // TypeBind is the type for mounting host dir TypeBind = "bind" // TypeVolume is the type for named volumes TypeVolume = "volume" // TypeTmpfs is the type for mounting tmpfs TypeTmpfs = "tmpfs" )
Variables ¶
This section is empty.
Functions ¶
func CompleteSpec ¶
func GenerateNamespaceContainerOpts ¶
func GenerateNamespaceContainerOpts(s *specgen.SpecGenerator, rt *libpod.Runtime) ([]libpod.CtrCreateOption, error)
func GetNamespaceOptions ¶
func GetNamespaceOptions(ns []string) ([]libpod.PodCreateOption, error)
GetNamespaceOptions transforms a slice of kernel namespaces into a slice of pod create options. Currently, not all kernel namespaces are supported, and they will be returned in an error
func InitFSMounts ¶
func MakeContainer ¶
MakeContainer creates a container based on the SpecGenerator
func SpecGenToOCI ¶
func SupercedeUserMounts ¶
Supersede existing mounts in the spec with new, user-specified mounts. TODO: Should we unmount subtree mounts? E.g., if /tmp/ is mounted by one mount, and we already have /tmp/a and /tmp/b, should we remove the /tmp/a and /tmp/b mounts in favor of the more general /tmp?
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.