config

package
v0.0.11 Latest Latest
Warning

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

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

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