config

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath() string

func Load

func Load(path string, config *Config) error

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"`
	AdminOrigin   string `json:"admin_origin"`

	AdminClient       string `json:"admin_client"`
	AdminClientSecret string `json:"admin_client_secret"`

	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"`

	UserOrigin string `json:"user_origin"`

	ExistingClient       string `json:"existing_client"`
	ExistingClientSecret string `json:"existing_client_secret"`

	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"`
	Backend           string `json:"backend"`

	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"`

	SecureAddress string `json:"secure_address"`

	DockerExecutable      string   `json:"docker_executable"`
	DockerParameters      []string `json:"docker_parameters"`
	DockerRegistryAddress string   `json:"docker_registry_address"`
	DockerPrivateImage    string   `json:"docker_private_image"`
	DockerUser            string   `json:"docker_user"`
	DockerPassword        string   `json:"docker_password"`
	DockerEmail           string   `json:"docker_email"`

	StaticFileBuildpackName string `json:"staticfile_buildpack_name"`
	JavaBuildpackName       string `json:"java_buildpack_name"`
	RubyBuildpackName       string `json:"ruby_buildpack_name"`
	NodejsBuildpackName     string `json:"nodejs_buildpack_name"`
	GoBuildpackName         string `json:"go_buildpack_name"`
	PythonBuildpackName     string `json:"python_buildpack_name"`
	PhpBuildpackName        string `json:"php_buildpack_name"`
	BinaryBuildpackName     string `json:"binary_buildpack_name"`

	IncludeApps                bool `json:"include_apps"`
	IncludeBackendCompatiblity bool `json:"include_backend_compatibility"`
	IncludeDetect              bool `json:"include_detect"`
	IncludeDocker              bool `json:"include_docker"`
	IncludeInternetDependent   bool `json:"include_internet_dependent"`
	IncludeRouteServices       bool `json:"include_route_services"`
	IncludeRouting             bool `json:"include_routing"`
	IncludeSecurityGroups      bool `json:"include_security_groups"`
	IncludeServices            bool `json:"include_services"`
	IncludeSsh                 bool `json:"include_ssh"`
	IncludeV3                  bool `json:"include_v3"`
	IncludeTasks               bool `json:"include_tasks"`
	IncludeSSO                 bool `json:"include_sso"`

	NamePrefix string `json:"name_prefix"`
}

func LoadConfig

func LoadConfig() *Config

func (*Config) AsyncServiceOperationTimeoutDuration

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

func (*Config) BrokerStartTimeoutDuration

func (c *Config) BrokerStartTimeoutDuration() 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

func (c *Config) GetAddExistingUserToExistingSpace() bool

func (*Config) GetAdminClient

func (c *Config) GetAdminClient() string

func (*Config) GetAdminClientSecret

func (c *Config) GetAdminClientSecret() string

func (*Config) GetAdminOrigin added in v2.4.0

func (c *Config) GetAdminOrigin() 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

func (c *Config) GetExistingClient() string

func (*Config) GetExistingClientSecret

func (c *Config) GetExistingClientSecret() string

func (*Config) GetExistingOrganization

func (c *Config) GetExistingOrganization() string

func (*Config) GetExistingSpace

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) 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

func (c *Config) GetUseExistingOrganization() bool

func (*Config) GetUseExistingSpace

func (c *Config) GetUseExistingSpace() bool

func (*Config) GetUseExistingUser

func (c *Config) GetUseExistingUser() bool

func (*Config) GetUserOrigin added in v2.4.0

func (c *Config) GetUserOrigin() string

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