[WIP] Remove vendor folder from harbor code base (#19508)

* Remove vendor folder from harbor code base

Signed-off-by: Daniel Jiang <jiangd@vmware.com>

* debug ut failure

* debug failure

* debug failure

---------

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
Daniel Jiang 2023-11-05 14:37:25 +08:00 committed by GitHub
parent d0a9754786
commit 3f7c605cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4800 changed files with 523 additions and 1533408 deletions

View File

@ -134,12 +134,7 @@ The folder graph below shows the structure of the source code folder `harbor/src
│   ├── registry
│   ├── router
│   ├── v2.0
├── testing # Some utilities to handle testing.
└── vendor # Go code dependencies
├── github.com
├── golang.org
├── google.golang.org
└── gopkg.in
└── testing # Some utilities to handle testing.
```
### Setup Development Environment
@ -172,8 +167,6 @@ Harbor backend is written in [Go](http://golang.org/). If you don't have a Harbo
Ensure your GOPATH and PATH have been configured in accordance with the Go environment instructions.
**Dependency Management:** Harbor uses [Go modules](https://github.com/golang/go/wiki/Modules) for dependency management of go code. The official maintainers will take the responsibility for managing the code in `vendor` directory. Please don't try to submit a PR to update the dependency code, open an issue instead. If your PR requires a change in the vendor code please make sure you discuss it with the maintainers in advance.
#### Web
Harbor web UI is built based on [Clarity](https://vmware.github.io/clarity/) and [Angular](https://angular.io/) web framework. To setup web UI development environment, please make sure the [npm](https://www.npmjs.com/get-npm) tool is installed first.
@ -258,7 +251,7 @@ go install github.com/GeertJohan/fgt@latest
#In the #working_dir/harbor, run
go list ./... | grep -v -E 'vendor|tests' | xargs -L1 fgt golint
go list ./... | grep -v -E 'tests' | xargs -L1 fgt golint
```

View File

@ -156,7 +156,7 @@ ifneq ($(GOBUILDLDFLAGS),)
endif
# go build command
GOIMAGEBUILDCMD=/usr/local/go/bin/go build -mod vendor
GOIMAGEBUILDCMD=/usr/local/go/bin/go build
GOIMAGEBUILD_COMMON=$(GOIMAGEBUILDCMD) $(GOFLAGS) ${GOTAGS} ${GOLDFLAGS}
GOIMAGEBUILD_CORE=$(GOIMAGEBUILDCMD) $(GOFLAGS) ${GOTAGS} --ldflags "-w -s $(CORE_LDFLAGS)"
@ -312,7 +312,7 @@ gen_apis: lint_apis
MOCKERY_IMAGENAME=$(IMAGENAMESPACE)/mockery
MOCKERY_VERSION=v2.22.1
MOCKERY_VERSION=v2.35.4
MOCKERY=$(RUNCONTAINER) ${MOCKERY_IMAGENAME}:${MOCKERY_VERSION}
MOCKERY_IMAGE_BUILD_CMD=${DOCKERBUILD} -f ${TOOLSPATH}/mockery/Dockerfile --build-arg GOLANG=${GOBUILDIMAGE} --build-arg MOCKERY_VERSION=${MOCKERY_VERSION} -t ${MOCKERY_IMAGENAME}:$(MOCKERY_VERSION) .
@ -466,7 +466,7 @@ go_check: gen_apis mocks_check misspell commentfmt lint
commentfmt:
@echo checking comment format...
@res=$$(find . -type d \( -path ./src/vendor -o -path ./tests \) -prune -o -name '*.go' -print | xargs egrep '(^|\s)\/\/(\S)'|grep -v '//go:generate'); \
@res=$$(find . -type d \( -path ./tests \) -prune -o -name '*.go' -print | xargs egrep '(^|\s)\/\/(\S)'|grep -v '//go:generate'); \
if [ -n "$${res}" ]; then \
echo checking comment format fail.. ; \
echo missing whitespace between // and comment body;\
@ -476,7 +476,7 @@ commentfmt:
misspell:
@echo checking misspell...
@find . -type d \( -path ./src/vendor -o -path ./tests \) -prune -o -name '*.go' -print | xargs misspell -error
@find . -type d \( -path ./tests \) -prune -o -name '*.go' -print | xargs misspell -error
# golangci-lint binary installation or refer to https://golangci-lint.run/usage/install/#local-installation
# curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.2

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package flow
@ -56,13 +56,12 @@ func (_m *mockFactory) Create(_a0 *model.Registry) (adapter.Adapter, error) {
return r0, r1
}
type mockConstructorTestingTnewMockFactory interface {
// newMockFactory creates a new instance of mockFactory. 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 newMockFactory(t interface {
mock.TestingT
Cleanup(func())
}
// newMockFactory creates a new instance of mockFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockFactory(t mockConstructorTestingTnewMockFactory) *mockFactory {
}) *mockFactory {
mock := &mockFactory{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package flow
@ -438,13 +438,12 @@ func (_m *mockAdapter) PushManifest(repository string, reference string, mediaTy
return r0, r1
}
type mockConstructorTestingTnewMockAdapter interface {
// newMockAdapter creates a new instance of mockAdapter. 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 newMockAdapter(t interface {
mock.TestingT
Cleanup(func())
}
// newMockAdapter creates a new instance of mockAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockAdapter(t mockConstructorTestingTnewMockAdapter) *mockAdapter {
}) *mockAdapter {
mock := &mockAdapter{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package replication
@ -31,13 +31,12 @@ func (_m *flowController) Start(ctx context.Context, executionID int64, policy *
return r0
}
type mockConstructorTestingTnewFlowController interface {
// newFlowController creates a new instance of flowController. 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 newFlowController(t interface {
mock.TestingT
Cleanup(func())
}
// newFlowController creates a new instance of flowController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newFlowController(t mockConstructorTestingTnewFlowController) *flowController {
}) *flowController {
mock := &flowController{}
mock.Mock.Test(t)

View File

@ -97,6 +97,7 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/denverdino/aliyungo v0.0.0-20191227032621-df38c6fa730c // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/distribution/reference v0.5.0 // indirect
github.com/dnaeon/go-vcr v1.2.0 // indirect
github.com/docker/go-metrics v0.0.1 // indirect
github.com/felixge/httpsnoop v1.0.3 // indirect

View File

@ -162,6 +162,10 @@ github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cu
github.com/dhui/dktest v0.3.16 h1:i6gq2YQEtcrjKbeJpBkWjE8MmLZPYllcjOFbTZuPDnw=
github.com/distribution/distribution v2.8.2+incompatible h1:k9+4DKdOG+quPFZXT/mUsiQrGu9vYCp+dXpuPkuqhk8=
github.com/distribution/distribution v2.8.2+incompatible/go.mod h1:EgLm2NgWtdKgzF9NpMzUKgzmR7AMmb0VQi2B+ZzDRjc=
github.com/distribution/distribution v2.8.3+incompatible h1:RlpEXBLq/WPXYvBYMDAmBX/SnhD67qwtvW/DzKc8pAo=
github.com/distribution/distribution v2.8.3+incompatible/go.mod h1:EgLm2NgWtdKgzF9NpMzUKgzmR7AMmb0VQi2B+ZzDRjc=
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI=
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
github.com/docker/docker v20.10.24+incompatible h1:Ugvxm7a8+Gz6vqQYQQ2W7GYq5EUPaAiuPgIfVyI3dYE=

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package mgt
@ -153,13 +153,12 @@ func (_m *MockManager) SaveJob(_a0 *job.Stats) error {
return r0
}
type mockConstructorTestingTNewMockManager interface {
// NewMockManager creates a new instance of MockManager. 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 NewMockManager(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockManager creates a new instance of MockManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockManager(t mockConstructorTestingTNewMockManager) *MockManager {
}) *MockManager {
mock := &MockManager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package period
@ -52,13 +52,12 @@ func (_m *MockScheduler) UnSchedule(policyID string) error {
return r0
}
type mockConstructorTestingTNewMockScheduler interface {
// NewMockScheduler creates a new instance of MockScheduler. 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 NewMockScheduler(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockScheduler creates a new instance of MockScheduler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockScheduler(t mockConstructorTestingTNewMockScheduler) *MockScheduler {
}) *MockScheduler {
mock := &MockScheduler{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package cache
@ -117,13 +117,12 @@ func (_m *mockCache) Scan(ctx context.Context, match string) (Iterator, error) {
return r0, r1
}
type mockConstructorTestingTnewMockCache interface {
// newMockCache creates a new instance of mockCache. 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 newMockCache(t interface {
mock.TestingT
Cleanup(func())
}
// newMockCache creates a new instance of mockCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockCache(t mockConstructorTestingTnewMockCache) *mockCache {
}) *mockCache {
mock := &mockCache{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package scheduler
@ -173,13 +173,12 @@ func (_m *mockDAO) UpdateRevision(ctx context.Context, id int64, revision int64)
return r0, r1
}
type mockConstructorTestingTnewMockDAO interface {
// newMockDAO creates a new instance of mockDAO. 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 newMockDAO(t interface {
mock.TestingT
Cleanup(func())
}
// newMockDAO creates a new instance of mockDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockDAO(t mockConstructorTestingTnewMockDAO) *mockDAO {
}) *mockDAO {
mock := &mockDAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package task
@ -222,13 +222,12 @@ func (_m *mockExecutionDAO) Update(ctx context.Context, execution *dao.Execution
return r0
}
type mockConstructorTestingTnewMockExecutionDAO interface {
// newMockExecutionDAO creates a new instance of mockExecutionDAO. 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 newMockExecutionDAO(t interface {
mock.TestingT
Cleanup(func())
}
// newMockExecutionDAO creates a new instance of mockExecutionDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockExecutionDAO(t mockConstructorTestingTnewMockExecutionDAO) *mockExecutionDAO {
}) *mockExecutionDAO {
mock := &mockExecutionDAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package task
@ -130,13 +130,12 @@ func (_m *mockJobserviceClient) SubmitJob(_a0 *models.JobData) (string, error) {
return r0, r1
}
type mockConstructorTestingTnewMockJobserviceClient interface {
// newMockJobserviceClient creates a new instance of mockJobserviceClient. 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 newMockJobserviceClient(t interface {
mock.TestingT
Cleanup(func())
}
// newMockJobserviceClient creates a new instance of mockJobserviceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockJobserviceClient(t mockConstructorTestingTnewMockJobserviceClient) *mockJobserviceClient {
}) *mockJobserviceClient {
mock := &mockJobserviceClient{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package task
@ -67,13 +67,12 @@ func (_m *mockSweepManager) ListCandidates(ctx context.Context, vendorType strin
return r0, r1
}
type mockConstructorTestingTnewMockSweepManager interface {
// newMockSweepManager creates a new instance of mockSweepManager. 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 newMockSweepManager(t interface {
mock.TestingT
Cleanup(func())
}
// newMockSweepManager creates a new instance of mockSweepManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockSweepManager(t mockConstructorTestingTnewMockSweepManager) *mockSweepManager {
}) *mockSweepManager {
mock := &mockSweepManager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package task
@ -283,13 +283,12 @@ func (_m *mockTaskDAO) UpdateStatusInBatch(ctx context.Context, jobIDs []string,
return r0
}
type mockConstructorTestingTnewMockTaskDAO interface {
// newMockTaskDAO creates a new instance of mockTaskDAO. 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 newMockTaskDAO(t interface {
mock.TestingT
Cleanup(func())
}
// newMockTaskDAO creates a new instance of mockTaskDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockTaskDAO(t mockConstructorTestingTnewMockTaskDAO) *mockTaskDAO {
}) *mockTaskDAO {
mock := &mockTaskDAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package task
@ -288,13 +288,12 @@ func (_m *mockTaskManager) UpdateStatusInBatch(ctx context.Context, jobIDs []str
return r0
}
type mockConstructorTestingTnewMockTaskManager interface {
// newMockTaskManager creates a new instance of mockTaskManager. 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 newMockTaskManager(t interface {
mock.TestingT
Cleanup(func())
}
// newMockTaskManager creates a new instance of mockTaskManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockTaskManager(t mockConstructorTestingTnewMockTaskManager) *mockTaskManager {
}) *mockTaskManager {
mock := &mockTaskManager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package security
@ -99,13 +99,12 @@ func (_m *Context) Name() string {
return r0
}
type mockConstructorTestingTNewContext interface {
// NewContext creates a new instance of Context. 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 NewContext(t interface {
mock.TestingT
Cleanup(func())
}
// NewContext creates a new instance of Context. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewContext(t mockConstructorTestingTNewContext) *Context {
}) *Context {
mock := &Context{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package artifact
@ -274,13 +274,12 @@ func (_m *Controller) Walk(ctx context.Context, root *artifact.Artifact, walkFn
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package blob
@ -359,13 +359,12 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Blob) error {
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package config
@ -120,13 +120,12 @@ func (_m *Controller) UserConfigs(ctx context.Context) (map[string]*models.Value
return r0, r1
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package jobservice
@ -155,13 +155,12 @@ func (_m *SchedulerController) Paused(ctx context.Context) (bool, error) {
return r0, r1
}
type mockConstructorTestingTNewSchedulerController interface {
// NewSchedulerController creates a new instance of SchedulerController. 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 NewSchedulerController(t interface {
mock.TestingT
Cleanup(func())
}
// NewSchedulerController creates a new instance of SchedulerController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewSchedulerController(t mockConstructorTestingTNewSchedulerController) *SchedulerController {
}) *SchedulerController {
mock := &SchedulerController{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package project
@ -246,13 +246,12 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Project) error {
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package proxy
@ -140,13 +140,12 @@ func (_m *RemoteInterface) ManifestExist(repo string, ref string) (bool, *distri
return r0, r1, r2
}
type mockConstructorTestingTNewRemoteInterface interface {
// NewRemoteInterface creates a new instance of RemoteInterface. 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 NewRemoteInterface(t interface {
mock.TestingT
Cleanup(func())
}
// NewRemoteInterface creates a new instance of RemoteInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRemoteInterface(t mockConstructorTestingTNewRemoteInterface) *RemoteInterface {
}) *RemoteInterface {
mock := &RemoteInterface{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package purge
@ -52,13 +52,12 @@ func (_m *Controller) Stop(ctx context.Context, id int64) error {
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package quota
@ -261,13 +261,12 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Quota) error {
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package replication
@ -371,13 +371,12 @@ func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy, pr
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package repository
@ -198,13 +198,12 @@ func (_m *Controller) Update(ctx context.Context, _a1 *model.RepoRecord, propert
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package retention
@ -326,13 +326,12 @@ func (_m *Controller) UpdateRetention(ctx context.Context, p *policy.Metadata) e
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package robot
@ -151,13 +151,12 @@ func (_m *Controller) Update(ctx context.Context, r *robot.Robot, option *robot.
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package scan
@ -39,13 +39,12 @@ func (_m *Checker) IsScannable(ctx context.Context, _a1 *artifact.Artifact) (boo
return r0, r1
}
type mockConstructorTestingTNewChecker interface {
// NewChecker creates a new instance of Checker. 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 NewChecker(t interface {
mock.TestingT
Cleanup(func())
}
// NewChecker creates a new instance of Checker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewChecker(t mockConstructorTestingTNewChecker) *Checker {
}) *Checker {
mock := &Checker{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package scan
@ -219,13 +219,12 @@ func (_m *Controller) StopScanAll(ctx context.Context, executionID int64, async
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package scandataexport
@ -132,13 +132,12 @@ func (_m *Controller) Start(ctx context.Context, criteria export.Request) (int64
return r0, r1
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package scanner
@ -287,13 +287,12 @@ func (_m *Controller) UpdateRegistration(ctx context.Context, registration *scan
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package securityhub
@ -101,13 +101,12 @@ func (_m *Controller) SecuritySummary(ctx context.Context, projectID int64, opti
return r0, r1
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package systemartifact
@ -27,13 +27,12 @@ func (_m *Controller) Start(ctx context.Context, async bool, trigger string) err
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package task
@ -132,13 +132,12 @@ func (_m *Controller) Stop(ctx context.Context, id int64) error {
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package task
@ -120,13 +120,12 @@ func (_m *ExecutionController) Stop(ctx context.Context, id int64) error {
return r0
}
type mockConstructorTestingTNewExecutionController interface {
// NewExecutionController creates a new instance of ExecutionController. 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 NewExecutionController(t interface {
mock.TestingT
Cleanup(func())
}
// NewExecutionController creates a new instance of ExecutionController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewExecutionController(t mockConstructorTestingTNewExecutionController) *ExecutionController {
}) *ExecutionController {
mock := &ExecutionController{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package user
@ -315,13 +315,12 @@ func (_m *Controller) VerifyPassword(ctx context.Context, usernameOrEmail string
return r0, r1
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package webhook
@ -350,13 +350,12 @@ func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy) er
return r0
}
type mockConstructorTestingTNewController interface {
// 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 NewController(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewController(t mockConstructorTestingTNewController) *Controller {
}) *Controller {
mock := &Controller{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package cache
@ -120,13 +120,12 @@ func (_m *Cache) Scan(ctx context.Context, match string) (cache.Iterator, error)
return r0, r1
}
type mockConstructorTestingTNewCache interface {
// NewCache creates a new instance of Cache. 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 NewCache(t interface {
mock.TestingT
Cleanup(func())
}
// NewCache creates a new instance of Cache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewCache(t mockConstructorTestingTNewCache) *Cache {
}) *Cache {
mock := &Cache{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package cache
@ -41,13 +41,12 @@ func (_m *Iterator) Val() string {
return r0
}
type mockConstructorTestingTNewIterator interface {
// NewIterator creates a new instance of Iterator. 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 NewIterator(t interface {
mock.TestingT
Cleanup(func())
}
// NewIterator creates a new instance of Iterator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewIterator(t mockConstructorTestingTNewIterator) *Iterator {
}) *Iterator {
mock := &Iterator{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package config
@ -141,13 +141,12 @@ func (_m *Manager) ValidateCfg(ctx context.Context, cfgs map[string]interface{})
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package orm
@ -28,13 +28,12 @@ func (_m *Creator) Create() orm.Ormer {
return r0
}
type mockConstructorTestingTNewCreator interface {
// NewCreator creates a new instance of Creator. 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 NewCreator(t interface {
mock.TestingT
Cleanup(func())
}
// NewCreator creates a new instance of Creator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewCreator(t mockConstructorTestingTNewCreator) *Creator {
}) *Creator {
mock := &Creator{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -168,13 +168,12 @@ func (_m *DAO) Update(ctx context.Context, accessory *dao.Accessory) error {
return r0
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package accessory
@ -172,13 +172,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 model.AccessoryData) error {
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package model
@ -82,13 +82,12 @@ func (_m *Accessory) Kind() string {
return r0
}
type mockConstructorTestingTNewAccessory interface {
// NewAccessory creates a new instance of Accessory. 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 NewAccessory(t interface {
mock.TestingT
Cleanup(func())
}
// NewAccessory creates a new instance of Accessory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewAccessory(t mockConstructorTestingTNewAccessory) *Accessory {
}) *Accessory {
mock := &Accessory{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -65,13 +65,12 @@ func (_m *DAO) Set(ctx context.Context, l models.CVEAllowlist) (int64, error) {
return r0, r1
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package robot
@ -108,13 +108,12 @@ func (_m *Manager) SetSys(ctx context.Context, list models.CVEAllowlist) error {
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package artifact
@ -234,13 +234,12 @@ func (_m *Manager) UpdatePullTime(ctx context.Context, id int64, pullTime time.T
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -155,13 +155,12 @@ func (_m *DAO) Purge(ctx context.Context, retentionHour int, includeOperations [
return r0, r1
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package audit
@ -154,13 +154,12 @@ func (_m *Manager) Purge(ctx context.Context, retentionHour int, includeOperatio
return r0, r1
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package blob
@ -346,13 +346,12 @@ func (_m *Manager) UselessBlobs(ctx context.Context, timeWindowHours int64) ([]*
return r0, r1
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package redis
@ -151,13 +151,12 @@ func (_m *CachedManager) Save(ctx context.Context, digest string, manifest []byt
return r0
}
type mockConstructorTestingTNewCachedManager interface {
// NewCachedManager creates a new instance of CachedManager. 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 NewCachedManager(t interface {
mock.TestingT
Cleanup(func())
}
// NewCachedManager creates a new instance of CachedManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewCachedManager(t mockConstructorTestingTNewCachedManager) *CachedManager {
}) *CachedManager {
mock := &CachedManager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -159,13 +159,12 @@ func (_m *DAO) UpdateImmutableRule(ctx context.Context, projectID int64, ir *mod
return r0
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -91,13 +91,12 @@ func (_m *DAO) Get(ctx context.Context, uuid string) (*models.JobLog, error) {
return r0, r1
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package joblog
@ -91,13 +91,12 @@ func (_m *Manager) Get(ctx context.Context, uuid string) (*models.JobLog, error)
return r0, r1
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package jobmonitor
@ -90,13 +90,12 @@ func (_m *JobServiceMonitorClient) WorkerPoolHeartbeats() ([]*work.WorkerPoolHea
return r0, r1
}
type mockConstructorTestingTNewJobServiceMonitorClient interface {
// NewJobServiceMonitorClient creates a new instance of JobServiceMonitorClient. 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 NewJobServiceMonitorClient(t interface {
mock.TestingT
Cleanup(func())
}
// NewJobServiceMonitorClient creates a new instance of JobServiceMonitorClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewJobServiceMonitorClient(t mockConstructorTestingTNewJobServiceMonitorClient) *JobServiceMonitorClient {
}) *JobServiceMonitorClient {
mock := &JobServiceMonitorClient{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package jobmonitor
@ -40,13 +40,12 @@ func (_m *PoolManager) List(ctx context.Context, monitorClient jobmonitor.JobSer
return r0, r1
}
type mockConstructorTestingTNewPoolManager interface {
// NewPoolManager creates a new instance of PoolManager. 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 NewPoolManager(t interface {
mock.TestingT
Cleanup(func())
}
// NewPoolManager creates a new instance of PoolManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewPoolManager(t mockConstructorTestingTNewPoolManager) *PoolManager {
}) *PoolManager {
mock := &PoolManager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package jobmonitor
@ -40,13 +40,12 @@ func (_m *QueueManager) List(ctx context.Context, monitClient jobmonitor.JobServ
return r0, r1
}
type mockConstructorTestingTNewQueueManager interface {
// NewQueueManager creates a new instance of QueueManager. 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 NewQueueManager(t interface {
mock.TestingT
Cleanup(func())
}
// NewQueueManager creates a new instance of QueueManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewQueueManager(t mockConstructorTestingTNewQueueManager) *QueueManager {
}) *QueueManager {
mock := &QueueManager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package jobmonitor
@ -93,13 +93,12 @@ func (_m *RedisClient) UnpauseJob(ctx context.Context, jobName string) error {
return r0
}
type mockConstructorTestingTNewRedisClient interface {
// NewRedisClient creates a new instance of RedisClient. 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 NewRedisClient(t interface {
mock.TestingT
Cleanup(func())
}
// NewRedisClient creates a new instance of RedisClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRedisClient(t mockConstructorTestingTNewRedisClient) *RedisClient {
}) *RedisClient {
mock := &RedisClient{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package jobmonitor
@ -40,13 +40,12 @@ func (_m *WorkerManager) List(ctx context.Context, monitClient jobmonitor.JobSer
return r0, r1
}
type mockConstructorTestingTNewWorkerManager interface {
// NewWorkerManager creates a new instance of WorkerManager. 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 NewWorkerManager(t interface {
mock.TestingT
Cleanup(func())
}
// NewWorkerManager creates a new instance of WorkerManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewWorkerManager(t mockConstructorTestingTNewWorkerManager) *WorkerManager {
}) *WorkerManager {
mock := &WorkerManager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -233,13 +233,12 @@ func (_m *DAO) Update(ctx context.Context, label *model.Label) error {
return r0
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package label
@ -227,13 +227,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Label) error {
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package ldap
@ -120,13 +120,12 @@ func (_m *Manager) SearchUser(ctx context.Context, sess *ldap.Session, username
return r0, r1
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package member
@ -218,13 +218,12 @@ func (_m *Manager) UpdateRole(ctx context.Context, projectID int64, pmID int, ro
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -145,13 +145,12 @@ func (_m *DAO) Update(ctx context.Context, n *model.Policy) error {
return r0
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package policy
@ -170,13 +170,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Policy) error {
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -128,13 +128,12 @@ func (_m *MetaDAO) Update(ctx context.Context, oidcUser *models.OIDCUser, props
return r0
}
type mockConstructorTestingTNewMetaDAO interface {
// NewMetaDAO creates a new instance of MetaDAO. 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 NewMetaDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewMetaDAO creates a new instance of MetaDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMetaDAO(t mockConstructorTestingTNewMetaDAO) *MetaDAO {
}) *MetaDAO {
mock := &MetaDAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package oidc
@ -139,13 +139,12 @@ func (_m *MetaManager) Update(ctx context.Context, oidcUser *models.OIDCUser, co
return r0
}
type mockConstructorTestingTNewMetaManager interface {
// NewMetaManager creates a new instance of MetaManager. 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 NewMetaManager(t interface {
mock.TestingT
Cleanup(func())
}
// NewMetaManager creates a new instance of MetaManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMetaManager(t mockConstructorTestingTNewMetaManager) *MetaManager {
}) *MetaManager {
mock := &MetaManager{}
mock.Mock.Test(t)

View File

@ -16,7 +16,7 @@ package pkg
//go:generate mockery --case snake --dir ../../pkg/artifact --name Manager --output ./artifact --outpkg artifact
//go:generate mockery --case snake --dir ../../pkg/blob --name Manager --output ./blob --outpkg blob
//go:generate mockery --case snake --dir ../../vendor/github.com/docker/distribution --name Manifest --output ./distribution --outpkg distribution
// go::generate mockery --case snake --dir ../../vendor/github.com/docker/distribution --name Manifest --output ./distribution --outpkg distribution
//go:generate mockery --case snake --dir ../../pkg/project --name Manager --output ./project --outpkg project
//go:generate mockery --case snake --dir ../../pkg/project/metadata --name Manager --output ./project/metadata --outpkg metadata
//go:generate mockery --case snake --dir ../../pkg/quota --name Manager --output ./quota --outpkg quota

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package project
@ -163,13 +163,12 @@ func (_m *Manager) ListRoles(ctx context.Context, projectID int64, userID int, g
return r0, r1
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package metadata
@ -123,13 +123,12 @@ func (_m *Manager) Update(ctx context.Context, projectID int64, meta map[string]
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package queuestatus
@ -130,13 +130,12 @@ func (_m *Manager) UpdateStatus(ctx context.Context, jobType string, paused bool
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package driver
@ -122,13 +122,12 @@ func (_m *Driver) Validate(hardLimits types.ResourceList) error {
return r0
}
type mockConstructorTestingTNewDriver interface {
// NewDriver creates a new instance of Driver. 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 NewDriver(t interface {
mock.TestingT
Cleanup(func())
}
// NewDriver creates a new instance of Driver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDriver(t mockConstructorTestingTNewDriver) *Driver {
}) *Driver {
mock := &Driver{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package quota
@ -179,13 +179,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 *models.Quota) error {
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -185,13 +185,12 @@ func (_m *DAO) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*model.P
return r0, r1
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package rbac
@ -184,13 +184,12 @@ func (_m *Manager) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*mod
return r0, r1
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package adapter
@ -76,13 +76,12 @@ func (_m *Adapter) PrepareForPush(_a0 []*model.Resource) error {
return r0
}
type mockConstructorTestingTNewAdapter interface {
// NewAdapter creates a new instance of Adapter. 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 NewAdapter(t interface {
mock.TestingT
Cleanup(func())
}
// NewAdapter creates a new instance of Adapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewAdapter(t mockConstructorTestingTNewAdapter) *Adapter {
}) *Adapter {
mock := &Adapter{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -151,13 +151,12 @@ func (_m *DAO) Update(ctx context.Context, registry *dao.Registry, props ...stri
return r0
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package manager
@ -232,13 +232,12 @@ func (_m *Manager) Update(ctx context.Context, registry *model.Registry, props .
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package registry
@ -397,13 +397,12 @@ func (_m *Client) PushManifest(repository string, reference string, mediaType st
return r0, r1
}
type mockConstructorTestingTNewClient interface {
// NewClient creates a new instance of Client. 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 NewClient(t interface {
mock.TestingT
Cleanup(func())
}
// NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewClient(t mockConstructorTestingTNewClient) *Client {
}) *Client {
mock := &Client{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -152,13 +152,12 @@ func (_m *DAO) Update(ctx context.Context, policy *model.Policy, props ...string
return r0
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package manager
@ -151,13 +151,12 @@ func (_m *Manager) Update(ctx context.Context, policy *model.Policy, props ...st
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -192,13 +192,12 @@ func (_m *DAO) Update(ctx context.Context, repository *model.RepoRecord, props .
return r0
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package repository
@ -217,13 +217,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.RepoRecord, props ...s
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -166,13 +166,12 @@ func (_m *DAO) Update(ctx context.Context, r *model.Robot, props ...string) erro
return r0
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package robot
@ -165,13 +165,12 @@ func (_m *Manager) Update(ctx context.Context, m *model.Robot, props ...string)
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package export
@ -37,13 +37,12 @@ func (_m *ArtifactDigestCalculator) Calculate(fileName string) (digest.Digest, e
return r0, r1
}
type mockConstructorTestingTNewArtifactDigestCalculator interface {
// NewArtifactDigestCalculator creates a new instance of ArtifactDigestCalculator. 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 NewArtifactDigestCalculator(t interface {
mock.TestingT
Cleanup(func())
}
// NewArtifactDigestCalculator creates a new instance of ArtifactDigestCalculator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewArtifactDigestCalculator(t mockConstructorTestingTNewArtifactDigestCalculator) *ArtifactDigestCalculator {
}) *ArtifactDigestCalculator {
mock := &ArtifactDigestCalculator{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package export
@ -93,13 +93,12 @@ func (_m *FilterProcessor) ProcessTagFilter(ctx context.Context, filter string,
return r0, r1
}
type mockConstructorTestingTNewFilterProcessor interface {
// NewFilterProcessor creates a new instance of FilterProcessor. 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 NewFilterProcessor(t interface {
mock.TestingT
Cleanup(func())
}
// NewFilterProcessor creates a new instance of FilterProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewFilterProcessor(t mockConstructorTestingTNewFilterProcessor) *FilterProcessor {
}) *FilterProcessor {
mock := &FilterProcessor{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package export
@ -40,13 +40,12 @@ func (_m *Manager) Fetch(ctx context.Context, params export.Params) ([]export.Da
return r0, r1
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package report
@ -162,13 +162,12 @@ func (_m *Manager) UpdateReportData(ctx context.Context, uuid string, _a2 string
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package v1
@ -88,13 +88,12 @@ func (_m *Client) SubmitScan(req *v1.ScanRequest) (*v1.ScanResponse, error) {
return r0, r1
}
type mockConstructorTestingTNewClient interface {
// NewClient creates a new instance of Client. 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 NewClient(t interface {
mock.TestingT
Cleanup(func())
}
// NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewClient(t mockConstructorTestingTNewClient) *Client {
}) *Client {
mock := &Client{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package v1
@ -38,13 +38,12 @@ func (_m *ClientPool) Get(url string, authType string, accessCredential string,
return r0, r1
}
type mockConstructorTestingTNewClientPool interface {
// NewClientPool creates a new instance of ClientPool. 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 NewClientPool(t interface {
mock.TestingT
Cleanup(func())
}
// NewClientPool creates a new instance of ClientPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewClientPool(t mockConstructorTestingTNewClientPool) *ClientPool {
}) *ClientPool {
mock := &ClientPool{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package v1
@ -18,13 +18,12 @@ func (_m *RequestResolver) Execute(req *http.Request) {
_m.Called(req)
}
type mockConstructorTestingTNewRequestResolver interface {
// NewRequestResolver creates a new instance of RequestResolver. 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 NewRequestResolver(t interface {
mock.TestingT
Cleanup(func())
}
// NewRequestResolver creates a new instance of RequestResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRequestResolver(t mockConstructorTestingTNewRequestResolver) *RequestResolver {
}) *RequestResolver {
mock := &RequestResolver{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package v1
@ -39,13 +39,12 @@ func (_m *responseHandler) Execute(code int, resp *http.Response) ([]byte, error
return r0, r1
}
type mockConstructorTestingTnewResponseHandler interface {
// newResponseHandler creates a new instance of responseHandler. 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 newResponseHandler(t interface {
mock.TestingT
Cleanup(func())
}
// newResponseHandler creates a new instance of responseHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newResponseHandler(t mockConstructorTestingTnewResponseHandler) *responseHandler {
}) *responseHandler {
mock := &responseHandler{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package scanner
@ -208,13 +208,12 @@ func (_m *Manager) Update(ctx context.Context, registration *daoscanner.Registra
return r0
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package scheduler
@ -144,13 +144,12 @@ func (_m *Scheduler) UnScheduleByVendor(ctx context.Context, vendorType string,
return r0
}
type mockConstructorTestingTNewScheduler interface {
// NewScheduler creates a new instance of Scheduler. 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 NewScheduler(t interface {
mock.TestingT
Cleanup(func())
}
// NewScheduler creates a new instance of Scheduler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewScheduler(t mockConstructorTestingTNewScheduler) *Scheduler {
}) *Scheduler {
mock := &Scheduler{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package securityhub
@ -194,13 +194,12 @@ func (_m *Manager) TotalVuls(ctx context.Context, scannerUUID string, projectID
return r0, r1
}
type mockConstructorTestingTNewManager interface {
// 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 NewManager(t interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewManager(t mockConstructorTestingTNewManager) *Manager {
}) *Manager {
mock := &Manager{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package cleanup
@ -68,13 +68,12 @@ func (_m *Selector) ListWithFilters(ctx context.Context, query *q.Query) ([]*mod
return r0, r1
}
type mockConstructorTestingTNewSelector interface {
// NewSelector creates a new instance of Selector. 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 NewSelector(t interface {
mock.TestingT
Cleanup(func())
}
// NewSelector creates a new instance of Selector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewSelector(t mockConstructorTestingTNewSelector) *Selector {
}) *Selector {
mock := &Selector{}
mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.22.1. DO NOT EDIT.
// Code generated by mockery v2.35.4. DO NOT EDIT.
package dao
@ -131,13 +131,12 @@ func (_m *DAO) Size(ctx context.Context) (int64, error) {
return r0, r1
}
type mockConstructorTestingTNewDAO interface {
// NewDAO creates a new instance of DAO. 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 NewDAO(t interface {
mock.TestingT
Cleanup(func())
}
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
}) *DAO {
mock := &DAO{}
mock.Mock.Test(t)

Some files were not shown because too many files have changed in this diff Show More