function

DigestArtifactHistory

Hash one complete ordered migration filename/digest history.

Arguments

ArgumentTypeDescription
identities[]ArtifactIdentityThe identities value.
headDigeststringThe headDigest value.
manifestschema.ManifestThe manifest value.

Returns

The declared result.

(string, error)

How it works

Rejects empty, malformed, duplicate, or out-of-order identities before returning the deterministic SHA-256 fingerprint embedded by ridu build.

Full signature

func DigestArtifactHistory( identities []ArtifactIdentity, headDigest string, manifest schema.Manifest, ) (string, error)

Source migration/migration.go:43

Related types

  • ArtifactIdentity

    One migration file identity used to bind an executable to committed history.

  • Manifest

    An immutable versioned schema contract.