Documentation
¶
Index ¶
- Constants
- func Definition() addon.AddonDefinition
- func RegisterDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *resultCapture) error
- func RegisterDeprovisionDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework) error
- func RegisterRotateDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
- func UndoBuildDedicatedResult(ctx context.Context, in BuildDedicatedResultIn, out BuildDedicatedResultOut) error
- func UndoCaptureValkeyRotationResult(ctx context.Context, in CaptureValkeyRotationResultIn, ...) error
- func UndoCreateDedicatedPool(ctx context.Context, in CreateDedicatedPoolIn, out CreateDedicatedPoolOut) error
- func UndoCreateValkeyServer(ctx context.Context, in CreateValkeyServerIn, out CreateValkeyServerOut) error
- func UndoDecodeDedicatedAttrs(ctx context.Context, in DecodeDedicatedAttrsIn, out DecodeDedicatedAttrsOut) error
- func UndoDecodeValkeyServerRef(ctx context.Context, in DecodeValkeyServerRefIn, out DecodeValkeyServerRefOut) error
- func UndoDeleteDedicatedServerEntity(ctx context.Context, in DeleteDedicatedServerEntityIn, ...) error
- func UndoDeleteOldValkeyPool(ctx context.Context, in DeleteOldValkeyPoolIn, out DeleteOldValkeyPoolOut) error
- func UndoGenerateCredentials(ctx context.Context, in GenerateCredentialsIn, out GenerateCredentialsOut) error
- func UndoLoadValkeyRotationState(ctx context.Context, in LoadValkeyRotationStateIn, ...) error
- func UndoLookupDedicatedServer(ctx context.Context, in LookupDedicatedServerIn, out LookupDedicatedServerOut) error
- func UndoScaleDownOldValkeyPool(ctx context.Context, in ScaleDownOldValkeyPoolIn, ...) error
- func UndoSetValkeyServerPassword(ctx context.Context, in SetValkeyServerPasswordIn, ...) error
- func UndoSwapValkeyPool(ctx context.Context, in SwapValkeyPoolIn, out SwapValkeyPoolOut) error
- func UndoUpdateDedicatedServer(ctx context.Context, in UpdateDedicatedServerIn, out UpdateDedicatedServerOut) error
- func UndoWaitValkeyPoolReady(ctx context.Context, in WaitValkeyPoolReadyIn, out WaitValkeyPoolReadyOut) error
- type BuildDedicatedResultIn
- type BuildDedicatedResultOut
- type CaptureValkeyRotationResultIn
- type CaptureValkeyRotationResultOut
- type CreateDedicatedPoolIn
- type CreateDedicatedPoolOut
- type CreateValkeyServerIn
- type CreateValkeyServerOut
- type DecodeDedicatedAttrsIn
- type DecodeDedicatedAttrsOut
- type DecodeValkeyServerRefIn
- type DecodeValkeyServerRefOut
- type DeleteDedicatedServerEntityIn
- type DeleteDedicatedServerEntityOut
- type DeleteOldValkeyPoolIn
- type DeleteOldValkeyPoolOut
- type GenerateCredentialsIn
- type GenerateCredentialsOut
- type LoadValkeyRotationStateIn
- type LoadValkeyRotationStateOut
- type LookupDedicatedServerIn
- type LookupDedicatedServerOut
- 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 ScaleDownOldValkeyPoolIn
- type ScaleDownOldValkeyPoolOut
- type SetValkeyServerPasswordIn
- type SetValkeyServerPasswordOut
- type SwapValkeyPoolIn
- type SwapValkeyPoolOut
- type UpdateDedicatedServerIn
- type UpdateDedicatedServerOut
- type WaitValkeyPoolReadyIn
- type WaitValkeyPoolReadyOut
Constants ¶
View Source
const ( AddonName = "miren-valkey" BaseImage = "oci.miren.cloud/valkey" DefaultVersion = "9" )
View Source
const (
ConfigStorage = "storage"
)
Variables ¶
This section is empty.
Functions ¶
func Definition ¶
func Definition() addon.AddonDefinition
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 RegisterRotateDedicatedSaga ¶ added in v0.12.1
func RegisterRotateDedicatedSaga(registry *saga.Registry, fw *addon.ProviderFramework, rc *rotateCapture) error
RegisterRotateDedicatedSaga registers the dedicated valkey rotation saga.
func UndoBuildDedicatedResult ¶
func UndoBuildDedicatedResult(ctx context.Context, in BuildDedicatedResultIn, out BuildDedicatedResultOut) error
func UndoCaptureValkeyRotationResult ¶ added in v0.12.1
func UndoCaptureValkeyRotationResult(ctx context.Context, in CaptureValkeyRotationResultIn, out CaptureValkeyRotationResultOut) error
func UndoCreateDedicatedPool ¶
func UndoCreateDedicatedPool(ctx context.Context, in CreateDedicatedPoolIn, out CreateDedicatedPoolOut) error
func UndoCreateValkeyServer ¶
func UndoCreateValkeyServer(ctx context.Context, in CreateValkeyServerIn, out CreateValkeyServerOut) error
func UndoDecodeDedicatedAttrs ¶
func UndoDecodeDedicatedAttrs(ctx context.Context, in DecodeDedicatedAttrsIn, out DecodeDedicatedAttrsOut) error
func UndoDecodeValkeyServerRef ¶ added in v0.12.1
func UndoDecodeValkeyServerRef(ctx context.Context, in DecodeValkeyServerRefIn, out DecodeValkeyServerRefOut) error
func UndoDeleteDedicatedServerEntity ¶
func UndoDeleteDedicatedServerEntity(ctx context.Context, in DeleteDedicatedServerEntityIn, out DeleteDedicatedServerEntityOut) error
func UndoDeleteOldValkeyPool ¶ added in v0.12.1
func UndoDeleteOldValkeyPool(ctx context.Context, in DeleteOldValkeyPoolIn, out DeleteOldValkeyPoolOut) error
func UndoGenerateCredentials ¶
func UndoGenerateCredentials(ctx context.Context, in GenerateCredentialsIn, out GenerateCredentialsOut) error
func UndoLoadValkeyRotationState ¶ added in v0.12.1
func UndoLoadValkeyRotationState(ctx context.Context, in LoadValkeyRotationStateIn, out LoadValkeyRotationStateOut) error
func UndoLookupDedicatedServer ¶
func UndoLookupDedicatedServer(ctx context.Context, in LookupDedicatedServerIn, out LookupDedicatedServerOut) error
func UndoScaleDownOldValkeyPool ¶ added in v0.12.1
func UndoScaleDownOldValkeyPool(ctx context.Context, in ScaleDownOldValkeyPoolIn, out ScaleDownOldValkeyPoolOut) error
func UndoSetValkeyServerPassword ¶ added in v0.12.1
func UndoSetValkeyServerPassword(ctx context.Context, in SetValkeyServerPasswordIn, out SetValkeyServerPasswordOut) error
func UndoSwapValkeyPool ¶ added in v0.12.1
func UndoSwapValkeyPool(ctx context.Context, in SwapValkeyPoolIn, out SwapValkeyPoolOut) error
func UndoUpdateDedicatedServer ¶
func UndoUpdateDedicatedServer(ctx context.Context, in UpdateDedicatedServerIn, out UpdateDedicatedServerOut) error
func UndoWaitValkeyPoolReady ¶ added in v0.12.1
func UndoWaitValkeyPoolReady(ctx context.Context, in WaitValkeyPoolReadyIn, out WaitValkeyPoolReadyOut) error
Types ¶
type BuildDedicatedResultIn ¶
type BuildDedicatedResultOut ¶
type BuildDedicatedResultOut struct {
Done bool
}
func BuildDedicatedResult ¶
func BuildDedicatedResult(ctx context.Context, in BuildDedicatedResultIn) (BuildDedicatedResultOut, error)
type CaptureValkeyRotationResultIn ¶ added in v0.12.1
type CaptureValkeyRotationResultOut ¶ added in v0.12.1
type CaptureValkeyRotationResultOut struct {
Done bool
}
func CaptureValkeyRotationResult ¶ added in v0.12.1
func CaptureValkeyRotationResult(ctx context.Context, in CaptureValkeyRotationResultIn) (CaptureValkeyRotationResultOut, error)
type CreateDedicatedPoolIn ¶
type CreateDedicatedPoolOut ¶
func CreateDedicatedPool ¶
func CreateDedicatedPool(ctx context.Context, in CreateDedicatedPoolIn) (CreateDedicatedPoolOut, error)
type CreateValkeyServerIn ¶
type CreateValkeyServerOut ¶
func CreateValkeyServer ¶
func CreateValkeyServer(ctx context.Context, in CreateValkeyServerIn) (CreateValkeyServerOut, error)
type DecodeDedicatedAttrsIn ¶
type DecodeDedicatedAttrsOut ¶
func DecodeDedicatedAttrs ¶
func DecodeDedicatedAttrs(ctx context.Context, in DecodeDedicatedAttrsIn) (DecodeDedicatedAttrsOut, error)
type DecodeValkeyServerRefIn ¶ added in v0.12.1
type DecodeValkeyServerRefOut ¶ added in v0.12.1
func DecodeValkeyServerRef ¶ added in v0.12.1
func DecodeValkeyServerRef(ctx context.Context, in DecodeValkeyServerRefIn) (DecodeValkeyServerRefOut, error)
type DeleteDedicatedServerEntityOut ¶
type DeleteDedicatedServerEntityOut struct {
ServerDeleted bool
}
func DeleteDedicatedServerEntity ¶
func DeleteDedicatedServerEntity(ctx context.Context, in DeleteDedicatedServerEntityIn) (DeleteDedicatedServerEntityOut, error)
type DeleteOldValkeyPoolIn ¶ added in v0.12.1
type DeleteOldValkeyPoolOut ¶ added in v0.12.1
type DeleteOldValkeyPoolOut struct {
RotateOldPoolDeleted bool
}
func DeleteOldValkeyPool ¶ added in v0.12.1
func DeleteOldValkeyPool(ctx context.Context, in DeleteOldValkeyPoolIn) (DeleteOldValkeyPoolOut, error)
type GenerateCredentialsIn ¶
type GenerateCredentialsIn struct {
AppName string
}
type GenerateCredentialsOut ¶
type GenerateCredentialsOut struct {
Password string `saga:"password"`
ServiceName string `saga:"servicename"`
ServerName string `saga:"servername"`
}
func GenerateCredentials ¶
func GenerateCredentials(ctx context.Context, in GenerateCredentialsIn) (GenerateCredentialsOut, error)
type LoadValkeyRotationStateIn ¶ added in v0.12.1
type LoadValkeyRotationStateOut ¶ added in v0.12.1
type LoadValkeyRotationStateOut struct {
RotateOldPassword string `saga:"rotateoldpassword"`
RotateOldPoolID entity.Id `saga:"rotateoldpoolid"`
RotateServiceHost string `saga:"rotateservicehost"`
}
func LoadValkeyRotationState ¶ added in v0.12.1
func LoadValkeyRotationState(ctx context.Context, in LoadValkeyRotationStateIn) (LoadValkeyRotationStateOut, 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 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 dedicated Valkey. Valkey has a single password (its requirepass, also the value consumers use), so the credential selector is ignored. It is safe to re-invoke with the same newSecret: if the running pool already uses it, the pool re-launch is skipped.
type ScaleDownOldValkeyPoolIn ¶ added in v0.12.1
type ScaleDownOldValkeyPoolOut ¶ added in v0.12.1
type ScaleDownOldValkeyPoolOut struct {
// Edge producer: gates the pool swap, so the single-attach disk is released
// before the new pool tries to attach it.
RotatePoolScaledDown bool `saga:"valkey_pool_scaled_down"`
}
func ScaleDownOldValkeyPool ¶ added in v0.12.1
func ScaleDownOldValkeyPool(ctx context.Context, in ScaleDownOldValkeyPoolIn) (ScaleDownOldValkeyPoolOut, error)
type SetValkeyServerPasswordIn ¶ added in v0.12.1
type SetValkeyServerPasswordOut ¶ added in v0.12.1
type SetValkeyServerPasswordOut struct {
RotatePasswordSet bool
}
func SetValkeyServerPassword ¶ added in v0.12.1
func SetValkeyServerPassword(ctx context.Context, in SetValkeyServerPasswordIn) (SetValkeyServerPasswordOut, error)
type SwapValkeyPoolIn ¶ added in v0.12.1
type SwapValkeyPoolOut ¶ added in v0.12.1
func SwapValkeyPool ¶ added in v0.12.1
func SwapValkeyPool(ctx context.Context, in SwapValkeyPoolIn) (SwapValkeyPoolOut, error)
type UpdateDedicatedServerIn ¶
type UpdateDedicatedServerOut ¶
type UpdateDedicatedServerOut struct {
Updated bool
}
func UpdateDedicatedServer ¶
func UpdateDedicatedServer(ctx context.Context, in UpdateDedicatedServerIn) (UpdateDedicatedServerOut, error)
type WaitValkeyPoolReadyIn ¶ added in v0.12.1
type WaitValkeyPoolReadyOut ¶ added in v0.12.1
type WaitValkeyPoolReadyOut struct {
// Edge producer: gates the old-pool delete on the new pool being healthy.
RotatePoolReady bool `saga:"valkey_pool_ready"`
}
func WaitValkeyPoolReady ¶ added in v0.12.1
func WaitValkeyPoolReady(ctx context.Context, in WaitValkeyPoolReadyIn) (WaitValkeyPoolReadyOut, error)
Click to show internal directories.
Click to hide internal directories.