Documentation ¶
Index ¶
- Constants
- func GetBackendsMap() map[string]BackendProperties
- type BackendProperties
- type Backends
- type Config
- type Database
- type Default
- type Flag
- type FlagSet
- func (f *FlagSet) Add(name string, flag *Flag)
- func (f *FlagSet) AssignValue()
- func (f *FlagSet) BoolVar(p *bool, name string, defValue bool, usage string)
- func (f *FlagSet) Float64Var(p *float64, name string, defValue float64, usage string)
- func (f *FlagSet) Int64Var(p *int64, name string, defValue int64, usage string)
- func (f *FlagSet) IntVar(p *int, name string, defValue int, usage string)
- func (f *FlagSet) Parse()
- func (f *FlagSet) StringVar(p *string, name string, defValue string, usage string)
- func (f *FlagSet) Uint64Var(p *uint64, name string, defValue uint64, usage string)
- func (f *FlagSet) UintVar(p *uint, name string, defValue uint, usage string)
- type KeystoneAuthToken
- type OsdsDock
- type OsdsLet
- type Value
Constants ¶
View Source
const ( ConfKeyName = iota ConfDefaultValue )
Variables ¶
This section is empty.
Functions ¶
func GetBackendsMap ¶
func GetBackendsMap() map[string]BackendProperties
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"` }
type Config ¶
type Config struct { Default `conf:"default"` OsdsLet `conf:"osdslet"` OsdsDock `conf:"osdsdock"` Database `conf:"database"` KeystoneAuthToken `conf:"keystone_authtoken"` Flag FlagSet }
var CONF *Config = GetDefaultConfig()
Global Configuration Variable
type FlagSet ¶
type FlagSet struct {
// contains filtered or unexported fields
}
func (*FlagSet) AssignValue ¶
func (f *FlagSet) AssignValue()
func (*FlagSet) Float64Var ¶
type KeystoneAuthToken ¶
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"` Username string `conf:"username"` AuthUrl string `conf:"auth_url"` AuthType string `conf:"auth_type"` }
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"` Backends }
type OsdsLet ¶
type OsdsLet struct { ApiEndpoint string `conf:"api_endpoint,localhost:50040"` Graceful bool `conf:"graceful,true"` SocketOrder string `conf:"socket_order"` AuthStrategy string `conf:"auth_strategy,noauth"` Daemon bool `conf:"daemon,false"` PolicyPath string `conf:"policy_path,/etc/opensds/policy.json"` }
Click to show internal directories.
Click to hide internal directories.