config

package
v0.0.0-...-3852cca Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNSPLongSleepInterval

func GetNSPLongSleepInterval() time.Duration

func SetRequiredEnvironmentVariablesForTest

func SetRequiredEnvironmentVariablesForTest()

SetRequiredEnvironmentVariablesForTest Sets test environment variables, that would come from launch config, when running complete scenario

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config Holds all the environment variables

func NewConfig

func NewConfig() Config

NewConfig Constructor

func (*Config) GetAppAdminGroup

func (cfg *Config) GetAppAdminGroup() string

func (*Config) GetAppReaderGroup

func (cfg *Config) GetAppReaderGroup() string

func (*Config) GetClusterFQDN

func (cfg *Config) GetClusterFQDN() string

GetClusterFQDN get Radix cluster FQDN from config map

func (*Config) GetGitHubWebHookAPIURL

func (cfg *Config) GetGitHubWebHookAPIURL() string

func (*Config) GetImpersonateGroups

func (cfg *Config) GetImpersonateGroups() *string

GetImpersonateGroups get list of groups for impersonation

func (*Config) GetImpersonateUser

func (cfg *Config) GetImpersonateUser() *string

GetImpersonateUser get impersonate user from config map

func (*Config) GetLogLevel

func (cfg *Config) GetLogLevel() zerolog.Level

GetLogLevel Gets log level

func (*Config) GetNSPDNSLookupTimeout

func (cfg *Config) GetNSPDNSLookupTimeout() time.Duration

GetNSPDNSLookupTimeout Get DNS lookup timeout

func (*Config) GetNSPLongSleepInterval

func (cfg *Config) GetNSPLongSleepInterval() time.Duration

GetNSPLongSleepInterval Gets the sleep inteval between NSPLong test runs from config map

func (*Config) GetNSPReachIngressTimeout

func (cfg *Config) GetNSPReachIngressTimeout() time.Duration

GetNSPReachIngressTimeout Get reach ingress timeout

func (*Config) GetNSPReachServiceTimeout

func (cfg *Config) GetNSPReachServiceTimeout() time.Duration

GetNSPReachServiceTimeout Get reach service timeout

func (*Config) GetNSPSleepInterval

func (cfg *Config) GetNSPSleepInterval() time.Duration

GetNSPSleepInterval Gets the sleep inteval between NSP test runs from config map

func (*Config) GetNetworkPolicyCanaryAppName

func (cfg *Config) GetNetworkPolicyCanaryAppName() string

func (*Config) GetNetworkPolicyCanaryJobComponentName

func (cfg *Config) GetNetworkPolicyCanaryJobComponentName() string

func (*Config) GetNetworkPolicyCanaryPassword

func (cfg *Config) GetNetworkPolicyCanaryPassword() string

GetNetworkPolicyCanaryPassword get networkpolicy-canary HTTP password from environment

func (*Config) GetNetworkPolicyCanaryUrl

func (cfg *Config) GetNetworkPolicyCanaryUrl(appEnv string) string

func (*Config) GetPrettyPrint

func (cfg *Config) GetPrettyPrint() bool

func (*Config) GetPrivateImageHubPassword

func (cfg *Config) GetPrivateImageHubPassword() string

GetPrivateImageHubPassword get private image hub password

func (*Config) GetPrivateKey

func (cfg *Config) GetPrivateKey() string

GetPrivateKey get private deploy key from config map

func (*Config) GetPrivateKeyCanary3

func (cfg *Config) GetPrivateKeyCanary3() string

GetPrivateKeyCanary3 get private deploy key from config map

func (*Config) GetPrivateKeyCanary4

func (cfg *Config) GetPrivateKeyCanary4() string

GetPrivateKeyCanary4 get private deploy key from config map

func (*Config) GetPublicKey

func (cfg *Config) GetPublicKey() string

GetPublicKey get public deploy key from config map

func (*Config) GetPublicKeyCanary3

func (cfg *Config) GetPublicKeyCanary3() string

GetPublicKeyCanary3 get public deploy key from config map

func (*Config) GetPublicKeyCanary4

func (cfg *Config) GetPublicKeyCanary4() string

GetPublicKeyCanary4 get public deploy key from config map

func (*Config) GetRadixAPISchemes

func (cfg *Config) GetRadixAPISchemes() []string

func (*Config) GetRadixAPIURL

func (cfg *Config) GetRadixAPIURL() string

func (*Config) GetSleepIntervalBetweenCheckFunc

func (cfg *Config) GetSleepIntervalBetweenCheckFunc() time.Duration

GetSleepIntervalBetweenCheckFunc Gets the sleep inteval between two checks from config map

func (*Config) GetSleepIntervalBetweenTestRuns

func (cfg *Config) GetSleepIntervalBetweenTestRuns() time.Duration

GetSleepIntervalBetweenTestRuns Gets the sleep inteval between two test runs from config map

func (*Config) GetSuiteList

func (cfg *Config) GetSuiteList() []string

GetSuiteList Gets a filter list for which suites to run

func (*Config) GetSuiteListIsBlacklist

func (cfg *Config) GetSuiteListIsBlacklist() bool

GetSuiteListIsBlacklist Gets whether suiteList is considered a blacklist

func (*Config) GetTimeoutOfTest

func (cfg *Config) GetTimeoutOfTest() time.Duration

GetTimeoutOfTest Get the time it should take before a test should time out from config map

func (*Config) GetTokenSource

func (cfg *Config) GetTokenSource() oauth2.TokenSource

Jump to

Keyboard shortcuts

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