Documentation
¶
Index ¶
- func NewCmdAuth(f *cmdutil.Factory) *cobra.Command
- func NewCmdAuthCheck(f *cmdutil.Factory, runF func(*CheckOptions) error) *cobra.Command
- func NewCmdAuthList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Command
- func NewCmdAuthLogin(f *cmdutil.Factory, runF func(*LoginOptions) error) *cobra.Command
- func NewCmdAuthLogout(f *cmdutil.Factory, runF func(*LogoutOptions) error) *cobra.Command
- func NewCmdAuthQRCode(f *cmdutil.Factory, runF func(*QRCodeOptions) error) *cobra.Command
- func NewCmdAuthScopes(f *cmdutil.Factory, runF func(*ScopesOptions) error) *cobra.Command
- func NewCmdAuthStatus(f *cmdutil.Factory, runF func(*StatusOptions) error) *cobra.Command
- func NewCmdAuthWithRecovery(f *cmdutil.Factory, projector *recovery.Projector) *cobra.Command
- func NewCmdAuthWithRecoveryAndShortcuts(f *cmdutil.Factory, projector *recovery.Projector, ...) *cobra.Command
- type CheckOptions
- type ListOptions
- type LoginOptions
- type LogoutOptions
- type QRCodeOptions
- type ScopesOptions
- type StatusOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdAuth ¶
NewCmdAuth creates the auth command with subcommands.
func NewCmdAuthCheck ¶
NewCmdAuthCheck creates the auth check subcommand.
func NewCmdAuthList ¶
NewCmdAuthList creates the auth list subcommand.
func NewCmdAuthLogin ¶
NewCmdAuthLogin creates the auth login subcommand.
func NewCmdAuthLogout ¶
NewCmdAuthLogout creates the auth logout subcommand.
func NewCmdAuthQRCode ¶ added in v1.0.40
NewCmdAuthQRCode creates the auth qrcode subcommand.
func NewCmdAuthScopes ¶
NewCmdAuthScopes creates the auth scopes subcommand.
func NewCmdAuthStatus ¶
NewCmdAuthStatus creates the auth status subcommand.
func NewCmdAuthWithRecovery ¶ added in v1.0.84
NewCmdAuthWithRecovery creates the auth command with a build-local recovery presenter, resolving domains from the registered shortcut set. Retained at its established signature: callers outside this module cannot name *recovery.Projector, but they can pass nil for it, so dropping this would break them at compile time.
func NewCmdAuthWithRecoveryAndShortcuts ¶ added in v1.0.90
func NewCmdAuthWithRecoveryAndShortcuts(f *cmdutil.Factory, projector *recovery.Projector, registered []shortcutcommon.Shortcut) *cobra.Command
NewCmdAuthWithRecoveryAndShortcuts creates auth commands from one build-local shortcut snapshot.
Types ¶
type CheckOptions ¶
CheckOptions holds all inputs for auth check.
type ListOptions ¶
ListOptions holds all inputs for auth list.
type LoginOptions ¶
type LoginOptions struct {
Factory *cmdutil.Factory
Ctx context.Context
JSON bool
Scope string
Recommend bool
Domains []string
Exclude []string
NoWait bool
DeviceCode string
}
LoginOptions holds all inputs for auth login.
type LogoutOptions ¶
LogoutOptions holds all inputs for auth logout.
type QRCodeOptions ¶ added in v1.0.40
type QRCodeOptions struct {
Factory *cmdutil.Factory
Ctx context.Context
URL string
Size int
ASCII bool
Output string
}
QRCodeOptions holds inputs for auth qrcode command.
type ScopesOptions ¶
ScopesOptions holds all inputs for auth scopes.