-
Notifications
You must be signed in to change notification settings - Fork 162
/
job.go
43 lines (35 loc) · 828 Bytes
/
job.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 manifest
import (
biproperty "github.com/cloudfoundry/bosh-utils/property"
)
type Job struct {
Name string
Instances int
Lifecycle JobLifecycle
Templates []ReleaseJobRef
Networks []JobNetwork
PersistentDisk int
PersistentDiskPool string
ResourcePool string
Properties biproperty.Map
}
type JobLifecycle string
const (
JobLifecycleService JobLifecycle = "service"
JobLifecycleErrand JobLifecycle = "errand"
)
type ReleaseJobRef struct {
Name string
Release string
Properties *biproperty.Map
}
type JobNetwork struct {
Name string
Defaults []NetworkDefault
StaticIPs []string
}
type NetworkDefault string
const (
NetworkDefaultDNS NetworkDefault = "dns"
NetworkDefaultGateway NetworkDefault = "gateway"
)