linux_namespace

package
v2.1.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

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",
}
View Source
var NetNamespace_ReferenceType_value = map[string]int32{
	"UNDEFINED":    0,
	"NSID":         1,
	"PID":          2,
	"FD":           3,
	"MICROSERVICE": 4,
}

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=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 (*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

Jump to

Keyboard shortcuts

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