mocks

package
v1.12.4-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	mock.Mock
}

policy is an autogenerated mock type for the TreeForSource type

func (*Policy) ApplyRetentionPolicy

func (_m *Policy) ApplyRetentionPolicy(ctx context.Context, rep repo.RepositoryWriter, sourceInfo snapshot.SourceInfo, reallyDelete bool) ([]*snapshot.Manifest, error)

ApplyRetentionPolicy provides a mock function with given fields: ctx, rep, sourceInfo, reallyDelete

func (*Policy) SetPolicy

func (_m *Policy) SetPolicy(ctx context.Context, rep repo.RepositoryWriter, si snapshot.SourceInfo, pol *policy.Policy) error

func (*Policy) TreeForSource

func (_m *Policy) TreeForSource(ctx context.Context, rep repo.Repository, si snapshot.SourceInfo) (*policy.Tree, error)

Execute provides a mock function with given fields: ctx, rep, si

type ShimRepository

type ShimRepository struct {
	mock.Mock
}

shimRepository is an autogenerated mock type for the shimRepository type

func (*ShimRepository) Flush

func (_m *ShimRepository) Flush(ctx context.Context) error

Flush provides a mock function with given fields: ctx

type Snapshot

type Snapshot struct {
	mock.Mock
}

snapshot is an autogenerated mock type for the snapshot type

func (*Snapshot) LoadSnapshot

func (_m *Snapshot) LoadSnapshot(ctx context.Context, rep repo.Repository, manifestID manifest.ID) (*snapshot.Manifest, error)

LoadSnapshot provides a mock function with given fields: ctx, rep, manifestID

func (*Snapshot) SaveSnapshot

func (_m *Snapshot) SaveSnapshot(ctx context.Context, rep repo.RepositoryWriter, man *snapshot.Manifest) (manifest.ID, error)

SaveSnapshot provides a mock function with given fields: ctx, rep, man

type Uploader

type Uploader struct {
	mock.Mock
}

Upload is an autogenerated mock type for the Upload type

func (*Uploader) Upload

func (_m *Uploader) Upload(ctx context.Context, source fs.Entry, policyTree *policy.Tree, sourceInfo snapshot.SourceInfo, previousManifests ...*snapshot.Manifest) (*snapshot.Manifest, error)

Execute provides a mock function with given fields: ctx, source, policyTree, sourceInfo, previousManifests

Jump to

Keyboard shortcuts

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