Documentation ¶
Index ¶
- type Policy
- func (_m *Policy) ApplyRetentionPolicy(ctx context.Context, rep repo.RepositoryWriter, sourceInfo snapshot.SourceInfo, ...) ([]manifest.ID, error)
- func (_m *Policy) SetPolicy(ctx context.Context, rep repo.RepositoryWriter, si snapshot.SourceInfo, ...) error
- func (_m *Policy) TreeForSource(ctx context.Context, rep repo.Repository, si snapshot.SourceInfo) (*policy.Tree, error)
- type ShimRepository
- type Snapshot
- type Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
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) ([]manifest.ID, 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 ¶
shimRepository is an autogenerated mock type for the shimRepository type
type Snapshot ¶
snapshot is an autogenerated mock type for the snapshot type
type Uploader ¶
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
Click to show internal directories.
Click to hide internal directories.