interactive

package
v0.0.0-...-eda659f Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AsAMachine = "as a machine"
	AsAUser    = "as a user"
)

Functions

This section is empty.

Types

type AuthenticateState

type AuthenticateState int

AuthenticateState represents the current state of the authentication process

const (
	StateNotStarted AuthenticateState = iota
	StateClientCredentialsInProgress
	StateClientCredentialsCompleted
	StateClientCredentialsError
	StateDeviceFlowInitiated
	StateDeviceFlowCodeReceived
	StateDeviceFlowError
	StateDeviceFlowBrowserWait
	StateDeviceFlowBrowserCompleted
	StateDeviceFlowBrowserError
	StateDeviceFlowCompleted
)

Constants for different authentication states

type LoginModel

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

func NewLoginModel

func NewLoginModel(cli *core.CLI) *LoginModel

NewLoginModel creates and initializes a new LoginModel

func (*LoginModel) GetOutputValue

func (m *LoginModel) GetOutputValue() models.OutputResult

func (*LoginModel) Init

func (m *LoginModel) Init() tea.Cmd

func (*LoginModel) NextQuestion

func (m *LoginModel) NextQuestion()

func (*LoginModel) Update

func (m *LoginModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*LoginModel) View

func (m *LoginModel) View() string

View renders the current view of the model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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