l3

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 l3 is a generated protocol buffer package.

It is generated from these files:

l3.proto

It has these top-level messages:

LinuxStaticRoutes
LinuxStaticArpEntries

Index

Constants

View Source
const (
	// StaticArpPrefix is a prefix used in ETCD to store configuration for Linux static ARPs.
	StaticArpPrefix = "linux/config/v1/arp/"
	// StaticRoutePrefix is a prefix used in ETCD to store configuration for Linux static routes.
	StaticRoutePrefix = "linux/config/v1/route/"
)

Variables

View Source
var LinuxStaticArpEntries_ArpEntry_IpFamily_Family_name = map[int32]string{
	0: "IPV4",
	1: "IPV6",
	2: "ALL",
	3: "MPLS",
}
View Source
var LinuxStaticArpEntries_ArpEntry_IpFamily_Family_value = map[string]int32{
	"IPV4": 0,
	"IPV6": 1,
	"ALL":  2,
	"MPLS": 3,
}
View Source
var LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType_name = map[int32]string{
	0: "PID_REF_NS",
	1: "MICROSERVICE_REF_NS",
	2: "NAMED_NS",
	3: "FILE_REF_NS",
}
View Source
var LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType_value = map[string]int32{
	"PID_REF_NS":          0,
	"MICROSERVICE_REF_NS": 1,
	"NAMED_NS":            2,
	"FILE_REF_NS":         3,
}
View Source
var LinuxStaticArpEntries_ArpEntry_NudState_NudStateType_name = map[int32]string{
	0: "PERMANENT",
	1: "NOARP",
	2: "REACHABLE",
	3: "STALE",
}
View Source
var LinuxStaticArpEntries_ArpEntry_NudState_NudStateType_value = map[string]int32{
	"PERMANENT": 0,
	"NOARP":     1,
	"REACHABLE": 2,
	"STALE":     3,
}
View Source
var LinuxStaticRoutes_Route_Namespace_NamespaceType_name = map[int32]string{
	0: "PID_REF_NS",
	1: "MICROSERVICE_REF_NS",
	2: "NAMED_NS",
	3: "FILE_REF_NS",
}
View Source
var LinuxStaticRoutes_Route_Namespace_NamespaceType_value = map[string]int32{
	"PID_REF_NS":          0,
	"MICROSERVICE_REF_NS": 1,
	"NAMED_NS":            2,
	"FILE_REF_NS":         3,
}
View Source
var LinuxStaticRoutes_Route_Scope_ScopeType_name = map[int32]string{
	0: "GLOBAL",
	1: "SITE",
	2: "LINK",
	3: "HOST",
}
View Source
var LinuxStaticRoutes_Route_Scope_ScopeType_value = map[string]int32{
	"GLOBAL": 0,
	"SITE":   1,
	"LINK":   2,
	"HOST":   3,
}

Functions

func StaticArpKey

func StaticArpKey(arpLabel string) string

StaticArpKey returns the prefix used in ETCD to store configuration of a particular Linux ARP entry.

func StaticArpKeyPrefix

func StaticArpKeyPrefix() string

StaticArpKeyPrefix returns the prefix used in ETCD to store config for Linux static ARPs

func StaticRouteKey

func StaticRouteKey(routeLabel string) string

StaticRouteKey returns the prefix used in ETCD to store configuration of a particular Linux route.

func StaticRouteKeyPrefix

func StaticRouteKeyPrefix() string

StaticRouteKeyPrefix returns the prefix used in ETCD to store config for Linux static routes

Types

type LinuxStaticArpEntries

type LinuxStaticArpEntries struct {
	ArpEntry []*LinuxStaticArpEntries_ArpEntry `protobuf:"bytes,1,rep,name=arp_entry,json=arpEntry" json:"arp_entry,omitempty"`
}

static arp entires

func (*LinuxStaticArpEntries) Descriptor

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

func (*LinuxStaticArpEntries) GetArpEntry

func (*LinuxStaticArpEntries) ProtoMessage

func (*LinuxStaticArpEntries) ProtoMessage()

func (*LinuxStaticArpEntries) Reset

func (m *LinuxStaticArpEntries) Reset()

func (*LinuxStaticArpEntries) String

func (m *LinuxStaticArpEntries) String() string

type LinuxStaticArpEntries_ArpEntry

type LinuxStaticArpEntries_ArpEntry struct {
	Name      string                                    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace *LinuxStaticArpEntries_ArpEntry_Namespace `protobuf:"bytes,2,opt,name=namespace" json:"namespace,omitempty"`
	Interface string                                    `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"`
	IpFamily  *LinuxStaticArpEntries_ArpEntry_IpFamily  `protobuf:"bytes,4,opt,name=ip_family,json=ipFamily" json:"ip_family,omitempty"`
	State     *LinuxStaticArpEntries_ArpEntry_NudState  `protobuf:"bytes,5,opt,name=state" json:"state,omitempty"`
	IpAddr    string                                    `protobuf:"bytes,6,opt,name=ip_addr,json=ipAddr,proto3" json:"ip_addr,omitempty"`
	HwAddress string                                    `protobuf:"bytes,7,opt,name=hw_address,json=hwAddress,proto3" json:"hw_address,omitempty"`
}

func (*LinuxStaticArpEntries_ArpEntry) Descriptor

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

func (*LinuxStaticArpEntries_ArpEntry) GetHwAddress

func (m *LinuxStaticArpEntries_ArpEntry) GetHwAddress() string

func (*LinuxStaticArpEntries_ArpEntry) GetInterface

func (m *LinuxStaticArpEntries_ArpEntry) GetInterface() string

func (*LinuxStaticArpEntries_ArpEntry) GetIpAddr

func (m *LinuxStaticArpEntries_ArpEntry) GetIpAddr() string

func (*LinuxStaticArpEntries_ArpEntry) GetIpFamily

func (*LinuxStaticArpEntries_ArpEntry) GetName

func (*LinuxStaticArpEntries_ArpEntry) GetNamespace

func (*LinuxStaticArpEntries_ArpEntry) GetState

func (*LinuxStaticArpEntries_ArpEntry) ProtoMessage

func (*LinuxStaticArpEntries_ArpEntry) ProtoMessage()

func (*LinuxStaticArpEntries_ArpEntry) Reset

func (m *LinuxStaticArpEntries_ArpEntry) Reset()

func (*LinuxStaticArpEntries_ArpEntry) String

type LinuxStaticArpEntries_ArpEntry_IpFamily

type LinuxStaticArpEntries_ArpEntry_IpFamily struct {
	Family LinuxStaticArpEntries_ArpEntry_IpFamily_Family `protobuf:"varint,1,opt,name=family,proto3,enum=l3.LinuxStaticArpEntries_ArpEntry_IpFamily_Family" json:"family,omitempty"`
}

func (*LinuxStaticArpEntries_ArpEntry_IpFamily) Descriptor

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

func (*LinuxStaticArpEntries_ArpEntry_IpFamily) GetFamily

func (*LinuxStaticArpEntries_ArpEntry_IpFamily) ProtoMessage

func (*LinuxStaticArpEntries_ArpEntry_IpFamily) Reset

func (*LinuxStaticArpEntries_ArpEntry_IpFamily) String

type LinuxStaticArpEntries_ArpEntry_IpFamily_Family

type LinuxStaticArpEntries_ArpEntry_IpFamily_Family int32
const (
	LinuxStaticArpEntries_ArpEntry_IpFamily_IPV4 LinuxStaticArpEntries_ArpEntry_IpFamily_Family = 0
	LinuxStaticArpEntries_ArpEntry_IpFamily_IPV6 LinuxStaticArpEntries_ArpEntry_IpFamily_Family = 1
	LinuxStaticArpEntries_ArpEntry_IpFamily_ALL  LinuxStaticArpEntries_ArpEntry_IpFamily_Family = 2
	LinuxStaticArpEntries_ArpEntry_IpFamily_MPLS LinuxStaticArpEntries_ArpEntry_IpFamily_Family = 3
)

func (LinuxStaticArpEntries_ArpEntry_IpFamily_Family) EnumDescriptor

func (LinuxStaticArpEntries_ArpEntry_IpFamily_Family) String

type LinuxStaticArpEntries_ArpEntry_Namespace

type LinuxStaticArpEntries_ArpEntry_Namespace struct {
	Type         LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType `protobuf:"varint,1,opt,name=type,proto3,enum=l3.LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType" json:"type,omitempty"`
	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 (*LinuxStaticArpEntries_ArpEntry_Namespace) Descriptor

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

func (*LinuxStaticArpEntries_ArpEntry_Namespace) GetFilepath

func (*LinuxStaticArpEntries_ArpEntry_Namespace) GetMicroservice

func (m *LinuxStaticArpEntries_ArpEntry_Namespace) GetMicroservice() string

func (*LinuxStaticArpEntries_ArpEntry_Namespace) GetName

func (*LinuxStaticArpEntries_ArpEntry_Namespace) GetPid

func (*LinuxStaticArpEntries_ArpEntry_Namespace) GetType

func (*LinuxStaticArpEntries_ArpEntry_Namespace) ProtoMessage

func (*LinuxStaticArpEntries_ArpEntry_Namespace) Reset

func (*LinuxStaticArpEntries_ArpEntry_Namespace) String

type LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType

type LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType int32
const (
	LinuxStaticArpEntries_ArpEntry_Namespace_PID_REF_NS          LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType = 0
	LinuxStaticArpEntries_ArpEntry_Namespace_MICROSERVICE_REF_NS LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType = 1
	LinuxStaticArpEntries_ArpEntry_Namespace_NAMED_NS            LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType = 2
	LinuxStaticArpEntries_ArpEntry_Namespace_FILE_REF_NS         LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType = 3
)

func (LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType) EnumDescriptor

func (LinuxStaticArpEntries_ArpEntry_Namespace_NamespaceType) String

type LinuxStaticArpEntries_ArpEntry_NudState

type LinuxStaticArpEntries_ArpEntry_NudState struct {
	Type LinuxStaticArpEntries_ArpEntry_NudState_NudStateType `protobuf:"varint,1,opt,name=type,proto3,enum=l3.LinuxStaticArpEntries_ArpEntry_NudState_NudStateType" json:"type,omitempty"`
}

func (*LinuxStaticArpEntries_ArpEntry_NudState) Descriptor

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

func (*LinuxStaticArpEntries_ArpEntry_NudState) GetType

func (*LinuxStaticArpEntries_ArpEntry_NudState) ProtoMessage

func (*LinuxStaticArpEntries_ArpEntry_NudState) Reset

func (*LinuxStaticArpEntries_ArpEntry_NudState) String

type LinuxStaticArpEntries_ArpEntry_NudState_NudStateType

type LinuxStaticArpEntries_ArpEntry_NudState_NudStateType int32
const (
	LinuxStaticArpEntries_ArpEntry_NudState_PERMANENT LinuxStaticArpEntries_ArpEntry_NudState_NudStateType = 0
	LinuxStaticArpEntries_ArpEntry_NudState_NOARP     LinuxStaticArpEntries_ArpEntry_NudState_NudStateType = 1
	LinuxStaticArpEntries_ArpEntry_NudState_REACHABLE LinuxStaticArpEntries_ArpEntry_NudState_NudStateType = 2
	LinuxStaticArpEntries_ArpEntry_NudState_STALE     LinuxStaticArpEntries_ArpEntry_NudState_NudStateType = 3
)

func (LinuxStaticArpEntries_ArpEntry_NudState_NudStateType) EnumDescriptor

func (LinuxStaticArpEntries_ArpEntry_NudState_NudStateType) String

type LinuxStaticRoutes

type LinuxStaticRoutes struct {
	Route []*LinuxStaticRoutes_Route `protobuf:"bytes,1,rep,name=route" json:"route,omitempty"`
}

static ip routes

func (*LinuxStaticRoutes) Descriptor

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

func (*LinuxStaticRoutes) GetRoute

func (m *LinuxStaticRoutes) GetRoute() []*LinuxStaticRoutes_Route

func (*LinuxStaticRoutes) ProtoMessage

func (*LinuxStaticRoutes) ProtoMessage()

func (*LinuxStaticRoutes) Reset

func (m *LinuxStaticRoutes) Reset()

func (*LinuxStaticRoutes) String

func (m *LinuxStaticRoutes) String() string

type LinuxStaticRoutes_Route

type LinuxStaticRoutes_Route struct {
	Name        string                             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Default     bool                               `protobuf:"varint,2,opt,name=default,proto3" json:"default,omitempty"`
	Namespace   *LinuxStaticRoutes_Route_Namespace `protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"`
	Interface   string                             `protobuf:"bytes,5,opt,name=interface,proto3" json:"interface,omitempty"`
	Description string                             `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Scope       *LinuxStaticRoutes_Route_Scope     `protobuf:"bytes,7,opt,name=scope" json:"scope,omitempty"`
	DstIpAddr   string                             `protobuf:"bytes,8,opt,name=dst_ip_addr,json=dstIpAddr,proto3" json:"dst_ip_addr,omitempty"`
	SrcIpAddr   string                             `protobuf:"bytes,9,opt,name=src_ip_addr,json=srcIpAddr,proto3" json:"src_ip_addr,omitempty"`
	GwAddr      string                             `protobuf:"bytes,10,opt,name=gw_addr,json=gwAddr,proto3" json:"gw_addr,omitempty"`
	Metric      uint32                             `protobuf:"varint,11,opt,name=metric,proto3" json:"metric,omitempty"`
	Table       uint32                             `protobuf:"varint,12,opt,name=table,proto3" json:"table,omitempty"`
}

func (*LinuxStaticRoutes_Route) Descriptor

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

func (*LinuxStaticRoutes_Route) GetDefault

func (m *LinuxStaticRoutes_Route) GetDefault() bool

func (*LinuxStaticRoutes_Route) GetDescription

func (m *LinuxStaticRoutes_Route) GetDescription() string

func (*LinuxStaticRoutes_Route) GetDstIpAddr

func (m *LinuxStaticRoutes_Route) GetDstIpAddr() string

func (*LinuxStaticRoutes_Route) GetGwAddr

func (m *LinuxStaticRoutes_Route) GetGwAddr() string

func (*LinuxStaticRoutes_Route) GetInterface

func (m *LinuxStaticRoutes_Route) GetInterface() string

func (*LinuxStaticRoutes_Route) GetMetric

func (m *LinuxStaticRoutes_Route) GetMetric() uint32

func (*LinuxStaticRoutes_Route) GetName

func (m *LinuxStaticRoutes_Route) GetName() string

func (*LinuxStaticRoutes_Route) GetNamespace

func (*LinuxStaticRoutes_Route) GetScope

func (*LinuxStaticRoutes_Route) GetSrcIpAddr

func (m *LinuxStaticRoutes_Route) GetSrcIpAddr() string

func (*LinuxStaticRoutes_Route) GetTable

func (m *LinuxStaticRoutes_Route) GetTable() uint32

func (*LinuxStaticRoutes_Route) ProtoMessage

func (*LinuxStaticRoutes_Route) ProtoMessage()

func (*LinuxStaticRoutes_Route) Reset

func (m *LinuxStaticRoutes_Route) Reset()

func (*LinuxStaticRoutes_Route) String

func (m *LinuxStaticRoutes_Route) String() string

type LinuxStaticRoutes_Route_Namespace

type LinuxStaticRoutes_Route_Namespace struct {
	Type         LinuxStaticRoutes_Route_Namespace_NamespaceType `protobuf:"varint,1,opt,name=type,proto3,enum=l3.LinuxStaticRoutes_Route_Namespace_NamespaceType" json:"type,omitempty"`
	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 (*LinuxStaticRoutes_Route_Namespace) Descriptor

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

func (*LinuxStaticRoutes_Route_Namespace) GetFilepath

func (m *LinuxStaticRoutes_Route_Namespace) GetFilepath() string

func (*LinuxStaticRoutes_Route_Namespace) GetMicroservice

func (m *LinuxStaticRoutes_Route_Namespace) GetMicroservice() string

func (*LinuxStaticRoutes_Route_Namespace) GetName

func (*LinuxStaticRoutes_Route_Namespace) GetPid

func (*LinuxStaticRoutes_Route_Namespace) GetType

func (*LinuxStaticRoutes_Route_Namespace) ProtoMessage

func (*LinuxStaticRoutes_Route_Namespace) ProtoMessage()

func (*LinuxStaticRoutes_Route_Namespace) Reset

func (*LinuxStaticRoutes_Route_Namespace) String

type LinuxStaticRoutes_Route_Namespace_NamespaceType

type LinuxStaticRoutes_Route_Namespace_NamespaceType int32
const (
	LinuxStaticRoutes_Route_Namespace_PID_REF_NS          LinuxStaticRoutes_Route_Namespace_NamespaceType = 0
	LinuxStaticRoutes_Route_Namespace_MICROSERVICE_REF_NS LinuxStaticRoutes_Route_Namespace_NamespaceType = 1
	LinuxStaticRoutes_Route_Namespace_NAMED_NS            LinuxStaticRoutes_Route_Namespace_NamespaceType = 2
	LinuxStaticRoutes_Route_Namespace_FILE_REF_NS         LinuxStaticRoutes_Route_Namespace_NamespaceType = 3
)

func (LinuxStaticRoutes_Route_Namespace_NamespaceType) EnumDescriptor

func (LinuxStaticRoutes_Route_Namespace_NamespaceType) String

type LinuxStaticRoutes_Route_Scope

type LinuxStaticRoutes_Route_Scope struct {
	Type LinuxStaticRoutes_Route_Scope_ScopeType `protobuf:"varint,1,opt,name=type,proto3,enum=l3.LinuxStaticRoutes_Route_Scope_ScopeType" json:"type,omitempty"`
}

func (*LinuxStaticRoutes_Route_Scope) Descriptor

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

func (*LinuxStaticRoutes_Route_Scope) GetType

func (*LinuxStaticRoutes_Route_Scope) ProtoMessage

func (*LinuxStaticRoutes_Route_Scope) ProtoMessage()

func (*LinuxStaticRoutes_Route_Scope) Reset

func (m *LinuxStaticRoutes_Route_Scope) Reset()

func (*LinuxStaticRoutes_Route_Scope) String

type LinuxStaticRoutes_Route_Scope_ScopeType

type LinuxStaticRoutes_Route_Scope_ScopeType int32
const (
	LinuxStaticRoutes_Route_Scope_GLOBAL LinuxStaticRoutes_Route_Scope_ScopeType = 0
	LinuxStaticRoutes_Route_Scope_SITE   LinuxStaticRoutes_Route_Scope_ScopeType = 1
	LinuxStaticRoutes_Route_Scope_LINK   LinuxStaticRoutes_Route_Scope_ScopeType = 2
	LinuxStaticRoutes_Route_Scope_HOST   LinuxStaticRoutes_Route_Scope_ScopeType = 3
)

func (LinuxStaticRoutes_Route_Scope_ScopeType) EnumDescriptor

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

func (LinuxStaticRoutes_Route_Scope_ScopeType) String

Jump to

Keyboard shortcuts

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