Versions in this module Expand all Collapse all v1 v1.0.0 Aug 27, 2026 Changes in this version + const MaxEntrySize + var ErrConflict = errors.New("cache entry conflicts with an existing value") + type Component struct + Digest Digest + Identity string + Kind ComponentKind + type ComponentKind string + const ComponentBuildSelection + const ComponentDependencyExport + const ComponentEnvironment + const ComponentFact + const ComponentModule + const ComponentOverlay + const ComponentSource + const ComponentWorkspace + type Digest [sha256.Size]byte + func DigestOf(value []byte) Digest + type Key [sha256.Size]byte + func BuildKey(input KeyInput) (Key, error) + func (k Key) String() string + type KeyInput struct + BuildGoVersion string + BuildTags []string + CGOEnabled bool + Components []Component + Configuration Digest + FormatterMode string + GOARCH string + GOOS string + Namespace string + Rules []RuleInput + SourceGoVersion string + ToolVersion string + type PruneOptions struct + MaxBytes int64 + MaxEntries int + StaleTemporaryBefore time.Time + type PruneResult struct + BytesAfter int64 + BytesBefore int64 + BytesRemoved int64 + CorruptRemoved int + EntriesAfter int + EntriesBefore int + EntriesRemoved int + TemporaryRemoved int + type RuleInput struct + ID string + Options Digest + Severity string + type Store struct + func Open(path string) (*Store, error) + func OpenValidated(path string, validate func(string) error) (*Store, error) + func (s *Store) Close() error + func (s *Store) Get(ctx context.Context, key Key) ([]byte, bool, error) + func (s *Store) Prune(ctx context.Context, options PruneOptions) (PruneResult, error) + func (s *Store) Put(ctx context.Context, key Key, payload []byte) (resultErr error)