config

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionType

type ConnectionType string
const (
	DefaultAPIProxyHTTPTimeout                = 30
	ConnectionTypeNATS         ConnectionType = "nats"
	ConnectionTypeHTTP         ConnectionType = "http"
)

type EnvConfig

type EnvConfig struct {
	APIProxyHTTPTimeout     string   `envconfig:"API_PROXY_HTTP_TIMEOUT" default:"30"`
	ConfigurationServiceURL string   `envconfig:"CONFIGURATION_SERVICE" default:"resource-service:8080"`
	EventBrokerURL          string   `envconfig:"EVENTBROKER" default:"nats://keptn-nats"`
	PubSubTopic             string   `envconfig:"PUBSUB_TOPIC" default:""`
	HealthEndpointPort      string   `envconfig:"HEALTH_ENDPOINT_PORT" default:"8080"`
	HealthEndpointEnabled   bool     `envconfig:"HEALTH_ENDPOINT_ENABLED" default:"true"`
	KeptnAPIEndpoint        string   `envconfig:"KEPTN_API_ENDPOINT" default:""`
	KeptnAPIToken           string   `envconfig:"KEPTN_API_TOKEN" default:""`
	Location                string   `envconfig:"LOCATION" default:"control-plane"`
	K8sDeploymentVersion    string   `envconfig:"K8S_DEPLOYMENT_VERSION" default:""`
	K8sDeploymentName       string   `envconfig:"K8S_DEPLOYMENT_NAME" default:""`
	K8sNamespace            string   `envconfig:"K8S_NAMESPACE" default:""`
	K8sPodName              string   `envconfig:"K8S_POD_NAME" default:""`
	K8sNodeName             string   `envconfig:"K8S_NODE_NAME" default:""`
	OAuthClientID           string   `envconfig:"OAUTH_CLIENT_ID" default:""`
	OAuthClientSecret       string   `envconfig:"OAUTH_CLIENT_SECRET" default:""`
	OAuthScopes             []string `envconfig:"OAUTH_SCOPES" default:""`
	OAuthDiscovery          string   `envconfig:"OAUTH_DISCOVERY" default:""`
	OauthTokenURL           string   `envconfig:"OAUTH_TOKEN_URL" default:""`
	VerifySSL               bool     `envconfig:"HTTP_SSL_VERIFY" default:"true"`
}

func NewEnvConfig

func NewEnvConfig() EnvConfig

func (*EnvConfig) GetAPIProxyHTTPTimeout

func (env *EnvConfig) GetAPIProxyHTTPTimeout() time.Duration

func (*EnvConfig) OAuthEnabled

func (env *EnvConfig) OAuthEnabled() bool

func (*EnvConfig) PubSubConnectionType

func (env *EnvConfig) PubSubConnectionType() ConnectionType

Jump to

Keyboard shortcuts

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