auth

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags = []cli.Flag{
	&cli.BoolWithInverseFlag{
		BoolFlag: &cli.BoolFlag{
			Name:  "i",
			Usage: "Shows interactive prompt for username and password",
		},
	},
	&cli.StringFlag{
		Name:    "username",
		Usage:   "Name of the root user",
		Value:   "root",
		Sources: cli.EnvVars("VINCE_ROOT_USER"),
	},
	&cli.StringFlag{
		Name:    "password",
		Usage:   "password of the root user",
		Value:   "vince",
		Sources: cli.EnvVars("VINCE_ROOT_PASSWORD"),
	},
}

Functions

func Account added in v0.0.26

func Account() (token string, api string)

func Instance added in v0.0.30

func Instance() (api string)

func Load

func Load(ctx *cli.Context) (name, passwd string)

func LoadClient

func LoadClient() (client *configv1.Client, file string)

func Prompt

func Prompt() (name, passwd string)

func Save added in v0.0.30

func Save(w *ansi.W, client *configv1.Client, file string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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