daemon

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

Command returns the CLI sub-command for "connector-foreground".

func ManageSessions

func ManageSessions(c context.Context, si userd.Service) error

ManageSessions is the counterpart to the Connect method. It reads the connectCh, creates a session and writes a reply to the connectErrCh. The session is then started if it was successfully created.

func NewService

func NewService(ctx context.Context, _ *dgroup.Group, sr *scout.Reporter, cfg *client.Config, srv *grpc.Server) (userd.Service, error)

Types

type Service

type Service struct {
	rpc.UnsafeConnectorServer
	// contains filtered or unexported fields
}

Service represents the long-running state of the Telepresence User Daemon.

func (*Service) AddInterceptor

func (s *Service) AddInterceptor(ctx context.Context, interceptor *rpc.Interceptor) (*empty.Empty, error)

func (*Service) As

func (s *Service) As(ptr any)

func (*Service) CanIntercept

func (s *Service) CanIntercept(c context.Context, ir *rpc.CreateInterceptRequest) (result *rpc.InterceptResult, err error)

func (*Service) Connect

func (s *Service) Connect(ctx context.Context, cr *rpc.ConnectRequest) (result *rpc.ConnectInfo, err error)

func (*Service) CreateIntercept

func (s *Service) CreateIntercept(c context.Context, ir *rpc.CreateInterceptRequest) (result *rpc.InterceptResult, err error)

func (*Service) Disconnect

func (s *Service) Disconnect(ctx context.Context, ex *empty.Empty) (*empty.Empty, error)

func (*Service) FuseFTPError

func (s *Service) FuseFTPError() error

func (*Service) GatherLogs

func (s *Service) GatherLogs(ctx context.Context, request *rpc.LogsRequest) (result *rpc.LogsResponse, err error)

func (*Service) GatherTraces

func (s *Service) GatherTraces(ctx context.Context, request *rpc.TracesRequest) (result *common.Result, err error)

func (*Service) GetAPIKey

func (s *Service) GetAPIKey(_ context.Context) (string, error)

func (*Service) GetCloudAPIKey

func (s *Service) GetCloudAPIKey(context.Context, *rpc.KeyRequest) (result *rpc.KeyData, err error)

func (*Service) GetCloudLicense

func (s *Service) GetCloudLicense(ctx context.Context, req *rpc.LicenseRequest) (result *rpc.LicenseData, err error)

func (*Service) GetCloudUserInfo

func (s *Service) GetCloudUserInfo(context.Context, *rpc.UserInfoRequest) (result *rpc.UserInfo, err error)

func (*Service) GetClusterSubnets

func (s *Service) GetClusterSubnets(ctx context.Context, _ *empty.Empty) (cs *rpc.ClusterSubnets, err error)

func (*Service) GetConfig

func (s *Service) GetConfig(ctx context.Context, empty *empty.Empty) (cfg *rpc.ClientConfig, err error)

func (*Service) GetFuseFTPClient added in v2.9.4

func (s *Service) GetFuseFTPClient(ctx context.Context) rpc.FuseFTPClient

func (*Service) GetIntercept added in v2.9.3

func (s *Service) GetIntercept(ctx context.Context, request *manager.GetInterceptRequest) (ii *manager.InterceptInfo, err error)

func (*Service) GetNamespaces

func (*Service) Helm

func (s *Service) Helm(ctx context.Context, req *rpc.HelmRequest) (*common.Result, error)

func (*Service) List

func (s *Service) List(c context.Context, lr *rpc.ListRequest) (result *rpc.WorkloadInfoSnapshot, err error)

func (*Service) Login

func (s *Service) Login(context.Context, *rpc.LoginRequest) (result *rpc.LoginResult, err error)

func (*Service) Logout

func (s *Service) Logout(context.Context, *empty.Empty) (result *empty.Empty, err error)

func (*Service) Quit

func (s *Service) Quit(ctx context.Context, ex *empty.Empty) (*empty.Empty, error)

func (*Service) RemoteMountAvailability

func (s *Service) RemoteMountAvailability(ctx context.Context, _ *empty.Empty) (*common.Result, error)

func (*Service) RemoveIntercept

func (s *Service) RemoveIntercept(c context.Context, rr *manager.RemoveInterceptRequest2) (result *rpc.InterceptResult, err error)

func (*Service) RemoveInterceptor

func (s *Service) RemoveInterceptor(ctx context.Context, interceptor *rpc.Interceptor) (*empty.Empty, error)

func (*Service) Reporter

func (s *Service) Reporter() *scout.Reporter

func (*Service) RootDaemonVersion

func (s *Service) RootDaemonVersion(ctx context.Context, empty *empty.Empty) (vi *common.VersionInfo, err error)

func (*Service) Server

func (s *Service) Server() *grpc.Server

func (*Service) SetLogLevel

func (s *Service) SetLogLevel(ctx context.Context, request *rpc.LogLevelRequest) (result *empty.Empty, err error)

func (*Service) SetManagerClient

func (s *Service) SetManagerClient(managerClient manager.ManagerClient, callOptions ...grpc.CallOption)

func (*Service) Status

func (s *Service) Status(ctx context.Context, ex *empty.Empty) (result *rpc.ConnectInfo, err error)

func (*Service) TrafficManagerVersion added in v2.9.3

func (s *Service) TrafficManagerVersion(ctx context.Context, _ *empty.Empty) (vi *common.VersionInfo, err error)

func (*Service) Uninstall

func (s *Service) Uninstall(c context.Context, ur *rpc.UninstallRequest) (result *common.Result, err error)

func (*Service) UpdateIntercept added in v2.9.3

func (s *Service) UpdateIntercept(c context.Context, rr *manager.UpdateInterceptRequest) (result *manager.InterceptInfo, err error)

func (*Service) Version

func (s *Service) Version(_ context.Context, _ *empty.Empty) (*common.VersionInfo, error)

func (*Service) WatchWorkloads

func (*Service) WithSession

func (s *Service) WithSession(c context.Context, callName string, f func(context.Context, userd.Session) error) (err error)

Jump to

Keyboard shortcuts

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