Documentation ¶
Index ¶
- type FakeReqFactory
- func (f *FakeReqFactory) NewApiEndpointRequirement() requirements.Requirement
- func (f *FakeReqFactory) NewApplicationRequirement(name string) requirements.ApplicationRequirement
- func (f *FakeReqFactory) NewBuildpackRequirement(buildpack string) requirements.BuildpackRequirement
- func (f *FakeReqFactory) NewDEAApplicationRequirement(name string) requirements.DEAApplicationRequirement
- func (f *FakeReqFactory) NewDiegoApplicationRequirement(name string) requirements.DiegoApplicationRequirement
- func (f *FakeReqFactory) NewDomainRequirement(name string) requirements.DomainRequirement
- func (f *FakeReqFactory) NewLoginRequirement() requirements.Requirement
- func (f *FakeReqFactory) NewMaxAPIVersionRequirement(featureName string, maximumVersion semver.Version) requirements.Requirement
- func (f *FakeReqFactory) NewMinAPIVersionRequirement(featureName string, requiredVersion semver.Version) requirements.Requirement
- func (f *FakeReqFactory) NewOrganizationRequirement(name string) requirements.OrganizationRequirement
- func (f *FakeReqFactory) NewRoutingAPIRequirement() requirements.Requirement
- func (f *FakeReqFactory) NewServiceInstanceRequirement(name string) requirements.ServiceInstanceRequirement
- func (f *FakeReqFactory) NewSpaceRequirement(name string) requirements.SpaceRequirement
- func (f *FakeReqFactory) NewTargetedOrgRequirement() requirements.TargetedOrgRequirement
- func (f *FakeReqFactory) NewTargetedSpaceRequirement() requirements.Requirement
- func (f *FakeReqFactory) NewUsageRequirement(requirements.Usable, string, func() bool) requirements.Requirement
- func (f *FakeReqFactory) NewUserRequirement(username string, wantGuid bool) requirements.UserRequirement
- type FakeRequirement
- func (r FakeRequirement) Execute() error
- func (r FakeRequirement) GetApplication() models.Application
- func (r FakeRequirement) GetBuildpack() models.Buildpack
- func (r FakeRequirement) GetDomain() models.DomainFields
- func (r FakeRequirement) GetOrganization() models.Organization
- func (r FakeRequirement) GetOrganizationFields() models.OrganizationFields
- func (r FakeRequirement) GetRoute() models.Route
- func (r FakeRequirement) GetServiceInstance() models.ServiceInstance
- func (r FakeRequirement) GetSpace() models.Space
- func (r FakeRequirement) GetUser() models.UserFields
- func (r FakeRequirement) SetOrganizationName(name string)
- func (r FakeRequirement) SetSpaceName(name string)
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 MinAPIVersionFeatureName string MinAPIVersionRequiredVersion semver.Version MinAPIVersionSuccess bool MaxAPIVersionFeatureName string MaxAPIVersionRequiredVersion semver.Version MaxAPIVersionSuccess bool UI terminal.UI }
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) NewDEAApplicationRequirement ¶
func (f *FakeReqFactory) NewDEAApplicationRequirement(name string) requirements.DEAApplicationRequirement
func (*FakeReqFactory) NewDiegoApplicationRequirement ¶
func (f *FakeReqFactory) NewDiegoApplicationRequirement(name string) requirements.DiegoApplicationRequirement
func (*FakeReqFactory) NewDomainRequirement ¶
func (f *FakeReqFactory) NewDomainRequirement(name string) requirements.DomainRequirement
func (*FakeReqFactory) NewLoginRequirement ¶
func (f *FakeReqFactory) NewLoginRequirement() requirements.Requirement
func (*FakeReqFactory) NewMaxAPIVersionRequirement ¶
func (f *FakeReqFactory) NewMaxAPIVersionRequirement(featureName string, maximumVersion semver.Version) requirements.Requirement
func (*FakeReqFactory) NewMinAPIVersionRequirement ¶
func (f *FakeReqFactory) NewMinAPIVersionRequirement(featureName 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) NewUsageRequirement ¶
func (f *FakeReqFactory) NewUsageRequirement(requirements.Usable, string, func() bool) 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() error
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)
Click to show internal directories.
Click to hide internal directories.