internal

package
v0.0.0-...-6b2d232 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

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

Mounts 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) Stat

Stat 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.

func (*FailingSnapshotter) Usage

Usage mocks a failing remote call with a non-nil error.

func (*FailingSnapshotter) View

func (s *FailingSnapshotter) View(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)

View mocks a failing remote call with a non-nil error.

func (*FailingSnapshotter) Walk

func (s *FailingSnapshotter) Walk(ctx context.Context, fn snapshots.WalkFunc, filters ...string) error

Walk 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) Mounts

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

Mounts 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) Stat

Stat 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.

func (*SuccessfulSnapshotter) Usage

Usage mocks a successful remote call with a nil error.

func (*SuccessfulSnapshotter) View

func (s *SuccessfulSnapshotter) View(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)

View mocks a successful remote call with a nil error.

func (*SuccessfulSnapshotter) Walk

func (s *SuccessfulSnapshotter) Walk(ctx context.Context, fn snapshots.WalkFunc, filters ...string) error

Walk mocks a successful remote call with a nil error.

Jump to

Keyboard shortcuts

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