requirements

package
v6.14.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeReqFactory

type FakeReqFactory struct {
	ApplicationName string
	Application     models.Application

	ServiceInstanceName string
	ServiceInstance     models.ServiceInstance

	ApplicationFails             bool
	LoginSuccess                 bool
	RoutingAPIEndpointSuccess    bool
	ApiEndpointSuccess           bool
	ValidAccessTokenSuccess      bool
	TargetedSpaceSuccess         bool
	TargetedOrgSuccess           bool
	BuildpackSuccess             bool
	SpaceRequirementFails        bool
	UserRequirementFails         bool
	OrganizationRequirementFails bool

	ServiceInstanceNotFound bool

	SpaceName string
	Space     models.Space

	OrganizationName   string
	Organization       models.Organization
	OrganizationFields models.OrganizationFields

	RouteHost   string
	RouteDomain string
	Route       models.Route

	DomainName string
	Domain     models.DomainFields

	UserUsername string
	UserFields   models.UserFields

	Buildpack models.Buildpack

	MinAPIVersionCommandName     string
	MinAPIVersionRequiredVersion semver.Version
}

func (*FakeReqFactory) NewApiEndpointRequirement

func (f *FakeReqFactory) NewApiEndpointRequirement() requirements.Requirement

func (*FakeReqFactory) NewApplicationRequirement

func (f *FakeReqFactory) NewApplicationRequirement(name string) requirements.ApplicationRequirement

func (*FakeReqFactory) NewBuildpackRequirement

func (f *FakeReqFactory) NewBuildpackRequirement(buildpack string) requirements.BuildpackRequirement

func (*FakeReqFactory) NewDomainRequirement

func (f *FakeReqFactory) NewDomainRequirement(name string) requirements.DomainRequirement

func (*FakeReqFactory) NewLoginRequirement

func (f *FakeReqFactory) NewLoginRequirement() requirements.Requirement

func (*FakeReqFactory) NewMinAPIVersionRequirement

func (f *FakeReqFactory) NewMinAPIVersionRequirement(commandName string, requiredVersion semver.Version) requirements.Requirement

func (*FakeReqFactory) NewOrganizationRequirement

func (f *FakeReqFactory) NewOrganizationRequirement(name string) requirements.OrganizationRequirement

func (*FakeReqFactory) NewRoutingAPIRequirement

func (f *FakeReqFactory) NewRoutingAPIRequirement() requirements.Requirement

func (*FakeReqFactory) NewServiceInstanceRequirement

func (f *FakeReqFactory) NewServiceInstanceRequirement(name string) requirements.ServiceInstanceRequirement

func (*FakeReqFactory) NewSpaceRequirement

func (f *FakeReqFactory) NewSpaceRequirement(name string) requirements.SpaceRequirement

func (*FakeReqFactory) NewTargetedOrgRequirement

func (f *FakeReqFactory) NewTargetedOrgRequirement() requirements.TargetedOrgRequirement

func (*FakeReqFactory) NewTargetedSpaceRequirement

func (f *FakeReqFactory) NewTargetedSpaceRequirement() requirements.Requirement

func (*FakeReqFactory) NewUserRequirement

func (f *FakeReqFactory) NewUserRequirement(username string, wantGuid bool) requirements.UserRequirement

type FakeRequirement

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

func (FakeRequirement) Execute

func (r FakeRequirement) Execute() (success bool)

func (FakeRequirement) GetApplication

func (r FakeRequirement) GetApplication() models.Application

func (FakeRequirement) GetBuildpack

func (r FakeRequirement) GetBuildpack() models.Buildpack

func (FakeRequirement) GetDomain

func (r FakeRequirement) GetDomain() models.DomainFields

func (FakeRequirement) GetOrganization

func (r FakeRequirement) GetOrganization() models.Organization

func (FakeRequirement) GetOrganizationFields

func (r FakeRequirement) GetOrganizationFields() models.OrganizationFields

func (FakeRequirement) GetRoute

func (r FakeRequirement) GetRoute() models.Route

func (FakeRequirement) GetServiceInstance

func (r FakeRequirement) GetServiceInstance() models.ServiceInstance

func (FakeRequirement) GetSpace

func (r FakeRequirement) GetSpace() models.Space

func (FakeRequirement) GetUser

func (r FakeRequirement) GetUser() models.UserFields

func (FakeRequirement) SetOrganizationName

func (r FakeRequirement) SetOrganizationName(name string)

func (FakeRequirement) SetSpaceName

func (r FakeRequirement) SetSpaceName(name string)

Jump to

Keyboard shortcuts

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