settoken

package
v2.53.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(param *Param, term Terminal, tokenManager TokenManager) *Controller

func (*Controller) Set

func (c *Controller) Set(logE *logrus.Entry) error

type Param

type Param struct {
	IsStdin bool
	Stdin   io.Reader
}

type PasswordReader

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

func NewPasswordReader

func NewPasswordReader(stdout io.Writer) *PasswordReader

func (*PasswordReader) ReadPassword

func (p *PasswordReader) ReadPassword() ([]byte, error)

type Terminal

type Terminal interface {
	ReadPassword() ([]byte, error)
}

type TokenManager

type TokenManager interface {
	Set(token string) error
}

Jump to

Keyboard shortcuts

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