Documentation ¶
Index ¶
- type FailingSnapshotter
- func (s *FailingSnapshotter) Cleanup(ctx context.Context) error
- func (s *FailingSnapshotter) Close() error
- func (s *FailingSnapshotter) Commit(ctx context.Context, name string, key string, opts ...snapshots.Opt) error
- func (s *FailingSnapshotter) Mounts(ctx context.Context, key string) ([]mount.Mount, error)
- func (s *FailingSnapshotter) Prepare(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
- func (s *FailingSnapshotter) Remove(ctx context.Context, key string) error
- func (s *FailingSnapshotter) Stat(ctx context.Context, key string) (snapshots.Info, error)
- func (s *FailingSnapshotter) Update(ctx context.Context, info snapshots.Info, fieldpaths ...string) (snapshots.Info, error)
- func (s *FailingSnapshotter) Usage(ctx context.Context, key string) (snapshots.Usage, error)
- func (s *FailingSnapshotter) View(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
- func (s *FailingSnapshotter) Walk(ctx context.Context, fn snapshots.WalkFunc, filters ...string) error
- type SuccessfulSnapshotter
- func (s *SuccessfulSnapshotter) Cleanup(ctx context.Context) error
- func (s *SuccessfulSnapshotter) Close() error
- func (s *SuccessfulSnapshotter) Commit(ctx context.Context, name string, key string, opts ...snapshots.Opt) error
- func (s *SuccessfulSnapshotter) Mounts(ctx context.Context, key string) ([]mount.Mount, error)
- func (s *SuccessfulSnapshotter) Prepare(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
- func (s *SuccessfulSnapshotter) Remove(ctx context.Context, key string) error
- func (s *SuccessfulSnapshotter) Stat(ctx context.Context, key string) (snapshots.Info, error)
- func (s *SuccessfulSnapshotter) Update(ctx context.Context, info snapshots.Info, fieldpaths ...string) (snapshots.Info, error)
- func (s *SuccessfulSnapshotter) Usage(ctx context.Context, key string) (snapshots.Usage, error)
- func (s *SuccessfulSnapshotter) View(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
- func (s *SuccessfulSnapshotter) Walk(ctx context.Context, fn snapshots.WalkFunc, filters ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailingSnapshotter ¶
type FailingSnapshotter struct{}
FailingSnapshotter mocks containerd snapshots.Snapshotter interface return non-nil errors on calls.
func (*FailingSnapshotter) Cleanup ¶
func (s *FailingSnapshotter) Cleanup(ctx context.Context) error
Cleanup mocks a failing remote call with a non-nil error.
func (*FailingSnapshotter) Close ¶
func (s *FailingSnapshotter) Close() error
Close mocks a failing remote call with a non-nil error.
func (*FailingSnapshotter) Commit ¶
func (s *FailingSnapshotter) Commit(ctx context.Context, name string, key string, opts ...snapshots.Opt) error
Commit mocks a failing remote call with a non-nil error.
func (*FailingSnapshotter) Prepare ¶
func (s *FailingSnapshotter) Prepare(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
Prepare mocks a failing remote call with a non-nil error.
func (*FailingSnapshotter) Remove ¶
func (s *FailingSnapshotter) Remove(ctx context.Context, key string) error
Remove mocks a failing remote call with a non-nil error.
func (*FailingSnapshotter) Update ¶
func (s *FailingSnapshotter) Update(ctx context.Context, info snapshots.Info, fieldpaths ...string) (snapshots.Info, error)
Update mocks a failing remote call with a non-nil error.
type SuccessfulSnapshotter ¶
type SuccessfulSnapshotter struct{}
SuccessfulSnapshotter mocks containerd snapshots.Snapshotter interface returning nil errors on calls.
func (*SuccessfulSnapshotter) Cleanup ¶
func (s *SuccessfulSnapshotter) Cleanup(ctx context.Context) error
Cleanup mocks a successful remote call with a nil error.
func (*SuccessfulSnapshotter) Close ¶
func (s *SuccessfulSnapshotter) Close() error
Close mocks a successful remote call with a nil error.
func (*SuccessfulSnapshotter) Commit ¶
func (s *SuccessfulSnapshotter) Commit(ctx context.Context, name string, key string, opts ...snapshots.Opt) error
Commit mocks a successful remote call with a nil error.
func (*SuccessfulSnapshotter) Prepare ¶
func (s *SuccessfulSnapshotter) Prepare(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
Prepare mocks a successful remote call with a nil error.
func (*SuccessfulSnapshotter) Remove ¶
func (s *SuccessfulSnapshotter) Remove(ctx context.Context, key string) error
Remove mocks a successful remote call with a nil error.
func (*SuccessfulSnapshotter) Update ¶
func (s *SuccessfulSnapshotter) Update(ctx context.Context, info snapshots.Info, fieldpaths ...string) (snapshots.Info, error)
Update mocks a successful remote call with a nil error.