Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) Cleanup(ctx context.Context) (int64, int64, error)
- func (_m *Manager) Create(ctx context.Context, artifactRecord *model.SystemArtifact, reader io.Reader) (int64, error)
- func (_m *Manager) Delete(ctx context.Context, vendor string, repository string, digest string) error
- func (_m *Manager) Exists(ctx context.Context, vendor string, repository string, digest string) (bool, error)
- func (_m *Manager) GetCleanupCriteria(vendor string, artifactType string) systemartifact.Selector
- func (_m *Manager) GetStorageSize(ctx context.Context) (int64, error)
- func (_m *Manager) GetSystemArtifactProjectNames() []string
- func (_m *Manager) Read(ctx context.Context, vendor string, repository string, digest string) (io.ReadCloser, error)
- func (_m *Manager) RegisterCleanupCriteria(vendor string, artifactType string, criteria systemartifact.Selector)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Manager) Create ¶
func (_m *Manager) Create(ctx context.Context, artifactRecord *model.SystemArtifact, reader io.Reader) (int64, error)
Create provides a mock function with given fields: ctx, artifactRecord, reader
func (*Manager) Delete ¶
func (_m *Manager) Delete(ctx context.Context, vendor string, repository string, digest string) error
Delete provides a mock function with given fields: ctx, vendor, repository, digest
func (*Manager) Exists ¶
func (_m *Manager) Exists(ctx context.Context, vendor string, repository string, digest string) (bool, error)
Exists provides a mock function with given fields: ctx, vendor, repository, digest
func (*Manager) GetCleanupCriteria ¶
func (_m *Manager) GetCleanupCriteria(vendor string, artifactType string) systemartifact.Selector
GetCleanupCriteria provides a mock function with given fields: vendor, artifactType
func (*Manager) GetStorageSize ¶
GetStorageSize provides a mock function with given fields: ctx
func (*Manager) GetSystemArtifactProjectNames ¶
GetSystemArtifactProjectNames provides a mock function with no fields
func (*Manager) Read ¶
func (_m *Manager) Read(ctx context.Context, vendor string, repository string, digest string) (io.ReadCloser, error)
Read provides a mock function with given fields: ctx, vendor, repository, digest
func (*Manager) RegisterCleanupCriteria ¶
func (_m *Manager) RegisterCleanupCriteria(vendor string, artifactType string, criteria systemartifact.Selector)
RegisterCleanupCriteria provides a mock function with given fields: vendor, artifactType, criteria