Documentation ¶
Index ¶
- Constants
- Variables
- func MicroserviceKey(microservice string) string
- type NetNamespace
- func (*NetNamespace) Descriptor() ([]byte, []int)
- func (m *NetNamespace) GetReference() string
- func (m *NetNamespace) GetType() NetNamespace_ReferenceType
- func (*NetNamespace) ProtoMessage()
- func (m *NetNamespace) Reset()
- func (m *NetNamespace) String() string
- func (m *NetNamespace) XXX_DiscardUnknown()
- func (m *NetNamespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetNamespace) XXX_Merge(src proto.Message)
- func (*NetNamespace) XXX_MessageName() string
- func (m *NetNamespace) XXX_Size() int
- func (m *NetNamespace) XXX_Unmarshal(b []byte) error
- type NetNamespace_ReferenceType
Constants ¶
View Source
const ( // MicroserviceKeyPrefix is the common prefix of all keys representing // existing microservices. MicroserviceKeyPrefix = "linux/microservice/" )
Variables ¶
View Source
var NetNamespace_ReferenceType_name = map[int32]string{
0: "UNDEFINED",
1: "NSID",
2: "PID",
3: "FD",
4: "MICROSERVICE",
}
View Source
var NetNamespace_ReferenceType_value = map[string]int32{
"UNDEFINED": 0,
"NSID": 1,
"PID": 2,
"FD": 3,
"MICROSERVICE": 4,
}
Functions ¶
func MicroserviceKey ¶
MicroserviceKey returns key representing existing microservice namespace.
Types ¶
type NetNamespace ¶
type NetNamespace struct { Type NetNamespace_ReferenceType `protobuf:"varint,1,opt,name=type,proto3,enum=linux.namespace.NetNamespace_ReferenceType" json:"type,omitempty"` // Reference defines reference specific // to the namespace type: // * namespace ID (NSID) // * PID number (PID) // * file path (FD) // * microservice label (MICROSERVICE) 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 (*NetNamespace) Descriptor ¶
func (*NetNamespace) Descriptor() ([]byte, []int)
func (*NetNamespace) GetReference ¶
func (m *NetNamespace) GetReference() string
func (*NetNamespace) GetType ¶
func (m *NetNamespace) GetType() NetNamespace_ReferenceType
func (*NetNamespace) ProtoMessage ¶
func (*NetNamespace) ProtoMessage()
func (*NetNamespace) Reset ¶
func (m *NetNamespace) Reset()
func (*NetNamespace) String ¶
func (m *NetNamespace) String() string
func (*NetNamespace) XXX_DiscardUnknown ¶
func (m *NetNamespace) XXX_DiscardUnknown()
func (*NetNamespace) XXX_Marshal ¶
func (m *NetNamespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetNamespace) XXX_Merge ¶
func (dst *NetNamespace) XXX_Merge(src proto.Message)
func (*NetNamespace) XXX_MessageName ¶
func (*NetNamespace) XXX_MessageName() string
func (*NetNamespace) XXX_Size ¶
func (m *NetNamespace) XXX_Size() int
func (*NetNamespace) XXX_Unmarshal ¶
func (m *NetNamespace) XXX_Unmarshal(b []byte) error
type NetNamespace_ReferenceType ¶
type NetNamespace_ReferenceType int32
const ( NetNamespace_UNDEFINED NetNamespace_ReferenceType = 0 NetNamespace_NSID NetNamespace_ReferenceType = 1 NetNamespace_PID NetNamespace_ReferenceType = 2 NetNamespace_FD NetNamespace_ReferenceType = 3 NetNamespace_MICROSERVICE NetNamespace_ReferenceType = 4 )
func (NetNamespace_ReferenceType) EnumDescriptor ¶
func (NetNamespace_ReferenceType) EnumDescriptor() ([]byte, []int)
func (NetNamespace_ReferenceType) String ¶
func (x NetNamespace_ReferenceType) String() string
Click to show internal directories.
Click to hide internal directories.