Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) AddLabel(ctx context.Context, artifactID int64, labelID int64) error
- func (_m *Controller) Copy(ctx context.Context, srcRepo string, reference string, dstRepo string) (int64, error)
- func (_m *Controller) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) Delete(ctx context.Context, id int64) error
- func (_m *Controller) Ensure(ctx context.Context, repository string, digest string, ...) (bool, int64, error)
- func (_m *Controller) Get(ctx context.Context, id int64, option *artifact.Option) (*artifact.Artifact, error)
- func (_m *Controller) GetAddition(ctx context.Context, artifactID int64, additionType string) (*processor.Addition, error)
- func (_m *Controller) GetByReference(ctx context.Context, repository string, reference string, ...) (*artifact.Artifact, error)
- func (_m *Controller) HasUnscannableLayer(ctx context.Context, dgst string) (bool, error)
- func (_m *Controller) List(ctx context.Context, query *q.Query, option *artifact.Option) ([]*artifact.Artifact, error)
- func (_m *Controller) ListWithLatest(ctx context.Context, query *q.Query, option *artifact.Option) ([]*artifact.Artifact, error)
- func (_m *Controller) RemoveLabel(ctx context.Context, artifactID int64, labelID int64) error
- func (_m *Controller) UpdatePullTime(ctx context.Context, artifactID int64, tagID int64, _a3 time.Time) error
- func (_m *Controller) Walk(ctx context.Context, root *artifact.Artifact, ...) 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) AddLabel ¶
AddLabel provides a mock function with given fields: ctx, artifactID, labelID
func (*Controller) Copy ¶
func (_m *Controller) Copy(ctx context.Context, srcRepo string, reference string, dstRepo string) (int64, error)
Copy provides a mock function with given fields: ctx, srcRepo, reference, dstRepo
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, repository string, digest string, option *artifact.ArtOption) (bool, int64, error)
Ensure provides a mock function with given fields: ctx, repository, digest, option
func (*Controller) Get ¶
func (_m *Controller) Get(ctx context.Context, id int64, option *artifact.Option) (*artifact.Artifact, error)
Get provides a mock function with given fields: ctx, id, option
func (*Controller) GetAddition ¶
func (_m *Controller) GetAddition(ctx context.Context, artifactID int64, additionType string) (*processor.Addition, error)
GetAddition provides a mock function with given fields: ctx, artifactID, additionType
func (*Controller) GetByReference ¶
func (_m *Controller) GetByReference(ctx context.Context, repository string, reference string, option *artifact.Option) (*artifact.Artifact, error)
GetByReference provides a mock function with given fields: ctx, repository, reference, option
func (*Controller) HasUnscannableLayer ¶
HasUnscannableLayer provides a mock function with given fields: ctx, dgst
func (*Controller) List ¶
func (_m *Controller) List(ctx context.Context, query *q.Query, option *artifact.Option) ([]*artifact.Artifact, error)
List provides a mock function with given fields: ctx, query, option
func (*Controller) ListWithLatest ¶
func (_m *Controller) ListWithLatest(ctx context.Context, query *q.Query, option *artifact.Option) ([]*artifact.Artifact, error)
ListWithLatest provides a mock function with given fields: ctx, query, option
func (*Controller) RemoveLabel ¶
RemoveLabel provides a mock function with given fields: ctx, artifactID, labelID
func (*Controller) UpdatePullTime ¶
func (_m *Controller) UpdatePullTime(ctx context.Context, artifactID int64, tagID int64, _a3 time.Time) error
UpdatePullTime provides a mock function with given fields: ctx, artifactID, tagID, _a3