Documentation ¶
Index ¶
- Constants
- func GetCommands(ctx context.Context) cliutil.CommandGroups
- func GetCommandsForLocal(ctx context.Context, err error) cliutil.CommandGroups
- func GetConnectorServer(ctx context.Context) connector.ConnectorServer
- func GetCtxCancellationHandlerFunc(ctx context.Context) func()
- func GetCwd(ctx context.Context) string
- func GetSession(ctx context.Context) trafficmgr.Session
- func SetCtxCancellationHandlerFunc(ctx context.Context, f func())
- func WithConnectorServer(ctx context.Context, cs connector.ConnectorServer) context.Context
- func WithCtxCancellationHandlerFunc(ctx context.Context) context.Context
- func WithCwd(ctx context.Context, cwd string) context.Context
- func WithSession(ctx context.Context, s trafficmgr.Session) context.Context
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 GetSession ¶ added in v2.7.0
func GetSession(ctx context.Context) trafficmgr.Session
func SetCtxCancellationHandlerFunc ¶ added in v2.7.0
func WithConnectorServer ¶ added in v2.7.0
func WithCtxCancellationHandlerFunc ¶ added in v2.7.0
func WithSession ¶ added in v2.7.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.