config

package
v0.2.33 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFClientConfig

type CFClientConfig struct {
	BrokerURL         string `envconfig:"CF_BROKER_URL"`
	BrokerName        string `envconfig:"CF_BROKER_NAME"`
	ApiAddress        string `envconfig:"CF_API_ADDRESS"`
	Username          string `envconfig:"CF_USERNAME"`
	Password          string `envconfig:"CF_PASSWORD"`
	SkipSslValidation bool   `envconfig:"CF_SKIP_SSL_VALIDATION"`
}

func (CFClientConfig) HasCFClientConfig

func (c CFClientConfig) HasCFClientConfig() bool

type ClusterCredentials

type ClusterCredentials struct {
	CADataRaw string `envconfig:"CA_DATA" json:"caDataRaw"`
	CAData    []byte
	Server    string `envconfig:"SERVER" json:"server"`
	Token     string `envconfig:"TOKEN" json:"token"`
}

func (*ClusterCredentials) ParseCAData

func (c *ClusterCredentials) ParseCAData() error

type Config

type Config struct {
	AdminUsername string `envconfig:"SECURITY_USER_NAME" required:"true"`
	AdminPassword string `envconfig:"SECURITY_USER_PASSWORD" required:"true"`

	Port            int    `envconfig:"PORT" default:"8080"`
	HelmChartDir    string `envconfig:"HELM_CHART_DIR" default:"charts"`
	OperatorDir     string `envconfig:"OPERATOR_DIR" default:"operators"`
	TillerNamespace string `envconfig:"TILLER_NAMESPACE" default:"kube-system"`
	TillerSHA       string `envconfig:"TILLER_IMAGE_SHA"`

	ClusterCredentials *ClusterCredentials
	RegistryConfig     *RegistryConfig
	CFClientConfig     *CFClientConfig
	HelmTLSConfig      *HelmTLSConfig
	CredStoreConfig    *CredStoreConfig
}

func EmptyConfig

func EmptyConfig() *Config

func Parse

func Parse() (*Config, error)

type CredStoreConfig

type CredStoreConfig struct {
	CredHubURL        string `envconfig:"CH_CRED_HUB_URL"`
	UaaURL            string `envconfig:"CH_UAA_URL"`
	UaaClientName     string `envconfig:"CH_UAA_CLIENT_NAME"`
	UaaClientSecret   string `envconfig:"CH_UAA_CLIENT_SECRET"`
	SkipSSLValidation bool   `envconfig:"CH_SKIP_SSL_VALIDATION"`
}

func (*CredStoreConfig) HasCredHubConfig

func (c *CredStoreConfig) HasCredHubConfig() bool

type HelmTLSConfig

type HelmTLSConfig struct {
	TLSCaCertFile     string `envconfig:"TILLER_TLS_CA_CERT_FILE"`
	TillerTLSKeyFile  string `envconfig:"TILLER_TLS_KEY_FILE"`
	TillerTLSCertFile string `envconfig:"TILLER_CERT_FILE"`
	HelmTLSKeyFile    string `envconfig:"HELM_TLS_KEY_FILE"`
	HelmTLSCertFile   string `envconfig:"HELM_CERT_FILE"`
}

func (*HelmTLSConfig) HasTillerTLS

func (t *HelmTLSConfig) HasTillerTLS() bool

type RegistryConfig

type RegistryConfig struct {
	Server string `envconfig:"REG_SERVER"`
	User   string `envconfig:"REG_USER"`
	Pass   string `envconfig:"REG_PASS"`
	Email  string `envconfig:"REG_EMAIL"`
}

func (RegistryConfig) GetDockerConfigJson

func (r RegistryConfig) GetDockerConfigJson() ([]byte, error)

func (RegistryConfig) HasRegistryConfig

func (r RegistryConfig) HasRegistryConfig() bool

Jump to

Keyboard shortcuts

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