Documentation ¶
Index ¶
- Constants
- Variables
- func MicroserviceKey(microservice string) string
- type LinuxNetNamespace
- func (*LinuxNetNamespace) Descriptor() ([]byte, []int)
- func (m *LinuxNetNamespace) GetReference() string
- func (m *LinuxNetNamespace) GetType() LinuxNetNamespace_ReferenceType
- func (*LinuxNetNamespace) ProtoMessage()
- func (m *LinuxNetNamespace) Reset()
- func (m *LinuxNetNamespace) String() string
- func (m *LinuxNetNamespace) XXX_DiscardUnknown()
- func (m *LinuxNetNamespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LinuxNetNamespace) XXX_Merge(src proto.Message)
- func (m *LinuxNetNamespace) XXX_Size() int
- func (m *LinuxNetNamespace) XXX_Unmarshal(b []byte) error
- type LinuxNetNamespace_ReferenceType
Constants ¶
View Source
const ( // MicroserviceKeyPrefix is the common prefix of all keys representing // existing microservices. MicroserviceKeyPrefix = "linux/microservice/" )
Variables ¶
View Source
var LinuxNetNamespace_ReferenceType_name = map[int32]string{
0: "NETNS_REF_UNDEFINED",
1: "NETNS_REF_NSID",
2: "NETNS_REF_PID",
3: "NETNS_REF_FD",
4: "NETNS_REF_MICROSERVICE",
}
View Source
var LinuxNetNamespace_ReferenceType_value = map[string]int32{
"NETNS_REF_UNDEFINED": 0,
"NETNS_REF_NSID": 1,
"NETNS_REF_PID": 2,
"NETNS_REF_FD": 3,
"NETNS_REF_MICROSERVICE": 4,
}
Functions ¶
func MicroserviceKey ¶
MicroserviceKey returns key representing existing microservice namespace.
Types ¶
type LinuxNetNamespace ¶
type LinuxNetNamespace struct { Type LinuxNetNamespace_ReferenceType `protobuf:"varint,1,opt,name=type,proto3,enum=namespace.LinuxNetNamespace_ReferenceType" json:"type,omitempty"` Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LinuxNetNamespace) Descriptor ¶
func (*LinuxNetNamespace) Descriptor() ([]byte, []int)
func (*LinuxNetNamespace) GetReference ¶
func (m *LinuxNetNamespace) GetReference() string
func (*LinuxNetNamespace) GetType ¶
func (m *LinuxNetNamespace) GetType() LinuxNetNamespace_ReferenceType
func (*LinuxNetNamespace) ProtoMessage ¶
func (*LinuxNetNamespace) ProtoMessage()
func (*LinuxNetNamespace) Reset ¶
func (m *LinuxNetNamespace) Reset()
func (*LinuxNetNamespace) String ¶
func (m *LinuxNetNamespace) String() string
func (*LinuxNetNamespace) XXX_DiscardUnknown ¶
func (m *LinuxNetNamespace) XXX_DiscardUnknown()
func (*LinuxNetNamespace) XXX_Marshal ¶
func (m *LinuxNetNamespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LinuxNetNamespace) XXX_Merge ¶
func (dst *LinuxNetNamespace) XXX_Merge(src proto.Message)
func (*LinuxNetNamespace) XXX_Size ¶
func (m *LinuxNetNamespace) XXX_Size() int
func (*LinuxNetNamespace) XXX_Unmarshal ¶
func (m *LinuxNetNamespace) XXX_Unmarshal(b []byte) error
type LinuxNetNamespace_ReferenceType ¶
type LinuxNetNamespace_ReferenceType int32
const ( LinuxNetNamespace_NETNS_REF_UNDEFINED LinuxNetNamespace_ReferenceType = 0 LinuxNetNamespace_NETNS_REF_NSID LinuxNetNamespace_ReferenceType = 1 LinuxNetNamespace_NETNS_REF_PID LinuxNetNamespace_ReferenceType = 2 LinuxNetNamespace_NETNS_REF_FD LinuxNetNamespace_ReferenceType = 3 LinuxNetNamespace_NETNS_REF_MICROSERVICE LinuxNetNamespace_ReferenceType = 4 )
func (LinuxNetNamespace_ReferenceType) EnumDescriptor ¶
func (LinuxNetNamespace_ReferenceType) EnumDescriptor() ([]byte, []int)
func (LinuxNetNamespace_ReferenceType) String ¶
func (x LinuxNetNamespace_ReferenceType) String() string
Click to show internal directories.
Click to hide internal directories.