Versions in this module Expand all Collapse all v0 v0.7.3 Nov 9, 2026 Changes in this version + const Forever + func AcquisitionIdentity(input any) string + func FileName(input fs.FS) string + func MachineCredentialErr(cause error) error + func NameBlob(name string, generation fs.FS) fs.FS + func RecordInventory[T io.WriterTo](ctx context.Context, c *Cache, inventory AcceptedInventory[T]) error + func RenderPersistenceDisabledReason() string + type AcceptedInventory struct + Acceptance string + Content T + History RenderHistory + Key string + Lookup string + Work *manifest.AcquisitionWork + type ArchiveKey struct + Content any + Ignore string + Policy string + Required []string + type BlobKey struct + Content any + Observe func(context.Context, fs.FS) (bool, error) + Render RenderMode + Required []string + Validate func(context.Context, fs.FS) (bool, error) + type Cache struct + func New(ctx context.Context, root string) (*Cache, error) + func (c *Cache) Acquire(ctx context.Context, key ArchiveKey, policyValue *Policy, ...) (fs.FS, ocispec.Descriptor, string, error) + func (c *Cache) Blob(ctx context.Context, key BlobKey, policyValue *Policy, ...) (fs.FS, ocispec.Descriptor, string, error) + func (c *Cache) CanPersistRenders() bool + func (c *Cache) Close() error + func (c *Cache) Directory() string + func (c *Cache) Git(ctx context.Context, key GitKey, policyValue *Policy, ...) (*GitGeneration, string, error) + func (c *Cache) ProducersForPaths(ctx context.Context, query []manifest.SourceEvidence) (map[manifest.NamedResource][]manifest.SourceEvidence, error) + func (c *Cache) RenderMetadata(ctx context.Context, content, lookup string, work *manifest.AcquisitionWork) (RenderMetadata, error) + type CacheError struct + Err error + func (e *CacheError) Error() string + func (e *CacheError) Unwrap() []error + type GitGeneration struct + Backing billy.Filesystem + Commit plumbing.Hash + Worktree billy.Filesystem + type GitKey struct + Content any + RecurseSubmodules bool + Ref string + type Policy struct + Admit func(context.Context) (func(), error) + HistoryWork *manifest.AcquisitionWork + Machine bool + MaxAge time.Duration + Retry RetryConfig + Timeout *time.Duration + Work *manifest.AcquisitionWork + type ProducerInput struct + func (p ProducerInput) Previous(ctx context.Context) (*ocispec.Descriptor, error) + func (p ProducerInput) Work() *manifest.AcquisitionWork + type ProducerResult struct + Unchanged bool + type RenderHistory struct + Owner manifest.NamedResource + Sources []manifest.SourceEvidence + type RenderMetadata struct + Descriptor ocispec.Descriptor + Enabled bool + Identity string + type RenderMode uint8 + const RenderAccepted + const RenderPending + type RetryConfig struct + Attempts int + Jitter float64 + MaxWait time.Duration + MinWait time.Duration + type SweepOpts struct + DryRun bool + MaxAge time.Duration + type SweepResult struct + Bytes int64 + Errors []error + Removed []string + func Sweep(ctx context.Context, root string, opts SweepOpts) (SweepResult, error) + type TerminalError struct + Attempted bool + Err error + func (e *TerminalError) Error() string + func (e *TerminalError) Unwrap() []error