auth_ui

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginEmail  = 0
	LoginSSO    = 1
	LoginCancel = 2
)

Variables

View Source
var (
	ErrNotURLSafe = errors.New("not a valid url safe string")
	ErrRequired   = errors.New("can not be empty")
)

Functions

func Sanitize added in v2.5.0

func Sanitize(workspace string) (string, error)

Types

type CLI

type CLI struct{}

CLI is the archaic fallback UI for auth.

func (*CLI) RequestEmail added in v2.5.0

func (cl *CLI) RequestEmail(w io.Writer) (string, error)

func (*CLI) RequestLoginType added in v2.5.0

func (cl *CLI) RequestLoginType(w io.Writer) (int, error)

func (*CLI) RequestPassword added in v2.5.0

func (cl *CLI) RequestPassword(w io.Writer, account string) (string, error)

func (*CLI) RequestWorkspace

func (cl *CLI) RequestWorkspace(w io.Writer) (string, error)

func (*CLI) Stop

func (*CLI) Stop()

type Huh added in v2.5.0

type Huh struct {
	// contains filtered or unexported fields
}

func (*Huh) RequestCreds added in v2.5.1

func (*Huh) RequestCreds(w io.Writer, workspace string) (email string, passwd string, err error)

func (*Huh) RequestLoginType added in v2.5.0

func (*Huh) RequestLoginType(w io.Writer) (int, error)

func (*Huh) RequestWorkspace added in v2.5.0

func (*Huh) RequestWorkspace(w io.Writer) (string, error)

func (*Huh) Stop added in v2.5.0

func (*Huh) Stop()

Jump to

Keyboard shortcuts

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