Documentation
¶
Index ¶
- Variables
- func CacheConfigs() *cache.CacheConfigs
- func ClusterConfigs() *gzkwrapper.ServerArgs
- func LoggerConfigs() *logger.Args
- func New(file string) error
- func Notifications() []notify.EndPoint
- func PidFile() string
- func RetryStartup() bool
- func SaveServerConfig(data []byte) error
- func SchedulerConfigs() *scheduler.SchedulerConfigs
- func UseServerConfig() bool
- type Configuration
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func SchedulerConfigs ¶
func SchedulerConfigs() *scheduler.SchedulerConfigs
SchedulerConfigs is exported
Types ¶
type Configuration ¶
type Configuration struct { sync.RWMutex Version string `yaml:"version" json:"version"` PidFile string `yaml:"pidfile" json:"pidfile"` RetryStartup bool `yaml:"retrystartup" json:"retrystartup"` UseServerConfig bool `yaml:"useserverconfig" json:"useserverconfig"` Cluster struct { Hosts string `yaml:"hosts" json:"hosts"` Root string `yaml:"root" json:"root"` Device string `yaml:"device" json:"device"` Runtime string `yaml:"runtime" json:"runtime"` OS string `yaml:"os" json:"os"` Platform string `yaml:"platform" json:"platform"` Pulse string `yaml:"pulse" json:"pulse"` Timeout string `yaml:"timeout" json:"timeout"` Threshold int `yaml:"threshold" json:"threshold"` } `yaml:"cluster" json:"cluster"` API struct { Hosts []string `yaml:"hosts" json:"hosts"` EnableCors bool `yaml:"enablecors" json:"enablecors"` } `yaml:"api" json:"api"` Scheduler struct { AllocMode string `yaml:"allocmode" json:"allocmode"` AllocRecovery string `yaml:"allocrecovery" json:"allocrecovery"` } `yaml:"scheduler" json:"scheduler"` Cache struct { LRUSize int `yaml:"lrusize" json:"lrusize"` types.StorageDriverConfigs `yaml:"storagedriver" json:"storagedriver"` } `yaml:"cache" json:"cache"` Notifications notify.Notifications `yaml:"notifications" json:"notifications"` Logger struct { LogFile string `yaml:"logfile" json:"logfile"` LogLevel string `yaml:"loglevel" json:"loglevel"` LogSize int64 `yaml:"logsize" json:"logsize"` } `yaml:"logger" json:"logger"` }
Configuration is exported
var ( SystemConfig *Configuration = nil ServerConfig *models.ServerConfig = nil )
Click to show internal directories.
Click to hide internal directories.