envs

package
v1.16.12-beta043 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 6 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTrue

func IsTrue(name string) (is bool)

Types

type Params added in v1.8.21

type Params struct {
	Endpoint                  string // RUNNER_ENDPOINT
	AccessKeyID               string // RUNNER_ACCESSKEYID
	SecretAccessKey           string // RUNNER_SECRETACCESSKEY
	Region                    string // RUNNER_REGION
	Token                     string // RUNNER_TOKEN
	Bucket                    string // RUNNER_BUCKET
	Ssl                       bool   // RUNNER_SSL
	SkipVerify                bool   `envconfig:"RUNNER_SKIP_VERIFY" default:"false"` // RUNNER_SKIP_VERIFY
	CertFile                  string `envconfig:"RUNNER_CERT_FILE"`                   // RUNNER_CERT_FILE
	KeyFile                   string `envconfig:"RUNNER_KEY_FILE"`                    // RUNNER_KEY_FILE
	CAFile                    string `envconfig:"RUNNER_CA_FILE"`
	ScrapperEnabled           bool   // RUNNER_SCRAPPERENABLED
	DataDir                   string // RUNNER_DATADIR
	GitUsername               string // RUNNER_GITUSERNAME
	GitToken                  string // RUNNER_GITTOKEN
	CompressArtifacts         bool   // RUNNER_COMPRESSARTIFACTS
	WorkingDir                string // RUNNER_WORKINGDIR
	ExecutionID               string // RUNNER_EXECUTIONID
	TestName                  string // RUNNER_TESTNAME
	ExecutionNumber           int32  // RUNNER_EXECUTIONNUMBER
	ContextType               string // RUNNER_CONTEXTTYPE
	ContextData               string // RUNNER_CONTEXTDATA
	APIURI                    string // RUNNER_APIURI
	ClusterID                 string `envconfig:"RUNNER_CLUSTERID"`                             // RUNNER_CLUSTERID
	CDEventsTarget            string `envconfig:"RUNNER_CDEVENTS_TARGET"`                       // RUNNER_CDEVENTS_TARGET
	DashboardURI              string `envconfig:"RUNNER_DASHBOARD_URI"`                         // RUNNER_DASHBOARD_URI
	CloudMode                 bool   `envconfig:"RUNNER_CLOUD_MODE"`                            // RUNNER_CLOUD_MODE
	CloudAPIKey               string `envconfig:"RUNNER_CLOUD_API_KEY"`                         // RUNNER_CLOUD_API_KEY
	CloudAPITLSInsecure       bool   `envconfig:"RUNNER_CLOUD_API_TLS_INSECURE"`                // RUNNER_CLOUD_API_TLS_INSECURE
	CloudAPIURL               string `envconfig:"RUNNER_CLOUD_API_URL"`                         // RUNNER_CLOUD_API_URL
	CloudConnectionTimeoutSec int    `envconfig:"RUNNER_CLOUD_CONNECTION_TIMEOUT" default:"10"` // RUNNER_CLOUD_CONNECTION_TIMEOUT
	SlavesConfigs             string `envconfig:"RUNNER_SLAVES_CONFIGS"`                        // RUNNER_SLAVES_CONFIGS
}

Params are the environment variables provided by the Testkube api-server

func LoadTestkubeVariables added in v1.8.21

func LoadTestkubeVariables() (Params, error)

LoadTestkubeVariables loads the parameters provided as environment variables in the Test CRD

Jump to

Keyboard shortcuts

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