156 lines
4.6 KiB
Go
156 lines
4.6 KiB
Go
// Code generated by mockery v2.43.1. DO NOT EDIT.
|
|
|
|
package network
|
|
|
|
import (
|
|
context "context"
|
|
bootstrap "isle/bootstrap"
|
|
|
|
daecommon "isle/daemon/daecommon"
|
|
|
|
mlog "dev.mediocregopher.com/mediocre-go-lib.git/mlog"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
nebula "isle/nebula"
|
|
)
|
|
|
|
// MockLoader is an autogenerated mock type for the Loader type
|
|
type MockLoader struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// Create provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6
|
|
func (_m *MockLoader) Create(_a0 context.Context, _a1 *mlog.Logger, _a2 daecommon.NetworkConfig, _a3 bootstrap.CreationParams, _a4 nebula.IPNet, _a5 nebula.HostName, _a6 *Opts) (Network, error) {
|
|
ret := _m.Called(_a0, _a1, _a2, _a3, _a4, _a5, _a6)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for Create")
|
|
}
|
|
|
|
var r0 Network
|
|
var r1 error
|
|
if rf, ok := ret.Get(0).(func(context.Context, *mlog.Logger, daecommon.NetworkConfig, bootstrap.CreationParams, nebula.IPNet, nebula.HostName, *Opts) (Network, error)); ok {
|
|
return rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6)
|
|
}
|
|
if rf, ok := ret.Get(0).(func(context.Context, *mlog.Logger, daecommon.NetworkConfig, bootstrap.CreationParams, nebula.IPNet, nebula.HostName, *Opts) Network); ok {
|
|
r0 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(Network)
|
|
}
|
|
}
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, *mlog.Logger, daecommon.NetworkConfig, bootstrap.CreationParams, nebula.IPNet, nebula.HostName, *Opts) error); ok {
|
|
r1 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// Join provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
|
|
func (_m *MockLoader) Join(_a0 context.Context, _a1 *mlog.Logger, _a2 daecommon.NetworkConfig, _a3 JoiningBootstrap, _a4 *Opts) (Network, error) {
|
|
ret := _m.Called(_a0, _a1, _a2, _a3, _a4)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for Join")
|
|
}
|
|
|
|
var r0 Network
|
|
var r1 error
|
|
if rf, ok := ret.Get(0).(func(context.Context, *mlog.Logger, daecommon.NetworkConfig, JoiningBootstrap, *Opts) (Network, error)); ok {
|
|
return rf(_a0, _a1, _a2, _a3, _a4)
|
|
}
|
|
if rf, ok := ret.Get(0).(func(context.Context, *mlog.Logger, daecommon.NetworkConfig, JoiningBootstrap, *Opts) Network); ok {
|
|
r0 = rf(_a0, _a1, _a2, _a3, _a4)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(Network)
|
|
}
|
|
}
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, *mlog.Logger, daecommon.NetworkConfig, JoiningBootstrap, *Opts) error); ok {
|
|
r1 = rf(_a0, _a1, _a2, _a3, _a4)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// Load provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
|
|
func (_m *MockLoader) Load(_a0 context.Context, _a1 *mlog.Logger, _a2 daecommon.NetworkConfig, _a3 bootstrap.CreationParams, _a4 *Opts) (Network, error) {
|
|
ret := _m.Called(_a0, _a1, _a2, _a3, _a4)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for Load")
|
|
}
|
|
|
|
var r0 Network
|
|
var r1 error
|
|
if rf, ok := ret.Get(0).(func(context.Context, *mlog.Logger, daecommon.NetworkConfig, bootstrap.CreationParams, *Opts) (Network, error)); ok {
|
|
return rf(_a0, _a1, _a2, _a3, _a4)
|
|
}
|
|
if rf, ok := ret.Get(0).(func(context.Context, *mlog.Logger, daecommon.NetworkConfig, bootstrap.CreationParams, *Opts) Network); ok {
|
|
r0 = rf(_a0, _a1, _a2, _a3, _a4)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(Network)
|
|
}
|
|
}
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, *mlog.Logger, daecommon.NetworkConfig, bootstrap.CreationParams, *Opts) error); ok {
|
|
r1 = rf(_a0, _a1, _a2, _a3, _a4)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// Loadable provides a mock function with given fields: _a0
|
|
func (_m *MockLoader) Loadable(_a0 context.Context) ([]bootstrap.CreationParams, error) {
|
|
ret := _m.Called(_a0)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for Loadable")
|
|
}
|
|
|
|
var r0 []bootstrap.CreationParams
|
|
var r1 error
|
|
if rf, ok := ret.Get(0).(func(context.Context) ([]bootstrap.CreationParams, error)); ok {
|
|
return rf(_a0)
|
|
}
|
|
if rf, ok := ret.Get(0).(func(context.Context) []bootstrap.CreationParams); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).([]bootstrap.CreationParams)
|
|
}
|
|
}
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context) error); ok {
|
|
r1 = rf(_a0)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// NewMockLoader creates a new instance of MockLoader. 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 NewMockLoader(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *MockLoader {
|
|
mock := &MockLoader{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|