config

package
v0.0.0-...-86099d2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CFSystemDomain string `json:"cf_system_domain"`
	IstioDomain    string `json:"cf_istio_domain"`
	AdminUser      string `json:"cf_admin_user"`
	AdminPassword  string `json:"cf_admin_password"`
	OrgName        string `json:"cf_org_name"`
	SpaceName      string `json:"cf_space_name"`
	DatadogApiKey  string `json:"datadog_api_key"`
}

func NewConfig

func NewConfig(path string) (Config, error)

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

func (c Config) GetConfigurableTestPassword() 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) GetPersistentAppOrg

func (c Config) GetPersistentAppOrg() string

func (Config) GetPersistentAppQuotaName

func (c Config) GetPersistentAppQuotaName() string

func (Config) GetPersistentAppSpace

func (c Config) GetPersistentAppSpace() string

func (Config) GetScaledTimeout

func (c Config) GetScaledTimeout(d 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) Validate

func (c Config) Validate() error

type Space

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

func NewSpace

func NewSpace(cfg Config) *Space

func (*Space) Create

func (s *Space) Create()

func (*Space) Destroy

func (s *Space) Destroy()

func (*Space) OrganizationName

func (s *Space) OrganizationName() string

func (*Space) QuotaName

func (s *Space) QuotaName() string

func (*Space) ShouldRemain

func (s *Space) ShouldRemain() bool

func (*Space) SpaceName

func (s *Space) SpaceName() string

type TestPlan

type TestPlan struct {
	NumAppsToPush    int     `json:"number_of_apps_to_push"`
	NumAppsToCurl    int     `json:"number_of_apps_to_curl"`
	AppMemSize       string  `json:"app_mem_size"`
	AppInstances     int     `json:"app_instances"`
	PassingThreshold float32 `json:"passing_threshold"`
	Concurrency      int     `json:"app_push_concurrency"`
	Cleanup          bool    `json:"cleanup"`
}

func NewPlan

func NewPlan(path string) (TestPlan, error)

func (*TestPlan) Validate

func (c *TestPlan) Validate() error

type User

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

func NewAdmin

func NewAdmin(cfg Config) *User

func NewUser

func NewUser(cfg Config) *User

func (*User) Create

func (u *User) Create()

func (*User) Destroy

func (u *User) Destroy()

func (*User) Password

func (u *User) Password() string

func (*User) ShouldRemain

func (u *User) ShouldRemain() bool

func (*User) Username

func (u *User) Username() string

Jump to

Keyboard shortcuts

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