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 ¶
- Variables
- func GRPCtoOCI(grpcSpec *Spec) (*specs.Spec, error)
- func RegisterAgentServiceServer(s *grpc1.Server, srv AgentServiceServer)
- type AddInterfaceRequest
- type AgentServiceClient
- type AgentServiceServer
- type Box
- type CloseStdinRequest
- type CreateContainerRequest
- func (*CreateContainerRequest) Descriptor() ([]byte, []int)
- func (m *CreateContainerRequest) GetContainerId() string
- func (m *CreateContainerRequest) GetOCI() *Spec
- func (m *CreateContainerRequest) GetStorages() []*Storage
- func (m *CreateContainerRequest) GetStringUser() *StringUser
- func (*CreateContainerRequest) ProtoMessage()
- func (m *CreateContainerRequest) Reset()
- func (m *CreateContainerRequest) String() string
- type CreateSandboxRequest
- func (*CreateSandboxRequest) Descriptor() ([]byte, []int)
- func (m *CreateSandboxRequest) GetDns() []string
- func (m *CreateSandboxRequest) GetHostname() string
- func (m *CreateSandboxRequest) GetSandboxPidns() bool
- func (m *CreateSandboxRequest) GetStorages() []*Storage
- func (*CreateSandboxRequest) ProtoMessage()
- func (m *CreateSandboxRequest) Reset()
- func (m *CreateSandboxRequest) String() string
- type DestroySandboxRequest
- type ExecProcessRequest
- func (*ExecProcessRequest) Descriptor() ([]byte, []int)
- func (m *ExecProcessRequest) GetContainerId() string
- func (m *ExecProcessRequest) GetProcess() *Process
- func (m *ExecProcessRequest) GetStringUser() *StringUser
- func (*ExecProcessRequest) ProtoMessage()
- func (m *ExecProcessRequest) Reset()
- func (m *ExecProcessRequest) String() string
- type Hook
- func (*Hook) Descriptor() ([]byte, []int)
- func (this *Hook) Equal(that interface{}) bool
- func (m *Hook) GetArgs() []string
- func (m *Hook) GetEnv() []string
- func (m *Hook) GetPath() string
- func (m *Hook) GetTimeout() int64
- func (*Hook) ProtoMessage()
- func (m *Hook) Reset()
- func (m *Hook) String() string
- type Hooks
- type IPAddress
- type IPFamily
- type Interface
- func (*Interface) Descriptor() ([]byte, []int)
- func (m *Interface) GetDevice() string
- func (m *Interface) GetHwAddr() string
- func (m *Interface) GetIpAddresses() []*IPAddress
- func (m *Interface) GetMtu() uint64
- func (m *Interface) GetName() string
- func (*Interface) ProtoMessage()
- func (m *Interface) Reset()
- func (m *Interface) String() string
- type Linux
- func (*Linux) Descriptor() ([]byte, []int)
- func (this *Linux) Equal(that interface{}) bool
- func (m *Linux) GetCgroupsPath() string
- func (m *Linux) GetDevices() []LinuxDevice
- func (m *Linux) GetGIDMappings() []LinuxIDMapping
- func (m *Linux) GetIntelRdt() *LinuxIntelRdt
- func (m *Linux) GetMaskedPaths() []string
- func (m *Linux) GetMountLabel() string
- func (m *Linux) GetNamespaces() []LinuxNamespace
- func (m *Linux) GetReadonlyPaths() []string
- func (m *Linux) GetResources() *LinuxResources
- func (m *Linux) GetRootfsPropagation() string
- func (m *Linux) GetSeccomp() *LinuxSeccomp
- func (m *Linux) GetSysctl() map[string]string
- func (m *Linux) GetUIDMappings() []LinuxIDMapping
- func (*Linux) ProtoMessage()
- func (m *Linux) Reset()
- func (m *Linux) String() string
- type LinuxBlockIO
- func (*LinuxBlockIO) Descriptor() ([]byte, []int)
- func (this *LinuxBlockIO) Equal(that interface{}) bool
- func (m *LinuxBlockIO) GetLeafWeight() uint32
- func (m *LinuxBlockIO) GetThrottleReadBpsDevice() []LinuxThrottleDevice
- func (m *LinuxBlockIO) GetThrottleReadIOPSDevice() []LinuxThrottleDevice
- func (m *LinuxBlockIO) GetThrottleWriteBpsDevice() []LinuxThrottleDevice
- func (m *LinuxBlockIO) GetThrottleWriteIOPSDevice() []LinuxThrottleDevice
- func (m *LinuxBlockIO) GetWeight() uint32
- func (m *LinuxBlockIO) GetWeightDevice() []LinuxWeightDevice
- func (*LinuxBlockIO) ProtoMessage()
- func (m *LinuxBlockIO) Reset()
- func (m *LinuxBlockIO) String() string
- type LinuxCPU
- func (*LinuxCPU) Descriptor() ([]byte, []int)
- func (this *LinuxCPU) Equal(that interface{}) bool
- func (m *LinuxCPU) GetCpus() string
- func (m *LinuxCPU) GetMems() string
- func (m *LinuxCPU) GetPeriod() uint64
- func (m *LinuxCPU) GetQuota() int64
- func (m *LinuxCPU) GetRealtimePeriod() uint64
- func (m *LinuxCPU) GetRealtimeRuntime() int64
- func (m *LinuxCPU) GetShares() uint64
- func (*LinuxCPU) ProtoMessage()
- func (m *LinuxCPU) Reset()
- func (m *LinuxCPU) String() string
- type LinuxCapabilities
- func (*LinuxCapabilities) Descriptor() ([]byte, []int)
- func (this *LinuxCapabilities) Equal(that interface{}) bool
- func (m *LinuxCapabilities) GetAmbient() []string
- func (m *LinuxCapabilities) GetBounding() []string
- func (m *LinuxCapabilities) GetEffective() []string
- func (m *LinuxCapabilities) GetInheritable() []string
- func (m *LinuxCapabilities) GetPermitted() []string
- func (*LinuxCapabilities) ProtoMessage()
- func (m *LinuxCapabilities) Reset()
- func (m *LinuxCapabilities) String() string
- type LinuxDevice
- func (*LinuxDevice) Descriptor() ([]byte, []int)
- func (this *LinuxDevice) Equal(that interface{}) bool
- func (m *LinuxDevice) GetFileMode() uint32
- func (m *LinuxDevice) GetGID() uint32
- func (m *LinuxDevice) GetMajor() int64
- func (m *LinuxDevice) GetMinor() int64
- func (m *LinuxDevice) GetPath() string
- func (m *LinuxDevice) GetType() string
- func (m *LinuxDevice) GetUID() uint32
- func (*LinuxDevice) ProtoMessage()
- func (m *LinuxDevice) Reset()
- func (m *LinuxDevice) String() string
- type LinuxDeviceCgroup
- func (*LinuxDeviceCgroup) Descriptor() ([]byte, []int)
- func (this *LinuxDeviceCgroup) Equal(that interface{}) bool
- func (m *LinuxDeviceCgroup) GetAccess() string
- func (m *LinuxDeviceCgroup) GetAllow() bool
- func (m *LinuxDeviceCgroup) GetMajor() int64
- func (m *LinuxDeviceCgroup) GetMinor() int64
- func (m *LinuxDeviceCgroup) GetType() string
- func (*LinuxDeviceCgroup) ProtoMessage()
- func (m *LinuxDeviceCgroup) Reset()
- func (m *LinuxDeviceCgroup) String() string
- type LinuxHugepageLimit
- func (*LinuxHugepageLimit) Descriptor() ([]byte, []int)
- func (this *LinuxHugepageLimit) Equal(that interface{}) bool
- func (m *LinuxHugepageLimit) GetLimit() uint64
- func (m *LinuxHugepageLimit) GetPagesize() string
- func (*LinuxHugepageLimit) ProtoMessage()
- func (m *LinuxHugepageLimit) Reset()
- func (m *LinuxHugepageLimit) String() string
- type LinuxIDMapping
- func (*LinuxIDMapping) Descriptor() ([]byte, []int)
- func (this *LinuxIDMapping) Equal(that interface{}) bool
- func (m *LinuxIDMapping) GetContainerID() uint32
- func (m *LinuxIDMapping) GetHostID() uint32
- func (m *LinuxIDMapping) GetSize_() uint32
- func (*LinuxIDMapping) ProtoMessage()
- func (m *LinuxIDMapping) Reset()
- func (m *LinuxIDMapping) String() string
- type LinuxIntelRdt
- type LinuxInterfacePriority
- func (*LinuxInterfacePriority) Descriptor() ([]byte, []int)
- func (this *LinuxInterfacePriority) Equal(that interface{}) bool
- func (m *LinuxInterfacePriority) GetName() string
- func (m *LinuxInterfacePriority) GetPriority() uint32
- func (*LinuxInterfacePriority) ProtoMessage()
- func (m *LinuxInterfacePriority) Reset()
- func (m *LinuxInterfacePriority) String() string
- type LinuxMemory
- func (*LinuxMemory) Descriptor() ([]byte, []int)
- func (this *LinuxMemory) Equal(that interface{}) bool
- func (m *LinuxMemory) GetDisableOOMKiller() bool
- func (m *LinuxMemory) GetKernel() int64
- func (m *LinuxMemory) GetKernelTCP() int64
- func (m *LinuxMemory) GetLimit() int64
- func (m *LinuxMemory) GetReservation() int64
- func (m *LinuxMemory) GetSwap() int64
- func (m *LinuxMemory) GetSwappiness() uint64
- func (*LinuxMemory) ProtoMessage()
- func (m *LinuxMemory) Reset()
- func (m *LinuxMemory) String() string
- type LinuxNamespace
- func (*LinuxNamespace) Descriptor() ([]byte, []int)
- func (this *LinuxNamespace) Equal(that interface{}) bool
- func (m *LinuxNamespace) GetPath() string
- func (m *LinuxNamespace) GetType() string
- func (*LinuxNamespace) ProtoMessage()
- func (m *LinuxNamespace) Reset()
- func (m *LinuxNamespace) String() string
- type LinuxNetwork
- func (*LinuxNetwork) Descriptor() ([]byte, []int)
- func (this *LinuxNetwork) Equal(that interface{}) bool
- func (m *LinuxNetwork) GetClassID() uint32
- func (m *LinuxNetwork) GetPriorities() []LinuxInterfacePriority
- func (*LinuxNetwork) ProtoMessage()
- func (m *LinuxNetwork) Reset()
- func (m *LinuxNetwork) String() string
- type LinuxPids
- type LinuxResources
- func (*LinuxResources) Descriptor() ([]byte, []int)
- func (this *LinuxResources) Equal(that interface{}) bool
- func (m *LinuxResources) GetBlockIO() *LinuxBlockIO
- func (m *LinuxResources) GetCPU() *LinuxCPU
- func (m *LinuxResources) GetDevices() []LinuxDeviceCgroup
- func (m *LinuxResources) GetHugepageLimits() []LinuxHugepageLimit
- func (m *LinuxResources) GetMemory() *LinuxMemory
- func (m *LinuxResources) GetNetwork() *LinuxNetwork
- func (m *LinuxResources) GetPids() *LinuxPids
- func (*LinuxResources) ProtoMessage()
- func (m *LinuxResources) Reset()
- func (m *LinuxResources) String() string
- type LinuxSeccomp
- func (*LinuxSeccomp) Descriptor() ([]byte, []int)
- func (this *LinuxSeccomp) Equal(that interface{}) bool
- func (m *LinuxSeccomp) GetArchitectures() []string
- func (m *LinuxSeccomp) GetDefaultAction() string
- func (m *LinuxSeccomp) GetSyscalls() []LinuxSyscall
- func (*LinuxSeccomp) ProtoMessage()
- func (m *LinuxSeccomp) Reset()
- func (m *LinuxSeccomp) String() string
- type LinuxSeccompArg
- func (*LinuxSeccompArg) Descriptor() ([]byte, []int)
- func (this *LinuxSeccompArg) Equal(that interface{}) bool
- func (m *LinuxSeccompArg) GetIndex() uint64
- func (m *LinuxSeccompArg) GetOp() string
- func (m *LinuxSeccompArg) GetValue() uint64
- func (m *LinuxSeccompArg) GetValueTwo() uint64
- func (*LinuxSeccompArg) ProtoMessage()
- func (m *LinuxSeccompArg) Reset()
- func (m *LinuxSeccompArg) String() string
- type LinuxSyscall
- func (*LinuxSyscall) Descriptor() ([]byte, []int)
- func (this *LinuxSyscall) Equal(that interface{}) bool
- func (m *LinuxSyscall) GetAction() string
- func (m *LinuxSyscall) GetArgs() []LinuxSeccompArg
- func (m *LinuxSyscall) GetNames() []string
- func (*LinuxSyscall) ProtoMessage()
- func (m *LinuxSyscall) Reset()
- func (m *LinuxSyscall) String() string
- type LinuxThrottleDevice
- func (*LinuxThrottleDevice) Descriptor() ([]byte, []int)
- func (this *LinuxThrottleDevice) Equal(that interface{}) bool
- func (m *LinuxThrottleDevice) GetMajor() int64
- func (m *LinuxThrottleDevice) GetMinor() int64
- func (m *LinuxThrottleDevice) GetRate() uint64
- func (*LinuxThrottleDevice) ProtoMessage()
- func (m *LinuxThrottleDevice) Reset()
- func (m *LinuxThrottleDevice) String() string
- type LinuxWeightDevice
- func (*LinuxWeightDevice) Descriptor() ([]byte, []int)
- func (this *LinuxWeightDevice) Equal(that interface{}) bool
- func (m *LinuxWeightDevice) GetLeafWeight() uint32
- func (m *LinuxWeightDevice) GetMajor() int64
- func (m *LinuxWeightDevice) GetMinor() int64
- func (m *LinuxWeightDevice) GetWeight() uint32
- func (*LinuxWeightDevice) ProtoMessage()
- func (m *LinuxWeightDevice) Reset()
- func (m *LinuxWeightDevice) String() string
- type Mount
- func (*Mount) Descriptor() ([]byte, []int)
- func (this *Mount) Equal(that interface{}) bool
- func (m *Mount) GetDestination() string
- func (m *Mount) GetOptions() []string
- func (m *Mount) GetSource() string
- func (m *Mount) GetType() string
- func (*Mount) ProtoMessage()
- func (m *Mount) Reset()
- func (m *Mount) String() string
- type NewProcessResponse
- type OnlineCPUMemRequest
- type POSIXRlimit
- func (*POSIXRlimit) Descriptor() ([]byte, []int)
- func (this *POSIXRlimit) Equal(that interface{}) bool
- func (m *POSIXRlimit) GetHard() uint64
- func (m *POSIXRlimit) GetSoft() uint64
- func (m *POSIXRlimit) GetType() string
- func (*POSIXRlimit) ProtoMessage()
- func (m *POSIXRlimit) Reset()
- func (m *POSIXRlimit) String() string
- type Process
- func (*Process) Descriptor() ([]byte, []int)
- func (this *Process) Equal(that interface{}) bool
- func (m *Process) GetApparmorProfile() string
- func (m *Process) GetArgs() []string
- func (m *Process) GetCapabilities() *LinuxCapabilities
- func (m *Process) GetConsoleSize() *Box
- func (m *Process) GetCwd() string
- func (m *Process) GetEnv() []string
- func (m *Process) GetNoNewPrivileges() bool
- func (m *Process) GetOOMScoreAdj() int64
- func (m *Process) GetRlimits() []POSIXRlimit
- func (m *Process) GetSelinuxLabel() string
- func (m *Process) GetTerminal() bool
- func (m *Process) GetUser() User
- func (*Process) ProtoMessage()
- func (m *Process) Reset()
- func (m *Process) String() string
- type ReadStreamRequest
- func (*ReadStreamRequest) Descriptor() ([]byte, []int)
- func (m *ReadStreamRequest) GetContainerId() string
- func (m *ReadStreamRequest) GetLen() uint32
- func (m *ReadStreamRequest) GetPID() uint32
- func (*ReadStreamRequest) ProtoMessage()
- func (m *ReadStreamRequest) Reset()
- func (m *ReadStreamRequest) String() string
- type ReadStreamResponse
- type RemoveContainerRequest
- func (*RemoveContainerRequest) Descriptor() ([]byte, []int)
- func (m *RemoveContainerRequest) GetContainerId() string
- func (m *RemoveContainerRequest) GetTimeout() uint32
- func (*RemoveContainerRequest) ProtoMessage()
- func (m *RemoveContainerRequest) Reset()
- func (m *RemoveContainerRequest) String() string
- type RemoveInterfaceRequest
- type Root
- type Route
- type RouteRequest
- type SignalProcessRequest
- func (*SignalProcessRequest) Descriptor() ([]byte, []int)
- func (m *SignalProcessRequest) GetContainerId() string
- func (m *SignalProcessRequest) GetPID() uint32
- func (m *SignalProcessRequest) GetSignal() uint32
- func (*SignalProcessRequest) ProtoMessage()
- func (m *SignalProcessRequest) Reset()
- func (m *SignalProcessRequest) String() string
- type Solaris
- type Spec
- func (*Spec) Descriptor() ([]byte, []int)
- func (this *Spec) Equal(that interface{}) bool
- func (m *Spec) GetAnnotations() map[string]string
- func (m *Spec) GetHooks() *Hooks
- func (m *Spec) GetHostname() string
- func (m *Spec) GetLinux() *Linux
- func (m *Spec) GetMounts() []Mount
- func (m *Spec) GetProcess() *Process
- func (m *Spec) GetRoot() *Root
- func (m *Spec) GetSolaris() *Solaris
- func (m *Spec) GetVersion() string
- func (m *Spec) GetWindows() *Windows
- func (*Spec) ProtoMessage()
- func (m *Spec) Reset()
- func (m *Spec) String() string
- type StartContainerRequest
- type Storage
- func (*Storage) Descriptor() ([]byte, []int)
- func (m *Storage) GetDriver() string
- func (m *Storage) GetFstype() string
- func (m *Storage) GetMountPoint() string
- func (m *Storage) GetOptions() []string
- func (m *Storage) GetSource() string
- func (*Storage) ProtoMessage()
- func (m *Storage) Reset()
- func (m *Storage) String() string
- type StringUser
- type TtyWinResizeRequest
- func (*TtyWinResizeRequest) Descriptor() ([]byte, []int)
- func (m *TtyWinResizeRequest) GetColumn() uint32
- func (m *TtyWinResizeRequest) GetContainerId() string
- func (m *TtyWinResizeRequest) GetPID() uint32
- func (m *TtyWinResizeRequest) GetRow() uint32
- func (*TtyWinResizeRequest) ProtoMessage()
- func (m *TtyWinResizeRequest) Reset()
- func (m *TtyWinResizeRequest) String() string
- type UpdateInterfaceRequest
- func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int)
- func (m *UpdateInterfaceRequest) GetInterface() *Interface
- func (m *UpdateInterfaceRequest) GetType() UpdateType
- func (*UpdateInterfaceRequest) ProtoMessage()
- func (m *UpdateInterfaceRequest) Reset()
- func (m *UpdateInterfaceRequest) String() string
- type UpdateType
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (this *User) Equal(that interface{}) bool
- func (m *User) GetAdditionalGids() []uint32
- func (m *User) GetGID() uint32
- func (m *User) GetUID() uint32
- func (m *User) GetUsername() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- type WaitProcessRequest
- type WaitProcessResponse
- type Windows
- type WriteStreamRequest
- func (*WriteStreamRequest) Descriptor() ([]byte, []int)
- func (m *WriteStreamRequest) GetContainerId() string
- func (m *WriteStreamRequest) GetData() []byte
- func (m *WriteStreamRequest) GetPID() uint32
- func (*WriteStreamRequest) ProtoMessage()
- func (m *WriteStreamRequest) Reset()
- func (m *WriteStreamRequest) String() string
- type WriteStreamResponse
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 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 (*Box) Descriptor ¶
func (*Box) ProtoMessage ¶
func (*Box) ProtoMessage()
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 (*Hook) Descriptor ¶
func (*Hook) GetTimeout ¶
func (*Hook) ProtoMessage ¶
func (*Hook) ProtoMessage()
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 (*Hooks) Descriptor ¶
func (*Hooks) GetPoststart ¶
func (*Hooks) GetPoststop ¶
func (*Hooks) GetPrestart ¶
func (*Hooks) ProtoMessage ¶
func (*Hooks) ProtoMessage()
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) GetAddress ¶
func (*IPAddress) ProtoMessage ¶
func (*IPAddress) ProtoMessage()
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) GetIpAddresses ¶
func (*Interface) ProtoMessage ¶
func (*Interface) ProtoMessage()
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 (*Linux) Descriptor ¶
func (*Linux) GetCgroupsPath ¶
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 (*Linux) GetMountLabel ¶
func (*Linux) GetNamespaces ¶
func (m *Linux) GetNamespaces() []LinuxNamespace
func (*Linux) GetReadonlyPaths ¶
func (*Linux) GetResources ¶
func (m *Linux) GetResources() *LinuxResources
func (*Linux) GetRootfsPropagation ¶
func (*Linux) GetSeccomp ¶
func (m *Linux) GetSeccomp() *LinuxSeccomp
func (*Linux) GetUIDMappings ¶
func (m *Linux) GetUIDMappings() []LinuxIDMapping
func (*Linux) ProtoMessage ¶
func (*Linux) ProtoMessage()
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 { 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"` }Shares
func NewPopulatedLinuxCPU ¶
func (*LinuxCPU) Descriptor ¶
func (*LinuxCPU) GetRealtimePeriod ¶
func (*LinuxCPU) GetRealtimeRuntime ¶
func (*LinuxCPU) ProtoMessage ¶
func (*LinuxCPU) ProtoMessage()
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 (*LinuxPids) Descriptor ¶
func (*LinuxPids) ProtoMessage ¶
func (*LinuxPids) ProtoMessage()
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 (*Mount) Descriptor ¶
func (*Mount) GetDestination ¶
func (*Mount) GetOptions ¶
func (*Mount) ProtoMessage ¶
func (*Mount) ProtoMessage()
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 (*Process) Descriptor ¶
func (*Process) GetApparmorProfile ¶
func (*Process) GetCapabilities ¶
func (m *Process) GetCapabilities() *LinuxCapabilities
func (*Process) GetConsoleSize ¶
func (*Process) GetNoNewPrivileges ¶
func (*Process) GetOOMScoreAdj ¶
func (*Process) GetRlimits ¶
func (m *Process) GetRlimits() []POSIXRlimit
func (*Process) GetSelinuxLabel ¶
func (*Process) GetTerminal ¶
func (*Process) ProtoMessage ¶
func (*Process) ProtoMessage()
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 (*Root) Descriptor ¶
func (*Root) GetReadonly ¶
func (*Root) ProtoMessage ¶
func (*Root) ProtoMessage()
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) GetGateway ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
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 (*Solaris) Descriptor ¶
func (*Solaris) ProtoMessage ¶
func (*Solaris) ProtoMessage()
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 (*Spec) Descriptor ¶
func (*Spec) GetAnnotations ¶
func (*Spec) GetHostname ¶
func (*Spec) GetProcess ¶
func (*Spec) GetSolaris ¶
func (*Spec) GetVersion ¶
func (*Spec) GetWindows ¶
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
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) GetMountPoint ¶
func (*Storage) GetOptions ¶
func (*Storage) ProtoMessage ¶
func (*Storage) ProtoMessage()
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 (*User) Descriptor ¶
func (*User) GetAdditionalGids ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
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 (*Windows) Descriptor ¶
func (*Windows) ProtoMessage ¶
func (*Windows) ProtoMessage()
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
Click to show internal directories.
Click to hide internal directories.