Documentation ¶
Index ¶
- func AuthTokenWriteable(cfg config.Config, hostname string) (string, bool)
- func GetScopes(httpClient httpClient, hostname, authToken string) (string, error)
- func HasMinimumScopes(httpClient httpClient, hostname, authToken string) error
- func Login(opts *LoginOptions) error
- type GitCredentialFlow
- type LoginOptions
- type MissingScopesError
- type Prompt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthTokenWriteable ¶
func HasMinimumScopes ¶
func Login ¶
func Login(opts *LoginOptions) error
Types ¶
type GitCredentialFlow ¶
type GitCredentialFlow struct { Executable string Prompter Prompt GitClient *git.Client // contains filtered or unexported fields }
func (*GitCredentialFlow) Prompt ¶
func (flow *GitCredentialFlow) Prompt(hostname string) error
func (*GitCredentialFlow) Scopes ¶
func (flow *GitCredentialFlow) Scopes() []string
func (*GitCredentialFlow) Setup ¶
func (flow *GitCredentialFlow) Setup(hostname, username, authToken string) error
func (*GitCredentialFlow) ShouldSetup ¶
func (flow *GitCredentialFlow) ShouldSetup() bool
type LoginOptions ¶
type MissingScopesError ¶
type MissingScopesError struct {
MissingScopes []string
}
func (MissingScopesError) Error ¶
func (e MissingScopesError) Error() string
Click to show internal directories.
Click to hide internal directories.