Documentation ¶
Index ¶
- Variables
- type Builder
- func (builder Builder) AttachOrgsToPlans(plans []models.ServicePlanFields) ([]models.ServicePlanFields, error)
- func (builder Builder) GetPlansForService(serviceGuid string) ([]models.ServicePlanFields, error)
- func (builder Builder) GetPlansVisibleToOrg(orgName string) ([]models.ServicePlanFields, error)
- type PlanBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OrgToPlansVisibilityMap *map[string][]string PlanToOrgsVisibilityMap *map[string][]string )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(plan api.ServicePlanRepository, vis api.ServicePlanVisibilityRepository, org organizations.OrganizationRepository) Builder
func (Builder) AttachOrgsToPlans ¶
func (builder Builder) AttachOrgsToPlans(plans []models.ServicePlanFields) ([]models.ServicePlanFields, error)
func (Builder) GetPlansForService ¶
func (builder Builder) GetPlansForService(serviceGuid string) ([]models.ServicePlanFields, error)
func (Builder) GetPlansVisibleToOrg ¶
func (builder Builder) GetPlansVisibleToOrg(orgName string) ([]models.ServicePlanFields, error)
type PlanBuilder ¶
type PlanBuilder interface { AttachOrgsToPlans([]models.ServicePlanFields) ([]models.ServicePlanFields, error) GetPlansForService(string) ([]models.ServicePlanFields, error) GetPlansVisibleToOrg(string) ([]models.ServicePlanFields, error) }
Click to show internal directories.
Click to hide internal directories.