function
CreateArtifact
Publish a MongoDB migration artifact with reviewed semantic intent.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
directory | string | The directory value. |
name | string | The name value. |
after | schema.Manifest | The after value. |
now | time.Time | The now value. |
options | ArtifactOptions | The options value. |
Returns
The declared result.
(CreatedArtifact, error)How it works
This is the creator used by ridu migrate create. It validates the immutable prefix, freezes confirmed renames and transform descriptors, records reviewed retirement/destructive findings, and never opens MongoDB.
Full signature
func CreateArtifact(
ctx context.Context,
directory,
name string,
after schema.Manifest,
now time.Time,
options ArtifactOptions,
) (CreatedArtifact, error)Related types
ManifestAn immutable versioned schema contract.
ArtifactOptionsReviewed semantic intent frozen into a planner 5.0.0 artifact.
CreatedArtifactThe stable filesystem identity of one newly published artifact.