Documentation
¶
Index ¶
- func CachePolicyRetain(m withMetadata) error
- func GetDescription(si *metadata.StorageItem) string
- func HasCachePolicyRetain(m withMetadata) bool
- func IsLocked(err error) bool
- func IsNotFound(err error) bool
- func ReadFile(ctx context.Context, ref ImmutableRef, p string) ([]byte, error)
- type Accessor
- type Controller
- type GCPolicy
- type ImmutableRef
- type Manager
- type ManagerOpt
- type Mountable
- type MutableRef
- type Ref
- type RefOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CachePolicyRetain ¶
func CachePolicyRetain(m withMetadata) error
func GetDescription ¶
func GetDescription(si *metadata.StorageItem) string
func HasCachePolicyRetain ¶
func HasCachePolicyRetain(m withMetadata) bool
func IsNotFound ¶
Types ¶
type Accessor ¶
type Accessor interface {
Get(ctx context.Context, id string, opts ...RefOption) (ImmutableRef, error)
New(ctx context.Context, s ImmutableRef, opts ...RefOption) (MutableRef, error)
GetMutable(ctx context.Context, id string) (MutableRef, error) // Rebase?
}
type Controller ¶
type ImmutableRef ¶
type ImmutableRef interface {
Ref
Parent() ImmutableRef
Finalize(ctx context.Context) error // Make sure reference is flushed to driver
}
type Manager ¶
type Manager interface {
Accessor
Controller
Close() error
}
func NewManager ¶
func NewManager(opt ManagerOpt) (Manager, error)
type ManagerOpt ¶
type ManagerOpt struct {
Snapshotter snapshots.Snapshotter
GCPolicy GCPolicy
MetadataStore *metadata.Store
}
type MutableRef ¶
type MutableRef interface {
Ref
Commit(context.Context) (ImmutableRef, error)
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package contenthash is a generated protocol buffer package.
|
Package contenthash is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.