package fscache
import "github.com/docker/cli/components/engine/builder/fscache"
Index ¶
- type Backend
- type CachePolicy
- type FSCache
- func NewFSCache(opt Opt) (*FSCache, error)
- func (fsc *FSCache) Close() error
- func (fsc *FSCache) DiskUsage() (int64, error)
- func (fsc *FSCache) Prune(ctx context.Context) (uint64, error)
- func (fsc *FSCache) RegisterTransport(id string, transport Transport) error
- func (fsc *FSCache) SyncFrom(ctx context.Context, id RemoteIdentifier) (builder.Source, error)
- type GCPolicy
- type Opt
- type RemoteIdentifier
- type Transport
Types ¶
type Backend ¶
Backend is a backing implementation for FSCache
func NewNaiveCacheBackend ¶
NewNaiveCacheBackend is a basic backend implementation for fscache
type CachePolicy ¶
CachePolicy defines policy for keeping a resource in cache
type FSCache ¶
type FSCache struct {
// contains filtered or unexported fields
}
FSCache allows syncing remote resources to cached snapshots
func NewFSCache ¶
NewFSCache returns new FSCache object
func (*FSCache) Close ¶
Close stops the gc and closes the persistent db
func (*FSCache) DiskUsage ¶
DiskUsage reports how much data is allocated by the cache
func (*FSCache) Prune ¶
Prune allows manually cleaning up the cache
func (*FSCache) RegisterTransport ¶
RegisterTransport registers a new transport method
func (*FSCache) SyncFrom ¶
SyncFrom returns a source based on a remote identifier
type GCPolicy ¶
GCPolicy defines policy for garbage collection
type Opt ¶
Opt defines options for initializing FSCache
type RemoteIdentifier ¶
RemoteIdentifier identifies a transfer request
type Transport ¶
type Transport interface { Copy(ctx context.Context, id RemoteIdentifier, dest string, cs filesync.CacheUpdater) error }
Transport defines a method for syncing remote data to FSCache
Source Files ¶
- Version
- v17.11.0-ce-rc3+incompatible
- Published
- Nov 8, 2017
- Platform
- js/wasm
- Imports
- 22 packages
- Last checked
- 59 minutes ago –
Tools for package owners.