pb

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

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
const (
	Action_ADD    Action = 0
	Action_REMOVE Action = 1
)

func (Action) Descriptor

func (Action) Descriptor() protoreflect.EnumDescriptor

func (Action) Enum

func (x Action) Enum() *Action

func (Action) EnumDescriptor deprecated

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

Deprecated: Use Action.Descriptor instead.

func (Action) Number

func (x Action) Number() protoreflect.EnumNumber

func (Action) String

func (x Action) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Hello.ProtoReflect.Descriptor instead.

func (*Hello) GetIsServer

func (x *Hello) GetIsServer() bool

func (*Hello) GetKeepaliveInterval

func (x *Hello) GetKeepaliveInterval() uint32

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) ProtoReflect

func (x *Hello) ProtoReflect() protoreflect.Message

func (*Hello) Reset

func (x *Hello) Reset()

func (*Hello) String

func (x *Hello) String() string

type IPVersion

type IPVersion int32
const (
	IPVersion_IPv4 IPVersion = 0
	IPVersion_IPv6 IPVersion = 1
)

func (IPVersion) Descriptor

func (IPVersion) Descriptor() protoreflect.EnumDescriptor

func (IPVersion) Enum

func (x IPVersion) Enum() *IPVersion

func (IPVersion) EnumDescriptor deprecated

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

Deprecated: Use IPVersion.Descriptor instead.

func (IPVersion) Number

func (x IPVersion) Number() protoreflect.EnumNumber

func (IPVersion) String

func (x IPVersion) String() string

func (IPVersion) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use NextHop.ProtoReflect.Descriptor instead.

func (*NextHop) GetNatPortRangeFrom

func (x *NextHop) GetNatPortRangeFrom() uint32

func (*NextHop) GetNatPortRangeTo

func (x *NextHop) GetNatPortRangeTo() uint32

func (*NextHop) GetTargetAddress

func (x *NextHop) GetTargetAddress() []byte

func (*NextHop) GetTargetVNI

func (x *NextHop) GetTargetVNI() uint32

func (*NextHop) GetType

func (x *NextHop) GetType() NextHopType

func (*NextHop) ProtoMessage

func (*NextHop) ProtoMessage()

func (*NextHop) ProtoReflect

func (x *NextHop) ProtoReflect() protoreflect.Message

func (*NextHop) Reset

func (x *NextHop) Reset()

func (*NextHop) String

func (x *NextHop) String() string

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Update.ProtoReflect.Descriptor instead.

func (*Update) GetAction

func (x *Update) GetAction() Action

func (*Update) GetDestination

func (x *Update) GetDestination() *Destination

func (*Update) GetNextHop

func (x *Update) GetNextHop() *NextHop

func (*Update) GetVni

func (x *Update) GetVni() uint32

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) ProtoReflect

func (x *Update) ProtoReflect() protoreflect.Message

func (*Update) Reset

func (x *Update) Reset()

func (*Update) String

func (x *Update) String() string

Jump to

Keyboard shortcuts

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