Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PathToDefaultParamsFile path to config file with default parameters.
PathToDefaultParamsFile = "./default.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneralConfig ¶
type GeneralConfig struct { ReportsDirAbsPath string `yaml:"reports_dump_dir" envconfig:"ECO_REPORTS_DUMP_DIR"` VerboseLevel string `yaml:"verbose_level" envconfig:"ECO_VERBOSE_LEVEL"` DumpFailedTests bool `yaml:"dump_failed_tests" envconfig:"ECO_DUMP_FAILED_TESTS"` PolarionReport bool `yaml:"polarion_report" envconfig:"ECO_POLARION_REPORT"` DryRun bool `yaml:"dry_run" envconfig:"ECO_DRY_RUN"` KubernetesRolePrefix string `yaml:"kubernetes_role_prefix" envconfig:"ECO_KUBERNETES_ROLE_PREFIX"` WorkerLabel string `yaml:"worker_label" envconfig:"ECO_WORKER_LABEL"` ControlPlaneLabel string `yaml:"control_plane_label" envconfig:"ECO_CONTROL_PLANE_LABEL"` PolarionTCPrefix string `yaml:"polarion_tc_prefix" envconfig:"ECO_POLARION_TC_PREFIX"` MCONamespace string `yaml:"mco_namespace" envconfig:"ECO_MCO_NAMESPACE"` MCOConfigDaemonName string `yaml:"mco_config_daemon_name" envconfig:"ECO_MCO_CONFIG_DAEMON_NAME"` WorkerLabelMap map[string]string ControlPlaneLabelMap map[string]string SriovOperatorNamespace string `yaml:"sriov_operator_namespace" envconfig:"ECO_SYSTEM_TESTS_SRIOV_OPERATOR_NAMESPACE"` IpmiToolImage string `yaml:"ipmitool_image" envconfig:"ECO_SYSTEM_TESTS_IPMITOOL_IMAGE"` BmcHosts string `envconfig:"BMC_HOSTS"` BmcUser string `yaml:"bmc_user" envconfig:"BMC_USER"` BmcPassword string `yaml:"bmc_password" envconfig:"BMC_PASSWORD"` }
GeneralConfig type keeps general configuration.
func NewConfig ¶
func NewConfig() *GeneralConfig
NewConfig returns instance of GeneralConfig config type.
func (*GeneralConfig) GetDumpFailedTestReportLocation ¶
func (cfg *GeneralConfig) GetDumpFailedTestReportLocation(file string) string
GetDumpFailedTestReportLocation returns destination file for failed tests logs.
func (*GeneralConfig) GetJunitReportPath ¶
func (cfg *GeneralConfig) GetJunitReportPath(file string) string
GetJunitReportPath returns full path to the junit report file.
func (*GeneralConfig) GetPolarionReportPath ¶
func (cfg *GeneralConfig) GetPolarionReportPath() string
GetPolarionReportPath returns full path to the polarion report file.
Click to show internal directories.
Click to hide internal directories.