Versions in this module Expand all Collapse all v1 v1.2.0 Oct 24, 2018 Changes in this version + const ResourceContainer + const ResourceContent + const ResourceIngest + const ResourceLease + const ResourceSnapshot + const ResourceTask + const ResourceUnknown + func NewContainerStore(tx *bolt.Tx) containers.Store + func NewImageStore(db *DB) images.Store + func NewNamespaceStore(tx *bolt.Tx) namespaces.Store + func WithTransactionContext(ctx context.Context, tx *bolt.Tx) context.Context + type DB struct + func NewDB(db *bolt.DB, cs content.Store, ss map[string]snapshots.Snapshotter) *DB + func (m *DB) ContentStore() content.Store + func (m *DB) GarbageCollect(ctx context.Context) (gc.Stats, error) + func (m *DB) Init(ctx context.Context) error + func (m *DB) RegisterMutationCallback(fn func(bool)) + func (m *DB) Snapshotter(name string) snapshots.Snapshotter + func (m *DB) Snapshotters() map[string]snapshots.Snapshotter + func (m *DB) Update(fn func(*bolt.Tx) error) error + func (m *DB) View(fn func(*bolt.Tx) error) error + type GCStats struct + ContentD time.Duration + MetaD time.Duration + SnapshotD map[string]time.Duration + func (s GCStats) Elapsed() time.Duration + type LeaseManager struct + func NewLeaseManager(tx *bolt.Tx) *LeaseManager + func (lm *LeaseManager) Create(ctx context.Context, opts ...leases.Opt) (leases.Lease, error) + func (lm *LeaseManager) Delete(ctx context.Context, lease leases.Lease, _ ...leases.DeleteOpt) error + func (lm *LeaseManager) List(ctx context.Context, fs ...string) ([]leases.Lease, error)