l3

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: Apache-2.0 Imports: 1 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_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:"arp_entry,omitempty"`
}

static arp entires

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"`
	Family    uint32                                    `protobuf:"varint,4,opt,name=family,proto3" json:"family,omitempty"`
	State     *LinuxStaticArpEntries_ArpEntry_NudState  `protobuf:"bytes,5,opt,name=state" json:"state,omitempty"`
	IpAddr    string                                    `protobuf:"bytes,6,opt,name=ip_addr,proto3" json:"ip_addr,omitempty"`
	HwAddress string                                    `protobuf:"bytes,7,opt,name=hw_address,proto3" json:"hw_address,omitempty"`
}

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

type LinuxStaticRoutes

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

static ip routes

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,proto3" json:"dst_ip_addr,omitempty"`
	SrcIpAddr   string                             `protobuf:"bytes,9,opt,name=src_ip_addr,proto3" json:"src_ip_addr,omitempty"`
	GwAddr      string                             `protobuf:"bytes,10,opt,name=gw_addr,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) GetNamespace

func (*LinuxStaticRoutes_Route) GetScope

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

Jump to

Keyboard shortcuts

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