interfaces

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package interfaces is a generated protocol buffer package.

It is generated from these files:

interfaces.proto

It has these top-level messages:

LinuxInterfaces

Index

Constants

View Source
const (
	// InterfacePrefix is a prefix used in ETCD to store configuration for Linux interfaces.
	InterfacePrefix = "linux/config/v1/interface/"
)

Variables

View Source
var LinuxInterfaces_InterfaceType_name = map[int32]string{
	0: "VETH",
	1: "AUTO_TAP",
}
View Source
var LinuxInterfaces_InterfaceType_value = map[string]int32{
	"VETH":     0,
	"AUTO_TAP": 1,
}
View Source
var LinuxInterfaces_Interface_Namespace_NamespaceType_name = map[int32]string{
	0: "PID_REF_NS",
	1: "MICROSERVICE_REF_NS",
	2: "NAMED_NS",
	3: "FILE_REF_NS",
}
View Source
var LinuxInterfaces_Interface_Namespace_NamespaceType_value = map[string]int32{
	"PID_REF_NS":          0,
	"MICROSERVICE_REF_NS": 1,
	"NAMED_NS":            2,
	"FILE_REF_NS":         3,
}

Functions

func InterfaceKey

func InterfaceKey(ifaceLabel string) string

InterfaceKey returns the prefix used in ETCD to store configuration of a particular Linux interface.

func InterfaceKeyPrefix

func InterfaceKeyPrefix() string

InterfaceKeyPrefix returns the prefix used in ETCD to store config for Linux interfaces.

Types

type LinuxInterfaces

type LinuxInterfaces struct {
	Interface []*LinuxInterfaces_Interface `protobuf:"bytes,1,rep,name=interface" json:"interface,omitempty"`
}

func (*LinuxInterfaces) Descriptor

func (*LinuxInterfaces) Descriptor() ([]byte, []int)

func (*LinuxInterfaces) GetInterface

func (m *LinuxInterfaces) GetInterface() []*LinuxInterfaces_Interface

func (*LinuxInterfaces) ProtoMessage

func (*LinuxInterfaces) ProtoMessage()

func (*LinuxInterfaces) Reset

func (m *LinuxInterfaces) Reset()

func (*LinuxInterfaces) String

func (m *LinuxInterfaces) String() string

type LinuxInterfaces_Interface

type LinuxInterfaces_Interface struct {
	Name        string                               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string                               `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Type        LinuxInterfaces_InterfaceType        `protobuf:"varint,3,opt,name=type,proto3,enum=interfaces.LinuxInterfaces_InterfaceType" json:"type,omitempty"`
	Enabled     bool                                 `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	IpAddresses []string                             `protobuf:"bytes,5,rep,name=ip_addresses,json=ipAddresses" json:"ip_addresses,omitempty"`
	PhysAddress string                               `protobuf:"bytes,6,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`
	Mtu         uint32                               `protobuf:"varint,7,opt,name=mtu,proto3" json:"mtu,omitempty"`
	HostIfName  string                               `protobuf:"bytes,8,opt,name=host_if_name,json=hostIfName,proto3" json:"host_if_name,omitempty"`
	Namespace   *LinuxInterfaces_Interface_Namespace `protobuf:"bytes,9,opt,name=namespace" json:"namespace,omitempty"`
	Veth        *LinuxInterfaces_Interface_Veth      `protobuf:"bytes,10,opt,name=veth" json:"veth,omitempty"`
	Tap         *LinuxInterfaces_Interface_Tap       `protobuf:"bytes,11,opt,name=tap" json:"tap,omitempty"`
}

func (*LinuxInterfaces_Interface) Descriptor

func (*LinuxInterfaces_Interface) Descriptor() ([]byte, []int)

func (*LinuxInterfaces_Interface) GetDescription

func (m *LinuxInterfaces_Interface) GetDescription() string

func (*LinuxInterfaces_Interface) GetEnabled

func (m *LinuxInterfaces_Interface) GetEnabled() bool

func (*LinuxInterfaces_Interface) GetHostIfName

func (m *LinuxInterfaces_Interface) GetHostIfName() string

func (*LinuxInterfaces_Interface) GetIpAddresses

func (m *LinuxInterfaces_Interface) GetIpAddresses() []string

func (*LinuxInterfaces_Interface) GetMtu

func (m *LinuxInterfaces_Interface) GetMtu() uint32

func (*LinuxInterfaces_Interface) GetName

func (m *LinuxInterfaces_Interface) GetName() string

func (*LinuxInterfaces_Interface) GetNamespace

func (*LinuxInterfaces_Interface) GetPhysAddress

func (m *LinuxInterfaces_Interface) GetPhysAddress() string

func (*LinuxInterfaces_Interface) GetTap

func (*LinuxInterfaces_Interface) GetType

func (*LinuxInterfaces_Interface) GetVeth

func (*LinuxInterfaces_Interface) ProtoMessage

func (*LinuxInterfaces_Interface) ProtoMessage()

func (*LinuxInterfaces_Interface) Reset

func (m *LinuxInterfaces_Interface) Reset()

func (*LinuxInterfaces_Interface) String

func (m *LinuxInterfaces_Interface) String() string

type LinuxInterfaces_InterfaceType

type LinuxInterfaces_InterfaceType int32
const (
	LinuxInterfaces_VETH     LinuxInterfaces_InterfaceType = 0
	LinuxInterfaces_AUTO_TAP LinuxInterfaces_InterfaceType = 1
)

func (LinuxInterfaces_InterfaceType) EnumDescriptor

func (LinuxInterfaces_InterfaceType) EnumDescriptor() ([]byte, []int)

func (LinuxInterfaces_InterfaceType) String

type LinuxInterfaces_Interface_Namespace

type LinuxInterfaces_Interface_Namespace struct {
	Type         LinuxInterfaces_Interface_Namespace_NamespaceType `` /* 128-byte string literal not displayed */
	Pid          uint32                                            `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	Microservice string                                            `protobuf:"bytes,3,opt,name=microservice,proto3" json:"microservice,omitempty"`
	Name         string                                            `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Filepath     string                                            `protobuf:"bytes,5,opt,name=filepath,proto3" json:"filepath,omitempty"`
}

func (*LinuxInterfaces_Interface_Namespace) Descriptor

func (*LinuxInterfaces_Interface_Namespace) Descriptor() ([]byte, []int)

func (*LinuxInterfaces_Interface_Namespace) GetFilepath

func (*LinuxInterfaces_Interface_Namespace) GetMicroservice

func (m *LinuxInterfaces_Interface_Namespace) GetMicroservice() string

func (*LinuxInterfaces_Interface_Namespace) GetName

func (*LinuxInterfaces_Interface_Namespace) GetPid

func (*LinuxInterfaces_Interface_Namespace) GetType

func (*LinuxInterfaces_Interface_Namespace) ProtoMessage

func (*LinuxInterfaces_Interface_Namespace) ProtoMessage()

func (*LinuxInterfaces_Interface_Namespace) Reset

func (*LinuxInterfaces_Interface_Namespace) String

type LinuxInterfaces_Interface_Namespace_NamespaceType

type LinuxInterfaces_Interface_Namespace_NamespaceType int32
const (
	LinuxInterfaces_Interface_Namespace_PID_REF_NS          LinuxInterfaces_Interface_Namespace_NamespaceType = 0
	LinuxInterfaces_Interface_Namespace_MICROSERVICE_REF_NS LinuxInterfaces_Interface_Namespace_NamespaceType = 1
	LinuxInterfaces_Interface_Namespace_NAMED_NS            LinuxInterfaces_Interface_Namespace_NamespaceType = 2
	LinuxInterfaces_Interface_Namespace_FILE_REF_NS         LinuxInterfaces_Interface_Namespace_NamespaceType = 3
)

func (LinuxInterfaces_Interface_Namespace_NamespaceType) EnumDescriptor

func (LinuxInterfaces_Interface_Namespace_NamespaceType) String

type LinuxInterfaces_Interface_Tap

type LinuxInterfaces_Interface_Tap struct {
	TempIfName string `protobuf:"bytes,1,opt,name=temp_if_name,json=tempIfName,proto3" json:"temp_if_name,omitempty"`
}

func (*LinuxInterfaces_Interface_Tap) Descriptor

func (*LinuxInterfaces_Interface_Tap) Descriptor() ([]byte, []int)

func (*LinuxInterfaces_Interface_Tap) GetTempIfName

func (m *LinuxInterfaces_Interface_Tap) GetTempIfName() string

func (*LinuxInterfaces_Interface_Tap) ProtoMessage

func (*LinuxInterfaces_Interface_Tap) ProtoMessage()

func (*LinuxInterfaces_Interface_Tap) Reset

func (m *LinuxInterfaces_Interface_Tap) Reset()

func (*LinuxInterfaces_Interface_Tap) String

type LinuxInterfaces_Interface_Veth

type LinuxInterfaces_Interface_Veth struct {
	PeerIfName string `protobuf:"bytes,1,opt,name=peer_if_name,json=peerIfName,proto3" json:"peer_if_name,omitempty"`
}

func (*LinuxInterfaces_Interface_Veth) Descriptor

func (*LinuxInterfaces_Interface_Veth) Descriptor() ([]byte, []int)

func (*LinuxInterfaces_Interface_Veth) GetPeerIfName

func (m *LinuxInterfaces_Interface_Veth) GetPeerIfName() string

func (*LinuxInterfaces_Interface_Veth) ProtoMessage

func (*LinuxInterfaces_Interface_Veth) ProtoMessage()

func (*LinuxInterfaces_Interface_Veth) Reset

func (m *LinuxInterfaces_Interface_Veth) Reset()

func (*LinuxInterfaces_Interface_Veth) String

Jump to

Keyboard shortcuts

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