Versions in this module Expand all Collapse all v0 v0.3.1 Oct 17, 2018 v0.3.0 Oct 12, 2018 Changes in this version + var ErrLocked = errors.New("locked") + var NoUpdateLastUsed noUpdateLastUsed + func CachePolicyRetain(m withMetadata) error + func GetCreatedAt(si *metadata.StorageItem) time.Time + func GetDescription(si *metadata.StorageItem) string + func GetLayerType(m withMetadata) string + func GetRecordType(m withMetadata) client.UsageRecordType + func HasCachePolicyRetain(m withMetadata) bool + func IsLocked(err error) bool + func IsNotFound(err error) bool + func SetLayerType(m withMetadata, value string) error + func SetRecordType(m withMetadata, value client.UsageRecordType) error + type Accessor interface + Get func(ctx context.Context, id string, opts ...RefOption) (ImmutableRef, error) + GetFromSnapshotter func(ctx context.Context, id string, opts ...RefOption) (ImmutableRef, error) + GetMutable func(ctx context.Context, id string) (MutableRef, error) + New func(ctx context.Context, s ImmutableRef, 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 ExternalRefChecker interface + Exists func(key string) bool + type ExternalRefCheckerFunc func() (ExternalRefChecker, error) + type ImmutableRef interface + Clone func() ImmutableRef + Finalize func(ctx context.Context, commit bool) error + Parent func() ImmutableRef + type Manager interface + Close func() error + func NewManager(opt ManagerOpt) (Manager, error) + type ManagerOpt struct + MetadataStore *metadata.Store + PruneRefChecker ExternalRefCheckerFunc + Snapshotter snapshot.SnapshotterBase + type Mountable interface + Mount func(ctx context.Context, readonly bool) (snapshot.Mountable, error) + type MutableRef interface + Commit func(context.Context) (ImmutableRef, error) + type Ref interface + ID func() string + Metadata func() *metadata.StorageItem + Release func(context.Context) error + Size func(ctx context.Context) (int64, error) + type RefOption interface + func WithCreationTime(tm time.Time) RefOption + func WithDescription(descr string) RefOption + func WithRecordType(t client.UsageRecordType) RefOption