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
/
mock_application_provider.go
80 lines (62 loc) · 2.51 KB
/
mock_application_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
package mocks
import (
"github.com/flyteorg/flyteadmin/pkg/runtime/interfaces"
)
type MockApplicationProvider struct {
dbConfig interfaces.DbConfig
topLevelConfig interfaces.ApplicationConfig
schedulerConfig interfaces.SchedulerConfig
remoteDataConfig interfaces.RemoteDataConfig
notificationsConfig interfaces.NotificationsConfig
domainsConfig interfaces.DomainsConfig
externalEventsConfig interfaces.ExternalEventsConfig
cloudEventConfig interfaces.CloudEventsConfig
}
func (p *MockApplicationProvider) GetDbConfig() *interfaces.DbConfig {
return &p.dbConfig
}
func (p *MockApplicationProvider) SetDbConfig(dbConfig interfaces.DbConfig) {
p.dbConfig = dbConfig
}
func (p *MockApplicationProvider) GetTopLevelConfig() *interfaces.ApplicationConfig {
return &p.topLevelConfig
}
func (p *MockApplicationProvider) SetTopLevelConfig(topLevelConfig interfaces.ApplicationConfig) {
p.topLevelConfig = topLevelConfig
}
func (p *MockApplicationProvider) GetSchedulerConfig() *interfaces.SchedulerConfig {
return &p.schedulerConfig
}
func (p *MockApplicationProvider) SetSchedulerConfig(schedulerConfig interfaces.SchedulerConfig) {
p.schedulerConfig = schedulerConfig
}
func (p *MockApplicationProvider) GetRemoteDataConfig() *interfaces.RemoteDataConfig {
return &p.remoteDataConfig
}
func (p *MockApplicationProvider) SetRemoteDataConfig(remoteDataConfig interfaces.RemoteDataConfig) {
p.remoteDataConfig = remoteDataConfig
}
func (p *MockApplicationProvider) GetNotificationsConfig() *interfaces.NotificationsConfig {
return &p.notificationsConfig
}
func (p *MockApplicationProvider) SetNotificationsConfig(notificationsConfig interfaces.NotificationsConfig) {
p.notificationsConfig = notificationsConfig
}
func (p *MockApplicationProvider) GetDomainsConfig() *interfaces.DomainsConfig {
return &p.domainsConfig
}
func (p *MockApplicationProvider) SetDomainsConfig(domainsConfig interfaces.DomainsConfig) {
p.domainsConfig = domainsConfig
}
func (p *MockApplicationProvider) SetExternalEventsConfig(externalEventsConfig interfaces.ExternalEventsConfig) {
p.externalEventsConfig = externalEventsConfig
}
func (p *MockApplicationProvider) GetExternalEventsConfig() *interfaces.ExternalEventsConfig {
return &p.externalEventsConfig
}
func (p *MockApplicationProvider) SetCloudEventsConfig(cloudEventConfig interfaces.CloudEventsConfig) {
p.cloudEventConfig = cloudEventConfig
}
func (p *MockApplicationProvider) GetCloudEventsConfig() *interfaces.CloudEventsConfig {
return &p.cloudEventConfig
}