shared

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasMinimumScopes

func HasMinimumScopes(httpClient httpClient, hostname, authToken string) error

func Login

func Login(opts *LoginOptions) error

Types

type GitCredentialFlow

type GitCredentialFlow struct {
	Executable string
	// 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 LoginOptions struct {
	IO          *iostreams.IOStreams
	Config      iconfig
	HTTPClient  *http.Client
	Hostname    string
	Interactive bool
	Web         bool
	Scopes      []string
	Executable  string
	// contains filtered or unexported fields
}

type MissingScopesError

type MissingScopesError struct {
	MissingScopes []string
}

func (MissingScopesError) Error

func (e MissingScopesError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL