Documentation ¶
Overview ¶
Package configuration is in charge of the validation and extraction of all the configuration details from a configuration file.
Index ¶
- type Data
- func (c *Data) APIServerInsecureSkipTLSVerify() bool
- func (c *Data) GetHTTPAddress() string
- func (c *Data) GetKeycloakOpenshiftBroker() string
- func (c *Data) GetKeycloakRealm() string
- func (c *Data) GetKeycloakURL() string
- func (c *Data) GetLogLevel() string
- func (c *Data) GetOpenshiftCheVersion() string
- func (c *Data) GetOpenshiftJenkinsVersion() string
- func (c *Data) GetOpenshiftServiceToken() string
- func (c *Data) GetOpenshiftTeamVersion() string
- func (c *Data) GetOpenshiftTemplateDir() string
- func (c *Data) GetOpenshiftTenantMasterURL() string
- func (c *Data) GetPostgresConfigString() string
- func (c *Data) GetPostgresConnectionMaxIdle() int
- func (c *Data) GetPostgresConnectionMaxOpen() int
- func (c *Data) GetPostgresConnectionRetrySleep() time.Duration
- func (c *Data) GetPostgresConnectionTimeout() int64
- func (c *Data) GetPostgresDatabase() string
- func (c *Data) GetPostgresHost() string
- func (c *Data) GetPostgresPassword() string
- func (c *Data) GetPostgresPort() int64
- func (c *Data) GetPostgresSSLMode() string
- func (c *Data) GetPostgresUser() string
- func (c *Data) GetTemplateValues() (map[string]string, error)
- func (c *Data) GetWitURL() string
- func (c *Data) IsDeveloperModeEnabled() bool
- func (c *Data) IsLogJSON() bool
- func (c *Data) String() string
- func (c *Data) UseOpenshiftCurrentCluster() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data encapsulates the Viper configuration object which stores the configuration data in-memory.
func GetData ¶
GetData is a wrapper over NewData which reads configuration file path from the environment variable.
func NewData ¶
NewData creates a configuration reader object using a configurable configuration file path
func (*Data) APIServerInsecureSkipTLSVerify ¶
APIServerInsecureSkipTLSVerify returns if the server's certificate should be checked for validity. This will make your HTTPS connections insecure.
func (*Data) GetHTTPAddress ¶
GetHTTPAddress returns the HTTP address (as set via default, config file, or environment variable) that the alm server binds to (e.g. "0.0.0.0:8080")
func (*Data) GetKeycloakOpenshiftBroker ¶
GetKeycloakOpenshiftBroker returns the keyclaok broker name for openshift
func (*Data) GetKeycloakRealm ¶
GetKeycloakRealm returns the keyclaok realm name
func (*Data) GetKeycloakURL ¶
GetKeycloakURL returns Keycloak URL used by default in Dev mode
func (*Data) GetLogLevel ¶
GetLogLevel returns the loggging level (as set via config file or environment variable)
func (*Data) GetOpenshiftCheVersion ¶
GetOpenshiftCheVersion returns the team version of YAML files used to provision tenant che
func (*Data) GetOpenshiftJenkinsVersion ¶
GetOpenshiftJenkinsVersion returns the team version of YAML files used to provision tenant jenkins
func (*Data) GetOpenshiftServiceToken ¶
GetOpenshiftServiceToken returns the token be used by matser user for tenant init
func (*Data) GetOpenshiftTeamVersion ¶
GetOpenshiftTeamVersion returns the team version of YAML files used to provision tenant team namespaces and roles
func (*Data) GetOpenshiftTemplateDir ¶
GetOpenshiftTemplateDir returns the directory containing the local team YAML files
func (*Data) GetOpenshiftTenantMasterURL ¶
GetOpenshiftTenantMasterURL returns the URL for the openshift cluster where the tenant services are running
func (*Data) GetPostgresConfigString ¶
GetPostgresConfigString returns a ready to use string for usage in sql.Open()
func (*Data) GetPostgresConnectionMaxIdle ¶
GetPostgresConnectionMaxIdle returns the number of connections that should be keept alive in the database connection pool at any given time. -1 represents no restrictions/default behavior
func (*Data) GetPostgresConnectionMaxOpen ¶
GetPostgresConnectionMaxOpen returns the max number of open connections that should be open in the database connection pool. -1 represents no restrictions/default behavior
func (*Data) GetPostgresConnectionRetrySleep ¶
GetPostgresConnectionRetrySleep returns the number of seconds (as set via default, config file, or environment variable) to wait before trying to connect again
func (*Data) GetPostgresConnectionTimeout ¶
GetPostgresConnectionTimeout returns the postgres connection timeout as set via default, config file, or environment variable
func (*Data) GetPostgresDatabase ¶
GetPostgresDatabase returns the postgres database as set via default, config file, or environment variable
func (*Data) GetPostgresHost ¶
GetPostgresHost returns the postgres host as set via default, config file, or environment variable
func (*Data) GetPostgresPassword ¶
GetPostgresPassword returns the postgres password as set via default, config file, or environment variable
func (*Data) GetPostgresPort ¶
GetPostgresPort returns the postgres port as set via default, config file, or environment variable
func (*Data) GetPostgresSSLMode ¶
GetPostgresSSLMode returns the postgres sslmode as set via default, config file, or environment variable
func (*Data) GetPostgresUser ¶
GetPostgresUser returns the postgres user as set via default, config file, or environment variable
func (*Data) GetTemplateValues ¶
GetTemplateValues return a Map of additional variables used to process the templates
func (*Data) IsDeveloperModeEnabled ¶
IsDeveloperModeEnabled returns if development related features (as set via default, config file, or environment variable), e.g. token generation endpoint are enabled
func (*Data) IsLogJSON ¶
IsLogJSON returns if we should log json format (as set via config file or environment variable)
func (*Data) UseOpenshiftCurrentCluster ¶
UseOpenshiftCurrentCluster returns if we should use the current cluster to provision tenant service