forked from codeamp/circuit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
46 lines (41 loc) · 917 Bytes
/
types.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
package kubernetes
import (
"github.com/codeamp/circuit/plugins"
"github.com/codeamp/transistor"
"k8s.io/api/core/v1"
)
// Load Balancer
type ListenerPair struct {
Name string
Protocol string
SourcePort int32
TargetPort int32
}
// Deployments
type SimplePodSpec struct {
Name string
DeployPorts []v1.ContainerPort
ReadinessProbe v1.Probe
LivenessProbe v1.Probe
PreStopHook v1.Handler
RestartPolicy v1.RestartPolicy
NodeSelector map[string]string
Args []string
Service plugins.Service
Image string
Env []v1.EnvVar
VolumeMounts []v1.VolumeMount
Volumes []v1.Volume
}
// Kubernetes
type Kubernetes struct {
events chan transistor.Event
}
// ProbeDefaults
type ProbeDefaults struct {
InitialDelaySeconds int32
PeriodSeconds int32
SuccessThreshold int32
FailureThreshold int32
TimeoutSeconds int32
}