Newer
Older
// Code generated by mockery v2.10.0. DO NOT EDIT.
change "code.fbi.h-da.de/danet/gosdn/controller/interfaces/change"
device "code.fbi.h-da.de/danet/gosdn/controller/interfaces/device"
mock "github.com/stretchr/testify/mock"
pnd "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/pnd"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
southbound "code.fbi.h-da.de/danet/gosdn/controller/interfaces/southbound"
transport "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/transport"
// NetworkDomain is an autogenerated mock type for the NetworkDomain type
type NetworkDomain struct {
// AddDevice provides a mock function with given fields: name, opts, sid
func (_m *NetworkDomain) AddDevice(name string, opts *transport.TransportOption, sid uuid.UUID) error {
if rf, ok := ret.Get(0).(func(string, *transport.TransportOption, uuid.UUID) error); ok {
r0 = rf(name, opts, sid)
} else {
r0 = ret.Error(0)
}
return r0
}
// AddSbi provides a mock function with given fields: s
func (_m *NetworkDomain) AddSbi(s southbound.SouthboundInterface) error {
ret := _m.Called(s)
if rf, ok := ret.Get(0).(func(southbound.SouthboundInterface) error); ok {
r0 = rf(s)
} else {
r0 = ret.Error(0)
}
return r0
}
// ChangeOND provides a mock function with given fields: _a0, operation, path, value
func (_m *NetworkDomain) ChangeOND(_a0 uuid.UUID, operation pnd.ApiOperation, path string, value ...string) (uuid.UUID, error) {
_va := make([]interface{}, len(value))
for _i := range value {
_va[_i] = value[_i]
}
var _ca []interface{}
_ca = append(_ca, _a0, operation, path)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
var r0 uuid.UUID
if rf, ok := ret.Get(0).(func(uuid.UUID, pnd.ApiOperation, string, ...string) uuid.UUID); ok {
if ret.Get(0) != nil {
r0 = ret.Get(0).(uuid.UUID)
}
var r1 error
if rf, ok := ret.Get(1).(func(uuid.UUID, pnd.ApiOperation, string, ...string) error); ok {
r1 = rf(_a0, operation, path, value...)
} else {
r1 = ret.Error(1)
}
return r0, r1
// Commit provides a mock function with given fields: _a0
func (_m *NetworkDomain) Commit(_a0 uuid.UUID) error {
var r0 error
if rf, ok := ret.Get(0).(func(uuid.UUID) error); ok {
} else {
r0 = ret.Error(0)
}
return r0
}
// CommittedChanges provides a mock function with given fields:
func (_m *NetworkDomain) CommittedChanges() []uuid.UUID {
ret := _m.Called()
var r0 []uuid.UUID
if rf, ok := ret.Get(0).(func() []uuid.UUID); ok {
r0 = rf()
r0 = ret.Get(0).([]uuid.UUID)
return r0
}
// Confirm provides a mock function with given fields: _a0
func (_m *NetworkDomain) Confirm(_a0 uuid.UUID) error {
ret := _m.Called(_a0)
var r0 error
if rf, ok := ret.Get(0).(func(uuid.UUID) error); ok {
r0 = rf(_a0)
// Destroy provides a mock function with given fields:
func (_m *NetworkDomain) Destroy() error {
ret := _m.Called()
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
} else {
r0 = ret.Error(0)
}
return r0
}
// Devices provides a mock function with given fields:
func (_m *NetworkDomain) Devices() []device.Device {
var r0 []device.Device
if rf, ok := ret.Get(0).(func() []device.Device); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]device.Device)
}
}
return r0
}
// GetChange provides a mock function with given fields: _a0
func (_m *NetworkDomain) GetChange(_a0 uuid.UUID) (change.Change, error) {
ret := _m.Called(_a0)
if rf, ok := ret.Get(0).(func(uuid.UUID) change.Change); ok {
r0 = rf(_a0)
if rf, ok := ret.Get(1).(func(uuid.UUID) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetDescription provides a mock function with given fields:
func (_m *NetworkDomain) GetDescription() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// GetDevice provides a mock function with given fields: identifier
func (_m *NetworkDomain) GetDevice(identifier string) (device.Device, error) {
var r0 device.Device
if rf, ok := ret.Get(0).(func(string) device.Device); ok {
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(identifier)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetName provides a mock function with given fields:
func (_m *NetworkDomain) GetName() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// GetSBI provides a mock function with given fields: _a0
func (_m *NetworkDomain) GetSBI(_a0 uuid.UUID) (southbound.SouthboundInterface, error) {
ret := _m.Called(_a0)
var r0 southbound.SouthboundInterface
if rf, ok := ret.Get(0).(func(uuid.UUID) southbound.SouthboundInterface); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(southbound.SouthboundInterface)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(uuid.UUID) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetSBIs provides a mock function with given fields:
func (_m *NetworkDomain) GetSBIs() ([]southbound.SouthboundInterface, error) {
var r0 []southbound.SouthboundInterface
if rf, ok := ret.Get(0).(func() []southbound.SouthboundInterface); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]southbound.SouthboundInterface)
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
func (_m *NetworkDomain) ID() uuid.UUID {
ret := _m.Called()
var r0 uuid.UUID
if rf, ok := ret.Get(0).(func() uuid.UUID); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(uuid.UUID)
}
}
return r0
}
// MarshalDevice provides a mock function with given fields: _a0
func (_m *NetworkDomain) MarshalDevice(_a0 string) (string, error) {
ret := _m.Called(_a0)
var r0 string
if rf, ok := ret.Get(0).(func(string) string); ok {
r0 = rf(_a0)
} else {
r0 = ret.Get(0).(string)
}
var r1 error
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// PendingChanges provides a mock function with given fields:
func (_m *NetworkDomain) PendingChanges() []uuid.UUID {
var r0 []uuid.UUID
if rf, ok := ret.Get(0).(func() []uuid.UUID); ok {
r0 = rf()
r0 = ret.Get(0).([]uuid.UUID)
// RemoveDevice provides a mock function with given fields: _a0
func (_m *NetworkDomain) RemoveDevice(_a0 uuid.UUID) error {
ret := _m.Called(_a0)
var r0 error
if rf, ok := ret.Get(0).(func(uuid.UUID) error); ok {
r0 = rf(_a0)
} else {
r0 = ret.Error(0)
}
return r0
}
// RemoveSbi provides a mock function with given fields: _a0
func (_m *NetworkDomain) RemoveSbi(_a0 uuid.UUID) error {
ret := _m.Called(_a0)
var r0 error
if rf, ok := ret.Get(0).(func(uuid.UUID) error); ok {
r0 = rf(_a0)
} else {
r0 = ret.Error(0)
}
return r0
}
// Request provides a mock function with given fields: _a0, _a1
func (_m *NetworkDomain) Request(_a0 uuid.UUID, _a1 string) (protoreflect.ProtoMessage, error) {
var r0 protoreflect.ProtoMessage
if rf, ok := ret.Get(0).(func(uuid.UUID, string) protoreflect.ProtoMessage); ok {
if ret.Get(0) != nil {
r0 = ret.Get(0).(protoreflect.ProtoMessage)
}
var r1 error
if rf, ok := ret.Get(1).(func(uuid.UUID, string) error); ok {
r1 = rf(_a0, _a1)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// RequestAll provides a mock function with given fields: _a0
func (_m *NetworkDomain) RequestAll(_a0 string) error {