| 13 | ) |
| 14 | |
| 15 | type SecretStorage struct { |
| 16 | ID int `db:"id" json:"id" backup:"-"` |
| 17 | ProjectID int `db:"project_id" json:"project_id" backup:"-"` |
| 18 | Name string `db:"name" json:"name"` |
| 19 | Type SecretStorageType `db:"type" json:"type"` |
| 20 | Params MapStringAnyField `db:"params" json:"params"` |
| 21 | ReadOnly bool `db:"readonly" json:"readonly"` |
| 22 | |
| 23 | // Sync fields are transfer-only; persisted in project__secret_sync. |
| 24 | SyncEnabled bool `db:"-" json:"sync_enabled" backup:"sync_enabled"` |
| 25 | SyncInterval int `db:"-" json:"sync_interval" backup:"sync_interval"` |
| 26 | LastSyncedAt *time.Time `db:"-" json:"last_synced_at,omitempty" backup:"-"` |
| 27 | LastSyncFailedAt *time.Time `db:"-" json:"last_sync_failed_at,omitempty" backup:"-"` |
| 28 | SyncPaths []SecretSyncPath `db:"-" json:"sync_paths" backup:"-"` |
| 29 | |
| 30 | SourceStorageType *AccessKeySourceStorageType `db:"-" json:"source_storage_type,omitempty" backup:"-"` |
| 31 | // Secret is a source value: literal secret for local storage, |
| 32 | // env var name for "env", or file path for "file". |
| 33 | Secret string `db:"-" json:"secret,omitempty" backup:"-"` |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected