2020-09-30 09:14:00 +02:00
|
|
|
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
|
|
|
|
|
|
|
package replication
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
|
2021-03-31 09:49:23 +02:00
|
|
|
model "github.com/goharbor/harbor/src/controller/replication/model"
|
2021-03-03 04:45:33 +01:00
|
|
|
|
2021-03-31 09:49:23 +02:00
|
|
|
regmodel "github.com/goharbor/harbor/src/pkg/reg/model"
|
2020-09-30 09:14:00 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// flowController is an autogenerated mock type for the Controller type
|
|
|
|
type flowController struct {
|
|
|
|
mock.Mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// Start provides a mock function with given fields: ctx, executionID, policy, resource
|
2021-03-31 09:49:23 +02:00
|
|
|
func (_m *flowController) Start(ctx context.Context, executionID int64, policy *model.Policy, resource *regmodel.Resource) error {
|
2020-09-30 09:14:00 +02:00
|
|
|
ret := _m.Called(ctx, executionID, policy, resource)
|
|
|
|
|
|
|
|
var r0 error
|
2021-03-31 09:49:23 +02:00
|
|
|
if rf, ok := ret.Get(0).(func(context.Context, int64, *model.Policy, *regmodel.Resource) error); ok {
|
2020-09-30 09:14:00 +02:00
|
|
|
r0 = rf(ctx, executionID, policy, resource)
|
|
|
|
} else {
|
|
|
|
r0 = ret.Error(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|