bundlerules

package
v0.0.0-...-92b327a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

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) (goci.Bndl, error)

type CGroupPath

type CGroupPath struct {
	Path string
}

func (CGroupPath) Apply

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

type Env

type Env struct {
}

func (Env) Apply

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

type Hostname

type Hostname struct {
}

func (Hostname) Apply

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

type KernelParameter

type KernelParameter struct {
	// contains filtered or unexported fields
}

func NewKernelParameter

func NewKernelParameter(sysctl Sysctl, key string, value uint32) *KernelParameter

func (*KernelParameter) Apply

func (r *KernelParameter) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec) (goci.Bndl, error)

type Limits

type Limits struct {
	CpuQuotaPerShare uint64
	BlockIOWeight    uint16
	DisableSwapLimit bool
}

func (Limits) Apply

func (l Limits) Apply(bndl goci.Bndl, spec spec.DesiredContainerSpec) (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 {
	// contains filtered or unexported fields
}

func NewMounts

func NewMounts(logger lager.Logger, mountOptionsGetter rundmc.MountOptionsGetter) Mounts

func (Mounts) Apply

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

type Namespaces

type Namespaces struct{}

func (Namespaces) Apply

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

type RootFS

type RootFS struct {
}

func (RootFS) Apply

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

type Sysctl

type Sysctl interface {
	Get(key string) (uint32, error)
}

type Windows

type Windows struct{}

func (Windows) Apply

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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