Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type Config ¶
type Config struct {
Server ServerConfig `mapstructure:"server"`
Providers ProvidersConfig `mapstructure:"providers"`
Defaults DefaultsConfig `mapstructure:"defaults"`
Auth AuthConfig `mapstructure:"auth"`
Database DatabaseConfig `mapstructure:"database"`
Logging LoggingConfig `mapstructure:"logging"`
Pool PoolConfig `mapstructure:"pool"`
}
func (*Config) ResolveAgentPath ¶
ResolveAgentPath resolves the agent_path to an absolute path. If the path is relative, it tries (in order):
- Relative to the executable's directory
- Relative to CWD
- PATH lookup via exec.LookPath (for /usr/local/bin installs)
type CustomConfig ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
Path string `mapstructure:"path"`
}
type DefaultsConfig ¶
type DefaultsConfig struct {
TTL string `mapstructure:"ttl"`
Image string `mapstructure:"image"`
MemoryMB int `mapstructure:"memory_mb"`
VCPUs int `mapstructure:"vcpus"`
DiskSizeMB int `mapstructure:"disk_size_mb"`
PoolSize int `mapstructure:"pool_size"`
PoolTemplate string `mapstructure:"pool_template"`
}
type FirecrackerConfig ¶
type FirecrackerConfig struct {
Enabled bool `mapstructure:"enabled"`
FirecrackerPath string `mapstructure:"firecracker_path"`
KernelPath string `mapstructure:"kernel_path"`
DefaultRootfs string `mapstructure:"default_rootfs"`
AgentPath string `mapstructure:"agent_path"`
DataDir string `mapstructure:"data_dir"`
}
type LoggingConfig ¶
type MockConfig ¶
type MockConfig struct {
Enabled bool `mapstructure:"enabled"`
}
type PoolConfig ¶
type PoolConfig struct {
Enabled bool `mapstructure:"enabled"`
MaxVMs int `mapstructure:"max_vms"`
MaxUsersPerVM int `mapstructure:"max_users_per_vm"`
Image string `mapstructure:"image"`
MemoryMB int `mapstructure:"memory_mb"`
VCPUs int `mapstructure:"vcpus"`
Overflow string `mapstructure:"overflow"` // "reject" or "queue"
}
type ProvidersConfig ¶
type ProvidersConfig struct {
Default string `mapstructure:"default"`
Mock MockConfig `mapstructure:"mock"`
Firecracker FirecrackerConfig `mapstructure:"firecracker"`
E2B E2BConfig `mapstructure:"e2b"`
Custom CustomConfig `mapstructure:"custom"`
}
type ServerConfig ¶
func (ServerConfig) Addr ¶
func (s ServerConfig) Addr() string
Click to show internal directories.
Click to hide internal directories.