config

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package config implements configuration parsing for CredHub

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CredStoreConfig CredStoreConfig `mapstructure:"credhub"`
}

func Parse

func Parse() (*Config, error)

type CredStoreConfig

type CredStoreConfig struct {
	CredHubURL           string `mapstructure:"url"`
	UaaURL               string `mapstructure:"uaa_url"`
	UaaClientName        string `mapstructure:"uaa_client_name"`
	UaaClientSecret      string `mapstructure:"uaa_client_secret"`
	SkipSSLValidation    bool   `mapstructure:"skip_ssl_validation"`
	CaCertFile           string `mapstructure:"ca_cert_file"`
	StoreBindCredentials bool   `mapstructure:"store_bind_credentials"`
}

func (*CredStoreConfig) HasCredHubConfig

func (c *CredStoreConfig) HasCredHubConfig() bool

Jump to

Keyboard shortcuts

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