grpc

package
v0.0.0-...-ae1ea3c Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package grpc is a generated protocol buffer package.

It is generated from these files:

agent.proto
oci.proto

It has these top-level messages:

CreateContainerRequest
StartContainerRequest
RemoveContainerRequest
NewProcessResponse
ExecProcessRequest
SignalProcessRequest
WaitProcessRequest
WaitProcessResponse
WriteStreamRequest
WriteStreamResponse
ReadStreamRequest
ReadStreamResponse
CloseStdinRequest
TtyWinResizeRequest
CreateSandboxRequest
DestroySandboxRequest
IPAddress
Interface
Route
AddInterfaceRequest
RemoveInterfaceRequest
UpdateInterfaceRequest
RouteRequest
OnlineCPUMemRequest
Storage
StringUser
Spec
Process
Box
User
LinuxCapabilities
POSIXRlimit
Mount
Root
Hooks
Hook
Linux
Windows
Solaris
LinuxIDMapping
LinuxNamespace
LinuxDevice
LinuxResources
LinuxMemory
LinuxCPU
LinuxWeightDevice
LinuxThrottleDevice
LinuxBlockIO
LinuxPids
LinuxDeviceCgroup
LinuxNetwork
LinuxHugepageLimit
LinuxInterfacePriority
LinuxSeccomp
LinuxSeccompArg
LinuxSyscall
LinuxIntelRdt

Index

Constants

This section is empty.

Variables

View Source
var IPFamily_name = map[int32]string{
	0: "v4",
	1: "v6",
}
View Source
var IPFamily_value = map[string]int32{
	"v4": 0,
	"v6": 1,
}
View Source
var UpdateType_name = map[int32]string{
	0: "None",
	1: "AddIP",
	2: "RemoveIP",
	4: "Name",
	8: "MTU",
}
View Source
var UpdateType_value = map[string]int32{
	"None":     0,
	"AddIP":    1,
	"RemoveIP": 2,
	"Name":     4,
	"MTU":      8,
}

Functions

func GRPCtoOCI

func GRPCtoOCI(grpcSpec *Spec) (*specs.Spec, error)

func RegisterAgentServiceServer

func RegisterAgentServiceServer(s *grpc1.Server, srv AgentServiceServer)

Types

type AddInterfaceRequest

type AddInterfaceRequest struct {
	Interface *Interface `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"`
}

func (*AddInterfaceRequest) Descriptor

func (*AddInterfaceRequest) Descriptor() ([]byte, []int)

func (*AddInterfaceRequest) GetInterface

func (m *AddInterfaceRequest) GetInterface() *Interface

func (*AddInterfaceRequest) ProtoMessage

func (*AddInterfaceRequest) ProtoMessage()

func (*AddInterfaceRequest) Reset

func (m *AddInterfaceRequest) Reset()

func (*AddInterfaceRequest) String

func (m *AddInterfaceRequest) String() string

type AgentServiceClient

type AgentServiceClient interface {
	// execution
	CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	StartContainer(ctx context.Context, in *StartContainerRequest, opts ...grpc1.CallOption) (*NewProcessResponse, error)
	// RemoveContainer will tear down an existing container by forcibly terminating
	// all processes running inside that container and releasing all internal
	// resources associated with it.
	// RemoveContainer will wait for all processes termination before returning.
	// If any process can not be killed or if it can not be killed after
	// the RemoveContainerRequest timeout, RemoveContainer will return an error.
	RemoveContainer(ctx context.Context, in *RemoveContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	ExecProcess(ctx context.Context, in *ExecProcessRequest, opts ...grpc1.CallOption) (*NewProcessResponse, error)
	SignalProcess(ctx context.Context, in *SignalProcessRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	WaitProcess(ctx context.Context, in *WaitProcessRequest, opts ...grpc1.CallOption) (*WaitProcessResponse, error)
	// stdio
	WriteStdin(ctx context.Context, in *WriteStreamRequest, opts ...grpc1.CallOption) (*WriteStreamResponse, error)
	ReadStdout(ctx context.Context, in *ReadStreamRequest, opts ...grpc1.CallOption) (*ReadStreamResponse, error)
	ReadStderr(ctx context.Context, in *ReadStreamRequest, opts ...grpc1.CallOption) (*ReadStreamResponse, error)
	CloseStdin(ctx context.Context, in *CloseStdinRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	TtyWinResize(ctx context.Context, in *TtyWinResizeRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	// networking
	AddInterface(ctx context.Context, in *AddInterfaceRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	RemoveInterface(ctx context.Context, in *RemoveInterfaceRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	UpdateInterface(ctx context.Context, in *UpdateInterfaceRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	AddRoute(ctx context.Context, in *RouteRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	RemoveRoute(ctx context.Context, in *RouteRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	// misc (TODO: some rpcs can be replaced by hyperstart-exec)
	CreateSandbox(ctx context.Context, in *CreateSandboxRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	DestroySandbox(ctx context.Context, in *DestroySandboxRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
	OnlineCPUMem(ctx context.Context, in *OnlineCPUMemRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error)
}

func NewAgentServiceClient

func NewAgentServiceClient(cc *grpc1.ClientConn) AgentServiceClient

type AgentServiceServer

type AgentServiceServer interface {
	// execution
	CreateContainer(context.Context, *CreateContainerRequest) (*google_protobuf2.Empty, error)
	StartContainer(context.Context, *StartContainerRequest) (*NewProcessResponse, error)
	// RemoveContainer will tear down an existing container by forcibly terminating
	// all processes running inside that container and releasing all internal
	// resources associated with it.
	// RemoveContainer will wait for all processes termination before returning.
	// If any process can not be killed or if it can not be killed after
	// the RemoveContainerRequest timeout, RemoveContainer will return an error.
	RemoveContainer(context.Context, *RemoveContainerRequest) (*google_protobuf2.Empty, error)
	ExecProcess(context.Context, *ExecProcessRequest) (*NewProcessResponse, error)
	SignalProcess(context.Context, *SignalProcessRequest) (*google_protobuf2.Empty, error)
	WaitProcess(context.Context, *WaitProcessRequest) (*WaitProcessResponse, error)
	// stdio
	WriteStdin(context.Context, *WriteStreamRequest) (*WriteStreamResponse, error)
	ReadStdout(context.Context, *ReadStreamRequest) (*ReadStreamResponse, error)
	ReadStderr(context.Context, *ReadStreamRequest) (*ReadStreamResponse, error)
	CloseStdin(context.Context, *CloseStdinRequest) (*google_protobuf2.Empty, error)
	TtyWinResize(context.Context, *TtyWinResizeRequest) (*google_protobuf2.Empty, error)
	// networking
	AddInterface(context.Context, *AddInterfaceRequest) (*google_protobuf2.Empty, error)
	RemoveInterface(context.Context, *RemoveInterfaceRequest) (*google_protobuf2.Empty, error)
	UpdateInterface(context.Context, *UpdateInterfaceRequest) (*google_protobuf2.Empty, error)
	AddRoute(context.Context, *RouteRequest) (*google_protobuf2.Empty, error)
	RemoveRoute(context.Context, *RouteRequest) (*google_protobuf2.Empty, error)
	// misc (TODO: some rpcs can be replaced by hyperstart-exec)
	CreateSandbox(context.Context, *CreateSandboxRequest) (*google_protobuf2.Empty, error)
	DestroySandbox(context.Context, *DestroySandboxRequest) (*google_protobuf2.Empty, error)
	OnlineCPUMem(context.Context, *OnlineCPUMemRequest) (*google_protobuf2.Empty, error)
}

type Box

type Box struct {
	// Height is the vertical dimension of a box.
	Height uint32 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"`
	// Width is the horizontal dimension of a box.
	Width uint32 `protobuf:"varint,2,opt,name=Width,proto3" json:"Width,omitempty"`
}

func NewPopulatedBox

func NewPopulatedBox(r randyOci, easy bool) *Box

func (*Box) Descriptor

func (*Box) Descriptor() ([]byte, []int)

func (*Box) Equal

func (this *Box) Equal(that interface{}) bool

func (*Box) GetHeight

func (m *Box) GetHeight() uint32

func (*Box) GetWidth

func (m *Box) GetWidth() uint32

func (*Box) ProtoMessage

func (*Box) ProtoMessage()

func (*Box) Reset

func (m *Box) Reset()

func (*Box) String

func (m *Box) String() string

type CloseStdinRequest

type CloseStdinRequest struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	PID         uint32 `protobuf:"varint,2,opt,name=PID,proto3" json:"PID,omitempty"`
}

func (*CloseStdinRequest) Descriptor

func (*CloseStdinRequest) Descriptor() ([]byte, []int)

func (*CloseStdinRequest) GetContainerId

func (m *CloseStdinRequest) GetContainerId() string

func (*CloseStdinRequest) GetPID

func (m *CloseStdinRequest) GetPID() uint32

func (*CloseStdinRequest) ProtoMessage

func (*CloseStdinRequest) ProtoMessage()

func (*CloseStdinRequest) Reset

func (m *CloseStdinRequest) Reset()

func (*CloseStdinRequest) String

func (m *CloseStdinRequest) String() string

type CreateContainerRequest

type CreateContainerRequest struct {
	ContainerId string      `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	StringUser  *StringUser `protobuf:"bytes,2,opt,name=string_user,json=stringUser" json:"string_user,omitempty"`
	Storages    []*Storage  `protobuf:"bytes,3,rep,name=storages" json:"storages,omitempty"`
	OCI         *Spec       `protobuf:"bytes,4,opt,name=OCI" json:"OCI,omitempty"`
}

func (*CreateContainerRequest) Descriptor

func (*CreateContainerRequest) Descriptor() ([]byte, []int)

func (*CreateContainerRequest) GetContainerId

func (m *CreateContainerRequest) GetContainerId() string

func (*CreateContainerRequest) GetOCI

func (m *CreateContainerRequest) GetOCI() *Spec

func (*CreateContainerRequest) GetStorages

func (m *CreateContainerRequest) GetStorages() []*Storage

func (*CreateContainerRequest) GetStringUser

func (m *CreateContainerRequest) GetStringUser() *StringUser

func (*CreateContainerRequest) ProtoMessage

func (*CreateContainerRequest) ProtoMessage()

func (*CreateContainerRequest) Reset

func (m *CreateContainerRequest) Reset()

func (*CreateContainerRequest) String

func (m *CreateContainerRequest) String() string

type CreateSandboxRequest

type CreateSandboxRequest struct {
	Hostname     string     `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Dns          []string   `protobuf:"bytes,2,rep,name=dns" json:"dns,omitempty"`
	Storages     []*Storage `protobuf:"bytes,3,rep,name=storages" json:"storages,omitempty"`
	SandboxPidns bool       `protobuf:"varint,4,opt,name=sandbox_pidns,json=sandboxPidns,proto3" json:"sandbox_pidns,omitempty"`
}

func (*CreateSandboxRequest) Descriptor

func (*CreateSandboxRequest) Descriptor() ([]byte, []int)

func (*CreateSandboxRequest) GetDns

func (m *CreateSandboxRequest) GetDns() []string

func (*CreateSandboxRequest) GetHostname

func (m *CreateSandboxRequest) GetHostname() string

func (*CreateSandboxRequest) GetSandboxPidns

func (m *CreateSandboxRequest) GetSandboxPidns() bool

func (*CreateSandboxRequest) GetStorages

func (m *CreateSandboxRequest) GetStorages() []*Storage

func (*CreateSandboxRequest) ProtoMessage

func (*CreateSandboxRequest) ProtoMessage()

func (*CreateSandboxRequest) Reset

func (m *CreateSandboxRequest) Reset()

func (*CreateSandboxRequest) String

func (m *CreateSandboxRequest) String() string

type DestroySandboxRequest

type DestroySandboxRequest struct {
}

func (*DestroySandboxRequest) Descriptor

func (*DestroySandboxRequest) Descriptor() ([]byte, []int)

func (*DestroySandboxRequest) ProtoMessage

func (*DestroySandboxRequest) ProtoMessage()

func (*DestroySandboxRequest) Reset

func (m *DestroySandboxRequest) Reset()

func (*DestroySandboxRequest) String

func (m *DestroySandboxRequest) String() string

type ExecProcessRequest

type ExecProcessRequest struct {
	ContainerId string      `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	StringUser  *StringUser `protobuf:"bytes,3,opt,name=string_user,json=stringUser" json:"string_user,omitempty"`
	Process     *Process    `protobuf:"bytes,4,opt,name=process" json:"process,omitempty"`
}

func (*ExecProcessRequest) Descriptor

func (*ExecProcessRequest) Descriptor() ([]byte, []int)

func (*ExecProcessRequest) GetContainerId

func (m *ExecProcessRequest) GetContainerId() string

func (*ExecProcessRequest) GetProcess

func (m *ExecProcessRequest) GetProcess() *Process

func (*ExecProcessRequest) GetStringUser

func (m *ExecProcessRequest) GetStringUser() *StringUser

func (*ExecProcessRequest) ProtoMessage

func (*ExecProcessRequest) ProtoMessage()

func (*ExecProcessRequest) Reset

func (m *ExecProcessRequest) Reset()

func (*ExecProcessRequest) String

func (m *ExecProcessRequest) String() string

type Hook

type Hook struct {
	Path    string   `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"`
	Args    []string `protobuf:"bytes,2,rep,name=Args" json:"Args,omitempty"`
	Env     []string `protobuf:"bytes,3,rep,name=Env" json:"Env,omitempty"`
	Timeout int64    `protobuf:"varint,4,opt,name=Timeout,proto3" json:"Timeout,omitempty"`
}

func NewPopulatedHook

func NewPopulatedHook(r randyOci, easy bool) *Hook

func (*Hook) Descriptor

func (*Hook) Descriptor() ([]byte, []int)

func (*Hook) Equal

func (this *Hook) Equal(that interface{}) bool

func (*Hook) GetArgs

func (m *Hook) GetArgs() []string

func (*Hook) GetEnv

func (m *Hook) GetEnv() []string

func (*Hook) GetPath

func (m *Hook) GetPath() string

func (*Hook) GetTimeout

func (m *Hook) GetTimeout() int64

func (*Hook) ProtoMessage

func (*Hook) ProtoMessage()

func (*Hook) Reset

func (m *Hook) Reset()

func (*Hook) String

func (m *Hook) String() string

type Hooks

type Hooks struct {
	// Prestart is a list of hooks to be run before the container process is executed.
	Prestart []Hook `protobuf:"bytes,1,rep,name=Prestart" json:"Prestart"`
	// Poststart is a list of hooks to be run after the container process is started.
	Poststart []Hook `protobuf:"bytes,2,rep,name=Poststart" json:"Poststart"`
	// Poststop is a list of hooks to be run after the container process exits.
	Poststop []Hook `protobuf:"bytes,3,rep,name=Poststop" json:"Poststop"`
}

func NewPopulatedHooks

func NewPopulatedHooks(r randyOci, easy bool) *Hooks

func (*Hooks) Descriptor

func (*Hooks) Descriptor() ([]byte, []int)

func (*Hooks) Equal

func (this *Hooks) Equal(that interface{}) bool

func (*Hooks) GetPoststart

func (m *Hooks) GetPoststart() []Hook

func (*Hooks) GetPoststop

func (m *Hooks) GetPoststop() []Hook

func (*Hooks) GetPrestart

func (m *Hooks) GetPrestart() []Hook

func (*Hooks) ProtoMessage

func (*Hooks) ProtoMessage()

func (*Hooks) Reset

func (m *Hooks) Reset()

func (*Hooks) String

func (m *Hooks) String() string

type IPAddress

type IPAddress struct {
	Family  IPFamily `protobuf:"varint,1,opt,name=family,proto3,enum=grpc.IPFamily" json:"family,omitempty"`
	Address string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Mask    string   `protobuf:"bytes,3,opt,name=mask,proto3" json:"mask,omitempty"`
}

func (*IPAddress) Descriptor

func (*IPAddress) Descriptor() ([]byte, []int)

func (*IPAddress) GetAddress

func (m *IPAddress) GetAddress() string

func (*IPAddress) GetFamily

func (m *IPAddress) GetFamily() IPFamily

func (*IPAddress) GetMask

func (m *IPAddress) GetMask() string

func (*IPAddress) ProtoMessage

func (*IPAddress) ProtoMessage()

func (*IPAddress) Reset

func (m *IPAddress) Reset()

func (*IPAddress) String

func (m *IPAddress) String() string

type IPFamily

type IPFamily int32
const (
	IPFamily_v4 IPFamily = 0
	IPFamily_v6 IPFamily = 1
)

func (IPFamily) EnumDescriptor

func (IPFamily) EnumDescriptor() ([]byte, []int)

func (IPFamily) String

func (x IPFamily) String() string

type Interface

type Interface struct {
	Device      string       `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	Name        string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IpAddresses []*IPAddress `protobuf:"bytes,3,rep,name=ipAddresses" json:"ipAddresses,omitempty"`
	Mtu         uint64       `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"`
	HwAddr      string       `protobuf:"bytes,5,opt,name=hwAddr,proto3" json:"hwAddr,omitempty"`
}

func (*Interface) Descriptor

func (*Interface) Descriptor() ([]byte, []int)

func (*Interface) GetDevice

func (m *Interface) GetDevice() string

func (*Interface) GetHwAddr

func (m *Interface) GetHwAddr() string

func (*Interface) GetIpAddresses

func (m *Interface) GetIpAddresses() []*IPAddress

func (*Interface) GetMtu

func (m *Interface) GetMtu() uint64

func (*Interface) GetName

func (m *Interface) GetName() string

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) Reset

func (m *Interface) Reset()

func (*Interface) String

func (m *Interface) String() string

type Linux

type Linux struct {
	// UIDMapping specifies user mappings for supporting user namespaces.
	UIDMappings []LinuxIDMapping `protobuf:"bytes,1,rep,name=UIDMappings" json:"UIDMappings"`
	// GIDMapping specifies group mappings for supporting user namespaces.
	GIDMappings []LinuxIDMapping `protobuf:"bytes,2,rep,name=GIDMappings" json:"GIDMappings"`
	// Sysctl are a set of key value pairs that are set for the container on start
	Sysctl map[string]string `` /* 146-byte string literal not displayed */
	// Resources contain cgroup information for handling resource constraints
	// for the container
	Resources *LinuxResources `protobuf:"bytes,4,opt,name=Resources" json:"Resources,omitempty"`
	// CgroupsPath specifies the path to cgroups that are created and/or joined by the container.
	// The path is expected to be relative to the cgroups mountpoint.
	// If resources are specified, the cgroups at CgroupsPath will be updated based on resources.
	CgroupsPath string `protobuf:"bytes,5,opt,name=CgroupsPath,proto3" json:"CgroupsPath,omitempty"`
	// Namespaces contains the namespaces that are created and/or joined by the container
	Namespaces []LinuxNamespace `protobuf:"bytes,6,rep,name=Namespaces" json:"Namespaces"`
	// Devices are a list of device nodes that are created for the container
	Devices []LinuxDevice `protobuf:"bytes,7,rep,name=Devices" json:"Devices"`
	// Seccomp specifies the seccomp security settings for the container.
	Seccomp *LinuxSeccomp `protobuf:"bytes,8,opt,name=Seccomp" json:"Seccomp,omitempty"`
	// RootfsPropagation is the rootfs mount propagation mode for the container.
	RootfsPropagation string `protobuf:"bytes,9,opt,name=RootfsPropagation,proto3" json:"RootfsPropagation,omitempty"`
	// MaskedPaths masks over the provided paths inside the container.
	MaskedPaths []string `protobuf:"bytes,10,rep,name=MaskedPaths" json:"MaskedPaths,omitempty"`
	// ReadonlyPaths sets the provided paths as RO inside the container.
	ReadonlyPaths []string `protobuf:"bytes,11,rep,name=ReadonlyPaths" json:"ReadonlyPaths,omitempty"`
	// MountLabel specifies the selinux context for the mounts in the container.
	MountLabel string `protobuf:"bytes,12,opt,name=MountLabel,proto3" json:"MountLabel,omitempty"`
	// IntelRdt contains Intel Resource Director Technology (RDT) information
	// for handling resource constraints (e.g., L3 cache) for the container
	IntelRdt *LinuxIntelRdt `protobuf:"bytes,13,opt,name=IntelRdt" json:"IntelRdt,omitempty"`
}

func NewPopulatedLinux

func NewPopulatedLinux(r randyOci, easy bool) *Linux

func (*Linux) Descriptor

func (*Linux) Descriptor() ([]byte, []int)

func (*Linux) Equal

func (this *Linux) Equal(that interface{}) bool

func (*Linux) GetCgroupsPath

func (m *Linux) GetCgroupsPath() string

func (*Linux) GetDevices

func (m *Linux) GetDevices() []LinuxDevice

func (*Linux) GetGIDMappings

func (m *Linux) GetGIDMappings() []LinuxIDMapping

func (*Linux) GetIntelRdt

func (m *Linux) GetIntelRdt() *LinuxIntelRdt

func (*Linux) GetMaskedPaths

func (m *Linux) GetMaskedPaths() []string

func (*Linux) GetMountLabel

func (m *Linux) GetMountLabel() string

func (*Linux) GetNamespaces

func (m *Linux) GetNamespaces() []LinuxNamespace

func (*Linux) GetReadonlyPaths

func (m *Linux) GetReadonlyPaths() []string

func (*Linux) GetResources

func (m *Linux) GetResources() *LinuxResources

func (*Linux) GetRootfsPropagation

func (m *Linux) GetRootfsPropagation() string

func (*Linux) GetSeccomp

func (m *Linux) GetSeccomp() *LinuxSeccomp

func (*Linux) GetSysctl

func (m *Linux) GetSysctl() map[string]string

func (*Linux) GetUIDMappings

func (m *Linux) GetUIDMappings() []LinuxIDMapping

func (*Linux) ProtoMessage

func (*Linux) ProtoMessage()

func (*Linux) Reset

func (m *Linux) Reset()

func (*Linux) String

func (m *Linux) String() string

type LinuxBlockIO

type LinuxBlockIO struct {
	// Specifies per cgroup weight
	Weight uint32 `protobuf:"varint,1,opt,name=Weight,proto3" json:"Weight,omitempty"`
	// Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler only
	LeafWeight uint32 `protobuf:"varint,2,opt,name=LeafWeight,proto3" json:"LeafWeight,omitempty"`
	// Weight per cgroup per device, can override BlkioWeight
	WeightDevice []LinuxWeightDevice `protobuf:"bytes,3,rep,name=WeightDevice" json:"WeightDevice"`
	// IO read rate limit per cgroup per device, bytes per second
	ThrottleReadBpsDevice []LinuxThrottleDevice `protobuf:"bytes,4,rep,name=ThrottleReadBpsDevice" json:"ThrottleReadBpsDevice"`
	// IO write rate limit per cgroup per device, bytes per second
	ThrottleWriteBpsDevice []LinuxThrottleDevice `protobuf:"bytes,5,rep,name=ThrottleWriteBpsDevice" json:"ThrottleWriteBpsDevice"`
	// IO read rate limit per cgroup per device, IO per second
	ThrottleReadIOPSDevice []LinuxThrottleDevice `protobuf:"bytes,6,rep,name=ThrottleReadIOPSDevice" json:"ThrottleReadIOPSDevice"`
	// IO write rate limit per cgroup per device, IO per second
	ThrottleWriteIOPSDevice []LinuxThrottleDevice `protobuf:"bytes,7,rep,name=ThrottleWriteIOPSDevice" json:"ThrottleWriteIOPSDevice"`
}

func NewPopulatedLinuxBlockIO

func NewPopulatedLinuxBlockIO(r randyOci, easy bool) *LinuxBlockIO

func (*LinuxBlockIO) Descriptor

func (*LinuxBlockIO) Descriptor() ([]byte, []int)

func (*LinuxBlockIO) Equal

func (this *LinuxBlockIO) Equal(that interface{}) bool

func (*LinuxBlockIO) GetLeafWeight

func (m *LinuxBlockIO) GetLeafWeight() uint32

func (*LinuxBlockIO) GetThrottleReadBpsDevice

func (m *LinuxBlockIO) GetThrottleReadBpsDevice() []LinuxThrottleDevice

func (*LinuxBlockIO) GetThrottleReadIOPSDevice

func (m *LinuxBlockIO) GetThrottleReadIOPSDevice() []LinuxThrottleDevice

func (*LinuxBlockIO) GetThrottleWriteBpsDevice

func (m *LinuxBlockIO) GetThrottleWriteBpsDevice() []LinuxThrottleDevice

func (*LinuxBlockIO) GetThrottleWriteIOPSDevice

func (m *LinuxBlockIO) GetThrottleWriteIOPSDevice() []LinuxThrottleDevice

func (*LinuxBlockIO) GetWeight

func (m *LinuxBlockIO) GetWeight() uint32

func (*LinuxBlockIO) GetWeightDevice

func (m *LinuxBlockIO) GetWeightDevice() []LinuxWeightDevice

func (*LinuxBlockIO) ProtoMessage

func (*LinuxBlockIO) ProtoMessage()

func (*LinuxBlockIO) Reset

func (m *LinuxBlockIO) Reset()

func (*LinuxBlockIO) String

func (m *LinuxBlockIO) String() string

type LinuxCPU

type LinuxCPU struct {
	// CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
	Shares uint64 `protobuf:"varint,1,opt,name=Shares,proto3" json:"Shares,omitempty"`
	// CPU hardcap limit (in usecs). Allowed cpu time in a given period.
	Quota int64 `protobuf:"varint,2,opt,name=Quota,proto3" json:"Quota,omitempty"`
	// CPU period to be used for hardcapping (in usecs).
	Period uint64 `protobuf:"varint,3,opt,name=Period,proto3" json:"Period,omitempty"`
	// How much time realtime scheduling may use (in usecs).
	RealtimeRuntime int64 `protobuf:"varint,4,opt,name=RealtimeRuntime,proto3" json:"RealtimeRuntime,omitempty"`
	// CPU period to be used for realtime scheduling (in usecs).
	RealtimePeriod uint64 `protobuf:"varint,5,opt,name=RealtimePeriod,proto3" json:"RealtimePeriod,omitempty"`
	// CPUs to use within the cpuset. Default is to use any CPU available.
	Cpus string `protobuf:"bytes,6,opt,name=Cpus,proto3" json:"Cpus,omitempty"`
	// List of memory nodes in the cpuset. Default is to use any available memory node.
	Mems string `protobuf:"bytes,7,opt,name=Mems,proto3" json:"Mems,omitempty"`
}

func NewPopulatedLinuxCPU

func NewPopulatedLinuxCPU(r randyOci, easy bool) *LinuxCPU

func (*LinuxCPU) Descriptor

func (*LinuxCPU) Descriptor() ([]byte, []int)

func (*LinuxCPU) Equal

func (this *LinuxCPU) Equal(that interface{}) bool

func (*LinuxCPU) GetCpus

func (m *LinuxCPU) GetCpus() string

func (*LinuxCPU) GetMems

func (m *LinuxCPU) GetMems() string

func (*LinuxCPU) GetPeriod

func (m *LinuxCPU) GetPeriod() uint64

func (*LinuxCPU) GetQuota

func (m *LinuxCPU) GetQuota() int64

func (*LinuxCPU) GetRealtimePeriod

func (m *LinuxCPU) GetRealtimePeriod() uint64

func (*LinuxCPU) GetRealtimeRuntime

func (m *LinuxCPU) GetRealtimeRuntime() int64

func (*LinuxCPU) GetShares

func (m *LinuxCPU) GetShares() uint64

func (*LinuxCPU) ProtoMessage

func (*LinuxCPU) ProtoMessage()

func (*LinuxCPU) Reset

func (m *LinuxCPU) Reset()

func (*LinuxCPU) String

func (m *LinuxCPU) String() string

type LinuxCapabilities

type LinuxCapabilities struct {
	// Bounding is the set of capabilities checked by the kernel.
	Bounding []string `protobuf:"bytes,1,rep,name=Bounding" json:"Bounding,omitempty"`
	// Effective is the set of capabilities checked by the kernel.
	Effective []string `protobuf:"bytes,2,rep,name=Effective" json:"Effective,omitempty"`
	// Inheritable is the capabilities preserved across execve.
	Inheritable []string `protobuf:"bytes,3,rep,name=Inheritable" json:"Inheritable,omitempty"`
	// Permitted is the limiting superset for effective capabilities.
	Permitted []string `protobuf:"bytes,4,rep,name=Permitted" json:"Permitted,omitempty"`
	// Ambient is the ambient set of capabilities that are kept.
	Ambient []string `protobuf:"bytes,5,rep,name=Ambient" json:"Ambient,omitempty"`
}

func NewPopulatedLinuxCapabilities

func NewPopulatedLinuxCapabilities(r randyOci, easy bool) *LinuxCapabilities

func (*LinuxCapabilities) Descriptor

func (*LinuxCapabilities) Descriptor() ([]byte, []int)

func (*LinuxCapabilities) Equal

func (this *LinuxCapabilities) Equal(that interface{}) bool

func (*LinuxCapabilities) GetAmbient

func (m *LinuxCapabilities) GetAmbient() []string

func (*LinuxCapabilities) GetBounding

func (m *LinuxCapabilities) GetBounding() []string

func (*LinuxCapabilities) GetEffective

func (m *LinuxCapabilities) GetEffective() []string

func (*LinuxCapabilities) GetInheritable

func (m *LinuxCapabilities) GetInheritable() []string

func (*LinuxCapabilities) GetPermitted

func (m *LinuxCapabilities) GetPermitted() []string

func (*LinuxCapabilities) ProtoMessage

func (*LinuxCapabilities) ProtoMessage()

func (*LinuxCapabilities) Reset

func (m *LinuxCapabilities) Reset()

func (*LinuxCapabilities) String

func (m *LinuxCapabilities) String() string

type LinuxDevice

type LinuxDevice struct {
	// Path to the device.
	Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"`
	// Device type, block, char, etc.
	Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	// Major is the device's major number.
	Major int64 `protobuf:"varint,3,opt,name=Major,proto3" json:"Major,omitempty"`
	// Minor is the device's minor number.
	Minor int64 `protobuf:"varint,4,opt,name=Minor,proto3" json:"Minor,omitempty"`
	// FileMode permission bits for the device.
	FileMode uint32 `protobuf:"varint,5,opt,name=FileMode,proto3" json:"FileMode,omitempty"`
	// UID of the device.
	UID uint32 `protobuf:"varint,6,opt,name=UID,proto3" json:"UID,omitempty"`
	// Gid of the device.
	GID uint32 `protobuf:"varint,7,opt,name=GID,proto3" json:"GID,omitempty"`
}

func NewPopulatedLinuxDevice

func NewPopulatedLinuxDevice(r randyOci, easy bool) *LinuxDevice

func (*LinuxDevice) Descriptor

func (*LinuxDevice) Descriptor() ([]byte, []int)

func (*LinuxDevice) Equal

func (this *LinuxDevice) Equal(that interface{}) bool

func (*LinuxDevice) GetFileMode

func (m *LinuxDevice) GetFileMode() uint32

func (*LinuxDevice) GetGID

func (m *LinuxDevice) GetGID() uint32

func (*LinuxDevice) GetMajor

func (m *LinuxDevice) GetMajor() int64

func (*LinuxDevice) GetMinor

func (m *LinuxDevice) GetMinor() int64

func (*LinuxDevice) GetPath

func (m *LinuxDevice) GetPath() string

func (*LinuxDevice) GetType

func (m *LinuxDevice) GetType() string

func (*LinuxDevice) GetUID

func (m *LinuxDevice) GetUID() uint32

func (*LinuxDevice) ProtoMessage

func (*LinuxDevice) ProtoMessage()

func (*LinuxDevice) Reset

func (m *LinuxDevice) Reset()

func (*LinuxDevice) String

func (m *LinuxDevice) String() string

type LinuxDeviceCgroup

type LinuxDeviceCgroup struct {
	// Allow or deny
	Allow bool `protobuf:"varint,1,opt,name=Allow,proto3" json:"Allow,omitempty"`
	// Device type, block, char, etc.
	Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	// Major is the device's major number.
	Major int64 `protobuf:"varint,3,opt,name=Major,proto3" json:"Major,omitempty"`
	// Minor is the device's minor number.
	Minor int64 `protobuf:"varint,4,opt,name=Minor,proto3" json:"Minor,omitempty"`
	// Cgroup access permissions format, rwm.
	Access string `protobuf:"bytes,5,opt,name=Access,proto3" json:"Access,omitempty"`
}

func NewPopulatedLinuxDeviceCgroup

func NewPopulatedLinuxDeviceCgroup(r randyOci, easy bool) *LinuxDeviceCgroup

func (*LinuxDeviceCgroup) Descriptor

func (*LinuxDeviceCgroup) Descriptor() ([]byte, []int)

func (*LinuxDeviceCgroup) Equal

func (this *LinuxDeviceCgroup) Equal(that interface{}) bool

func (*LinuxDeviceCgroup) GetAccess

func (m *LinuxDeviceCgroup) GetAccess() string

func (*LinuxDeviceCgroup) GetAllow

func (m *LinuxDeviceCgroup) GetAllow() bool

func (*LinuxDeviceCgroup) GetMajor

func (m *LinuxDeviceCgroup) GetMajor() int64

func (*LinuxDeviceCgroup) GetMinor

func (m *LinuxDeviceCgroup) GetMinor() int64

func (*LinuxDeviceCgroup) GetType

func (m *LinuxDeviceCgroup) GetType() string

func (*LinuxDeviceCgroup) ProtoMessage

func (*LinuxDeviceCgroup) ProtoMessage()

func (*LinuxDeviceCgroup) Reset

func (m *LinuxDeviceCgroup) Reset()

func (*LinuxDeviceCgroup) String

func (m *LinuxDeviceCgroup) String() string

type LinuxHugepageLimit

type LinuxHugepageLimit struct {
	// Pagesize is the hugepage size
	Pagesize string `protobuf:"bytes,1,opt,name=Pagesize,proto3" json:"Pagesize,omitempty"`
	// Limit is the limit of "hugepagesize" hugetlb usage
	Limit uint64 `protobuf:"varint,2,opt,name=Limit,proto3" json:"Limit,omitempty"`
}

func NewPopulatedLinuxHugepageLimit

func NewPopulatedLinuxHugepageLimit(r randyOci, easy bool) *LinuxHugepageLimit

func (*LinuxHugepageLimit) Descriptor

func (*LinuxHugepageLimit) Descriptor() ([]byte, []int)

func (*LinuxHugepageLimit) Equal

func (this *LinuxHugepageLimit) Equal(that interface{}) bool

func (*LinuxHugepageLimit) GetLimit

func (m *LinuxHugepageLimit) GetLimit() uint64

func (*LinuxHugepageLimit) GetPagesize

func (m *LinuxHugepageLimit) GetPagesize() string

func (*LinuxHugepageLimit) ProtoMessage

func (*LinuxHugepageLimit) ProtoMessage()

func (*LinuxHugepageLimit) Reset

func (m *LinuxHugepageLimit) Reset()

func (*LinuxHugepageLimit) String

func (m *LinuxHugepageLimit) String() string

type LinuxIDMapping

type LinuxIDMapping struct {
	// HostID is the starting UID/GID on the host to be mapped to 'ContainerID'
	HostID uint32 `protobuf:"varint,1,opt,name=HostID,proto3" json:"HostID,omitempty"`
	// ContainerID is the starting UID/GID in the container
	ContainerID uint32 `protobuf:"varint,2,opt,name=ContainerID,proto3" json:"ContainerID,omitempty"`
	// Size is the number of IDs to be mapped
	Size_ uint32 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"`
}

func NewPopulatedLinuxIDMapping

func NewPopulatedLinuxIDMapping(r randyOci, easy bool) *LinuxIDMapping

func (*LinuxIDMapping) Descriptor

func (*LinuxIDMapping) Descriptor() ([]byte, []int)

func (*LinuxIDMapping) Equal

func (this *LinuxIDMapping) Equal(that interface{}) bool

func (*LinuxIDMapping) GetContainerID

func (m *LinuxIDMapping) GetContainerID() uint32

func (*LinuxIDMapping) GetHostID

func (m *LinuxIDMapping) GetHostID() uint32

func (*LinuxIDMapping) GetSize_

func (m *LinuxIDMapping) GetSize_() uint32

func (*LinuxIDMapping) ProtoMessage

func (*LinuxIDMapping) ProtoMessage()

func (*LinuxIDMapping) Reset

func (m *LinuxIDMapping) Reset()

func (*LinuxIDMapping) String

func (m *LinuxIDMapping) String() string

type LinuxIntelRdt

type LinuxIntelRdt struct {
	// The schema for L3 cache id and capacity bitmask (CBM)
	// Format: "L3:<cache_id0>=<cbm0>;<cache_id1>=<cbm1>;..."
	L3CacheSchema string `protobuf:"bytes,1,opt,name=L3CacheSchema,proto3" json:"L3CacheSchema,omitempty"`
}

func NewPopulatedLinuxIntelRdt

func NewPopulatedLinuxIntelRdt(r randyOci, easy bool) *LinuxIntelRdt

func (*LinuxIntelRdt) Descriptor

func (*LinuxIntelRdt) Descriptor() ([]byte, []int)

func (*LinuxIntelRdt) Equal

func (this *LinuxIntelRdt) Equal(that interface{}) bool

func (*LinuxIntelRdt) GetL3CacheSchema

func (m *LinuxIntelRdt) GetL3CacheSchema() string

func (*LinuxIntelRdt) ProtoMessage

func (*LinuxIntelRdt) ProtoMessage()

func (*LinuxIntelRdt) Reset

func (m *LinuxIntelRdt) Reset()

func (*LinuxIntelRdt) String

func (m *LinuxIntelRdt) String() string

type LinuxInterfacePriority

type LinuxInterfacePriority struct {
	// Name is the name of the network interface
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	// Priority for the interface
	Priority uint32 `protobuf:"varint,2,opt,name=Priority,proto3" json:"Priority,omitempty"`
}

func NewPopulatedLinuxInterfacePriority

func NewPopulatedLinuxInterfacePriority(r randyOci, easy bool) *LinuxInterfacePriority

func (*LinuxInterfacePriority) Descriptor

func (*LinuxInterfacePriority) Descriptor() ([]byte, []int)

func (*LinuxInterfacePriority) Equal

func (this *LinuxInterfacePriority) Equal(that interface{}) bool

func (*LinuxInterfacePriority) GetName

func (m *LinuxInterfacePriority) GetName() string

func (*LinuxInterfacePriority) GetPriority

func (m *LinuxInterfacePriority) GetPriority() uint32

func (*LinuxInterfacePriority) ProtoMessage

func (*LinuxInterfacePriority) ProtoMessage()

func (*LinuxInterfacePriority) Reset

func (m *LinuxInterfacePriority) Reset()

func (*LinuxInterfacePriority) String

func (m *LinuxInterfacePriority) String() string

type LinuxMemory

type LinuxMemory struct {
	// Memory limit (in bytes).
	Limit int64 `protobuf:"varint,1,opt,name=Limit,proto3" json:"Limit,omitempty"`
	// Memory reservation or soft_limit (in bytes).
	Reservation int64 `protobuf:"varint,2,opt,name=Reservation,proto3" json:"Reservation,omitempty"`
	// Total memory limit (memory + swap).
	Swap int64 `protobuf:"varint,3,opt,name=Swap,proto3" json:"Swap,omitempty"`
	// Kernel memory limit (in bytes).
	Kernel int64 `protobuf:"varint,4,opt,name=Kernel,proto3" json:"Kernel,omitempty"`
	// Kernel memory limit for tcp (in bytes)
	KernelTCP int64 `protobuf:"varint,5,opt,name=KernelTCP,proto3" json:"KernelTCP,omitempty"`
	// How aggressive the kernel will swap memory pages.
	Swappiness uint64 `protobuf:"varint,6,opt,name=Swappiness,proto3" json:"Swappiness,omitempty"`
	// DisableOOMKiller disables the OOM killer for out of memory conditions
	DisableOOMKiller bool `protobuf:"varint,7,opt,name=DisableOOMKiller,proto3" json:"DisableOOMKiller,omitempty"`
}

func NewPopulatedLinuxMemory

func NewPopulatedLinuxMemory(r randyOci, easy bool) *LinuxMemory

func (*LinuxMemory) Descriptor

func (*LinuxMemory) Descriptor() ([]byte, []int)

func (*LinuxMemory) Equal

func (this *LinuxMemory) Equal(that interface{}) bool

func (*LinuxMemory) GetDisableOOMKiller

func (m *LinuxMemory) GetDisableOOMKiller() bool

func (*LinuxMemory) GetKernel

func (m *LinuxMemory) GetKernel() int64

func (*LinuxMemory) GetKernelTCP

func (m *LinuxMemory) GetKernelTCP() int64

func (*LinuxMemory) GetLimit

func (m *LinuxMemory) GetLimit() int64

func (*LinuxMemory) GetReservation

func (m *LinuxMemory) GetReservation() int64

func (*LinuxMemory) GetSwap

func (m *LinuxMemory) GetSwap() int64

func (*LinuxMemory) GetSwappiness

func (m *LinuxMemory) GetSwappiness() uint64

func (*LinuxMemory) ProtoMessage

func (*LinuxMemory) ProtoMessage()

func (*LinuxMemory) Reset

func (m *LinuxMemory) Reset()

func (*LinuxMemory) String

func (m *LinuxMemory) String() string

type LinuxNamespace

type LinuxNamespace struct {
	// Type is the type of namespace
	Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
	// Path is a path to an existing namespace persisted on disk that can be joined
	// and is of the same type
	Path string `protobuf:"bytes,2,opt,name=Path,proto3" json:"Path,omitempty"`
}

func NewPopulatedLinuxNamespace

func NewPopulatedLinuxNamespace(r randyOci, easy bool) *LinuxNamespace

func (*LinuxNamespace) Descriptor

func (*LinuxNamespace) Descriptor() ([]byte, []int)

func (*LinuxNamespace) Equal

func (this *LinuxNamespace) Equal(that interface{}) bool

func (*LinuxNamespace) GetPath

func (m *LinuxNamespace) GetPath() string

func (*LinuxNamespace) GetType

func (m *LinuxNamespace) GetType() string

func (*LinuxNamespace) ProtoMessage

func (*LinuxNamespace) ProtoMessage()

func (*LinuxNamespace) Reset

func (m *LinuxNamespace) Reset()

func (*LinuxNamespace) String

func (m *LinuxNamespace) String() string

type LinuxNetwork

type LinuxNetwork struct {
	// Set class identifier for container's network packets
	ClassID uint32 `protobuf:"varint,1,opt,name=ClassID,proto3" json:"ClassID,omitempty"`
	// Set priority of network traffic for container
	Priorities []LinuxInterfacePriority `protobuf:"bytes,2,rep,name=Priorities" json:"Priorities"`
}

func NewPopulatedLinuxNetwork

func NewPopulatedLinuxNetwork(r randyOci, easy bool) *LinuxNetwork

func (*LinuxNetwork) Descriptor

func (*LinuxNetwork) Descriptor() ([]byte, []int)

func (*LinuxNetwork) Equal

func (this *LinuxNetwork) Equal(that interface{}) bool

func (*LinuxNetwork) GetClassID

func (m *LinuxNetwork) GetClassID() uint32

func (*LinuxNetwork) GetPriorities

func (m *LinuxNetwork) GetPriorities() []LinuxInterfacePriority

func (*LinuxNetwork) ProtoMessage

func (*LinuxNetwork) ProtoMessage()

func (*LinuxNetwork) Reset

func (m *LinuxNetwork) Reset()

func (*LinuxNetwork) String

func (m *LinuxNetwork) String() string

type LinuxPids

type LinuxPids struct {
	// Maximum number of PIDs. Default is "no limit".
	Limit int64 `protobuf:"varint,1,opt,name=Limit,proto3" json:"Limit,omitempty"`
}

func NewPopulatedLinuxPids

func NewPopulatedLinuxPids(r randyOci, easy bool) *LinuxPids

func (*LinuxPids) Descriptor

func (*LinuxPids) Descriptor() ([]byte, []int)

func (*LinuxPids) Equal

func (this *LinuxPids) Equal(that interface{}) bool

func (*LinuxPids) GetLimit

func (m *LinuxPids) GetLimit() int64

func (*LinuxPids) ProtoMessage

func (*LinuxPids) ProtoMessage()

func (*LinuxPids) Reset

func (m *LinuxPids) Reset()

func (*LinuxPids) String

func (m *LinuxPids) String() string

type LinuxResources

type LinuxResources struct {
	// Devices configures the device whitelist.
	Devices []LinuxDeviceCgroup `protobuf:"bytes,1,rep,name=Devices" json:"Devices"`
	// Memory restriction configuration
	Memory *LinuxMemory `protobuf:"bytes,2,opt,name=Memory" json:"Memory,omitempty"`
	// CPU resource restriction configuration
	CPU *LinuxCPU `protobuf:"bytes,3,opt,name=CPU" json:"CPU,omitempty"`
	// Task resource restriction configuration.
	Pids *LinuxPids `protobuf:"bytes,4,opt,name=Pids" json:"Pids,omitempty"`
	// BlockIO restriction configuration
	BlockIO *LinuxBlockIO `protobuf:"bytes,5,opt,name=BlockIO" json:"BlockIO,omitempty"`
	// Hugetlb limit (in bytes)
	HugepageLimits []LinuxHugepageLimit `protobuf:"bytes,6,rep,name=HugepageLimits" json:"HugepageLimits"`
	// Network restriction configuration
	Network *LinuxNetwork `protobuf:"bytes,7,opt,name=Network" json:"Network,omitempty"`
}

func NewPopulatedLinuxResources

func NewPopulatedLinuxResources(r randyOci, easy bool) *LinuxResources

func (*LinuxResources) Descriptor

func (*LinuxResources) Descriptor() ([]byte, []int)

func (*LinuxResources) Equal

func (this *LinuxResources) Equal(that interface{}) bool

func (*LinuxResources) GetBlockIO

func (m *LinuxResources) GetBlockIO() *LinuxBlockIO

func (*LinuxResources) GetCPU

func (m *LinuxResources) GetCPU() *LinuxCPU

func (*LinuxResources) GetDevices

func (m *LinuxResources) GetDevices() []LinuxDeviceCgroup

func (*LinuxResources) GetHugepageLimits

func (m *LinuxResources) GetHugepageLimits() []LinuxHugepageLimit

func (*LinuxResources) GetMemory

func (m *LinuxResources) GetMemory() *LinuxMemory

func (*LinuxResources) GetNetwork

func (m *LinuxResources) GetNetwork() *LinuxNetwork

func (*LinuxResources) GetPids

func (m *LinuxResources) GetPids() *LinuxPids

func (*LinuxResources) ProtoMessage

func (*LinuxResources) ProtoMessage()

func (*LinuxResources) Reset

func (m *LinuxResources) Reset()

func (*LinuxResources) String

func (m *LinuxResources) String() string

type LinuxSeccomp

type LinuxSeccomp struct {
	DefaultAction string         `protobuf:"bytes,1,opt,name=DefaultAction,proto3" json:"DefaultAction,omitempty"`
	Architectures []string       `protobuf:"bytes,2,rep,name=Architectures" json:"Architectures,omitempty"`
	Syscalls      []LinuxSyscall `protobuf:"bytes,3,rep,name=Syscalls" json:"Syscalls"`
}

func NewPopulatedLinuxSeccomp

func NewPopulatedLinuxSeccomp(r randyOci, easy bool) *LinuxSeccomp

func (*LinuxSeccomp) Descriptor

func (*LinuxSeccomp) Descriptor() ([]byte, []int)

func (*LinuxSeccomp) Equal

func (this *LinuxSeccomp) Equal(that interface{}) bool

func (*LinuxSeccomp) GetArchitectures

func (m *LinuxSeccomp) GetArchitectures() []string

func (*LinuxSeccomp) GetDefaultAction

func (m *LinuxSeccomp) GetDefaultAction() string

func (*LinuxSeccomp) GetSyscalls

func (m *LinuxSeccomp) GetSyscalls() []LinuxSyscall

func (*LinuxSeccomp) ProtoMessage

func (*LinuxSeccomp) ProtoMessage()

func (*LinuxSeccomp) Reset

func (m *LinuxSeccomp) Reset()

func (*LinuxSeccomp) String

func (m *LinuxSeccomp) String() string

type LinuxSeccompArg

type LinuxSeccompArg struct {
	Index    uint64 `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Value    uint64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"`
	ValueTwo uint64 `protobuf:"varint,3,opt,name=ValueTwo,proto3" json:"ValueTwo,omitempty"`
	Op       string `protobuf:"bytes,4,opt,name=Op,proto3" json:"Op,omitempty"`
}

func NewPopulatedLinuxSeccompArg

func NewPopulatedLinuxSeccompArg(r randyOci, easy bool) *LinuxSeccompArg

func (*LinuxSeccompArg) Descriptor

func (*LinuxSeccompArg) Descriptor() ([]byte, []int)

func (*LinuxSeccompArg) Equal

func (this *LinuxSeccompArg) Equal(that interface{}) bool

func (*LinuxSeccompArg) GetIndex

func (m *LinuxSeccompArg) GetIndex() uint64

func (*LinuxSeccompArg) GetOp

func (m *LinuxSeccompArg) GetOp() string

func (*LinuxSeccompArg) GetValue

func (m *LinuxSeccompArg) GetValue() uint64

func (*LinuxSeccompArg) GetValueTwo

func (m *LinuxSeccompArg) GetValueTwo() uint64

func (*LinuxSeccompArg) ProtoMessage

func (*LinuxSeccompArg) ProtoMessage()

func (*LinuxSeccompArg) Reset

func (m *LinuxSeccompArg) Reset()

func (*LinuxSeccompArg) String

func (m *LinuxSeccompArg) String() string

type LinuxSyscall

type LinuxSyscall struct {
	Names  []string          `protobuf:"bytes,1,rep,name=Names" json:"Names,omitempty"`
	Action string            `protobuf:"bytes,2,opt,name=Action,proto3" json:"Action,omitempty"`
	Args   []LinuxSeccompArg `protobuf:"bytes,3,rep,name=Args" json:"Args"`
}

func NewPopulatedLinuxSyscall

func NewPopulatedLinuxSyscall(r randyOci, easy bool) *LinuxSyscall

func (*LinuxSyscall) Descriptor

func (*LinuxSyscall) Descriptor() ([]byte, []int)

func (*LinuxSyscall) Equal

func (this *LinuxSyscall) Equal(that interface{}) bool

func (*LinuxSyscall) GetAction

func (m *LinuxSyscall) GetAction() string

func (*LinuxSyscall) GetArgs

func (m *LinuxSyscall) GetArgs() []LinuxSeccompArg

func (*LinuxSyscall) GetNames

func (m *LinuxSyscall) GetNames() []string

func (*LinuxSyscall) ProtoMessage

func (*LinuxSyscall) ProtoMessage()

func (*LinuxSyscall) Reset

func (m *LinuxSyscall) Reset()

func (*LinuxSyscall) String

func (m *LinuxSyscall) String() string

type LinuxThrottleDevice

type LinuxThrottleDevice struct {
	// Major is the device's major number.
	Major int64 `protobuf:"varint,1,opt,name=Major,proto3" json:"Major,omitempty"`
	// Minor is the device's minor number.
	Minor int64 `protobuf:"varint,2,opt,name=Minor,proto3" json:"Minor,omitempty"`
	// Rate is the IO rate limit per cgroup per device
	Rate uint64 `protobuf:"varint,3,opt,name=Rate,proto3" json:"Rate,omitempty"`
}

func NewPopulatedLinuxThrottleDevice

func NewPopulatedLinuxThrottleDevice(r randyOci, easy bool) *LinuxThrottleDevice

func (*LinuxThrottleDevice) Descriptor

func (*LinuxThrottleDevice) Descriptor() ([]byte, []int)

func (*LinuxThrottleDevice) Equal

func (this *LinuxThrottleDevice) Equal(that interface{}) bool

func (*LinuxThrottleDevice) GetMajor

func (m *LinuxThrottleDevice) GetMajor() int64

func (*LinuxThrottleDevice) GetMinor

func (m *LinuxThrottleDevice) GetMinor() int64

func (*LinuxThrottleDevice) GetRate

func (m *LinuxThrottleDevice) GetRate() uint64

func (*LinuxThrottleDevice) ProtoMessage

func (*LinuxThrottleDevice) ProtoMessage()

func (*LinuxThrottleDevice) Reset

func (m *LinuxThrottleDevice) Reset()

func (*LinuxThrottleDevice) String

func (m *LinuxThrottleDevice) String() string

type LinuxWeightDevice

type LinuxWeightDevice struct {
	// Major is the device's major number.
	Major int64 `protobuf:"varint,1,opt,name=Major,proto3" json:"Major,omitempty"`
	// Minor is the device's minor number.
	Minor int64 `protobuf:"varint,2,opt,name=Minor,proto3" json:"Minor,omitempty"`
	// Weight is the bandwidth rate for the device.
	Weight uint32 `protobuf:"varint,3,opt,name=Weight,proto3" json:"Weight,omitempty"`
	// LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
	LeafWeight uint32 `protobuf:"varint,4,opt,name=LeafWeight,proto3" json:"LeafWeight,omitempty"`
}

func NewPopulatedLinuxWeightDevice

func NewPopulatedLinuxWeightDevice(r randyOci, easy bool) *LinuxWeightDevice

func (*LinuxWeightDevice) Descriptor

func (*LinuxWeightDevice) Descriptor() ([]byte, []int)

func (*LinuxWeightDevice) Equal

func (this *LinuxWeightDevice) Equal(that interface{}) bool

func (*LinuxWeightDevice) GetLeafWeight

func (m *LinuxWeightDevice) GetLeafWeight() uint32

func (*LinuxWeightDevice) GetMajor

func (m *LinuxWeightDevice) GetMajor() int64

func (*LinuxWeightDevice) GetMinor

func (m *LinuxWeightDevice) GetMinor() int64

func (*LinuxWeightDevice) GetWeight

func (m *LinuxWeightDevice) GetWeight() uint32

func (*LinuxWeightDevice) ProtoMessage

func (*LinuxWeightDevice) ProtoMessage()

func (*LinuxWeightDevice) Reset

func (m *LinuxWeightDevice) Reset()

func (*LinuxWeightDevice) String

func (m *LinuxWeightDevice) String() string

type Mount

type Mount struct {
	// destination is the path inside the container expect when it starts with "tmp:/"
	Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// source is the path inside the container expect when it starts with "vm:/dev/" or "tmp:/"
	// the path which starts with "vm:/dev/" refers the guest vm's "/dev",
	// especially, "vm:/dev/hostfs/" refers to the shared filesystem.
	// "tmp:/" is a temporary directory which is used for temporary mounts.
	Source  string   `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	Type    string   `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Options []string `protobuf:"bytes,4,rep,name=options" json:"options,omitempty"`
}

func NewPopulatedMount

func NewPopulatedMount(r randyOci, easy bool) *Mount

func (*Mount) Descriptor

func (*Mount) Descriptor() ([]byte, []int)

func (*Mount) Equal

func (this *Mount) Equal(that interface{}) bool

func (*Mount) GetDestination

func (m *Mount) GetDestination() string

func (*Mount) GetOptions

func (m *Mount) GetOptions() []string

func (*Mount) GetSource

func (m *Mount) GetSource() string

func (*Mount) GetType

func (m *Mount) GetType() string

func (*Mount) ProtoMessage

func (*Mount) ProtoMessage()

func (*Mount) Reset

func (m *Mount) Reset()

func (*Mount) String

func (m *Mount) String() string

type NewProcessResponse

type NewProcessResponse struct {
	PID uint32 `protobuf:"varint,1,opt,name=PID,proto3" json:"PID,omitempty"`
}

NewProcessResponse contains a Linux PID for a process that the agent created and manages. Any gRPC request from the host for a PID that is not managed by the agent will result in an error. For example, calling WaitProcess() with a WaitProcessRequest pid field set to a PID that was not created by the agent will return an error back to the caller.

func (*NewProcessResponse) Descriptor

func (*NewProcessResponse) Descriptor() ([]byte, []int)

func (*NewProcessResponse) GetPID

func (m *NewProcessResponse) GetPID() uint32

func (*NewProcessResponse) ProtoMessage

func (*NewProcessResponse) ProtoMessage()

func (*NewProcessResponse) Reset

func (m *NewProcessResponse) Reset()

func (*NewProcessResponse) String

func (m *NewProcessResponse) String() string

type OnlineCPUMemRequest

type OnlineCPUMemRequest struct {
}

func (*OnlineCPUMemRequest) Descriptor

func (*OnlineCPUMemRequest) Descriptor() ([]byte, []int)

func (*OnlineCPUMemRequest) ProtoMessage

func (*OnlineCPUMemRequest) ProtoMessage()

func (*OnlineCPUMemRequest) Reset

func (m *OnlineCPUMemRequest) Reset()

func (*OnlineCPUMemRequest) String

func (m *OnlineCPUMemRequest) String() string

type POSIXRlimit

type POSIXRlimit struct {
	// Type of the rlimit to set
	Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
	// Hard is the hard limit for the specified type
	Hard uint64 `protobuf:"varint,2,opt,name=Hard,proto3" json:"Hard,omitempty"`
	// Soft is the soft limit for the specified type
	Soft uint64 `protobuf:"varint,3,opt,name=Soft,proto3" json:"Soft,omitempty"`
}

func NewPopulatedPOSIXRlimit

func NewPopulatedPOSIXRlimit(r randyOci, easy bool) *POSIXRlimit

func (*POSIXRlimit) Descriptor

func (*POSIXRlimit) Descriptor() ([]byte, []int)

func (*POSIXRlimit) Equal

func (this *POSIXRlimit) Equal(that interface{}) bool

func (*POSIXRlimit) GetHard

func (m *POSIXRlimit) GetHard() uint64

func (*POSIXRlimit) GetSoft

func (m *POSIXRlimit) GetSoft() uint64

func (*POSIXRlimit) GetType

func (m *POSIXRlimit) GetType() string

func (*POSIXRlimit) ProtoMessage

func (*POSIXRlimit) ProtoMessage()

func (*POSIXRlimit) Reset

func (m *POSIXRlimit) Reset()

func (*POSIXRlimit) String

func (m *POSIXRlimit) String() string

type Process

type Process struct {
	// Terminal creates an interactive terminal for the container.
	Terminal bool `protobuf:"varint,1,opt,name=Terminal,proto3" json:"Terminal,omitempty"`
	// ConsoleSize specifies the size of the console.
	ConsoleSize *Box `protobuf:"bytes,2,opt,name=ConsoleSize" json:"ConsoleSize,omitempty"`
	// User specifies user information for the process.
	User User `protobuf:"bytes,3,opt,name=User" json:"User"`
	// Args specifies the binary and arguments for the application to execute.
	Args []string `protobuf:"bytes,4,rep,name=Args" json:"Args,omitempty"`
	// Env populates the process environment for the process.
	Env []string `protobuf:"bytes,5,rep,name=Env" json:"Env,omitempty"`
	// Cwd is the current working directory for the process and must be
	// relative to the container's root.
	Cwd string `protobuf:"bytes,6,opt,name=Cwd,proto3" json:"Cwd,omitempty"`
	// Capabilities are Linux capabilities that are kept for the process.
	Capabilities *LinuxCapabilities `protobuf:"bytes,7,opt,name=Capabilities" json:"Capabilities,omitempty"`
	// Rlimits specifies rlimit options to apply to the process.
	Rlimits []POSIXRlimit `protobuf:"bytes,8,rep,name=Rlimits" json:"Rlimits"`
	// NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
	NoNewPrivileges bool `protobuf:"varint,9,opt,name=NoNewPrivileges,proto3" json:"NoNewPrivileges,omitempty"`
	// ApparmorProfile specifies the apparmor profile for the container.
	ApparmorProfile string `protobuf:"bytes,10,opt,name=ApparmorProfile,proto3" json:"ApparmorProfile,omitempty"`
	// Specify an oom_score_adj for the container.
	OOMScoreAdj int64 `protobuf:"varint,11,opt,name=OOMScoreAdj,proto3" json:"OOMScoreAdj,omitempty"`
	// SelinuxLabel specifies the selinux context that the container process is run as.
	SelinuxLabel string `protobuf:"bytes,12,opt,name=SelinuxLabel,proto3" json:"SelinuxLabel,omitempty"`
}

func NewPopulatedProcess

func NewPopulatedProcess(r randyOci, easy bool) *Process

func (*Process) Descriptor

func (*Process) Descriptor() ([]byte, []int)

func (*Process) Equal

func (this *Process) Equal(that interface{}) bool

func (*Process) GetApparmorProfile

func (m *Process) GetApparmorProfile() string

func (*Process) GetArgs

func (m *Process) GetArgs() []string

func (*Process) GetCapabilities

func (m *Process) GetCapabilities() *LinuxCapabilities

func (*Process) GetConsoleSize

func (m *Process) GetConsoleSize() *Box

func (*Process) GetCwd

func (m *Process) GetCwd() string

func (*Process) GetEnv

func (m *Process) GetEnv() []string

func (*Process) GetNoNewPrivileges

func (m *Process) GetNoNewPrivileges() bool

func (*Process) GetOOMScoreAdj

func (m *Process) GetOOMScoreAdj() int64

func (*Process) GetRlimits

func (m *Process) GetRlimits() []POSIXRlimit

func (*Process) GetSelinuxLabel

func (m *Process) GetSelinuxLabel() string

func (*Process) GetTerminal

func (m *Process) GetTerminal() bool

func (*Process) GetUser

func (m *Process) GetUser() User

func (*Process) ProtoMessage

func (*Process) ProtoMessage()

func (*Process) Reset

func (m *Process) Reset()

func (*Process) String

func (m *Process) String() string

type ReadStreamRequest

type ReadStreamRequest struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	PID         uint32 `protobuf:"varint,2,opt,name=PID,proto3" json:"PID,omitempty"`
	Len         uint32 `protobuf:"varint,3,opt,name=len,proto3" json:"len,omitempty"`
}

func (*ReadStreamRequest) Descriptor

func (*ReadStreamRequest) Descriptor() ([]byte, []int)

func (*ReadStreamRequest) GetContainerId

func (m *ReadStreamRequest) GetContainerId() string

func (*ReadStreamRequest) GetLen

func (m *ReadStreamRequest) GetLen() uint32

func (*ReadStreamRequest) GetPID

func (m *ReadStreamRequest) GetPID() uint32

func (*ReadStreamRequest) ProtoMessage

func (*ReadStreamRequest) ProtoMessage()

func (*ReadStreamRequest) Reset

func (m *ReadStreamRequest) Reset()

func (*ReadStreamRequest) String

func (m *ReadStreamRequest) String() string

type ReadStreamResponse

type ReadStreamResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*ReadStreamResponse) Descriptor

func (*ReadStreamResponse) Descriptor() ([]byte, []int)

func (*ReadStreamResponse) GetData

func (m *ReadStreamResponse) GetData() []byte

func (*ReadStreamResponse) ProtoMessage

func (*ReadStreamResponse) ProtoMessage()

func (*ReadStreamResponse) Reset

func (m *ReadStreamResponse) Reset()

func (*ReadStreamResponse) String

func (m *ReadStreamResponse) String() string

type RemoveContainerRequest

type RemoveContainerRequest struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	// RemoveContainer will return an error if
	// it could not kill some container processes
	// after timeout seconds.
	// Setting timeout to 0 means RemoveContainer will
	// wait for ever.
	Timeout uint32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
}

func (*RemoveContainerRequest) Descriptor

func (*RemoveContainerRequest) Descriptor() ([]byte, []int)

func (*RemoveContainerRequest) GetContainerId

func (m *RemoveContainerRequest) GetContainerId() string

func (*RemoveContainerRequest) GetTimeout

func (m *RemoveContainerRequest) GetTimeout() uint32

func (*RemoveContainerRequest) ProtoMessage

func (*RemoveContainerRequest) ProtoMessage()

func (*RemoveContainerRequest) Reset

func (m *RemoveContainerRequest) Reset()

func (*RemoveContainerRequest) String

func (m *RemoveContainerRequest) String() string

type RemoveInterfaceRequest

type RemoveInterfaceRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*RemoveInterfaceRequest) Descriptor

func (*RemoveInterfaceRequest) Descriptor() ([]byte, []int)

func (*RemoveInterfaceRequest) GetName

func (m *RemoveInterfaceRequest) GetName() string

func (*RemoveInterfaceRequest) ProtoMessage

func (*RemoveInterfaceRequest) ProtoMessage()

func (*RemoveInterfaceRequest) Reset

func (m *RemoveInterfaceRequest) Reset()

func (*RemoveInterfaceRequest) String

func (m *RemoveInterfaceRequest) String() string

type Root

type Root struct {
	// Path is the absolute path to the container's root filesystem.
	Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"`
	// Readonly makes the root filesystem for the container readonly before the process is executed.
	Readonly bool `protobuf:"varint,2,opt,name=Readonly,proto3" json:"Readonly,omitempty"`
}

func NewPopulatedRoot

func NewPopulatedRoot(r randyOci, easy bool) *Root

func (*Root) Descriptor

func (*Root) Descriptor() ([]byte, []int)

func (*Root) Equal

func (this *Root) Equal(that interface{}) bool

func (*Root) GetPath

func (m *Root) GetPath() string

func (*Root) GetReadonly

func (m *Root) GetReadonly() bool

func (*Root) ProtoMessage

func (*Root) ProtoMessage()

func (*Root) Reset

func (m *Root) Reset()

func (*Root) String

func (m *Root) String() string

type Route

type Route struct {
	Dest    string `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
	Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"`
	Device  string `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"`
}

func (*Route) Descriptor

func (*Route) Descriptor() ([]byte, []int)

func (*Route) GetDest

func (m *Route) GetDest() string

func (*Route) GetDevice

func (m *Route) GetDevice() string

func (*Route) GetGateway

func (m *Route) GetGateway() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

type RouteRequest

type RouteRequest struct {
	Route *Route `protobuf:"bytes,1,opt,name=route" json:"route,omitempty"`
}

func (*RouteRequest) Descriptor

func (*RouteRequest) Descriptor() ([]byte, []int)

func (*RouteRequest) GetRoute

func (m *RouteRequest) GetRoute() *Route

func (*RouteRequest) ProtoMessage

func (*RouteRequest) ProtoMessage()

func (*RouteRequest) Reset

func (m *RouteRequest) Reset()

func (*RouteRequest) String

func (m *RouteRequest) String() string

type SignalProcessRequest

type SignalProcessRequest struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	PID         uint32 `protobuf:"varint,2,opt,name=PID,proto3" json:"PID,omitempty"`
	Signal      uint32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"`
}

func (*SignalProcessRequest) Descriptor

func (*SignalProcessRequest) Descriptor() ([]byte, []int)

func (*SignalProcessRequest) GetContainerId

func (m *SignalProcessRequest) GetContainerId() string

func (*SignalProcessRequest) GetPID

func (m *SignalProcessRequest) GetPID() uint32

func (*SignalProcessRequest) GetSignal

func (m *SignalProcessRequest) GetSignal() uint32

func (*SignalProcessRequest) ProtoMessage

func (*SignalProcessRequest) ProtoMessage()

func (*SignalProcessRequest) Reset

func (m *SignalProcessRequest) Reset()

func (*SignalProcessRequest) String

func (m *SignalProcessRequest) String() string

type Solaris

type Solaris struct {
	// Dummy string, never used.
	Dummy string `protobuf:"bytes,1,opt,name=dummy,proto3" json:"dummy,omitempty"`
}

func NewPopulatedSolaris

func NewPopulatedSolaris(r randyOci, easy bool) *Solaris

func (*Solaris) Descriptor

func (*Solaris) Descriptor() ([]byte, []int)

func (*Solaris) Equal

func (this *Solaris) Equal(that interface{}) bool

func (*Solaris) GetDummy

func (m *Solaris) GetDummy() string

func (*Solaris) ProtoMessage

func (*Solaris) ProtoMessage()

func (*Solaris) Reset

func (m *Solaris) Reset()

func (*Solaris) String

func (m *Solaris) String() string

type Spec

type Spec struct {
	// Version of the Open Container Initiative Runtime Specification with which the bundle complies.
	Version string `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"`
	// Process configures the container process.
	Process *Process `protobuf:"bytes,2,opt,name=Process" json:"Process,omitempty"`
	// Root configures the container's root filesystem.
	Root *Root `protobuf:"bytes,3,opt,name=Root" json:"Root,omitempty"`
	// Hostname configures the container's hostname.
	Hostname string `protobuf:"bytes,4,opt,name=Hostname,proto3" json:"Hostname,omitempty"`
	// Mounts configures additional mounts (on top of Root).
	Mounts []Mount `protobuf:"bytes,5,rep,name=Mounts" json:"Mounts"`
	// Hooks configures callbacks for container lifecycle events.
	Hooks *Hooks `protobuf:"bytes,6,opt,name=Hooks" json:"Hooks,omitempty"`
	// Annotations contains arbitrary metadata for the container.
	Annotations map[string]string `` /* 156-byte string literal not displayed */
	// Linux is platform-specific configuration for Linux based containers.
	Linux *Linux `protobuf:"bytes,8,opt,name=Linux" json:"Linux,omitempty"`
	// Solaris is platform-specific configuration for Solaris based containers.
	Solaris *Solaris `protobuf:"bytes,9,opt,name=Solaris" json:"Solaris,omitempty"`
	// Windows is platform-specific configuration for Windows based containers.
	Windows *Windows `protobuf:"bytes,10,opt,name=Windows" json:"Windows,omitempty"`
}

func NewPopulatedSpec

func NewPopulatedSpec(r randyOci, easy bool) *Spec

func OCItoGRPC

func OCItoGRPC(ociSpec *specs.Spec) (*Spec, error)

func (*Spec) Descriptor

func (*Spec) Descriptor() ([]byte, []int)

func (*Spec) Equal

func (this *Spec) Equal(that interface{}) bool

func (*Spec) GetAnnotations

func (m *Spec) GetAnnotations() map[string]string

func (*Spec) GetHooks

func (m *Spec) GetHooks() *Hooks

func (*Spec) GetHostname

func (m *Spec) GetHostname() string

func (*Spec) GetLinux

func (m *Spec) GetLinux() *Linux

func (*Spec) GetMounts

func (m *Spec) GetMounts() []Mount

func (*Spec) GetProcess

func (m *Spec) GetProcess() *Process

func (*Spec) GetRoot

func (m *Spec) GetRoot() *Root

func (*Spec) GetSolaris

func (m *Spec) GetSolaris() *Solaris

func (*Spec) GetVersion

func (m *Spec) GetVersion() string

func (*Spec) GetWindows

func (m *Spec) GetWindows() *Windows

func (*Spec) ProtoMessage

func (*Spec) ProtoMessage()

func (*Spec) Reset

func (m *Spec) Reset()

func (*Spec) String

func (m *Spec) String() string

type StartContainerRequest

type StartContainerRequest struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
}

func (*StartContainerRequest) Descriptor

func (*StartContainerRequest) Descriptor() ([]byte, []int)

func (*StartContainerRequest) GetContainerId

func (m *StartContainerRequest) GetContainerId() string

func (*StartContainerRequest) ProtoMessage

func (*StartContainerRequest) ProtoMessage()

func (*StartContainerRequest) Reset

func (m *StartContainerRequest) Reset()

func (*StartContainerRequest) String

func (m *StartContainerRequest) String() string

type Storage

type Storage struct {
	Driver     string   `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	Source     string   `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	Fstype     string   `protobuf:"bytes,3,opt,name=fstype,proto3" json:"fstype,omitempty"`
	Options    []string `protobuf:"bytes,4,rep,name=options" json:"options,omitempty"`
	MountPoint string   `protobuf:"bytes,5,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"`
}

func (*Storage) Descriptor

func (*Storage) Descriptor() ([]byte, []int)

func (*Storage) GetDriver

func (m *Storage) GetDriver() string

func (*Storage) GetFstype

func (m *Storage) GetFstype() string

func (*Storage) GetMountPoint

func (m *Storage) GetMountPoint() string

func (*Storage) GetOptions

func (m *Storage) GetOptions() []string

func (*Storage) GetSource

func (m *Storage) GetSource() string

func (*Storage) ProtoMessage

func (*Storage) ProtoMessage()

func (*Storage) Reset

func (m *Storage) Reset()

func (*Storage) String

func (m *Storage) String() string

type StringUser

type StringUser struct {
	Uid            string   `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Gid            string   `protobuf:"bytes,2,opt,name=gid,proto3" json:"gid,omitempty"`
	AdditionalGids []string `protobuf:"bytes,3,rep,name=additionalGids" json:"additionalGids,omitempty"`
}

func (*StringUser) Descriptor

func (*StringUser) Descriptor() ([]byte, []int)

func (*StringUser) GetAdditionalGids

func (m *StringUser) GetAdditionalGids() []string

func (*StringUser) GetGid

func (m *StringUser) GetGid() string

func (*StringUser) GetUid

func (m *StringUser) GetUid() string

func (*StringUser) ProtoMessage

func (*StringUser) ProtoMessage()

func (*StringUser) Reset

func (m *StringUser) Reset()

func (*StringUser) String

func (m *StringUser) String() string

type TtyWinResizeRequest

type TtyWinResizeRequest struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	PID         uint32 `protobuf:"varint,2,opt,name=PID,proto3" json:"PID,omitempty"`
	Row         uint32 `protobuf:"varint,3,opt,name=row,proto3" json:"row,omitempty"`
	Column      uint32 `protobuf:"varint,4,opt,name=column,proto3" json:"column,omitempty"`
}

func (*TtyWinResizeRequest) Descriptor

func (*TtyWinResizeRequest) Descriptor() ([]byte, []int)

func (*TtyWinResizeRequest) GetColumn

func (m *TtyWinResizeRequest) GetColumn() uint32

func (*TtyWinResizeRequest) GetContainerId

func (m *TtyWinResizeRequest) GetContainerId() string

func (*TtyWinResizeRequest) GetPID

func (m *TtyWinResizeRequest) GetPID() uint32

func (*TtyWinResizeRequest) GetRow

func (m *TtyWinResizeRequest) GetRow() uint32

func (*TtyWinResizeRequest) ProtoMessage

func (*TtyWinResizeRequest) ProtoMessage()

func (*TtyWinResizeRequest) Reset

func (m *TtyWinResizeRequest) Reset()

func (*TtyWinResizeRequest) String

func (m *TtyWinResizeRequest) String() string

type UpdateInterfaceRequest

type UpdateInterfaceRequest struct {
	Type      UpdateType `protobuf:"varint,1,opt,name=type,proto3,enum=grpc.UpdateType" json:"type,omitempty"`
	Interface *Interface `protobuf:"bytes,2,opt,name=interface" json:"interface,omitempty"`
}

func (*UpdateInterfaceRequest) Descriptor

func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int)

func (*UpdateInterfaceRequest) GetInterface

func (m *UpdateInterfaceRequest) GetInterface() *Interface

func (*UpdateInterfaceRequest) GetType

func (m *UpdateInterfaceRequest) GetType() UpdateType

func (*UpdateInterfaceRequest) ProtoMessage

func (*UpdateInterfaceRequest) ProtoMessage()

func (*UpdateInterfaceRequest) Reset

func (m *UpdateInterfaceRequest) Reset()

func (*UpdateInterfaceRequest) String

func (m *UpdateInterfaceRequest) String() string

type UpdateType

type UpdateType int32
const (
	UpdateType_None     UpdateType = 0
	UpdateType_AddIP    UpdateType = 1
	UpdateType_RemoveIP UpdateType = 2
	UpdateType_Name     UpdateType = 4
	UpdateType_MTU      UpdateType = 8
)

func (UpdateType) EnumDescriptor

func (UpdateType) EnumDescriptor() ([]byte, []int)

func (UpdateType) String

func (x UpdateType) String() string

type User

type User struct {
	// UID is the user id.
	UID uint32 `protobuf:"varint,1,opt,name=UID,proto3" json:"UID,omitempty"`
	// GID is the group id.
	GID uint32 `protobuf:"varint,2,opt,name=GID,proto3" json:"GID,omitempty"`
	// AdditionalGids are additional group ids set for the container's process.
	AdditionalGids []uint32 `protobuf:"varint,3,rep,packed,name=AdditionalGids" json:"AdditionalGids,omitempty"`
	// Username is the user name.
	Username string `protobuf:"bytes,4,opt,name=Username,proto3" json:"Username,omitempty"`
}

func NewPopulatedUser

func NewPopulatedUser(r randyOci, easy bool) *User

func (*User) Descriptor

func (*User) Descriptor() ([]byte, []int)

func (*User) Equal

func (this *User) Equal(that interface{}) bool

func (*User) GetAdditionalGids

func (m *User) GetAdditionalGids() []uint32

func (*User) GetGID

func (m *User) GetGID() uint32

func (*User) GetUID

func (m *User) GetUID() uint32

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

type WaitProcessRequest

type WaitProcessRequest struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	PID         uint32 `protobuf:"varint,2,opt,name=PID,proto3" json:"PID,omitempty"`
}

func (*WaitProcessRequest) Descriptor

func (*WaitProcessRequest) Descriptor() ([]byte, []int)

func (*WaitProcessRequest) GetContainerId

func (m *WaitProcessRequest) GetContainerId() string

func (*WaitProcessRequest) GetPID

func (m *WaitProcessRequest) GetPID() uint32

func (*WaitProcessRequest) ProtoMessage

func (*WaitProcessRequest) ProtoMessage()

func (*WaitProcessRequest) Reset

func (m *WaitProcessRequest) Reset()

func (*WaitProcessRequest) String

func (m *WaitProcessRequest) String() string

type WaitProcessResponse

type WaitProcessResponse struct {
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
}

func (*WaitProcessResponse) Descriptor

func (*WaitProcessResponse) Descriptor() ([]byte, []int)

func (*WaitProcessResponse) GetStatus

func (m *WaitProcessResponse) GetStatus() int32

func (*WaitProcessResponse) ProtoMessage

func (*WaitProcessResponse) ProtoMessage()

func (*WaitProcessResponse) Reset

func (m *WaitProcessResponse) Reset()

func (*WaitProcessResponse) String

func (m *WaitProcessResponse) String() string

type Windows

type Windows struct {
	// Dummy string, never used.
	Dummy string `protobuf:"bytes,1,opt,name=dummy,proto3" json:"dummy,omitempty"`
}

func NewPopulatedWindows

func NewPopulatedWindows(r randyOci, easy bool) *Windows

func (*Windows) Descriptor

func (*Windows) Descriptor() ([]byte, []int)

func (*Windows) Equal

func (this *Windows) Equal(that interface{}) bool

func (*Windows) GetDummy

func (m *Windows) GetDummy() string

func (*Windows) ProtoMessage

func (*Windows) ProtoMessage()

func (*Windows) Reset

func (m *Windows) Reset()

func (*Windows) String

func (m *Windows) String() string

type WriteStreamRequest

type WriteStreamRequest struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	PID         uint32 `protobuf:"varint,2,opt,name=PID,proto3" json:"PID,omitempty"`
	Data        []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

func (*WriteStreamRequest) Descriptor

func (*WriteStreamRequest) Descriptor() ([]byte, []int)

func (*WriteStreamRequest) GetContainerId

func (m *WriteStreamRequest) GetContainerId() string

func (*WriteStreamRequest) GetData

func (m *WriteStreamRequest) GetData() []byte

func (*WriteStreamRequest) GetPID

func (m *WriteStreamRequest) GetPID() uint32

func (*WriteStreamRequest) ProtoMessage

func (*WriteStreamRequest) ProtoMessage()

func (*WriteStreamRequest) Reset

func (m *WriteStreamRequest) Reset()

func (*WriteStreamRequest) String

func (m *WriteStreamRequest) String() string

type WriteStreamResponse

type WriteStreamResponse struct {
	Len uint32 `protobuf:"varint,1,opt,name=len,proto3" json:"len,omitempty"`
}

func (*WriteStreamResponse) Descriptor

func (*WriteStreamResponse) Descriptor() ([]byte, []int)

func (*WriteStreamResponse) GetLen

func (m *WriteStreamResponse) GetLen() uint32

func (*WriteStreamResponse) ProtoMessage

func (*WriteStreamResponse) ProtoMessage()

func (*WriteStreamResponse) Reset

func (m *WriteStreamResponse) Reset()

func (*WriteStreamResponse) String

func (m *WriteStreamResponse) String() string

Jump to

Keyboard shortcuts

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