Documentation ¶
Index ¶
- func NewApplicationRequirement(name string, ui terminal.UI, aR applications.ApplicationRepository) *applicationApiRequirement
- func NewBuildpackRequirement(name string, ui terminal.UI, bR api.BuildpackRepository) (req *buildpackApiRequirement)
- func NewDomainRequirement(name string, ui terminal.UI, config core_config.Reader, ...) (req *domainApiRequirement)
- func NewFactory(ui terminal.UI, config core_config.Reader, repoLocator api.RepositoryLocator) (factory apiRequirementFactory)
- func NewOrganizationRequirement(name string, ui terminal.UI, sR organizations.OrganizationRepository) *organizationApiRequirement
- func NewServiceInstanceRequirement(name string, ui terminal.UI, sR api.ServiceRepository) (req *serviceInstanceApiRequirement)
- func NewSpaceRequirement(name string, ui terminal.UI, sR spaces.SpaceRepository) *spaceApiRequirement
- func NewUserRequirement(username string, ui terminal.UI, userRepo api.UserRepository, wantGuid bool) *userApiRequirement
- type ApiEndpointRequirement
- type ApplicationRequirement
- type BuildpackRequirement
- type DEAApplicationRequirement
- type DomainRequirement
- type Factory
- type LoginRequirement
- type MinAPIVersionRequirement
- type OrganizationRequirement
- type Requirement
- type RoutingAPIRequirement
- type ServiceInstanceRequirement
- type SpaceRequirement
- type TargetedOrgRequirement
- type TargetedSpaceRequirement
- type UserRequirement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplicationRequirement ¶
func NewApplicationRequirement(name string, ui terminal.UI, aR applications.ApplicationRepository) *applicationApiRequirement
func NewBuildpackRequirement ¶
func NewBuildpackRequirement(name string, ui terminal.UI, bR api.BuildpackRepository) (req *buildpackApiRequirement)
func NewDomainRequirement ¶
func NewDomainRequirement(name string, ui terminal.UI, config core_config.Reader, domainRepo api.DomainRepository) (req *domainApiRequirement)
func NewFactory ¶
func NewFactory(ui terminal.UI, config core_config.Reader, repoLocator api.RepositoryLocator) (factory apiRequirementFactory)
func NewOrganizationRequirement ¶
func NewOrganizationRequirement(name string, ui terminal.UI, sR organizations.OrganizationRepository) *organizationApiRequirement
func NewServiceInstanceRequirement ¶
func NewServiceInstanceRequirement(name string, ui terminal.UI, sR api.ServiceRepository) (req *serviceInstanceApiRequirement)
func NewSpaceRequirement ¶
func NewSpaceRequirement(name string, ui terminal.UI, sR spaces.SpaceRepository) *spaceApiRequirement
func NewUserRequirement ¶
Types ¶
type ApiEndpointRequirement ¶
type ApiEndpointRequirement struct {
// contains filtered or unexported fields
}
func NewApiEndpointRequirement ¶
func NewApiEndpointRequirement(ui terminal.UI, config core_config.Reader) ApiEndpointRequirement
func (ApiEndpointRequirement) Execute ¶
func (req ApiEndpointRequirement) Execute() (success bool)
type ApplicationRequirement ¶
type ApplicationRequirement interface { Requirement GetApplication() models.Application }
type BuildpackRequirement ¶
type BuildpackRequirement interface { Requirement GetBuildpack() models.Buildpack }
type DEAApplicationRequirement ¶
type DEAApplicationRequirement interface { Requirement GetApplication() models.Application }
func NewDEAApplicationRequirement ¶
func NewDEAApplicationRequirement(name string, ui terminal.UI, applicationRepo applications.ApplicationRepository) DEAApplicationRequirement
type DomainRequirement ¶
type DomainRequirement interface { Requirement GetDomain() models.DomainFields }
type Factory ¶
type Factory interface { NewApplicationRequirement(name string) ApplicationRequirement NewDEAApplicationRequirement(name string) DEAApplicationRequirement 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 }
type LoginRequirement ¶
type LoginRequirement struct {
// contains filtered or unexported fields
}
func NewLoginRequirement ¶
func NewLoginRequirement(ui terminal.UI, config core_config.Reader) LoginRequirement
func (LoginRequirement) Execute ¶
func (req LoginRequirement) Execute() (success bool)
type MinAPIVersionRequirement ¶
type MinAPIVersionRequirement struct {
// contains filtered or unexported fields
}
func NewMinAPIVersionRequirement ¶
func NewMinAPIVersionRequirement( ui terminal.UI, config core_config.Reader, feature string, requiredVersion semver.Version, ) MinAPIVersionRequirement
func (MinAPIVersionRequirement) Execute ¶
func (r MinAPIVersionRequirement) Execute() bool
type OrganizationRequirement ¶
type OrganizationRequirement interface { Requirement SetOrganizationName(string) GetOrganization() models.Organization }
type Requirement ¶
type Requirement interface {
Execute() (success bool)
}
type RoutingAPIRequirement ¶
type RoutingAPIRequirement struct {
// contains filtered or unexported fields
}
func NewRoutingAPIRequirement ¶
func NewRoutingAPIRequirement(ui terminal.UI, config core_config.Reader) RoutingAPIRequirement
func (RoutingAPIRequirement) Execute ¶
func (req RoutingAPIRequirement) Execute() bool
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(ui terminal.UI, config core_config.Reader) TargetedOrgRequirement
type TargetedSpaceRequirement ¶
type TargetedSpaceRequirement struct {
// contains filtered or unexported fields
}
func NewTargetedSpaceRequirement ¶
func NewTargetedSpaceRequirement(ui terminal.UI, config core_config.Reader) TargetedSpaceRequirement
func (TargetedSpaceRequirement) Execute ¶
func (req TargetedSpaceRequirement) Execute() (success bool)
type UserRequirement ¶
type UserRequirement interface { Requirement GetUser() models.UserFields }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.