Documentation
¶
Index ¶
Constants ¶
const ( // DefaultAuthWaitTimeout is the default timeout for waiting for authentication to complete. DefaultAuthWaitTimeout = 2 * time.Minute // DefaultAuthPollInterval is the default interval for polling authentication status. DefaultAuthPollInterval = 500 * time.Millisecond // DefaultStatusCheckTimeout is the timeout for checking connection status and fetching resources. DefaultStatusCheckTimeout = 10 * time.Second // DefaultConnectTimeout bounds a connection made only to renew the access // token: the client's retries of a connection that did not reach the // aggregator, and one status check's time for the last attempt. DefaultConnectTimeout = agent.DefaultConnectRetryBudget + DefaultStatusCheckTimeout )
Auth wait timeout constants.
const ( // DefaultSSOWaitTimeout is the maximum time to wait for SSO completion after login. DefaultSSOWaitTimeout = 30 * time.Second // DefaultSSOPollInterval is how often to check SSO status during the wait. DefaultSSOPollInterval = 500 * time.Millisecond )
SSO wait timeout constants.
const ( // ExitCodeSuccess indicates successful execution. ExitCodeSuccess = 0 // ExitCodeError indicates a general error (command failed, invalid arguments). ExitCodeError = 1 // ExitCodeAuthRequired indicates authentication is required but not available. ExitCodeAuthRequired = 2 // ExitCodeAuthFailed indicates the OAuth flow failed. ExitCodeAuthFailed = 3 // ExitCodeOutdated is what `muster self-update --check` exits with when a // newer release exists -- devctl's convention for `version check`. ExitCodeOutdated = 125 )
Exit codes for CLI commands. These follow common conventions and are documented in docs/how-to/authenticate-the-cli.md
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute is the main entry point for the CLI application. It initializes and executes the root command, which in turn handles subcommands and flags. This function is called by main.main().
func RootCommand ¶
RootCommand returns the root command with every subcommand registered. The CLI reference in docs/reference/cli is rendered from this tree by hack/gen-cli-docs, so the command help texts are the documentation.
Types ¶
type AuthHandlerOptions ¶
type AuthHandlerOptions struct {
// NoSilentRefresh disables silent re-authentication attempts.
// When true, Login() always uses interactive authentication.
NoSilentRefresh bool
}
AuthHandlerOptions configures the auth handler creation.
type AuthWaitConfig ¶
type AuthWaitConfig struct {
// WaitForCompletion enables polling for auth completion.
WaitForCompletion bool
// Timeout is the maximum time to wait for completion.
Timeout time.Duration
// PollInterval is how often to check auth status.
PollInterval time.Duration
}
AuthWaitConfig configures how long to wait for authentication completion.
func DefaultAuthWaitConfig ¶
func DefaultAuthWaitConfig() AuthWaitConfig
DefaultAuthWaitConfig returns a default configuration for auth waiting.
type MCPFilterOptions ¶
type MCPFilterOptions struct {
// Pattern is a wildcard pattern to match against names (* and ? supported)
Pattern string
// Description is a case-insensitive substring to match against descriptions
Description string
// Server selects the items of one server: the server an item belongs to
// as the aggregator reports it ("files", "core", "workflow"), also spelled
// "x_files". Case-insensitive.
Server string
}
MCPFilterOptions contains filter criteria for MCP primitives
func (MCPFilterOptions) HasMCPOnlyFilters ¶
func (o MCPFilterOptions) HasMCPOnlyFilters() bool
HasMCPOnlyFilters returns true if any MCP-specific filters are set
func (MCPFilterOptions) IsEmpty ¶
func (o MCPFilterOptions) IsEmpty() bool
IsEmpty returns true if no filters are set