Documentation
¶
Index ¶
- func LoadEnvToken() string
- type CredentialStore
- type FileStore
- type KeychainStore
- type LoginInput
- type LoginResult
- type ProfileSummary
- type ResolveInput
- type ResolvedAuth
- type Service
- func (s Service) Export(input ResolveInput) (map[string]string, error)
- func (s Service) ListProfiles() ([]ProfileSummary, error)
- func (s Service) Logout(profileName string) error
- func (s Service) Resolve(input ResolveInput) (*ResolvedAuth, error)
- func (s Service) SaveLogin(input LoginInput) (LoginResult, error)
- func (s Service) Status(profileName string) (StatusResult, error)
- func (s Service) UseProfile(profileName string) (ProfileSummary, error)
- type StatusResult
- type StoredCredential
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEnvToken ¶
func LoadEnvToken() string
Types ¶
type CredentialStore ¶
type KeychainStore ¶
type KeychainStore struct{}
func (KeychainStore) Load ¶
func (s KeychainStore) Load(profile config.Profile) (*StoredCredential, error)
type LoginInput ¶
type LoginInput struct {
ProfileName string
Environment string
APIKey string
StorageMode config.StorageMode
}
type LoginResult ¶
type ProfileSummary ¶
type ProfileSummary struct {
Profile config.Profile `json:"profile"`
IsDefault bool `json:"is_default"`
FileCredentialAvailable bool `json:"file_credential_available"`
KeychainCredentialAvail bool `json:"keychain_credential_available"`
PreferredRuntimeSource string `json:"preferred_runtime_source,omitempty"`
MCPReady bool `json:"mcp_ready"`
CredentialError string `json:"credential_error,omitempty"`
Warnings []string `json:"warnings,omitempty"`
}
type ResolveInput ¶
type ResolvedAuth ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() Service
func (Service) ListProfiles ¶
func (s Service) ListProfiles() ([]ProfileSummary, error)
func (Service) Resolve ¶
func (s Service) Resolve(input ResolveInput) (*ResolvedAuth, error)
func (Service) SaveLogin ¶
func (s Service) SaveLogin(input LoginInput) (LoginResult, error)
func (Service) UseProfile ¶
func (s Service) UseProfile(profileName string) (ProfileSummary, error)
type StatusResult ¶
type StatusResult struct {
Profile config.Profile `json:"profile"`
FileCredentialAvailable bool `json:"file_credential_available"`
KeychainCredentialAvail bool `json:"keychain_credential_available"`
PreferredRuntimeSource string `json:"preferred_runtime_source,omitempty"`
MCPReady bool `json:"mcp_ready"`
CredentialError string `json:"credential_error,omitempty"`
Warnings []string `json:"warnings,omitempty"`
}
type StoredCredential ¶
Click to show internal directories.
Click to hide internal directories.