Documentation ¶
Index ¶
- Constants
- func Command(getCommands CommandFactory, daemonServices []DaemonService, ...) *cobra.Command
- func Notify(c context.Context, message string)
- type CommandFactory
- type DaemonService
- type SessionClient
- type SessionClientProvider
- func (p *SessionClientProvider) BuildClient(ctx context.Context, conn *grpc.ClientConn) (*SessionClient, error)
- func (p *SessionClientProvider) GetAPIKey(ctx context.Context) (string, error)
- func (p *SessionClientProvider) GetExtraHeaders(ctx context.Context) (map[string]string, error)
- func (p *SessionClientProvider) GetInstallID(ctx context.Context) (string, error)
- func (p *SessionClientProvider) GetSystemaAddress(ctx context.Context) (string, error)
- type WithSession
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"
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
type SessionClient struct { userdaemon.SystemAClient systema.UserDaemonSystemAProxyClient }
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 (*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)
Click to show internal directories.
Click to hide internal directories.