envs

package
v1.11.21 Latest Latest
Warning

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

Go to latest
Published: May 15, 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
	ScrapperEnabled     bool   // RUNNER_SCRAPPERENABLED
	DataDir             string // RUNNER_DATADIR
	GitUsername         string // RUNNER_GITUSERNAME
	GitToken            string // RUNNER_GITTOKEN
	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
}

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