internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CFAuthRetries = 2
View Source
const VerboseAuth = "RELINT_VERBOSE_AUTH"

Variables

This section is empty.

Functions

func ApiRequest

func ApiRequest(cmdStarter internal.Starter, method, endpoint string, response interface{}, timeout time.Duration, data ...string)

func CfAuth

func CfAuth(cmdStarter internal.Starter, reporter internal.Reporter, user string, password string, timeout time.Duration) error

func CfClientAuth added in v1.0.0

func CfClientAuth(cmdStarter internal.Starter, reporter internal.Reporter, client string, clientSecret string, timeout time.Duration) error

Types

type AdminClientConfig added in v1.0.0

type AdminClientConfig interface {
	GetAdminClient() string
	GetAdminClientSecret() string
}

type AdminUserConfig added in v1.0.0

type AdminUserConfig interface {
	GetAdminUser() string
	GetAdminPassword() string
}

type ClientConfig added in v1.0.0

type ClientConfig interface {
	GetExistingClient() string
	GetExistingClientSecret() string
}

type Space

type Space interface {
	Create()
	Destroy()
	OrganizationName() string
	SpaceName() string
	QuotaName() string
}

type SpaceAndOrgConfig added in v1.0.0

type SpaceAndOrgConfig interface {
	GetUseExistingOrganization() bool
	GetUseExistingSpace() bool
	GetExistingOrganization() string
	GetExistingSpace() string
}

type TestSpace

type TestSpace struct {
	QuotaDefinitionName string

	QuotaDefinitionTotalMemoryLimit      string
	QuotaDefinitionInstanceMemoryLimit   string
	QuotaDefinitionRoutesLimit           string
	QuotaDefinitionAppInstanceLimit      string
	QuotaDefinitionServiceInstanceLimit  string
	QuotaDefinitionAllowPaidServicesFlag string
	QuotaDefinitionReservedRoutePorts    string
	CommandStarter                       internal.Starter
	Timeout                              time.Duration
	// contains filtered or unexported fields
}

func NewBaseTestSpace

func NewBaseTestSpace(spaceName, organizationName, quotaDefinitionName, quotaDefinitionTotalMemoryLimit string, isExistingOrganization bool, isExistingSpace bool, timeout time.Duration, cmdStarter internal.Starter) *TestSpace

func NewRegularTestSpace

func NewRegularTestSpace(cfg spaceConfig, quotaLimit string) *TestSpace

func (*TestSpace) Create

func (ts *TestSpace) Create()

func (*TestSpace) Destroy

func (ts *TestSpace) Destroy()

func (*TestSpace) OrganizationName

func (ts *TestSpace) OrganizationName() string

func (*TestSpace) QuotaName

func (ts *TestSpace) QuotaName() string

func (*TestSpace) SpaceName

func (ts *TestSpace) SpaceName() string

type TestUser

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

func NewAdminClient added in v1.0.0

func NewAdminClient(config AdminClientConfig, cmdStarter internal.Starter) *TestUser

func NewAdminUser

func NewAdminUser(config AdminUserConfig, cmdStarter internal.Starter) *TestUser

func NewTestClient added in v1.0.0

func NewTestClient(config ClientConfig, cmdStarter internal.Starter) *TestUser

func NewTestUser

func NewTestUser(config userConfig, cmdStarter internal.Starter) *TestUser

func (*TestUser) Create

func (user *TestUser) Create()

func (*TestUser) Destroy

func (user *TestUser) Destroy()

func (*TestUser) Password

func (user *TestUser) Password() string

func (*TestUser) ShouldRemain

func (user *TestUser) ShouldRemain() bool

func (*TestUser) Username

func (user *TestUser) Username() string

type UserConfig added in v1.0.0

type UserConfig interface {
	GetUseExistingUser() bool
	GetExistingUser() string
	GetExistingUserPassword() string
	GetShouldKeepUser() bool
	GetConfigurableTestPassword() string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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