Documentation ¶
Index ¶
- Constants
- Variables
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)deprecated
- func (x *Peer) GetAllowedIps() []string
- func (x *Peer) GetEndpoint() string
- func (x *Peer) GetFlags() uint32
- func (x *Peer) GetPersistentKeepalive() uint32
- func (x *Peer) GetPort() uint32
- func (x *Peer) GetPublicKey() string
- func (x *Peer) GetWgIfName() string
- func (*Peer) ProtoMessage()
- func (x *Peer) ProtoReflect() protoreflect.Message
- func (x *Peer) Reset()
- func (x *Peer) String() string
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) GetAllowedIps ¶
func (*Peer) GetEndpoint ¶
func (*Peer) GetPersistentKeepalive ¶
func (*Peer) GetPublicKey ¶
func (*Peer) GetWgIfName ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) ProtoReflect ¶
func (x *Peer) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.