blob

package
v0.0.0-...-9471f5d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 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) AssociateWithArtifact

func (_m *Manager) AssociateWithArtifact(ctx context.Context, blobDigest string, artifactDigest string) (int64, error)

AssociateWithArtifact provides a mock function with given fields: ctx, blobDigest, artifactDigest

func (*Manager) AssociateWithProject

func (_m *Manager) AssociateWithProject(ctx context.Context, blobID int64, projectID int64) (int64, error)

AssociateWithProject provides a mock function with given fields: ctx, blobID, projectID

func (*Manager) CalculateTotalSize

func (_m *Manager) CalculateTotalSize(ctx context.Context, excludeForeignLayer bool) (int64, error)

CalculateTotalSize provides a mock function with given fields: ctx, excludeForeignLayer

func (*Manager) CalculateTotalSizeByProject

func (_m *Manager) CalculateTotalSizeByProject(ctx context.Context, projectID int64, excludeForeignLayer bool) (int64, error)

CalculateTotalSizeByProject provides a mock function with given fields: ctx, projectID, excludeForeignLayer

func (*Manager) CleanupAssociationsForArtifact

func (_m *Manager) CleanupAssociationsForArtifact(ctx context.Context, artifactDigest string) error

CleanupAssociationsForArtifact provides a mock function with given fields: ctx, artifactDigest

func (*Manager) CleanupAssociationsForProject

func (_m *Manager) CleanupAssociationsForProject(ctx context.Context, projectID int64, blobs []*models.Blob) error

CleanupAssociationsForProject provides a mock function with given fields: ctx, projectID, blobs

func (*Manager) Create

func (_m *Manager) Create(ctx context.Context, digest string, contentType string, size int64) (int64, error)

Create provides a mock function with given fields: ctx, digest, contentType, size

func (*Manager) Delete

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

Delete provides a mock function with given fields: ctx, id

func (*Manager) FindBlobsShouldUnassociatedWithProject

func (_m *Manager) FindBlobsShouldUnassociatedWithProject(ctx context.Context, projectID int64, blobs []*models.Blob) ([]*models.Blob, error)

FindBlobsShouldUnassociatedWithProject provides a mock function with given fields: ctx, projectID, blobs

func (*Manager) Get

func (_m *Manager) Get(ctx context.Context, digest string) (*models.Blob, error)

Get provides a mock function with given fields: ctx, digest

func (*Manager) GetByArt

func (_m *Manager) GetByArt(ctx context.Context, digest string) ([]*models.Blob, error)

GetByArt provides a mock function with given fields: ctx, digest

func (*Manager) List

func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*models.Blob, error)

List provides a mock function with given fields: ctx, query

func (*Manager) Update

func (_m *Manager) Update(ctx context.Context, _a1 *models.Blob) error

Update provides a mock function with given fields: ctx, _a1

func (*Manager) UpdateBlobStatus

func (_m *Manager) UpdateBlobStatus(ctx context.Context, _a1 *models.Blob) (int64, error)

UpdateBlobStatus provides a mock function with given fields: ctx, _a1

func (*Manager) UselessBlobs

func (_m *Manager) UselessBlobs(ctx context.Context, timeWindowHours int64) ([]*models.Blob, error)

UselessBlobs provides a mock function with given fields: ctx, timeWindowHours

Jump to

Keyboard shortcuts

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