windows

package
v1.0.0-alpha5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2017 License: Apache-2.0, CC-BY-SA-4.0 Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

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, opts ...snapshot.Opt) error

func (*Snapshotter) Mounts

func (o *Snapshotter) Mounts(ctx context.Context, key string) ([]mount.Mount, error)

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) Prepare

func (o *Snapshotter) Prepare(ctx context.Context, key, parent string, opts ...snapshot.Opt) ([]mount.Mount, error)

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

func (o *Snapshotter) Stat(ctx context.Context, key string) (snapshot.Info, error)

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.

func (*Snapshotter) Update

func (o *Snapshotter) Update(ctx context.Context, info snapshot.Info, fieldpaths ...string) (snapshot.Info, error)

func (*Snapshotter) Usage

func (o *Snapshotter) Usage(ctx context.Context, key string) (snapshot.Usage, error)

func (*Snapshotter) View

func (o *Snapshotter) View(ctx context.Context, key, parent string, opts ...snapshot.Opt) ([]mount.Mount, error)

func (*Snapshotter) Walk

func (o *Snapshotter) Walk(ctx context.Context, fn func(context.Context, snapshot.Info) error) error

Walk the committed snapshots.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL