Versions in this module Expand all Collapse all v0 v0.0.1 Sep 5, 2023 Changes in this version + var DeviceType_name = map[int32]string + var DeviceType_value = map[string]int32 + var File_node_proto protoreflect.FileDescriptor + var File_wgtypes_proto protoreflect.FileDescriptor + var WireGuard_ServiceDesc = grpc.ServiceDesc + func RegisterWireGuardServer(s grpc.ServiceRegistrar, srv WireGuardServer) + type Config struct + FirewallMark int32 + ListenPort int32 + Peers []*PeerConfig + PrivateKey []byte + ReplacePeers bool + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (x *Config) GetFirewallMark() int32 + func (x *Config) GetListenPort() int32 + func (x *Config) GetPeers() []*PeerConfig + func (x *Config) GetPrivateKey() []byte + func (x *Config) GetReplacePeers() bool + func (x *Config) ProtoReflect() protoreflect.Message + func (x *Config) Reset() + func (x *Config) String() string + type ConfigureDeviceRequest struct + Config *Config + Name string + func (*ConfigureDeviceRequest) Descriptor() ([]byte, []int) + func (*ConfigureDeviceRequest) ProtoMessage() + func (x *ConfigureDeviceRequest) GetConfig() *Config + func (x *ConfigureDeviceRequest) GetName() string + func (x *ConfigureDeviceRequest) ProtoReflect() protoreflect.Message + func (x *ConfigureDeviceRequest) Reset() + func (x *ConfigureDeviceRequest) String() string + type ConfigureDeviceResponse struct + func (*ConfigureDeviceResponse) Descriptor() ([]byte, []int) + func (*ConfigureDeviceResponse) ProtoMessage() + func (x *ConfigureDeviceResponse) ProtoReflect() protoreflect.Message + func (x *ConfigureDeviceResponse) Reset() + func (x *ConfigureDeviceResponse) String() string + type Device struct + FirewallMark int32 + ListenPort int32 + Name string + Peers []*Peer + PrivateKey []byte + PublicKey []byte + Type DeviceType + func (*Device) Descriptor() ([]byte, []int) + func (*Device) ProtoMessage() + func (x *Device) GetFirewallMark() int32 + func (x *Device) GetListenPort() int32 + func (x *Device) GetName() string + func (x *Device) GetPeers() []*Peer + func (x *Device) GetPrivateKey() []byte + func (x *Device) GetPublicKey() []byte + func (x *Device) GetType() DeviceType + func (x *Device) ProtoReflect() protoreflect.Message + func (x *Device) Reset() + func (x *Device) String() string + type DeviceRequest struct + Name string + func (*DeviceRequest) Descriptor() ([]byte, []int) + func (*DeviceRequest) ProtoMessage() + func (x *DeviceRequest) GetName() string + func (x *DeviceRequest) ProtoReflect() protoreflect.Message + func (x *DeviceRequest) Reset() + func (x *DeviceRequest) String() string + type DeviceResponse struct + Device *Device + func (*DeviceResponse) Descriptor() ([]byte, []int) + func (*DeviceResponse) ProtoMessage() + func (x *DeviceResponse) GetDevice() *Device + func (x *DeviceResponse) ProtoReflect() protoreflect.Message + func (x *DeviceResponse) Reset() + func (x *DeviceResponse) String() string + type DeviceType int32 + const DeviceType_FREEBSD_KERNEL + const DeviceType_LINUX_KERNEL + const DeviceType_OPENBSD_KERNET + const DeviceType_UNKNOWN + const DeviceType_USERSPACE + const DeviceType_WINDOWS_KERNEL + func (DeviceType) Descriptor() protoreflect.EnumDescriptor + func (DeviceType) EnumDescriptor() ([]byte, []int) + func (DeviceType) Type() protoreflect.EnumType + func (x DeviceType) Enum() *DeviceType + func (x DeviceType) Number() protoreflect.EnumNumber + func (x DeviceType) String() string + type DevicesRequest struct + func (*DevicesRequest) Descriptor() ([]byte, []int) + func (*DevicesRequest) ProtoMessage() + func (x *DevicesRequest) ProtoReflect() protoreflect.Message + func (x *DevicesRequest) Reset() + func (x *DevicesRequest) String() string + type DevicesResponse struct + Devices []*Device + func (*DevicesResponse) Descriptor() ([]byte, []int) + func (*DevicesResponse) ProtoMessage() + func (x *DevicesResponse) GetDevices() []*Device + func (x *DevicesResponse) ProtoReflect() protoreflect.Message + func (x *DevicesResponse) Reset() + func (x *DevicesResponse) String() string + type IPNet struct + Ip []byte + IpMask []byte + func (*IPNet) Descriptor() ([]byte, []int) + func (*IPNet) ProtoMessage() + func (x *IPNet) GetIp() []byte + func (x *IPNet) GetIpMask() []byte + func (x *IPNet) ProtoReflect() protoreflect.Message + func (x *IPNet) Reset() + func (x *IPNet) String() string + type Peer struct + AllowedIps []*IPNet + Endpoint *UDPAddr + LastHandshakeTime *timestamppb.Timestamp + PersistentKeepaliveInterval *durationpb.Duration + PresharedKey []byte + ProtocolVersion int32 + PublicKey []byte + RecievedBytes int64 + TransmitBytes int64 + func (*Peer) Descriptor() ([]byte, []int) + func (*Peer) ProtoMessage() + func (x *Peer) GetAllowedIps() []*IPNet + func (x *Peer) GetEndpoint() *UDPAddr + func (x *Peer) GetLastHandshakeTime() *timestamppb.Timestamp + func (x *Peer) GetPersistentKeepaliveInterval() *durationpb.Duration + func (x *Peer) GetPresharedKey() []byte + func (x *Peer) GetProtocolVersion() int32 + func (x *Peer) GetPublicKey() []byte + func (x *Peer) GetRecievedBytes() int64 + func (x *Peer) GetTransmitBytes() int64 + func (x *Peer) ProtoReflect() protoreflect.Message + func (x *Peer) Reset() + func (x *Peer) String() string + type PeerConfig struct + AllowedIps []*IPNet + Endpoint *UDPAddr + PersistentKeepaliveInterval *durationpb.Duration + PresharedKey []byte + PublicKey []byte + Remove bool + ReplaceAllowedIps bool + UpdateOnly bool + func (*PeerConfig) Descriptor() ([]byte, []int) + func (*PeerConfig) ProtoMessage() + func (x *PeerConfig) GetAllowedIps() []*IPNet + func (x *PeerConfig) GetEndpoint() *UDPAddr + func (x *PeerConfig) GetPersistentKeepaliveInterval() *durationpb.Duration + func (x *PeerConfig) GetPresharedKey() []byte + func (x *PeerConfig) GetPublicKey() []byte + func (x *PeerConfig) GetRemove() bool + func (x *PeerConfig) GetReplaceAllowedIps() bool + func (x *PeerConfig) GetUpdateOnly() bool + func (x *PeerConfig) ProtoReflect() protoreflect.Message + func (x *PeerConfig) Reset() + func (x *PeerConfig) String() string + type UDPAddr struct + Ip []byte + Port int32 + Zone string + func (*UDPAddr) Descriptor() ([]byte, []int) + func (*UDPAddr) ProtoMessage() + func (x *UDPAddr) GetIp() []byte + func (x *UDPAddr) GetPort() int32 + func (x *UDPAddr) GetZone() string + func (x *UDPAddr) ProtoReflect() protoreflect.Message + func (x *UDPAddr) Reset() + func (x *UDPAddr) String() string + type UnimplementedWireGuardServer struct + func (UnimplementedWireGuardServer) ConfigureDevice(context.Context, *ConfigureDeviceRequest) (*ConfigureDeviceResponse, error) + func (UnimplementedWireGuardServer) Device(context.Context, *DeviceRequest) (*DeviceResponse, error) + func (UnimplementedWireGuardServer) Devices(context.Context, *DevicesRequest) (*DevicesResponse, error) + type UnsafeWireGuardServer interface + type WireGuardClient interface + ConfigureDevice func(ctx context.Context, in *ConfigureDeviceRequest, opts ...grpc.CallOption) (*ConfigureDeviceResponse, error) + Device func(ctx context.Context, in *DeviceRequest, opts ...grpc.CallOption) (*DeviceResponse, error) + Devices func(ctx context.Context, in *DevicesRequest, opts ...grpc.CallOption) (*DevicesResponse, error) + func NewWireGuardClient(cc grpc.ClientConnInterface) WireGuardClient + type WireGuardServer interface + ConfigureDevice func(context.Context, *ConfigureDeviceRequest) (*ConfigureDeviceResponse, error) + Device func(context.Context, *DeviceRequest) (*DeviceResponse, error) + Devices func(context.Context, *DevicesRequest) (*DevicesResponse, error)