mirror of
https://github.com/goharbor/harbor
synced 2025-04-12 19:59:20 +00:00
bump mockery (#21419)
* bump mockery Signed-off-by: wang yan <wangyan@vmware.com> * update mock testing codes Signed-off-by: wang yan <wangyan@vmware.com> --------- Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
2364957036
commit
97391608d0
2
Makefile
2
Makefile
|
@ -313,7 +313,7 @@ gen_apis: lint_apis
|
||||||
|
|
||||||
|
|
||||||
MOCKERY_IMAGENAME=$(IMAGENAMESPACE)/mockery
|
MOCKERY_IMAGENAME=$(IMAGENAMESPACE)/mockery
|
||||||
MOCKERY_VERSION=v2.46.2
|
MOCKERY_VERSION=v2.51.0
|
||||||
MOCKERY=$(RUNCONTAINER)/src ${MOCKERY_IMAGENAME}:${MOCKERY_VERSION}
|
MOCKERY=$(RUNCONTAINER)/src ${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) .
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package flow
|
package flow
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ type mockFactory struct {
|
||||||
mock.Mock
|
mock.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
// AdapterPattern provides a mock function with given fields:
|
// AdapterPattern provides a mock function with no fields
|
||||||
func (_m *mockFactory) AdapterPattern() *model.AdapterPattern {
|
func (_m *mockFactory) AdapterPattern() *model.AdapterPattern {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package flow
|
package flow
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ func (_m *mockAdapter) FetchArtifacts(filters []*model.Filter) ([]*model.Resourc
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// HealthCheck provides a mock function with given fields:
|
// HealthCheck provides a mock function with no fields
|
||||||
func (_m *mockAdapter) HealthCheck() (string, error) {
|
func (_m *mockAdapter) HealthCheck() (string, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ func (_m *mockAdapter) HealthCheck() (string, error) {
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info provides a mock function with given fields:
|
// Info provides a mock function with no fields
|
||||||
func (_m *mockAdapter) Info() (*model.RegistryInfo, error) {
|
func (_m *mockAdapter) Info() (*model.RegistryInfo, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package replication
|
package replication
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package mgt
|
package mgt
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package period
|
package period
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ func (_m *MockScheduler) Schedule(policy *Policy) (int64, error) {
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start provides a mock function with given fields:
|
// Start provides a mock function with no fields
|
||||||
func (_m *MockScheduler) Start() {
|
func (_m *MockScheduler) Start() {
|
||||||
_m.Called()
|
_m.Called()
|
||||||
}
|
}
|
||||||
|
|
2
src/lib/cache/mock_cache_test.go
vendored
2
src/lib/cache/mock_cache_test.go
vendored
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package cache
|
package cache
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package scheduler
|
package scheduler
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package task
|
package task
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package task
|
package task
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ func (_m *mockJobserviceClient) GetJobLog(uuid string) ([]byte, error) {
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetJobServiceConfig provides a mock function with given fields:
|
// GetJobServiceConfig provides a mock function with no fields
|
||||||
func (_m *mockJobserviceClient) GetJobServiceConfig() (*job.Config, error) {
|
func (_m *mockJobserviceClient) GetJobServiceConfig() (*job.Config, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package task
|
package task
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package task
|
package task
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package task
|
package task
|
||||||
|
|
||||||
|
@ -311,14 +311,14 @@ func (_m *mockTaskManager) Stop(ctx context.Context, id int64) error {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update provides a mock function with given fields: ctx, task, props
|
// Update provides a mock function with given fields: ctx, _a1, props
|
||||||
func (_m *mockTaskManager) Update(ctx context.Context, task *Task, props ...string) error {
|
func (_m *mockTaskManager) Update(ctx context.Context, _a1 *Task, props ...string) error {
|
||||||
_va := make([]interface{}, len(props))
|
_va := make([]interface{}, len(props))
|
||||||
for _i := range props {
|
for _i := range props {
|
||||||
_va[_i] = props[_i]
|
_va[_i] = props[_i]
|
||||||
}
|
}
|
||||||
var _ca []interface{}
|
var _ca []interface{}
|
||||||
_ca = append(_ca, ctx, task)
|
_ca = append(_ca, ctx, _a1)
|
||||||
_ca = append(_ca, _va...)
|
_ca = append(_ca, _va...)
|
||||||
ret := _m.Called(_ca...)
|
ret := _m.Called(_ca...)
|
||||||
|
|
||||||
|
@ -328,7 +328,7 @@ func (_m *mockTaskManager) Update(ctx context.Context, task *Task, props ...stri
|
||||||
|
|
||||||
var r0 error
|
var r0 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *Task, ...string) error); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *Task, ...string) error); ok {
|
||||||
r0 = rf(ctx, task, props...)
|
r0 = rf(ctx, _a1, props...)
|
||||||
} else {
|
} else {
|
||||||
r0 = ret.Error(0)
|
r0 = ret.Error(0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package security
|
package security
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ func (_m *Context) Can(ctx context.Context, action types.Action, resource types.
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUsername provides a mock function with given fields:
|
// GetUsername provides a mock function with no fields
|
||||||
func (_m *Context) GetUsername() string {
|
func (_m *Context) GetUsername() string {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ func (_m *Context) GetUsername() string {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsAuthenticated provides a mock function with given fields:
|
// IsAuthenticated provides a mock function with no fields
|
||||||
func (_m *Context) IsAuthenticated() bool {
|
func (_m *Context) IsAuthenticated() bool {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ func (_m *Context) IsAuthenticated() bool {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsSolutionUser provides a mock function with given fields:
|
// IsSolutionUser provides a mock function with no fields
|
||||||
func (_m *Context) IsSolutionUser() bool {
|
func (_m *Context) IsSolutionUser() bool {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ func (_m *Context) IsSolutionUser() bool {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsSysAdmin provides a mock function with given fields:
|
// IsSysAdmin provides a mock function with no fields
|
||||||
func (_m *Context) IsSysAdmin() bool {
|
func (_m *Context) IsSysAdmin() bool {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ func (_m *Context) IsSysAdmin() bool {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Name provides a mock function with given fields:
|
// Name provides a mock function with no fields
|
||||||
func (_m *Context) Name() string {
|
func (_m *Context) Name() string {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package artifact
|
package artifact
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package blob
|
package blob
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
mock "github.com/stretchr/testify/mock"
|
mock "github.com/stretchr/testify/mock"
|
||||||
|
|
||||||
pkgblob "github.com/goharbor/harbor/src/pkg/blob"
|
models "github.com/goharbor/harbor/src/pkg/blob/models"
|
||||||
|
|
||||||
q "github.com/goharbor/harbor/src/lib/q"
|
q "github.com/goharbor/harbor/src/lib/q"
|
||||||
)
|
)
|
||||||
|
@ -213,7 +213,7 @@ func (_m *Controller) Exist(ctx context.Context, digest string, options ...blob.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fail provides a mock function with given fields: ctx, _a1
|
// Fail provides a mock function with given fields: ctx, _a1
|
||||||
func (_m *Controller) Fail(ctx context.Context, _a1 *pkgblob.Blob) error {
|
func (_m *Controller) Fail(ctx context.Context, _a1 *models.Blob) error {
|
||||||
ret := _m.Called(ctx, _a1)
|
ret := _m.Called(ctx, _a1)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
|
@ -221,7 +221,7 @@ func (_m *Controller) Fail(ctx context.Context, _a1 *pkgblob.Blob) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 error
|
var r0 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *pkgblob.Blob) error); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *models.Blob) error); ok {
|
||||||
r0 = rf(ctx, _a1)
|
r0 = rf(ctx, _a1)
|
||||||
} else {
|
} else {
|
||||||
r0 = ret.Error(0)
|
r0 = ret.Error(0)
|
||||||
|
@ -231,27 +231,27 @@ func (_m *Controller) Fail(ctx context.Context, _a1 *pkgblob.Blob) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// FindMissingAssociationsForProject provides a mock function with given fields: ctx, projectID, blobs
|
// FindMissingAssociationsForProject provides a mock function with given fields: ctx, projectID, blobs
|
||||||
func (_m *Controller) FindMissingAssociationsForProject(ctx context.Context, projectID int64, blobs []*pkgblob.Blob) ([]*pkgblob.Blob, error) {
|
func (_m *Controller) FindMissingAssociationsForProject(ctx context.Context, projectID int64, blobs []*models.Blob) ([]*models.Blob, error) {
|
||||||
ret := _m.Called(ctx, projectID, blobs)
|
ret := _m.Called(ctx, projectID, blobs)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
panic("no return value specified for FindMissingAssociationsForProject")
|
panic("no return value specified for FindMissingAssociationsForProject")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 []*pkgblob.Blob
|
var r0 []*models.Blob
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, int64, []*pkgblob.Blob) ([]*pkgblob.Blob, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, int64, []*models.Blob) ([]*models.Blob, error)); ok {
|
||||||
return rf(ctx, projectID, blobs)
|
return rf(ctx, projectID, blobs)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, int64, []*pkgblob.Blob) []*pkgblob.Blob); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, int64, []*models.Blob) []*models.Blob); ok {
|
||||||
r0 = rf(ctx, projectID, blobs)
|
r0 = rf(ctx, projectID, blobs)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).([]*pkgblob.Blob)
|
r0 = ret.Get(0).([]*models.Blob)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if rf, ok := ret.Get(1).(func(context.Context, int64, []*pkgblob.Blob) error); ok {
|
if rf, ok := ret.Get(1).(func(context.Context, int64, []*models.Blob) error); ok {
|
||||||
r1 = rf(ctx, projectID, blobs)
|
r1 = rf(ctx, projectID, blobs)
|
||||||
} else {
|
} else {
|
||||||
r1 = ret.Error(1)
|
r1 = ret.Error(1)
|
||||||
|
@ -261,7 +261,7 @@ func (_m *Controller) FindMissingAssociationsForProject(ctx context.Context, pro
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get provides a mock function with given fields: ctx, digest, options
|
// Get provides a mock function with given fields: ctx, digest, options
|
||||||
func (_m *Controller) Get(ctx context.Context, digest string, options ...blob.Option) (*pkgblob.Blob, error) {
|
func (_m *Controller) Get(ctx context.Context, digest string, options ...blob.Option) (*models.Blob, error) {
|
||||||
_va := make([]interface{}, len(options))
|
_va := make([]interface{}, len(options))
|
||||||
for _i := range options {
|
for _i := range options {
|
||||||
_va[_i] = options[_i]
|
_va[_i] = options[_i]
|
||||||
|
@ -275,16 +275,16 @@ func (_m *Controller) Get(ctx context.Context, digest string, options ...blob.Op
|
||||||
panic("no return value specified for Get")
|
panic("no return value specified for Get")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 *pkgblob.Blob
|
var r0 *models.Blob
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, string, ...blob.Option) (*pkgblob.Blob, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, string, ...blob.Option) (*models.Blob, error)); ok {
|
||||||
return rf(ctx, digest, options...)
|
return rf(ctx, digest, options...)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, string, ...blob.Option) *pkgblob.Blob); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, string, ...blob.Option) *models.Blob); ok {
|
||||||
r0 = rf(ctx, digest, options...)
|
r0 = rf(ctx, digest, options...)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).(*pkgblob.Blob)
|
r0 = ret.Get(0).(*models.Blob)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -326,23 +326,23 @@ func (_m *Controller) GetAcceptedBlobSize(ctx context.Context, sessionID string)
|
||||||
}
|
}
|
||||||
|
|
||||||
// List provides a mock function with given fields: ctx, query
|
// List provides a mock function with given fields: ctx, query
|
||||||
func (_m *Controller) List(ctx context.Context, query *q.Query) ([]*pkgblob.Blob, error) {
|
func (_m *Controller) List(ctx context.Context, query *q.Query) ([]*models.Blob, error) {
|
||||||
ret := _m.Called(ctx, query)
|
ret := _m.Called(ctx, query)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
panic("no return value specified for List")
|
panic("no return value specified for List")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 []*pkgblob.Blob
|
var r0 []*models.Blob
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) ([]*pkgblob.Blob, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) ([]*models.Blob, error)); ok {
|
||||||
return rf(ctx, query)
|
return rf(ctx, query)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) []*pkgblob.Blob); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) []*models.Blob); ok {
|
||||||
r0 = rf(ctx, query)
|
r0 = rf(ctx, query)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).([]*pkgblob.Blob)
|
r0 = ret.Get(0).([]*models.Blob)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -392,7 +392,7 @@ func (_m *Controller) Sync(ctx context.Context, references []distribution.Descri
|
||||||
}
|
}
|
||||||
|
|
||||||
// Touch provides a mock function with given fields: ctx, _a1
|
// Touch provides a mock function with given fields: ctx, _a1
|
||||||
func (_m *Controller) Touch(ctx context.Context, _a1 *pkgblob.Blob) error {
|
func (_m *Controller) Touch(ctx context.Context, _a1 *models.Blob) error {
|
||||||
ret := _m.Called(ctx, _a1)
|
ret := _m.Called(ctx, _a1)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
|
@ -400,7 +400,7 @@ func (_m *Controller) Touch(ctx context.Context, _a1 *pkgblob.Blob) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 error
|
var r0 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *pkgblob.Blob) error); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *models.Blob) error); ok {
|
||||||
r0 = rf(ctx, _a1)
|
r0 = rf(ctx, _a1)
|
||||||
} else {
|
} else {
|
||||||
r0 = ret.Error(0)
|
r0 = ret.Error(0)
|
||||||
|
@ -410,7 +410,7 @@ func (_m *Controller) Touch(ctx context.Context, _a1 *pkgblob.Blob) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update provides a mock function with given fields: ctx, _a1
|
// Update provides a mock function with given fields: ctx, _a1
|
||||||
func (_m *Controller) Update(ctx context.Context, _a1 *pkgblob.Blob) error {
|
func (_m *Controller) Update(ctx context.Context, _a1 *models.Blob) error {
|
||||||
ret := _m.Called(ctx, _a1)
|
ret := _m.Called(ctx, _a1)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
|
@ -418,7 +418,7 @@ func (_m *Controller) Update(ctx context.Context, _a1 *pkgblob.Blob) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 error
|
var r0 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *pkgblob.Blob) error); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *models.Blob) error); ok {
|
||||||
r0 = rf(ctx, _a1)
|
r0 = rf(ctx, _a1)
|
||||||
} else {
|
} else {
|
||||||
r0 = ret.Error(0)
|
r0 = ret.Error(0)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package config
|
package config
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package jobservice
|
package jobservice
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package project
|
package project
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package proxy
|
package proxy
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package purge
|
package purge
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package quota
|
package quota
|
||||||
|
|
||||||
import (
|
import (
|
||||||
context "context"
|
context "context"
|
||||||
|
|
||||||
pkgquota "github.com/goharbor/harbor/src/pkg/quota"
|
models "github.com/goharbor/harbor/src/pkg/quota/models"
|
||||||
mock "github.com/stretchr/testify/mock"
|
mock "github.com/stretchr/testify/mock"
|
||||||
|
|
||||||
q "github.com/goharbor/harbor/src/lib/q"
|
q "github.com/goharbor/harbor/src/lib/q"
|
||||||
|
@ -102,7 +102,7 @@ func (_m *Controller) Delete(ctx context.Context, id int64) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get provides a mock function with given fields: ctx, id, options
|
// Get provides a mock function with given fields: ctx, id, options
|
||||||
func (_m *Controller) Get(ctx context.Context, id int64, options ...quota.Option) (*pkgquota.Quota, error) {
|
func (_m *Controller) Get(ctx context.Context, id int64, options ...quota.Option) (*models.Quota, error) {
|
||||||
_va := make([]interface{}, len(options))
|
_va := make([]interface{}, len(options))
|
||||||
for _i := range options {
|
for _i := range options {
|
||||||
_va[_i] = options[_i]
|
_va[_i] = options[_i]
|
||||||
|
@ -116,16 +116,16 @@ func (_m *Controller) Get(ctx context.Context, id int64, options ...quota.Option
|
||||||
panic("no return value specified for Get")
|
panic("no return value specified for Get")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 *pkgquota.Quota
|
var r0 *models.Quota
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, int64, ...quota.Option) (*pkgquota.Quota, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, int64, ...quota.Option) (*models.Quota, error)); ok {
|
||||||
return rf(ctx, id, options...)
|
return rf(ctx, id, options...)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, int64, ...quota.Option) *pkgquota.Quota); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, int64, ...quota.Option) *models.Quota); ok {
|
||||||
r0 = rf(ctx, id, options...)
|
r0 = rf(ctx, id, options...)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).(*pkgquota.Quota)
|
r0 = ret.Get(0).(*models.Quota)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ func (_m *Controller) Get(ctx context.Context, id int64, options ...quota.Option
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetByRef provides a mock function with given fields: ctx, reference, referenceID, options
|
// GetByRef provides a mock function with given fields: ctx, reference, referenceID, options
|
||||||
func (_m *Controller) GetByRef(ctx context.Context, reference string, referenceID string, options ...quota.Option) (*pkgquota.Quota, error) {
|
func (_m *Controller) GetByRef(ctx context.Context, reference string, referenceID string, options ...quota.Option) (*models.Quota, error) {
|
||||||
_va := make([]interface{}, len(options))
|
_va := make([]interface{}, len(options))
|
||||||
for _i := range options {
|
for _i := range options {
|
||||||
_va[_i] = options[_i]
|
_va[_i] = options[_i]
|
||||||
|
@ -153,16 +153,16 @@ func (_m *Controller) GetByRef(ctx context.Context, reference string, referenceI
|
||||||
panic("no return value specified for GetByRef")
|
panic("no return value specified for GetByRef")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 *pkgquota.Quota
|
var r0 *models.Quota
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, string, string, ...quota.Option) (*pkgquota.Quota, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, string, string, ...quota.Option) (*models.Quota, error)); ok {
|
||||||
return rf(ctx, reference, referenceID, options...)
|
return rf(ctx, reference, referenceID, options...)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, string, string, ...quota.Option) *pkgquota.Quota); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, string, string, ...quota.Option) *models.Quota); ok {
|
||||||
r0 = rf(ctx, reference, referenceID, options...)
|
r0 = rf(ctx, reference, referenceID, options...)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).(*pkgquota.Quota)
|
r0 = ret.Get(0).(*models.Quota)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ func (_m *Controller) IsEnabled(ctx context.Context, reference string, reference
|
||||||
}
|
}
|
||||||
|
|
||||||
// List provides a mock function with given fields: ctx, query, options
|
// List provides a mock function with given fields: ctx, query, options
|
||||||
func (_m *Controller) List(ctx context.Context, query *q.Query, options ...quota.Option) ([]*pkgquota.Quota, error) {
|
func (_m *Controller) List(ctx context.Context, query *q.Query, options ...quota.Option) ([]*models.Quota, error) {
|
||||||
_va := make([]interface{}, len(options))
|
_va := make([]interface{}, len(options))
|
||||||
for _i := range options {
|
for _i := range options {
|
||||||
_va[_i] = options[_i]
|
_va[_i] = options[_i]
|
||||||
|
@ -218,16 +218,16 @@ func (_m *Controller) List(ctx context.Context, query *q.Query, options ...quota
|
||||||
panic("no return value specified for List")
|
panic("no return value specified for List")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 []*pkgquota.Quota
|
var r0 []*models.Quota
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *q.Query, ...quota.Option) ([]*pkgquota.Quota, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *q.Query, ...quota.Option) ([]*models.Quota, error)); ok {
|
||||||
return rf(ctx, query, options...)
|
return rf(ctx, query, options...)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *q.Query, ...quota.Option) []*pkgquota.Quota); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *q.Query, ...quota.Option) []*models.Quota); ok {
|
||||||
r0 = rf(ctx, query, options...)
|
r0 = rf(ctx, query, options...)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).([]*pkgquota.Quota)
|
r0 = ret.Get(0).([]*models.Quota)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ func (_m *Controller) Request(ctx context.Context, reference string, referenceID
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update provides a mock function with given fields: ctx, _a1
|
// Update provides a mock function with given fields: ctx, _a1
|
||||||
func (_m *Controller) Update(ctx context.Context, _a1 *pkgquota.Quota) error {
|
func (_m *Controller) Update(ctx context.Context, _a1 *models.Quota) error {
|
||||||
ret := _m.Called(ctx, _a1)
|
ret := _m.Called(ctx, _a1)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
|
@ -292,7 +292,7 @@ func (_m *Controller) Update(ctx context.Context, _a1 *pkgquota.Quota) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 error
|
var r0 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *pkgquota.Quota) error); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *models.Quota) error); ok {
|
||||||
r0 = rf(ctx, _a1)
|
r0 = rf(ctx, _a1)
|
||||||
} else {
|
} else {
|
||||||
r0 = ret.Error(0)
|
r0 = ret.Error(0)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package replication
|
package replication
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package repository
|
package repository
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package retention
|
package retention
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package robot
|
package robot
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package scan
|
package scan
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package scan
|
package scan
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package scandataexport
|
package scandataexport
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package scanner
|
package scanner
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package securityhub
|
package securityhub
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package systemartifact
|
package systemartifact
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package task
|
package task
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package task
|
package task
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package user
|
package user
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package webhook
|
package webhook
|
||||||
|
|
||||||
|
|
2
src/testing/lib/cache/cache.go
vendored
2
src/testing/lib/cache/cache.go
vendored
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package cache
|
package cache
|
||||||
|
|
||||||
|
|
4
src/testing/lib/cache/iterator.go
vendored
4
src/testing/lib/cache/iterator.go
vendored
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package cache
|
package cache
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ func (_m *Iterator) Next(ctx context.Context) bool {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Val provides a mock function with given fields:
|
// Val provides a mock function with no fields
|
||||||
func (_m *Iterator) Val() string {
|
func (_m *Iterator) Val() string {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package config
|
package config
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ func (_m *Manager) GetAll(ctx context.Context) map[string]interface{} {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDatabaseCfg provides a mock function with given fields:
|
// GetDatabaseCfg provides a mock function with no fields
|
||||||
func (_m *Manager) GetDatabaseCfg() *models.Database {
|
func (_m *Manager) GetDatabaseCfg() *models.Database {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ type Creator struct {
|
||||||
mock.Mock
|
mock.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create provides a mock function with given fields:
|
// Create provides a mock function with no fields
|
||||||
func (_m *Creator) Create() orm.Ormer {
|
func (_m *Creator) Create() orm.Ormer {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package accessory
|
package accessory
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package model
|
package model
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ type Accessory struct {
|
||||||
mock.Mock
|
mock.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display provides a mock function with given fields:
|
// Display provides a mock function with no fields
|
||||||
func (_m *Accessory) Display() bool {
|
func (_m *Accessory) Display() bool {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ func (_m *Accessory) Display() bool {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetData provides a mock function with given fields:
|
// GetData provides a mock function with no fields
|
||||||
func (_m *Accessory) GetData() model.AccessoryData {
|
func (_m *Accessory) GetData() model.AccessoryData {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ func (_m *Accessory) GetData() model.AccessoryData {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsHard provides a mock function with given fields:
|
// IsHard provides a mock function with no fields
|
||||||
func (_m *Accessory) IsHard() bool {
|
func (_m *Accessory) IsHard() bool {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ func (_m *Accessory) IsHard() bool {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsSoft provides a mock function with given fields:
|
// IsSoft provides a mock function with no fields
|
||||||
func (_m *Accessory) IsSoft() bool {
|
func (_m *Accessory) IsSoft() bool {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ func (_m *Accessory) IsSoft() bool {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kind provides a mock function with given fields:
|
// Kind provides a mock function with no fields
|
||||||
func (_m *Accessory) Kind() string {
|
func (_m *Accessory) Kind() string {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package allowlist
|
package allowlist
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package artifact
|
package artifact
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package artifactrash
|
package artifactrash
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package audit
|
package audit
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package auditext
|
package auditext
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package blob
|
package blob
|
||||||
|
|
||||||
import (
|
import (
|
||||||
context "context"
|
context "context"
|
||||||
|
|
||||||
blob "github.com/goharbor/harbor/src/pkg/blob"
|
|
||||||
|
|
||||||
mock "github.com/stretchr/testify/mock"
|
|
||||||
|
|
||||||
models "github.com/goharbor/harbor/src/pkg/blob/models"
|
models "github.com/goharbor/harbor/src/pkg/blob/models"
|
||||||
|
mock "github.com/stretchr/testify/mock"
|
||||||
|
|
||||||
q "github.com/goharbor/harbor/src/lib/q"
|
q "github.com/goharbor/harbor/src/lib/q"
|
||||||
)
|
)
|
||||||
|
@ -150,7 +147,7 @@ func (_m *Manager) CleanupAssociationsForArtifact(ctx context.Context, artifactD
|
||||||
}
|
}
|
||||||
|
|
||||||
// CleanupAssociationsForProject provides a mock function with given fields: ctx, projectID, blobs
|
// CleanupAssociationsForProject provides a mock function with given fields: ctx, projectID, blobs
|
||||||
func (_m *Manager) CleanupAssociationsForProject(ctx context.Context, projectID int64, blobs []*blob.Blob) error {
|
func (_m *Manager) CleanupAssociationsForProject(ctx context.Context, projectID int64, blobs []*models.Blob) error {
|
||||||
ret := _m.Called(ctx, projectID, blobs)
|
ret := _m.Called(ctx, projectID, blobs)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
|
@ -158,7 +155,7 @@ func (_m *Manager) CleanupAssociationsForProject(ctx context.Context, projectID
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 error
|
var r0 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, int64, []*blob.Blob) error); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, int64, []*models.Blob) error); ok {
|
||||||
r0 = rf(ctx, projectID, blobs)
|
r0 = rf(ctx, projectID, blobs)
|
||||||
} else {
|
} else {
|
||||||
r0 = ret.Error(0)
|
r0 = ret.Error(0)
|
||||||
|
@ -244,23 +241,23 @@ func (_m *Manager) FindBlobsShouldUnassociatedWithProject(ctx context.Context, p
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get provides a mock function with given fields: ctx, digest
|
// Get provides a mock function with given fields: ctx, digest
|
||||||
func (_m *Manager) Get(ctx context.Context, digest string) (*blob.Blob, error) {
|
func (_m *Manager) Get(ctx context.Context, digest string) (*models.Blob, error) {
|
||||||
ret := _m.Called(ctx, digest)
|
ret := _m.Called(ctx, digest)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
panic("no return value specified for Get")
|
panic("no return value specified for Get")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 *blob.Blob
|
var r0 *models.Blob
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, string) (*blob.Blob, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, string) (*models.Blob, error)); ok {
|
||||||
return rf(ctx, digest)
|
return rf(ctx, digest)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, string) *blob.Blob); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, string) *models.Blob); ok {
|
||||||
r0 = rf(ctx, digest)
|
r0 = rf(ctx, digest)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).(*blob.Blob)
|
r0 = ret.Get(0).(*models.Blob)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,23 +301,23 @@ func (_m *Manager) GetByArt(ctx context.Context, digest string) ([]*models.Blob,
|
||||||
}
|
}
|
||||||
|
|
||||||
// List provides a mock function with given fields: ctx, query
|
// List provides a mock function with given fields: ctx, query
|
||||||
func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*blob.Blob, error) {
|
func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*models.Blob, error) {
|
||||||
ret := _m.Called(ctx, query)
|
ret := _m.Called(ctx, query)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
panic("no return value specified for List")
|
panic("no return value specified for List")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 []*blob.Blob
|
var r0 []*models.Blob
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) ([]*blob.Blob, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) ([]*models.Blob, error)); ok {
|
||||||
return rf(ctx, query)
|
return rf(ctx, query)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) []*blob.Blob); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) []*models.Blob); ok {
|
||||||
r0 = rf(ctx, query)
|
r0 = rf(ctx, query)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).([]*blob.Blob)
|
r0 = ret.Get(0).([]*models.Blob)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -334,7 +331,7 @@ func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*blob.Blob, erro
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update provides a mock function with given fields: ctx, _a1
|
// Update provides a mock function with given fields: ctx, _a1
|
||||||
func (_m *Manager) Update(ctx context.Context, _a1 *blob.Blob) error {
|
func (_m *Manager) Update(ctx context.Context, _a1 *models.Blob) error {
|
||||||
ret := _m.Called(ctx, _a1)
|
ret := _m.Called(ctx, _a1)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
|
@ -342,7 +339,7 @@ func (_m *Manager) Update(ctx context.Context, _a1 *blob.Blob) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 error
|
var r0 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *blob.Blob) error); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *models.Blob) error); ok {
|
||||||
r0 = rf(ctx, _a1)
|
r0 = rf(ctx, _a1)
|
||||||
} else {
|
} else {
|
||||||
r0 = ret.Error(0)
|
r0 = ret.Error(0)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package redis
|
package redis
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package chart
|
package chart
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package distribution
|
package distribution
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ type Manifest struct {
|
||||||
mock.Mock
|
mock.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
// Payload provides a mock function with given fields:
|
// Payload provides a mock function with no fields
|
||||||
func (_m *Manifest) Payload() (string, []byte, error) {
|
func (_m *Manifest) Payload() (string, []byte, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ func (_m *Manifest) Payload() (string, []byte, error) {
|
||||||
return r0, r1, r2
|
return r0, r1, r2
|
||||||
}
|
}
|
||||||
|
|
||||||
// References provides a mock function with given fields:
|
// References provides a mock function with no fields
|
||||||
func (_m *Manifest) References() []distribution.Descriptor {
|
func (_m *Manifest) References() []distribution.Descriptor {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package immutable
|
package immutable
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package joblog
|
package joblog
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package jobmonitor
|
package jobmonitor
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ type JobServiceMonitorClient struct {
|
||||||
mock.Mock
|
mock.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
// Queues provides a mock function with given fields:
|
// Queues provides a mock function with no fields
|
||||||
func (_m *JobServiceMonitorClient) Queues() ([]*work.Queue, error) {
|
func (_m *JobServiceMonitorClient) Queues() ([]*work.Queue, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ func (_m *JobServiceMonitorClient) Queues() ([]*work.Queue, error) {
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// WorkerObservations provides a mock function with given fields:
|
// WorkerObservations provides a mock function with no fields
|
||||||
func (_m *JobServiceMonitorClient) WorkerObservations() ([]*work.WorkerObservation, error) {
|
func (_m *JobServiceMonitorClient) WorkerObservations() ([]*work.WorkerObservation, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ func (_m *JobServiceMonitorClient) WorkerObservations() ([]*work.WorkerObservati
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// WorkerPoolHeartbeats provides a mock function with given fields:
|
// WorkerPoolHeartbeats provides a mock function with no fields
|
||||||
func (_m *JobServiceMonitorClient) WorkerPoolHeartbeats() ([]*work.WorkerPoolHeartbeat, error) {
|
func (_m *JobServiceMonitorClient) WorkerPoolHeartbeats() ([]*work.WorkerPoolHeartbeat, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package jobmonitor
|
package jobmonitor
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package jobmonitor
|
package jobmonitor
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package jobmonitor
|
package jobmonitor
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package jobmonitor
|
package jobmonitor
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package label
|
package label
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package ldap
|
package ldap
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package member
|
package member
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package policy
|
package policy
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package oidc
|
package oidc
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package instance
|
package instance
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package policy
|
package policy
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package parser
|
package parser
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package processor
|
package processor
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package project
|
package project
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package metadata
|
package metadata
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package queuestatus
|
package queuestatus
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package driver
|
package driver
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package quota
|
package quota
|
||||||
|
|
||||||
import (
|
import (
|
||||||
context "context"
|
context "context"
|
||||||
|
|
||||||
q "github.com/goharbor/harbor/src/lib/q"
|
models "github.com/goharbor/harbor/src/pkg/quota/models"
|
||||||
mock "github.com/stretchr/testify/mock"
|
mock "github.com/stretchr/testify/mock"
|
||||||
|
|
||||||
quota "github.com/goharbor/harbor/src/pkg/quota"
|
q "github.com/goharbor/harbor/src/lib/q"
|
||||||
|
|
||||||
types "github.com/goharbor/harbor/src/pkg/quota/types"
|
types "github.com/goharbor/harbor/src/pkg/quota/types"
|
||||||
)
|
)
|
||||||
|
@ -100,23 +100,23 @@ func (_m *Manager) Delete(ctx context.Context, id int64) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get provides a mock function with given fields: ctx, id
|
// Get provides a mock function with given fields: ctx, id
|
||||||
func (_m *Manager) Get(ctx context.Context, id int64) (*quota.Quota, error) {
|
func (_m *Manager) Get(ctx context.Context, id int64) (*models.Quota, error) {
|
||||||
ret := _m.Called(ctx, id)
|
ret := _m.Called(ctx, id)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
panic("no return value specified for Get")
|
panic("no return value specified for Get")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 *quota.Quota
|
var r0 *models.Quota
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, int64) (*quota.Quota, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, int64) (*models.Quota, error)); ok {
|
||||||
return rf(ctx, id)
|
return rf(ctx, id)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, int64) *quota.Quota); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, int64) *models.Quota); ok {
|
||||||
r0 = rf(ctx, id)
|
r0 = rf(ctx, id)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).(*quota.Quota)
|
r0 = ret.Get(0).(*models.Quota)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,23 +130,23 @@ func (_m *Manager) Get(ctx context.Context, id int64) (*quota.Quota, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetByRef provides a mock function with given fields: ctx, reference, referenceID
|
// GetByRef provides a mock function with given fields: ctx, reference, referenceID
|
||||||
func (_m *Manager) GetByRef(ctx context.Context, reference string, referenceID string) (*quota.Quota, error) {
|
func (_m *Manager) GetByRef(ctx context.Context, reference string, referenceID string) (*models.Quota, error) {
|
||||||
ret := _m.Called(ctx, reference, referenceID)
|
ret := _m.Called(ctx, reference, referenceID)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
panic("no return value specified for GetByRef")
|
panic("no return value specified for GetByRef")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 *quota.Quota
|
var r0 *models.Quota
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, string, string) (*quota.Quota, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, string, string) (*models.Quota, error)); ok {
|
||||||
return rf(ctx, reference, referenceID)
|
return rf(ctx, reference, referenceID)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, string, string) *quota.Quota); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, string, string) *models.Quota); ok {
|
||||||
r0 = rf(ctx, reference, referenceID)
|
r0 = rf(ctx, reference, referenceID)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).(*quota.Quota)
|
r0 = ret.Get(0).(*models.Quota)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,23 +160,23 @@ func (_m *Manager) GetByRef(ctx context.Context, reference string, referenceID s
|
||||||
}
|
}
|
||||||
|
|
||||||
// List provides a mock function with given fields: ctx, query
|
// List provides a mock function with given fields: ctx, query
|
||||||
func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*quota.Quota, error) {
|
func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*models.Quota, error) {
|
||||||
ret := _m.Called(ctx, query)
|
ret := _m.Called(ctx, query)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
panic("no return value specified for List")
|
panic("no return value specified for List")
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 []*quota.Quota
|
var r0 []*models.Quota
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) ([]*quota.Quota, error)); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) ([]*models.Quota, error)); ok {
|
||||||
return rf(ctx, query)
|
return rf(ctx, query)
|
||||||
}
|
}
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) []*quota.Quota); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *q.Query) []*models.Quota); ok {
|
||||||
r0 = rf(ctx, query)
|
r0 = rf(ctx, query)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
r0 = ret.Get(0).([]*quota.Quota)
|
r0 = ret.Get(0).([]*models.Quota)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*quota.Quota, er
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update provides a mock function with given fields: ctx, _a1
|
// Update provides a mock function with given fields: ctx, _a1
|
||||||
func (_m *Manager) Update(ctx context.Context, _a1 *quota.Quota) error {
|
func (_m *Manager) Update(ctx context.Context, _a1 *models.Quota) error {
|
||||||
ret := _m.Called(ctx, _a1)
|
ret := _m.Called(ctx, _a1)
|
||||||
|
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
|
@ -198,7 +198,7 @@ func (_m *Manager) Update(ctx context.Context, _a1 *quota.Quota) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
var r0 error
|
var r0 error
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *quota.Quota) error); ok {
|
if rf, ok := ret.Get(0).(func(context.Context, *models.Quota) error); ok {
|
||||||
r0 = rf(ctx, _a1)
|
r0 = rf(ctx, _a1)
|
||||||
} else {
|
} else {
|
||||||
r0 = ret.Error(0)
|
r0 = ret.Error(0)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package rbac
|
package rbac
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package adapter
|
package adapter
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ type Adapter struct {
|
||||||
mock.Mock
|
mock.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
// HealthCheck provides a mock function with given fields:
|
// HealthCheck provides a mock function with no fields
|
||||||
func (_m *Adapter) HealthCheck() (string, error) {
|
func (_m *Adapter) HealthCheck() (string, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ func (_m *Adapter) HealthCheck() (string, error) {
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info provides a mock function with given fields:
|
// Info provides a mock function with no fields
|
||||||
func (_m *Adapter) Info() (*model.RegistryInfo, error) {
|
func (_m *Adapter) Info() (*model.RegistryInfo, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package reg
|
package reg
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package registry
|
package registry
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ func (_m *Client) BlobExist(repository string, digest string) (bool, error) {
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Catalog provides a mock function with given fields:
|
// Catalog provides a mock function with no fields
|
||||||
func (_m *Client) Catalog() ([]string, error) {
|
func (_m *Client) Catalog() ([]string, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ func (_m *Client) MountBlob(srcRepository string, digest string, dstRepository s
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ping provides a mock function with given fields:
|
// Ping provides a mock function with no fields
|
||||||
func (_m *Client) Ping() error {
|
func (_m *Client) Ping() error {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package replication
|
package replication
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package repository
|
package repository
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package robot
|
package robot
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package export
|
package export
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package export
|
package export
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package export
|
package export
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package scan
|
package scan
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ func (_m *Handler) GetSummary(ctx context.Context, ar *artifact.Artifact, mimeTy
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobVendorType provides a mock function with given fields:
|
// JobVendorType provides a mock function with no fields
|
||||||
func (_m *Handler) JobVendorType() string {
|
func (_m *Handler) JobVendorType() string {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ func (_m *Handler) PostScan(ctx job.Context, sr *v1.ScanRequest, rp *scan.Report
|
||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// RequestParameters provides a mock function with given fields:
|
// RequestParameters provides a mock function with no fields
|
||||||
func (_m *Handler) RequestParameters() map[string]interface{} {
|
func (_m *Handler) RequestParameters() map[string]interface{} {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ func (_m *Handler) RequestParameters() map[string]interface{} {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// RequestProducesMineTypes provides a mock function with given fields:
|
// RequestProducesMineTypes provides a mock function with no fields
|
||||||
func (_m *Handler) RequestProducesMineTypes() []string {
|
func (_m *Handler) RequestProducesMineTypes() []string {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ func (_m *Handler) RequestProducesMineTypes() []string {
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// RequiredPermissions provides a mock function with given fields:
|
// RequiredPermissions provides a mock function with no fields
|
||||||
func (_m *Handler) RequiredPermissions() []*types.Policy {
|
func (_m *Handler) RequiredPermissions() []*types.Policy {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package postprocessors
|
package postprocessors
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package report
|
package report
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Code generated by mockery v2.46.2. DO NOT EDIT.
|
// Code generated by mockery v2.51.0. DO NOT EDIT.
|
||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ type Client struct {
|
||||||
mock.Mock
|
mock.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetMetadata provides a mock function with given fields:
|
// GetMetadata provides a mock function with no fields
|
||||||
func (_m *Client) GetMetadata() (*v1.ScannerAdapterMetadata, error) {
|
func (_m *Client) GetMetadata() (*v1.ScannerAdapterMetadata, error) {
|
||||||
ret := _m.Called()
|
ret := _m.Called()
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user