Documentation
¶
Index ¶
- Variables
- func WaitSQLAdminOp(ctx context.Context, sql *sqladmin.Service, project string, operation string, ...) error
- type Op
- func (op *Op) PostFlight(ctx context.Context, postflight []PostFlight) []error
- func (op *Op) Preflight(ctx context.Context, preflight []Preflight) []error
- func (op *Op) Prepopulate(ctx context.Context, postflight []PostFlight) []error
- func (op *Op) Run(ctx context.Context, preflight []Preflight, postflight []PostFlight) []error
- type PostFlight
- type PostFlightSQLAdmin
- type Preflight
- type PreflightStatus
- type PreflightVersion
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPostFlight = errors.New("postflight_error") ErrPostFlightMissingDB = fmt.Errorf("%w - missing database in target cloudsql instance", ErrPostFlight) ErrPostFlightMissingUser = fmt.Errorf("%w - missing user in target cloudsql instance", ErrPostFlight) )
View Source
var ( ErrPreflight = errors.New("preflight_error") ErrPreflightVersionMismatch = fmt.Errorf("%w - mismatch database version", ErrPreflight) ErrPreflightStatus = fmt.Errorf("%w - instance is not running", ErrPreflight) )
Functions ¶
Types ¶
type Op ¶
type Op struct { Svc *sqladmin.Service Src *sqladmin.DatabaseInstance Dst *sqladmin.DatabaseInstance }
func (*Op) PostFlight ¶
func (op *Op) PostFlight(ctx context.Context, postflight []PostFlight) []error
func (*Op) Prepopulate ¶
func (op *Op) Prepopulate(ctx context.Context, postflight []PostFlight) []error
type PostFlight ¶
type PostFlightSQLAdmin ¶
type PostFlightSQLAdmin struct {
// contains filtered or unexported fields
}
func (*PostFlightSQLAdmin) Check ¶
func (p *PostFlightSQLAdmin) Check(op *Op) error
func (*PostFlightSQLAdmin) Name ¶
func (p *PostFlightSQLAdmin) Name() string
func (*PostFlightSQLAdmin) Prepopulate ¶
func (p *PostFlightSQLAdmin) Prepopulate(op *Op) error
type PreflightStatus ¶
type PreflightStatus struct{}
func (PreflightStatus) Check ¶
func (p PreflightStatus) Check(op *Op) error
func (PreflightStatus) Name ¶
func (p PreflightStatus) Name() string
type PreflightVersion ¶
type PreflightVersion struct{}
func (PreflightVersion) Check ¶
func (p PreflightVersion) Check(op *Op) error
func (PreflightVersion) Name ¶
func (p PreflightVersion) Name() string
Click to show internal directories.
Click to hide internal directories.