Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/pkg/agent/api/grpc/hyperstart.pb.go b/pkg/agent/api/grpc/hyperstart.pb.go
- index 8e77e84..100f3f0 100644
- --- a/pkg/agent/api/grpc/hyperstart.pb.go
- +++ b/pkg/agent/api/grpc/hyperstart.pb.go
- @@ -1,6 +1,5 @@
- -// Code generated by protoc-gen-go.
- +// Code generated by protoc-gen-go. DO NOT EDIT.
- // source: hyperstart.proto
- -// DO NOT EDIT!
- /*
- Package grpc is a generated protocol buffer package.
- @@ -95,6 +94,13 @@ func (m *CreateContainerRequest) String() string { return proto.Compa
- func (*CreateContainerRequest) ProtoMessage() {}
- func (*CreateContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
- +func (m *CreateContainerRequest) GetContainerId() string {
- + if m != nil {
- + return m.ContainerId
- + }
- + return ""
- +}
- +
- func (m *CreateContainerRequest) GetOCI() *Spec {
- if m != nil {
- return m.OCI
- @@ -111,6 +117,13 @@ func (m *StartContainerRequest) String() string { return proto.Compac
- func (*StartContainerRequest) ProtoMessage() {}
- func (*StartContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
- +func (m *StartContainerRequest) GetContainerId() string {
- + if m != nil {
- + return m.ContainerId
- + }
- + return ""
- +}
- +
- type ExecProcessRequest struct {
- ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
- Process *Process `protobuf:"bytes,2,opt,name=process" json:"process,omitempty"`
- @@ -121,6 +134,13 @@ func (m *ExecProcessRequest) String() string { return proto.CompactTe
- func (*ExecProcessRequest) ProtoMessage() {}
- func (*ExecProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
- +func (m *ExecProcessRequest) GetContainerId() string {
- + if m != nil {
- + return m.ContainerId
- + }
- + return ""
- +}
- +
- func (m *ExecProcessRequest) GetProcess() *Process {
- if m != nil {
- return m.Process
- @@ -139,6 +159,27 @@ func (m *SignalProcessRequest) String() string { return proto.Compact
- func (*SignalProcessRequest) ProtoMessage() {}
- func (*SignalProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
- +func (m *SignalProcessRequest) GetContainerId() string {
- + if m != nil {
- + return m.ContainerId
- + }
- + return ""
- +}
- +
- +func (m *SignalProcessRequest) GetProcessId() string {
- + if m != nil {
- + return m.ProcessId
- + }
- + return ""
- +}
- +
- +func (m *SignalProcessRequest) GetSignal() uint32 {
- + if m != nil {
- + return m.Signal
- + }
- + return 0
- +}
- +
- type WaitProcessRequest struct {
- ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
- ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
- @@ -149,6 +190,20 @@ func (m *WaitProcessRequest) String() string { return proto.CompactTe
- func (*WaitProcessRequest) ProtoMessage() {}
- func (*WaitProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
- +func (m *WaitProcessRequest) GetContainerId() string {
- + if m != nil {
- + return m.ContainerId
- + }
- + return ""
- +}
- +
- +func (m *WaitProcessRequest) GetProcessId() string {
- + if m != nil {
- + return m.ProcessId
- + }
- + return ""
- +}
- +
- type WaitProcessResponse struct {
- Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
- }
- @@ -158,6 +213,13 @@ func (m *WaitProcessResponse) String() string { return proto.CompactT
- func (*WaitProcessResponse) ProtoMessage() {}
- func (*WaitProcessResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
- +func (m *WaitProcessResponse) GetStatus() int32 {
- + if m != nil {
- + return m.Status
- + }
- + return 0
- +}
- +
- type WriteStreamRequest struct {
- ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
- ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
- @@ -169,6 +231,27 @@ func (m *WriteStreamRequest) String() string { return proto.CompactTe
- func (*WriteStreamRequest) ProtoMessage() {}
- func (*WriteStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
- +func (m *WriteStreamRequest) GetContainerId() string {
- + if m != nil {
- + return m.ContainerId
- + }
- + return ""
- +}
- +
- +func (m *WriteStreamRequest) GetProcessId() string {
- + if m != nil {
- + return m.ProcessId
- + }
- + return ""
- +}
- +
- +func (m *WriteStreamRequest) GetData() []byte {
- + if m != nil {
- + return m.Data
- + }
- + return nil
- +}
- +
- type WriteStreamResponse struct {
- Len uint32 `protobuf:"varint,1,opt,name=len" json:"len,omitempty"`
- }
- @@ -178,6 +261,13 @@ func (m *WriteStreamResponse) String() string { return proto.CompactT
- func (*WriteStreamResponse) ProtoMessage() {}
- func (*WriteStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
- +func (m *WriteStreamResponse) GetLen() uint32 {
- + if m != nil {
- + return m.Len
- + }
- + return 0
- +}
- +
- type ReadStreamRequest struct {
- ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
- ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
- @@ -189,6 +279,27 @@ func (m *ReadStreamRequest) String() string { return proto.CompactTex
- func (*ReadStreamRequest) ProtoMessage() {}
- func (*ReadStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
- +func (m *ReadStreamRequest) GetContainerId() string {
- + if m != nil {
- + return m.ContainerId
- + }
- + return ""
- +}
- +
- +func (m *ReadStreamRequest) GetProcessId() string {
- + if m != nil {
- + return m.ProcessId
- + }
- + return ""
- +}
- +
- +func (m *ReadStreamRequest) GetLen() uint32 {
- + if m != nil {
- + return m.Len
- + }
- + return 0
- +}
- +
- type ReadStreamResponse struct {
- Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
- }
- @@ -198,6 +309,13 @@ func (m *ReadStreamResponse) String() string { return proto.CompactTe
- func (*ReadStreamResponse) ProtoMessage() {}
- func (*ReadStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
- +func (m *ReadStreamResponse) GetData() []byte {
- + if m != nil {
- + return m.Data
- + }
- + return nil
- +}
- +
- type CloseStdinRequest struct {
- ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
- ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
- @@ -208,6 +326,20 @@ func (m *CloseStdinRequest) String() string { return proto.CompactTex
- func (*CloseStdinRequest) ProtoMessage() {}
- func (*CloseStdinRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
- +func (m *CloseStdinRequest) GetContainerId() string {
- + if m != nil {
- + return m.ContainerId
- + }
- + return ""
- +}
- +
- +func (m *CloseStdinRequest) GetProcessId() string {
- + if m != nil {
- + return m.ProcessId
- + }
- + return ""
- +}
- +
- type TtyWinResizeRequest struct {
- ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
- ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
- @@ -220,6 +352,34 @@ func (m *TtyWinResizeRequest) String() string { return proto.CompactT
- func (*TtyWinResizeRequest) ProtoMessage() {}
- func (*TtyWinResizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
- +func (m *TtyWinResizeRequest) GetContainerId() string {
- + if m != nil {
- + return m.ContainerId
- + }
- + return ""
- +}
- +
- +func (m *TtyWinResizeRequest) GetProcessId() string {
- + if m != nil {
- + return m.ProcessId
- + }
- + return ""
- +}
- +
- +func (m *TtyWinResizeRequest) GetRow() uint32 {
- + if m != nil {
- + return m.Row
- + }
- + return 0
- +}
- +
- +func (m *TtyWinResizeRequest) GetColumn() uint32 {
- + if m != nil {
- + return m.Column
- + }
- + return 0
- +}
- +
- type StartSandboxRequest struct {
- Hostname string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"`
- Dns []string `protobuf:"bytes,2,rep,name=dns" json:"dns,omitempty"`
- @@ -230,6 +390,20 @@ func (m *StartSandboxRequest) String() string { return proto.CompactT
- func (*StartSandboxRequest) ProtoMessage() {}
- func (*StartSandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
- +func (m *StartSandboxRequest) GetHostname() string {
- + if m != nil {
- + return m.Hostname
- + }
- + return ""
- +}
- +
- +func (m *StartSandboxRequest) GetDns() []string {
- + if m != nil {
- + return m.Dns
- + }
- + return nil
- +}
- +
- type DestroySandboxRequest struct {
- }
- @@ -248,6 +422,20 @@ func (m *IpAddress) String() string { return proto.CompactTextString(
- func (*IpAddress) ProtoMessage() {}
- func (*IpAddress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
- +func (m *IpAddress) GetAddress() string {
- + if m != nil {
- + return m.Address
- + }
- + return ""
- +}
- +
- +func (m *IpAddress) GetMask() string {
- + if m != nil {
- + return m.Mask
- + }
- + return ""
- +}
- +
- type UpdateInterfaceRequest struct {
- Type uint64 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"`
- Device string `protobuf:"bytes,2,opt,name=device" json:"device,omitempty"`
- @@ -261,6 +449,27 @@ func (m *UpdateInterfaceRequest) String() string { return proto.Compa
- func (*UpdateInterfaceRequest) ProtoMessage() {}
- func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
- +func (m *UpdateInterfaceRequest) GetType() uint64 {
- + if m != nil {
- + return m.Type
- + }
- + return 0
- +}
- +
- +func (m *UpdateInterfaceRequest) GetDevice() string {
- + if m != nil {
- + return m.Device
- + }
- + return ""
- +}
- +
- +func (m *UpdateInterfaceRequest) GetNewName() string {
- + if m != nil {
- + return m.NewName
- + }
- + return ""
- +}
- +
- func (m *UpdateInterfaceRequest) GetIpAddresses() []*IpAddress {
- if m != nil {
- return m.IpAddresses
- @@ -268,6 +477,13 @@ func (m *UpdateInterfaceRequest) GetIpAddresses() []*IpAddress {
- return nil
- }
- +func (m *UpdateInterfaceRequest) GetMtu() uint64 {
- + if m != nil {
- + return m.Mtu
- + }
- + return 0
- +}
- +
- type AddRouteRequest struct {
- Routes []*Route `protobuf:"bytes,1,rep,name=routes" json:"routes,omitempty"`
- }
- @@ -303,6 +519,27 @@ func (m *StringUser) String() string { return proto.CompactTextString
- func (*StringUser) ProtoMessage() {}
- func (*StringUser) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
- +func (m *StringUser) GetUid() string {
- + if m != nil {
- + return m.Uid
- + }
- + return ""
- +}
- +
- +func (m *StringUser) GetGid() string {
- + if m != nil {
- + return m.Gid
- + }
- + return ""
- +}
- +
- +func (m *StringUser) GetAdditionalGids() []string {
- + if m != nil {
- + return m.AdditionalGids
- + }
- + return nil
- +}
- +
- type Route struct {
- Dest string `protobuf:"bytes,1,opt,name=dest" json:"dest,omitempty"`
- Gateway string `protobuf:"bytes,2,opt,name=gateway" json:"gateway,omitempty"`
- @@ -314,6 +551,27 @@ func (m *Route) String() string { return proto.CompactTextString(m) }
- func (*Route) ProtoMessage() {}
- func (*Route) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
- +func (m *Route) GetDest() string {
- + if m != nil {
- + return m.Dest
- + }
- + return ""
- +}
- +
- +func (m *Route) GetGateway() string {
- + if m != nil {
- + return m.Gateway
- + }
- + return ""
- +}
- +
- +func (m *Route) GetDevice() string {
- + if m != nil {
- + return m.Device
- + }
- + return ""
- +}
- +
- func init() {
- proto.RegisterType((*CreateContainerRequest)(nil), "grpc.CreateContainerRequest")
- proto.RegisterType((*StartContainerRequest)(nil), "grpc.StartContainerRequest")
- @@ -343,7 +601,7 @@ var _ grpc1.ClientConn
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- -const _ = grpc1.SupportPackageIsVersion2
- +const _ = grpc1.SupportPackageIsVersion4
- // Client API for HyperstartService service
- @@ -873,12 +1131,15 @@ var _HyperstartService_serviceDesc = grpc1.ServiceDesc{
- Handler: _HyperstartService_OnlineCPUMem_Handler,
- },
- },
- - Streams: []grpc1.StreamDesc{},
- + Streams: []grpc1.StreamDesc{},
- + Metadata: "hyperstart.proto",
- }
- +func init() { proto.RegisterFile("hyperstart.proto", fileDescriptor0) }
- +
- var fileDescriptor0 = []byte{
- // 868 bytes of a gzipped FileDescriptorProto
- - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x55, 0xdf, 0x6f, 0x1b, 0x45,
- + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdf, 0x6f, 0x1b, 0x45,
- 0x10, 0x96, 0x7b, 0x4e, 0x1a, 0x8f, 0x93, 0xa6, 0x59, 0x93, 0xf4, 0x70, 0x8b, 0x14, 0x0e, 0x89,
- 0xfa, 0x05, 0x57, 0x04, 0x09, 0xa9, 0x48, 0xa8, 0x0a, 0x26, 0x0a, 0x7e, 0x28, 0xad, 0xce, 0x84,
- 0xc0, 0x13, 0x6c, 0x6e, 0xa7, 0xee, 0x81, 0xbd, 0x7b, 0xec, 0xae, 0x71, 0xcd, 0x1b, 0x0f, 0xfc,
- diff --git a/pkg/agent/api/grpc/oci.pb.go b/pkg/agent/api/grpc/oci.pb.go
- index 32bc5ff..70c0008 100644
- --- a/pkg/agent/api/grpc/oci.pb.go
- +++ b/pkg/agent/api/grpc/oci.pb.go
- @@ -1,6 +1,5 @@
- -// Code generated by protoc-gen-go.
- +// Code generated by protoc-gen-go. DO NOT EDIT.
- // source: oci.proto
- -// DO NOT EDIT!
- package grpc
- @@ -41,6 +40,13 @@ func (m *Spec) String() string { return proto.CompactTextString(m) }
- func (*Spec) ProtoMessage() {}
- func (*Spec) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
- +func (m *Spec) GetVersion() string {
- + if m != nil {
- + return m.Version
- + }
- + return ""
- +}
- +
- func (m *Spec) GetProcess() *Process {
- if m != nil {
- return m.Process
- @@ -55,6 +61,13 @@ func (m *Spec) GetRoot() *Root {
- return nil
- }
- +func (m *Spec) GetHostname() string {
- + if m != nil {
- + return m.Hostname
- + }
- + return ""
- +}
- +
- func (m *Spec) GetMounts() []*Mount {
- if m != nil {
- return m.Mounts
- @@ -130,6 +143,13 @@ func (m *Process) String() string { return proto.CompactTextString(m)
- func (*Process) ProtoMessage() {}
- func (*Process) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
- +func (m *Process) GetTerminal() bool {
- + if m != nil {
- + return m.Terminal
- + }
- + return false
- +}
- +
- func (m *Process) GetConsoleSize() *Box {
- if m != nil {
- return m.ConsoleSize
- @@ -144,6 +164,27 @@ func (m *Process) GetUser() *User {
- return nil
- }
- +func (m *Process) GetArgs() []string {
- + if m != nil {
- + return m.Args
- + }
- + return nil
- +}
- +
- +func (m *Process) GetEnv() []string {
- + if m != nil {
- + return m.Env
- + }
- + return nil
- +}
- +
- +func (m *Process) GetCwd() string {
- + if m != nil {
- + return m.Cwd
- + }
- + return ""
- +}
- +
- func (m *Process) GetCapabilities() *LinuxCapabilities {
- if m != nil {
- return m.Capabilities
- @@ -158,6 +199,34 @@ func (m *Process) GetRlimits() []*POSIXRlimit {
- return nil
- }
- +func (m *Process) GetNoNewPrivileges() bool {
- + if m != nil {
- + return m.NoNewPrivileges
- + }
- + return false
- +}
- +
- +func (m *Process) GetApparmorProfile() string {
- + if m != nil {
- + return m.ApparmorProfile
- + }
- + return ""
- +}
- +
- +func (m *Process) GetOOMScoreAdj() uint32 {
- + if m != nil {
- + return m.OOMScoreAdj
- + }
- + return 0
- +}
- +
- +func (m *Process) GetSelinuxLabel() string {
- + if m != nil {
- + return m.SelinuxLabel
- + }
- + return ""
- +}
- +
- type Box struct {
- // Height is the vertical dimension of a box.
- Height uint32 `protobuf:"varint,1,opt,name=Height" json:"Height,omitempty"`
- @@ -170,13 +239,27 @@ func (m *Box) String() string { return proto.CompactTextString(m) }
- func (*Box) ProtoMessage() {}
- func (*Box) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
- +func (m *Box) GetHeight() uint32 {
- + if m != nil {
- + return m.Height
- + }
- + return 0
- +}
- +
- +func (m *Box) GetWidth() uint32 {
- + if m != nil {
- + return m.Width
- + }
- + return 0
- +}
- +
- type User struct {
- // UID is the user id.
- UID uint32 `protobuf:"varint,1,opt,name=UID" json:"UID,omitempty"`
- // GID is the group id.
- GID uint32 `protobuf:"varint,2,opt,name=GID" json:"GID,omitempty"`
- // AdditionalGids are additional group ids set for the container's process.
- - AdditionalGids []uint32 `protobuf:"varint,3,rep,name=AdditionalGids" json:"AdditionalGids,omitempty"`
- + 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" json:"Username,omitempty"`
- }
- @@ -186,6 +269,34 @@ func (m *User) String() string { return proto.CompactTextString(m) }
- func (*User) ProtoMessage() {}
- func (*User) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
- +func (m *User) GetUID() uint32 {
- + if m != nil {
- + return m.UID
- + }
- + return 0
- +}
- +
- +func (m *User) GetGID() uint32 {
- + if m != nil {
- + return m.GID
- + }
- + return 0
- +}
- +
- +func (m *User) GetAdditionalGids() []uint32 {
- + if m != nil {
- + return m.AdditionalGids
- + }
- + return nil
- +}
- +
- +func (m *User) GetUsername() string {
- + if m != nil {
- + return m.Username
- + }
- + return ""
- +}
- +
- type LinuxCapabilities struct {
- // Bounding is the set of capabilities checked by the kernel.
- Bounding []string `protobuf:"bytes,1,rep,name=Bounding" json:"Bounding,omitempty"`
- @@ -204,6 +315,41 @@ func (m *LinuxCapabilities) String() string { return proto.CompactTex
- func (*LinuxCapabilities) ProtoMessage() {}
- func (*LinuxCapabilities) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
- +func (m *LinuxCapabilities) GetBounding() []string {
- + if m != nil {
- + return m.Bounding
- + }
- + return nil
- +}
- +
- +func (m *LinuxCapabilities) GetEffective() []string {
- + if m != nil {
- + return m.Effective
- + }
- + return nil
- +}
- +
- +func (m *LinuxCapabilities) GetInheritable() []string {
- + if m != nil {
- + return m.Inheritable
- + }
- + return nil
- +}
- +
- +func (m *LinuxCapabilities) GetPermitted() []string {
- + if m != nil {
- + return m.Permitted
- + }
- + return nil
- +}
- +
- +func (m *LinuxCapabilities) GetAmbient() []string {
- + if m != nil {
- + return m.Ambient
- + }
- + return nil
- +}
- +
- type POSIXRlimit struct {
- // Type of the rlimit to set
- Type string `protobuf:"bytes,1,opt,name=Type" json:"Type,omitempty"`
- @@ -218,6 +364,27 @@ func (m *POSIXRlimit) String() string { return proto.CompactTextStrin
- func (*POSIXRlimit) ProtoMessage() {}
- func (*POSIXRlimit) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
- +func (m *POSIXRlimit) GetType() string {
- + if m != nil {
- + return m.Type
- + }
- + return ""
- +}
- +
- +func (m *POSIXRlimit) GetHard() uint64 {
- + if m != nil {
- + return m.Hard
- + }
- + return 0
- +}
- +
- +func (m *POSIXRlimit) GetSoft() uint64 {
- + if m != nil {
- + return m.Soft
- + }
- + return 0
- +}
- +
- type Mount struct {
- // destination is the path inside the container expect when it starts with "tmp:/"
- Destination string `protobuf:"bytes,1,opt,name=destination" json:"destination,omitempty"`
- @@ -235,6 +402,34 @@ func (m *Mount) String() string { return proto.CompactTextString(m) }
- func (*Mount) ProtoMessage() {}
- func (*Mount) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
- +func (m *Mount) GetDestination() string {
- + if m != nil {
- + return m.Destination
- + }
- + return ""
- +}
- +
- +func (m *Mount) GetSource() string {
- + if m != nil {
- + return m.Source
- + }
- + return ""
- +}
- +
- +func (m *Mount) GetType() string {
- + if m != nil {
- + return m.Type
- + }
- + return ""
- +}
- +
- +func (m *Mount) GetOptions() []string {
- + if m != nil {
- + return m.Options
- + }
- + return nil
- +}
- +
- type Root struct {
- // Path is the absolute path to the container's root filesystem.
- Path string `protobuf:"bytes,1,opt,name=Path" json:"Path,omitempty"`
- @@ -247,6 +442,20 @@ func (m *Root) String() string { return proto.CompactTextString(m) }
- func (*Root) ProtoMessage() {}
- func (*Root) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
- +func (m *Root) GetPath() string {
- + if m != nil {
- + return m.Path
- + }
- + return ""
- +}
- +
- +func (m *Root) GetReadonly() bool {
- + if m != nil {
- + return m.Readonly
- + }
- + return false
- +}
- +
- 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,omitempty"`
- @@ -294,6 +503,34 @@ func (m *Hook) String() string { return proto.CompactTextString(m) }
- func (*Hook) ProtoMessage() {}
- func (*Hook) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
- +func (m *Hook) GetPath() string {
- + if m != nil {
- + return m.Path
- + }
- + return ""
- +}
- +
- +func (m *Hook) GetArgs() []string {
- + if m != nil {
- + return m.Args
- + }
- + return nil
- +}
- +
- +func (m *Hook) GetEnv() []string {
- + if m != nil {
- + return m.Env
- + }
- + return nil
- +}
- +
- +func (m *Hook) GetTimeout() int64 {
- + if m != nil {
- + return m.Timeout
- + }
- + return 0
- +}
- +
- type Linux struct {
- // UIDMapping specifies user mappings for supporting user namespaces.
- UIDMappings []*LinuxIDMapping `protobuf:"bytes,1,rep,name=UIDMappings" json:"UIDMappings,omitempty"`
- @@ -360,6 +597,13 @@ func (m *Linux) GetResources() *LinuxResources {
- return nil
- }
- +func (m *Linux) GetCgroupsPath() string {
- + if m != nil {
- + return m.CgroupsPath
- + }
- + return ""
- +}
- +
- func (m *Linux) GetNamespaces() []*LinuxNamespace {
- if m != nil {
- return m.Namespaces
- @@ -381,6 +625,34 @@ func (m *Linux) GetSeccomp() *LinuxSeccomp {
- return nil
- }
- +func (m *Linux) GetRootfsPropagation() string {
- + if m != nil {
- + return m.RootfsPropagation
- + }
- + return ""
- +}
- +
- +func (m *Linux) GetMaskedPaths() []string {
- + if m != nil {
- + return m.MaskedPaths
- + }
- + return nil
- +}
- +
- +func (m *Linux) GetReadonlyPaths() []string {
- + if m != nil {
- + return m.ReadonlyPaths
- + }
- + return nil
- +}
- +
- +func (m *Linux) GetMountLabel() string {
- + if m != nil {
- + return m.MountLabel
- + }
- + return ""
- +}
- +
- func (m *Linux) GetIntelRdt() *LinuxIntelRdt {
- if m != nil {
- return m.IntelRdt
- @@ -398,6 +670,13 @@ func (m *Windows) String() string { return proto.CompactTextString(m)
- func (*Windows) ProtoMessage() {}
- func (*Windows) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} }
- +func (m *Windows) GetDummy() string {
- + if m != nil {
- + return m.Dummy
- + }
- + return ""
- +}
- +
- type Solaris struct {
- // Dummy string, never used.
- Dummy string `protobuf:"bytes,1,opt,name=dummy" json:"dummy,omitempty"`
- @@ -408,6 +687,13 @@ func (m *Solaris) String() string { return proto.CompactTextString(m)
- func (*Solaris) ProtoMessage() {}
- func (*Solaris) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{12} }
- +func (m *Solaris) GetDummy() string {
- + if m != nil {
- + return m.Dummy
- + }
- + return ""
- +}
- +
- 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" json:"HostID,omitempty"`
- @@ -422,6 +708,27 @@ func (m *LinuxIDMapping) String() string { return proto.CompactTextSt
- func (*LinuxIDMapping) ProtoMessage() {}
- func (*LinuxIDMapping) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{13} }
- +func (m *LinuxIDMapping) GetHostID() uint32 {
- + if m != nil {
- + return m.HostID
- + }
- + return 0
- +}
- +
- +func (m *LinuxIDMapping) GetContainerID() uint32 {
- + if m != nil {
- + return m.ContainerID
- + }
- + return 0
- +}
- +
- +func (m *LinuxIDMapping) GetSize() uint32 {
- + if m != nil {
- + return m.Size
- + }
- + return 0
- +}
- +
- type LinuxNamespace struct {
- // Type is the type of namespace
- Type string `protobuf:"bytes,1,opt,name=Type" json:"Type,omitempty"`
- @@ -435,6 +742,20 @@ func (m *LinuxNamespace) String() string { return proto.CompactTextSt
- func (*LinuxNamespace) ProtoMessage() {}
- func (*LinuxNamespace) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{14} }
- +func (m *LinuxNamespace) GetType() string {
- + if m != nil {
- + return m.Type
- + }
- + return ""
- +}
- +
- +func (m *LinuxNamespace) GetPath() string {
- + if m != nil {
- + return m.Path
- + }
- + return ""
- +}
- +
- type LinuxDevice struct {
- // Path to the device.
- Path string `protobuf:"bytes,1,opt,name=Path" json:"Path,omitempty"`
- @@ -457,6 +778,55 @@ func (m *LinuxDevice) String() string { return proto.CompactTextStrin
- func (*LinuxDevice) ProtoMessage() {}
- func (*LinuxDevice) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{15} }
- +func (m *LinuxDevice) GetPath() string {
- + if m != nil {
- + return m.Path
- + }
- + return ""
- +}
- +
- +func (m *LinuxDevice) GetType() string {
- + if m != nil {
- + return m.Type
- + }
- + return ""
- +}
- +
- +func (m *LinuxDevice) GetMajor() int64 {
- + if m != nil {
- + return m.Major
- + }
- + return 0
- +}
- +
- +func (m *LinuxDevice) GetMinor() int64 {
- + if m != nil {
- + return m.Minor
- + }
- + return 0
- +}
- +
- +func (m *LinuxDevice) GetFileMode() uint32 {
- + if m != nil {
- + return m.FileMode
- + }
- + return 0
- +}
- +
- +func (m *LinuxDevice) GetUID() uint32 {
- + if m != nil {
- + return m.UID
- + }
- + return 0
- +}
- +
- +func (m *LinuxDevice) GetGID() uint32 {
- + if m != nil {
- + return m.GID
- + }
- + return 0
- +}
- +
- type LinuxResources struct {
- // Devices configures the device whitelist.
- Devices []*LinuxDeviceCgroup `protobuf:"bytes,1,rep,name=Devices" json:"Devices,omitempty"`
- @@ -550,6 +920,55 @@ func (m *LinuxMemory) String() string { return proto.CompactTextStrin
- func (*LinuxMemory) ProtoMessage() {}
- func (*LinuxMemory) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{17} }
- +func (m *LinuxMemory) GetLimit() int64 {
- + if m != nil {
- + return m.Limit
- + }
- + return 0
- +}
- +
- +func (m *LinuxMemory) GetReservation() int64 {
- + if m != nil {
- + return m.Reservation
- + }
- + return 0
- +}
- +
- +func (m *LinuxMemory) GetSwap() int64 {
- + if m != nil {
- + return m.Swap
- + }
- + return 0
- +}
- +
- +func (m *LinuxMemory) GetKernel() int64 {
- + if m != nil {
- + return m.Kernel
- + }
- + return 0
- +}
- +
- +func (m *LinuxMemory) GetKernelTCP() int64 {
- + if m != nil {
- + return m.KernelTCP
- + }
- + return 0
- +}
- +
- +func (m *LinuxMemory) GetSwappiness() uint64 {
- + if m != nil {
- + return m.Swappiness
- + }
- + return 0
- +}
- +
- +func (m *LinuxMemory) GetDisableOOMKiller() bool {
- + if m != nil {
- + return m.DisableOOMKiller
- + }
- + return false
- +}
- +
- type LinuxCPU struct {
- // CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
- Shares uint64 `protobuf:"varint,1,opt,name=Shares" json:"Shares,omitempty"`
- @@ -572,6 +991,55 @@ func (m *LinuxCPU) String() string { return proto.CompactTextString(m
- func (*LinuxCPU) ProtoMessage() {}
- func (*LinuxCPU) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{18} }
- +func (m *LinuxCPU) GetShares() uint64 {
- + if m != nil {
- + return m.Shares
- + }
- + return 0
- +}
- +
- +func (m *LinuxCPU) GetQuota() int64 {
- + if m != nil {
- + return m.Quota
- + }
- + return 0
- +}
- +
- +func (m *LinuxCPU) GetPeriod() uint64 {
- + if m != nil {
- + return m.Period
- + }
- + return 0
- +}
- +
- +func (m *LinuxCPU) GetRealtimeRuntime() int64 {
- + if m != nil {
- + return m.RealtimeRuntime
- + }
- + return 0
- +}
- +
- +func (m *LinuxCPU) GetRealtimePeriod() uint64 {
- + if m != nil {
- + return m.RealtimePeriod
- + }
- + return 0
- +}
- +
- +func (m *LinuxCPU) GetCpus() string {
- + if m != nil {
- + return m.Cpus
- + }
- + return ""
- +}
- +
- +func (m *LinuxCPU) GetMems() string {
- + if m != nil {
- + return m.Mems
- + }
- + return ""
- +}
- +
- type LinuxWeightDevice struct {
- // Major is the device's major number.
- Major int64 `protobuf:"varint,1,opt,name=Major" json:"Major,omitempty"`
- @@ -588,6 +1056,34 @@ func (m *LinuxWeightDevice) String() string { return proto.CompactTex
- func (*LinuxWeightDevice) ProtoMessage() {}
- func (*LinuxWeightDevice) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{19} }
- +func (m *LinuxWeightDevice) GetMajor() int64 {
- + if m != nil {
- + return m.Major
- + }
- + return 0
- +}
- +
- +func (m *LinuxWeightDevice) GetMinor() int64 {
- + if m != nil {
- + return m.Minor
- + }
- + return 0
- +}
- +
- +func (m *LinuxWeightDevice) GetWeight() uint32 {
- + if m != nil {
- + return m.Weight
- + }
- + return 0
- +}
- +
- +func (m *LinuxWeightDevice) GetLeafWeight() uint32 {
- + if m != nil {
- + return m.LeafWeight
- + }
- + return 0
- +}
- +
- type LinuxThrottleDevice struct {
- // Major is the device's major number.
- Major int64 `protobuf:"varint,1,opt,name=Major" json:"Major,omitempty"`
- @@ -602,6 +1098,27 @@ func (m *LinuxThrottleDevice) String() string { return proto.CompactT
- func (*LinuxThrottleDevice) ProtoMessage() {}
- func (*LinuxThrottleDevice) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{20} }
- +func (m *LinuxThrottleDevice) GetMajor() int64 {
- + if m != nil {
- + return m.Major
- + }
- + return 0
- +}
- +
- +func (m *LinuxThrottleDevice) GetMinor() int64 {
- + if m != nil {
- + return m.Minor
- + }
- + return 0
- +}
- +
- +func (m *LinuxThrottleDevice) GetRate() uint64 {
- + if m != nil {
- + return m.Rate
- + }
- + return 0
- +}
- +
- type LinuxBlockIO struct {
- // Specifies per cgroup weight
- Weight uint32 `protobuf:"varint,1,opt,name=Weight" json:"Weight,omitempty"`
- @@ -624,6 +1141,20 @@ func (m *LinuxBlockIO) String() string { return proto.CompactTextStri
- func (*LinuxBlockIO) ProtoMessage() {}
- func (*LinuxBlockIO) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{21} }
- +func (m *LinuxBlockIO) GetWeight() uint32 {
- + if m != nil {
- + return m.Weight
- + }
- + return 0
- +}
- +
- +func (m *LinuxBlockIO) GetLeafWeight() uint32 {
- + if m != nil {
- + return m.LeafWeight
- + }
- + return 0
- +}
- +
- func (m *LinuxBlockIO) GetWeightDevice() []*LinuxWeightDevice {
- if m != nil {
- return m.WeightDevice
- @@ -669,6 +1200,13 @@ func (m *LinuxPids) String() string { return proto.CompactTextString(
- func (*LinuxPids) ProtoMessage() {}
- func (*LinuxPids) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{22} }
- +func (m *LinuxPids) GetLimit() int64 {
- + if m != nil {
- + return m.Limit
- + }
- + return 0
- +}
- +
- type LinuxDeviceCgroup struct {
- // Allow or deny
- Allow bool `protobuf:"varint,1,opt,name=Allow" json:"Allow,omitempty"`
- @@ -687,6 +1225,41 @@ func (m *LinuxDeviceCgroup) String() string { return proto.CompactTex
- func (*LinuxDeviceCgroup) ProtoMessage() {}
- func (*LinuxDeviceCgroup) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{23} }
- +func (m *LinuxDeviceCgroup) GetAllow() bool {
- + if m != nil {
- + return m.Allow
- + }
- + return false
- +}
- +
- +func (m *LinuxDeviceCgroup) GetType() string {
- + if m != nil {
- + return m.Type
- + }
- + return ""
- +}
- +
- +func (m *LinuxDeviceCgroup) GetMajor() int64 {
- + if m != nil {
- + return m.Major
- + }
- + return 0
- +}
- +
- +func (m *LinuxDeviceCgroup) GetMinor() int64 {
- + if m != nil {
- + return m.Minor
- + }
- + return 0
- +}
- +
- +func (m *LinuxDeviceCgroup) GetAccess() string {
- + if m != nil {
- + return m.Access
- + }
- + return ""
- +}
- +
- type LinuxNetwork struct {
- // Set class identifier for container's network packets
- ClassID uint32 `protobuf:"varint,1,opt,name=ClassID" json:"ClassID,omitempty"`
- @@ -699,6 +1272,13 @@ func (m *LinuxNetwork) String() string { return proto.CompactTextStri
- func (*LinuxNetwork) ProtoMessage() {}
- func (*LinuxNetwork) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{24} }
- +func (m *LinuxNetwork) GetClassID() uint32 {
- + if m != nil {
- + return m.ClassID
- + }
- + return 0
- +}
- +
- func (m *LinuxNetwork) GetPriorities() []*LinuxInterfacePriority {
- if m != nil {
- return m.Priorities
- @@ -718,6 +1298,20 @@ func (m *LinuxHugepageLimit) String() string { return proto.CompactTe
- func (*LinuxHugepageLimit) ProtoMessage() {}
- func (*LinuxHugepageLimit) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{25} }
- +func (m *LinuxHugepageLimit) GetPagesize() string {
- + if m != nil {
- + return m.Pagesize
- + }
- + return ""
- +}
- +
- +func (m *LinuxHugepageLimit) GetLimit() uint64 {
- + if m != nil {
- + return m.Limit
- + }
- + return 0
- +}
- +
- type LinuxInterfacePriority struct {
- // Name is the name of the network interface
- Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
- @@ -730,6 +1324,20 @@ func (m *LinuxInterfacePriority) String() string { return proto.Compa
- func (*LinuxInterfacePriority) ProtoMessage() {}
- func (*LinuxInterfacePriority) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{26} }
- +func (m *LinuxInterfacePriority) GetName() string {
- + if m != nil {
- + return m.Name
- + }
- + return ""
- +}
- +
- +func (m *LinuxInterfacePriority) GetPriority() uint32 {
- + if m != nil {
- + return m.Priority
- + }
- + return 0
- +}
- +
- type LinuxSeccomp struct {
- DefaultAction string `protobuf:"bytes,1,opt,name=DefaultAction" json:"DefaultAction,omitempty"`
- Architectures []string `protobuf:"bytes,2,rep,name=Architectures" json:"Architectures,omitempty"`
- @@ -741,6 +1349,20 @@ func (m *LinuxSeccomp) String() string { return proto.CompactTextStri
- func (*LinuxSeccomp) ProtoMessage() {}
- func (*LinuxSeccomp) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{27} }
- +func (m *LinuxSeccomp) GetDefaultAction() string {
- + if m != nil {
- + return m.DefaultAction
- + }
- + return ""
- +}
- +
- +func (m *LinuxSeccomp) GetArchitectures() []string {
- + if m != nil {
- + return m.Architectures
- + }
- + return nil
- +}
- +
- func (m *LinuxSeccomp) GetSyscalls() []*LinuxSyscall {
- if m != nil {
- return m.Syscalls
- @@ -760,6 +1382,34 @@ func (m *LinuxSeccompArg) String() string { return proto.CompactTextS
- func (*LinuxSeccompArg) ProtoMessage() {}
- func (*LinuxSeccompArg) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{28} }
- +func (m *LinuxSeccompArg) GetIndex() uint64 {
- + if m != nil {
- + return m.Index
- + }
- + return 0
- +}
- +
- +func (m *LinuxSeccompArg) GetValue() uint64 {
- + if m != nil {
- + return m.Value
- + }
- + return 0
- +}
- +
- +func (m *LinuxSeccompArg) GetValueTwo() uint64 {
- + if m != nil {
- + return m.ValueTwo
- + }
- + return 0
- +}
- +
- +func (m *LinuxSeccompArg) GetOp() string {
- + if m != nil {
- + return m.Op
- + }
- + return ""
- +}
- +
- type LinuxSyscall struct {
- Names []string `protobuf:"bytes,1,rep,name=Names" json:"Names,omitempty"`
- Action string `protobuf:"bytes,2,opt,name=Action" json:"Action,omitempty"`
- @@ -771,6 +1421,20 @@ func (m *LinuxSyscall) String() string { return proto.CompactTextStri
- func (*LinuxSyscall) ProtoMessage() {}
- func (*LinuxSyscall) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{29} }
- +func (m *LinuxSyscall) GetNames() []string {
- + if m != nil {
- + return m.Names
- + }
- + return nil
- +}
- +
- +func (m *LinuxSyscall) GetAction() string {
- + if m != nil {
- + return m.Action
- + }
- + return ""
- +}
- +
- func (m *LinuxSyscall) GetArgs() []*LinuxSeccompArg {
- if m != nil {
- return m.Args
- @@ -789,6 +1453,13 @@ func (m *LinuxIntelRdt) String() string { return proto.CompactTextStr
- func (*LinuxIntelRdt) ProtoMessage() {}
- func (*LinuxIntelRdt) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{30} }
- +func (m *LinuxIntelRdt) GetL3CacheSchema() string {
- + if m != nil {
- + return m.L3CacheSchema
- + }
- + return ""
- +}
- +
- func init() {
- proto.RegisterType((*Spec)(nil), "grpc.Spec")
- proto.RegisterType((*Process)(nil), "grpc.Process")
- @@ -823,9 +1494,11 @@ func init() {
- proto.RegisterType((*LinuxIntelRdt)(nil), "grpc.LinuxIntelRdt")
- }
- +func init() { proto.RegisterFile("oci.proto", fileDescriptor1) }
- +
- var fileDescriptor1 = []byte{
- // 1926 bytes of a gzipped FileDescriptorProto
- - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x58, 0x4f, 0x73, 0x1b, 0xb7,
- + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x4f, 0x73, 0x1b, 0xb7,
- 0x15, 0x1f, 0x72, 0x29, 0x8a, 0x04, 0x4d, 0xdb, 0x42, 0x1c, 0x65, 0xeb, 0x66, 0x52, 0x65, 0x93,
- 0x49, 0x95, 0x26, 0xa3, 0x4c, 0xed, 0x36, 0x93, 0xfe, 0x9d, 0x52, 0x94, 0x63, 0x71, 0x22, 0x9a,
- 0x0c, 0x28, 0xc5, 0x9d, 0x1e, 0x3a, 0x03, 0xed, 0x82, 0x24, 0xa2, 0xe5, 0x62, 0x07, 0x0b, 0x4a,
Add Comment
Please, Sign In to add comment