mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 02:05:41 +01:00
[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:
parent
d0a9754786
commit
3f7c605cf5
@ -134,12 +134,7 @@ The folder graph below shows the structure of the source code folder `harbor/src
|
|||||||
│ ├── registry
|
│ ├── registry
|
||||||
│ ├── router
|
│ ├── router
|
||||||
│ ├── v2.0
|
│ ├── v2.0
|
||||||
├── testing # Some utilities to handle testing.
|
└── testing # Some utilities to handle testing.
|
||||||
└── vendor # Go code dependencies
|
|
||||||
├── github.com
|
|
||||||
├── golang.org
|
|
||||||
├── google.golang.org
|
|
||||||
└── gopkg.in
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setup Development Environment
|
### 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.
|
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
|
#### 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.
|
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
|
#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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
8
Makefile
8
Makefile
@ -156,7 +156,7 @@ ifneq ($(GOBUILDLDFLAGS),)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# go build command
|
# 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_COMMON=$(GOIMAGEBUILDCMD) $(GOFLAGS) ${GOTAGS} ${GOLDFLAGS}
|
||||||
GOIMAGEBUILD_CORE=$(GOIMAGEBUILDCMD) $(GOFLAGS) ${GOTAGS} --ldflags "-w -s $(CORE_LDFLAGS)"
|
GOIMAGEBUILD_CORE=$(GOIMAGEBUILDCMD) $(GOFLAGS) ${GOTAGS} --ldflags "-w -s $(CORE_LDFLAGS)"
|
||||||
|
|
||||||
@ -312,7 +312,7 @@ gen_apis: lint_apis
|
|||||||
|
|
||||||
|
|
||||||
MOCKERY_IMAGENAME=$(IMAGENAMESPACE)/mockery
|
MOCKERY_IMAGENAME=$(IMAGENAMESPACE)/mockery
|
||||||
MOCKERY_VERSION=v2.22.1
|
MOCKERY_VERSION=v2.35.4
|
||||||
MOCKERY=$(RUNCONTAINER) ${MOCKERY_IMAGENAME}:${MOCKERY_VERSION}
|
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) .
|
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:
|
commentfmt:
|
||||||
@echo checking comment format...
|
@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 \
|
if [ -n "$${res}" ]; then \
|
||||||
echo checking comment format fail.. ; \
|
echo checking comment format fail.. ; \
|
||||||
echo missing whitespace between // and comment body;\
|
echo missing whitespace between // and comment body;\
|
||||||
@ -476,7 +476,7 @@ commentfmt:
|
|||||||
|
|
||||||
misspell:
|
misspell:
|
||||||
@echo checking 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
|
# 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
|
# curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.2
|
||||||
|
@ -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
|
package flow
|
||||||
|
|
||||||
@ -56,13 +56,12 @@ func (_m *mockFactory) Create(_a0 *model.Registry) (adapter.Adapter, error) {
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *mockFactory {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &mockFactory{}
|
mock := &mockFactory{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package flow
|
||||||
|
|
||||||
@ -438,13 +438,12 @@ func (_m *mockAdapter) PushManifest(repository string, reference string, mediaTy
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *mockAdapter {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &mockAdapter{}
|
mock := &mockAdapter{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package replication
|
||||||
|
|
||||||
@ -31,13 +31,12 @@ func (_m *flowController) Start(ctx context.Context, executionID int64, policy *
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *flowController {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &flowController{}
|
mock := &flowController{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -97,6 +97,7 @@ require (
|
|||||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||||
github.com/denverdino/aliyungo v0.0.0-20191227032621-df38c6fa730c // indirect
|
github.com/denverdino/aliyungo v0.0.0-20191227032621-df38c6fa730c // indirect
|
||||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // 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/dnaeon/go-vcr v1.2.0 // indirect
|
||||||
github.com/docker/go-metrics v0.0.1 // indirect
|
github.com/docker/go-metrics v0.0.1 // indirect
|
||||||
github.com/felixge/httpsnoop v1.0.3 // indirect
|
github.com/felixge/httpsnoop v1.0.3 // indirect
|
||||||
|
@ -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/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 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.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 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI=
|
||||||
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
|
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
|
||||||
github.com/docker/docker v20.10.24+incompatible h1:Ugvxm7a8+Gz6vqQYQQ2W7GYq5EUPaAiuPgIfVyI3dYE=
|
github.com/docker/docker v20.10.24+incompatible h1:Ugvxm7a8+Gz6vqQYQQ2W7GYq5EUPaAiuPgIfVyI3dYE=
|
||||||
|
@ -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
|
package mgt
|
||||||
|
|
||||||
@ -153,13 +153,12 @@ func (_m *MockManager) SaveJob(_a0 *job.Stats) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *MockManager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &MockManager{}
|
mock := &MockManager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package period
|
||||||
|
|
||||||
@ -52,13 +52,12 @@ func (_m *MockScheduler) UnSchedule(policyID string) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *MockScheduler {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &MockScheduler{}
|
mock := &MockScheduler{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
11
src/lib/cache/mock_cache_test.go
vendored
11
src/lib/cache/mock_cache_test.go
vendored
@ -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
|
package cache
|
||||||
|
|
||||||
@ -117,13 +117,12 @@ func (_m *mockCache) Scan(ctx context.Context, match string) (Iterator, error) {
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *mockCache {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &mockCache{}
|
mock := &mockCache{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package scheduler
|
||||||
|
|
||||||
@ -173,13 +173,12 @@ func (_m *mockDAO) UpdateRevision(ctx context.Context, id int64, revision int64)
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *mockDAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &mockDAO{}
|
mock := &mockDAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package task
|
||||||
|
|
||||||
@ -222,13 +222,12 @@ func (_m *mockExecutionDAO) Update(ctx context.Context, execution *dao.Execution
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *mockExecutionDAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &mockExecutionDAO{}
|
mock := &mockExecutionDAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package task
|
||||||
|
|
||||||
@ -130,13 +130,12 @@ func (_m *mockJobserviceClient) SubmitJob(_a0 *models.JobData) (string, error) {
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *mockJobserviceClient {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &mockJobserviceClient{}
|
mock := &mockJobserviceClient{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package task
|
||||||
|
|
||||||
@ -67,13 +67,12 @@ func (_m *mockSweepManager) ListCandidates(ctx context.Context, vendorType strin
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *mockSweepManager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &mockSweepManager{}
|
mock := &mockSweepManager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package task
|
||||||
|
|
||||||
@ -283,13 +283,12 @@ func (_m *mockTaskDAO) UpdateStatusInBatch(ctx context.Context, jobIDs []string,
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *mockTaskDAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &mockTaskDAO{}
|
mock := &mockTaskDAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package task
|
||||||
|
|
||||||
@ -288,13 +288,12 @@ func (_m *mockTaskManager) UpdateStatusInBatch(ctx context.Context, jobIDs []str
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *mockTaskManager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &mockTaskManager{}
|
mock := &mockTaskManager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package security
|
||||||
|
|
||||||
@ -99,13 +99,12 @@ func (_m *Context) Name() string {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Context {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Context{}
|
mock := &Context{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package artifact
|
||||||
|
|
||||||
@ -274,13 +274,12 @@ func (_m *Controller) Walk(ctx context.Context, root *artifact.Artifact, walkFn
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package blob
|
||||||
|
|
||||||
@ -359,13 +359,12 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Blob) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package config
|
||||||
|
|
||||||
@ -120,13 +120,12 @@ func (_m *Controller) UserConfigs(ctx context.Context) (map[string]*models.Value
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package jobservice
|
||||||
|
|
||||||
@ -155,13 +155,12 @@ func (_m *SchedulerController) Paused(ctx context.Context) (bool, error) {
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *SchedulerController {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &SchedulerController{}
|
mock := &SchedulerController{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package project
|
||||||
|
|
||||||
@ -246,13 +246,12 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Project) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package proxy
|
||||||
|
|
||||||
@ -140,13 +140,12 @@ func (_m *RemoteInterface) ManifestExist(repo string, ref string) (bool, *distri
|
|||||||
return r0, r1, r2
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *RemoteInterface {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &RemoteInterface{}
|
mock := &RemoteInterface{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package purge
|
||||||
|
|
||||||
@ -52,13 +52,12 @@ func (_m *Controller) Stop(ctx context.Context, id int64) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package quota
|
||||||
|
|
||||||
@ -261,13 +261,12 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Quota) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package replication
|
||||||
|
|
||||||
@ -371,13 +371,12 @@ func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy, pr
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package repository
|
||||||
|
|
||||||
@ -198,13 +198,12 @@ func (_m *Controller) Update(ctx context.Context, _a1 *model.RepoRecord, propert
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package retention
|
||||||
|
|
||||||
@ -326,13 +326,12 @@ func (_m *Controller) UpdateRetention(ctx context.Context, p *policy.Metadata) e
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package robot
|
||||||
|
|
||||||
@ -151,13 +151,12 @@ func (_m *Controller) Update(ctx context.Context, r *robot.Robot, option *robot.
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package scan
|
||||||
|
|
||||||
@ -39,13 +39,12 @@ func (_m *Checker) IsScannable(ctx context.Context, _a1 *artifact.Artifact) (boo
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Checker {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Checker{}
|
mock := &Checker{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package scan
|
||||||
|
|
||||||
@ -219,13 +219,12 @@ func (_m *Controller) StopScanAll(ctx context.Context, executionID int64, async
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package scandataexport
|
||||||
|
|
||||||
@ -132,13 +132,12 @@ func (_m *Controller) Start(ctx context.Context, criteria export.Request) (int64
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package scanner
|
||||||
|
|
||||||
@ -287,13 +287,12 @@ func (_m *Controller) UpdateRegistration(ctx context.Context, registration *scan
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package securityhub
|
||||||
|
|
||||||
@ -101,13 +101,12 @@ func (_m *Controller) SecuritySummary(ctx context.Context, projectID int64, opti
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package systemartifact
|
||||||
|
|
||||||
@ -27,13 +27,12 @@ func (_m *Controller) Start(ctx context.Context, async bool, trigger string) err
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package task
|
||||||
|
|
||||||
@ -132,13 +132,12 @@ func (_m *Controller) Stop(ctx context.Context, id int64) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package task
|
||||||
|
|
||||||
@ -120,13 +120,12 @@ func (_m *ExecutionController) Stop(ctx context.Context, id int64) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *ExecutionController {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &ExecutionController{}
|
mock := &ExecutionController{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package user
|
||||||
|
|
||||||
@ -315,13 +315,12 @@ func (_m *Controller) VerifyPassword(ctx context.Context, usernameOrEmail string
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package webhook
|
||||||
|
|
||||||
@ -350,13 +350,12 @@ func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy) er
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
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.
|
|
||||||
func NewController(t mockConstructorTestingTNewController) *Controller {
|
|
||||||
mock := &Controller{}
|
mock := &Controller{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
11
src/testing/lib/cache/cache.go
vendored
11
src/testing/lib/cache/cache.go
vendored
@ -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
|
package cache
|
||||||
|
|
||||||
@ -120,13 +120,12 @@ func (_m *Cache) Scan(ctx context.Context, match string) (cache.Iterator, error)
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Cache {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Cache{}
|
mock := &Cache{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
11
src/testing/lib/cache/iterator.go
vendored
11
src/testing/lib/cache/iterator.go
vendored
@ -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
|
package cache
|
||||||
|
|
||||||
@ -41,13 +41,12 @@ func (_m *Iterator) Val() string {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Iterator {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Iterator{}
|
mock := &Iterator{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package config
|
||||||
|
|
||||||
@ -141,13 +141,12 @@ func (_m *Manager) ValidateCfg(ctx context.Context, cfgs map[string]interface{})
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package orm
|
||||||
|
|
||||||
@ -28,13 +28,12 @@ func (_m *Creator) Create() orm.Ormer {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Creator {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Creator{}
|
mock := &Creator{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -168,13 +168,12 @@ func (_m *DAO) Update(ctx context.Context, accessory *dao.Accessory) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package accessory
|
||||||
|
|
||||||
@ -172,13 +172,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 model.AccessoryData) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package model
|
||||||
|
|
||||||
@ -82,13 +82,12 @@ func (_m *Accessory) Kind() string {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Accessory {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Accessory{}
|
mock := &Accessory{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -65,13 +65,12 @@ func (_m *DAO) Set(ctx context.Context, l models.CVEAllowlist) (int64, error) {
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package robot
|
||||||
|
|
||||||
@ -108,13 +108,12 @@ func (_m *Manager) SetSys(ctx context.Context, list models.CVEAllowlist) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package artifact
|
||||||
|
|
||||||
@ -234,13 +234,12 @@ func (_m *Manager) UpdatePullTime(ctx context.Context, id int64, pullTime time.T
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -155,13 +155,12 @@ func (_m *DAO) Purge(ctx context.Context, retentionHour int, includeOperations [
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package audit
|
||||||
|
|
||||||
@ -154,13 +154,12 @@ func (_m *Manager) Purge(ctx context.Context, retentionHour int, includeOperatio
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package blob
|
||||||
|
|
||||||
@ -346,13 +346,12 @@ func (_m *Manager) UselessBlobs(ctx context.Context, timeWindowHours int64) ([]*
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package redis
|
||||||
|
|
||||||
@ -151,13 +151,12 @@ func (_m *CachedManager) Save(ctx context.Context, digest string, manifest []byt
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *CachedManager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &CachedManager{}
|
mock := &CachedManager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -159,13 +159,12 @@ func (_m *DAO) UpdateImmutableRule(ctx context.Context, projectID int64, ir *mod
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -91,13 +91,12 @@ func (_m *DAO) Get(ctx context.Context, uuid string) (*models.JobLog, error) {
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package joblog
|
||||||
|
|
||||||
@ -91,13 +91,12 @@ func (_m *Manager) Get(ctx context.Context, uuid string) (*models.JobLog, error)
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package jobmonitor
|
||||||
|
|
||||||
@ -90,13 +90,12 @@ func (_m *JobServiceMonitorClient) WorkerPoolHeartbeats() ([]*work.WorkerPoolHea
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *JobServiceMonitorClient {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &JobServiceMonitorClient{}
|
mock := &JobServiceMonitorClient{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package jobmonitor
|
||||||
|
|
||||||
@ -40,13 +40,12 @@ func (_m *PoolManager) List(ctx context.Context, monitorClient jobmonitor.JobSer
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *PoolManager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &PoolManager{}
|
mock := &PoolManager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package jobmonitor
|
||||||
|
|
||||||
@ -40,13 +40,12 @@ func (_m *QueueManager) List(ctx context.Context, monitClient jobmonitor.JobServ
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *QueueManager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &QueueManager{}
|
mock := &QueueManager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package jobmonitor
|
||||||
|
|
||||||
@ -93,13 +93,12 @@ func (_m *RedisClient) UnpauseJob(ctx context.Context, jobName string) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *RedisClient {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &RedisClient{}
|
mock := &RedisClient{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package jobmonitor
|
||||||
|
|
||||||
@ -40,13 +40,12 @@ func (_m *WorkerManager) List(ctx context.Context, monitClient jobmonitor.JobSer
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *WorkerManager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &WorkerManager{}
|
mock := &WorkerManager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -233,13 +233,12 @@ func (_m *DAO) Update(ctx context.Context, label *model.Label) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package label
|
||||||
|
|
||||||
@ -227,13 +227,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Label) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package ldap
|
||||||
|
|
||||||
@ -120,13 +120,12 @@ func (_m *Manager) SearchUser(ctx context.Context, sess *ldap.Session, username
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package member
|
||||||
|
|
||||||
@ -218,13 +218,12 @@ func (_m *Manager) UpdateRole(ctx context.Context, projectID int64, pmID int, ro
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -145,13 +145,12 @@ func (_m *DAO) Update(ctx context.Context, n *model.Policy) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package policy
|
||||||
|
|
||||||
@ -170,13 +170,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Policy) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -128,13 +128,12 @@ func (_m *MetaDAO) Update(ctx context.Context, oidcUser *models.OIDCUser, props
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *MetaDAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &MetaDAO{}
|
mock := &MetaDAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package oidc
|
||||||
|
|
||||||
@ -139,13 +139,12 @@ func (_m *MetaManager) Update(ctx context.Context, oidcUser *models.OIDCUser, co
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *MetaManager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &MetaManager{}
|
mock := &MetaManager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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/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 ../../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 --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/project/metadata --name Manager --output ./project/metadata --outpkg metadata
|
||||||
//go:generate mockery --case snake --dir ../../pkg/quota --name Manager --output ./quota --outpkg quota
|
//go:generate mockery --case snake --dir ../../pkg/quota --name Manager --output ./quota --outpkg quota
|
||||||
|
@ -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
|
package project
|
||||||
|
|
||||||
@ -163,13 +163,12 @@ func (_m *Manager) ListRoles(ctx context.Context, projectID int64, userID int, g
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package metadata
|
||||||
|
|
||||||
@ -123,13 +123,12 @@ func (_m *Manager) Update(ctx context.Context, projectID int64, meta map[string]
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package queuestatus
|
||||||
|
|
||||||
@ -130,13 +130,12 @@ func (_m *Manager) UpdateStatus(ctx context.Context, jobType string, paused bool
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package driver
|
||||||
|
|
||||||
@ -122,13 +122,12 @@ func (_m *Driver) Validate(hardLimits types.ResourceList) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Driver {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Driver{}
|
mock := &Driver{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package quota
|
||||||
|
|
||||||
@ -179,13 +179,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 *models.Quota) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -185,13 +185,12 @@ func (_m *DAO) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*model.P
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package rbac
|
||||||
|
|
||||||
@ -184,13 +184,12 @@ func (_m *Manager) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*mod
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package adapter
|
||||||
|
|
||||||
@ -76,13 +76,12 @@ func (_m *Adapter) PrepareForPush(_a0 []*model.Resource) error {
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Adapter {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Adapter{}
|
mock := &Adapter{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -151,13 +151,12 @@ func (_m *DAO) Update(ctx context.Context, registry *dao.Registry, props ...stri
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package manager
|
||||||
|
|
||||||
@ -232,13 +232,12 @@ func (_m *Manager) Update(ctx context.Context, registry *model.Registry, props .
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package registry
|
||||||
|
|
||||||
@ -397,13 +397,12 @@ func (_m *Client) PushManifest(repository string, reference string, mediaType st
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Client {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Client{}
|
mock := &Client{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -152,13 +152,12 @@ func (_m *DAO) Update(ctx context.Context, policy *model.Policy, props ...string
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package manager
|
||||||
|
|
||||||
@ -151,13 +151,12 @@ func (_m *Manager) Update(ctx context.Context, policy *model.Policy, props ...st
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -192,13 +192,12 @@ func (_m *DAO) Update(ctx context.Context, repository *model.RepoRecord, props .
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package repository
|
||||||
|
|
||||||
@ -217,13 +217,12 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.RepoRecord, props ...s
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -166,13 +166,12 @@ func (_m *DAO) Update(ctx context.Context, r *model.Robot, props ...string) erro
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package robot
|
||||||
|
|
||||||
@ -165,13 +165,12 @@ func (_m *Manager) Update(ctx context.Context, m *model.Robot, props ...string)
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package export
|
||||||
|
|
||||||
@ -37,13 +37,12 @@ func (_m *ArtifactDigestCalculator) Calculate(fileName string) (digest.Digest, e
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *ArtifactDigestCalculator {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &ArtifactDigestCalculator{}
|
mock := &ArtifactDigestCalculator{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package export
|
||||||
|
|
||||||
@ -93,13 +93,12 @@ func (_m *FilterProcessor) ProcessTagFilter(ctx context.Context, filter string,
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *FilterProcessor {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &FilterProcessor{}
|
mock := &FilterProcessor{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package export
|
||||||
|
|
||||||
@ -40,13 +40,12 @@ func (_m *Manager) Fetch(ctx context.Context, params export.Params) ([]export.Da
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package report
|
||||||
|
|
||||||
@ -162,13 +162,12 @@ func (_m *Manager) UpdateReportData(ctx context.Context, uuid string, _a2 string
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package v1
|
||||||
|
|
||||||
@ -88,13 +88,12 @@ func (_m *Client) SubmitScan(req *v1.ScanRequest) (*v1.ScanResponse, error) {
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Client {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Client{}
|
mock := &Client{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package v1
|
||||||
|
|
||||||
@ -38,13 +38,12 @@ func (_m *ClientPool) Get(url string, authType string, accessCredential string,
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *ClientPool {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &ClientPool{}
|
mock := &ClientPool{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package v1
|
||||||
|
|
||||||
@ -18,13 +18,12 @@ func (_m *RequestResolver) Execute(req *http.Request) {
|
|||||||
_m.Called(req)
|
_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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *RequestResolver {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &RequestResolver{}
|
mock := &RequestResolver{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package v1
|
||||||
|
|
||||||
@ -39,13 +39,12 @@ func (_m *responseHandler) Execute(code int, resp *http.Response) ([]byte, error
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *responseHandler {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &responseHandler{}
|
mock := &responseHandler{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package scanner
|
||||||
|
|
||||||
@ -208,13 +208,12 @@ func (_m *Manager) Update(ctx context.Context, registration *daoscanner.Registra
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package scheduler
|
||||||
|
|
||||||
@ -144,13 +144,12 @@ func (_m *Scheduler) UnScheduleByVendor(ctx context.Context, vendorType string,
|
|||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Scheduler {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Scheduler{}
|
mock := &Scheduler{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package securityhub
|
||||||
|
|
||||||
@ -194,13 +194,12 @@ func (_m *Manager) TotalVuls(ctx context.Context, scannerUUID string, projectID
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Manager {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Manager{}
|
mock := &Manager{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package cleanup
|
||||||
|
|
||||||
@ -68,13 +68,12 @@ func (_m *Selector) ListWithFilters(ctx context.Context, query *q.Query) ([]*mod
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *Selector {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &Selector{}
|
mock := &Selector{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
@ -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
|
package dao
|
||||||
|
|
||||||
@ -131,13 +131,12 @@ func (_m *DAO) Size(ctx context.Context) (int64, error) {
|
|||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *DAO {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &DAO{}
|
mock := &DAO{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user