vpp_wg

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "vpp.wg"

ModuleName is the module name used for models.

Variables

View Source
var File_ligato_vpp_wireguard_wireguard_proto protoreflect.FileDescriptor
View Source
var (
	ModelPeer = models.Register(&Peer{}, models.Spec{
		Module:  ModuleName,
		Version: "v1",
		Type:    "peer",
	}, models.WithNameTemplate("{{.WgIfName}}/endpoint/{{.Endpoint}}/{{.Port}}"))
)

Functions

This section is empty.

Types

type Peer

type Peer struct {

	// Public-key base64
	PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Peer UDP port
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// Keepalive interval (sec)
	PersistentKeepalive uint32 `protobuf:"varint,3,opt,name=persistent_keepalive,json=persistentKeepalive,proto3" json:"persistent_keepalive,omitempty"`
	// Endpoint IP
	Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// The name of the wireguard interface to which this peer belongs
	WgIfName string `protobuf:"bytes,5,opt,name=wg_if_name,json=wgIfName,proto3" json:"wg_if_name,omitempty"`
	// Flags
	// WIREGUARD_PEER_STATUS_DEAD = 0x1
	Flags uint32 `protobuf:"varint,6,opt,name=flags,proto3" json:"flags,omitempty"`
	// Allowed IPs
	AllowedIps []string `protobuf:"bytes,7,rep,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"`
	// contains filtered or unexported fields
}

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetAllowedIps

func (x *Peer) GetAllowedIps() []string

func (*Peer) GetEndpoint

func (x *Peer) GetEndpoint() string

func (*Peer) GetFlags

func (x *Peer) GetFlags() uint32

func (*Peer) GetPersistentKeepalive

func (x *Peer) GetPersistentKeepalive() uint32

func (*Peer) GetPort

func (x *Peer) GetPort() uint32

func (*Peer) GetPublicKey

func (x *Peer) GetPublicKey() string

func (*Peer) GetWgIfName

func (x *Peer) GetWgIfName() string

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

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

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

Jump to

Keyboard shortcuts

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