Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) AssociateWithArtifact(ctx context.Context, blobDigests []string, artifactDigest string) error
- func (_m *Controller) AssociateWithProjectByDigest(ctx context.Context, blobDigest string, projectID int64) error
- func (_m *Controller) AssociateWithProjectByID(ctx context.Context, blobID int64, projectID int64) error
- func (_m *Controller) CalculateTotalSize(ctx context.Context, excludeForeign bool) (int64, error)
- func (_m *Controller) CalculateTotalSizeByProject(ctx context.Context, projectID int64, excludeForeign bool) (int64, error)
- func (_m *Controller) Delete(ctx context.Context, id int64) error
- func (_m *Controller) Ensure(ctx context.Context, digest string, contentType string, size int64) (int64, error)
- func (_m *Controller) Exist(ctx context.Context, digest string, options ...blob.Option) (bool, error)
- func (_m *Controller) Fail(ctx context.Context, _a1 *pkgblob.Blob) error
- func (_m *Controller) FindMissingAssociationsForProject(ctx context.Context, projectID int64, blobs []*pkgblob.Blob) ([]*pkgblob.Blob, error)
- func (_m *Controller) Get(ctx context.Context, digest string, options ...blob.Option) (*pkgblob.Blob, error)
- func (_m *Controller) GetAcceptedBlobSize(ctx context.Context, sessionID string) (int64, error)
- func (_m *Controller) List(ctx context.Context, query *q.Query) ([]*pkgblob.Blob, error)
- func (_m *Controller) SetAcceptedBlobSize(ctx context.Context, sessionID string, size int64) error
- func (_m *Controller) Sync(ctx context.Context, references []distribution.Descriptor) error
- func (_m *Controller) Touch(ctx context.Context, _a1 *pkgblob.Blob) error
- func (_m *Controller) Update(ctx context.Context, _a1 *pkgblob.Blob) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
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 ¶
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) 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 ¶
GetAcceptedBlobSize provides a mock function with given fields: ctx, sessionID
func (*Controller) SetAcceptedBlobSize ¶
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