specbuilder

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2018 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootUser = specs.User{
	UID: 0,
	GID: 0,
}

Functions

func AllowSyscall

func AllowSyscall(syscall string, args ...specs.LinuxSeccompArg) specs.LinuxSyscall

func Apply

func Apply(spec *specs.Spec, opts ...SpecOption)

func Build

func Build(opts ...SpecOption) *specs.Spec

func DefaultPrivilegedCapabilities

func DefaultPrivilegedCapabilities() []string

func DefaultSeccomp

func DefaultSeccomp() *specs.LinuxSeccomp

func DefaultSpec

func DefaultSpec() *specs.Spec

Types

type SpecOption

type SpecOption func(*specs.Spec)

func WithCapabilities

func WithCapabilities(capabilities []string) SpecOption

func WithMemoryLimit

func WithMemoryLimit(limit int64) SpecOption

func WithMounts

func WithMounts(mounts []specs.Mount) SpecOption

func WithNamespace

func WithNamespace(namespace specs.LinuxNamespaceType) SpecOption

func WithOpenFileLimit

func WithOpenFileLimit(limit uint64) SpecOption

func WithPidLimit

func WithPidLimit(limit int64) SpecOption

func WithPrivileged

func WithPrivileged() SpecOption

func WithProcess

func WithProcess(
	executable string,
	args []string,
	environment []string,
	cwd string,
) SpecOption

func WithRootFilesystem

func WithRootFilesystem(path string) SpecOption

func WithUser

func WithUser(user specs.User) SpecOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL