forked from projectatomic/atomic-enterprise
/
types.go
41 lines (32 loc) · 834 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
package ipfailover
import (
"github.com/openshift/origin/pkg/cmd/util/variable"
)
const (
// Default IP Failover resource name.
DefaultName = "ipfailover"
// Default IP Failover type.
DefaultType = "keepalived"
// Default service port.
DefaultServicePort = 1985
// Default IP Failover watched port number.
DefaultWatchPort = 80
// Default resource selector.
DefaultSelector = "ipfailover=<name>"
// Default network interface.
DefaultInterface = "eth0"
)
// Options supported by the IP Failover admin command.
type IPFailoverConfigCmdOptions struct {
Type string
ImageTemplate variable.ImageTemplate
Credentials string
ServicePort int
Selector string
Create bool
// Failover options.
VirtualIPs string
NetworkInterface string
WatchPort int
Replicas int
}