Documentation
¶
Index ¶
- type DBLite
- type DBMigrator
- type DBSecret
- type DBSpec
- type IDBMigrator
- type PostgresMigrateWorker
- func (d *PostgresMigrateWorker) CleanupPostgresDatabase(ctx context.Context, msg *awsinfra_tpb.CleanupPostgresDatabaseMessage) (*emptypb.Empty, error)
- func (d *PostgresMigrateWorker) DestroyPostgresDatabase(ctx context.Context, msg *awsinfra_tpb.DestroyPostgresDatabaseMessage) (*emptypb.Empty, error)
- func (d *PostgresMigrateWorker) UpsertPostgresDatabase(ctx context.Context, msg *awsinfra_tpb.UpsertPostgresDatabaseMessage) (*emptypb.Empty, error)
- type RDSAuthProvider
- type SecretsManagerAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBLite ¶
type DBLite interface { PublishEvent(context.Context, o5msg.Message) error RequestToClientToken(context.Context, *messaging_j5pb.RequestMetadata) (string, error) ClientTokenToRequest(context.Context, string) (*messaging_j5pb.RequestMetadata, error) }
type DBMigrator ¶
type DBMigrator struct {
// contains filtered or unexported fields
}
func NewDBMigrator ¶
func NewDBMigrator(client SecretsManagerAPI, creds RDSAuthProvider) *DBMigrator
func (*DBMigrator) CleanupPostgresDatabase ¶
func (d *DBMigrator) CleanupPostgresDatabase(ctx context.Context, migrationID string, msg *awsinfra_tpb.CleanupPostgresDatabaseMessage) error
func (*DBMigrator) DestroyPostgresDatabase ¶
func (d *DBMigrator) DestroyPostgresDatabase(ctx context.Context, migrationID string, msg *awsinfra_tpb.DestroyPostgresDatabaseMessage) error
func (*DBMigrator) UpsertPostgresDatabase ¶
func (d *DBMigrator) UpsertPostgresDatabase(ctx context.Context, migrationID string, msg *awsinfra_tpb.UpsertPostgresDatabaseMessage) error
type IDBMigrator ¶
type IDBMigrator interface { UpsertPostgresDatabase(ctx context.Context, migrationID string, msg *awsinfra_tpb.UpsertPostgresDatabaseMessage) error CleanupPostgresDatabase(ctx context.Context, migrationID string, msg *awsinfra_tpb.CleanupPostgresDatabaseMessage) error DestroyPostgresDatabase(ctx context.Context, migrationID string, msg *awsinfra_tpb.DestroyPostgresDatabaseMessage) error }
type PostgresMigrateWorker ¶
type PostgresMigrateWorker struct { awsinfra_tpb.UnimplementedPostgresRequestTopicServer // contains filtered or unexported fields }
func NewPostgresMigrateWorker ¶
func NewPostgresMigrateWorker(db DBLite, migrator IDBMigrator) *PostgresMigrateWorker
func (*PostgresMigrateWorker) CleanupPostgresDatabase ¶
func (d *PostgresMigrateWorker) CleanupPostgresDatabase(ctx context.Context, msg *awsinfra_tpb.CleanupPostgresDatabaseMessage) (*emptypb.Empty, error)
func (*PostgresMigrateWorker) DestroyPostgresDatabase ¶
func (d *PostgresMigrateWorker) DestroyPostgresDatabase(ctx context.Context, msg *awsinfra_tpb.DestroyPostgresDatabaseMessage) (*emptypb.Empty, error)
func (*PostgresMigrateWorker) UpsertPostgresDatabase ¶
func (d *PostgresMigrateWorker) UpsertPostgresDatabase(ctx context.Context, msg *awsinfra_tpb.UpsertPostgresDatabaseMessage) (*emptypb.Empty, error)
type RDSAuthProvider ¶
type SecretsManagerAPI ¶
type SecretsManagerAPI interface { GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error) UpdateSecret(ctx context.Context, params *secretsmanager.UpdateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.UpdateSecretOutput, error) DescribeSecret(ctx context.Context, params *secretsmanager.DescribeSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.DescribeSecretOutput, error) }
Click to show internal directories.
Click to hide internal directories.