config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfiguration

func ParseConfiguration()

func ValidateConfiguration

func ValidateConfiguration()

Types

type Specification

type Specification struct {
	// The Cloud Foundry API endpoint URL (e.g., https://api.cf.example.com).
	// Set via STEADYBIT_EXTENSION_API_URL.
	ApiUrl string `json:"apiUrl" split_words:"true" required:"true"`
	// Username for Cloud Foundry authentication via UAA (password grant).
	// Set via STEADYBIT_EXTENSION_USERNAME.
	Username string `json:"username" split_words:"true"`
	// Password for Cloud Foundry authentication via UAA (password grant).
	// Set via STEADYBIT_EXTENSION_PASSWORD.
	Password string `json:"password" split_words:"true"`
	// Static bearer token for Kubernetes-based CF deployments (e.g., Korifi).
	// When set, UAA password grant is skipped and this token is used directly.
	// Set via STEADYBIT_EXTENSION_BEARER_TOKEN.
	BearerToken string `json:"bearerToken" split_words:"true"`
	// Path to a client certificate file for mTLS authentication (e.g., Korifi with kubeconfig certs).
	// Set via STEADYBIT_EXTENSION_CLIENT_CERT_PATH.
	ClientCertPath string `json:"clientCertPath" split_words:"true"`
	// Path to a client key file for mTLS authentication.
	// Set via STEADYBIT_EXTENSION_CLIENT_KEY_PATH.
	ClientKeyPath string `json:"clientKeyPath" split_words:"true"`
	// Skip TLS certificate verification (e.g., for self-signed certs in local Korifi).
	// Set via STEADYBIT_EXTENSION_SKIP_TLS_VERIFY.
	SkipTlsVerify bool `json:"skipTlsVerify" split_words:"true" default:"false"`
	// Attributes to exclude from app discovery results.
	// Set via STEADYBIT_EXTENSION_DISCOVERY_ATTRIBUTES_EXCLUDES_APP.
	DiscoveryAttributesExcludesApp []string `json:"discoveryAttributesExcludesApp" split_words:"true"`
}

Specification contains the configuration for the extension, mapped from environment variables.

var Config Specification

Jump to

Keyboard shortcuts

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