Documentation
¶
Index ¶
- type AIProviderAPIKeyPatch
- type SecretsStore
- func (s *SecretsStore) ApplyAIProviderAPIKeyPatches(patches []AIProviderAPIKeyPatch) error
- func (s *SecretsStore) ApplyWebSearchProviderAPIKeyPatches(patches []WebSearchProviderAPIKeyPatch) error
- func (s *SecretsStore) ClearAIProviderAPIKey(providerID string) error
- func (s *SecretsStore) GetAIProviderAPIKey(providerID string) (string, bool, error)
- func (s *SecretsStore) GetAIProviderAPIKeySet(providerIDs []string) (map[string]bool, error)
- func (s *SecretsStore) GetWebSearchProviderAPIKey(providerID string) (string, bool, error)
- func (s *SecretsStore) GetWebSearchProviderAPIKeySet(providerIDs []string) (map[string]bool, error)
- func (s *SecretsStore) HasAIProviderAPIKey(providerID string) (bool, error)
- func (s *SecretsStore) HasWebSearchProviderAPIKey(providerID string) (bool, error)
- func (s *SecretsStore) ListAIProviderAPIKeyIDs() ([]string, error)
- func (s *SecretsStore) ListWebSearchProviderAPIKeyIDs() ([]string, error)
- func (s *SecretsStore) Path() string
- func (s *SecretsStore) SetAIProviderAPIKey(providerID string, apiKey string) error
- type WebSearchProviderAPIKeyPatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIProviderAPIKeyPatch ¶
type SecretsStore ¶
type SecretsStore struct {
// contains filtered or unexported fields
}
SecretsStore persists user-managed secrets to a local file.
It is intentionally separate from config.json: - config.json contains runtime metadata and the runtime-managed one-shot control artifact pool - secrets.json contains user-provided provider keys
Secrets must never be returned back to the UI in plaintext. The UI should only see derived status fields such as "api_key_set".
func NewSecretsStore ¶
func NewSecretsStore(path string) *SecretsStore
func (*SecretsStore) ApplyAIProviderAPIKeyPatches ¶
func (s *SecretsStore) ApplyAIProviderAPIKeyPatches(patches []AIProviderAPIKeyPatch) error
func (*SecretsStore) ApplyWebSearchProviderAPIKeyPatches ¶
func (s *SecretsStore) ApplyWebSearchProviderAPIKeyPatches(patches []WebSearchProviderAPIKeyPatch) error
func (*SecretsStore) ClearAIProviderAPIKey ¶
func (s *SecretsStore) ClearAIProviderAPIKey(providerID string) error
func (*SecretsStore) GetAIProviderAPIKey ¶
func (s *SecretsStore) GetAIProviderAPIKey(providerID string) (string, bool, error)
func (*SecretsStore) GetAIProviderAPIKeySet ¶
func (s *SecretsStore) GetAIProviderAPIKeySet(providerIDs []string) (map[string]bool, error)
func (*SecretsStore) GetWebSearchProviderAPIKey ¶
func (s *SecretsStore) GetWebSearchProviderAPIKey(providerID string) (string, bool, error)
func (*SecretsStore) GetWebSearchProviderAPIKeySet ¶
func (s *SecretsStore) GetWebSearchProviderAPIKeySet(providerIDs []string) (map[string]bool, error)
func (*SecretsStore) HasAIProviderAPIKey ¶
func (s *SecretsStore) HasAIProviderAPIKey(providerID string) (bool, error)
func (*SecretsStore) HasWebSearchProviderAPIKey ¶
func (s *SecretsStore) HasWebSearchProviderAPIKey(providerID string) (bool, error)
func (*SecretsStore) ListAIProviderAPIKeyIDs ¶ added in v0.7.1
func (s *SecretsStore) ListAIProviderAPIKeyIDs() ([]string, error)
func (*SecretsStore) ListWebSearchProviderAPIKeyIDs ¶ added in v0.7.1
func (s *SecretsStore) ListWebSearchProviderAPIKeyIDs() ([]string, error)
func (*SecretsStore) Path ¶
func (s *SecretsStore) Path() string
func (*SecretsStore) SetAIProviderAPIKey ¶
func (s *SecretsStore) SetAIProviderAPIKey(providerID string, apiKey string) error
Click to show internal directories.
Click to hide internal directories.