services

package
v0.0.0-...-4efa2a7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string, configPtr interface{}) error

func ValidateConfig

func ValidateConfig(config *Config) error

Types

type Config

type Config struct {
	AppsDomain                    string  `json:"apps_domain"`
	ApiEndpoint                   string  `json:"api"`
	AdminUser                     string  `json:"admin_user"`
	AdminPassword                 string  `json:"admin_password"`
	CreatePermissiveSecurityGroup bool    `json:"create_permissive_security_group"`
	SkipSSLValidation             bool    `json:"skip_ssl_validation"`
	TimeoutScale                  float64 `json:"timeout_scale"`
	OrgName                       string  `json:"org_name"`
	ConfigurableTestPassword      string  `json:"test_password"`
}

func (Config) ScaledTimeout

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

type Context

type Context interface {
	Setup()
	Teardown()

	AdminUserContext() cf.UserContext
	RegularUserContext() cf.UserContext

	ShortTimeout() time.Duration
	LongTimeout() time.Duration
}

func NewContext

func NewContext(config Config, prefix string) Context

type QuotaDefinition

type QuotaDefinition struct {
	Name string `json:"name"`

	NonBasicServicesAllowed bool `json:"non_basic_services_allowed"`

	TotalServices int `json:"total_services"`
	TotalRoutes   int `json:"total_routes"`

	MemoryLimit int `json:"memory_limit"`
}

Jump to

Keyboard shortcuts

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