Documentation ¶
Index ¶
- Variables
- func RegisterDaemonServer(s grpc.ServiceRegistrar, srv DaemonServer)
- type DaemonClient
- type DaemonServer
- type DaemonStatus
- func (*DaemonStatus) Descriptor() ([]byte, []int)deprecated
- func (x *DaemonStatus) GetDns() string
- func (x *DaemonStatus) GetError() DaemonStatus_ErrType
- func (x *DaemonStatus) GetFallback() string
- func (*DaemonStatus) ProtoMessage()
- func (x *DaemonStatus) ProtoReflect() protoreflect.Message
- func (x *DaemonStatus) Reset()
- func (x *DaemonStatus) String() string
- type DaemonStatus_ErrType
- func (DaemonStatus_ErrType) Descriptor() protoreflect.EnumDescriptor
- func (x DaemonStatus_ErrType) Enum() *DaemonStatus_ErrType
- func (DaemonStatus_ErrType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DaemonStatus_ErrType) Number() protoreflect.EnumNumber
- func (x DaemonStatus_ErrType) String() string
- func (DaemonStatus_ErrType) Type() protoreflect.EnumType
- type Paths
- type Route
- func (*Route) Descriptor() ([]byte, []int)deprecated
- func (x *Route) GetIps() []string
- func (x *Route) GetName() string
- func (x *Route) GetPort() string
- func (x *Route) GetProto() string
- func (*Route) ProtoMessage()
- func (x *Route) ProtoReflect() protoreflect.Message
- func (x *Route) Reset()
- func (x *Route) String() string
- type Table
- type TableName
- type Tables
- type UnimplementedDaemonServer
- func (UnimplementedDaemonServer) Quit(context.Context, *empty.Empty) (*empty.Empty, error)
- func (UnimplementedDaemonServer) SetDnsSearchPath(context.Context, *Paths) (*empty.Empty, error)
- func (UnimplementedDaemonServer) Status(context.Context, *empty.Empty) (*DaemonStatus, error)
- func (UnimplementedDaemonServer) Update(context.Context, *Table) (*empty.Empty, error)
- func (UnimplementedDaemonServer) Version(context.Context, *empty.Empty) (*common.VersionInfo, error)
- type UnsafeDaemonServer
Constants ¶
This section is empty.
Variables ¶
var ( DaemonStatus_ErrType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "NOT_STARTED", 3: "NO_NETWORK", } DaemonStatus_ErrType_value = map[string]int32{ "UNSPECIFIED": 0, "NOT_STARTED": 1, "NO_NETWORK": 3, } )
Enum value maps for DaemonStatus_ErrType.
var File_rpc_daemon_daemon_proto protoreflect.FileDescriptor
var File_rpc_daemon_iptables_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDaemonServer ¶
func RegisterDaemonServer(s grpc.ServiceRegistrar, srv DaemonServer)
Types ¶
type DaemonClient ¶
type DaemonClient interface { // Returns version information from the Daemon Version(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.VersionInfo, error) // Returns the current connectivity status Status(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DaemonStatus, error) // Quits (terminates) the service. Quit(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) // Update assigns adds or updates an IP-table. Update(ctx context.Context, in *Table, opts ...grpc.CallOption) (*empty.Empty, error) // SetSearch sets a new search path. SetDnsSearchPath(ctx context.Context, in *Paths, opts ...grpc.CallOption) (*empty.Empty, error) }
DaemonClient is the client API for Daemon 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.
func NewDaemonClient ¶
func NewDaemonClient(cc grpc.ClientConnInterface) DaemonClient
type DaemonServer ¶
type DaemonServer interface { // Returns version information from the Daemon Version(context.Context, *empty.Empty) (*common.VersionInfo, error) // Returns the current connectivity status Status(context.Context, *empty.Empty) (*DaemonStatus, error) // Quits (terminates) the service. Quit(context.Context, *empty.Empty) (*empty.Empty, error) // Update assigns adds or updates an IP-table. Update(context.Context, *Table) (*empty.Empty, error) // SetSearch sets a new search path. SetDnsSearchPath(context.Context, *Paths) (*empty.Empty, error) // contains filtered or unexported methods }
DaemonServer is the server API for Daemon service. All implementations must embed UnimplementedDaemonServer for forward compatibility
type DaemonStatus ¶
type DaemonStatus struct { Error DaemonStatus_ErrType `protobuf:"varint,1,opt,name=error,proto3,enum=telepresence.daemon.DaemonStatus_ErrType" json:"error,omitempty"` Dns string `protobuf:"bytes,2,opt,name=dns,proto3" json:"dns,omitempty"` Fallback string `protobuf:"bytes,3,opt,name=fallback,proto3" json:"fallback,omitempty"` // contains filtered or unexported fields }
func (*DaemonStatus) Descriptor
deprecated
func (*DaemonStatus) Descriptor() ([]byte, []int)
Deprecated: Use DaemonStatus.ProtoReflect.Descriptor instead.
func (*DaemonStatus) GetDns ¶
func (x *DaemonStatus) GetDns() string
func (*DaemonStatus) GetError ¶
func (x *DaemonStatus) GetError() DaemonStatus_ErrType
func (*DaemonStatus) GetFallback ¶
func (x *DaemonStatus) GetFallback() string
func (*DaemonStatus) ProtoMessage ¶
func (*DaemonStatus) ProtoMessage()
func (*DaemonStatus) ProtoReflect ¶
func (x *DaemonStatus) ProtoReflect() protoreflect.Message
func (*DaemonStatus) Reset ¶
func (x *DaemonStatus) Reset()
func (*DaemonStatus) String ¶
func (x *DaemonStatus) String() string
type DaemonStatus_ErrType ¶
type DaemonStatus_ErrType int32
const ( DaemonStatus_UNSPECIFIED DaemonStatus_ErrType = 0 DaemonStatus_NOT_STARTED DaemonStatus_ErrType = 1 DaemonStatus_NO_NETWORK DaemonStatus_ErrType = 3 )
func (DaemonStatus_ErrType) Descriptor ¶
func (DaemonStatus_ErrType) Descriptor() protoreflect.EnumDescriptor
func (DaemonStatus_ErrType) Enum ¶
func (x DaemonStatus_ErrType) Enum() *DaemonStatus_ErrType
func (DaemonStatus_ErrType) EnumDescriptor
deprecated
func (DaemonStatus_ErrType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DaemonStatus_ErrType.Descriptor instead.
func (DaemonStatus_ErrType) Number ¶
func (x DaemonStatus_ErrType) Number() protoreflect.EnumNumber
func (DaemonStatus_ErrType) String ¶
func (x DaemonStatus_ErrType) String() string
func (DaemonStatus_ErrType) Type ¶
func (DaemonStatus_ErrType) Type() protoreflect.EnumType
type Paths ¶
type Paths struct { Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` // contains filtered or unexported fields }
func (*Paths) Descriptor
deprecated
func (*Paths) ProtoMessage ¶
func (*Paths) ProtoMessage()
func (*Paths) ProtoReflect ¶
func (x *Paths) ProtoReflect() protoreflect.Message
type Route ¶
type Route struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Ips []string `protobuf:"bytes,2,rep,name=ips,proto3" json:"ips,omitempty"` Proto string `protobuf:"bytes,3,opt,name=proto,proto3" json:"proto,omitempty"` Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*Route) Descriptor
deprecated
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
type Table ¶
type Table struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Routes []*Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"` SocksPort int32 `protobuf:"varint,3,opt,name=socks_port,json=socksPort,proto3" json:"socks_port,omitempty"` // contains filtered or unexported fields }
func (*Table) Descriptor
deprecated
func (*Table) GetSocksPort ¶ added in v2.1.4
func (*Table) ProtoMessage ¶
func (*Table) ProtoMessage()
func (*Table) ProtoReflect ¶
func (x *Table) ProtoReflect() protoreflect.Message
type TableName ¶
type TableName struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*TableName) Descriptor
deprecated
func (*TableName) ProtoMessage ¶
func (*TableName) ProtoMessage()
func (*TableName) ProtoReflect ¶
func (x *TableName) ProtoReflect() protoreflect.Message
type Tables ¶
type Tables struct { Tables []*Table `protobuf:"bytes,1,rep,name=tables,proto3" json:"tables,omitempty"` // contains filtered or unexported fields }
func (*Tables) Descriptor
deprecated
func (*Tables) ProtoMessage ¶
func (*Tables) ProtoMessage()
func (*Tables) ProtoReflect ¶
func (x *Tables) ProtoReflect() protoreflect.Message
type UnimplementedDaemonServer ¶
type UnimplementedDaemonServer struct { }
UnimplementedDaemonServer must be embedded to have forward compatible implementations.
func (UnimplementedDaemonServer) SetDnsSearchPath ¶
func (UnimplementedDaemonServer) Status ¶
func (UnimplementedDaemonServer) Status(context.Context, *empty.Empty) (*DaemonStatus, error)
func (UnimplementedDaemonServer) Version ¶
func (UnimplementedDaemonServer) Version(context.Context, *empty.Empty) (*common.VersionInfo, error)
type UnsafeDaemonServer ¶
type UnsafeDaemonServer interface {
// contains filtered or unexported methods
}
UnsafeDaemonServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DaemonServer will result in compilation errors.