Versions in this module Expand all Collapse all v0 v0.19.3 May 4, 2026 Changes in this version + const Version + const WeightsLockFilename + func EntriesEqual(a, b *WeightLockEntry) bool + func PruneLockfile(lockPath string, keep []string) error + func WithLock(ctx context.Context, lockPath string, fn func() error) (retErr error) + type ConfigWeight struct + Exclude []string + Include []string + Name string + Target string + URI string + type DriftKind string + const DriftConfigChanged + const DriftOrphaned + const DriftPending + type DriftResult struct + Details string + Kind DriftKind + Name string + func CheckDrift(lock *WeightsLock, configWeights []ConfigWeight) []DriftResult + type RuntimeWeightEntry struct + Name string + SetDigest string + Target string + type RuntimeWeightsManifest struct + Weights []RuntimeWeightEntry + type WeightLockEntry struct + Digest string + Files []WeightLockFile + Layers []WeightLockLayer + Name string + SetDigest string + Size int64 + SizeCompressed int64 + Source WeightLockSource + Target string + func (e *WeightLockEntry) ComputeSetDigest() string + type WeightLockFile struct + Digest string + Layer string + Path string + Size int64 + func (f WeightLockFile) DirhashParts() weightsource.DirhashPart + type WeightLockLayer struct + Digest string + MediaType string + Size int64 + SizeUncompressed int64 + type WeightLockSource struct + Exclude []string + Fingerprint weightsource.Fingerprint + ImportedAt time.Time + Include []string + URI string + type WeightsLock struct + EnvelopeFormat string + Version int + Weights []WeightLockEntry + func LoadWeightsLock(path string) (*WeightsLock, error) + func ParseWeightsLock(data []byte) (*WeightsLock, error) + func (wl *WeightsLock) FindWeight(name string) *WeightLockEntry + func (wl *WeightsLock) Marshal() ([]byte, error) + func (wl *WeightsLock) Retain(keep []string) + func (wl *WeightsLock) RuntimeManifest() *RuntimeWeightsManifest + func (wl *WeightsLock) Save(path string) error + func (wl *WeightsLock) Upsert(entry WeightLockEntry)