Documentation
¶
Index ¶
Constants ¶
View Source
const DAEMON_DB_PATH = "/var/lib/ravel/daemon.db"
View Source
const LOGS_DIRECTORY = "/var/log/ravel"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig struct { Region string `json:"region"` Address string `json:"address"` InitBinary string `json:"init_binary"` LinuxKernel string `json:"linux_kernel"` LogsDirectory string `json:"logs_directory"` DatabasePath string `json:"database_path"` Resources Resources `json:"resources"` }
func (AgentConfig) Validate ¶
func (dc AgentConfig) Validate() error
type MachineResourcesTemplates ¶
type MachineResourcesTemplates struct { FrequencyByCpu int `json:"frequency_by_cpu"` // Frequency allocated in MHz Combinations []VCpusMemory `json:"combinations"` }
type NatsConfig ¶
func (NatsConfig) Validate ¶
func (n NatsConfig) Validate() error
type RavelConfig ¶
type RavelConfig struct { RavelApi ApiConfig `json:"ravel_api"` NodeId string `json:"node_id"` Agent AgentConfig `json:"agent"` Corrosion corroclient.Config `json:"corrosion"` PostgresURL string `json:"postgres_url"` MachineTemplates map[string]MachineResourcesTemplates `json:"machine_templates"` Nats NatsConfig `json:"nats"` }
func ReadFile ¶
func ReadFile(path string) (RavelConfig, error)
type VCpusMemory ¶
Click to show internal directories.
Click to hide internal directories.