This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
quality_of_service_configuration.go
82 lines (64 loc) · 2.88 KB
/
quality_of_service_configuration.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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"
mock "github.com/stretchr/testify/mock"
)
// QualityOfServiceConfiguration is an autogenerated mock type for the QualityOfServiceConfiguration type
type QualityOfServiceConfiguration struct {
mock.Mock
}
type QualityOfServiceConfiguration_GetDefaultTiers struct {
*mock.Call
}
func (_m QualityOfServiceConfiguration_GetDefaultTiers) Return(_a0 map[string]core.QualityOfService_Tier) *QualityOfServiceConfiguration_GetDefaultTiers {
return &QualityOfServiceConfiguration_GetDefaultTiers{Call: _m.Call.Return(_a0)}
}
func (_m *QualityOfServiceConfiguration) OnGetDefaultTiers() *QualityOfServiceConfiguration_GetDefaultTiers {
c := _m.On("GetDefaultTiers")
return &QualityOfServiceConfiguration_GetDefaultTiers{Call: c}
}
func (_m *QualityOfServiceConfiguration) OnGetDefaultTiersMatch(matchers ...interface{}) *QualityOfServiceConfiguration_GetDefaultTiers {
c := _m.On("GetDefaultTiers", matchers...)
return &QualityOfServiceConfiguration_GetDefaultTiers{Call: c}
}
// GetDefaultTiers provides a mock function with given fields:
func (_m *QualityOfServiceConfiguration) GetDefaultTiers() map[string]core.QualityOfService_Tier {
ret := _m.Called()
var r0 map[string]core.QualityOfService_Tier
if rf, ok := ret.Get(0).(func() map[string]core.QualityOfService_Tier); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]core.QualityOfService_Tier)
}
}
return r0
}
type QualityOfServiceConfiguration_GetTierExecutionValues struct {
*mock.Call
}
func (_m QualityOfServiceConfiguration_GetTierExecutionValues) Return(_a0 map[core.QualityOfService_Tier]core.QualityOfServiceSpec) *QualityOfServiceConfiguration_GetTierExecutionValues {
return &QualityOfServiceConfiguration_GetTierExecutionValues{Call: _m.Call.Return(_a0)}
}
func (_m *QualityOfServiceConfiguration) OnGetTierExecutionValues() *QualityOfServiceConfiguration_GetTierExecutionValues {
c := _m.On("GetTierExecutionValues")
return &QualityOfServiceConfiguration_GetTierExecutionValues{Call: c}
}
func (_m *QualityOfServiceConfiguration) OnGetTierExecutionValuesMatch(matchers ...interface{}) *QualityOfServiceConfiguration_GetTierExecutionValues {
c := _m.On("GetTierExecutionValues", matchers...)
return &QualityOfServiceConfiguration_GetTierExecutionValues{Call: c}
}
// GetTierExecutionValues provides a mock function with given fields:
func (_m *QualityOfServiceConfiguration) GetTierExecutionValues() map[core.QualityOfService_Tier]core.QualityOfServiceSpec {
ret := _m.Called()
var r0 map[core.QualityOfService_Tier]core.QualityOfServiceSpec
if rf, ok := ret.Get(0).(func() map[core.QualityOfService_Tier]core.QualityOfServiceSpec); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[core.QualityOfService_Tier]core.QualityOfServiceSpec)
}
}
return r0
}