userd

package
v2.6.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const ProcessName = "connector"

Variables

This section is empty.

Functions

func Command

func Command(getCommands CommandFactory, daemonServices []DaemonService, sessionServices []trafficmgr.SessionService) *cobra.Command

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

func Notify

func Notify(c context.Context, message string)

Notify displays a desktop banner notification to the user

Types

type CommandFactory

type CommandFactory func() cliutil.CommandGroups

type DaemonService

type DaemonService interface {
	Name() string
	// Start should start the daemon service. It's expected that it returns and does not block. Any long-running tasks should be
	// managed as goroutines started by Start.
	Start(ctx context.Context, scout *scout.Reporter, grpcServer *grpc.Server, withSession WithSession) error
}

A DaemonService is one that runs during the entire lifecycle of the daemon. This should be used to augment the daemon with GRPC services.

type SessionClient added in v2.6.0

func (*SessionClient) Close added in v2.6.0

func (c *SessionClient) Close(ctx context.Context) error

type SessionClientProvider added in v2.6.0

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

func (*SessionClientProvider) BuildClient added in v2.6.0

func (p *SessionClientProvider) BuildClient(ctx context.Context, conn *grpc.ClientConn) (*SessionClient, error)

func (*SessionClientProvider) GetAPIKey added in v2.6.0

func (p *SessionClientProvider) GetAPIKey(ctx context.Context) (string, error)

func (*SessionClientProvider) GetExtraHeaders added in v2.6.0

func (p *SessionClientProvider) GetExtraHeaders(ctx context.Context) (map[string]string, error)

func (*SessionClientProvider) GetInstallID added in v2.6.0

func (p *SessionClientProvider) GetInstallID(ctx context.Context) (string, error)

func (*SessionClientProvider) GetSystemaAddress added in v2.6.0

func (p *SessionClientProvider) GetSystemaAddress(ctx context.Context) (string, error)

type WithSession

type WithSession func(c context.Context, callName string, f func(context.Context, trafficmgr.Session) error) (err error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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