-
Notifications
You must be signed in to change notification settings - Fork 158
/
options.go
38 lines (34 loc) · 900 Bytes
/
options.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
package config
import (
"net"
"time"
)
// Options are the options for generator
type Options struct {
CaddyfilePath string
EnvFile string
DockerSockets []string
DockerCertsPath []string
DockerAPIsVersion []string
LabelPrefix string
ControlledServersLabel string
ProxyServiceTasks bool
ProcessCaddyfile bool
ScanStoppedContainers bool
PollingInterval time.Duration
EventThrottleInterval time.Duration
Mode Mode
Secret string
ControllerNetwork *net.IPNet
IngressNetworks []string
}
// Mode represents how this instance should run
type Mode int
const (
// Controller runs only controller
Controller Mode = 1
// Server runs only server
Server Mode = 2
// Standalone runs controller and server in a single instance
Standalone Mode = Controller | Server
)