Documentation
¶
Overview ¶
Package secrets encrypts project secret values before they reach SQLite.
Index ¶
- type Manager
- func (m *Manager) Delete(ctx context.Context, secretID string) error
- func (m *Manager) DeleteEnvironment(ctx context.Context, secretID string) error
- func (m *Manager) List(ctx context.Context, projectID string) ([]store.Secret, error)
- func (m *Manager) ResolveForJob(ctx context.Context, jobID string) (map[string]string, error)
- func (m *Manager) ResolveProject(ctx context.Context, projectID string) (map[string]string, error)
- func (m *Manager) Upsert(ctx context.Context, projectID, name, value string) (store.Secret, error)
- func (m *Manager) UpsertEnvironment(ctx context.Context, environmentID, name, value string) (store.EnvironmentSecret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) DeleteEnvironment ¶
func (*Manager) ResolveForJob ¶
ResolveForEnvironment merges project values with approved environment values. The narrower environment scope deliberately wins on duplicate names.
func (*Manager) ResolveProject ¶
ResolveProject decrypts values only for the worker process. Callers must not serialize the returned map or persist it in a run snapshot.
func (*Manager) UpsertEnvironment ¶
Click to show internal directories.
Click to hide internal directories.