interfaces

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package interfaces is a generated protocol buffer package.

It is generated from these files:

interfaces/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",
}
View Source
var LinuxInterfaces_InterfaceType_value = map[string]int32{
	"VETH": 0,
}
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) 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"`
	PhysAddress string                        `protobuf:"bytes,5,opt,name=phys_address,proto3" json:"phys_address,omitempty"`
	Mtu         uint32                        `protobuf:"varint,6,opt,name=mtu,proto3" json:"mtu,omitempty"`
	HostIfName  string                        `protobuf:"bytes,7,opt,name=host_if_name,proto3" json:"host_if_name,omitempty"`
	// Required format is "ipAddress/ipPrefix"
	IpAddresses []string                             `protobuf:"bytes,10,rep,name=ip_addresses" json:"ip_addresses,omitempty"`
	Namespace   *LinuxInterfaces_Interface_Namespace `protobuf:"bytes,50,opt,name=namespace" json:"namespace,omitempty"`
	Veth        *LinuxInterfaces_Interface_Veth      `protobuf:"bytes,105,opt,name=veth" json:"veth,omitempty"`
}

func (*LinuxInterfaces_Interface) GetNamespace

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
)

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"`
}

Linux network namespace to attach the interface into.

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

type LinuxInterfaces_Interface_Veth

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

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