shared

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitCredentialSetup

func GitCredentialSetup(hostname, username, password, helper string) error

func HasMinimumScopes added in v1.6.0

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

func Login added in v1.6.0

func Login(opts *LoginOptions) error

Types

type GitCredentialFlow added in v1.6.0

type GitCredentialFlow struct {
	// contains filtered or unexported fields
}

func (*GitCredentialFlow) Prompt added in v1.6.0

func (flow *GitCredentialFlow) Prompt(hostname string) error

func (*GitCredentialFlow) Scopes added in v1.6.0

func (flow *GitCredentialFlow) Scopes() []string

func (*GitCredentialFlow) Setup added in v1.6.0

func (flow *GitCredentialFlow) Setup(hostname, username, authToken string) error

func (*GitCredentialFlow) ShouldSetup added in v1.6.0

func (flow *GitCredentialFlow) ShouldSetup() bool

type LoginOptions added in v1.6.0

type LoginOptions struct {
	IO          *iostreams.IOStreams
	Config      iconfig
	HTTPClient  *http.Client
	Hostname    string
	Interactive bool
	Web         bool
	Scopes      []string
	// contains filtered or unexported fields
}

type MissingScopesError added in v1.6.0

type MissingScopesError struct {
	MissingScopes []string
}

func (MissingScopesError) Error added in v1.6.0

func (e MissingScopesError) Error() string

Jump to

Keyboard shortcuts

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