bundlerules

package
v0.0.0-...-cf22b21 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CpuPeriod uint64 = 100000
View Source
var MinCpuQuota uint64 = 1000

Functions

This section is empty.

Types

type Base

type Base struct {
	PrivilegedBase   goci.Bndl
	UnprivilegedBase goci.Bndl
}

func (Base) Apply

func (r Base) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec, _ string) (goci.Bndl, error)

type CGroupPath

type CGroupPath struct {
	Path string
}

func (CGroupPath) Apply

func (r CGroupPath) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec, _ string) (goci.Bndl, error)

type Env

type Env struct {
}

func (Env) Apply

func (r Env) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec, _ string) (goci.Bndl, error)

type Hostname

type Hostname struct {
}

func (Hostname) Apply

func (r Hostname) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec, _ string) (goci.Bndl, error)

type Limits

type Limits struct {
	CpuQuotaPerShare uint64
	BlockIOWeight    uint16
	TCPMemoryLimit   int64
}

func (Limits) Apply

func (l Limits) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec, _ string) (goci.Bndl, error)

type MkdirChowner

type MkdirChowner struct {
	Command       func(rootFSPathFile string, uid, gid int, mode os.FileMode, recreate bool, paths ...string) *exec.Cmd
	CommandRunner commandrunner.CommandRunner
}

func (MkdirChowner) MkdirAs

func (m MkdirChowner) MkdirAs(rootFSPathFile string, uid, gid int, mode os.FileMode, recreate bool, paths ...string) error

type Mounts

type Mounts struct {
	MountPointChecker  rundmc.MountPointChecker
	MountOptionsGetter rundmc.MountOptionsGetter
}

func (Mounts) Apply

func (b Mounts) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec, _ string) (goci.Bndl, error)

type Namespaces

type Namespaces struct{}

func (Namespaces) Apply

func (n Namespaces) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec, containerDir string) (goci.Bndl, error)

type RootFS

type RootFS struct {
}

func (RootFS) Apply

func (r RootFS) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec, _ string) (goci.Bndl, error)

type Windows

type Windows struct{}

func (Windows) Apply

func (w Windows) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec, _ string) (goci.Bndl, error)

Jump to

Keyboard shortcuts

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