forked from cloudfoundry/bosh-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.go
44 lines (37 loc) · 1.33 KB
/
release.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
package manifest
type Manifest struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
CommitHash string `yaml:"commit_hash"`
UncommittedChanges bool `yaml:"uncommitted_changes"`
Jobs []JobRef `yaml:"jobs,omitempty"`
Packages []PackageRef `yaml:"packages,omitempty"`
CompiledPkgs []CompiledPackageRef `yaml:"compiled_packages,omitempty"`
License *LicenseRef `yaml:"license,omitempty"`
}
type JobRef struct {
Name string `yaml:"name"`
Version string `yaml:"version"` // todo deprecate
Fingerprint string `yaml:"fingerprint"`
SHA1 string `yaml:"sha1"`
}
type PackageRef struct {
Name string `yaml:"name"`
Version string `yaml:"version"` // todo deprecate
Fingerprint string `yaml:"fingerprint"`
SHA1 string `yaml:"sha1"`
Dependencies []string `yaml:"dependencies"`
}
type CompiledPackageRef struct {
Name string `yaml:"name"`
Version string `yaml:"version"` // todo deprecate
Fingerprint string `yaml:"fingerprint"`
SHA1 string `yaml:"sha1"`
OSVersionSlug string `yaml:"stemcell"`
Dependencies []string `yaml:"dependencies"`
}
type LicenseRef struct {
Version string `yaml:"version"` // todo deprecate
Fingerprint string `yaml:"fingerprint"`
SHA1 string `yaml:"sha1"`
}