pluginloginui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyAuthCompleteMsg

type APIKeyAuthCompleteMsg struct{}

APIKeyAuthCompleteMsg signals completion of API key authentication.

type APIKeyAuthErrorMsg

type APIKeyAuthErrorMsg struct {
	Err error
}

APIKeyAuthErrorMsg signals an error during API key authentication.

type APIKeyFormModel

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

APIKeyFormModel handles the API key input form.

func NewAPIKeyFormModel

func NewAPIKeyFormModel(registryHost string, styles *stylespkg.Styles) *APIKeyFormModel

NewAPIKeyFormModel creates a new API key input form.

func (APIKeyFormModel) Init

func (m APIKeyFormModel) Init() tea.Cmd

func (APIKeyFormModel) Update

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

func (APIKeyFormModel) View

func (m APIKeyFormModel) View() string

type APIKeyInputCompleteMsg

type APIKeyInputCompleteMsg struct {
	APIKey string
}

APIKeyInputCompleteMsg signals the user completed API key input.

type AuthTypeFormModel

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

AuthTypeFormModel handles the auth type selection form when multiple auth types are supported.

func NewAuthTypeFormModel

func NewAuthTypeFormModel(
	registryHost string,
	supportedTypes []registries.AuthType,
	styles *stylespkg.Styles,
) *AuthTypeFormModel

NewAuthTypeFormModel creates a new auth type selection form.

func (AuthTypeFormModel) Init

func (m AuthTypeFormModel) Init() tea.Cmd

func (AuthTypeFormModel) Update

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

func (AuthTypeFormModel) View

func (m AuthTypeFormModel) View() string

type AuthTypeSelectedMsg

type AuthTypeSelectedMsg struct {
	AuthType registries.AuthType
}

AuthTypeSelectedMsg signals the user selected an auth type.

type LoginAppOptions

type LoginAppOptions struct {
	RegistryHost           string
	Styles                 *stylespkg.Styles
	Headless               bool
	HeadlessWriter         io.Writer
	DiscoveryClient        *registries.ServiceDiscoveryClient
	APIKeyStore            *registries.APIKeyCredentialStore
	OAuth2ClientCredsStore *registries.OAuth2ClientCredsStore
	OAuth2AuthCodeAuth     *registries.OAuth2AuthCodeAuthenticator
}

LoginAppOptions contains options for creating a new login app.

type MainModel

type MainModel struct {
	Error error
	// contains filtered or unexported fields
}

MainModel is the main model for the plugin login TUI.

func NewLoginApp

func NewLoginApp(ctx context.Context, opts LoginAppOptions) (*MainModel, error)

NewLoginApp creates a new plugin login TUI application.

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (MainModel) Update

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

func (MainModel) View

func (m MainModel) View() string

type OAuth2AuthCodeCompleteMsg

type OAuth2AuthCodeCompleteMsg struct {
	Result *registries.AuthCodeResult
}

OAuth2AuthCodeCompleteMsg signals completion of OAuth2 authorization code authentication.

type OAuth2AuthCodeErrorMsg

type OAuth2AuthCodeErrorMsg struct {
	Err error
}

OAuth2AuthCodeErrorMsg signals an error during OAuth2 authorization code authentication.

type OAuth2AuthCodeViewModel

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

OAuth2AuthCodeViewModel shows the browser authorization progress.

func NewOAuth2AuthCodeViewModel

func NewOAuth2AuthCodeViewModel(registryHost string, styles *stylespkg.Styles) *OAuth2AuthCodeViewModel

NewOAuth2AuthCodeViewModel creates a new OAuth2 authorization code view model.

func (OAuth2AuthCodeViewModel) Init

func (m OAuth2AuthCodeViewModel) Init() tea.Cmd

func (OAuth2AuthCodeViewModel) Update

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

func (OAuth2AuthCodeViewModel) View

type OAuth2ClientCredsAuthCompleteMsg

type OAuth2ClientCredsAuthCompleteMsg struct{}

OAuth2ClientCredsAuthCompleteMsg signals completion of OAuth2 client credentials authentication.

type OAuth2ClientCredsAuthErrorMsg

type OAuth2ClientCredsAuthErrorMsg struct {
	Err error
}

OAuth2ClientCredsAuthErrorMsg signals an error during OAuth2 client credentials authentication.

type OAuth2ClientCredsFormModel

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

OAuth2ClientCredsFormModel handles the OAuth2 client credentials input form.

func NewOAuth2ClientCredsFormModel

func NewOAuth2ClientCredsFormModel(registryHost string, styles *stylespkg.Styles) *OAuth2ClientCredsFormModel

NewOAuth2ClientCredsFormModel creates a new OAuth2 client credentials input form.

func (OAuth2ClientCredsFormModel) Init

func (OAuth2ClientCredsFormModel) Update

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

func (OAuth2ClientCredsFormModel) View

type OAuth2ClientCredsInputCompleteMsg

type OAuth2ClientCredsInputCompleteMsg struct {
	ClientId     string
	ClientSecret string
}

OAuth2ClientCredsInputCompleteMsg signals the user completed OAuth2 client credentials input.

type ServiceDiscoveryCompleteMsg

type ServiceDiscoveryCompleteMsg struct {
	AuthConfig *registries.AuthV1Config
}

ServiceDiscoveryCompleteMsg signals completion of service discovery.

type ServiceDiscoveryErrorMsg

type ServiceDiscoveryErrorMsg struct {
	Err error
}

ServiceDiscoveryErrorMsg signals an error during service discovery.

Jump to

Keyboard shortcuts

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