Documentation ¶
Index ¶
- Variables
- type Action
- type Destination
- func (*Destination) Descriptor() ([]byte, []int)deprecated
- func (x *Destination) GetIpVersion() IPVersion
- func (x *Destination) GetPrefix() []byte
- func (x *Destination) GetPrefixLength() uint32
- func (*Destination) ProtoMessage()
- func (x *Destination) ProtoReflect() protoreflect.Message
- func (x *Destination) Reset()
- func (x *Destination) String() string
- type Hello
- type IPVersion
- type NextHop
- func (*NextHop) Descriptor() ([]byte, []int)deprecated
- func (x *NextHop) GetNatPortRangeFrom() uint32
- func (x *NextHop) GetNatPortRangeTo() uint32
- func (x *NextHop) GetTargetAddress() []byte
- func (x *NextHop) GetTargetVNI() uint32
- func (x *NextHop) GetType() NextHopType
- func (*NextHop) ProtoMessage()
- func (x *NextHop) ProtoReflect() protoreflect.Message
- func (x *NextHop) Reset()
- func (x *NextHop) String() string
- type NextHopType
- func (NextHopType) Descriptor() protoreflect.EnumDescriptor
- func (x NextHopType) Enum() *NextHopType
- func (NextHopType) EnumDescriptor() ([]byte, []int)deprecated
- func (x NextHopType) Number() protoreflect.EnumNumber
- func (x NextHopType) String() string
- func (NextHopType) Type() protoreflect.EnumType
- type Subscription
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetAction() Action
- func (x *Update) GetDestination() *Destination
- func (x *Update) GetNextHop() *NextHop
- func (x *Update) GetVni() uint32
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IPVersion_name = map[int32]string{ 0: "IPv4", 1: "IPv6", } IPVersion_value = map[string]int32{ "IPv4": 0, "IPv6": 1, } )
Enum value maps for IPVersion.
View Source
var ( Action_name = map[int32]string{ 0: "ADD", 1: "REMOVE", } Action_value = map[string]int32{ "ADD": 0, "REMOVE": 1, } )
Enum value maps for Action.
View Source
var ( NextHopType_name = map[int32]string{ 0: "STANDARD", 1: "NAT", 2: "LOADBALANCER_TARGET", } NextHopType_value = map[string]int32{ "STANDARD": 0, "NAT": 1, "LOADBALANCER_TARGET": 2, } )
Enum value maps for NextHopType.
View Source
var File_metalbond_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int32
func (Action) Descriptor ¶
func (Action) Descriptor() protoreflect.EnumDescriptor
func (Action) EnumDescriptor
deprecated
func (Action) Number ¶
func (x Action) Number() protoreflect.EnumNumber
func (Action) Type ¶
func (Action) Type() protoreflect.EnumType
type Destination ¶
type Destination struct { IpVersion IPVersion `protobuf:"varint,1,opt,name=ipVersion,proto3,enum=metalbond.IPVersion" json:"ipVersion,omitempty"` Prefix []byte `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` PrefixLength uint32 `protobuf:"varint,3,opt,name=prefixLength,proto3" json:"prefixLength,omitempty"` // contains filtered or unexported fields }
func (*Destination) Descriptor
deprecated
func (*Destination) Descriptor() ([]byte, []int)
Deprecated: Use Destination.ProtoReflect.Descriptor instead.
func (*Destination) GetIpVersion ¶
func (x *Destination) GetIpVersion() IPVersion
func (*Destination) GetPrefix ¶
func (x *Destination) GetPrefix() []byte
func (*Destination) GetPrefixLength ¶
func (x *Destination) GetPrefixLength() uint32
func (*Destination) ProtoMessage ¶
func (*Destination) ProtoMessage()
func (*Destination) ProtoReflect ¶
func (x *Destination) ProtoReflect() protoreflect.Message
func (*Destination) Reset ¶
func (x *Destination) Reset()
func (*Destination) String ¶
func (x *Destination) String() string
type Hello ¶
type Hello struct { KeepaliveInterval uint32 `protobuf:"varint,1,opt,name=keepaliveInterval,proto3" json:"keepaliveInterval,omitempty"` IsServer bool `protobuf:"varint,2,opt,name=isServer,proto3" json:"isServer,omitempty"` // contains filtered or unexported fields }
func (*Hello) Descriptor
deprecated
func (*Hello) GetIsServer ¶
func (*Hello) GetKeepaliveInterval ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) ProtoReflect ¶
func (x *Hello) ProtoReflect() protoreflect.Message
type IPVersion ¶
type IPVersion int32
func (IPVersion) Descriptor ¶
func (IPVersion) Descriptor() protoreflect.EnumDescriptor
func (IPVersion) EnumDescriptor
deprecated
func (IPVersion) Number ¶
func (x IPVersion) Number() protoreflect.EnumNumber
func (IPVersion) Type ¶
func (IPVersion) Type() protoreflect.EnumType
type NextHop ¶
type NextHop struct { TargetAddress []byte `protobuf:"bytes,1,opt,name=targetAddress,proto3" json:"targetAddress,omitempty"` TargetVNI uint32 `protobuf:"varint,2,opt,name=targetVNI,proto3" json:"targetVNI,omitempty"` Type NextHopType `protobuf:"varint,3,opt,name=type,proto3,enum=metalbond.NextHopType" json:"type,omitempty"` NatPortRangeFrom uint32 `protobuf:"varint,4,opt,name=natPortRangeFrom,proto3" json:"natPortRangeFrom,omitempty"` NatPortRangeTo uint32 `protobuf:"varint,5,opt,name=natPortRangeTo,proto3" json:"natPortRangeTo,omitempty"` // contains filtered or unexported fields }
func (*NextHop) Descriptor
deprecated
func (*NextHop) GetNatPortRangeFrom ¶
func (*NextHop) GetNatPortRangeTo ¶
func (*NextHop) GetTargetAddress ¶
func (*NextHop) GetTargetVNI ¶
func (*NextHop) GetType ¶
func (x *NextHop) GetType() NextHopType
func (*NextHop) ProtoMessage ¶
func (*NextHop) ProtoMessage()
func (*NextHop) ProtoReflect ¶
func (x *NextHop) ProtoReflect() protoreflect.Message
type NextHopType ¶
type NextHopType int32
const ( NextHopType_STANDARD NextHopType = 0 NextHopType_NAT NextHopType = 1 NextHopType_LOADBALANCER_TARGET NextHopType = 2 )
func ConvertCmdLineStrToEnumValue ¶
func ConvertCmdLineStrToEnumValue(routeType string) NextHopType
func (NextHopType) Descriptor ¶
func (NextHopType) Descriptor() protoreflect.EnumDescriptor
func (NextHopType) Enum ¶
func (x NextHopType) Enum() *NextHopType
func (NextHopType) EnumDescriptor
deprecated
func (NextHopType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NextHopType.Descriptor instead.
func (NextHopType) Number ¶
func (x NextHopType) Number() protoreflect.EnumNumber
func (NextHopType) String ¶
func (x NextHopType) String() string
func (NextHopType) Type ¶
func (NextHopType) Type() protoreflect.EnumType
type Subscription ¶
type Subscription struct { Vni uint32 `protobuf:"varint,1,opt,name=vni,proto3" json:"vni,omitempty"` // contains filtered or unexported fields }
func (*Subscription) Descriptor
deprecated
func (*Subscription) Descriptor() ([]byte, []int)
Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) GetVni ¶
func (x *Subscription) GetVni() uint32
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) ProtoReflect ¶
func (x *Subscription) ProtoReflect() protoreflect.Message
func (*Subscription) Reset ¶
func (x *Subscription) Reset()
func (*Subscription) String ¶
func (x *Subscription) String() string
type Update ¶
type Update struct { Action Action `protobuf:"varint,1,opt,name=action,proto3,enum=metalbond.Action" json:"action,omitempty"` Vni uint32 `protobuf:"varint,2,opt,name=vni,proto3" json:"vni,omitempty"` Destination *Destination `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"` NextHop *NextHop `protobuf:"bytes,4,opt,name=nextHop,proto3" json:"nextHop,omitempty"` // contains filtered or unexported fields }
func (*Update) Descriptor
deprecated
func (*Update) GetDestination ¶
func (x *Update) GetDestination() *Destination
func (*Update) GetNextHop ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶
func (x *Update) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.