forked from solo-io/gloo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
directory.go
47 lines (38 loc) · 1.09 KB
/
directory.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
package helpers
import (
"os"
"path/filepath"
)
func SoloDirectory() string {
return filepath.Join(os.Getenv("GOPATH"), "src", "github.com", "solo-io")
}
func GlooSoloDirectory() string {
return filepath.Join(os.Getenv("GOPATH"), "src", "github.com", "solo-io", "gloo")
}
func HelmDirectory() string {
return filepath.Join(SoloDirectory(), "gloo", "install", "helm", "gloo")
}
func LocalE2eDirectory() string {
return filepath.Join(SoloDirectory(), "gloo", "test", "local_e2e")
}
func KubeE2eDirectory() string {
return filepath.Join(SoloDirectory(), "gloo", "test", "kube_e2e")
}
func NomadE2eDirectory() string {
return filepath.Join(SoloDirectory(), "gloo", "test", "nomad_e2e")
}
func CertsDirectory() string {
return filepath.Join(KubeE2eDirectory(), "certs")
}
func ServerCert() string {
return filepath.Join(CertsDirectory(), "root.crt")
}
func ServerKey() string {
return filepath.Join(CertsDirectory(), "root.key")
}
func ClientCert() string {
return filepath.Join(CertsDirectory(), "clientcert.crt")
}
func ClientKey() string {
return filepath.Join(CertsDirectory(), "clientcert.key")
}