Documentation
¶
Index ¶
- func FilterNamespaces(ns []specs.LinuxNamespace, types ...specs.LinuxNamespaceType) []specs.LinuxNamespace
- type Container
- type IoOpts
- type Runc
- 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 WithNamespace(ns specs.LinuxNamespace) 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 FilterNamespaces ¶
func FilterNamespaces(ns []specs.LinuxNamespace, types ...specs.LinuxNamespaceType) []specs.LinuxNamespace
Types ¶
type IoOpts ¶
func InheritStdIo ¶
func InheritStdIo() IoOpts
type Runc ¶
type Runc interface {
State(ctx context.Context, id string) (*Container, error)
Spec(ctx context.Context, bundle string) error
EditSpec(ctx context.Context, bundle string, editors ...SpecEditor) error
Run(ctx context.Context, id, bundle string, ioOpts IoOpts) error
Delete(ctx context.Context, id string, force bool) error
PrepareBundle(ctx context.Context, image string, id string) (string, func() error, error)
}
type SpecEditor ¶
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 WithNamespace ¶ added in v1.1.17
func WithNamespace(ns specs.LinuxNamespace) 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.