Documentation ¶
Index ¶
- func BootstrapStandby(ctx context.Context, dbdClient dbdpb.DatabaseDaemonClient) error
- func CreateStandby(ctx context.Context, primary *Primary, standby *Standby, ...) (*lropb.Operation, error)
- func DataGuardStatus(ctx context.Context, StandbyUniqueName string, ...) ([]string, error)
- func PromoteStandby(ctx context.Context, primary *Primary, standby *Standby, ...) error
- func SetUpDataGuard(ctx context.Context, primary *Primary, standby *Standby, ...) error
- func VerifyStandbySettings(ctx context.Context, primary *Primary, standby *Standby, ...) (settingErrs []*standbyhelpers.StandbySettingErr)
- type Primary
- type SecretAccessor
- type Standby
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapStandby ¶
func BootstrapStandby(ctx context.Context, dbdClient dbdpb.DatabaseDaemonClient) error
BootstrapStandby converts promoted standby to standard El Carro Oracle instance.
func CreateStandby ¶
func CreateStandby(ctx context.Context, primary *Primary, standby *Standby, backupGcsPath, operationId string, dbdClient dbdpb.DatabaseDaemonClient) (*lropb.Operation, error)
CreateStandby creates a standby database by cloning a external database.
func DataGuardStatus ¶
func DataGuardStatus(ctx context.Context, StandbyUniqueName string, dbdClient dbdpb.DatabaseDaemonClient) ([]string, error)
DataGuardStatus get configuration and this standby database status.
func PromoteStandby ¶
func PromoteStandby(ctx context.Context, primary *Primary, standby *Standby, dbdClient dbdpb.DatabaseDaemonClient) error
PromoteStandby promotes standby database to primary.
func SetUpDataGuard ¶
func SetUpDataGuard(ctx context.Context, primary *Primary, standby *Standby, passwordFileGcsPath string, dbdClient dbdpb.DatabaseDaemonClient) error
SetUpDataGuard sets up Data Guard between primary and standby.
func VerifyStandbySettings ¶
func VerifyStandbySettings(ctx context.Context, primary *Primary, standby *Standby, passwordGcsPath, backupGcsPath string, dbdClient dbdpb.DatabaseDaemonClient) (settingErrs []*standbyhelpers.StandbySettingErr)
VerifyStandbySettings does preflight checks on standby settings.
Types ¶
type Primary ¶
type Primary struct { Host string Port int Service string User string PasswordAccessor SecretAccessor }
Primary is a domain object that describes an Oracle external primary instance.
type SecretAccessor ¶
SecretAccessor defines the methods we use from the secret accessor.
Click to show internal directories.
Click to hide internal directories.