Documentation ¶
Index ¶
- func InteractiveLogin(ctx context.Context, config *config.Config) error
- func Login(ctx context.Context, baseURL string, config *config.Config) error
- func SuccessMessage(ctx context.Context, account *acct.Account, baseURL string, apiKey string) (string, error)
- type AsyncInputReader
- type AsyncStdinReader
- type Authenticator
- type Links
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InteractiveLogin ¶
InteractiveLogin lets the user set configuration on the command line
Types ¶
type AsyncInputReader ¶ added in v1.12.4
type AsyncInputReader interface {
// contains filtered or unexported methods
}
AsyncInputReader is an interface that has an async version of scanln
type AsyncStdinReader ¶ added in v1.12.4
type AsyncStdinReader struct { }
AsyncStdinReader implements scanln(ch chan int), an async version of scanln
type Authenticator ¶ added in v1.13.12
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator handles the login flow
func NewAuthenticator ¶ added in v1.13.12
func NewAuthenticator(keytransfer keys.KeyTransfer) *Authenticator
NewAuthenticator creates a new authenticator object
Source Files ¶
Click to show internal directories.
Click to hide internal directories.