Documentation
¶
Index ¶
- type Repo
- func (r *Repo) Create(ctx context.Context, vaultID, postgresInstanceID uuid.UUID, ...) (domain.VaultPostgresDatabase, error)
- func (r *Repo) Delete(ctx context.Context, vaultID uuid.UUID) error
- func (r *Repo) GetByVaultID(ctx context.Context, vaultID uuid.UUID) (sql.Null[domain.VaultPostgresDatabase], error)
- func (r *Repo) MarkError(ctx context.Context, vaultID uuid.UUID, message string) error
- func (r *Repo) MarkReady(ctx context.Context, vaultID uuid.UUID) error
- func (r *Repo) WithTx(tx postgres.DB) repository.VaultPostgresDatabases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) GetByVaultID ¶
func (r *Repo) GetByVaultID(ctx context.Context, vaultID uuid.UUID) (sql.Null[domain.VaultPostgresDatabase], error)
GetByVaultID returns Valid: false when vaultID has no Postgres database provisioned — see repository.VaultPostgresDatabases.GetByVaultID.
func (*Repo) WithTx ¶
func (r *Repo) WithTx(tx postgres.DB) repository.VaultPostgresDatabases
Click to show internal directories.
Click to hide internal directories.