proto

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: BSD-3-Clause Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RuleProtocol_name = map[int32]string{
		0: "UNKNOWN",
		1: "ALL",
		2: "TCP",
		3: "UDP",
		4: "ICMP",
		5: "CUSTOM",
	}
	RuleProtocol_value = map[string]int32{
		"UNKNOWN": 0,
		"ALL":     1,
		"TCP":     2,
		"UDP":     3,
		"ICMP":    4,
		"CUSTOM":  5,
	}
)

Enum value maps for RuleProtocol.

View Source
var (
	RuleDirection_name = map[int32]string{
		0: "IN",
		1: "OUT",
	}
	RuleDirection_value = map[string]int32{
		"IN":  0,
		"OUT": 1,
	}
)

Enum value maps for RuleDirection.

View Source
var (
	RuleAction_name = map[int32]string{
		0: "ACCEPT",
		1: "DROP",
	}
	RuleAction_value = map[string]int32{
		"ACCEPT": 0,
		"DROP":   1,
	}
)

Enum value maps for RuleAction.

View Source
var (
	HostConfig_Protocol_name = map[int32]string{
		0: "UDP",
		1: "TCP",
		2: "HTTP",
		3: "HTTPS",
		4: "DTLS",
	}
	HostConfig_Protocol_value = map[string]int32{
		"UDP":   0,
		"TCP":   1,
		"HTTP":  2,
		"HTTPS": 3,
		"DTLS":  4,
	}
)

Enum value maps for HostConfig_Protocol.

View Source
var (
	DeviceAuthorizationFlowProvider_name = map[int32]string{
		0: "HOSTED",
	}
	DeviceAuthorizationFlowProvider_value = map[string]int32{
		"HOSTED": 0,
	}
)

Enum value maps for DeviceAuthorizationFlowProvider.

View Source
var File_management_proto protoreflect.FileDescriptor
View Source
var ManagementService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "management.ManagementService",
	HandlerType: (*ManagementServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _ManagementService_Login_Handler,
		},
		{
			MethodName: "GetServerKey",
			Handler:    _ManagementService_GetServerKey_Handler,
		},
		{
			MethodName: "isHealthy",
			Handler:    _ManagementService_IsHealthy_Handler,
		},
		{
			MethodName: "GetDeviceAuthorizationFlow",
			Handler:    _ManagementService_GetDeviceAuthorizationFlow_Handler,
		},
		{
			MethodName: "GetPKCEAuthorizationFlow",
			Handler:    _ManagementService_GetPKCEAuthorizationFlow_Handler,
		},
		{
			MethodName: "SyncMeta",
			Handler:    _ManagementService_SyncMeta_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _ManagementService_Logout_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Sync",
			Handler:       _ManagementService_Sync_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "management.proto",
}

ManagementService_ServiceDesc is the grpc.ServiceDesc for ManagementService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterManagementServiceServer

func RegisterManagementServiceServer(s grpc.ServiceRegistrar, srv ManagementServiceServer)

Types

type Checks

type Checks struct {
	Files []string `protobuf:"bytes,1,rep,name=Files,proto3" json:"Files,omitempty"`
	// contains filtered or unexported fields
}

func (*Checks) Descriptor deprecated

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

Deprecated: Use Checks.ProtoReflect.Descriptor instead.

func (*Checks) GetFiles

func (x *Checks) GetFiles() []string

func (*Checks) ProtoMessage

func (*Checks) ProtoMessage()

func (*Checks) ProtoReflect

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

func (*Checks) Reset

func (x *Checks) Reset()

func (*Checks) String

func (x *Checks) String() string

type CustomZone

type CustomZone struct {
	Domain               string          `protobuf:"bytes,1,opt,name=Domain,proto3" json:"Domain,omitempty"`
	Records              []*SimpleRecord `protobuf:"bytes,2,rep,name=Records,proto3" json:"Records,omitempty"`
	SearchDomainDisabled bool            `protobuf:"varint,3,opt,name=SearchDomainDisabled,proto3" json:"SearchDomainDisabled,omitempty"`
	SkipPTRProcess       bool            `protobuf:"varint,4,opt,name=SkipPTRProcess,proto3" json:"SkipPTRProcess,omitempty"`
	// contains filtered or unexported fields
}

CustomZone represents a dns.CustomZone

func (*CustomZone) Descriptor deprecated

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

Deprecated: Use CustomZone.ProtoReflect.Descriptor instead.

func (*CustomZone) GetDomain

func (x *CustomZone) GetDomain() string

func (*CustomZone) GetRecords

func (x *CustomZone) GetRecords() []*SimpleRecord

func (*CustomZone) GetSearchDomainDisabled added in v0.1.5

func (x *CustomZone) GetSearchDomainDisabled() bool

func (*CustomZone) GetSkipPTRProcess added in v0.1.5

func (x *CustomZone) GetSkipPTRProcess() bool

func (*CustomZone) ProtoMessage

func (*CustomZone) ProtoMessage()

func (*CustomZone) ProtoReflect

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

func (*CustomZone) Reset

func (x *CustomZone) Reset()

func (*CustomZone) String

func (x *CustomZone) String() string

type DNSConfig

type DNSConfig struct {
	ServiceEnable    bool               `protobuf:"varint,1,opt,name=ServiceEnable,proto3" json:"ServiceEnable,omitempty"`
	NameServerGroups []*NameServerGroup `protobuf:"bytes,2,rep,name=NameServerGroups,proto3" json:"NameServerGroups,omitempty"`
	CustomZones      []*CustomZone      `protobuf:"bytes,3,rep,name=CustomZones,proto3" json:"CustomZones,omitempty"`
	// Deprecated: Do not use.
	ForwarderPort int64 `protobuf:"varint,4,opt,name=ForwarderPort,proto3" json:"ForwarderPort,omitempty"`
	// contains filtered or unexported fields
}

DNSConfig represents a dns.Update

func (*DNSConfig) Descriptor deprecated

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

Deprecated: Use DNSConfig.ProtoReflect.Descriptor instead.

func (*DNSConfig) GetCustomZones

func (x *DNSConfig) GetCustomZones() []*CustomZone

func (*DNSConfig) GetForwarderPort deprecated

func (x *DNSConfig) GetForwarderPort() int64

Deprecated: Do not use.

func (*DNSConfig) GetNameServerGroups

func (x *DNSConfig) GetNameServerGroups() []*NameServerGroup

func (*DNSConfig) GetServiceEnable

func (x *DNSConfig) GetServiceEnable() bool

func (*DNSConfig) ProtoMessage

func (*DNSConfig) ProtoMessage()

func (*DNSConfig) ProtoReflect

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

func (*DNSConfig) Reset

func (x *DNSConfig) Reset()

func (*DNSConfig) String

func (x *DNSConfig) String() string

type DeviceAuthorizationFlow

type DeviceAuthorizationFlow struct {

	// An IDP provider , (eg. Auth0)
	Provider       DeviceAuthorizationFlowProvider `protobuf:"varint,1,opt,name=Provider,proto3,enum=management.DeviceAuthorizationFlowProvider" json:"Provider,omitempty"`
	ProviderConfig *ProviderConfig                 `protobuf:"bytes,2,opt,name=ProviderConfig,proto3" json:"ProviderConfig,omitempty"`
	// contains filtered or unexported fields
}

DeviceAuthorizationFlow represents Device Authorization Flow information that can be used by the client to login initiate a Oauth 2.0 device authorization grant flow see https://datatracker.ietf.org/doc/html/rfc8628

func (*DeviceAuthorizationFlow) Descriptor deprecated

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

Deprecated: Use DeviceAuthorizationFlow.ProtoReflect.Descriptor instead.

func (*DeviceAuthorizationFlow) GetProvider

func (*DeviceAuthorizationFlow) GetProviderConfig

func (x *DeviceAuthorizationFlow) GetProviderConfig() *ProviderConfig

func (*DeviceAuthorizationFlow) ProtoMessage

func (*DeviceAuthorizationFlow) ProtoMessage()

func (*DeviceAuthorizationFlow) ProtoReflect

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

func (*DeviceAuthorizationFlow) Reset

func (x *DeviceAuthorizationFlow) Reset()

func (*DeviceAuthorizationFlow) String

func (x *DeviceAuthorizationFlow) String() string

type DeviceAuthorizationFlowProvider

type DeviceAuthorizationFlowProvider int32
const (
	DeviceAuthorizationFlow_HOSTED DeviceAuthorizationFlowProvider = 0
)

func (DeviceAuthorizationFlowProvider) Descriptor

func (DeviceAuthorizationFlowProvider) Enum

func (DeviceAuthorizationFlowProvider) EnumDescriptor deprecated

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

Deprecated: Use DeviceAuthorizationFlowProvider.Descriptor instead.

func (DeviceAuthorizationFlowProvider) Number

func (DeviceAuthorizationFlowProvider) String

func (DeviceAuthorizationFlowProvider) Type

type DeviceAuthorizationFlowRequest

type DeviceAuthorizationFlowRequest struct {
	// contains filtered or unexported fields
}

DeviceAuthorizationFlowRequest empty struct for future expansion

func (*DeviceAuthorizationFlowRequest) Descriptor deprecated

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

Deprecated: Use DeviceAuthorizationFlowRequest.ProtoReflect.Descriptor instead.

func (*DeviceAuthorizationFlowRequest) ProtoMessage

func (*DeviceAuthorizationFlowRequest) ProtoMessage()

func (*DeviceAuthorizationFlowRequest) ProtoReflect

func (*DeviceAuthorizationFlowRequest) Reset

func (x *DeviceAuthorizationFlowRequest) Reset()

func (*DeviceAuthorizationFlowRequest) String

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type EncryptedMessage

type EncryptedMessage struct {

	// Wireguard public key
	WgPubKey string `protobuf:"bytes,1,opt,name=wgPubKey,proto3" json:"wgPubKey,omitempty"`
	// encrypted message Body
	Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// Version of the Netbird Management Service protocol
	Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptedMessage) Descriptor deprecated

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

Deprecated: Use EncryptedMessage.ProtoReflect.Descriptor instead.

func (*EncryptedMessage) GetBody

func (x *EncryptedMessage) GetBody() []byte

func (*EncryptedMessage) GetVersion

func (x *EncryptedMessage) GetVersion() int32

func (*EncryptedMessage) GetWgPubKey

func (x *EncryptedMessage) GetWgPubKey() string

func (*EncryptedMessage) ProtoMessage

func (*EncryptedMessage) ProtoMessage()

func (*EncryptedMessage) ProtoReflect

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

func (*EncryptedMessage) Reset

func (x *EncryptedMessage) Reset()

func (*EncryptedMessage) String

func (x *EncryptedMessage) String() string

type Environment

type Environment struct {

	// cloud is the cloud provider the agent is running in if applicable.
	Cloud string `protobuf:"bytes,1,opt,name=cloud,proto3" json:"cloud,omitempty"`
	// platform is the platform the agent is running on if applicable.
	Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	// contains filtered or unexported fields
}

Environment is part of the PeerSystemMeta and describes the environment the agent is running in.

func (*Environment) Descriptor deprecated

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

Deprecated: Use Environment.ProtoReflect.Descriptor instead.

func (*Environment) GetCloud

func (x *Environment) GetCloud() string

func (*Environment) GetPlatform

func (x *Environment) GetPlatform() string

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) ProtoReflect

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

func (*Environment) Reset

func (x *Environment) Reset()

func (*Environment) String

func (x *Environment) String() string

type File

type File struct {

	// path is the path to the file.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// exist indicate whether the file exists.
	Exist bool `protobuf:"varint,2,opt,name=exist,proto3" json:"exist,omitempty"`
	// processIsRunning indicates whether the file is a running process or not.
	ProcessIsRunning bool `protobuf:"varint,3,opt,name=processIsRunning,proto3" json:"processIsRunning,omitempty"`
	// contains filtered or unexported fields
}

File represents a file on the system.

func (*File) Descriptor deprecated

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetExist

func (x *File) GetExist() bool

func (*File) GetPath

func (x *File) GetPath() string

func (*File) GetProcessIsRunning

func (x *File) GetProcessIsRunning() bool

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type FirewallRule

type FirewallRule struct {
	PeerIP    string        `protobuf:"bytes,1,opt,name=PeerIP,proto3" json:"PeerIP,omitempty"`
	Direction RuleDirection `protobuf:"varint,2,opt,name=Direction,proto3,enum=management.RuleDirection" json:"Direction,omitempty"`
	Action    RuleAction    `protobuf:"varint,3,opt,name=Action,proto3,enum=management.RuleAction" json:"Action,omitempty"`
	Protocol  RuleProtocol  `protobuf:"varint,4,opt,name=Protocol,proto3,enum=management.RuleProtocol" json:"Protocol,omitempty"`
	Port      string        `protobuf:"bytes,5,opt,name=Port,proto3" json:"Port,omitempty"`
	PortInfo  *PortInfo     `protobuf:"bytes,6,opt,name=PortInfo,proto3" json:"PortInfo,omitempty"`
	// PolicyID is the ID of the policy that this rule belongs to
	PolicyID []byte `protobuf:"bytes,7,opt,name=PolicyID,proto3" json:"PolicyID,omitempty"`
	// contains filtered or unexported fields
}

FirewallRule represents a firewall rule

func (*FirewallRule) Descriptor deprecated

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

Deprecated: Use FirewallRule.ProtoReflect.Descriptor instead.

func (*FirewallRule) GetAction

func (x *FirewallRule) GetAction() RuleAction

func (*FirewallRule) GetDirection

func (x *FirewallRule) GetDirection() RuleDirection

func (*FirewallRule) GetPeerIP

func (x *FirewallRule) GetPeerIP() string

func (*FirewallRule) GetPolicyID

func (x *FirewallRule) GetPolicyID() []byte

func (*FirewallRule) GetPort

func (x *FirewallRule) GetPort() string

func (*FirewallRule) GetPortInfo

func (x *FirewallRule) GetPortInfo() *PortInfo

func (*FirewallRule) GetProtocol

func (x *FirewallRule) GetProtocol() RuleProtocol

func (*FirewallRule) ProtoMessage

func (*FirewallRule) ProtoMessage()

func (*FirewallRule) ProtoReflect

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

func (*FirewallRule) Reset

func (x *FirewallRule) Reset()

func (*FirewallRule) String

func (x *FirewallRule) String() string

type Flags

type Flags struct {
	RosenpassEnabled              bool `protobuf:"varint,1,opt,name=rosenpassEnabled,proto3" json:"rosenpassEnabled,omitempty"`
	RosenpassPermissive           bool `protobuf:"varint,2,opt,name=rosenpassPermissive,proto3" json:"rosenpassPermissive,omitempty"`
	ServerSSHAllowed              bool `protobuf:"varint,3,opt,name=serverSSHAllowed,proto3" json:"serverSSHAllowed,omitempty"`
	DisableClientRoutes           bool `protobuf:"varint,4,opt,name=disableClientRoutes,proto3" json:"disableClientRoutes,omitempty"`
	DisableServerRoutes           bool `protobuf:"varint,5,opt,name=disableServerRoutes,proto3" json:"disableServerRoutes,omitempty"`
	DisableDNS                    bool `protobuf:"varint,6,opt,name=disableDNS,proto3" json:"disableDNS,omitempty"`
	DisableFirewall               bool `protobuf:"varint,7,opt,name=disableFirewall,proto3" json:"disableFirewall,omitempty"`
	BlockLANAccess                bool `protobuf:"varint,8,opt,name=blockLANAccess,proto3" json:"blockLANAccess,omitempty"`
	BlockInbound                  bool `protobuf:"varint,9,opt,name=blockInbound,proto3" json:"blockInbound,omitempty"`
	LazyConnectionEnabled         bool `protobuf:"varint,10,opt,name=lazyConnectionEnabled,proto3" json:"lazyConnectionEnabled,omitempty"`
	EnableSSHRoot                 bool `protobuf:"varint,11,opt,name=enableSSHRoot,proto3" json:"enableSSHRoot,omitempty"`
	EnableSSHSFTP                 bool `protobuf:"varint,12,opt,name=enableSSHSFTP,proto3" json:"enableSSHSFTP,omitempty"`
	EnableSSHLocalPortForwarding  bool `protobuf:"varint,13,opt,name=enableSSHLocalPortForwarding,proto3" json:"enableSSHLocalPortForwarding,omitempty"`
	EnableSSHRemotePortForwarding bool `protobuf:"varint,14,opt,name=enableSSHRemotePortForwarding,proto3" json:"enableSSHRemotePortForwarding,omitempty"`
	DisableSSHAuth                bool `protobuf:"varint,15,opt,name=disableSSHAuth,proto3" json:"disableSSHAuth,omitempty"`
	// contains filtered or unexported fields
}

func (*Flags) Descriptor deprecated

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

Deprecated: Use Flags.ProtoReflect.Descriptor instead.

func (*Flags) GetBlockInbound

func (x *Flags) GetBlockInbound() bool

func (*Flags) GetBlockLANAccess

func (x *Flags) GetBlockLANAccess() bool

func (*Flags) GetDisableClientRoutes

func (x *Flags) GetDisableClientRoutes() bool

func (*Flags) GetDisableDNS

func (x *Flags) GetDisableDNS() bool

func (*Flags) GetDisableFirewall

func (x *Flags) GetDisableFirewall() bool

func (*Flags) GetDisableSSHAuth

func (x *Flags) GetDisableSSHAuth() bool

func (*Flags) GetDisableServerRoutes

func (x *Flags) GetDisableServerRoutes() bool

func (*Flags) GetEnableSSHLocalPortForwarding

func (x *Flags) GetEnableSSHLocalPortForwarding() bool

func (*Flags) GetEnableSSHRemotePortForwarding

func (x *Flags) GetEnableSSHRemotePortForwarding() bool

func (*Flags) GetEnableSSHRoot

func (x *Flags) GetEnableSSHRoot() bool

func (*Flags) GetEnableSSHSFTP

func (x *Flags) GetEnableSSHSFTP() bool

func (*Flags) GetLazyConnectionEnabled

func (x *Flags) GetLazyConnectionEnabled() bool

func (*Flags) GetRosenpassEnabled

func (x *Flags) GetRosenpassEnabled() bool

func (*Flags) GetRosenpassPermissive

func (x *Flags) GetRosenpassPermissive() bool

func (*Flags) GetServerSSHAllowed

func (x *Flags) GetServerSSHAllowed() bool

func (*Flags) ProtoMessage

func (*Flags) ProtoMessage()

func (*Flags) ProtoReflect

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

func (*Flags) Reset

func (x *Flags) Reset()

func (*Flags) String

func (x *Flags) String() string

type FlowConfig

type FlowConfig struct {
	Url            string               `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	TokenPayload   string               `protobuf:"bytes,2,opt,name=tokenPayload,proto3" json:"tokenPayload,omitempty"`
	TokenSignature string               `protobuf:"bytes,3,opt,name=tokenSignature,proto3" json:"tokenSignature,omitempty"`
	Interval       *durationpb.Duration `protobuf:"bytes,4,opt,name=interval,proto3" json:"interval,omitempty"`
	Enabled        bool                 `protobuf:"varint,5,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// counters determines if flow packets and bytes counters should be sent
	Counters bool `protobuf:"varint,6,opt,name=counters,proto3" json:"counters,omitempty"`
	// exitNodeCollection determines if event collection on exit nodes should be enabled
	ExitNodeCollection bool `protobuf:"varint,7,opt,name=exitNodeCollection,proto3" json:"exitNodeCollection,omitempty"`
	// dnsCollection determines if DNS event collection should be enabled
	DnsCollection bool `protobuf:"varint,8,opt,name=dnsCollection,proto3" json:"dnsCollection,omitempty"`
	// contains filtered or unexported fields
}

func (*FlowConfig) Descriptor deprecated

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

Deprecated: Use FlowConfig.ProtoReflect.Descriptor instead.

func (*FlowConfig) GetCounters

func (x *FlowConfig) GetCounters() bool

func (*FlowConfig) GetDnsCollection

func (x *FlowConfig) GetDnsCollection() bool

func (*FlowConfig) GetEnabled

func (x *FlowConfig) GetEnabled() bool

func (*FlowConfig) GetExitNodeCollection

func (x *FlowConfig) GetExitNodeCollection() bool

func (*FlowConfig) GetInterval

func (x *FlowConfig) GetInterval() *durationpb.Duration

func (*FlowConfig) GetTokenPayload

func (x *FlowConfig) GetTokenPayload() string

func (*FlowConfig) GetTokenSignature

func (x *FlowConfig) GetTokenSignature() string

func (*FlowConfig) GetUrl

func (x *FlowConfig) GetUrl() string

func (*FlowConfig) ProtoMessage

func (*FlowConfig) ProtoMessage()

func (*FlowConfig) ProtoReflect

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

func (*FlowConfig) Reset

func (x *FlowConfig) Reset()

func (*FlowConfig) String

func (x *FlowConfig) String() string

type ForwardingRule

type ForwardingRule struct {

	// Protocol of the forwarding rule
	Protocol RuleProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=management.RuleProtocol" json:"protocol,omitempty"`
	// portInfo is the ingress destination port information, where the traffic arrives in the gateway node
	DestinationPort *PortInfo `protobuf:"bytes,2,opt,name=destinationPort,proto3" json:"destinationPort,omitempty"`
	// IP address of the translated address (remote peer) to send traffic to
	TranslatedAddress []byte `protobuf:"bytes,3,opt,name=translatedAddress,proto3" json:"translatedAddress,omitempty"`
	// Translated port information, where the traffic should be forwarded to
	TranslatedPort *PortInfo `protobuf:"bytes,4,opt,name=translatedPort,proto3" json:"translatedPort,omitempty"`
	// contains filtered or unexported fields
}

func (*ForwardingRule) Descriptor deprecated

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

Deprecated: Use ForwardingRule.ProtoReflect.Descriptor instead.

func (*ForwardingRule) GetDestinationPort

func (x *ForwardingRule) GetDestinationPort() *PortInfo

func (*ForwardingRule) GetProtocol

func (x *ForwardingRule) GetProtocol() RuleProtocol

func (*ForwardingRule) GetTranslatedAddress

func (x *ForwardingRule) GetTranslatedAddress() []byte

func (*ForwardingRule) GetTranslatedPort

func (x *ForwardingRule) GetTranslatedPort() *PortInfo

func (*ForwardingRule) ProtoMessage

func (*ForwardingRule) ProtoMessage()

func (*ForwardingRule) ProtoReflect

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

func (*ForwardingRule) Reset

func (x *ForwardingRule) Reset()

func (*ForwardingRule) String

func (x *ForwardingRule) String() string

type HostConfig

type HostConfig struct {

	// URI of the resource e.g. turns://stun.netbird.io:4430 or signal.netbird.io:10000
	Uri      string              `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	Protocol HostConfig_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=management.HostConfig_Protocol" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

HostConfig describes connection properties of some server (e.g. STUN, Signal, Management)

func (*HostConfig) Descriptor deprecated

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

Deprecated: Use HostConfig.ProtoReflect.Descriptor instead.

func (*HostConfig) GetProtocol

func (x *HostConfig) GetProtocol() HostConfig_Protocol

func (*HostConfig) GetUri

func (x *HostConfig) GetUri() string

func (*HostConfig) ProtoMessage

func (*HostConfig) ProtoMessage()

func (*HostConfig) ProtoReflect

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

func (*HostConfig) Reset

func (x *HostConfig) Reset()

func (*HostConfig) String

func (x *HostConfig) String() string

type HostConfig_Protocol

type HostConfig_Protocol int32
const (
	HostConfig_UDP   HostConfig_Protocol = 0
	HostConfig_TCP   HostConfig_Protocol = 1
	HostConfig_HTTP  HostConfig_Protocol = 2
	HostConfig_HTTPS HostConfig_Protocol = 3
	HostConfig_DTLS  HostConfig_Protocol = 4
)

func (HostConfig_Protocol) Descriptor

func (HostConfig_Protocol) Enum

func (HostConfig_Protocol) EnumDescriptor deprecated

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

Deprecated: Use HostConfig_Protocol.Descriptor instead.

func (HostConfig_Protocol) Number

func (HostConfig_Protocol) String

func (x HostConfig_Protocol) String() string

func (HostConfig_Protocol) Type

type JWTConfig

type JWTConfig struct {
	Issuer       string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	Audience     string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"`
	KeysLocation string `protobuf:"bytes,3,opt,name=keysLocation,proto3" json:"keysLocation,omitempty"`
	MaxTokenAge  int64  `protobuf:"varint,4,opt,name=maxTokenAge,proto3" json:"maxTokenAge,omitempty"`
	// contains filtered or unexported fields
}

JWTConfig represents JWT authentication configuration

func (*JWTConfig) Descriptor deprecated

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

Deprecated: Use JWTConfig.ProtoReflect.Descriptor instead.

func (*JWTConfig) GetAudience

func (x *JWTConfig) GetAudience() string

func (*JWTConfig) GetIssuer

func (x *JWTConfig) GetIssuer() string

func (*JWTConfig) GetKeysLocation

func (x *JWTConfig) GetKeysLocation() string

func (*JWTConfig) GetMaxTokenAge

func (x *JWTConfig) GetMaxTokenAge() int64

func (*JWTConfig) ProtoMessage

func (*JWTConfig) ProtoMessage()

func (*JWTConfig) ProtoReflect

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

func (*JWTConfig) Reset

func (x *JWTConfig) Reset()

func (*JWTConfig) String

func (x *JWTConfig) String() string

type LoginRequest

type LoginRequest struct {

	// Pre-authorized setup key (can be empty)
	SetupKey string `protobuf:"bytes,1,opt,name=setupKey,proto3" json:"setupKey,omitempty"`
	// Meta data of the peer (e.g. name, os_name, os_version,
	Meta *PeerSystemMeta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// SSO token (can be empty)
	JwtToken string `protobuf:"bytes,3,opt,name=jwtToken,proto3" json:"jwtToken,omitempty"`
	// Can be absent for now.
	PeerKeys  *PeerKeys `protobuf:"bytes,4,opt,name=peerKeys,proto3" json:"peerKeys,omitempty"`
	DnsLabels []string  `protobuf:"bytes,5,rep,name=dnsLabels,proto3" json:"dnsLabels,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetDnsLabels

func (x *LoginRequest) GetDnsLabels() []string

func (*LoginRequest) GetJwtToken

func (x *LoginRequest) GetJwtToken() string

func (*LoginRequest) GetMeta

func (x *LoginRequest) GetMeta() *PeerSystemMeta

func (*LoginRequest) GetPeerKeys

func (x *LoginRequest) GetPeerKeys() *PeerKeys

func (*LoginRequest) GetSetupKey

func (x *LoginRequest) GetSetupKey() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {

	// Global config
	NetbirdConfig *NetbirdConfig `protobuf:"bytes,1,opt,name=netbirdConfig,proto3" json:"netbirdConfig,omitempty"`
	// Peer local config
	PeerConfig *PeerConfig `protobuf:"bytes,2,opt,name=peerConfig,proto3" json:"peerConfig,omitempty"`
	// Posture checks to be evaluated by client
	Checks []*Checks `protobuf:"bytes,3,rep,name=Checks,proto3" json:"Checks,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetChecks

func (x *LoginResponse) GetChecks() []*Checks

func (*LoginResponse) GetNetbirdConfig

func (x *LoginResponse) GetNetbirdConfig() *NetbirdConfig

func (*LoginResponse) GetPeerConfig

func (x *LoginResponse) GetPeerConfig() *PeerConfig

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type ManagementServiceClient

type ManagementServiceClient interface {
	// Login logs in peer. In case server returns codes.PermissionDenied this endpoint can be used to register Peer providing LoginRequest.setupKey
	// Returns encrypted LoginResponse in EncryptedMessage.Body
	Login(ctx context.Context, in *EncryptedMessage, opts ...grpc.CallOption) (*EncryptedMessage, error)
	// Sync enables peer synchronization. Each peer that is connected to this stream will receive updates from the server.
	// For example, if a new peer has been added to an account all other connected peers will receive this peer's Wireguard public key as an update
	// The initial SyncResponse contains all of the available peers so the local state can be refreshed
	// Returns encrypted SyncResponse in EncryptedMessage.Body
	Sync(ctx context.Context, in *EncryptedMessage, opts ...grpc.CallOption) (ManagementService_SyncClient, error)
	// Exposes a Wireguard public key of the Management service.
	// This key is used to support message encryption between client and server
	GetServerKey(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ServerKeyResponse, error)
	// health check endpoint
	IsHealthy(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	// Exposes a device authorization flow information
	// This is used for initiating a Oauth 2 device authorization grant flow
	// which will be used by our clients to Login.
	// EncryptedMessage of the request has a body of DeviceAuthorizationFlowRequest.
	// EncryptedMessage of the response has a body of DeviceAuthorizationFlow.
	GetDeviceAuthorizationFlow(ctx context.Context, in *EncryptedMessage, opts ...grpc.CallOption) (*EncryptedMessage, error)
	// Exposes a PKCE authorization code flow information
	// This is used for initiating a Oauth 2 authorization grant flow
	// with Proof Key for Code Exchange (PKCE) which will be used by our clients to Login.
	// EncryptedMessage of the request has a body of PKCEAuthorizationFlowRequest.
	// EncryptedMessage of the response has a body of PKCEAuthorizationFlow.
	GetPKCEAuthorizationFlow(ctx context.Context, in *EncryptedMessage, opts ...grpc.CallOption) (*EncryptedMessage, error)
	// SyncMeta is used to sync metadata of the peer.
	// After sync the peer if there is a change in peer posture check which  needs to be evaluated by the client,
	// sync meta will evaluate the checks and update the peer meta with the result.
	// EncryptedMessage of the request has a body of Empty.
	SyncMeta(ctx context.Context, in *EncryptedMessage, opts ...grpc.CallOption) (*Empty, error)
	// Logout logs out the peer and removes it from the management server
	Logout(ctx context.Context, in *EncryptedMessage, opts ...grpc.CallOption) (*Empty, error)
}

ManagementServiceClient is the client API for ManagementService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ManagementServiceServer

type ManagementServiceServer interface {
	// Login logs in peer. In case server returns codes.PermissionDenied this endpoint can be used to register Peer providing LoginRequest.setupKey
	// Returns encrypted LoginResponse in EncryptedMessage.Body
	Login(context.Context, *EncryptedMessage) (*EncryptedMessage, error)
	// Sync enables peer synchronization. Each peer that is connected to this stream will receive updates from the server.
	// For example, if a new peer has been added to an account all other connected peers will receive this peer's Wireguard public key as an update
	// The initial SyncResponse contains all of the available peers so the local state can be refreshed
	// Returns encrypted SyncResponse in EncryptedMessage.Body
	Sync(*EncryptedMessage, ManagementService_SyncServer) error
	// Exposes a Wireguard public key of the Management service.
	// This key is used to support message encryption between client and server
	GetServerKey(context.Context, *Empty) (*ServerKeyResponse, error)
	// health check endpoint
	IsHealthy(context.Context, *Empty) (*Empty, error)
	// Exposes a device authorization flow information
	// This is used for initiating a Oauth 2 device authorization grant flow
	// which will be used by our clients to Login.
	// EncryptedMessage of the request has a body of DeviceAuthorizationFlowRequest.
	// EncryptedMessage of the response has a body of DeviceAuthorizationFlow.
	GetDeviceAuthorizationFlow(context.Context, *EncryptedMessage) (*EncryptedMessage, error)
	// Exposes a PKCE authorization code flow information
	// This is used for initiating a Oauth 2 authorization grant flow
	// with Proof Key for Code Exchange (PKCE) which will be used by our clients to Login.
	// EncryptedMessage of the request has a body of PKCEAuthorizationFlowRequest.
	// EncryptedMessage of the response has a body of PKCEAuthorizationFlow.
	GetPKCEAuthorizationFlow(context.Context, *EncryptedMessage) (*EncryptedMessage, error)
	// SyncMeta is used to sync metadata of the peer.
	// After sync the peer if there is a change in peer posture check which  needs to be evaluated by the client,
	// sync meta will evaluate the checks and update the peer meta with the result.
	// EncryptedMessage of the request has a body of Empty.
	SyncMeta(context.Context, *EncryptedMessage) (*Empty, error)
	// Logout logs out the peer and removes it from the management server
	Logout(context.Context, *EncryptedMessage) (*Empty, error)
	// contains filtered or unexported methods
}

ManagementServiceServer is the server API for ManagementService service. All implementations must embed UnimplementedManagementServiceServer for forward compatibility

type ManagementService_SyncClient

type ManagementService_SyncClient interface {
	Recv() (*EncryptedMessage, error)
	grpc.ClientStream
}

type ManagementService_SyncServer

type ManagementService_SyncServer interface {
	Send(*EncryptedMessage) error
	grpc.ServerStream
}

type NameServer

type NameServer struct {
	IP     string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"`
	NSType int64  `protobuf:"varint,2,opt,name=NSType,proto3" json:"NSType,omitempty"`
	Port   int64  `protobuf:"varint,3,opt,name=Port,proto3" json:"Port,omitempty"`
	// contains filtered or unexported fields
}

NameServer represents a dns.NameServer

func (*NameServer) Descriptor deprecated

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

Deprecated: Use NameServer.ProtoReflect.Descriptor instead.

func (*NameServer) GetIP

func (x *NameServer) GetIP() string

func (*NameServer) GetNSType

func (x *NameServer) GetNSType() int64

func (*NameServer) GetPort

func (x *NameServer) GetPort() int64

func (*NameServer) ProtoMessage

func (*NameServer) ProtoMessage()

func (*NameServer) ProtoReflect

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

func (*NameServer) Reset

func (x *NameServer) Reset()

func (*NameServer) String

func (x *NameServer) String() string

type NameServerGroup

type NameServerGroup struct {
	NameServers          []*NameServer `protobuf:"bytes,1,rep,name=NameServers,proto3" json:"NameServers,omitempty"`
	Primary              bool          `protobuf:"varint,2,opt,name=Primary,proto3" json:"Primary,omitempty"`
	Domains              []string      `protobuf:"bytes,3,rep,name=Domains,proto3" json:"Domains,omitempty"`
	SearchDomainsEnabled bool          `protobuf:"varint,4,opt,name=SearchDomainsEnabled,proto3" json:"SearchDomainsEnabled,omitempty"`
	// contains filtered or unexported fields
}

NameServerGroup represents a dns.NameServerGroup

func (*NameServerGroup) Descriptor deprecated

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

Deprecated: Use NameServerGroup.ProtoReflect.Descriptor instead.

func (*NameServerGroup) GetDomains

func (x *NameServerGroup) GetDomains() []string

func (*NameServerGroup) GetNameServers

func (x *NameServerGroup) GetNameServers() []*NameServer

func (*NameServerGroup) GetPrimary

func (x *NameServerGroup) GetPrimary() bool

func (*NameServerGroup) GetSearchDomainsEnabled

func (x *NameServerGroup) GetSearchDomainsEnabled() bool

func (*NameServerGroup) ProtoMessage

func (*NameServerGroup) ProtoMessage()

func (*NameServerGroup) ProtoReflect

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

func (*NameServerGroup) Reset

func (x *NameServerGroup) Reset()

func (*NameServerGroup) String

func (x *NameServerGroup) String() string

type NetbirdConfig

type NetbirdConfig struct {

	// a list of STUN servers
	Stuns []*HostConfig `protobuf:"bytes,1,rep,name=stuns,proto3" json:"stuns,omitempty"`
	// a list of TURN servers
	Turns []*ProtectedHostConfig `protobuf:"bytes,2,rep,name=turns,proto3" json:"turns,omitempty"`
	// a Signal server config
	Signal *HostConfig  `protobuf:"bytes,3,opt,name=signal,proto3" json:"signal,omitempty"`
	Relay  *RelayConfig `protobuf:"bytes,4,opt,name=relay,proto3" json:"relay,omitempty"`
	Flow   *FlowConfig  `protobuf:"bytes,5,opt,name=flow,proto3" json:"flow,omitempty"`
	// contains filtered or unexported fields
}

NetbirdConfig is a common configuration of any Netbird peer. It contains STUN, TURN, Signal and Management servers configurations

func (*NetbirdConfig) Descriptor deprecated

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

Deprecated: Use NetbirdConfig.ProtoReflect.Descriptor instead.

func (*NetbirdConfig) GetFlow

func (x *NetbirdConfig) GetFlow() *FlowConfig

func (*NetbirdConfig) GetRelay

func (x *NetbirdConfig) GetRelay() *RelayConfig

func (*NetbirdConfig) GetSignal

func (x *NetbirdConfig) GetSignal() *HostConfig

func (*NetbirdConfig) GetStuns

func (x *NetbirdConfig) GetStuns() []*HostConfig

func (*NetbirdConfig) GetTurns

func (x *NetbirdConfig) GetTurns() []*ProtectedHostConfig

func (*NetbirdConfig) ProtoMessage

func (*NetbirdConfig) ProtoMessage()

func (*NetbirdConfig) ProtoReflect

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

func (*NetbirdConfig) Reset

func (x *NetbirdConfig) Reset()

func (*NetbirdConfig) String

func (x *NetbirdConfig) String() string

type NetworkAddress

type NetworkAddress struct {
	NetIP string `protobuf:"bytes,1,opt,name=netIP,proto3" json:"netIP,omitempty"`
	Mac   string `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkAddress) Descriptor deprecated

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

Deprecated: Use NetworkAddress.ProtoReflect.Descriptor instead.

func (*NetworkAddress) GetMac

func (x *NetworkAddress) GetMac() string

func (*NetworkAddress) GetNetIP

func (x *NetworkAddress) GetNetIP() string

func (*NetworkAddress) ProtoMessage

func (*NetworkAddress) ProtoMessage()

func (*NetworkAddress) ProtoReflect

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

func (*NetworkAddress) Reset

func (x *NetworkAddress) Reset()

func (*NetworkAddress) String

func (x *NetworkAddress) String() string

type NetworkMap

type NetworkMap struct {

	// Serial is an ID of the network state to be used by clients to order updates.
	// The larger the Serial the newer the configuration.
	// E.g. the client app should keep track of this id locally and discard all the configurations with a lower value
	Serial uint64 `protobuf:"varint,1,opt,name=Serial,proto3" json:"Serial,omitempty"`
	// PeerConfig represents configuration of a peer
	PeerConfig *PeerConfig `protobuf:"bytes,2,opt,name=peerConfig,proto3" json:"peerConfig,omitempty"`
	// RemotePeerConfig represents a list of remote peers that the receiver can connect to
	RemotePeers []*RemotePeerConfig `protobuf:"bytes,3,rep,name=remotePeers,proto3" json:"remotePeers,omitempty"`
	// Indicates whether remotePeers array is empty or not to bypass protobuf null and empty array equality.
	RemotePeersIsEmpty bool `protobuf:"varint,4,opt,name=remotePeersIsEmpty,proto3" json:"remotePeersIsEmpty,omitempty"`
	// List of routes to be applied
	Routes []*Route `protobuf:"bytes,5,rep,name=Routes,proto3" json:"Routes,omitempty"`
	// DNS config to be applied
	DNSConfig *DNSConfig `protobuf:"bytes,6,opt,name=DNSConfig,proto3" json:"DNSConfig,omitempty"`
	// RemotePeerConfig represents a list of remote peers that the receiver can connect to
	OfflinePeers []*RemotePeerConfig `protobuf:"bytes,7,rep,name=offlinePeers,proto3" json:"offlinePeers,omitempty"`
	// FirewallRule represents a list of firewall rules to be applied to peer
	FirewallRules []*FirewallRule `protobuf:"bytes,8,rep,name=FirewallRules,proto3" json:"FirewallRules,omitempty"`
	// firewallRulesIsEmpty indicates whether FirewallRule array is empty or not to bypass protobuf null and empty array equality.
	FirewallRulesIsEmpty bool `protobuf:"varint,9,opt,name=firewallRulesIsEmpty,proto3" json:"firewallRulesIsEmpty,omitempty"`
	// RoutesFirewallRules represents a list of routes firewall rules to be applied to peer
	RoutesFirewallRules []*RouteFirewallRule `protobuf:"bytes,10,rep,name=routesFirewallRules,proto3" json:"routesFirewallRules,omitempty"`
	// RoutesFirewallRulesIsEmpty indicates whether RouteFirewallRule array is empty or not to bypass protobuf null and empty array equality.
	RoutesFirewallRulesIsEmpty bool              `protobuf:"varint,11,opt,name=routesFirewallRulesIsEmpty,proto3" json:"routesFirewallRulesIsEmpty,omitempty"`
	ForwardingRules            []*ForwardingRule `protobuf:"bytes,12,rep,name=forwardingRules,proto3" json:"forwardingRules,omitempty"`
	// contains filtered or unexported fields
}

NetworkMap represents a network state of the peer with the corresponding configuration parameters to establish peer-to-peer connections

func (*NetworkMap) Descriptor deprecated

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

Deprecated: Use NetworkMap.ProtoReflect.Descriptor instead.

func (*NetworkMap) GetDNSConfig

func (x *NetworkMap) GetDNSConfig() *DNSConfig

func (*NetworkMap) GetFirewallRules

func (x *NetworkMap) GetFirewallRules() []*FirewallRule

func (*NetworkMap) GetFirewallRulesIsEmpty

func (x *NetworkMap) GetFirewallRulesIsEmpty() bool

func (*NetworkMap) GetForwardingRules

func (x *NetworkMap) GetForwardingRules() []*ForwardingRule

func (*NetworkMap) GetOfflinePeers

func (x *NetworkMap) GetOfflinePeers() []*RemotePeerConfig

func (*NetworkMap) GetPeerConfig

func (x *NetworkMap) GetPeerConfig() *PeerConfig

func (*NetworkMap) GetRemotePeers

func (x *NetworkMap) GetRemotePeers() []*RemotePeerConfig

func (*NetworkMap) GetRemotePeersIsEmpty

func (x *NetworkMap) GetRemotePeersIsEmpty() bool

func (*NetworkMap) GetRoutes

func (x *NetworkMap) GetRoutes() []*Route

func (*NetworkMap) GetRoutesFirewallRules

func (x *NetworkMap) GetRoutesFirewallRules() []*RouteFirewallRule

func (*NetworkMap) GetRoutesFirewallRulesIsEmpty

func (x *NetworkMap) GetRoutesFirewallRulesIsEmpty() bool

func (*NetworkMap) GetSerial

func (x *NetworkMap) GetSerial() uint64

func (*NetworkMap) ProtoMessage

func (*NetworkMap) ProtoMessage()

func (*NetworkMap) ProtoReflect

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

func (*NetworkMap) Reset

func (x *NetworkMap) Reset()

func (*NetworkMap) String

func (x *NetworkMap) String() string

type PKCEAuthorizationFlow

type PKCEAuthorizationFlow struct {
	ProviderConfig *ProviderConfig `protobuf:"bytes,1,opt,name=ProviderConfig,proto3" json:"ProviderConfig,omitempty"`
	// contains filtered or unexported fields
}

PKCEAuthorizationFlow represents Authorization Code Flow information that can be used by the client to login initiate a Oauth 2.0 authorization code grant flow with Proof Key for Code Exchange (PKCE). See https://datatracker.ietf.org/doc/html/rfc7636

func (*PKCEAuthorizationFlow) Descriptor deprecated

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

Deprecated: Use PKCEAuthorizationFlow.ProtoReflect.Descriptor instead.

func (*PKCEAuthorizationFlow) GetProviderConfig

func (x *PKCEAuthorizationFlow) GetProviderConfig() *ProviderConfig

func (*PKCEAuthorizationFlow) ProtoMessage

func (*PKCEAuthorizationFlow) ProtoMessage()

func (*PKCEAuthorizationFlow) ProtoReflect

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

func (*PKCEAuthorizationFlow) Reset

func (x *PKCEAuthorizationFlow) Reset()

func (*PKCEAuthorizationFlow) String

func (x *PKCEAuthorizationFlow) String() string

type PKCEAuthorizationFlowRequest

type PKCEAuthorizationFlowRequest struct {
	// contains filtered or unexported fields
}

PKCEAuthorizationFlowRequest empty struct for future expansion

func (*PKCEAuthorizationFlowRequest) Descriptor deprecated

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

Deprecated: Use PKCEAuthorizationFlowRequest.ProtoReflect.Descriptor instead.

func (*PKCEAuthorizationFlowRequest) ProtoMessage

func (*PKCEAuthorizationFlowRequest) ProtoMessage()

func (*PKCEAuthorizationFlowRequest) ProtoReflect

func (*PKCEAuthorizationFlowRequest) Reset

func (x *PKCEAuthorizationFlowRequest) Reset()

func (*PKCEAuthorizationFlowRequest) String

type PeerConfig

type PeerConfig struct {

	// Peer's virtual IP address within the Netbird VPN (a Wireguard address config)
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Netbird DNS server (a Wireguard DNS config)
	Dns string `protobuf:"bytes,2,opt,name=dns,proto3" json:"dns,omitempty"`
	// SSHConfig of the peer.
	SshConfig *SSHConfig `protobuf:"bytes,3,opt,name=sshConfig,proto3" json:"sshConfig,omitempty"`
	// Peer fully qualified domain name
	Fqdn                            string `protobuf:"bytes,4,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
	RoutingPeerDnsResolutionEnabled bool   `protobuf:"varint,5,opt,name=RoutingPeerDnsResolutionEnabled,proto3" json:"RoutingPeerDnsResolutionEnabled,omitempty"`
	LazyConnectionEnabled           bool   `protobuf:"varint,6,opt,name=LazyConnectionEnabled,proto3" json:"LazyConnectionEnabled,omitempty"`
	Mtu                             int32  `protobuf:"varint,7,opt,name=mtu,proto3" json:"mtu,omitempty"`
	// contains filtered or unexported fields
}

PeerConfig represents a configuration of a "our" peer. The properties are used to configure local Wireguard

func (*PeerConfig) Descriptor deprecated

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

Deprecated: Use PeerConfig.ProtoReflect.Descriptor instead.

func (*PeerConfig) GetAddress

func (x *PeerConfig) GetAddress() string

func (*PeerConfig) GetDns

func (x *PeerConfig) GetDns() string

func (*PeerConfig) GetFqdn

func (x *PeerConfig) GetFqdn() string

func (*PeerConfig) GetLazyConnectionEnabled

func (x *PeerConfig) GetLazyConnectionEnabled() bool

func (*PeerConfig) GetMtu

func (x *PeerConfig) GetMtu() int32

func (*PeerConfig) GetRoutingPeerDnsResolutionEnabled

func (x *PeerConfig) GetRoutingPeerDnsResolutionEnabled() bool

func (*PeerConfig) GetSshConfig

func (x *PeerConfig) GetSshConfig() *SSHConfig

func (*PeerConfig) ProtoMessage

func (*PeerConfig) ProtoMessage()

func (*PeerConfig) ProtoReflect

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

func (*PeerConfig) Reset

func (x *PeerConfig) Reset()

func (*PeerConfig) String

func (x *PeerConfig) String() string

type PeerKeys

type PeerKeys struct {

	// sshPubKey represents a public SSH key of the peer. Can be absent.
	SshPubKey []byte `protobuf:"bytes,1,opt,name=sshPubKey,proto3" json:"sshPubKey,omitempty"`
	// wgPubKey represents a public WireGuard key of the peer. Can be absent.
	WgPubKey []byte `protobuf:"bytes,2,opt,name=wgPubKey,proto3" json:"wgPubKey,omitempty"`
	// contains filtered or unexported fields
}

PeerKeys is additional peer info like SSH pub key and WireGuard public key. This message is sent on Login or register requests, or when a key rotation has to happen.

func (*PeerKeys) Descriptor deprecated

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

Deprecated: Use PeerKeys.ProtoReflect.Descriptor instead.

func (*PeerKeys) GetSshPubKey

func (x *PeerKeys) GetSshPubKey() []byte

func (*PeerKeys) GetWgPubKey

func (x *PeerKeys) GetWgPubKey() []byte

func (*PeerKeys) ProtoMessage

func (*PeerKeys) ProtoMessage()

func (*PeerKeys) ProtoReflect

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

func (*PeerKeys) Reset

func (x *PeerKeys) Reset()

func (*PeerKeys) String

func (x *PeerKeys) String() string

type PeerSystemMeta

type PeerSystemMeta struct {
	Hostname         string            `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	GoOS             string            `protobuf:"bytes,2,opt,name=goOS,proto3" json:"goOS,omitempty"`
	Kernel           string            `protobuf:"bytes,3,opt,name=kernel,proto3" json:"kernel,omitempty"`
	Core             string            `protobuf:"bytes,4,opt,name=core,proto3" json:"core,omitempty"`
	Platform         string            `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"`
	OS               string            `protobuf:"bytes,6,opt,name=OS,proto3" json:"OS,omitempty"`
	NetbirdVersion   string            `protobuf:"bytes,7,opt,name=netbirdVersion,proto3" json:"netbirdVersion,omitempty"`
	UiVersion        string            `protobuf:"bytes,8,opt,name=uiVersion,proto3" json:"uiVersion,omitempty"`
	KernelVersion    string            `protobuf:"bytes,9,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"`
	OSVersion        string            `protobuf:"bytes,10,opt,name=OSVersion,proto3" json:"OSVersion,omitempty"`
	NetworkAddresses []*NetworkAddress `protobuf:"bytes,11,rep,name=networkAddresses,proto3" json:"networkAddresses,omitempty"`
	SysSerialNumber  string            `protobuf:"bytes,12,opt,name=sysSerialNumber,proto3" json:"sysSerialNumber,omitempty"`
	SysProductName   string            `protobuf:"bytes,13,opt,name=sysProductName,proto3" json:"sysProductName,omitempty"`
	SysManufacturer  string            `protobuf:"bytes,14,opt,name=sysManufacturer,proto3" json:"sysManufacturer,omitempty"`
	Environment      *Environment      `protobuf:"bytes,15,opt,name=environment,proto3" json:"environment,omitempty"`
	Files            []*File           `protobuf:"bytes,16,rep,name=files,proto3" json:"files,omitempty"`
	Flags            *Flags            `protobuf:"bytes,17,opt,name=flags,proto3" json:"flags,omitempty"`
	// contains filtered or unexported fields
}

PeerSystemMeta is machine meta data like OS and version.

func (*PeerSystemMeta) Descriptor deprecated

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

Deprecated: Use PeerSystemMeta.ProtoReflect.Descriptor instead.

func (*PeerSystemMeta) GetCore

func (x *PeerSystemMeta) GetCore() string

func (*PeerSystemMeta) GetEnvironment

func (x *PeerSystemMeta) GetEnvironment() *Environment

func (*PeerSystemMeta) GetFiles

func (x *PeerSystemMeta) GetFiles() []*File

func (*PeerSystemMeta) GetFlags

func (x *PeerSystemMeta) GetFlags() *Flags

func (*PeerSystemMeta) GetGoOS

func (x *PeerSystemMeta) GetGoOS() string

func (*PeerSystemMeta) GetHostname

func (x *PeerSystemMeta) GetHostname() string

func (*PeerSystemMeta) GetKernel

func (x *PeerSystemMeta) GetKernel() string

func (*PeerSystemMeta) GetKernelVersion

func (x *PeerSystemMeta) GetKernelVersion() string

func (*PeerSystemMeta) GetNetbirdVersion

func (x *PeerSystemMeta) GetNetbirdVersion() string

func (*PeerSystemMeta) GetNetworkAddresses

func (x *PeerSystemMeta) GetNetworkAddresses() []*NetworkAddress

func (*PeerSystemMeta) GetOS

func (x *PeerSystemMeta) GetOS() string

func (*PeerSystemMeta) GetOSVersion

func (x *PeerSystemMeta) GetOSVersion() string

func (*PeerSystemMeta) GetPlatform

func (x *PeerSystemMeta) GetPlatform() string

func (*PeerSystemMeta) GetSysManufacturer

func (x *PeerSystemMeta) GetSysManufacturer() string

func (*PeerSystemMeta) GetSysProductName

func (x *PeerSystemMeta) GetSysProductName() string

func (*PeerSystemMeta) GetSysSerialNumber

func (x *PeerSystemMeta) GetSysSerialNumber() string

func (*PeerSystemMeta) GetUiVersion

func (x *PeerSystemMeta) GetUiVersion() string

func (*PeerSystemMeta) ProtoMessage

func (*PeerSystemMeta) ProtoMessage()

func (*PeerSystemMeta) ProtoReflect

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

func (*PeerSystemMeta) Reset

func (x *PeerSystemMeta) Reset()

func (*PeerSystemMeta) String

func (x *PeerSystemMeta) String() string

type PortInfo

type PortInfo struct {

	// Types that are assignable to PortSelection:
	//
	//	*PortInfo_Port
	//	*PortInfo_Range_
	PortSelection isPortInfo_PortSelection `protobuf_oneof:"portSelection"`
	// contains filtered or unexported fields
}

func (*PortInfo) Descriptor deprecated

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

Deprecated: Use PortInfo.ProtoReflect.Descriptor instead.

func (*PortInfo) GetPort

func (x *PortInfo) GetPort() uint32

func (*PortInfo) GetPortSelection

func (m *PortInfo) GetPortSelection() isPortInfo_PortSelection

func (*PortInfo) GetRange

func (x *PortInfo) GetRange() *PortInfo_Range

func (*PortInfo) ProtoMessage

func (*PortInfo) ProtoMessage()

func (*PortInfo) ProtoReflect

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

func (*PortInfo) Reset

func (x *PortInfo) Reset()

func (*PortInfo) String

func (x *PortInfo) String() string

type PortInfo_Port

type PortInfo_Port struct {
	Port uint32 `protobuf:"varint,1,opt,name=port,proto3,oneof"`
}

type PortInfo_Range

type PortInfo_Range struct {
	Start uint32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End   uint32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*PortInfo_Range) Descriptor deprecated

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

Deprecated: Use PortInfo_Range.ProtoReflect.Descriptor instead.

func (*PortInfo_Range) GetEnd

func (x *PortInfo_Range) GetEnd() uint32

func (*PortInfo_Range) GetStart

func (x *PortInfo_Range) GetStart() uint32

func (*PortInfo_Range) ProtoMessage

func (*PortInfo_Range) ProtoMessage()

func (*PortInfo_Range) ProtoReflect

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

func (*PortInfo_Range) Reset

func (x *PortInfo_Range) Reset()

func (*PortInfo_Range) String

func (x *PortInfo_Range) String() string

type PortInfo_Range_

type PortInfo_Range_ struct {
	Range *PortInfo_Range `protobuf:"bytes,2,opt,name=range,proto3,oneof"`
}

type ProtectedHostConfig

type ProtectedHostConfig struct {
	HostConfig *HostConfig `protobuf:"bytes,1,opt,name=hostConfig,proto3" json:"hostConfig,omitempty"`
	User       string      `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Password   string      `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

ProtectedHostConfig is similar to HostConfig but has additional user and password Mostly used for TURN servers

func (*ProtectedHostConfig) Descriptor deprecated

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

Deprecated: Use ProtectedHostConfig.ProtoReflect.Descriptor instead.

func (*ProtectedHostConfig) GetHostConfig

func (x *ProtectedHostConfig) GetHostConfig() *HostConfig

func (*ProtectedHostConfig) GetPassword

func (x *ProtectedHostConfig) GetPassword() string

func (*ProtectedHostConfig) GetUser

func (x *ProtectedHostConfig) GetUser() string

func (*ProtectedHostConfig) ProtoMessage

func (*ProtectedHostConfig) ProtoMessage()

func (*ProtectedHostConfig) ProtoReflect

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

func (*ProtectedHostConfig) Reset

func (x *ProtectedHostConfig) Reset()

func (*ProtectedHostConfig) String

func (x *ProtectedHostConfig) String() string

type ProviderConfig

type ProviderConfig struct {

	// An IDP application client id
	ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"`
	// An IDP application client secret
	ClientSecret string `protobuf:"bytes,2,opt,name=ClientSecret,proto3" json:"ClientSecret,omitempty"`
	// An IDP API domain
	// Deprecated. Use a DeviceAuthEndpoint and TokenEndpoint
	Domain string `protobuf:"bytes,3,opt,name=Domain,proto3" json:"Domain,omitempty"`
	// An Audience for validation
	Audience string `protobuf:"bytes,4,opt,name=Audience,proto3" json:"Audience,omitempty"`
	// DeviceAuthEndpoint is an endpoint to request device authentication code.
	DeviceAuthEndpoint string `protobuf:"bytes,5,opt,name=DeviceAuthEndpoint,proto3" json:"DeviceAuthEndpoint,omitempty"`
	// TokenEndpoint is an endpoint to request auth token.
	TokenEndpoint string `protobuf:"bytes,6,opt,name=TokenEndpoint,proto3" json:"TokenEndpoint,omitempty"`
	// Scopes provides the scopes to be included in the token request
	Scope string `protobuf:"bytes,7,opt,name=Scope,proto3" json:"Scope,omitempty"`
	// UseIDToken indicates if the id token should be used for authentication
	UseIDToken bool `protobuf:"varint,8,opt,name=UseIDToken,proto3" json:"UseIDToken,omitempty"`
	// AuthorizationEndpoint is the endpoint of an IDP manager where clients can obtain authorization code.
	AuthorizationEndpoint string `protobuf:"bytes,9,opt,name=AuthorizationEndpoint,proto3" json:"AuthorizationEndpoint,omitempty"`
	// RedirectURLs handles authorization code from IDP manager
	RedirectURLs []string `protobuf:"bytes,10,rep,name=RedirectURLs,proto3" json:"RedirectURLs,omitempty"`
	// DisablePromptLogin makes the PKCE flow to not prompt the user for login
	DisablePromptLogin bool `protobuf:"varint,11,opt,name=DisablePromptLogin,proto3" json:"DisablePromptLogin,omitempty"`
	// LoginFlags sets the PKCE flow login details
	LoginFlag uint32 `protobuf:"varint,12,opt,name=LoginFlag,proto3" json:"LoginFlag,omitempty"`
	// contains filtered or unexported fields
}

ProviderConfig has all attributes needed to initiate a device/pkce authorization flow

func (*ProviderConfig) Descriptor deprecated

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

Deprecated: Use ProviderConfig.ProtoReflect.Descriptor instead.

func (*ProviderConfig) GetAudience

func (x *ProviderConfig) GetAudience() string

func (*ProviderConfig) GetAuthorizationEndpoint

func (x *ProviderConfig) GetAuthorizationEndpoint() string

func (*ProviderConfig) GetClientID

func (x *ProviderConfig) GetClientID() string

func (*ProviderConfig) GetClientSecret

func (x *ProviderConfig) GetClientSecret() string

func (*ProviderConfig) GetDeviceAuthEndpoint

func (x *ProviderConfig) GetDeviceAuthEndpoint() string

func (*ProviderConfig) GetDisablePromptLogin

func (x *ProviderConfig) GetDisablePromptLogin() bool

func (*ProviderConfig) GetDomain

func (x *ProviderConfig) GetDomain() string

func (*ProviderConfig) GetLoginFlag

func (x *ProviderConfig) GetLoginFlag() uint32

func (*ProviderConfig) GetRedirectURLs

func (x *ProviderConfig) GetRedirectURLs() []string

func (*ProviderConfig) GetScope

func (x *ProviderConfig) GetScope() string

func (*ProviderConfig) GetTokenEndpoint

func (x *ProviderConfig) GetTokenEndpoint() string

func (*ProviderConfig) GetUseIDToken

func (x *ProviderConfig) GetUseIDToken() bool

func (*ProviderConfig) ProtoMessage

func (*ProviderConfig) ProtoMessage()

func (*ProviderConfig) ProtoReflect

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

func (*ProviderConfig) Reset

func (x *ProviderConfig) Reset()

func (*ProviderConfig) String

func (x *ProviderConfig) String() string

type RelayConfig

type RelayConfig struct {
	Urls           []string `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"`
	TokenPayload   string   `protobuf:"bytes,2,opt,name=tokenPayload,proto3" json:"tokenPayload,omitempty"`
	TokenSignature string   `protobuf:"bytes,3,opt,name=tokenSignature,proto3" json:"tokenSignature,omitempty"`
	// contains filtered or unexported fields
}

func (*RelayConfig) Descriptor deprecated

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

Deprecated: Use RelayConfig.ProtoReflect.Descriptor instead.

func (*RelayConfig) GetTokenPayload

func (x *RelayConfig) GetTokenPayload() string

func (*RelayConfig) GetTokenSignature

func (x *RelayConfig) GetTokenSignature() string

func (*RelayConfig) GetUrls

func (x *RelayConfig) GetUrls() []string

func (*RelayConfig) ProtoMessage

func (*RelayConfig) ProtoMessage()

func (*RelayConfig) ProtoReflect

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

func (*RelayConfig) Reset

func (x *RelayConfig) Reset()

func (*RelayConfig) String

func (x *RelayConfig) String() string

type RemotePeerConfig

type RemotePeerConfig struct {

	// A WireGuard public key of a remote peer
	WgPubKey string `protobuf:"bytes,1,opt,name=wgPubKey,proto3" json:"wgPubKey,omitempty"`
	// WireGuard allowed IPs of a remote peer e.g. [10.30.30.1/32]
	AllowedIps []string `protobuf:"bytes,2,rep,name=allowedIps,proto3" json:"allowedIps,omitempty"`
	// SSHConfig is a SSH config of the remote peer. SSHConfig.sshPubKey should be ignored because peer knows it's SSH key.
	SshConfig *SSHConfig `protobuf:"bytes,3,opt,name=sshConfig,proto3" json:"sshConfig,omitempty"`
	// Peer fully qualified domain name
	Fqdn         string `protobuf:"bytes,4,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
	AgentVersion string `protobuf:"bytes,5,opt,name=agentVersion,proto3" json:"agentVersion,omitempty"`
	// contains filtered or unexported fields
}

RemotePeerConfig represents a configuration of a remote peer. The properties are used to configure WireGuard Peers sections

func (*RemotePeerConfig) Descriptor deprecated

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

Deprecated: Use RemotePeerConfig.ProtoReflect.Descriptor instead.

func (*RemotePeerConfig) GetAgentVersion

func (x *RemotePeerConfig) GetAgentVersion() string

func (*RemotePeerConfig) GetAllowedIps

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

func (*RemotePeerConfig) GetFqdn

func (x *RemotePeerConfig) GetFqdn() string

func (*RemotePeerConfig) GetSshConfig

func (x *RemotePeerConfig) GetSshConfig() *SSHConfig

func (*RemotePeerConfig) GetWgPubKey

func (x *RemotePeerConfig) GetWgPubKey() string

func (*RemotePeerConfig) ProtoMessage

func (*RemotePeerConfig) ProtoMessage()

func (*RemotePeerConfig) ProtoReflect

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

func (*RemotePeerConfig) Reset

func (x *RemotePeerConfig) Reset()

func (*RemotePeerConfig) String

func (x *RemotePeerConfig) String() string

type Route

type Route struct {
	ID            string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Network       string   `protobuf:"bytes,2,opt,name=Network,proto3" json:"Network,omitempty"`
	NetworkType   int64    `protobuf:"varint,3,opt,name=NetworkType,proto3" json:"NetworkType,omitempty"`
	Peer          string   `protobuf:"bytes,4,opt,name=Peer,proto3" json:"Peer,omitempty"`
	Metric        int64    `protobuf:"varint,5,opt,name=Metric,proto3" json:"Metric,omitempty"`
	Masquerade    bool     `protobuf:"varint,6,opt,name=Masquerade,proto3" json:"Masquerade,omitempty"`
	NetID         string   `protobuf:"bytes,7,opt,name=NetID,proto3" json:"NetID,omitempty"`
	Domains       []string `protobuf:"bytes,8,rep,name=Domains,proto3" json:"Domains,omitempty"`
	KeepRoute     bool     `protobuf:"varint,9,opt,name=keepRoute,proto3" json:"keepRoute,omitempty"`
	SkipAutoApply bool     `protobuf:"varint,10,opt,name=skipAutoApply,proto3" json:"skipAutoApply,omitempty"`
	// contains filtered or unexported fields
}

Route represents a route.Route object

func (*Route) Descriptor deprecated

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

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetDomains

func (x *Route) GetDomains() []string

func (*Route) GetID

func (x *Route) GetID() string

func (*Route) GetKeepRoute

func (x *Route) GetKeepRoute() bool

func (*Route) GetMasquerade

func (x *Route) GetMasquerade() bool

func (*Route) GetMetric

func (x *Route) GetMetric() int64

func (*Route) GetNetID

func (x *Route) GetNetID() string

func (*Route) GetNetwork

func (x *Route) GetNetwork() string

func (*Route) GetNetworkType

func (x *Route) GetNetworkType() int64

func (*Route) GetPeer

func (x *Route) GetPeer() string

func (*Route) GetSkipAutoApply

func (x *Route) GetSkipAutoApply() bool

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

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

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

type RouteFirewallRule

type RouteFirewallRule struct {

	// sourceRanges IP ranges of the routing peers.
	SourceRanges []string `protobuf:"bytes,1,rep,name=sourceRanges,proto3" json:"sourceRanges,omitempty"`
	// Action to be taken by the firewall when the rule is applicable.
	Action RuleAction `protobuf:"varint,2,opt,name=action,proto3,enum=management.RuleAction" json:"action,omitempty"`
	// Network prefix for the routed network.
	Destination string `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
	// Protocol of the routed network.
	Protocol RuleProtocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=management.RuleProtocol" json:"protocol,omitempty"`
	// Details about the port.
	PortInfo *PortInfo `protobuf:"bytes,5,opt,name=portInfo,proto3" json:"portInfo,omitempty"`
	// IsDynamic indicates if the route is a DNS route.
	IsDynamic bool `protobuf:"varint,6,opt,name=isDynamic,proto3" json:"isDynamic,omitempty"`
	// Domains is a list of domains for which the rule is applicable.
	Domains []string `protobuf:"bytes,7,rep,name=domains,proto3" json:"domains,omitempty"`
	// CustomProtocol is a custom protocol ID.
	CustomProtocol uint32 `protobuf:"varint,8,opt,name=customProtocol,proto3" json:"customProtocol,omitempty"`
	// PolicyID is the ID of the policy that this rule belongs to
	PolicyID []byte `protobuf:"bytes,9,opt,name=PolicyID,proto3" json:"PolicyID,omitempty"`
	// RouteID is the ID of the route that this rule belongs to
	RouteID string `protobuf:"bytes,10,opt,name=RouteID,proto3" json:"RouteID,omitempty"`
	// contains filtered or unexported fields
}

RouteFirewallRule signifies a firewall rule applicable for a routed network.

func (*RouteFirewallRule) Descriptor deprecated

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

Deprecated: Use RouteFirewallRule.ProtoReflect.Descriptor instead.

func (*RouteFirewallRule) GetAction

func (x *RouteFirewallRule) GetAction() RuleAction

func (*RouteFirewallRule) GetCustomProtocol

func (x *RouteFirewallRule) GetCustomProtocol() uint32

func (*RouteFirewallRule) GetDestination

func (x *RouteFirewallRule) GetDestination() string

func (*RouteFirewallRule) GetDomains

func (x *RouteFirewallRule) GetDomains() []string

func (*RouteFirewallRule) GetIsDynamic

func (x *RouteFirewallRule) GetIsDynamic() bool

func (*RouteFirewallRule) GetPolicyID

func (x *RouteFirewallRule) GetPolicyID() []byte

func (*RouteFirewallRule) GetPortInfo

func (x *RouteFirewallRule) GetPortInfo() *PortInfo

func (*RouteFirewallRule) GetProtocol

func (x *RouteFirewallRule) GetProtocol() RuleProtocol

func (*RouteFirewallRule) GetRouteID

func (x *RouteFirewallRule) GetRouteID() string

func (*RouteFirewallRule) GetSourceRanges

func (x *RouteFirewallRule) GetSourceRanges() []string

func (*RouteFirewallRule) ProtoMessage

func (*RouteFirewallRule) ProtoMessage()

func (*RouteFirewallRule) ProtoReflect

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

func (*RouteFirewallRule) Reset

func (x *RouteFirewallRule) Reset()

func (*RouteFirewallRule) String

func (x *RouteFirewallRule) String() string

type RuleAction

type RuleAction int32
const (
	RuleAction_ACCEPT RuleAction = 0
	RuleAction_DROP   RuleAction = 1
)

func (RuleAction) Descriptor

func (RuleAction) Descriptor() protoreflect.EnumDescriptor

func (RuleAction) Enum

func (x RuleAction) Enum() *RuleAction

func (RuleAction) EnumDescriptor deprecated

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

Deprecated: Use RuleAction.Descriptor instead.

func (RuleAction) Number

func (x RuleAction) Number() protoreflect.EnumNumber

func (RuleAction) String

func (x RuleAction) String() string

func (RuleAction) Type

type RuleDirection

type RuleDirection int32
const (
	RuleDirection_IN  RuleDirection = 0
	RuleDirection_OUT RuleDirection = 1
)

func (RuleDirection) Descriptor

func (RuleDirection) Enum

func (x RuleDirection) Enum() *RuleDirection

func (RuleDirection) EnumDescriptor deprecated

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

Deprecated: Use RuleDirection.Descriptor instead.

func (RuleDirection) Number

func (RuleDirection) String

func (x RuleDirection) String() string

func (RuleDirection) Type

type RuleProtocol

type RuleProtocol int32
const (
	RuleProtocol_UNKNOWN RuleProtocol = 0
	RuleProtocol_ALL     RuleProtocol = 1
	RuleProtocol_TCP     RuleProtocol = 2
	RuleProtocol_UDP     RuleProtocol = 3
	RuleProtocol_ICMP    RuleProtocol = 4
	RuleProtocol_CUSTOM  RuleProtocol = 5
)

func (RuleProtocol) Descriptor

func (RuleProtocol) Enum

func (x RuleProtocol) Enum() *RuleProtocol

func (RuleProtocol) EnumDescriptor deprecated

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

Deprecated: Use RuleProtocol.Descriptor instead.

func (RuleProtocol) Number

func (RuleProtocol) String

func (x RuleProtocol) String() string

func (RuleProtocol) Type

type SSHConfig

type SSHConfig struct {

	// sshEnabled indicates whether a SSH server is enabled on this peer
	SshEnabled bool `protobuf:"varint,1,opt,name=sshEnabled,proto3" json:"sshEnabled,omitempty"`
	// sshPubKey is a SSH public key of a peer to be added to authorized_hosts.
	// This property should be ignore if SSHConfig comes from PeerConfig.
	SshPubKey []byte     `protobuf:"bytes,2,opt,name=sshPubKey,proto3" json:"sshPubKey,omitempty"`
	JwtConfig *JWTConfig `protobuf:"bytes,3,opt,name=jwtConfig,proto3" json:"jwtConfig,omitempty"`
	// contains filtered or unexported fields
}

SSHConfig represents SSH configurations of a peer.

func (*SSHConfig) Descriptor deprecated

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

Deprecated: Use SSHConfig.ProtoReflect.Descriptor instead.

func (*SSHConfig) GetJwtConfig

func (x *SSHConfig) GetJwtConfig() *JWTConfig

func (*SSHConfig) GetSshEnabled

func (x *SSHConfig) GetSshEnabled() bool

func (*SSHConfig) GetSshPubKey

func (x *SSHConfig) GetSshPubKey() []byte

func (*SSHConfig) ProtoMessage

func (*SSHConfig) ProtoMessage()

func (*SSHConfig) ProtoReflect

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

func (*SSHConfig) Reset

func (x *SSHConfig) Reset()

func (*SSHConfig) String

func (x *SSHConfig) String() string

type ServerKeyResponse

type ServerKeyResponse struct {

	// Server's Wireguard public key
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Key expiration timestamp after which the key should be fetched again by the client
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"`
	// Version of the Netbird Management Service protocol
	Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerKeyResponse) Descriptor deprecated

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

Deprecated: Use ServerKeyResponse.ProtoReflect.Descriptor instead.

func (*ServerKeyResponse) GetExpiresAt

func (x *ServerKeyResponse) GetExpiresAt() *timestamppb.Timestamp

func (*ServerKeyResponse) GetKey

func (x *ServerKeyResponse) GetKey() string

func (*ServerKeyResponse) GetVersion

func (x *ServerKeyResponse) GetVersion() int32

func (*ServerKeyResponse) ProtoMessage

func (*ServerKeyResponse) ProtoMessage()

func (*ServerKeyResponse) ProtoReflect

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

func (*ServerKeyResponse) Reset

func (x *ServerKeyResponse) Reset()

func (*ServerKeyResponse) String

func (x *ServerKeyResponse) String() string

type SimpleRecord

type SimpleRecord struct {
	Name  string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Type  int64  `protobuf:"varint,2,opt,name=Type,proto3" json:"Type,omitempty"`
	Class string `protobuf:"bytes,3,opt,name=Class,proto3" json:"Class,omitempty"`
	TTL   int64  `protobuf:"varint,4,opt,name=TTL,proto3" json:"TTL,omitempty"`
	RData string `protobuf:"bytes,5,opt,name=RData,proto3" json:"RData,omitempty"`
	// contains filtered or unexported fields
}

SimpleRecord represents a dns.SimpleRecord

func (*SimpleRecord) Descriptor deprecated

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

Deprecated: Use SimpleRecord.ProtoReflect.Descriptor instead.

func (*SimpleRecord) GetClass

func (x *SimpleRecord) GetClass() string

func (*SimpleRecord) GetName

func (x *SimpleRecord) GetName() string

func (*SimpleRecord) GetRData

func (x *SimpleRecord) GetRData() string

func (*SimpleRecord) GetTTL

func (x *SimpleRecord) GetTTL() int64

func (*SimpleRecord) GetType

func (x *SimpleRecord) GetType() int64

func (*SimpleRecord) ProtoMessage

func (*SimpleRecord) ProtoMessage()

func (*SimpleRecord) ProtoReflect

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

func (*SimpleRecord) Reset

func (x *SimpleRecord) Reset()

func (*SimpleRecord) String

func (x *SimpleRecord) String() string

type SyncMetaRequest

type SyncMetaRequest struct {

	// Meta data of the peer
	Meta *PeerSystemMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncMetaRequest) Descriptor deprecated

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

Deprecated: Use SyncMetaRequest.ProtoReflect.Descriptor instead.

func (*SyncMetaRequest) GetMeta

func (x *SyncMetaRequest) GetMeta() *PeerSystemMeta

func (*SyncMetaRequest) ProtoMessage

func (*SyncMetaRequest) ProtoMessage()

func (*SyncMetaRequest) ProtoReflect

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

func (*SyncMetaRequest) Reset

func (x *SyncMetaRequest) Reset()

func (*SyncMetaRequest) String

func (x *SyncMetaRequest) String() string

type SyncRequest

type SyncRequest struct {

	// Meta data of the peer
	Meta *PeerSystemMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncRequest) Descriptor deprecated

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

Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.

func (*SyncRequest) GetMeta

func (x *SyncRequest) GetMeta() *PeerSystemMeta

func (*SyncRequest) ProtoMessage

func (*SyncRequest) ProtoMessage()

func (*SyncRequest) ProtoReflect

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

func (*SyncRequest) Reset

func (x *SyncRequest) Reset()

func (*SyncRequest) String

func (x *SyncRequest) String() string

type SyncResponse

type SyncResponse struct {

	// Global config
	NetbirdConfig *NetbirdConfig `protobuf:"bytes,1,opt,name=netbirdConfig,proto3" json:"netbirdConfig,omitempty"`
	// Deprecated. Use NetworkMap.PeerConfig
	PeerConfig *PeerConfig `protobuf:"bytes,2,opt,name=peerConfig,proto3" json:"peerConfig,omitempty"`
	// Deprecated. Use NetworkMap.RemotePeerConfig
	RemotePeers []*RemotePeerConfig `protobuf:"bytes,3,rep,name=remotePeers,proto3" json:"remotePeers,omitempty"`
	// Indicates whether remotePeers array is empty or not to bypass protobuf null and empty array equality.
	// Deprecated. Use NetworkMap.remotePeersIsEmpty
	RemotePeersIsEmpty bool        `protobuf:"varint,4,opt,name=remotePeersIsEmpty,proto3" json:"remotePeersIsEmpty,omitempty"`
	NetworkMap         *NetworkMap `protobuf:"bytes,5,opt,name=NetworkMap,proto3" json:"NetworkMap,omitempty"`
	// Posture checks to be evaluated by client
	Checks []*Checks `protobuf:"bytes,6,rep,name=Checks,proto3" json:"Checks,omitempty"`
	// contains filtered or unexported fields
}

SyncResponse represents a state that should be applied to the local peer (e.g. Netbird servers config as well as local peer and remote peers configs)

func (*SyncResponse) Descriptor deprecated

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

Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.

func (*SyncResponse) GetChecks

func (x *SyncResponse) GetChecks() []*Checks

func (*SyncResponse) GetNetbirdConfig

func (x *SyncResponse) GetNetbirdConfig() *NetbirdConfig

func (*SyncResponse) GetNetworkMap

func (x *SyncResponse) GetNetworkMap() *NetworkMap

func (*SyncResponse) GetPeerConfig

func (x *SyncResponse) GetPeerConfig() *PeerConfig

func (*SyncResponse) GetRemotePeers

func (x *SyncResponse) GetRemotePeers() []*RemotePeerConfig

func (*SyncResponse) GetRemotePeersIsEmpty

func (x *SyncResponse) GetRemotePeersIsEmpty() bool

func (*SyncResponse) ProtoMessage

func (*SyncResponse) ProtoMessage()

func (*SyncResponse) ProtoReflect

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

func (*SyncResponse) Reset

func (x *SyncResponse) Reset()

func (*SyncResponse) String

func (x *SyncResponse) String() string

type UnimplementedManagementServiceServer

type UnimplementedManagementServiceServer struct {
}

UnimplementedManagementServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedManagementServiceServer) GetDeviceAuthorizationFlow

func (UnimplementedManagementServiceServer) GetPKCEAuthorizationFlow

func (UnimplementedManagementServiceServer) GetServerKey

func (UnimplementedManagementServiceServer) IsHealthy

func (UnimplementedManagementServiceServer) Login

func (UnimplementedManagementServiceServer) Logout

func (UnimplementedManagementServiceServer) Sync

func (UnimplementedManagementServiceServer) SyncMeta

type UnsafeManagementServiceServer

type UnsafeManagementServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeManagementServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagementServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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