proto

package
v2.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentMajor = 2
	CurrentMinor = 0
)

Variables

View Source
var (
	CoordinateResponse_PeerUpdate_Kind_name = map[int32]string{
		0: "KIND_UNSPECIFIED",
		1: "NODE",
		2: "DISCONNECTED",
		3: "LOST",
	}
	CoordinateResponse_PeerUpdate_Kind_value = map[string]int32{
		"KIND_UNSPECIFIED": 0,
		"NODE":             1,
		"DISCONNECTED":     2,
		"LOST":             3,
	}
)

Enum value maps for CoordinateResponse_PeerUpdate_Kind.

View Source
var CurrentVersion = apiversion.New(CurrentMajor, CurrentMinor).WithBackwardCompat(1)
View Source
var File_tailnet_proto_tailnet_proto protoreflect.FileDescriptor

Functions

func DRPCRegisterTailnet added in v2.7.0

func DRPCRegisterTailnet(mux drpc.Mux, impl DRPCTailnetServer) error

Types

type CoordinateRequest

type CoordinateRequest struct {
	UpdateSelf   *CoordinateRequest_UpdateSelf `protobuf:"bytes,1,opt,name=update_self,json=updateSelf,proto3" json:"update_self,omitempty"`
	Disconnect   *CoordinateRequest_Disconnect `protobuf:"bytes,2,opt,name=disconnect,proto3" json:"disconnect,omitempty"`
	AddTunnel    *CoordinateRequest_Tunnel     `protobuf:"bytes,3,opt,name=add_tunnel,json=addTunnel,proto3" json:"add_tunnel,omitempty"`
	RemoveTunnel *CoordinateRequest_Tunnel     `protobuf:"bytes,4,opt,name=remove_tunnel,json=removeTunnel,proto3" json:"remove_tunnel,omitempty"`
	// contains filtered or unexported fields
}

func (*CoordinateRequest) Descriptor deprecated

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

Deprecated: Use CoordinateRequest.ProtoReflect.Descriptor instead.

func (*CoordinateRequest) GetAddTunnel

func (x *CoordinateRequest) GetAddTunnel() *CoordinateRequest_Tunnel

func (*CoordinateRequest) GetDisconnect

func (x *CoordinateRequest) GetDisconnect() *CoordinateRequest_Disconnect

func (*CoordinateRequest) GetRemoveTunnel

func (x *CoordinateRequest) GetRemoveTunnel() *CoordinateRequest_Tunnel

func (*CoordinateRequest) GetUpdateSelf

func (x *CoordinateRequest) GetUpdateSelf() *CoordinateRequest_UpdateSelf

func (*CoordinateRequest) ProtoMessage

func (*CoordinateRequest) ProtoMessage()

func (*CoordinateRequest) ProtoReflect

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

func (*CoordinateRequest) Reset

func (x *CoordinateRequest) Reset()

func (*CoordinateRequest) String

func (x *CoordinateRequest) String() string

type CoordinateRequest_Disconnect

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

func (*CoordinateRequest_Disconnect) Descriptor deprecated

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

Deprecated: Use CoordinateRequest_Disconnect.ProtoReflect.Descriptor instead.

func (*CoordinateRequest_Disconnect) ProtoMessage

func (*CoordinateRequest_Disconnect) ProtoMessage()

func (*CoordinateRequest_Disconnect) ProtoReflect

func (*CoordinateRequest_Disconnect) Reset

func (x *CoordinateRequest_Disconnect) Reset()

func (*CoordinateRequest_Disconnect) String

type CoordinateRequest_Tunnel

type CoordinateRequest_Tunnel struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CoordinateRequest_Tunnel) Descriptor deprecated

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

Deprecated: Use CoordinateRequest_Tunnel.ProtoReflect.Descriptor instead.

func (*CoordinateRequest_Tunnel) GetId added in v2.6.0

func (x *CoordinateRequest_Tunnel) GetId() []byte

func (*CoordinateRequest_Tunnel) ProtoMessage

func (*CoordinateRequest_Tunnel) ProtoMessage()

func (*CoordinateRequest_Tunnel) ProtoReflect

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

func (*CoordinateRequest_Tunnel) Reset

func (x *CoordinateRequest_Tunnel) Reset()

func (*CoordinateRequest_Tunnel) String

func (x *CoordinateRequest_Tunnel) String() string

type CoordinateRequest_UpdateSelf

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

func (*CoordinateRequest_UpdateSelf) Descriptor deprecated

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

Deprecated: Use CoordinateRequest_UpdateSelf.ProtoReflect.Descriptor instead.

func (*CoordinateRequest_UpdateSelf) GetNode

func (x *CoordinateRequest_UpdateSelf) GetNode() *Node

func (*CoordinateRequest_UpdateSelf) ProtoMessage

func (*CoordinateRequest_UpdateSelf) ProtoMessage()

func (*CoordinateRequest_UpdateSelf) ProtoReflect

func (*CoordinateRequest_UpdateSelf) Reset

func (x *CoordinateRequest_UpdateSelf) Reset()

func (*CoordinateRequest_UpdateSelf) String

type CoordinateResponse

type CoordinateResponse struct {
	PeerUpdates []*CoordinateResponse_PeerUpdate `protobuf:"bytes,1,rep,name=peer_updates,json=peerUpdates,proto3" json:"peer_updates,omitempty"`
	// contains filtered or unexported fields
}

func (*CoordinateResponse) Descriptor deprecated

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

Deprecated: Use CoordinateResponse.ProtoReflect.Descriptor instead.

func (*CoordinateResponse) GetPeerUpdates

func (x *CoordinateResponse) GetPeerUpdates() []*CoordinateResponse_PeerUpdate

func (*CoordinateResponse) ProtoMessage

func (*CoordinateResponse) ProtoMessage()

func (*CoordinateResponse) ProtoReflect

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

func (*CoordinateResponse) Reset

func (x *CoordinateResponse) Reset()

func (*CoordinateResponse) String

func (x *CoordinateResponse) String() string

type CoordinateResponse_PeerUpdate

type CoordinateResponse_PeerUpdate struct {
	Id     []byte                             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Node   *Node                              `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	Kind   CoordinateResponse_PeerUpdate_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=coder.tailnet.v2.CoordinateResponse_PeerUpdate_Kind" json:"kind,omitempty"`
	Reason string                             `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*CoordinateResponse_PeerUpdate) Descriptor deprecated

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

Deprecated: Use CoordinateResponse_PeerUpdate.ProtoReflect.Descriptor instead.

func (*CoordinateResponse_PeerUpdate) GetId added in v2.6.0

func (x *CoordinateResponse_PeerUpdate) GetId() []byte

func (*CoordinateResponse_PeerUpdate) GetKind

func (*CoordinateResponse_PeerUpdate) GetNode

func (x *CoordinateResponse_PeerUpdate) GetNode() *Node

func (*CoordinateResponse_PeerUpdate) GetReason

func (x *CoordinateResponse_PeerUpdate) GetReason() string

func (*CoordinateResponse_PeerUpdate) ProtoMessage

func (*CoordinateResponse_PeerUpdate) ProtoMessage()

func (*CoordinateResponse_PeerUpdate) ProtoReflect

func (*CoordinateResponse_PeerUpdate) Reset

func (x *CoordinateResponse_PeerUpdate) Reset()

func (*CoordinateResponse_PeerUpdate) String

type CoordinateResponse_PeerUpdate_Kind

type CoordinateResponse_PeerUpdate_Kind int32
const (
	CoordinateResponse_PeerUpdate_KIND_UNSPECIFIED CoordinateResponse_PeerUpdate_Kind = 0
	CoordinateResponse_PeerUpdate_NODE             CoordinateResponse_PeerUpdate_Kind = 1
	CoordinateResponse_PeerUpdate_DISCONNECTED     CoordinateResponse_PeerUpdate_Kind = 2
	CoordinateResponse_PeerUpdate_LOST             CoordinateResponse_PeerUpdate_Kind = 3
)

func (CoordinateResponse_PeerUpdate_Kind) Descriptor

func (CoordinateResponse_PeerUpdate_Kind) Enum

func (CoordinateResponse_PeerUpdate_Kind) EnumDescriptor deprecated

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

Deprecated: Use CoordinateResponse_PeerUpdate_Kind.Descriptor instead.

func (CoordinateResponse_PeerUpdate_Kind) Number

func (CoordinateResponse_PeerUpdate_Kind) String

func (CoordinateResponse_PeerUpdate_Kind) Type

type DERPMap

type DERPMap struct {
	HomeParams *DERPMap_HomeParams       `protobuf:"bytes,1,opt,name=home_params,json=homeParams,proto3" json:"home_params,omitempty"`
	Regions    map[int64]*DERPMap_Region `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DERPMap) Descriptor deprecated

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

Deprecated: Use DERPMap.ProtoReflect.Descriptor instead.

func (*DERPMap) GetHomeParams

func (x *DERPMap) GetHomeParams() *DERPMap_HomeParams

func (*DERPMap) GetRegions

func (x *DERPMap) GetRegions() map[int64]*DERPMap_Region

func (*DERPMap) ProtoMessage

func (*DERPMap) ProtoMessage()

func (*DERPMap) ProtoReflect

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

func (*DERPMap) Reset

func (x *DERPMap) Reset()

func (*DERPMap) String

func (x *DERPMap) String() string

type DERPMap_HomeParams

type DERPMap_HomeParams struct {
	RegionScore map[int64]float64 `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DERPMap_HomeParams) Descriptor deprecated

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

Deprecated: Use DERPMap_HomeParams.ProtoReflect.Descriptor instead.

func (*DERPMap_HomeParams) GetRegionScore

func (x *DERPMap_HomeParams) GetRegionScore() map[int64]float64

func (*DERPMap_HomeParams) ProtoMessage

func (*DERPMap_HomeParams) ProtoMessage()

func (*DERPMap_HomeParams) ProtoReflect

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

func (*DERPMap_HomeParams) Reset

func (x *DERPMap_HomeParams) Reset()

func (*DERPMap_HomeParams) String

func (x *DERPMap_HomeParams) String() string

type DERPMap_Region

type DERPMap_Region struct {
	RegionId      int64                  `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	EmbeddedRelay bool                   `protobuf:"varint,2,opt,name=embedded_relay,json=embeddedRelay,proto3" json:"embedded_relay,omitempty"`
	RegionCode    string                 `protobuf:"bytes,3,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
	RegionName    string                 `protobuf:"bytes,4,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"`
	Avoid         bool                   `protobuf:"varint,5,opt,name=avoid,proto3" json:"avoid,omitempty"`
	Nodes         []*DERPMap_Region_Node `protobuf:"bytes,6,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

func (*DERPMap_Region) Descriptor deprecated

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

Deprecated: Use DERPMap_Region.ProtoReflect.Descriptor instead.

func (*DERPMap_Region) GetAvoid

func (x *DERPMap_Region) GetAvoid() bool

func (*DERPMap_Region) GetEmbeddedRelay

func (x *DERPMap_Region) GetEmbeddedRelay() bool

func (*DERPMap_Region) GetNodes

func (x *DERPMap_Region) GetNodes() []*DERPMap_Region_Node

func (*DERPMap_Region) GetRegionCode

func (x *DERPMap_Region) GetRegionCode() string

func (*DERPMap_Region) GetRegionId

func (x *DERPMap_Region) GetRegionId() int64

func (*DERPMap_Region) GetRegionName

func (x *DERPMap_Region) GetRegionName() string

func (*DERPMap_Region) ProtoMessage

func (*DERPMap_Region) ProtoMessage()

func (*DERPMap_Region) ProtoReflect

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

func (*DERPMap_Region) Reset

func (x *DERPMap_Region) Reset()

func (*DERPMap_Region) String

func (x *DERPMap_Region) String() string

type DERPMap_Region_Node

type DERPMap_Region_Node struct {
	Name             string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	RegionId         int64  `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	HostName         string `protobuf:"bytes,3,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"`
	CertName         string `protobuf:"bytes,4,opt,name=cert_name,json=certName,proto3" json:"cert_name,omitempty"`
	Ipv4             string `protobuf:"bytes,5,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	Ipv6             string `protobuf:"bytes,6,opt,name=ipv6,proto3" json:"ipv6,omitempty"`
	StunPort         int32  `protobuf:"varint,7,opt,name=stun_port,json=stunPort,proto3" json:"stun_port,omitempty"`
	StunOnly         bool   `protobuf:"varint,8,opt,name=stun_only,json=stunOnly,proto3" json:"stun_only,omitempty"`
	DerpPort         int32  `protobuf:"varint,9,opt,name=derp_port,json=derpPort,proto3" json:"derp_port,omitempty"`
	InsecureForTests bool   `protobuf:"varint,10,opt,name=insecure_for_tests,json=insecureForTests,proto3" json:"insecure_for_tests,omitempty"`
	ForceHttp        bool   `protobuf:"varint,11,opt,name=force_http,json=forceHttp,proto3" json:"force_http,omitempty"`
	StunTestIp       string `protobuf:"bytes,12,opt,name=stun_test_ip,json=stunTestIp,proto3" json:"stun_test_ip,omitempty"`
	CanPort_80       bool   `protobuf:"varint,13,opt,name=can_port_80,json=canPort80,proto3" json:"can_port_80,omitempty"`
	// contains filtered or unexported fields
}

func (*DERPMap_Region_Node) Descriptor deprecated

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

Deprecated: Use DERPMap_Region_Node.ProtoReflect.Descriptor instead.

func (*DERPMap_Region_Node) GetCanPort_80

func (x *DERPMap_Region_Node) GetCanPort_80() bool

func (*DERPMap_Region_Node) GetCertName

func (x *DERPMap_Region_Node) GetCertName() string

func (*DERPMap_Region_Node) GetDerpPort

func (x *DERPMap_Region_Node) GetDerpPort() int32

func (*DERPMap_Region_Node) GetForceHttp

func (x *DERPMap_Region_Node) GetForceHttp() bool

func (*DERPMap_Region_Node) GetHostName

func (x *DERPMap_Region_Node) GetHostName() string

func (*DERPMap_Region_Node) GetInsecureForTests

func (x *DERPMap_Region_Node) GetInsecureForTests() bool

func (*DERPMap_Region_Node) GetIpv4

func (x *DERPMap_Region_Node) GetIpv4() string

func (*DERPMap_Region_Node) GetIpv6

func (x *DERPMap_Region_Node) GetIpv6() string

func (*DERPMap_Region_Node) GetName

func (x *DERPMap_Region_Node) GetName() string

func (*DERPMap_Region_Node) GetRegionId

func (x *DERPMap_Region_Node) GetRegionId() int64

func (*DERPMap_Region_Node) GetStunOnly

func (x *DERPMap_Region_Node) GetStunOnly() bool

func (*DERPMap_Region_Node) GetStunPort

func (x *DERPMap_Region_Node) GetStunPort() int32

func (*DERPMap_Region_Node) GetStunTestIp

func (x *DERPMap_Region_Node) GetStunTestIp() string

func (*DERPMap_Region_Node) ProtoMessage

func (*DERPMap_Region_Node) ProtoMessage()

func (*DERPMap_Region_Node) ProtoReflect

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

func (*DERPMap_Region_Node) Reset

func (x *DERPMap_Region_Node) Reset()

func (*DERPMap_Region_Node) String

func (x *DERPMap_Region_Node) String() string

type DRPCTailnetClient added in v2.7.0

type DRPCTailnetClient interface {
	DRPCConn() drpc.Conn

	StreamDERPMaps(ctx context.Context, in *StreamDERPMapsRequest) (DRPCTailnet_StreamDERPMapsClient, error)
	Coordinate(ctx context.Context) (DRPCTailnet_CoordinateClient, error)
}

func NewDRPCTailnetClient added in v2.7.0

func NewDRPCTailnetClient(cc drpc.Conn) DRPCTailnetClient

type DRPCTailnetDescription added in v2.7.0

type DRPCTailnetDescription struct{}

func (DRPCTailnetDescription) Method added in v2.7.0

func (DRPCTailnetDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

func (DRPCTailnetDescription) NumMethods added in v2.7.0

func (DRPCTailnetDescription) NumMethods() int

type DRPCTailnetServer added in v2.7.0

type DRPCTailnetServer interface {
	StreamDERPMaps(*StreamDERPMapsRequest, DRPCTailnet_StreamDERPMapsStream) error
	Coordinate(DRPCTailnet_CoordinateStream) error
}

type DRPCTailnetUnimplementedServer added in v2.7.0

type DRPCTailnetUnimplementedServer struct{}

func (*DRPCTailnetUnimplementedServer) Coordinate added in v2.7.0

func (*DRPCTailnetUnimplementedServer) StreamDERPMaps added in v2.7.0

type DRPCTailnet_CoordinateClient added in v2.7.0

type DRPCTailnet_CoordinateClient interface {
	drpc.Stream
	Send(*CoordinateRequest) error
	Recv() (*CoordinateResponse, error)
}

type DRPCTailnet_CoordinateStream added in v2.7.0

type DRPCTailnet_CoordinateStream interface {
	drpc.Stream
	Send(*CoordinateResponse) error
	Recv() (*CoordinateRequest, error)
}

type DRPCTailnet_StreamDERPMapsClient added in v2.7.0

type DRPCTailnet_StreamDERPMapsClient interface {
	drpc.Stream
	Recv() (*DERPMap, error)
}

type DRPCTailnet_StreamDERPMapsStream added in v2.7.0

type DRPCTailnet_StreamDERPMapsStream interface {
	drpc.Stream
	Send(*DERPMap) error
}

type Node

type Node struct {
	Id                  int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	AsOf                *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=as_of,json=asOf,proto3" json:"as_of,omitempty"`
	Key                 []byte                 `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Disco               string                 `protobuf:"bytes,4,opt,name=disco,proto3" json:"disco,omitempty"`
	PreferredDerp       int32                  `protobuf:"varint,5,opt,name=preferred_derp,json=preferredDerp,proto3" json:"preferred_derp,omitempty"`
	DerpLatency         map[string]float64     `` /* 184-byte string literal not displayed */
	DerpForcedWebsocket map[int32]string       `` /* 209-byte string literal not displayed */
	Addresses           []string               `protobuf:"bytes,8,rep,name=addresses,proto3" json:"addresses,omitempty"`
	AllowedIps          []string               `protobuf:"bytes,9,rep,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"`
	Endpoints           []string               `protobuf:"bytes,10,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

defined in tailnet/coordinator.go

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) Equal added in v2.5.0

func (s *Node) Equal(o *Node) (bool, error)

Equal returns true if the nodes have the same contents

func (*Node) GetAddresses

func (x *Node) GetAddresses() []string

func (*Node) GetAllowedIps

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

func (*Node) GetAsOf

func (x *Node) GetAsOf() *timestamppb.Timestamp

func (*Node) GetDerpForcedWebsocket

func (x *Node) GetDerpForcedWebsocket() map[int32]string

func (*Node) GetDerpLatency

func (x *Node) GetDerpLatency() map[string]float64

func (*Node) GetDisco

func (x *Node) GetDisco() string

func (*Node) GetEndpoints

func (x *Node) GetEndpoints() []string

func (*Node) GetId

func (x *Node) GetId() int64

func (*Node) GetKey

func (x *Node) GetKey() []byte

func (*Node) GetPreferredDerp

func (x *Node) GetPreferredDerp() int32

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type StreamDERPMapsRequest

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

func (*StreamDERPMapsRequest) Descriptor deprecated

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

Deprecated: Use StreamDERPMapsRequest.ProtoReflect.Descriptor instead.

func (*StreamDERPMapsRequest) ProtoMessage

func (*StreamDERPMapsRequest) ProtoMessage()

func (*StreamDERPMapsRequest) ProtoReflect

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

func (*StreamDERPMapsRequest) Reset

func (x *StreamDERPMapsRequest) Reset()

func (*StreamDERPMapsRequest) String

func (x *StreamDERPMapsRequest) String() string

Jump to

Keyboard shortcuts

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