Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + const ExporterResponseManifestDesc + type CacheType int + const ImageManifest + const ManifestList + const NotSet + func (data CacheType) String() string + type Config struct + Compression compression.Config + type DistributionSourceLabelSetter interface + SetDistributionSourceAnnotation func(desc ocispecs.Descriptor) ocispecs.Descriptor + SetDistributionSourceLabel func(context.Context, digest.Digest) error + type ExportableCache struct + CacheType CacheType + ExportedIndex ocispecs.Index + ExportedManifest ocispecs.Manifest + OCI bool + func NewExportableCache(oci bool, imageManifest bool) (*ExportableCache, error) + func (ec *ExportableCache) AddCacheBlob(blob ocispecs.Descriptor) + func (ec *ExportableCache) FinalizeCache(ctx context.Context) + func (ec *ExportableCache) MarshalJSON() ([]byte, error) + func (ec *ExportableCache) MediaType() string + func (ec *ExportableCache) SetConfig(config ocispecs.Descriptor) + type Exporter interface + Config func() Config + Finalize func(ctx context.Context) (map[string]string, error) + Name func() string + func NewExporter(ingester content.Ingester, ref string, oci bool, imageManifest bool, ...) Exporter + type Importer interface + Resolve func(ctx context.Context, desc ocispecs.Descriptor, id string, w worker.Worker) (solver.CacheManager, error) + func NewImporter(provider content.Provider) Importer + type ResolveCacheExporterFunc func(ctx context.Context, g session.Group, attrs map[string]string) (Exporter, error) + type ResolveCacheImporterFunc func(ctx context.Context, g session.Group, attrs map[string]string) (Importer, ocispecs.Descriptor, error)