linux_namespace

package
v3.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 10

Documentation

Index

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

func MicroserviceKey(microservice string) string

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 (*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) Enum added in v3.2.0

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 (NetNamespace_ReferenceType) String

func (NetNamespace_ReferenceType) Type added in v3.2.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL