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 Config ¶
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) PromptOTP ¶
func (c *Config) PromptOTP(in io.ReadCloser) error
PromptOTP asks the user to provide a OTP via terminal input based off the provided configuration.
func (*Config) PromptPassword ¶
func (c *Config) PromptPassword(in io.ReadCloser) error
PromptPassword asks the user to provide a password via terminal input based off the provided configuration.
func (*Config) PromptUsername ¶
func (c *Config) PromptUsername(in io.ReadCloser) error
PromptUsername asks the user to provide a username via terminal input based off the provided configuration.
Click to show internal directories.
Click to hide internal directories.