config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const JAVA_APP = "../assets/app/HelloWorldJavaWeb.war"
View Source
const NODE_APP = "../assets/app/nodeApp"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiEndpoint                    string  `json:"api"`
	AppsDomain                     string  `json:"apps_domain"`
	UseHttp                        bool    `json:"use_http"`
	AdminUser                      string  `json:"admin_user"`
	AdminPassword                  string  `json:"admin_password"`
	UseExistingUser                bool    `json:"use_existing_user"`
	ShouldKeepUser                 bool    `json:"keep_user_at_suite_end"`
	ExistingUser                   string  `json:"existing_user"`
	ExistingUserPassword           string  `json:"existing_user_password"`
	ConfigurableTestPassword       string  `json:"test_password"`
	UseExistingOrganization        bool    `json:"use_existing_organization"`
	ExistingOrganization           string  `json:"existing_organization"`
	AddExistingUserToExistingSpace bool    `json:"add_existing_user_to_existing_space"`
	UseExistingSpace               bool    `json:"use_existing_space"`
	ExistingSpace                  string  `json:"existing_space"`
	SkipSSLValidation              bool    `json:"skip_ssl_validation"`
	ArtifactsDirectory             string  `json:"artifacts_directory"`
	DefaultTimeout                 int     `json:"default_timeout"`
	SleepTimeout                   int     `json:"sleep_timeout"`
	DetectTimeout                  int     `json:"detect_timeout"`
	CfPushTimeout                  int     `json:"cf_push_timeout"`
	LongCurlTimeout                int     `json:"long_curl_timeout"`
	BrokerStartTimeout             int     `json:"broker_start_timeout"`
	AsyncServiceOperationTimeout   int     `json:"async_service_operation_timeout"`
	TimeoutScale                   float64 `json:"timeout_scale"`
	JavaBuildpackName              string  `json:"java_buildpack_name"`
	NodejsBuildpackName            string  `json:"nodejs_buildpack_name"`
	NamePrefix                     string  `json:"name_prefix"`
	AdminClient                    string  `json:"admin_client"`
	AdminClientSecret              string  `json:"admin_client_secret"`
	ExistingClient                 string  `json:"existing_client"`
	ExistingClientSecret           string  `json:"existing_client_secret"`

	ServiceName       string `json:"service_name"`
	ServicePlan       string `json:"service_plan"`
	AggregateInterval int    `json:"aggregate_interval"`

	CfJavaTimeout   int `json:"cf_java_timeout"`
	NodeMemoryLimit int `json:"node_memory_limit"`

	ASApiEndpoint          string `json:"autoscaler_api"`
	ServiceOfferingEnabled bool   `json:"service_offering_enabled"`
}

func LoadConfig

func LoadConfig(t *testing.T) *Config

func (*Config) AsyncServiceOperationTimeoutDuration

func (c *Config) AsyncServiceOperationTimeoutDuration() time.Duration

func (*Config) BrokerStartTimeoutDuration

func (c *Config) BrokerStartTimeoutDuration() time.Duration

func (*Config) CFJavaTimeoutDuration

func (c *Config) CFJavaTimeoutDuration() time.Duration

func (*Config) CfPushTimeoutDuration

func (c *Config) CfPushTimeoutDuration() time.Duration

func (*Config) DefaultTimeoutDuration

func (c *Config) DefaultTimeoutDuration() time.Duration

func (*Config) DetectTimeoutDuration

func (c *Config) DetectTimeoutDuration() time.Duration

func (*Config) GetAddExistingUserToExistingSpace added in v1.2.1

func (c *Config) GetAddExistingUserToExistingSpace() bool

func (*Config) GetAdminClient added in v1.2.1

func (c *Config) GetAdminClient() string

func (*Config) GetAdminClientSecret added in v1.2.1

func (c *Config) GetAdminClientSecret() string

func (*Config) GetAdminPassword

func (c *Config) GetAdminPassword() string

func (*Config) GetAdminUser

func (c *Config) GetAdminUser() string

func (*Config) GetApiEndpoint

func (c *Config) GetApiEndpoint() string

func (*Config) GetAppsDomain

func (c *Config) GetAppsDomain() string

func (*Config) GetArtifactsDirectory

func (c *Config) GetArtifactsDirectory() string

func (*Config) GetConfigurableTestPassword

func (c *Config) GetConfigurableTestPassword() string

func (*Config) GetExistingClient added in v1.2.1

func (c *Config) GetExistingClient() string

func (*Config) GetExistingClientSecret added in v1.2.1

func (c *Config) GetExistingClientSecret() string

func (*Config) GetExistingOrganization added in v1.2.1

func (c *Config) GetExistingOrganization() string

func (*Config) GetExistingSpace added in v1.2.1

func (c *Config) GetExistingSpace() string

func (*Config) GetExistingUser

func (c *Config) GetExistingUser() string

func (*Config) GetExistingUserPassword

func (c *Config) GetExistingUserPassword() string

func (*Config) GetNamePrefix

func (c *Config) GetNamePrefix() string

func (*Config) GetNodeMemoryLimit

func (c *Config) GetNodeMemoryLimit() int

func (Config) GetScaledTimeout

func (c Config) GetScaledTimeout(timeout time.Duration) time.Duration

func (*Config) GetShouldKeepUser

func (c *Config) GetShouldKeepUser() bool

func (*Config) GetSkipSSLValidation

func (c *Config) GetSkipSSLValidation() bool

func (*Config) GetUseExistingOrganization added in v1.2.1

func (c *Config) GetUseExistingOrganization() bool

func (*Config) GetUseExistingSpace added in v1.2.1

func (c *Config) GetUseExistingSpace() bool

func (*Config) GetUseExistingUser

func (c *Config) GetUseExistingUser() bool

func (*Config) IsServiceOfferingEnabled

func (c *Config) IsServiceOfferingEnabled() bool

func (*Config) LongCurlTimeoutDuration

func (c *Config) LongCurlTimeoutDuration() time.Duration

func (Config) Protocol

func (c Config) Protocol() string

func (*Config) SleepTimeoutDuration

func (c *Config) SleepTimeoutDuration() time.Duration

Jump to

Keyboard shortcuts

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