Documentation ¶
Index ¶
- Constants
- Variables
- func MicroserviceKey(microservice string) string
- type NetNamespace
- func (*NetNamespace) Descriptor() ([]byte, []int)deprecated
- func (x *NetNamespace) GetReference() string
- func (x *NetNamespace) GetType() NetNamespace_ReferenceType
- func (*NetNamespace) ProtoMessage()
- func (x *NetNamespace) ProtoReflect() protoreflect.Message
- func (x *NetNamespace) Reset()
- func (x *NetNamespace) String() string
- type NetNamespace_ReferenceType
- func (NetNamespace_ReferenceType) Descriptor() protoreflect.EnumDescriptor
- func (x NetNamespace_ReferenceType) Enum() *NetNamespace_ReferenceType
- func (NetNamespace_ReferenceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x NetNamespace_ReferenceType) Number() protoreflect.EnumNumber
- func (x NetNamespace_ReferenceType) String() string
- func (NetNamespace_ReferenceType) Type() protoreflect.EnumType
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", } NetNamespace_ReferenceType_value = map[string]int32{ "UNDEFINED": 0, "NSID": 1, "PID": 2, "FD": 3, "MICROSERVICE": 4, } )
Enum value maps for NetNamespace_ReferenceType.
View Source
var File_ligato_linux_namespace_namespace_proto protoreflect.FileDescriptor
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=ligato.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"` // contains filtered or unexported fields }
func (*NetNamespace) Descriptor
deprecated
func (*NetNamespace) Descriptor() ([]byte, []int)
Deprecated: Use NetNamespace.ProtoReflect.Descriptor instead.
func (*NetNamespace) GetReference ¶
func (x *NetNamespace) GetReference() string
func (*NetNamespace) GetType ¶
func (x *NetNamespace) GetType() NetNamespace_ReferenceType
func (*NetNamespace) ProtoMessage ¶
func (*NetNamespace) ProtoMessage()
func (*NetNamespace) ProtoReflect ¶ added in v3.2.0
func (x *NetNamespace) ProtoReflect() protoreflect.Message
func (*NetNamespace) Reset ¶
func (x *NetNamespace) Reset()
func (*NetNamespace) String ¶
func (x *NetNamespace) String() string
type NetNamespace_ReferenceType ¶
type NetNamespace_ReferenceType int32
const ( NetNamespace_UNDEFINED NetNamespace_ReferenceType = 0 NetNamespace_NSID NetNamespace_ReferenceType = 1 // named namespace NetNamespace_PID NetNamespace_ReferenceType = 2 // namespace of a given process NetNamespace_FD NetNamespace_ReferenceType = 3 // namespace referenced by a file handle NetNamespace_MICROSERVICE NetNamespace_ReferenceType = 4 // namespace of a docker container running given microservice )
func (NetNamespace_ReferenceType) Descriptor ¶ added in v3.2.0
func (NetNamespace_ReferenceType) Descriptor() protoreflect.EnumDescriptor
func (NetNamespace_ReferenceType) Enum ¶ added in v3.2.0
func (x NetNamespace_ReferenceType) Enum() *NetNamespace_ReferenceType
func (NetNamespace_ReferenceType) EnumDescriptor
deprecated
func (NetNamespace_ReferenceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NetNamespace_ReferenceType.Descriptor instead.
func (NetNamespace_ReferenceType) Number ¶ added in v3.2.0
func (x NetNamespace_ReferenceType) Number() protoreflect.EnumNumber
func (NetNamespace_ReferenceType) String ¶
func (x NetNamespace_ReferenceType) String() string
func (NetNamespace_ReferenceType) Type ¶ added in v3.2.0
func (NetNamespace_ReferenceType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.