Documentation
¶
Index ¶
- Variables
- func Authenticate(cfg keypairs.Configurable, out output.Outputer, prompt prompt.Prompter, ...) error
- func AuthenticateWithBrowser(out output.Outputer, auth *authentication.Auth, prompt prompt.Prompter, ...) error
- func AuthenticateWithCredentials(credentials *mono_models.Credentials, auth *authentication.Auth) error
- func AuthenticateWithInput(username, password, totp string, cfg keypairs.Configurable, ...) error
- func AuthenticateWithToken(token string, auth *authentication.Auth) error
- func RequireAuthentication(message string, cfg keypairs.Configurable, out output.Outputer, ...) error
- func SignupWithBrowser(out output.Outputer, auth *authentication.Auth, prompt prompt.Prompter, ...) error
Constants ¶
This section is empty.
Variables ¶
var OpenURI = osutils.OpenURI
OpenURI aliases to osutils.OpenURI which opens the given URI in your browser. This is being exposed so that it can be overwritten in tests
Functions ¶
func Authenticate ¶
func Authenticate(cfg keypairs.Configurable, out output.Outputer, prompt prompt.Prompter, auth *authentication.Auth) error
Authenticate will prompt the user for authentication
func AuthenticateWithBrowser ¶
func AuthenticateWithBrowser(out output.Outputer, auth *authentication.Auth, prompt prompt.Prompter, cfg keypairs.Configurable) error
AuthenticateWithBrowser attempts to authenticate this device with the Platform.
func AuthenticateWithCredentials ¶
func AuthenticateWithCredentials(credentials *mono_models.Credentials, auth *authentication.Auth) error
AuthenticateWithCredentials will attempt authenticate using the given credentials
func AuthenticateWithInput ¶
func AuthenticateWithInput( username, password, totp string, cfg keypairs.Configurable, out output.Outputer, prompt prompt.Prompter, auth *authentication.Auth, ) error
AuthenticateWithInput will prompt the user for authentication if the input doesn't already provide it
func AuthenticateWithToken ¶
func AuthenticateWithToken(token string, auth *authentication.Auth) error
AuthenticateWithToken will try to authenticate with the provided token
func RequireAuthentication ¶
func RequireAuthentication(message string, cfg keypairs.Configurable, out output.Outputer, prompt prompt.Prompter, auth *authentication.Auth) error
RequireAuthentication will prompt the user for authentication if they are not already authenticated. If the authentication is not successful it will return a failure
func SignupWithBrowser ¶
func SignupWithBrowser(out output.Outputer, auth *authentication.Auth, prompt prompt.Prompter, cfg keypairs.Configurable) error
Types ¶
This section is empty.