internal

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 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, origin string, timeout time.Duration) error

func CfClientAuth

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

Types

type AdminClientConfig

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

type AdminUserConfig

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

type ClientConfig

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

type Space

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

type SpaceAndOrgConfig

type SpaceAndOrgConfig interface {
	GetUseExistingOrganization() bool
	GetUseExistingSpace() bool
	GetAddExistingUserToExistingSpace() 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

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

func NewAdminUser

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

func NewTestClient

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

func (user *TestUser) Origin() string

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

type UserConfig interface {
	GetUseExistingUser() bool
	GetExistingUser() string
	GetExistingUserPassword() string
	GetUserOrigin() 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