models

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 5 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 (
	SignInHeader = ui.Section{
		Name: "SignInHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Signin to Anchor.dev %s", ui.Whisper("`anchor auth signin`"))),
		},
	}

	SignInHint = ui.Section{
		Name: "SignInHint",
		Model: ui.MessageLines{
			ui.StepHint("Please sign up or sign in with your Anchor account."),
		},
	}
)
View Source
var (
	SignOutHeader = ui.Section{
		Name: "SignOutHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Signout from Anchor.dev %s", ui.Whisper("`anchor auth signout`"))),
		},
	}

	SignOutSignedOut = ui.Section{
		Name: "SignOutSignedOut",
		Model: ui.MessageLines{
			ui.StepDone("Not signed in."),
			ui.StepHint("Run `anchor auth signin` to sign in."),
		},
	}

	SignOutSuccess = ui.Section{
		Name: "SignOutSuccess",
		Model: ui.MessageLines{
			ui.StepDone("Signed out."),
		},
	}
)
View Source
var WhoAmIHeader = ui.Section{
	Name: "WhoAmIHeader",
	Model: ui.MessageLines{
		ui.Header(fmt.Sprintf("Identify Current Anchor.dev Account %s", ui.Whisper("`anchor auth whoami`"))),
	},
}

Functions

This section is empty.

Types

type AuditAuthenticationWhoami added in v0.0.11

type AuditAuthenticationWhoami string

type Client added in v0.0.11

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

func (*Client) Init added in v0.0.11

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

func (*Client) Update added in v0.0.11

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

func (*Client) View added in v0.0.11

func (m *Client) View() string

type ClientProbed added in v0.0.11

type ClientProbed bool

type ClientTested added in v0.0.11

type ClientTested bool

type KeyringUnavailable added in v0.0.30

type KeyringUnavailable struct {
	ShowGnomeKeyringHint bool
}

func (*KeyringUnavailable) Init added in v0.0.30

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

func (*KeyringUnavailable) Update added in v0.0.30

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

func (*KeyringUnavailable) View added in v0.0.30

func (m *KeyringUnavailable) View() string

type SignInChecker

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

func (*SignInChecker) Init

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

func (*SignInChecker) Update

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

func (*SignInChecker) View

func (m *SignInChecker) View() string

type SignInPrompt

type SignInPrompt struct {
	ConfirmCh       chan<- struct{}
	InClipboard     bool
	UserCode        string
	VerificationURL string
}

func (SignInPrompt) Init

func (SignInPrompt) Init() tea.Cmd

func (*SignInPrompt) Update

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

func (*SignInPrompt) View

func (m *SignInPrompt) View() string

type UserSignInMsg

type UserSignInMsg string

type UserWhoAmIMsg added in v0.0.23

type UserWhoAmIMsg string

type UserWhoAmISignedOutMsg added in v0.0.37

type UserWhoAmISignedOutMsg bool

type WhoAmIChecker added in v0.0.23

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

func (*WhoAmIChecker) Init added in v0.0.23

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

func (*WhoAmIChecker) Update added in v0.0.23

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

func (*WhoAmIChecker) View added in v0.0.23

func (m *WhoAmIChecker) View() string

Jump to

Keyboard shortcuts

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