commands

package
v2.7.1-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CommandRequiresSession         = "cobra.telepresence.io/with-session"
	CommandRequiresConnectorServer = "cobra.telepresence.io/with-connector-server"
)

Variables

This section is empty.

Functions

func GetCommands

func GetCommands(ctx context.Context) cliutil.CommandGroups

GetCommands will return all commands implemented by the connector daemon.

func GetCommandsForLocal

func GetCommandsForLocal(ctx context.Context, err error) cliutil.CommandGroups

GetCommandsForLocal will return the same commands as GetCommands but in a non-runnable state that reports the error given. Should be used to build help strings even if it's not possible to connect to the connector daemon.

func GetConnectorServer added in v2.7.0

func GetConnectorServer(ctx context.Context) connector.ConnectorServer

func GetCtxCancellationHandlerFunc added in v2.7.0

func GetCtxCancellationHandlerFunc(ctx context.Context) func()

func GetCwd added in v2.7.0

func GetCwd(ctx context.Context) string

func GetSession added in v2.7.0

func GetSession(ctx context.Context) trafficmgr.Session

func SetCtxCancellationHandlerFunc added in v2.7.0

func SetCtxCancellationHandlerFunc(ctx context.Context, f func())

func WithConnectorServer added in v2.7.0

func WithConnectorServer(ctx context.Context, cs connector.ConnectorServer) context.Context

func WithCtxCancellationHandlerFunc added in v2.7.0

func WithCtxCancellationHandlerFunc(ctx context.Context) context.Context

func WithCwd added in v2.7.0

func WithCwd(ctx context.Context, cwd string) context.Context

func WithSession added in v2.7.0

func WithSession(ctx context.Context, s trafficmgr.Session) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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