blob

package
v0.0.0-...-a548ab7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func NewController

func NewController(t interface {
	mock.TestingT
	Cleanup(func())
}) *Controller

NewController creates a new instance of Controller. 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 (*Controller) AssociateWithArtifact

func (_m *Controller) AssociateWithArtifact(ctx context.Context, blobDigests []string, artifactDigest string) error

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

func (*Controller) AssociateWithProjectByDigest

func (_m *Controller) AssociateWithProjectByDigest(ctx context.Context, blobDigest string, projectID int64) error

AssociateWithProjectByDigest provides a mock function with given fields: ctx, blobDigest, projectID

func (*Controller) AssociateWithProjectByID

func (_m *Controller) AssociateWithProjectByID(ctx context.Context, blobID int64, projectID int64) error

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

func (*Controller) CalculateTotalSize

func (_m *Controller) CalculateTotalSize(ctx context.Context, excludeForeign bool) (int64, error)

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

func (*Controller) CalculateTotalSizeByProject

func (_m *Controller) CalculateTotalSizeByProject(ctx context.Context, projectID int64, excludeForeign bool) (int64, error)

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

func (*Controller) Delete

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

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

func (*Controller) Ensure

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

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

func (*Controller) Exist

func (_m *Controller) Exist(ctx context.Context, digest string, options ...blob.Option) (bool, error)

Exist provides a mock function with given fields: ctx, digest, options

func (*Controller) Fail

func (_m *Controller) Fail(ctx context.Context, _a1 *pkgblob.Blob) error

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

func (*Controller) FindMissingAssociationsForProject

func (_m *Controller) FindMissingAssociationsForProject(ctx context.Context, projectID int64, blobs []*pkgblob.Blob) ([]*pkgblob.Blob, error)

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

func (*Controller) Get

func (_m *Controller) Get(ctx context.Context, digest string, options ...blob.Option) (*pkgblob.Blob, error)

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

func (*Controller) GetAcceptedBlobSize

func (_m *Controller) GetAcceptedBlobSize(ctx context.Context, sessionID string) (int64, error)

GetAcceptedBlobSize provides a mock function with given fields: ctx, sessionID

func (*Controller) List

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

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

func (*Controller) SetAcceptedBlobSize

func (_m *Controller) SetAcceptedBlobSize(ctx context.Context, sessionID string, size int64) error

SetAcceptedBlobSize provides a mock function with given fields: ctx, sessionID, size

func (*Controller) Sync

func (_m *Controller) Sync(ctx context.Context, references []distribution.Descriptor) error

Sync provides a mock function with given fields: ctx, references

func (*Controller) Touch

func (_m *Controller) Touch(ctx context.Context, _a1 *pkgblob.Blob) error

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

func (*Controller) Update

func (_m *Controller) Update(ctx context.Context, _a1 *pkgblob.Blob) error

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

Jump to

Keyboard shortcuts

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