Documentation
¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
descriptions.proto
It has these top-level messages:
SandboxConfig ContainerDescription VolumeDescription InterfaceDescription PortDescription NeighborNetworks VolumeReference VolumeMount VolumeOption UserGroupInfo Rlimit
Index ¶
- type ContainerDescription
- func (*ContainerDescription) Descriptor() ([]byte, []int)
- func (m *ContainerDescription) GetEnvs() map[string]string
- func (m *ContainerDescription) GetLabels() map[string]string
- func (m *ContainerDescription) GetRlimits() []*Rlimit
- func (m *ContainerDescription) GetRootVolume() *VolumeDescription
- func (m *ContainerDescription) GetSysctl() map[string]string
- func (m *ContainerDescription) GetUGI() *UserGroupInfo
- func (m *ContainerDescription) GetVolumes() map[string]*VolumeReference
- func (*ContainerDescription) ProtoMessage()
- func (m *ContainerDescription) Reset()
- func (m *ContainerDescription) String() string
- type InterfaceDescription
- type NeighborNetworks
- type PortDescription
- type ProcessExit
- type Result
- type ResultBase
- type Rlimit
- type SandboxConfig
- type SandboxHandler
- type UserGroupInfo
- type VolumeDescription
- func (*VolumeDescription) Descriptor() ([]byte, []int)
- func (m *VolumeDescription) GetOptions() *VolumeOption
- func (v *VolumeDescription) IsDir() bool
- func (v *VolumeDescription) IsNas() bool
- func (*VolumeDescription) ProtoMessage()
- func (m *VolumeDescription) Reset()
- func (m *VolumeDescription) String() string
- type VolumeMount
- type VolumeOption
- type VolumeReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerDescription ¶
type ContainerDescription struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // Static Info, got from client input Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Image string `protobuf:"bytes,3,opt,name=image" json:"image,omitempty"` // User content or user specified behavior Labels map[string]string `` /* 132-byte string literal not displayed */ Tty bool `protobuf:"varint,5,opt,name=tty" json:"tty,omitempty"` StopSignal string `protobuf:"bytes,6,opt,name=stopSignal" json:"stopSignal,omitempty"` // Creation Info, got during creation RootVolume *VolumeDescription `protobuf:"bytes,7,opt,name=rootVolume" json:"rootVolume,omitempty"` MountId string `protobuf:"bytes,8,opt,name=mountId" json:"mountId,omitempty"` RootPath string `protobuf:"bytes,9,opt,name=rootPath" json:"rootPath,omitempty"` // runtime info, combined during creation UGI *UserGroupInfo `protobuf:"bytes,10,opt,name=UGI,json=uGI" json:"UGI,omitempty"` Envs map[string]string `` /* 129-byte string literal not displayed */ Workdir string `protobuf:"bytes,12,opt,name=workdir" json:"workdir,omitempty"` Path string `protobuf:"bytes,13,opt,name=path" json:"path,omitempty"` Args []string `protobuf:"bytes,14,rep,name=args" json:"args,omitempty"` Rlimits []*Rlimit `protobuf:"bytes,15,rep,name=rlimits" json:"rlimits,omitempty"` Sysctl map[string]string `` /* 133-byte string literal not displayed */ Volumes map[string]*VolumeReference `` /* 135-byte string literal not displayed */ Initialize bool `protobuf:"varint,24,opt,name=initialize" json:"initialize,omitempty"` }
func ContainerDescriptionFromOCF ¶
func ContainerDescriptionFromOCF(id string, s *specs.Spec) *ContainerDescription
func (*ContainerDescription) Descriptor ¶
func (*ContainerDescription) Descriptor() ([]byte, []int)
func (*ContainerDescription) GetEnvs ¶
func (m *ContainerDescription) GetEnvs() map[string]string
func (*ContainerDescription) GetLabels ¶
func (m *ContainerDescription) GetLabels() map[string]string
func (*ContainerDescription) GetRlimits ¶
func (m *ContainerDescription) GetRlimits() []*Rlimit
func (*ContainerDescription) GetRootVolume ¶
func (m *ContainerDescription) GetRootVolume() *VolumeDescription
func (*ContainerDescription) GetSysctl ¶
func (m *ContainerDescription) GetSysctl() map[string]string
func (*ContainerDescription) GetUGI ¶
func (m *ContainerDescription) GetUGI() *UserGroupInfo
func (*ContainerDescription) GetVolumes ¶
func (m *ContainerDescription) GetVolumes() map[string]*VolumeReference
func (*ContainerDescription) ProtoMessage ¶
func (*ContainerDescription) ProtoMessage()
func (*ContainerDescription) Reset ¶
func (m *ContainerDescription) Reset()
func (*ContainerDescription) String ¶
func (m *ContainerDescription) String() string
type InterfaceDescription ¶
type InterfaceDescription struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Lo bool `protobuf:"varint,2,opt,name=lo" json:"lo,omitempty"` Bridge string `protobuf:"bytes,3,opt,name=bridge" json:"bridge,omitempty"` Ip string `protobuf:"bytes,4,opt,name=ip" json:"ip,omitempty"` Mac string `protobuf:"bytes,5,opt,name=mac" json:"mac,omitempty"` Gw string `protobuf:"bytes,6,opt,name=gw" json:"gw,omitempty"` TapName string `protobuf:"bytes,7,opt,name=tapName" json:"tapName,omitempty"` }
func (*InterfaceDescription) Descriptor ¶
func (*InterfaceDescription) Descriptor() ([]byte, []int)
func (*InterfaceDescription) ProtoMessage ¶
func (*InterfaceDescription) ProtoMessage()
func (*InterfaceDescription) Reset ¶
func (m *InterfaceDescription) Reset()
func (*InterfaceDescription) String ¶
func (m *InterfaceDescription) String() string
type NeighborNetworks ¶
type NeighborNetworks struct { InternalNetworks []string `protobuf:"bytes,1,rep,name=internalNetworks" json:"internalNetworks,omitempty"` ExternalNetworks []string `protobuf:"bytes,2,rep,name=externalNetworks" json:"externalNetworks,omitempty"` }
func (*NeighborNetworks) Descriptor ¶
func (*NeighborNetworks) Descriptor() ([]byte, []int)
func (*NeighborNetworks) ProtoMessage ¶
func (*NeighborNetworks) ProtoMessage()
func (*NeighborNetworks) Reset ¶
func (m *NeighborNetworks) Reset()
func (*NeighborNetworks) String ¶
func (m *NeighborNetworks) String() string
type PortDescription ¶
type PortDescription struct { HostPort int32 `protobuf:"varint,1,opt,name=hostPort" json:"hostPort,omitempty"` ContainerPort int32 `protobuf:"varint,2,opt,name=containerPort" json:"containerPort,omitempty"` Protocol string `protobuf:"bytes,3,opt,name=protocol" json:"protocol,omitempty"` }
func (*PortDescription) Descriptor ¶
func (*PortDescription) Descriptor() ([]byte, []int)
func (*PortDescription) ProtoMessage ¶
func (*PortDescription) ProtoMessage()
func (*PortDescription) Reset ¶
func (m *PortDescription) Reset()
func (*PortDescription) String ¶
func (m *PortDescription) String() string
type ResultBase ¶
func NewResultBase ¶
func NewResultBase(id string, success bool, message string) *ResultBase
func (*ResultBase) IsSuccess ¶
func (r *ResultBase) IsSuccess() bool
func (*ResultBase) Message ¶
func (r *ResultBase) Message() string
func (*ResultBase) ResultId ¶
func (r *ResultBase) ResultId() string
type Rlimit ¶
type Rlimit struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` Hard uint64 `protobuf:"varint,2,opt,name=hard" json:"hard,omitempty"` Soft uint64 `protobuf:"varint,3,opt,name=soft" json:"soft,omitempty"` }
func (*Rlimit) Descriptor ¶
func (*Rlimit) ProtoMessage ¶
func (*Rlimit) ProtoMessage()
type SandboxConfig ¶
type SandboxConfig struct { Hostname string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"` Dns []string `protobuf:"bytes,2,rep,name=dns" json:"dns,omitempty"` Neighbors *NeighborNetworks `protobuf:"bytes,3,opt,name=neighbors" json:"neighbors,omitempty"` }
func SandboxInfoFromOCF ¶
func SandboxInfoFromOCF(s *specs.Spec) *SandboxConfig
func (*SandboxConfig) Descriptor ¶
func (*SandboxConfig) Descriptor() ([]byte, []int)
func (*SandboxConfig) GetNeighbors ¶
func (m *SandboxConfig) GetNeighbors() *NeighborNetworks
func (*SandboxConfig) ProtoMessage ¶
func (*SandboxConfig) ProtoMessage()
func (*SandboxConfig) Reset ¶
func (m *SandboxConfig) Reset()
func (*SandboxConfig) String ¶
func (m *SandboxConfig) String() string
type SandboxHandler ¶
type SandboxHandler interface { }
type UserGroupInfo ¶
type UserGroupInfo struct { User string `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` Group string `protobuf:"bytes,2,opt,name=group" json:"group,omitempty"` AdditionalGroups []string `protobuf:"bytes,3,rep,name=additionalGroups" json:"additionalGroups,omitempty"` }
func UGIFromOCF ¶
func UGIFromOCF(u *specs.User) *UserGroupInfo
func (*UserGroupInfo) Descriptor ¶
func (*UserGroupInfo) Descriptor() ([]byte, []int)
func (*UserGroupInfo) ProtoMessage ¶
func (*UserGroupInfo) ProtoMessage()
func (*UserGroupInfo) Reset ¶
func (m *UserGroupInfo) Reset()
func (*UserGroupInfo) String ¶
func (m *UserGroupInfo) String() string
type VolumeDescription ¶
type VolumeDescription struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Source string `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"` Format string `protobuf:"bytes,3,opt,name=format" json:"format,omitempty"` Fstype string `protobuf:"bytes,4,opt,name=fstype" json:"fstype,omitempty"` Options *VolumeOption `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` DockerVolume bool `protobuf:"varint,9,opt,name=dockerVolume" json:"dockerVolume,omitempty"` }
func (*VolumeDescription) Descriptor ¶
func (*VolumeDescription) Descriptor() ([]byte, []int)
func (*VolumeDescription) GetOptions ¶
func (m *VolumeDescription) GetOptions() *VolumeOption
func (*VolumeDescription) IsDir ¶
func (v *VolumeDescription) IsDir() bool
func (*VolumeDescription) IsNas ¶
func (v *VolumeDescription) IsNas() bool
func (*VolumeDescription) ProtoMessage ¶
func (*VolumeDescription) ProtoMessage()
func (*VolumeDescription) Reset ¶
func (m *VolumeDescription) Reset()
func (*VolumeDescription) String ¶
func (m *VolumeDescription) String() string
type VolumeMount ¶
type VolumeMount struct { Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` ReadOnly bool `protobuf:"varint,2,opt,name=readOnly" json:"readOnly,omitempty"` }
func (*VolumeMount) Descriptor ¶
func (*VolumeMount) Descriptor() ([]byte, []int)
func (*VolumeMount) ProtoMessage ¶
func (*VolumeMount) ProtoMessage()
func (*VolumeMount) Reset ¶
func (m *VolumeMount) Reset()
func (*VolumeMount) String ¶
func (m *VolumeMount) String() string
type VolumeOption ¶
type VolumeOption struct { User string `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` Monitors []string `protobuf:"bytes,2,rep,name=monitors" json:"monitors,omitempty"` Keyring string `protobuf:"bytes,3,opt,name=keyring" json:"keyring,omitempty"` BytesPerSec int32 `protobuf:"varint,4,opt,name=bytesPerSec" json:"bytesPerSec,omitempty"` Iops int32 `protobuf:"varint,5,opt,name=iops" json:"iops,omitempty"` }
func (*VolumeOption) Descriptor ¶
func (*VolumeOption) Descriptor() ([]byte, []int)
func (*VolumeOption) ProtoMessage ¶
func (*VolumeOption) ProtoMessage()
func (*VolumeOption) Reset ¶
func (m *VolumeOption) Reset()
func (*VolumeOption) String ¶
func (m *VolumeOption) String() string
type VolumeReference ¶
type VolumeReference struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` MountPoints []*VolumeMount `protobuf:"bytes,2,rep,name=mountPoints" json:"mountPoints,omitempty"` }
func (*VolumeReference) Descriptor ¶
func (*VolumeReference) Descriptor() ([]byte, []int)
func (*VolumeReference) GetMountPoints ¶
func (m *VolumeReference) GetMountPoints() []*VolumeMount
func (*VolumeReference) ProtoMessage ¶
func (*VolumeReference) ProtoMessage()
func (*VolumeReference) Reset ¶
func (m *VolumeReference) Reset()
func (*VolumeReference) String ¶
func (m *VolumeReference) String() string
Click to show internal directories.
Click to hide internal directories.