config

package
v0.0.0-...-81c02da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

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

type TLSConf

type TLSConf struct {
	MinVersion uint16 `yaml:"MinVersion"`
	MaxVersion uint16 `yaml:"MaxVersion"`
}

TLSConf holds details related with URP's NB interface TLS configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL