login

package
v1.148.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptAccessToken added in v1.50.15

func PromptAccessToken(stdin *os.File) string

func Run

func Run(ctx context.Context, stdout *os.File, params RunParams) error

func RunOpenCmd added in v1.115.4

func RunOpenCmd(ctx context.Context, input string) error

Types

type AccessTokenResponse added in v1.114.0

type AccessTokenResponse struct {
	SessionId   string `json:"id"`
	CreatedAt   string `json:"created_at"`
	AccessToken string `json:"access_token"`
	PublicKey   string `json:"public_key"`
	Nonce       string `json:"nonce"`
}

type LoginEncryption added in v1.114.0

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

func NewLoginEncryption added in v1.114.0

func NewLoginEncryption() (LoginEncryption, error)

type LoginEncryptor added in v1.114.0

type LoginEncryptor interface {
	// contains filtered or unexported methods
}

type RunParams added in v1.114.0

type RunParams struct {
	Token       string
	TokenName   string
	OpenBrowser bool
	SessionId   string
	Encryption  LoginEncryptor
	Fsys        afero.Fs
}

Jump to

Keyboard shortcuts

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