daemon

package
v2.1.1-rename.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_rpc_daemon_daemon_proto protoreflect.FileDescriptor
View Source
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) Enum

func (DaemonStatus_ErrType) EnumDescriptor deprecated

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

Deprecated: Use DaemonStatus_ErrType.Descriptor instead.

func (DaemonStatus_ErrType) Number

func (DaemonStatus_ErrType) String

func (x DaemonStatus_ErrType) String() string

func (DaemonStatus_ErrType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Paths.ProtoReflect.Descriptor instead.

func (*Paths) GetPaths

func (x *Paths) GetPaths() []string

func (*Paths) ProtoMessage

func (*Paths) ProtoMessage()

func (*Paths) ProtoReflect

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

func (*Paths) Reset

func (x *Paths) Reset()

func (*Paths) String

func (x *Paths) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetIps

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

func (*Route) GetName

func (x *Route) GetName() string

func (*Route) GetPort

func (x *Route) GetPort() string

func (*Route) GetProto

func (x *Route) GetProto() string

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 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"`
	// contains filtered or unexported fields
}

func (*Table) Descriptor deprecated

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

Deprecated: Use Table.ProtoReflect.Descriptor instead.

func (*Table) GetName

func (x *Table) GetName() string

func (*Table) GetRoutes

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

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) ProtoReflect

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

func (*Table) Reset

func (x *Table) Reset()

func (*Table) String

func (x *Table) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TableName.ProtoReflect.Descriptor instead.

func (*TableName) GetName

func (x *TableName) GetName() string

func (*TableName) ProtoMessage

func (*TableName) ProtoMessage()

func (*TableName) ProtoReflect

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

func (*TableName) Reset

func (x *TableName) Reset()

func (*TableName) String

func (x *TableName) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Tables.ProtoReflect.Descriptor instead.

func (*Tables) GetTables

func (x *Tables) GetTables() []*Table

func (*Tables) ProtoMessage

func (*Tables) ProtoMessage()

func (*Tables) ProtoReflect

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

func (*Tables) Reset

func (x *Tables) Reset()

func (*Tables) String

func (x *Tables) String() string

type UnimplementedDaemonServer

type UnimplementedDaemonServer struct {
}

UnimplementedDaemonServer must be embedded to have forward compatible implementations.

func (UnimplementedDaemonServer) Quit

func (UnimplementedDaemonServer) SetDnsSearchPath

func (UnimplementedDaemonServer) Status

func (UnimplementedDaemonServer) Update

func (UnimplementedDaemonServer) Version

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.

Jump to

Keyboard shortcuts

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