vaultpostgresdatabases

package
v1.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 New

func New(db postgres.DB, encryptor cryptoutil.Encryptor) *Repo

func (*Repo) Create

func (r *Repo) Create(
	ctx context.Context, vaultID, postgresInstanceID uuid.UUID, dbName, roleUsername string, rolePasswordPlain []byte,
) (domain.VaultPostgresDatabase, error)

func (*Repo) Delete

func (r *Repo) Delete(ctx context.Context, vaultID uuid.UUID) error

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) MarkError

func (r *Repo) MarkError(ctx context.Context, vaultID uuid.UUID, message string) error

func (*Repo) MarkReady

func (r *Repo) MarkReady(ctx context.Context, vaultID uuid.UUID) error

func (*Repo) WithTx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL