Documentation ¶
Index ¶
- Variables
- type Builder
- func (builder Builder) AttachOrgToPlans(plans []models.ServicePlanFields, orgName string) ([]models.ServicePlanFields, error)
- func (builder Builder) AttachOrgsToPlans(plans []models.ServicePlanFields) ([]models.ServicePlanFields, error)
- func (builder Builder) GetPlansForService(serviceGuid string) ([]models.ServicePlanFields, error)
- func (builder Builder) GetPlansForServiceForOrg(serviceGuid string, orgName string) ([]models.ServicePlanFields, error)
- func (builder Builder) GetPlansForServiceWithOrgs(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) AttachOrgToPlans ¶
func (builder Builder) AttachOrgToPlans(plans []models.ServicePlanFields, orgName string) ([]models.ServicePlanFields, error)
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) GetPlansForServiceForOrg ¶
func (Builder) GetPlansForServiceWithOrgs ¶
func (builder Builder) GetPlansForServiceWithOrgs(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) AttachOrgToPlans([]models.ServicePlanFields, string) ([]models.ServicePlanFields, error) GetPlansForServiceForOrg(string, string) ([]models.ServicePlanFields, error) GetPlansForServiceWithOrgs(string) ([]models.ServicePlanFields, error) GetPlansForService(string) ([]models.ServicePlanFields, error) GetPlansVisibleToOrg(string) ([]models.ServicePlanFields, error) }
Click to show internal directories.
Click to hide internal directories.