Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfKeyName = iota ConfDefaultValue )
Variables ¶
This section is empty.
Functions ¶
func GetBackendsMap ¶
func GetBackendsMap() map[string]BackendProperties
func GetConfigPath ¶ added in v0.5.1
func GetConfigPath() string
Types ¶
type BackendProperties ¶
type Backends ¶
type Backends struct { Ceph BackendProperties `conf:"ceph"` Cinder BackendProperties `conf:"cinder"` Sample BackendProperties `conf:"sample"` LVM BackendProperties `conf:"lvm"` HuaweiDorado BackendProperties `conf:"huawei_dorado"` HuaweiFusionStorage BackendProperties `conf:"huawei_fusionstorage"` HuaweiOceanstor BackendProperties `conf:"huawei_oceanstor"` HpeNimble BackendProperties `conf:"hpe_nimble"` NFS BackendProperties `conf:"nfs"` Manila BackendProperties `conf:"manila"` }
type Config ¶
type Config struct { Default `conf:"default"` OsdsApiServer `conf:"osdsapiserver"` OsdsLet `conf:"osdslet"` OsdsDock `conf:"osdsdock"` Database `conf:"database"` KeystoneAuthToken `conf:"keystone_authtoken"` }
var CONF *Config = GetDefaultConfig()
Global Configuration Variable
type KeystoneAuthToken ¶ added in v0.1.4
type KeystoneAuthToken struct { MemcachedServers string `conf:"memcached_servers"` SigningDir string `conf:"signing_dir"` Cafile string `conf:"cafile"` AuthUri string `conf:"auth_uri"` ProjectDomainName string `conf:"project_domain_name"` ProjectName string `conf:"project_name"` UserDomainName string `conf:"user_domain_name"` Password string `conf:"password"` // Encryption and decryption tool. Default value is aes. The decryption tool can only decrypt the corresponding ciphertext. PwdEncrypter string `conf:"pwd_encrypter,aes"` // Whether to encrypt the password. If enabled, the value of the password must be ciphertext. EnableEncrypted bool `conf:"enable_encrypted,false"` Username string `conf:"username"` AuthUrl string `conf:"auth_url"` AuthType string `conf:"auth_type"` }
type OsdsApiServer ¶ added in v0.5.1
type OsdsApiServer struct { ApiEndpoint string `conf:"api_endpoint,localhost:50040"` AuthStrategy string `conf:"auth_strategy,noauth"` Daemon bool `conf:"daemon,false"` PolicyPath string `conf:"policy_path,/etc/opensds/policy.json"` LogFlushFrequency time.Duration `conf:"log_flush_frequency,5s"` // Default value is 5s HTTPSEnabled bool `conf:"https_enabled,false"` BeegoHTTPSCertFile string `conf:"beego_https_cert_file,/opt/opensds-security/opensds/opensds-cert.pem"` BeegoHTTPSKeyFile string `conf:"beego_https_key_file,/opt/opensds-security/opensds/opensds-key.pem"` BeegoServerTimeOut int64 `conf:"beego_server_time_out,120"` // prometheus related PrometheusConfHome string `conf:"prometheus_conf_home,/etc/prometheus/"` PrometheusUrl string `conf:"prometheus_url,http://localhost:9090"` PrometheusConfFile string `conf:"prometheus_conf_file,prometheus.yml"` // alert manager related AlertmgrConfHome string `conf:"alertmgr_conf_home,/root/alertmanager-0.16.2.linux-amd64/"` AlertMgrUrl string `conf:"alertmgr_url,http://localhost:9093"` AlertmgrConfFile string `conf:"alertmgr_conf_file,alertmanager.yml"` // grafana related GrafanaConfHome string `conf:"grafana_conf_home,/etc/grafana/"` GrafanaRestartCmd string `conf:"grafana_restart_cmd,grafana-server"` GrafanaConfFile string `conf:"grafana_conf_file,grafana.ini"` GrafanaUrl string `conf:"grafana_url,http://localhost:3000"` // prometheus and alert manager configuration reload url ConfReloadUrl string `conf:"conf_reload_url,/-/reload"` }
type OsdsDock ¶
type OsdsDock struct { ApiEndpoint string `conf:"api_endpoint,localhost:50050"` DockType string `conf:"dock_type,provisioner"` EnabledBackends []string `conf:"enabled_backends,lvm"` Daemon bool `conf:"daemon,false"` BindIp string `conf:"bind_ip"` // Just used for attacher dock HostBasedReplicationDriver string `conf:"host_based_replication_driver,drbd"` LogFlushFrequency time.Duration `conf:"log_flush_frequency,5s"` // Default value is 5s Backends }
type OsdsLet ¶
type OsdsLet struct { ApiEndpoint string `conf:"api_endpoint,localhost:50049"` Daemon bool `conf:"daemon,false"` LogFlushFrequency time.Duration `conf:"log_flush_frequency,5s"` // Default value is 5s // how to push metrics to Prometheus ? options are PushGateway or NodeExporter PrometheusPushMechanism string `conf:"prometheus_push_mechanism,NodeExporter"` PushGatewayUrl string `conf:"prometheus_push_gateway_url,http://localhost:9091"` NodeExporterWatchFolder string `conf:"node_exporter_watch_folder,/root/prom_nodeexporter_folder/"` KafkaEndpoint string `conf:"kafka_endpoint,localhost:9092"` KafkaTopic string `conf:"kafka_topic,metrics"` AlertMgrUrl string `conf:"alertmgr_url,http://localhost:9093"` GrafanaUrl string `conf:"grafana_url,http://localhost:3000"` }
Click to show internal directories.
Click to hide internal directories.