Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuthContextMissing = errors.New("auth context not present")
Functions ¶
Types ¶
type Command ¶
Command is the parent command for all authentication related commands.
func NewCommand ¶
func NewCommand() *Command
type Context ¶
type Context struct { EmailAddress string `json:"emailAddress"` Subdomain string `json:"subdomain"` Token string `json:"token"` DisplayName string `json:"displayName"` }
Context encapsulates the details needed to authenticate with Jira and the user details, fetched after authentication.
func LoadUserContext ¶
Load loads the user context from the keyring.
type ContextKey ¶
type ContextKey string
ContextKey is the key used to store the auth context in the context.
const (
DefaultContextKey ContextKey = "default-auth-context"
)
type InitCommand ¶
func NewInitCommand ¶
func NewInitCommand() *InitCommand
type ShowCommand ¶
func NewShowCommand ¶
func NewShowCommand() *ShowCommand
Click to show internal directories.
Click to hide internal directories.