This repository has been archived by the owner on May 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
SfcManager.go
92 lines (74 loc) · 3.09 KB
/
SfcManager.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package mocks
import (
model "github.com/open-ness/EMCO/src/sfcclient/pkg/model"
mock "github.com/stretchr/testify/mock"
)
// SfcManager is an autogenerated mock type for the SfcManager type
type SfcManager struct {
mock.Mock
}
// CreateSfcClientIntent provides a mock function with given fields: sfc, pr, ca, caver, dig, netctrlint, exists
func (_m *SfcManager) CreateSfcClientIntent(sfc model.SfcClientIntent, pr string, ca string, caver string, dig string, netctrlint string, exists bool) (model.SfcClientIntent, error) {
ret := _m.Called(sfc, pr, ca, caver, dig, netctrlint, exists)
var r0 model.SfcClientIntent
if rf, ok := ret.Get(0).(func(model.SfcClientIntent, string, string, string, string, string, bool) model.SfcClientIntent); ok {
r0 = rf(sfc, pr, ca, caver, dig, netctrlint, exists)
} else {
r0 = ret.Get(0).(model.SfcClientIntent)
}
var r1 error
if rf, ok := ret.Get(1).(func(model.SfcClientIntent, string, string, string, string, string, bool) error); ok {
r1 = rf(sfc, pr, ca, caver, dig, netctrlint, exists)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// DeleteSfcClientIntent provides a mock function with given fields: name, pr, ca, caver, dig, netctrlint
func (_m *SfcManager) DeleteSfcClientIntent(name string, pr string, ca string, caver string, dig string, netctrlint string) error {
ret := _m.Called(name, pr, ca, caver, dig, netctrlint)
var r0 error
if rf, ok := ret.Get(0).(func(string, string, string, string, string, string) error); ok {
r0 = rf(name, pr, ca, caver, dig, netctrlint)
} else {
r0 = ret.Error(0)
}
return r0
}
// GetAllSfcClientIntents provides a mock function with given fields: pr, ca, caver, dig, netctrlint
func (_m *SfcManager) GetAllSfcClientIntents(pr string, ca string, caver string, dig string, netctrlint string) ([]model.SfcClientIntent, error) {
ret := _m.Called(pr, ca, caver, dig, netctrlint)
var r0 []model.SfcClientIntent
if rf, ok := ret.Get(0).(func(string, string, string, string, string) []model.SfcClientIntent); ok {
r0 = rf(pr, ca, caver, dig, netctrlint)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]model.SfcClientIntent)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, string, string, string, string) error); ok {
r1 = rf(pr, ca, caver, dig, netctrlint)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetSfcClientIntent provides a mock function with given fields: name, pr, ca, caver, dig, netctrlint
func (_m *SfcManager) GetSfcClientIntent(name string, pr string, ca string, caver string, dig string, netctrlint string) (model.SfcClientIntent, error) {
ret := _m.Called(name, pr, ca, caver, dig, netctrlint)
var r0 model.SfcClientIntent
if rf, ok := ret.Get(0).(func(string, string, string, string, string, string) model.SfcClientIntent); ok {
r0 = rf(name, pr, ca, caver, dig, netctrlint)
} else {
r0 = ret.Get(0).(model.SfcClientIntent)
}
var r1 error
if rf, ok := ret.Get(1).(func(string, string, string, string, string, string) error); ok {
r1 = rf(name, pr, ca, caver, dig, netctrlint)
} else {
r1 = ret.Error(1)
}
return r0, r1
}