method

Store.ApplyArtifacts

Validate complete immutable history, take the fenced lease, and apply pending work.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
directorystringThe directory value.
transforms[]migration.DataTransformThe transforms value.

Returns

The declared result.

error

How it works

The lifecycle is forward-only: there are no down, reset, refresh, or fresh methods. Correct forward with another reviewed artifact or restore a matched database-and-upload recovery point.

Full signature

func (backend *Store) ApplyArtifacts( ctx context.Context, directory string, transforms ...ridumigration.DataTransform, ) error

Source adapters/mongodb/migration_runner.go:18

Related types

  • Store

    A replica-set implementation of Ridu’s document, snapshot, auth, preference, task, lock, upload, readiness, and migration contracts.

  • DataTransform

    Executable up and down callbacks bound to an immutable descriptor.