Documentation
¶
Index ¶
- Constants
- func Definition() addon.AddonDefinition
- func IsSharedVariant(variantName string) bool
- func RegisterDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *resultCapture) error
- func RegisterDeprovisionDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
- func RegisterDeprovisionSharedSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
- func RegisterEnsureSharedServerSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
- func RegisterSharedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *resultCapture) error
- func UndoActivateSharedServer(ctx context.Context, in ActivateSharedServerIn, out ActivateSharedServerOut) error
- func UndoBuildDedicatedResult(ctx context.Context, in BuildDedicatedResultIn, out BuildDedicatedResultOut) error
- func UndoBuildSharedResult(ctx context.Context, in BuildSharedResultIn, out BuildSharedResultOut) error
- func UndoCleanupSharedServer(ctx context.Context, in CleanupSharedServerIn, out CleanupSharedServerOut) error
- func UndoCreateDedicatedPool(ctx context.Context, in CreateDedicatedPoolIn, out CreateDedicatedPoolOut) error
- func UndoCreateDedicatedService(ctx context.Context, in CreateDedicatedServiceIn, ...) error
- func UndoCreatePostgresServer(ctx context.Context, in CreatePostgresServerIn, out CreatePostgresServerOut) error
- func UndoCreateSharedDatabase(ctx context.Context, in CreateSharedDatabaseIn, out CreateSharedDatabaseOut) error
- func UndoCreateSharedPool(ctx context.Context, in CreateSharedPoolIn, out CreateSharedPoolOut) error
- func UndoCreateSharedServerEntity(ctx context.Context, in CreateSharedServerEntityIn, ...) error
- func UndoCreateSharedService(ctx context.Context, in CreateSharedServiceIn, out CreateSharedServiceOut) error
- func UndoCreateSharedUser(ctx context.Context, in CreateSharedUserIn, out CreateSharedUserOut) error
- func UndoDecodeDedicatedAttrs(ctx context.Context, in DecodeDedicatedAttrsIn, out DecodeDedicatedAttrsOut) error
- func UndoDecodeSharedAttrs(ctx context.Context, in DecodeSharedAttrsIn, out DecodeSharedAttrsOut) error
- func UndoDecrementAssociationCount(ctx context.Context, in DecrementAssociationCountIn, ...) error
- func UndoDeleteDedicatedPool(ctx context.Context, in DeleteDedicatedPoolIn, out DeleteDedicatedPoolOut) error
- func UndoDeleteDedicatedServerEntity(ctx context.Context, in DeleteDedicatedServerEntityIn, ...) error
- func UndoDeleteDedicatedService(ctx context.Context, in DeleteDedicatedServiceIn, ...) error
- func UndoDropSharedDatabase(ctx context.Context, in DropSharedDatabaseIn, out DropSharedDatabaseOut) error
- func UndoDropSharedUser(ctx context.Context, in DropSharedUserIn, out DropSharedUserOut) error
- func UndoFindOrCreateSharedServer(ctx context.Context, in FindOrCreateSharedServerIn, ...) error
- func UndoGenerateCredentials(ctx context.Context, in GenerateCredentialsIn, out GenerateCredentialsOut) error
- func UndoGenerateSharedCredentials(ctx context.Context, in GenerateSharedCredentialsIn, ...) error
- func UndoIncrementAssociationCount(ctx context.Context, in IncrementAssociationCountIn, ...) error
- func UndoLookupDedicatedServer(ctx context.Context, in LookupDedicatedServerIn, out LookupDedicatedServerOut) error
- func UndoLookupSharedServer(ctx context.Context, in LookupSharedServerIn, out LookupSharedServerOut) error
- func UndoTerminateConnections(ctx context.Context, in TerminateConnectionsIn, out TerminateConnectionsOut) error
- func UndoUpdateDedicatedServer(ctx context.Context, in UpdateDedicatedServerIn, out UpdateDedicatedServerOut) error
- func UndoWaitForDedicatedPool(ctx context.Context, in WaitForDedicatedPoolIn, out WaitForDedicatedPoolOut) error
- func UndoWaitForDedicatedService(ctx context.Context, in WaitForDedicatedServiceIn, ...) error
- func UndoWaitForSharedPool(ctx context.Context, in WaitForSharedPoolIn, out WaitForSharedPoolOut) error
- func UndoWaitForSharedService(ctx context.Context, in WaitForSharedServiceIn, out WaitForSharedServiceOut) error
- type ActivateSharedServerIn
- type ActivateSharedServerOut
- type BuildDedicatedResultIn
- type BuildDedicatedResultOut
- type BuildSharedResultIn
- type BuildSharedResultOut
- type CleanupSharedServerIn
- type CleanupSharedServerOut
- type CreateDedicatedPoolIn
- type CreateDedicatedPoolOut
- type CreateDedicatedServiceIn
- type CreateDedicatedServiceOut
- type CreatePostgresServerIn
- type CreatePostgresServerOut
- type CreateSharedDatabaseIn
- type CreateSharedDatabaseOut
- type CreateSharedPoolIn
- type CreateSharedPoolOut
- type CreateSharedServerEntityIn
- type CreateSharedServerEntityOut
- type CreateSharedServiceIn
- type CreateSharedServiceOut
- type CreateSharedUserIn
- type CreateSharedUserOut
- type DecodeDedicatedAttrsIn
- type DecodeDedicatedAttrsOut
- type DecodeSharedAttrsIn
- type DecodeSharedAttrsOut
- type DecrementAssociationCountIn
- type DecrementAssociationCountOut
- type DeleteDedicatedPoolIn
- type DeleteDedicatedPoolOut
- type DeleteDedicatedServerEntityIn
- type DeleteDedicatedServerEntityOut
- type DeleteDedicatedServiceIn
- type DeleteDedicatedServiceOut
- type DropSharedDatabaseIn
- type DropSharedDatabaseOut
- type DropSharedUserIn
- type DropSharedUserOut
- type FindOrCreateSharedServerIn
- type FindOrCreateSharedServerOut
- type GenerateCredentialsIn
- type GenerateCredentialsOut
- type GenerateSharedCredentialsIn
- type GenerateSharedCredentialsOut
- type IncrementAssociationCountIn
- type IncrementAssociationCountOut
- type LookupDedicatedServerIn
- type LookupDedicatedServerOut
- type LookupSharedServerIn
- type LookupSharedServerOut
- type Provider
- func (p *Provider) AdjustEnvVars(ctx context.Context, result *addon.ProvisionResult, ...) ([]addon.Variable, error)
- func (p *Provider) Deprovision(ctx context.Context, assoc addon.AddonAssociation) error
- func (p *Provider) Provision(ctx context.Context, app addon.App, variant addon.Variant) (*addon.ProvisionResult, error)
- type TerminateConnectionsIn
- type TerminateConnectionsOut
- type UpdateDedicatedServerIn
- type UpdateDedicatedServerOut
- type WaitForDedicatedPoolIn
- type WaitForDedicatedPoolOut
- type WaitForDedicatedServiceIn
- type WaitForDedicatedServiceOut
- type WaitForSharedPoolIn
- type WaitForSharedPoolOut
- type WaitForSharedServiceIn
- type WaitForSharedServiceOut
Constants ¶
const ( AddonName = "miren-postgresql" DefaultImage = "docker.io/library/postgres:17" )
const ( ConfigStorage = "storage" )
Variant configuration keys
Variables ¶
This section is empty.
Functions ¶
func Definition ¶
func Definition() addon.AddonDefinition
Definition returns the addon definition for PostgreSQL.
func IsSharedVariant ¶
IsSharedVariant returns true if the variant is a shared-server variant.
func RegisterDedicatedSaga ¶
func RegisterDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *resultCapture) error
RegisterDedicatedSaga registers the dedicated PostgreSQL provisioning saga.
func RegisterDeprovisionDedicatedSaga ¶
func RegisterDeprovisionDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
RegisterDeprovisionDedicatedSaga registers the dedicated deprovisioning saga.
func RegisterDeprovisionSharedSaga ¶
func RegisterDeprovisionSharedSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
RegisterDeprovisionSharedSaga registers the shared deprovisioning saga.
func RegisterEnsureSharedServerSaga ¶
func RegisterEnsureSharedServerSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
RegisterEnsureSharedServerSaga registers the saga that creates the shared PostgreSQL server infrastructure (entity, pool, service).
func RegisterSharedSaga ¶
func RegisterSharedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *resultCapture) error
RegisterSharedSaga registers the shared PostgreSQL provisioning saga. This also registers the nested ensure-shared-server saga in the same registry.
func UndoActivateSharedServer ¶
func UndoActivateSharedServer(ctx context.Context, in ActivateSharedServerIn, out ActivateSharedServerOut) error
func UndoBuildDedicatedResult ¶
func UndoBuildDedicatedResult(ctx context.Context, in BuildDedicatedResultIn, out BuildDedicatedResultOut) error
func UndoBuildSharedResult ¶
func UndoBuildSharedResult(ctx context.Context, in BuildSharedResultIn, out BuildSharedResultOut) error
func UndoCleanupSharedServer ¶
func UndoCleanupSharedServer(ctx context.Context, in CleanupSharedServerIn, out CleanupSharedServerOut) error
func UndoCreateDedicatedPool ¶
func UndoCreateDedicatedPool(ctx context.Context, in CreateDedicatedPoolIn, out CreateDedicatedPoolOut) error
func UndoCreateDedicatedService ¶
func UndoCreateDedicatedService(ctx context.Context, in CreateDedicatedServiceIn, out CreateDedicatedServiceOut) error
func UndoCreatePostgresServer ¶
func UndoCreatePostgresServer(ctx context.Context, in CreatePostgresServerIn, out CreatePostgresServerOut) error
func UndoCreateSharedDatabase ¶
func UndoCreateSharedDatabase(ctx context.Context, in CreateSharedDatabaseIn, out CreateSharedDatabaseOut) error
func UndoCreateSharedPool ¶
func UndoCreateSharedPool(ctx context.Context, in CreateSharedPoolIn, out CreateSharedPoolOut) error
func UndoCreateSharedServerEntity ¶
func UndoCreateSharedServerEntity(ctx context.Context, in CreateSharedServerEntityIn, out CreateSharedServerEntityOut) error
func UndoCreateSharedService ¶
func UndoCreateSharedService(ctx context.Context, in CreateSharedServiceIn, out CreateSharedServiceOut) error
func UndoCreateSharedUser ¶
func UndoCreateSharedUser(ctx context.Context, in CreateSharedUserIn, out CreateSharedUserOut) error
func UndoDecodeDedicatedAttrs ¶
func UndoDecodeDedicatedAttrs(ctx context.Context, in DecodeDedicatedAttrsIn, out DecodeDedicatedAttrsOut) error
func UndoDecodeSharedAttrs ¶
func UndoDecodeSharedAttrs(ctx context.Context, in DecodeSharedAttrsIn, out DecodeSharedAttrsOut) error
func UndoDecrementAssociationCount ¶
func UndoDecrementAssociationCount(ctx context.Context, in DecrementAssociationCountIn, out DecrementAssociationCountOut) error
func UndoDeleteDedicatedPool ¶
func UndoDeleteDedicatedPool(ctx context.Context, in DeleteDedicatedPoolIn, out DeleteDedicatedPoolOut) error
func UndoDeleteDedicatedServerEntity ¶
func UndoDeleteDedicatedServerEntity(ctx context.Context, in DeleteDedicatedServerEntityIn, out DeleteDedicatedServerEntityOut) error
func UndoDeleteDedicatedService ¶
func UndoDeleteDedicatedService(ctx context.Context, in DeleteDedicatedServiceIn, out DeleteDedicatedServiceOut) error
func UndoDropSharedDatabase ¶
func UndoDropSharedDatabase(ctx context.Context, in DropSharedDatabaseIn, out DropSharedDatabaseOut) error
func UndoDropSharedUser ¶
func UndoDropSharedUser(ctx context.Context, in DropSharedUserIn, out DropSharedUserOut) error
func UndoFindOrCreateSharedServer ¶
func UndoFindOrCreateSharedServer(ctx context.Context, in FindOrCreateSharedServerIn, out FindOrCreateSharedServerOut) error
func UndoGenerateCredentials ¶
func UndoGenerateCredentials(ctx context.Context, in GenerateCredentialsIn, out GenerateCredentialsOut) error
func UndoGenerateSharedCredentials ¶
func UndoGenerateSharedCredentials(ctx context.Context, in GenerateSharedCredentialsIn, out GenerateSharedCredentialsOut) error
func UndoIncrementAssociationCount ¶
func UndoIncrementAssociationCount(ctx context.Context, in IncrementAssociationCountIn, out IncrementAssociationCountOut) error
func UndoLookupDedicatedServer ¶
func UndoLookupDedicatedServer(ctx context.Context, in LookupDedicatedServerIn, out LookupDedicatedServerOut) error
func UndoLookupSharedServer ¶
func UndoLookupSharedServer(ctx context.Context, in LookupSharedServerIn, out LookupSharedServerOut) error
func UndoTerminateConnections ¶
func UndoTerminateConnections(ctx context.Context, in TerminateConnectionsIn, out TerminateConnectionsOut) error
func UndoUpdateDedicatedServer ¶
func UndoUpdateDedicatedServer(ctx context.Context, in UpdateDedicatedServerIn, out UpdateDedicatedServerOut) error
func UndoWaitForDedicatedPool ¶
func UndoWaitForDedicatedPool(ctx context.Context, in WaitForDedicatedPoolIn, out WaitForDedicatedPoolOut) error
func UndoWaitForDedicatedService ¶
func UndoWaitForDedicatedService(ctx context.Context, in WaitForDedicatedServiceIn, out WaitForDedicatedServiceOut) error
func UndoWaitForSharedPool ¶
func UndoWaitForSharedPool(ctx context.Context, in WaitForSharedPoolIn, out WaitForSharedPoolOut) error
func UndoWaitForSharedService ¶
func UndoWaitForSharedService(ctx context.Context, in WaitForSharedServiceIn, out WaitForSharedServiceOut) error
Types ¶
type ActivateSharedServerIn ¶
type ActivateSharedServerIn struct {
}
type ActivateSharedServerOut ¶
type ActivateSharedServerOut struct {
}
func ActivateSharedServer ¶
func ActivateSharedServer(ctx context.Context, in ActivateSharedServerIn) (ActivateSharedServerOut, error)
type BuildDedicatedResultIn ¶
type BuildDedicatedResultOut ¶
type BuildDedicatedResultOut struct {
Done bool
}
func BuildDedicatedResult ¶
func BuildDedicatedResult(ctx context.Context, in BuildDedicatedResultIn) (BuildDedicatedResultOut, error)
type BuildSharedResultIn ¶
type BuildSharedResultIn struct {
}
type BuildSharedResultOut ¶
type BuildSharedResultOut struct {
}
func BuildSharedResult ¶
func BuildSharedResult(ctx context.Context, in BuildSharedResultIn) (BuildSharedResultOut, error)
type CleanupSharedServerIn ¶
type CleanupSharedServerIn struct {
}
type CleanupSharedServerOut ¶
type CleanupSharedServerOut struct {
}
func CleanupSharedServer ¶
func CleanupSharedServer(ctx context.Context, in CleanupSharedServerIn) (CleanupSharedServerOut, error)
type CreateDedicatedPoolIn ¶
type CreateDedicatedPoolOut ¶
func CreateDedicatedPool ¶
func CreateDedicatedPool(ctx context.Context, in CreateDedicatedPoolIn) (CreateDedicatedPoolOut, error)
type CreateDedicatedServiceOut ¶
func CreateDedicatedService ¶
func CreateDedicatedService(ctx context.Context, in CreateDedicatedServiceIn) (CreateDedicatedServiceOut, error)
type CreatePostgresServerIn ¶
type CreatePostgresServerOut ¶
func CreatePostgresServer ¶
func CreatePostgresServer(ctx context.Context, in CreatePostgresServerIn) (CreatePostgresServerOut, error)
type CreateSharedDatabaseIn ¶
type CreateSharedDatabaseIn struct {
}
type CreateSharedDatabaseOut ¶
type CreateSharedDatabaseOut struct {
}
func CreateSharedDatabase ¶
func CreateSharedDatabase(ctx context.Context, in CreateSharedDatabaseIn) (CreateSharedDatabaseOut, error)
type CreateSharedPoolIn ¶
type CreateSharedPoolIn struct {
}
type CreateSharedPoolOut ¶
type CreateSharedPoolOut struct {
}
func CreateSharedPool ¶
func CreateSharedPool(ctx context.Context, in CreateSharedPoolIn) (CreateSharedPoolOut, error)
type CreateSharedServerEntityIn ¶
type CreateSharedServerEntityIn struct {
}
type CreateSharedServerEntityOut ¶
type CreateSharedServerEntityOut struct {
}
func CreateSharedServerEntity ¶
func CreateSharedServerEntity(ctx context.Context, in CreateSharedServerEntityIn) (CreateSharedServerEntityOut, error)
type CreateSharedServiceIn ¶
type CreateSharedServiceIn struct{}
type CreateSharedServiceOut ¶
type CreateSharedServiceOut struct {
}
func CreateSharedService ¶
func CreateSharedService(ctx context.Context, in CreateSharedServiceIn) (CreateSharedServiceOut, error)
type CreateSharedUserIn ¶
type CreateSharedUserIn struct {
}
type CreateSharedUserOut ¶
type CreateSharedUserOut struct {
}
func CreateSharedUser ¶
func CreateSharedUser(ctx context.Context, in CreateSharedUserIn) (CreateSharedUserOut, error)
type DecodeDedicatedAttrsIn ¶
type DecodeDedicatedAttrsOut ¶
func DecodeDedicatedAttrs ¶
func DecodeDedicatedAttrs(ctx context.Context, in DecodeDedicatedAttrsIn) (DecodeDedicatedAttrsOut, error)
type DecodeSharedAttrsIn ¶
type DecodeSharedAttrsIn struct {
}
type DecodeSharedAttrsOut ¶
type DecodeSharedAttrsOut struct {
}
func DecodeSharedAttrs ¶
func DecodeSharedAttrs(ctx context.Context, in DecodeSharedAttrsIn) (DecodeSharedAttrsOut, error)
type DecrementAssociationCountOut ¶
type DecrementAssociationCountOut struct {
RemainingCount int64
}
func DecrementAssociationCount ¶
func DecrementAssociationCount(ctx context.Context, in DecrementAssociationCountIn) (DecrementAssociationCountOut, error)
type DeleteDedicatedPoolIn ¶
type DeleteDedicatedPoolOut ¶
type DeleteDedicatedPoolOut struct {
PoolDeleted bool
}
func DeleteDedicatedPool ¶
func DeleteDedicatedPool(ctx context.Context, in DeleteDedicatedPoolIn) (DeleteDedicatedPoolOut, error)
type DeleteDedicatedServerEntityOut ¶
type DeleteDedicatedServerEntityOut struct {
ServerDeleted bool
}
func DeleteDedicatedServerEntity ¶
func DeleteDedicatedServerEntity(ctx context.Context, in DeleteDedicatedServerEntityIn) (DeleteDedicatedServerEntityOut, error)
type DeleteDedicatedServiceOut ¶
type DeleteDedicatedServiceOut struct {
ServiceDeleted bool
}
func DeleteDedicatedService ¶
func DeleteDedicatedService(ctx context.Context, in DeleteDedicatedServiceIn) (DeleteDedicatedServiceOut, error)
type DropSharedDatabaseIn ¶
type DropSharedDatabaseIn struct {
}
type DropSharedDatabaseOut ¶
type DropSharedDatabaseOut struct {
}
func DropSharedDatabase ¶
func DropSharedDatabase(ctx context.Context, in DropSharedDatabaseIn) (DropSharedDatabaseOut, error)
type DropSharedUserIn ¶
type DropSharedUserIn struct {
}
type DropSharedUserOut ¶
type DropSharedUserOut struct {
}
func DropSharedUser ¶
func DropSharedUser(ctx context.Context, in DropSharedUserIn) (DropSharedUserOut, error)
type FindOrCreateSharedServerIn ¶
type FindOrCreateSharedServerIn struct {
}
type FindOrCreateSharedServerOut ¶
type FindOrCreateSharedServerOut struct {
}
func FindOrCreateSharedServer ¶
func FindOrCreateSharedServer(ctx context.Context, in FindOrCreateSharedServerIn) (FindOrCreateSharedServerOut, error)
type GenerateCredentialsIn ¶
type GenerateCredentialsIn struct {
AppName string
}
type GenerateCredentialsOut ¶
type GenerateCredentialsOut struct {
Password string
DatabaseName string
Username string
ServiceName string
ServerName string
}
func GenerateCredentials ¶
func GenerateCredentials(ctx context.Context, in GenerateCredentialsIn) (GenerateCredentialsOut, error)
type GenerateSharedCredentialsIn ¶
type GenerateSharedCredentialsIn struct {
}
type GenerateSharedCredentialsOut ¶
type GenerateSharedCredentialsOut struct {
}
func GenerateSharedCredentials ¶
func GenerateSharedCredentials(ctx context.Context, in GenerateSharedCredentialsIn) (GenerateSharedCredentialsOut, error)
type IncrementAssociationCountOut ¶
type IncrementAssociationCountOut struct {
Incremented bool
}
func IncrementAssociationCount ¶
func IncrementAssociationCount(ctx context.Context, in IncrementAssociationCountIn) (IncrementAssociationCountOut, error)
type LookupDedicatedServerIn ¶
type LookupDedicatedServerOut ¶
func LookupDedicatedServer ¶
func LookupDedicatedServer(ctx context.Context, in LookupDedicatedServerIn) (LookupDedicatedServerOut, error)
type LookupSharedServerIn ¶
type LookupSharedServerIn struct {
}
type LookupSharedServerOut ¶
type LookupSharedServerOut struct {
}
func LookupSharedServer ¶
func LookupSharedServer(ctx context.Context, in LookupSharedServerIn) (LookupSharedServerOut, error)
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the AddonProvider interface for PostgreSQL.
func NewProvider ¶
func NewProvider(fw *addon.ProviderFramework) *Provider
NewProvider creates a new PostgreSQL addon provider.
func (*Provider) AdjustEnvVars ¶
func (*Provider) Deprovision ¶
type TerminateConnectionsIn ¶
type TerminateConnectionsIn struct {
}
type TerminateConnectionsOut ¶
type TerminateConnectionsOut struct {
ConnectionsTerminated bool
}
func TerminateConnections ¶
func TerminateConnections(ctx context.Context, in TerminateConnectionsIn) (TerminateConnectionsOut, error)
type UpdateDedicatedServerIn ¶
type UpdateDedicatedServerOut ¶
type UpdateDedicatedServerOut struct {
Updated bool
}
func UpdateDedicatedServer ¶
func UpdateDedicatedServer(ctx context.Context, in UpdateDedicatedServerIn) (UpdateDedicatedServerOut, error)
type WaitForDedicatedPoolIn ¶
type WaitForDedicatedPoolOut ¶
type WaitForDedicatedPoolOut struct {
Ready bool
}
func WaitForDedicatedPool ¶
func WaitForDedicatedPool(ctx context.Context, in WaitForDedicatedPoolIn) (WaitForDedicatedPoolOut, error)
type WaitForDedicatedServiceOut ¶
type WaitForDedicatedServiceOut struct {
ServiceHost string
}
func WaitForDedicatedService ¶
func WaitForDedicatedService(ctx context.Context, in WaitForDedicatedServiceIn) (WaitForDedicatedServiceOut, error)
type WaitForSharedPoolIn ¶
type WaitForSharedPoolIn struct {
}
type WaitForSharedPoolOut ¶
type WaitForSharedPoolOut struct {
}
func WaitForSharedPool ¶
func WaitForSharedPool(ctx context.Context, in WaitForSharedPoolIn) (WaitForSharedPoolOut, error)
type WaitForSharedServiceIn ¶
type WaitForSharedServiceIn struct {
}
type WaitForSharedServiceOut ¶
type WaitForSharedServiceOut struct {
}
func WaitForSharedService ¶
func WaitForSharedService(ctx context.Context, in WaitForSharedServiceIn) (WaitForSharedServiceOut, error)