Documentation
¶
Index ¶
- type APIKeyAuthCompleteMsg
- type APIKeyAuthErrorMsg
- type APIKeyFormModel
- type APIKeyInputCompleteMsg
- type AuthTypeFormModel
- type AuthTypeSelectedMsg
- type LoginAppOptions
- type MainModel
- type OAuth2AuthCodeCompleteMsg
- type OAuth2AuthCodeErrorMsg
- type OAuth2AuthCodeViewModel
- type OAuth2ClientCredsAuthCompleteMsg
- type OAuth2ClientCredsAuthErrorMsg
- type OAuth2ClientCredsFormModel
- type OAuth2ClientCredsInputCompleteMsg
- type ServiceDiscoveryCompleteMsg
- type ServiceDiscoveryErrorMsg
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) 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) 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.
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) View ¶
func (m OAuth2AuthCodeViewModel) View() string
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 (m OAuth2ClientCredsFormModel) Init() tea.Cmd
func (OAuth2ClientCredsFormModel) View ¶
func (m OAuth2ClientCredsFormModel) View() string
type OAuth2ClientCredsInputCompleteMsg ¶
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.