Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + const BaseLayer + const Diff + const Layer + const Merge + var ErrLocked = errors.New("locked") + var ErrNoBlobs = errors.Errorf("no blobs for snapshot") + var NoUpdateLastUsed noUpdateLastUsed + func CachePolicyDefault(m *cacheMetadata) error + func CachePolicyRetain(m *cacheMetadata) error + func IsNotFound(err error) bool + func MigrateV2(ctx context.Context, from, to string, cs content.Store, s snapshot.Snapshotter, ...) error + type Accessor interface + Diff func(ctx context.Context, lower, upper ImmutableRef, pg progress.Controller, ...) (ImmutableRef, error) + Get func(ctx context.Context, id string, pg progress.Controller, opts ...RefOption) (ImmutableRef, error) + GetByBlob func(ctx context.Context, desc ocispecs.Descriptor, parent ImmutableRef, ...) (ImmutableRef, error) + GetMutable func(ctx context.Context, id string, opts ...RefOption) (MutableRef, error) + IdentityMapping func() *idtools.IdentityMapping + Merge func(ctx context.Context, parents []ImmutableRef, pg progress.Controller, ...) (ImmutableRef, error) + New func(ctx context.Context, parent ImmutableRef, s session.Group, opts ...RefOption) (MutableRef, error) + type Controller interface + DiskUsage func(ctx context.Context, info client.DiskUsageInfo) ([]*client.UsageInfo, error) + Prune func(ctx context.Context, ch chan client.UsageInfo, info ...client.PruneInfo) error + type DescHandler struct + Annotations map[string]string + Progress progress.Controller + Provider func(session.Group) content.Provider + Ref string + SnapshotLabels map[string]string + type DescHandlerKey digest.Digest + type DescHandlers map[digest.Digest]*DescHandler + type ExternalRefChecker interface + Exists func(string, []digest.Digest) bool + type ExternalRefCheckerFunc func() (ExternalRefChecker, error) + type ImmutableRef interface + Clone func() ImmutableRef + Extract func(ctx context.Context, s session.Group) error + FileList func(ctx context.Context, s session.Group) ([]string, error) + Finalize func(context.Context) error + GetRemotes func(ctx context.Context, createIfNeeded bool, cfg config.RefConfig, all bool, ...) ([]*solver.Remote, error) + LayerChain func() RefList + type Manager interface + Close func() error + func NewManager(opt ManagerOpt) (Manager, error) + type ManagerOpt struct + Applier diff.Applier + ContentStore content.Store + Differ diff.Comparer + GarbageCollect func(ctx context.Context) (gc.Stats, error) + LeaseManager leases.Manager + MetadataStore *metadata.Store + MountPoolRoot string + PruneRefChecker ExternalRefCheckerFunc + Snapshotter snapshot.Snapshotter + type MetadataStore interface + Search func(context.Context, string) ([]RefMetadata, error) + type Mountable interface + Mount func(ctx context.Context, readonly bool, s session.Group) (snapshot.Mountable, error) + type MutableRef interface + Commit func(context.Context) (ImmutableRef, error) + type NeedsRemoteProviderError []digest.Digest + func (m NeedsRemoteProviderError) Error() string + type Ref interface + DescHandler func(digest.Digest) *DescHandler + IdentityMapping func() *idtools.IdentityMapping + Release func(context.Context) error + type RefList []ImmutableRef + func (l RefList) Release(ctx context.Context) (rerr error) + type RefMetadata interface + ClearValueAndIndex func(string, string) error + GetCreatedAt func() time.Time + GetDescription func() string + GetEqualMutable func() (RefMetadata, bool) + GetExternal func(string) ([]byte, error) + GetLayerType func() string + GetRecordType func() client.UsageRecordType + GetString func(string) string + HasCachePolicyDefault func() bool + HasCachePolicyRetain func() bool + ID func() string + SetCachePolicyDefault func() error + SetCachePolicyRetain func() error + SetCreatedAt func(time.Time) error + SetDescription func(string) error + SetExternal func(string, []byte) error + SetLayerType func(string) error + SetRecordType func(client.UsageRecordType) error + SetString func(key, val, index string) error + type RefOption interface + func WithCreationTime(tm time.Time) RefOption + func WithDescription(descr string) RefOption + func WithImageRef(imageRef string) RefOption + func WithRecordType(t client.UsageRecordType) RefOption + type Unlazier interface + Unlazy func(ctx context.Context) error + type Unlazy session.Group