Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Edge Mode (active connection to Dockhand)
DockhandServerURL string // e.g., wss://dockhand.example.com/api/hawser/connect
Token string // Agent authentication token
CACert string // Optional CA certificate path (for self-signed Dockhand)
TLSSkipVerify bool // Skip TLS verification (insecure, for testing)
// Standard Mode (passive HTTP server)
Port int // Default: 2376
TLSCert string // Optional TLS certificate path
TLSKey string // Optional TLS key path
// Docker connection
DockerSocket string // Default: /var/run/docker.sock
DockerHost string // Alternative: tcp://localhost:2375
// Agent identification
AgentID string // Auto-generated UUID if not set
AgentName string // Human-readable name
// Timeouts and intervals (seconds)
HeartbeatInterval int // Default: 30
RequestTimeout int // Default: 30
ReconnectDelay int // Initial reconnect delay, default: 1
MaxReconnectDelay int // Max reconnect delay, default: 60
// Logging
LogLevel string // debug, info, warn, error. Default: info
// Stack files directory
StacksDir string // Directory for stack files, default: /data/stacks
// Version info (set by main.go from ldflags)
Version string
Commit string
}
Config holds all configuration for the Hawser agent
func (*Config) GetDockerEndpoint ¶
GetDockerEndpoint returns the Docker endpoint to connect to
func (*Config) TLSEnabled ¶
TLSEnabled returns true if TLS is configured for standard mode
Click to show internal directories.
Click to hide internal directories.