Documentation ¶
Index ¶
- func NewApplicationRequirement(name string, aR applications.ApplicationRepository) *applicationAPIRequirement
- func NewBuildpackRequirement(name string, bR api.BuildpackRepository) (req *buildpackAPIRequirement)
- func NewConfigRefreshingRequirement(requirement Requirement, configRefresher ConfigRefresher) configRefreshingRequirement
- func NewDomainRequirement(name string, config coreconfig.Reader, domainRepo api.DomainRepository) (req *domainAPIRequirement)
- func NewFactory(config coreconfig.ReadWriter, repoLocator api.RepositoryLocator) (factory apiRequirementFactory)
- func NewOrganizationRequirement(name string, sR organizations.OrganizationRepository) *organizationAPIRequirement
- func NewServiceInstanceRequirement(name string, sR api.ServiceRepository) (req *serviceInstanceAPIRequirement)
- func NewSpaceRequirement(name string, sR spaces.SpaceRepository) *spaceAPIRequirement
- func NewUserRequirement(username string, userRepo api.UserRepository, wantGUID bool) *userAPIRequirement
- type APIEndpointRequirement
- type ApplicationRequirement
- type BuildpackRequirement
- type ConfigRefresher
- type DEAApplicationRequirement
- type DiegoApplicationRequirement
- type DomainRequirement
- type Factory
- type LoginRequirement
- type MaxAPIVersionRequirement
- type MinAPIVersionRequirement
- type OrganizationRequirement
- type Requirement
- type RequirementFunction
- type Requirements
- type RoutingAPIRequirement
- type ServiceInstanceRequirement
- type SpaceRequirement
- type TargetedOrgRequirement
- type TargetedSpaceRequirement
- type Usable
- type UserRequirement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplicationRequirement ¶
func NewApplicationRequirement(name string, aR applications.ApplicationRepository) *applicationAPIRequirement
func NewBuildpackRequirement ¶
func NewBuildpackRequirement(name string, bR api.BuildpackRepository) (req *buildpackAPIRequirement)
func NewConfigRefreshingRequirement ¶
func NewConfigRefreshingRequirement(requirement Requirement, configRefresher ConfigRefresher) configRefreshingRequirement
func NewDomainRequirement ¶
func NewDomainRequirement(name string, config coreconfig.Reader, domainRepo api.DomainRepository) (req *domainAPIRequirement)
func NewFactory ¶
func NewFactory(config coreconfig.ReadWriter, repoLocator api.RepositoryLocator) (factory apiRequirementFactory)
func NewOrganizationRequirement ¶
func NewOrganizationRequirement(name string, sR organizations.OrganizationRepository) *organizationAPIRequirement
func NewServiceInstanceRequirement ¶
func NewServiceInstanceRequirement(name string, sR api.ServiceRepository) (req *serviceInstanceAPIRequirement)
func NewSpaceRequirement ¶
func NewSpaceRequirement(name string, sR spaces.SpaceRepository) *spaceAPIRequirement
func NewUserRequirement ¶
func NewUserRequirement( username string, userRepo api.UserRepository, wantGUID bool, ) *userAPIRequirement
Types ¶
type APIEndpointRequirement ¶
type APIEndpointRequirement struct {
// contains filtered or unexported fields
}
func NewAPIEndpointRequirement ¶
func NewAPIEndpointRequirement(config coreconfig.Reader) APIEndpointRequirement
func (APIEndpointRequirement) Execute ¶
func (req APIEndpointRequirement) Execute() error
type ApplicationRequirement ¶
type ApplicationRequirement interface { Requirement GetApplication() models.Application }
type BuildpackRequirement ¶
type BuildpackRequirement interface { Requirement GetBuildpack() models.Buildpack }
type ConfigRefresher ¶
type ConfigRefresher interface {
Refresh() (coreconfig.Warning, error)
}
type DEAApplicationRequirement ¶
type DEAApplicationRequirement interface { Requirement GetApplication() models.Application }
func NewDEAApplicationRequirement ¶
func NewDEAApplicationRequirement(name string, applicationRepo applications.ApplicationRepository) DEAApplicationRequirement
type DiegoApplicationRequirement ¶
type DiegoApplicationRequirement interface { Requirement GetApplication() models.Application }
func NewDiegoApplicationRequirement ¶
func NewDiegoApplicationRequirement(name string, applicationRepo applications.ApplicationRepository) DiegoApplicationRequirement
type DomainRequirement ¶
type DomainRequirement interface { Requirement GetDomain() models.DomainFields }
type Factory ¶
type Factory interface { NewApplicationRequirement(name string) ApplicationRequirement NewDEAApplicationRequirement(name string) DEAApplicationRequirement NewDiegoApplicationRequirement(name string) DiegoApplicationRequirement NewServiceInstanceRequirement(name string) ServiceInstanceRequirement NewLoginRequirement() Requirement NewRoutingAPIRequirement() Requirement NewSpaceRequirement(name string) SpaceRequirement NewTargetedSpaceRequirement() Requirement NewTargetedOrgRequirement() TargetedOrgRequirement NewOrganizationRequirement(name string) OrganizationRequirement NewDomainRequirement(name string) DomainRequirement NewUserRequirement(username string, wantGUID bool) UserRequirement NewBuildpackRequirement(buildpack string) BuildpackRequirement NewAPIEndpointRequirement() Requirement NewMinAPIVersionRequirement(commandName string, requiredVersion semver.Version) Requirement NewMaxAPIVersionRequirement(commandName string, maximumVersion semver.Version) Requirement NewUsageRequirement(Usable, string, func() bool) Requirement }
type LoginRequirement ¶
type LoginRequirement struct {
// contains filtered or unexported fields
}
func NewLoginRequirement ¶
func NewLoginRequirement(config coreconfig.Reader) LoginRequirement
func (LoginRequirement) Execute ¶
func (req LoginRequirement) Execute() error
type MaxAPIVersionRequirement ¶
type MaxAPIVersionRequirement struct {
// contains filtered or unexported fields
}
func NewMaxAPIVersionRequirement ¶
func NewMaxAPIVersionRequirement( config coreconfig.Reader, feature string, maximumVersion semver.Version, ) MaxAPIVersionRequirement
func (MaxAPIVersionRequirement) Execute ¶
func (r MaxAPIVersionRequirement) Execute() error
type MinAPIVersionRequirement ¶
type MinAPIVersionRequirement struct {
// contains filtered or unexported fields
}
func NewMinAPIVersionRequirement ¶
func NewMinAPIVersionRequirement( config coreconfig.Reader, feature string, requiredVersion semver.Version, ) MinAPIVersionRequirement
func (MinAPIVersionRequirement) Execute ¶
func (r MinAPIVersionRequirement) Execute() error
type OrganizationRequirement ¶
type OrganizationRequirement interface { Requirement SetOrganizationName(string) GetOrganization() models.Organization }
type Requirement ¶
type Requirement interface {
Execute() error
}
func NewUsageRequirement ¶
func NewUsageRequirement(cmd Usable, errorMessage string, pred func() bool) Requirement
type RequirementFunction ¶
type RequirementFunction func() error
func (RequirementFunction) Execute ¶
func (f RequirementFunction) Execute() error
type Requirements ¶
type Requirements []Requirement
func (Requirements) Execute ¶
func (r Requirements) Execute() error
type RoutingAPIRequirement ¶
type RoutingAPIRequirement struct {
// contains filtered or unexported fields
}
func NewRoutingAPIRequirement ¶
func NewRoutingAPIRequirement(config coreconfig.Reader) RoutingAPIRequirement
func (RoutingAPIRequirement) Execute ¶
func (req RoutingAPIRequirement) Execute() error
type ServiceInstanceRequirement ¶
type ServiceInstanceRequirement interface { Requirement GetServiceInstance() models.ServiceInstance }
type SpaceRequirement ¶
type SpaceRequirement interface { Requirement SetSpaceName(string) GetSpace() models.Space }
type TargetedOrgRequirement ¶
type TargetedOrgRequirement interface { Requirement GetOrganizationFields() models.OrganizationFields }
func NewTargetedOrgRequirement ¶
func NewTargetedOrgRequirement(config coreconfig.Reader) TargetedOrgRequirement
type TargetedSpaceRequirement ¶
type TargetedSpaceRequirement struct {
// contains filtered or unexported fields
}
func NewTargetedSpaceRequirement ¶
func NewTargetedSpaceRequirement(config coreconfig.Reader) TargetedSpaceRequirement
func (TargetedSpaceRequirement) Execute ¶
func (req TargetedSpaceRequirement) Execute() error
type UserRequirement ¶
type UserRequirement interface { Requirement GetUser() models.UserFields }
Source Files ¶
- api_endpoint.go
- application.go
- buildpack.go
- config_refreshing_requirement.go
- dea_application.go
- diego_application.go
- domain.go
- factory.go
- login.go
- max_api_version.go
- min_api_version.go
- organization.go
- requirement.go
- requirements.go
- routing_api.go
- service_instance.go
- space.go
- targeted_organization.go
- targeted_space.go
- usage_requirement.go
- user.go
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.