requirements

package
v6.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplicationRequirement

func NewApplicationRequirement(name string, ui terminal.UI, aR api.ApplicationRepository) (req *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 configuration.Reader, domainRepo api.DomainRepository) (req *domainApiRequirement)

func NewFactory

func NewFactory(ui terminal.UI, config configuration.Reader, repoLocator api.RepositoryLocator) (factory apiRequirementFactory)

func NewOrganizationRequirement

func NewOrganizationRequirement(name string, ui terminal.UI, sR api.OrganizationRepository) (req *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 api.SpaceRepository) (req *spaceApiRequirement)

func NewUserRequirement

func NewUserRequirement(username string, ui terminal.UI, userRepo api.UserRepository) (req *userApiRequirement)

Types

type ApiEndpointRequirement

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

func NewApiEndpointRequirement

func NewApiEndpointRequirement(ui terminal.UI, config configuration.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 DomainRequirement

type DomainRequirement interface {
	Requirement
	GetDomain() models.DomainFields
}

type Factory

type Factory interface {
	NewApplicationRequirement(name string) ApplicationRequirement
	NewServiceInstanceRequirement(name string) ServiceInstanceRequirement
	NewLoginRequirement() Requirement
	NewValidAccessTokenRequirement() Requirement
	NewSpaceRequirement(name string) SpaceRequirement
	NewTargetedSpaceRequirement() Requirement
	NewTargetedOrgRequirement() TargetedOrgRequirement
	NewOrganizationRequirement(name string) OrganizationRequirement
	NewDomainRequirement(name string) DomainRequirement
	NewUserRequirement(username string) UserRequirement
	NewBuildpackRequirement(buildpack string) BuildpackRequirement
	NewApiEndpointRequirement() Requirement
}

type LoginRequirement

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

func NewLoginRequirement

func NewLoginRequirement(ui terminal.UI, config configuration.Reader) LoginRequirement

func (LoginRequirement) Execute

func (req LoginRequirement) Execute() (success bool)

type OrganizationRequirement

type OrganizationRequirement interface {
	Requirement
	GetOrganization() models.Organization
}

type Requirement

type Requirement interface {
	Execute() (success bool)
}

type ServiceInstanceRequirement

type ServiceInstanceRequirement interface {
	Requirement
	GetServiceInstance() models.ServiceInstance
}

type SpaceRequirement

type SpaceRequirement interface {
	Requirement
	GetSpace() models.Space
}

type TargetedOrgRequirement

type TargetedOrgRequirement interface {
	Requirement
	GetOrganizationFields() models.OrganizationFields
}

func NewTargetedOrgRequirement

func NewTargetedOrgRequirement(ui terminal.UI, config configuration.Reader) TargetedOrgRequirement

type TargetedSpaceRequirement

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

func NewTargetedSpaceRequirement

func NewTargetedSpaceRequirement(ui terminal.UI, config configuration.Reader) TargetedSpaceRequirement

func (TargetedSpaceRequirement) Execute

func (req TargetedSpaceRequirement) Execute() (success bool)

type UserRequirement

type UserRequirement interface {
	Requirement
	GetUser() models.UserFields
}

type ValidAccessTokenRequirement

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

func NewValidAccessTokenRequirement

func NewValidAccessTokenRequirement(ui terminal.UI, appRepo api.ApplicationRepository) ValidAccessTokenRequirement

func (ValidAccessTokenRequirement) Execute

func (req ValidAccessTokenRequirement) Execute() (success bool)

Jump to

Keyboard shortcuts

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