Documentation ¶
Rendered for windows/amd64
Index ¶
- Variables
- func NewSnapshotter(root string) (snapshot.Snapshotter, error)
- type Snapshotter
- func (o *Snapshotter) Commit(ctx context.Context, name, key string) error
- func (o *Snapshotter) Mounts(ctx context.Context, key string) ([]mount.Mount, error)
- func (o *Snapshotter) Prepare(ctx context.Context, key, parent string) ([]mount.Mount, error)
- func (o *Snapshotter) Remove(ctx context.Context, key string) error
- func (o *Snapshotter) Stat(ctx context.Context, key string) (snapshot.Info, error)
- func (o *Snapshotter) Usage(ctx context.Context, key string) (snapshot.Usage, error)
- func (o *Snapshotter) View(ctx context.Context, key, parent string) ([]mount.Mount, error)
- func (o *Snapshotter) Walk(ctx context.Context, fn func(context.Context, snapshot.Info) error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotImplemented = errors.New("not implemented")
)
Functions ¶
func NewSnapshotter ¶
func NewSnapshotter(root string) (snapshot.Snapshotter, error)
Types ¶
type Snapshotter ¶
type Snapshotter struct {
// contains filtered or unexported fields
}
func (*Snapshotter) Commit ¶
func (o *Snapshotter) Commit(ctx context.Context, name, key string) error
func (*Snapshotter) Mounts ¶
Mounts returns the mounts for the transaction identified by key. Can be called on an read-write or readonly transaction.
This can be used to recover mounts after calling View or Prepare.
func (*Snapshotter) Remove ¶
func (o *Snapshotter) Remove(ctx context.Context, key string) error
Remove abandons the transaction identified by key. All resources associated with the key will be removed.
func (*Snapshotter) Stat ¶
Stat returns the info for an active or committed snapshot by name or key.
Should be used for parent resolution, existence checks and to discern the kind of snapshot.
Click to show internal directories.
Click to hide internal directories.