Documentation ¶
Index ¶
- type Backend
- type CachePolicy
- type FSCache
- func (fsc *FSCache) Close() error
- func (fsc *FSCache) DiskUsage(ctx context.Context) (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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 (*FSCache) RegisterTransport ¶
RegisterTransport registers a new transport method
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
Click to show internal directories.
Click to hide internal directories.