auth

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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