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
/
Copy pathmock_application_provider.go
62 lines (48 loc) · 1.85 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
package mocks
import (
"github.com/lyft/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
}
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
}