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 RegisterRotateDedicatedRootSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
- func RegisterRotateDedicatedUserSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
- func RegisterRotateSharedRootSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
- func RegisterRotateSharedUserSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
- func RegisterSharedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *resultCapture) error
- func UndoActivateSharedServer(ctx context.Context, in ActivateSharedServerIn, out ActivateSharedServerOut) error
- func UndoAlterDedicatedRootPassword(ctx context.Context, in AlterDedicatedRootPasswordIn, ...) error
- func UndoAlterDedicatedUserPassword(ctx context.Context, in AlterDedicatedUserPasswordIn, ...) error
- func UndoAlterSharedRootPassword(ctx context.Context, in AlterSharedRootPasswordIn, ...) error
- func UndoAlterSharedUserPassword(ctx context.Context, in AlterSharedUserPasswordIn, ...) error
- func UndoBackfillRootDiskName(ctx context.Context, in BackfillRootDiskNameIn, out BackfillRootDiskNameOut) error
- func UndoBuildDedicatedResult(ctx context.Context, in BuildDedicatedResultIn, out BuildDedicatedResultOut) error
- func UndoBuildDedicatedUserResult(ctx context.Context, in BuildDedicatedUserResultIn, ...) error
- func UndoBuildSharedResult(ctx context.Context, in BuildSharedResultIn, out BuildSharedResultOut) error
- func UndoBuildUserRotationResult(ctx context.Context, in BuildUserRotationResultIn, ...) error
- func UndoCaptureDedicatedConnInfo(ctx context.Context, in CaptureDedicatedConnInfoIn, ...) error
- func UndoCaptureOldUserPassword(ctx context.Context, in CaptureOldUserPasswordIn, ...) error
- func UndoCaptureRootResult(ctx context.Context, in CaptureRootResultIn, out CaptureRootResultOut) error
- func UndoCleanupSharedServer(ctx context.Context, in CleanupSharedServerIn, out CleanupSharedServerOut) error
- func UndoCreateDedicatedPool(ctx context.Context, in CreateDedicatedPoolIn, out CreateDedicatedPoolOut) error
- func UndoCreateMysqlServer(ctx context.Context, in CreateMysqlServerIn, out CreateMysqlServerOut) 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 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 UndoDeleteDedicatedServerEntity(ctx context.Context, in DeleteDedicatedServerEntityIn, ...) 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 UndoLoadDedicatedRotationState(ctx context.Context, in LoadDedicatedRotationStateIn, ...) 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 UndoUpdateDedicatedRootEntity(ctx context.Context, in UpdateDedicatedRootEntityIn, ...) error
- func UndoUpdateDedicatedServer(ctx context.Context, in UpdateDedicatedServerIn, out UpdateDedicatedServerOut) error
- func UndoUpdateSharedRootEntity(ctx context.Context, in UpdateSharedRootEntityIn, ...) error
- type ActivateSharedServerIn
- type ActivateSharedServerOut
- type AlterDedicatedRootPasswordIn
- type AlterDedicatedRootPasswordOut
- type AlterDedicatedUserPasswordIn
- type AlterDedicatedUserPasswordOut
- type AlterSharedRootPasswordIn
- type AlterSharedRootPasswordOut
- type AlterSharedUserPasswordIn
- type AlterSharedUserPasswordOut
- type BackfillRootDiskNameIn
- type BackfillRootDiskNameOut
- type BuildDedicatedResultIn
- type BuildDedicatedResultOut
- type BuildDedicatedUserResultIn
- type BuildDedicatedUserResultOut
- type BuildSharedResultIn
- type BuildSharedResultOut
- type BuildUserRotationResultIn
- type BuildUserRotationResultOut
- type CaptureDedicatedConnInfoIn
- type CaptureDedicatedConnInfoOut
- type CaptureOldUserPasswordIn
- type CaptureOldUserPasswordOut
- type CaptureRootResultIn
- type CaptureRootResultOut
- type CleanupSharedServerIn
- type CleanupSharedServerOut
- type CreateDedicatedPoolIn
- type CreateDedicatedPoolOut
- type CreateMysqlServerIn
- type CreateMysqlServerOut
- type CreateSharedDatabaseIn
- type CreateSharedDatabaseOut
- type CreateSharedPoolIn
- type CreateSharedPoolOut
- type CreateSharedServerEntityIn
- type CreateSharedServerEntityOut
- type CreateSharedUserIn
- type CreateSharedUserOut
- type DecodeDedicatedAttrsIn
- type DecodeDedicatedAttrsOut
- type DecodeSharedAttrsIn
- type DecodeSharedAttrsOut
- type DeleteDedicatedServerEntityIn
- type DeleteDedicatedServerEntityOut
- type DropSharedDatabaseIn
- type DropSharedDatabaseOut
- type DropSharedUserIn
- type DropSharedUserOut
- type FindOrCreateSharedServerIn
- type FindOrCreateSharedServerOut
- type GenerateCredentialsIn
- type GenerateCredentialsOut
- type GenerateSharedCredentialsIn
- type GenerateSharedCredentialsOut
- type LoadDedicatedRotationStateIn
- type LoadDedicatedRotationStateOut
- type LookupDedicatedServerIn
- type LookupDedicatedServerOut
- type LookupSharedServerIn
- type LookupSharedServerOut
- type Provider
- 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)
- func (p *Provider) RotateCredential(ctx context.Context, assoc addon.AddonAssociation, ...) (*addon.RotationResult, error)
- type TerminateConnectionsIn
- type TerminateConnectionsOut
- type UpdateDedicatedRootEntityIn
- type UpdateDedicatedRootEntityOut
- type UpdateDedicatedServerIn
- type UpdateDedicatedServerOut
- type UpdateSharedRootEntityIn
- type UpdateSharedRootEntityOut
Constants ¶
const ( AddonName = "miren-mysql" BaseImage = "oci.miren.cloud/mysql" DefaultVersion = "9" )
const ( ConfigStorage = "storage" )
Variables ¶
This section is empty.
Functions ¶
func Definition ¶
func Definition() addon.AddonDefinition
func IsSharedVariant ¶
func RegisterDedicatedSaga ¶
func RegisterDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *resultCapture) error
func RegisterDeprovisionDedicatedSaga ¶
func RegisterDeprovisionDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
func RegisterDeprovisionSharedSaga ¶
func RegisterDeprovisionSharedSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
func RegisterEnsureSharedServerSaga ¶
func RegisterEnsureSharedServerSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
func RegisterRotateDedicatedRootSaga ¶ added in v0.12.1
func RegisterRotateDedicatedRootSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
func RegisterRotateDedicatedUserSaga ¶ added in v0.12.1
func RegisterRotateDedicatedUserSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
func RegisterRotateSharedRootSaga ¶ added in v0.12.1
func RegisterRotateSharedRootSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
func RegisterRotateSharedUserSaga ¶ added in v0.12.1
func RegisterRotateSharedUserSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
func RegisterSharedSaga ¶
func RegisterSharedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *resultCapture) error
func UndoActivateSharedServer ¶
func UndoActivateSharedServer(ctx context.Context, in ActivateSharedServerIn, out ActivateSharedServerOut) error
func UndoAlterDedicatedRootPassword ¶ added in v0.12.1
func UndoAlterDedicatedRootPassword(ctx context.Context, in AlterDedicatedRootPasswordIn, out AlterDedicatedRootPasswordOut) error
func UndoAlterDedicatedUserPassword ¶ added in v0.12.1
func UndoAlterDedicatedUserPassword(ctx context.Context, in AlterDedicatedUserPasswordIn, out AlterDedicatedUserPasswordOut) error
func UndoAlterSharedRootPassword ¶ added in v0.12.1
func UndoAlterSharedRootPassword(ctx context.Context, in AlterSharedRootPasswordIn, out AlterSharedRootPasswordOut) error
func UndoAlterSharedUserPassword ¶ added in v0.12.1
func UndoAlterSharedUserPassword(ctx context.Context, in AlterSharedUserPasswordIn, out AlterSharedUserPasswordOut) error
func UndoBackfillRootDiskName ¶ added in v0.12.1
func UndoBackfillRootDiskName(ctx context.Context, in BackfillRootDiskNameIn, out BackfillRootDiskNameOut) error
func UndoBuildDedicatedResult ¶
func UndoBuildDedicatedResult(ctx context.Context, in BuildDedicatedResultIn, out BuildDedicatedResultOut) error
func UndoBuildDedicatedUserResult ¶ added in v0.12.1
func UndoBuildDedicatedUserResult(ctx context.Context, in BuildDedicatedUserResultIn, out BuildDedicatedUserResultOut) error
func UndoBuildSharedResult ¶
func UndoBuildSharedResult(ctx context.Context, in BuildSharedResultIn, out BuildSharedResultOut) error
func UndoBuildUserRotationResult ¶ added in v0.12.1
func UndoBuildUserRotationResult(ctx context.Context, in BuildUserRotationResultIn, out BuildUserRotationResultOut) error
func UndoCaptureDedicatedConnInfo ¶ added in v0.12.1
func UndoCaptureDedicatedConnInfo(ctx context.Context, in CaptureDedicatedConnInfoIn, out CaptureDedicatedConnInfoOut) error
func UndoCaptureOldUserPassword ¶ added in v0.12.1
func UndoCaptureOldUserPassword(ctx context.Context, in CaptureOldUserPasswordIn, out CaptureOldUserPasswordOut) error
func UndoCaptureRootResult ¶ added in v0.12.1
func UndoCaptureRootResult(ctx context.Context, in CaptureRootResultIn, out CaptureRootResultOut) 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 UndoCreateMysqlServer ¶
func UndoCreateMysqlServer(ctx context.Context, in CreateMysqlServerIn, out CreateMysqlServerOut) 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 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 UndoDeleteDedicatedServerEntity ¶
func UndoDeleteDedicatedServerEntity(ctx context.Context, in DeleteDedicatedServerEntityIn, out DeleteDedicatedServerEntityOut) 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 UndoLoadDedicatedRotationState ¶ added in v0.12.1
func UndoLoadDedicatedRotationState(ctx context.Context, in LoadDedicatedRotationStateIn, out LoadDedicatedRotationStateOut) 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 UndoUpdateDedicatedRootEntity ¶ added in v0.12.1
func UndoUpdateDedicatedRootEntity(ctx context.Context, in UpdateDedicatedRootEntityIn, out UpdateDedicatedRootEntityOut) error
func UndoUpdateDedicatedServer ¶
func UndoUpdateDedicatedServer(ctx context.Context, in UpdateDedicatedServerIn, out UpdateDedicatedServerOut) error
func UndoUpdateSharedRootEntity ¶ added in v0.12.1
func UndoUpdateSharedRootEntity(ctx context.Context, in UpdateSharedRootEntityIn, out UpdateSharedRootEntityOut) error
Types ¶
type ActivateSharedServerIn ¶
type ActivateSharedServerIn struct {
}
type ActivateSharedServerOut ¶
type ActivateSharedServerOut struct {
}
func ActivateSharedServer ¶
func ActivateSharedServer(ctx context.Context, in ActivateSharedServerIn) (ActivateSharedServerOut, error)
type AlterDedicatedRootPasswordIn ¶ added in v0.12.1
type AlterDedicatedRootPasswordOut ¶ added in v0.12.1
type AlterDedicatedRootPasswordOut struct {
// Edge producer: gate the entity update on the engine actually changing.
RootAltered bool `saga:"root_altered"`
}
func AlterDedicatedRootPassword ¶ added in v0.12.1
func AlterDedicatedRootPassword(ctx context.Context, in AlterDedicatedRootPasswordIn) (AlterDedicatedRootPasswordOut, error)
type AlterDedicatedUserPasswordIn ¶ added in v0.12.1
type AlterDedicatedUserPasswordIn struct {
DedicatedServiceHost string `saga:"dedicatedservicehost"`
DedicatedRootPassword string `saga:"dedicatedrootpassword"`
DedicatedUser string `saga:"dedicateduser"`
DedicatedUserOldPass string `saga:"dedicateduseroldpass"`
DedicatedUserNewPass string `saga:"dedicatedusernewpass"`
}
type AlterDedicatedUserPasswordOut ¶ added in v0.12.1
type AlterDedicatedUserPasswordOut struct {
DedicatedUserAltered bool
}
func AlterDedicatedUserPassword ¶ added in v0.12.1
func AlterDedicatedUserPassword(ctx context.Context, in AlterDedicatedUserPasswordIn) (AlterDedicatedUserPasswordOut, error)
type AlterSharedRootPasswordIn ¶ added in v0.12.1
type AlterSharedRootPasswordIn struct {
}
type AlterSharedRootPasswordOut ¶ added in v0.12.1
type AlterSharedRootPasswordOut struct {
RootAltered bool `saga:"root_altered"`
}
func AlterSharedRootPassword ¶ added in v0.12.1
func AlterSharedRootPassword(ctx context.Context, in AlterSharedRootPasswordIn) (AlterSharedRootPasswordOut, error)
type AlterSharedUserPasswordIn ¶ added in v0.12.1
type AlterSharedUserPasswordIn struct {
}
type AlterSharedUserPasswordOut ¶ added in v0.12.1
type AlterSharedUserPasswordOut struct {
}
func AlterSharedUserPassword ¶ added in v0.12.1
func AlterSharedUserPassword(ctx context.Context, in AlterSharedUserPasswordIn) (AlterSharedUserPasswordOut, error)
type BackfillRootDiskNameIn ¶ added in v0.12.1
type BackfillRootDiskNameIn struct {
}
type BackfillRootDiskNameOut ¶ added in v0.12.1
type BackfillRootDiskNameOut struct {
// Edge producer: the disk name must be recorded before the password changes,
// or the legacy password-derived name would be lost.
RootDiskEnsured bool `saga:"root_disk_ensured"`
}
func BackfillRootDiskName ¶ added in v0.12.1
func BackfillRootDiskName(ctx context.Context, in BackfillRootDiskNameIn) (BackfillRootDiskNameOut, error)
type BuildDedicatedResultIn ¶
type BuildDedicatedResultOut ¶
type BuildDedicatedResultOut struct {
Done bool
}
func BuildDedicatedResult ¶
func BuildDedicatedResult(ctx context.Context, in BuildDedicatedResultIn) (BuildDedicatedResultOut, error)
type BuildDedicatedUserResultIn ¶ added in v0.12.1
type BuildDedicatedUserResultOut ¶ added in v0.12.1
type BuildDedicatedUserResultOut struct {
Done bool
}
func BuildDedicatedUserResult ¶ added in v0.12.1
func BuildDedicatedUserResult(ctx context.Context, in BuildDedicatedUserResultIn) (BuildDedicatedUserResultOut, error)
type BuildSharedResultIn ¶
type BuildSharedResultIn struct {
}
type BuildSharedResultOut ¶
type BuildSharedResultOut struct {
}
func BuildSharedResult ¶
func BuildSharedResult(ctx context.Context, in BuildSharedResultIn) (BuildSharedResultOut, error)
type BuildUserRotationResultIn ¶ added in v0.12.1
type BuildUserRotationResultIn struct {
UserNewPassword string `saga:"usernewpassword"`
}
type BuildUserRotationResultOut ¶ added in v0.12.1
type BuildUserRotationResultOut struct {
Done bool
}
func BuildUserRotationResult ¶ added in v0.12.1
func BuildUserRotationResult(ctx context.Context, in BuildUserRotationResultIn) (BuildUserRotationResultOut, error)
type CaptureDedicatedConnInfoIn ¶ added in v0.12.1
type CaptureDedicatedConnInfoOut ¶ added in v0.12.1
type CaptureDedicatedConnInfoOut struct {
DedicatedUser string `saga:"dedicateduser"`
DedicatedDatabase string `saga:"dedicateddatabase"`
DedicatedUserOldPass string `saga:"dedicateduseroldpass"`
}
func CaptureDedicatedConnInfo ¶ added in v0.12.1
func CaptureDedicatedConnInfo(ctx context.Context, in CaptureDedicatedConnInfoIn) (CaptureDedicatedConnInfoOut, error)
CaptureDedicatedConnInfo resolves the role name and database to alter and rebuild env vars for. Provisioning records both on the association attrs, so they read straight off the entity; associations created before those attrs existed fall back to the app's active config. The old user password is a best-effort read used only for rollback.
type CaptureOldUserPasswordIn ¶ added in v0.12.1
type CaptureOldUserPasswordOut ¶ added in v0.12.1
type CaptureOldUserPasswordOut struct {
UserOldPassword string `saga:"useroldpassword"`
}
func CaptureOldUserPassword ¶ added in v0.12.1
func CaptureOldUserPassword(ctx context.Context, in CaptureOldUserPasswordIn) (CaptureOldUserPasswordOut, error)
type CaptureRootResultIn ¶ added in v0.12.1
type CaptureRootResultOut ¶ added in v0.12.1
type CaptureRootResultOut struct {
Done bool
}
func CaptureRootResult ¶ added in v0.12.1
func CaptureRootResult(ctx context.Context, in CaptureRootResultIn) (CaptureRootResultOut, error)
CaptureRootResult records a non-nil, empty result: rotating root touches no consumer variables, so there is nothing to redeploy.
type CleanupSharedServerIn ¶
type CleanupSharedServerIn struct {
}
type CleanupSharedServerOut ¶
type CleanupSharedServerOut struct {
}
func CleanupSharedServer ¶
func CleanupSharedServer(ctx context.Context, in CleanupSharedServerIn) (CleanupSharedServerOut, error)
type CreateDedicatedPoolIn ¶
type CreateDedicatedPoolIn struct {
ServerName string `saga:"servername"`
AppName string `saga:"appname"`
DatabaseName string `saga:"databasename"`
Username string `saga:"username"`
Password string `saga:"password"`
RootPassword string `saga:"rootpassword"`
VariantConfig map[string]string `saga:"variantconfig"`
}
type CreateDedicatedPoolOut ¶
func CreateDedicatedPool ¶
func CreateDedicatedPool(ctx context.Context, in CreateDedicatedPoolIn) (CreateDedicatedPoolOut, error)
type CreateMysqlServerIn ¶
type CreateMysqlServerOut ¶
func CreateMysqlServer ¶
func CreateMysqlServer(ctx context.Context, in CreateMysqlServerIn) (CreateMysqlServerOut, 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 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 DeleteDedicatedServerEntityOut ¶
type DeleteDedicatedServerEntityOut struct {
ServerDeleted bool
}
func DeleteDedicatedServerEntity ¶
func DeleteDedicatedServerEntity(ctx context.Context, in DeleteDedicatedServerEntityIn) (DeleteDedicatedServerEntityOut, 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 `saga:"password"`
RootPassword string `saga:"rootpassword"`
DatabaseName string `saga:"databasename"`
Username string `saga:"username"`
ServiceName string `saga:"servicename"`
ServerName string `saga:"servername"`
}
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 LoadDedicatedRotationStateIn ¶ added in v0.12.1
type LoadDedicatedRotationStateOut ¶ added in v0.12.1
type LoadDedicatedRotationStateOut struct {
DedicatedServiceHost string `saga:"dedicatedservicehost"`
DedicatedRootPassword string `saga:"dedicatedrootpassword"`
}
func LoadDedicatedRotationState ¶ added in v0.12.1
func LoadDedicatedRotationState(ctx context.Context, in LoadDedicatedRotationStateIn) (LoadDedicatedRotationStateOut, error)
type LookupDedicatedServerIn ¶
type LookupDedicatedServerOut ¶
type LookupDedicatedServerOut struct {
DedicatedServiceID entity.Id `saga:"dedicatedserviceid"`
DedicatedPoolID entity.Id `saga:"dedicatedpoolid"`
DedicatedServerName string `saga:"dedicatedservername"`
}
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 {
dbsaga.BaseProvider
}
func NewProvider ¶
func NewProvider(fw *addon.ProviderFramework) *Provider
func (*Provider) Deprovision ¶
func (*Provider) RotateCredential ¶ added in v0.12.1
func (p *Provider) RotateCredential(ctx context.Context, assoc addon.AddonAssociation, credential, newSecret string) (*addon.RotationResult, error)
RotateCredential implements addon.CredentialRotator for MySQL. Both variants expose two independently-rotatable credentials, and both connect through the stable root account to make the change (MySQL always keeps root as a separate admin, so unlike dedicated PostgreSQL we never need the app user's own password to authenticate the ALTER):
- "" / "user" — the association's per-app database user, the credential the app connects with. Rotated with ALTER USER; the new password flows to the consuming app, which is redeployed. (Class A: no restart.)
- "root" — the server's admin password. Rotated with ALTER USER and recorded on the server entity. Apps never receive it, so no consumer is redeployed. (Class C.) For the shared server this is safe now that the data disk name is decoupled from the root password.
type TerminateConnectionsIn ¶
type TerminateConnectionsIn struct {
}
type TerminateConnectionsOut ¶
type TerminateConnectionsOut struct {
ConnectionsTerminated bool
}
func TerminateConnections ¶
func TerminateConnections(ctx context.Context, in TerminateConnectionsIn) (TerminateConnectionsOut, error)
type UpdateDedicatedRootEntityIn ¶ added in v0.12.1
type UpdateDedicatedRootEntityOut ¶ added in v0.12.1
type UpdateDedicatedRootEntityOut struct {
RootRecorded bool
}
func UpdateDedicatedRootEntity ¶ added in v0.12.1
func UpdateDedicatedRootEntity(ctx context.Context, in UpdateDedicatedRootEntityIn) (UpdateDedicatedRootEntityOut, error)
type UpdateDedicatedServerIn ¶
type UpdateDedicatedServerOut ¶
type UpdateDedicatedServerOut struct {
Updated bool
}
func UpdateDedicatedServer ¶
func UpdateDedicatedServer(ctx context.Context, in UpdateDedicatedServerIn) (UpdateDedicatedServerOut, error)
type UpdateSharedRootEntityIn ¶ added in v0.12.1
type UpdateSharedRootEntityIn struct {
}
type UpdateSharedRootEntityOut ¶ added in v0.12.1
type UpdateSharedRootEntityOut struct {
}
func UpdateSharedRootEntity ¶ added in v0.12.1
func UpdateSharedRootEntity(ctx context.Context, in UpdateSharedRootEntityIn) (UpdateSharedRootEntityOut, error)