Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExportResponseManifestDesc is a key for the map returned from Exporter.Finalize. // The map value is a JSON string of an OCI desciptor of a manifest. ExporterResponseManifestDesc = "cache.manifest" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.10.0
type Config struct {
Compression compression.Config
}
type DistributionSourceLabelSetter ¶ added in v0.7.0
type DistributionSourceLabelSetter interface { SetDistributionSourceLabel(context.Context, digest.Digest) error SetDistributionSourceAnnotation(desc ocispecs.Descriptor) ocispecs.Descriptor }
type ExportableCache ¶ added in v0.12.0
type ExportableCache struct { // This cache describes two distinct styles of exportable cache, one is an Index (or Manifest List) of blobs, // or as an artifact using the OCI image manifest format. ExportedManifest ocispecs.Manifest ExportedIndex ocispecs.Index CacheType CacheType OCI bool }
func NewExportableCache ¶ added in v0.12.0
func NewExportableCache(oci bool, imageManifest bool) (*ExportableCache, error)
func (*ExportableCache) AddCacheBlob ¶ added in v0.12.0
func (ec *ExportableCache) AddCacheBlob(blob ocispecs.Descriptor)
func (*ExportableCache) FinalizeCache ¶ added in v0.12.0
func (ec *ExportableCache) FinalizeCache(ctx context.Context)
func (*ExportableCache) MarshalJSON ¶ added in v0.12.0
func (ec *ExportableCache) MarshalJSON() ([]byte, error)
func (*ExportableCache) MediaType ¶ added in v0.12.0
func (ec *ExportableCache) MediaType() string
func (*ExportableCache) SetConfig ¶ added in v0.12.0
func (ec *ExportableCache) SetConfig(config ocispecs.Descriptor)
type Exporter ¶
type Exporter interface { solver.CacheExporterTarget // Name uniquely identifies the exporter Name() string // Finalize finalizes and return metadata that are returned to the client // e.g. ExporterResponseManifestDesc Finalize(ctx context.Context) (map[string]string, error) Config() Config }
func NewExporter ¶
type Importer ¶
type Importer interface {
Resolve(ctx context.Context, desc ocispecs.Descriptor, id string, w worker.Worker) (solver.CacheManager, error)
}
func NewImporter ¶
Click to show internal directories.
Click to hide internal directories.