auth

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CmdAuthSignin = cli.NewCmd[SignIn](CmdAuth, "signin", func(cmd *cobra.Command) {})

	ErrSigninFailed = errors.New("sign in failed")
)
View Source
var CmdAuth = cli.NewCmd[cli.ShowHelp](cli.CmdRoot, "auth", func(cmd *cobra.Command) {})
View Source
var CmdAuthSignout = cli.NewCmd[SignOut](CmdAuth, "signout", func(cmd *cobra.Command) {})
View Source
var CmdAuthWhoami = cli.NewCmd[WhoAmI](CmdAuth, "whoami", func(cmd *cobra.Command) {})

Functions

This section is empty.

Types

type Client added in v0.0.11

type Client struct {
	Anc    *api.Session
	Hint   tea.Model
	Source string
}

func (Client) Perform added in v0.0.11

func (c Client) Perform(ctx context.Context, drv *ui.Driver) (*api.Session, error)

type SignIn

type SignIn struct {
	Source string

	Hint tea.Model
}

func (*SignIn) RunTUI added in v0.0.8

func (s *SignIn) RunTUI(ctx context.Context, drv *ui.Driver) error

func (SignIn) UI added in v0.0.8

func (s SignIn) UI() cli.UI

type SignOut

type SignOut struct{}

func (SignOut) UI added in v0.0.8

func (s SignOut) UI() cli.UI

type WhoAmI

type WhoAmI struct{}

func (WhoAmI) UI added in v0.0.8

func (c WhoAmI) UI() cli.UI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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