types

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ContainerInfo struct {
	Name    string   `json:"name"`
	Status  string   `json:"status"`
	Image   string   `json:"image"`
	Ports   []string `json:"ports"`
	Created string   `json:"created"`
}

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

type LoggerConfig struct {
	LogDir      string `json:"log_dir"`
	LogFileName string `json:"log_file_name"`
	MaxFileSize int    `json:"max_file_size"`
	MaxBackups  int    `json:"max_backups"`
}

type Response

type Response struct {
	Success bool        `json:"success"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL