namespace

package
v2.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func MicroserviceKey(microservice string) string

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

Jump to

Keyboard shortcuts

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