Documentation ¶
Overview ¶
Package login provides the defined CLI login actions for Vela.
Usage:
import "github.com/go-vela/cli/action/login"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeResponse ¶ added in v0.7.0
type Config ¶
type Config struct { Action string Address string AccessToken string RefreshToken string // contains filtered or unexported fields }
Config represents the configuration necessary to perform login related requests with Vela.
func (*Config) Login ¶
Login authenticates and logs in to Vela via the API based off the provided configuration.
func (*Config) PromptBrowserConfirm ¶ added in v0.7.0
func (c *Config) PromptBrowserConfirm(in io.ReadCloser) error
PromptBrowserConfirm provides a prompt to confirm opening a browser window.
func (*Config) PromptConfigConfirm ¶ added in v0.7.0
func (c *Config) PromptConfigConfirm(in io.ReadCloser) error
PromptConfigConfirm provides a prompt to confirm config generation.
func (*Config) StartServer ¶ added in v0.7.0
StartServer starts a local server as part of the auth flow. It will handle the callback.
Click to show internal directories.
Click to hide internal directories.