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 62
/
flyte_admin_data_provider.go
98 lines (77 loc) · 3.14 KB
/
flyte_admin_data_provider.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
93
94
95
96
97
98
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
context "context"
admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"
mock "github.com/stretchr/testify/mock"
)
// FlyteAdminDataProvider is an autogenerated mock type for the FlyteAdminDataProvider type
type FlyteAdminDataProvider struct {
mock.Mock
}
type FlyteAdminDataProvider_GetClusterResourceAttributes struct {
*mock.Call
}
func (_m FlyteAdminDataProvider_GetClusterResourceAttributes) Return(_a0 *admin.ClusterResourceAttributes, _a1 error) *FlyteAdminDataProvider_GetClusterResourceAttributes {
return &FlyteAdminDataProvider_GetClusterResourceAttributes{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *FlyteAdminDataProvider) OnGetClusterResourceAttributes(ctx context.Context, project string, domain string) *FlyteAdminDataProvider_GetClusterResourceAttributes {
c := _m.On("GetClusterResourceAttributes", ctx, project, domain)
return &FlyteAdminDataProvider_GetClusterResourceAttributes{Call: c}
}
func (_m *FlyteAdminDataProvider) OnGetClusterResourceAttributesMatch(matchers ...interface{}) *FlyteAdminDataProvider_GetClusterResourceAttributes {
c := _m.On("GetClusterResourceAttributes", matchers...)
return &FlyteAdminDataProvider_GetClusterResourceAttributes{Call: c}
}
// GetClusterResourceAttributes provides a mock function with given fields: ctx, project, domain
func (_m *FlyteAdminDataProvider) GetClusterResourceAttributes(ctx context.Context, project string, domain string) (*admin.ClusterResourceAttributes, error) {
ret := _m.Called(ctx, project, domain)
var r0 *admin.ClusterResourceAttributes
if rf, ok := ret.Get(0).(func(context.Context, string, string) *admin.ClusterResourceAttributes); ok {
r0 = rf(ctx, project, domain)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*admin.ClusterResourceAttributes)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
r1 = rf(ctx, project, domain)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type FlyteAdminDataProvider_GetProjects struct {
*mock.Call
}
func (_m FlyteAdminDataProvider_GetProjects) Return(_a0 *admin.Projects, _a1 error) *FlyteAdminDataProvider_GetProjects {
return &FlyteAdminDataProvider_GetProjects{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *FlyteAdminDataProvider) OnGetProjects(ctx context.Context) *FlyteAdminDataProvider_GetProjects {
c := _m.On("GetProjects", ctx)
return &FlyteAdminDataProvider_GetProjects{Call: c}
}
func (_m *FlyteAdminDataProvider) OnGetProjectsMatch(matchers ...interface{}) *FlyteAdminDataProvider_GetProjects {
c := _m.On("GetProjects", matchers...)
return &FlyteAdminDataProvider_GetProjects{Call: c}
}
// GetProjects provides a mock function with given fields: ctx
func (_m *FlyteAdminDataProvider) GetProjects(ctx context.Context) (*admin.Projects, error) {
ret := _m.Called(ctx)
var r0 *admin.Projects
if rf, ok := ret.Get(0).(func(context.Context) *admin.Projects); ok {
r0 = rf(ctx)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*admin.Projects)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context) error); ok {
r1 = rf(ctx)
} else {
r1 = ret.Error(1)
}
return r0, r1
}