Documentation ¶
Index ¶
- Variables
- func CachePolicyDefault(m withMetadata) error
- 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 MigrateV2(ctx context.Context, from, to string, cs content.Store, s snapshot.Snapshotter, ...) error
- func SetLayerType(m withMetadata, value string) error
- func SetRecordType(m withMetadata, value client.UsageRecordType) error
- type Accessor
- type Controller
- type ExternalRefChecker
- type ExternalRefCheckerFunc
- type ImmutableRef
- type Manager
- type ManagerOpt
- type Mountable
- type MutableRef
- type Ref
- type RefInfo
- type RefOption
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrLocked = errors.New("locked")
)
View Source
var NoUpdateLastUsed noUpdateLastUsed
Functions ¶
func CachePolicyDefault ¶ added in v0.6.0
func CachePolicyDefault(m withMetadata) error
func CachePolicyRetain ¶
func CachePolicyRetain(m withMetadata) error
func GetCreatedAt ¶
func GetCreatedAt(si *metadata.StorageItem) time.Time
func GetDescription ¶
func GetDescription(si *metadata.StorageItem) string
func GetLayerType ¶
func GetLayerType(m withMetadata) string
func GetRecordType ¶
func GetRecordType(m withMetadata) client.UsageRecordType
func HasCachePolicyRetain ¶
func HasCachePolicyRetain(m withMetadata) bool
func IsNotFound ¶
func SetLayerType ¶
func SetRecordType ¶
func SetRecordType(m withMetadata, value client.UsageRecordType) error
Types ¶
type Accessor ¶
type Accessor interface { GetByBlob(ctx context.Context, desc ocispec.Descriptor, parent ImmutableRef, opts ...RefOption) (ImmutableRef, error) Get(ctx context.Context, id string, opts ...RefOption) (ImmutableRef, error) New(ctx context.Context, parent ImmutableRef, opts ...RefOption) (MutableRef, error) GetMutable(ctx context.Context, id string) (MutableRef, error) // Rebase? IdentityMapping() *idtools.IdentityMapping Metadata(string) *metadata.StorageItem }
type Controller ¶
type ExternalRefChecker ¶
type ExternalRefCheckerFunc ¶
type ExternalRefCheckerFunc func() (ExternalRefChecker, error)
type ImmutableRef ¶
type Manager ¶
type Manager interface { Accessor Controller Close() error }
func NewManager ¶
func NewManager(opt ManagerOpt) (Manager, error)
type ManagerOpt ¶
type MutableRef ¶
type MutableRef interface { Ref Commit(context.Context) (ImmutableRef, error) }
type Ref ¶
type Ref interface { Mountable ID() string Release(context.Context) error Size(ctx context.Context) (int64, error) Metadata() *metadata.StorageItem IdentityMapping() *idtools.IdentityMapping }
Ref is a reference to cacheable objects.
type RefOption ¶
type RefOption interface{}
func WithCreationTime ¶
func WithDescription ¶
func WithRecordType ¶
func WithRecordType(t client.UsageRecordType) RefOption
Click to show internal directories.
Click to hide internal directories.