Documentation ¶
Index ¶
Constants ¶
const ( StatePending = "PENDING_USER" StateApproved = "APPROVED" StateAborted = "ABORTED" StateApplied = "APPLIED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtlasExec ¶ added in v0.5.0
type AtlasExec interface { MigrateApply(ctx context.Context, params *atlasexec.MigrateApplyParams) (*atlasexec.MigrateApply, error) MigrateDown(ctx context.Context, params *atlasexec.MigrateDownParams) (*atlasexec.MigrateDown, error) MigrateLint(ctx context.Context, params *atlasexec.MigrateLintParams) (*atlasexec.SummaryReport, error) MigrateStatus(ctx context.Context, params *atlasexec.MigrateStatusParams) (*atlasexec.MigrateStatus, error) SchemaApply(ctx context.Context, params *atlasexec.SchemaApplyParams) (*atlasexec.SchemaApply, error) SchemaInspect(ctx context.Context, params *atlasexec.SchemaInspectParams) (string, error) }
AtlasExec is the interface for the Atlas SDK.
type AtlasExecFn ¶ added in v0.5.0
AtlasExecFn is a function that returns an AtlasExec with the working directory.
type AtlasMigrationReconciler ¶ added in v0.1.7
AtlasMigrationReconciler reconciles a AtlasMigration object
func NewAtlasMigrationReconciler ¶ added in v0.1.7
func NewAtlasMigrationReconciler(mgr Manager, atlas AtlasExecFn, prewarmDevDB bool) *AtlasMigrationReconciler
func (*AtlasMigrationReconciler) Reconcile ¶ added in v0.1.7
func (r *AtlasMigrationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, err error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*AtlasMigrationReconciler) SetupWithManager ¶ added in v0.1.7
func (r *AtlasMigrationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type AtlasSchemaReconciler ¶
AtlasSchemaReconciler reconciles a AtlasSchema object
func NewAtlasSchemaReconciler ¶ added in v0.1.7
func NewAtlasSchemaReconciler(mgr Manager, atlas AtlasExecFn, prewarmDevDB bool) *AtlasSchemaReconciler
func (*AtlasSchemaReconciler) Reconcile ¶
func (r *AtlasSchemaReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, err error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*AtlasSchemaReconciler) SetupWithManager ¶
func (r *AtlasSchemaReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ProtectedFlowError ¶ added in v0.5.0
type ProtectedFlowError struct {
// contains filtered or unexported fields
}
func (*ProtectedFlowError) Error ¶ added in v0.5.0
func (e *ProtectedFlowError) Error() string
Error implements the error interface
func (*ProtectedFlowError) Reason ¶ added in v0.5.0
func (e *ProtectedFlowError) Reason() string
Reason returns the reason of the error