forked from cloudfoundry/bosh-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
target.go
43 lines (33 loc) · 733 Bytes
/
target.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
package installation
import (
"path/filepath"
)
type Target struct {
path string
}
func NewTarget(path string) Target {
return Target{
path,
}
}
func (t Target) Path() string {
return t.path
}
func (t Target) BlobstorePath() string {
return filepath.Join(t.path, "blobs")
}
func (t Target) CompiledPackagedIndexPath() string {
return filepath.Join(t.path, "compiled_packages.json")
}
func (t Target) TemplatesIndexPath() string {
return filepath.Join(t.path, "templates.json")
}
func (t Target) PackagesPath() string {
return filepath.Join(t.path, "packages")
}
func (t Target) JobsPath() string {
return filepath.Join(t.path, "jobs")
}
func (t Target) TmpPath() string {
return filepath.Join(t.path, "tmp")
}