forked from cloudfoundry/bosh-bootloader
/
dir_provider.go
59 lines (47 loc) · 1.22 KB
/
dir_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
package fakes
type DirProvider struct {
GetDirectorDeploymentDirCall struct {
CallCount int
Returns struct {
Dir string
Error error
}
}
GetCloudConfigDirCall struct {
CallCount int
Returns struct {
Directory string
Error error
}
}
GetVarsDirCall struct {
CallCount int
Returns struct {
Directory string
Error error
}
}
GetRuntimeConfigDirCall struct {
CallCount int
Returns struct {
Dir string
Error error
}
}
}
func (d *DirProvider) GetDirectorDeploymentDir() (string, error) {
d.GetDirectorDeploymentDirCall.CallCount++
return d.GetDirectorDeploymentDirCall.Returns.Dir, d.GetDirectorDeploymentDirCall.Returns.Error
}
func (d *DirProvider) GetCloudConfigDir() (string, error) {
d.GetCloudConfigDirCall.CallCount++
return d.GetCloudConfigDirCall.Returns.Directory, d.GetCloudConfigDirCall.Returns.Error
}
func (d *DirProvider) GetVarsDir() (string, error) {
d.GetVarsDirCall.CallCount++
return d.GetVarsDirCall.Returns.Directory, d.GetVarsDirCall.Returns.Error
}
func (d *DirProvider) GetRuntimeConfigDir() (string, error) {
d.GetRuntimeConfigDirCall.CallCount++
return d.GetRuntimeConfigDirCall.Returns.Dir, d.GetRuntimeConfigDirCall.Returns.Error
}