Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginConfig ¶
type PluginConfig struct { Host string `yaml:"Host" envconfig:"HOST"` Port string `yaml:"Port" envconfig:"PORT"` UserName string `yaml:"UserName" envconfig:"BASIC_AUTH_USERNAME"` Password string `yaml:"Password" envconfig:"BASIC_AUTH_PASSWORD"` RootServiceUUID string `yaml:"RootServiceUUID" envconfig:"SERVICE_ROOT_UUID"` OdimURL string `yaml:"OdimURL" envconfig:"ODIM_URL"` OdimUserName string `yaml:"OdimUserName" envconfig:"ODIM_USERNAME"` OdimPassword string `yaml:"OdimPassword" envconfig:"ODIM_PASSWORD"` FirmwareVersion string `yaml:"FirmwareVersion" envconfig:"FIRMWARE_VERSION"` TLSConf *TLSConf `yaml:"TLSConf"` RSAPrivateKeyPath string `yaml:"RSAPrivateKeyPath" envconfig:"RSA_PRIVATE_KEY_PATH"` RSAPublicKeyPath string `yaml:"RSAPublicKeyPath" envconfig:"RSA_PUBLIC_KEY_PATH"` PKIRootCAPath string `yaml:"PKIRootCACertificatePath" envconfig:"PKI_ROOT_CA_PATH"` PKIPrivateKeyPath string `yaml:"PKIPrivateKeyPath" envconfig:"PKI_PRIVATE_KEY_PATH"` PKICertificatePath string `yaml:"PKICertificatePath" envconfig:"PKI_CERTIFICATE_PATH_PATH"` LogLevel string `yaml:"LogLevel" envconfig:"LOG_LEVEL"` RedisAddress string `yaml:"RedisAddress" envconfig:"REDIS_ADDRESS"` SentinelMasterName string `yaml:"SentinelMasterName" envconfig:"SENTINEL_MASTER_NAME"` RedisOnDiskPasswordFilePath string `yaml:"RedisOnDiskPasswordFilePath" envconfig:"REDIS_ONDISK_PASSWORD_FILE_PATH"` RedisOnDiskPassword []byte }
PluginConfig struct holds configuration of URP plugin
func ReadPluginConfiguration ¶
func ReadPluginConfiguration() (*PluginConfig, error)
ReadPluginConfiguration loads URP's configuration from path defined behind PLUGIN_CONFIG_FILE_PATH env variable
Click to show internal directories.
Click to hide internal directories.