Documentation
¶
Index ¶
Constants ¶
View Source
const ( CommandTypePull = "pull" CommandTypeSwitch = "switch" CommandTypeCaddy = "caddy" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Type string `json:"type"`
Args map[string]interface{} `json:"args"`
Signature string `json:"signature,omitempty"`
// Timestamp (Unix seconds) and Nonce are covered by the HMAC signature
// and used by the daemon's ReplayGuard to reject stale/replayed commands.
Timestamp int64 `json:"timestamp,omitempty"`
Nonce string `json:"nonce,omitempty"`
}
type ContainerInfo ¶
type DaemonConfig ¶
type DaemonConfig struct {
SocketPath string `json:"socket_path"`
SocketMode string `json:"socket_mode"`
DockerSocket string `json:"docker_socket"`
ContainerPrefix string `json:"container_prefix"`
LogLevel string `json:"log_level"`
LogDir string `json:"log_dir"`
LogMaxSize int `json:"log_max_size"`
LogMaxBackups int `json:"log_max_backups"`
ConfigPath string `json:"config_path"`
SecuritySecret string `json:"security_secret"`
IPWhitelist []string `json:"ip_whitelist"`
RateLimitRate float64 `json:"rate_limit_rate"`
RateLimitBurst float64 `json:"rate_limit_burst"`
TLSCertFile string `json:"tls_cert_file"`
TLSKeyFile string `json:"tls_key_file"`
TLSCAFile string `json:"tls_ca_file"`
TCPListenAddr string `json:"tcp_listen_addr"`
}
type LoggerConfig ¶
Click to show internal directories.
Click to hide internal directories.