Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) AssociateWithArtifact(ctx context.Context, blobDigest string, artifactDigest string) (int64, error)
- func (_m *Manager) AssociateWithProject(ctx context.Context, blobID int64, projectID int64) (int64, error)
- func (_m *Manager) CalculateTotalSize(ctx context.Context, excludeForeignLayer bool) (int64, error)
- func (_m *Manager) CalculateTotalSizeByProject(ctx context.Context, projectID int64, excludeForeignLayer bool) (int64, error)
- func (_m *Manager) CleanupAssociationsForArtifact(ctx context.Context, artifactDigest string) error
- func (_m *Manager) CleanupAssociationsForProject(ctx context.Context, projectID int64, blobs []*blob.Blob) error
- func (_m *Manager) Create(ctx context.Context, digest string, contentType string, size int64) (int64, error)
- func (_m *Manager) Delete(ctx context.Context, id int64) error
- func (_m *Manager) FindBlobsShouldUnassociatedWithProject(ctx context.Context, projectID int64, blobs []*models.Blob) ([]*models.Blob, error)
- func (_m *Manager) Get(ctx context.Context, digest string) (*blob.Blob, error)
- func (_m *Manager) GetByArt(ctx context.Context, digest string) ([]*models.Blob, error)
- func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*blob.Blob, error)
- func (_m *Manager) Update(ctx context.Context, _a1 *blob.Blob) error
- func (_m *Manager) UpdateBlobStatus(ctx context.Context, _a1 *models.Blob) (int64, error)
- func (_m *Manager) UselessBlobs(ctx context.Context, timeWindowHours int64) ([]*models.Blob, error)
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) 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 ¶
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 ¶
CleanupAssociationsForArtifact provides a mock function with given fields: ctx, artifactDigest
func (*Manager) CleanupAssociationsForProject ¶
func (_m *Manager) CleanupAssociationsForProject(ctx context.Context, projectID int64, blobs []*blob.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) 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) UpdateBlobStatus ¶
UpdateBlobStatus provides a mock function with given fields: ctx, _a1