Documentation
¶
Overview ¶
Package auth provides the "jira auth" command group for authentication management.
Index ¶
- func NewCmdAuth(f *factory.Factory) *cobra.Command
- func NewCmdLogin(f *factory.Factory) *cobra.Command
- func NewCmdLogout(f *factory.Factory) *cobra.Command
- func NewCmdStatus(f *factory.Factory) *cobra.Command
- func NewCmdSwitch(f *factory.Factory) *cobra.Command
- type LoginOptions
- type LogoutOptions
- type StatusOptions
- type SwitchOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdAuth ¶
NewCmdAuth creates the "auth" command group. Subcommands (login, logout, status, switch) are registered in their own stories.
func NewCmdLogin ¶
NewCmdLogin creates the "auth login" command.
func NewCmdLogout ¶
NewCmdLogout creates the "auth logout" command.
func NewCmdStatus ¶
NewCmdStatus creates the "auth status" command.
Types ¶
type LoginOptions ¶
type LoginOptions struct {
Instance string
User string
Token string
Profile string
Factory *factory.Factory
// contains filtered or unexported fields
}
LoginOptions holds all resolved inputs for the login command.
type LogoutOptions ¶
LogoutOptions holds all resolved inputs for the logout command.
type StatusOptions ¶
type StatusOptions struct {
Factory *factory.Factory
// Check makes an invalid token an error rather than a reportable state, so
// the command can gate a script or hook. Off by default: the exit code is
// part of the existing contract.
Check bool
// contains filtered or unexported fields
}
StatusOptions holds all resolved inputs for the status command.
type SwitchOptions ¶
SwitchOptions holds all resolved inputs for the switch command.
Click to show internal directories.
Click to hide internal directories.