login

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InteractiveLogin

func InteractiveLogin(profile profile.Profile) error

InteractiveLogin lets the user set configuration on the command line

func Login

func Login(baseURL string, profile profile.Profile, input io.Reader) error

Login function is used to obtain credentials via stripe dashboard.

func PollForKey

func PollForKey(pollURL string, interval time.Duration, maxAttempts int) (string, string, error)

PollForKey polls Stripe at the specified interval until either the API key is available or we've reached the max attempts.

Types

type Links struct {
	BrowserURL       string `json:"browser_url"`
	PollURL          string `json:"poll_url"`
	VerificationCode string `json:"verification_code"`
}

Links provides the URLs for the CLI to continue the login flow

Jump to

Keyboard shortcuts

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