config

package
v0.0.0-...-675f5bb Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const NotFoundErrTemplate = "environment variable '%s' not found"

Variables

This section is empty.

Functions

func GetHttpClientOpts

func GetHttpClientOpts() (*client.HttpClientOpts, error)

Types

type CommonServiceConfig

type CommonServiceConfig struct {
	ServiceName string
	LogLevel    string
	Environment string
}

func GetCommonServiceConfig

func GetCommonServiceConfig() (*CommonServiceConfig, error)

type OrchestratorEnvConfig

type OrchestratorEnvConfig struct {
	OrgId                    string
	OrchestratorId           string
	WorkerImage              string
	WorkerServiceAccountName string
	WorkerNodeSelector       map[string]string
	RegistratorFqdn          string
	EventsProviderFqdn       string
	TestRepositoryFqdn       string
	TestResultsStreamName    string
	HttpClientOpts           *client.HttpClientOpts
	CommonServiceConfig      *CommonServiceConfig
}

func GetOrchestratorEnvConfig

func GetOrchestratorEnvConfig() (*OrchestratorEnvConfig, error)

type OrchestratorInitEnvConfig

type OrchestratorInitEnvConfig struct {
	OrgId                 string
	OrchestratorId        string
	RegistratorFqdn       string
	TestResultsStreamName string
	ConsumerName          string
	ConsumerGroupName     string
	UserAccessToken       string
	CommonServiceConfig   *CommonServiceConfig
	HttpClientOpts        *client.HttpClientOpts
}

func GetOrchestratorInitEnvConfig

func GetOrchestratorInitEnvConfig() (*OrchestratorInitEnvConfig, error)

type ResultsReporterEnvConfig

type ResultsReporterEnvConfig struct {
	OrchestratorId        string
	OrgId                 string
	RegistratorFqdn       string
	TestRepositoryFqdn    string
	TestResultsStreamName string
	ConsumerName          string
	ConsumerGroupName     string
	HttpClientOpts        *client.HttpClientOpts
	CommonServiceConfig   *CommonServiceConfig
}

func GetResultsReportedEnvConfig

func GetResultsReportedEnvConfig() (*ResultsReporterEnvConfig, error)

type WorkerEnvConfig

type WorkerEnvConfig struct {
	TestType                model.TestType
	TestScenariosStreamName string
	ConsumerGroupName       string
	TestResultsStreamName   string
	EnvironmentVariablesKey string
	SuiteVariablesKey       string
	TestExecutionId         string
	HttpClientOpts          *client.HttpClientOpts
	CommonServiceConfig     *CommonServiceConfig
}

func GetWorkerEnvConfig

func GetWorkerEnvConfig() (*WorkerEnvConfig, error)

Jump to

Keyboard shortcuts

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