Documentation ¶
Index ¶
- func EditSpec(bundle string, editors ...SpecEditor) error
- func FilterNamespaces(ns []specs.LinuxNamespace, types ...specs.LinuxNamespaceType) []specs.LinuxNamespace
- type Container
- type IoOpts
- type Runc
- func (r *Runc) Delete(ctx context.Context, id string, force bool) error
- func (r *Runc) PrepareBundle(ctx context.Context, image string, id string) (string, func() error, error)
- func (r *Runc) Run(ctx context.Context, id, bundle string, ioOpts IoOpts) error
- func (r *Runc) Spec(ctx context.Context, bundle string) error
- func (r *Runc) State(ctx context.Context, id string) (*Container, error)
- type SpecEditor
- func WithAnnotations(annotations map[string]string) SpecEditor
- func WithCapabilities(caps ...string) SpecEditor
- func WithCgroupPath(cgroupPath, child string) SpecEditor
- func WithHostname(hostname string) SpecEditor
- func WithMountIfNotPresent(mount specs.Mount) SpecEditor
- func WithNamespaces(ns []specs.LinuxNamespace) SpecEditor
- func WithProcessArgs(args ...string) SpecEditor
- func WithProcessCwd(cwd string) SpecEditor
- func WithSelectedNamespaces(ns []specs.LinuxNamespace, filter ...specs.LinuxNamespaceType) SpecEditor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditSpec ¶
func EditSpec(bundle string, editors ...SpecEditor) error
func FilterNamespaces ¶
func FilterNamespaces(ns []specs.LinuxNamespace, types ...specs.LinuxNamespaceType) []specs.LinuxNamespace
Types ¶
type IoOpts ¶
func InheritStdIo ¶
func InheritStdIo() IoOpts
type Runc ¶
func (*Runc) PrepareBundle ¶
type SpecEditor ¶
type SpecEditor func(spec *specs.Spec)
func WithAnnotations ¶
func WithAnnotations(annotations map[string]string) SpecEditor
func WithCapabilities ¶
func WithCapabilities(caps ...string) SpecEditor
func WithCgroupPath ¶
func WithCgroupPath(cgroupPath, child string) SpecEditor
func WithHostname ¶ added in v1.0.1
func WithHostname(hostname string) SpecEditor
func WithMountIfNotPresent ¶
func WithMountIfNotPresent(mount specs.Mount) SpecEditor
func WithNamespaces ¶
func WithNamespaces(ns []specs.LinuxNamespace) SpecEditor
func WithProcessArgs ¶
func WithProcessArgs(args ...string) SpecEditor
func WithProcessCwd ¶
func WithProcessCwd(cwd string) SpecEditor
func WithSelectedNamespaces ¶
func WithSelectedNamespaces(ns []specs.LinuxNamespace, filter ...specs.LinuxNamespaceType) SpecEditor
Click to show internal directories.
Click to hide internal directories.