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"` EnableReport bool `yaml:"enable_report" envconfig:"ECO_ENABLE_REPORT"` DryRun bool `yaml:"dry_run" envconfig:"ECO_DRY_RUN"` KubernetesRolePrefix string `yaml:"kubernetes_role_prefix" envconfig:"ECO_KUBERNETES_ROLE_PREFIX"` WorkerLabelEnvVar string `yaml:"worker_label" envconfig:"ECO_WORKER_LABEL"` WorkerLabel string ControlPlaneLabel string `yaml:"control_plane_label" envconfig:"ECO_CONTROL_PLANE_LABEL"` TCPrefix string `yaml:"tc_prefix" envconfig:"ECO_TC_PREFIX"` MCONamespace string `yaml:"mco_namespace" envconfig:"ECO_MCO_NAMESPACE"` LoggingOperatorNamespace string `yaml:"logging_operator_namespace" envconfig:"ECO_LOGGING_OPERATOR_NAMESPACE"` MCOConfigDaemonName string `yaml:"mco_config_daemon_name" envconfig:"ECO_MCO_CONFIG_DAEMON_NAME"` SriovOperatorNamespace string `yaml:"sriov_operator_namespace" envconfig:"ECO_SRIOV_OPERATOR_NAMESPACE"` NMStateOperatorNamespace string `yaml:"nmstate_operator_namespace" envconfig:"ECO_NMSTATE_OPERATOR_NAMESPACE"` SriovFecOperatorNamespace string `yaml:"sriov_fec_operator_namespace" envconfig:"ECO_SRIOV_FEC_OPERATOR_NAMESPACE"` WorkerLabelMap map[string]string ControlPlaneLabelMap map[string]string }
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) GetReportPath ¶
func (cfg *GeneralConfig) GetReportPath() string
GetReportPath returns full path to the reportxml file.
Click to show internal directories.
Click to hide internal directories.