config

package
v1.10.4-beta004 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIServerPort                    string `envconfig:"APISERVER_PORT" default:"8088"`
	APIServerConfig                  string `envconfig:"APISERVER_CONFIG" default:""`
	APIMongoDSN                      string `envconfig:"API_MONGO_DSN" default:"mongodb://localhost:27017"`
	APIMongoSSLCert                  string `envconfig:"API_MONGO_SSL_CERT" default:""`
	APIMongoAllowDiskUse             bool   `envconfig:"API_MONGO_ALLOW_DISK_USE" default:"false"`
	APIMongoDB                       string `envconfig:"API_MONGO_DB" default:"testkube"`
	SlackToken                       string `envconfig:"SLACK_TOKEN" default:""`
	SlackConfig                      string `envconfig:"SLACK_CONFIG" default:""`
	SlackTemplate                    string `envconfig:"SLACK_TEMPLATE" default:""`
	StorageEndpoint                  string `envconfig:"STORAGE_ENDPOINT" default:""`
	StorageBucket                    string `envconfig:"STORAGE_BUCKET" default:""`
	StorageAccessKeyID               string `envconfig:"STORAGE_ACCESSKEYID" default:""`
	StorageSecretAccessKey           string `envconfig:"STORAGE_SECRETACCESSKEY" default:""`
	StorageLocation                  string `envconfig:"STORAGE_LOCATION" default:""`
	StorageToken                     string `envconfig:"STORAGE_TOKEN" default:""`
	StorageSSL                       bool   `envconfig:"STORAGE_SSL" default:"false"`
	ScrapperEnabled                  bool   `envconfig:"SCRAPPERENABLED" default:"false"`
	LogsBucket                       string `envconfig:"LOGS_BUCKET" default:""`
	LogsStorage                      string `envconfig:"LOGS_STORAGE" default:""`
	NatsURI                          string `envconfig:"NATS_URI" default:"nats://localhost:4222"`
	JobServiceAccountName            string `envconfig:"JOB_SERVICE_ACCOUNT_NAME" default:""`
	JobTemplateFile                  string `envconfig:"JOB_TEMPLATE_FILE" default:""`
	DisableTestTriggers              bool   `envconfig:"DISABLE_TEST_TRIGGERS" default:"false"`
	TestkubeDefaultExecutors         string `envconfig:"TESTKUBE_DEFAULT_EXECUTORS" default:""`
	TestkubeTemplateJob              string `envconfig:"TESTKUBE_TEMPLATE_JOB" default:""`
	TestkubeContainerTemplateJob     string `envconfig:"TESTKUBE_CONTAINER_TEMPLATE_JOB" default:""`
	TestkubeContainerTemplateScraper string `envconfig:"TESTKUBE_CONTAINER_TEMPLATE_SCRAPER" default:""`
	TestkubeContainerTemplatePVC     string `envconfig:"TESTKUBE_CONTAINER_TEMPLATE_PVC" default:""`
	TestkubeConfigDir                string `envconfig:"TESTKUBE_CONFIG_DIR" default:"config"`
	TestkubeAnalyticsEnabled         bool   `envconfig:"TESTKUBE_ANALYTICS_ENABLED" default:"false"`
	TestkubeReadonlyExecutors        bool   `envconfig:"TESTKUBE_READONLY_EXECUTORS" default:"false"`
	TestkubeNamespace                string `envconfig:"TESTKUBE_NAMESPACE" default:"testkube"`
	TestkubeOAuthClientID            string `envconfig:"TESTKUBE_OAUTH_CLIENTID" default:""`
	TestkubeOAuthClientSecret        string `envconfig:"TESTKUBE_OAUTH_CLIENTSECRET" default:""`
	TestkubeOAuthProvider            string `envconfig:"TESTKUBE_OAUTH_PROVIDER" default:""`
	TestkubeOAuthScopes              string `envconfig:"TESTKUBE_OAUTH_SCOPES" default:""`
	TestkubeCloudAPIKey              string `envconfig:"TESTKUBE_CLOUD_API_KEY" default:""`
	TestkubeCloudURL                 string `envconfig:"TESTKUBE_CLOUD_URL" default:""`
	TestkubeCloudTLSInsecure         bool   `envconfig:"TESTKUBE_CLOUD_TLS_INSECURE" default:"false"`
}

func Get

func Get() (*Config, error)

Jump to

Keyboard shortcuts

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