Documentation
¶
Index ¶
- Constants
- func GenerateState() (string, error)
- func GenerateVerifier() (string, error)
- func ListenForCallback(ctx context.Context) (port int, result <-chan CallbackResult, cleanup func(), err error)
- func LoadOrCreateDeviceID() (string, error)
- func Login(ctx context.Context, cfg LoginConfig, status io.Writer) (string, error)
- func OpenBrowser(url string) error
- func S256Challenge(verifier string) string
- type CallbackResult
- type LoginConfig
- type TokenResponse
Constants ¶
View Source
const ( // ClientID is the OAuth client identifier registered with CircleCI. ClientID = "chunk-cli" // CallbackTimeout is how long to wait for the browser callback before giving up. CallbackTimeout = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func GenerateState ¶
func GenerateVerifier ¶
func ListenForCallback ¶
func ListenForCallback(ctx context.Context) (port int, result <-chan CallbackResult, cleanup func(), err error)
func LoadOrCreateDeviceID ¶
func OpenBrowser ¶
func S256Challenge ¶
Types ¶
type CallbackResult ¶
type LoginConfig ¶
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.