systemartifact

package
v0.0.0-...-d01dfd4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

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

func (_m *Manager) Cleanup(ctx context.Context) (int64, int64, error)

Cleanup provides a mock function with given fields: ctx

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

func (_m *Manager) GetStorageSize(ctx context.Context) (int64, error)

GetStorageSize provides a mock function with given fields: ctx

func (*Manager) GetSystemArtifactProjectNames

func (_m *Manager) GetSystemArtifactProjectNames() []string

GetSystemArtifactProjectNames provides a mock function with given 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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