Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerActor ¶
type OrganizationActor ¶
type ServiceActor ¶
type ServiceBrokerSummaryCompositeActor ¶
type ServiceBrokerSummaryCompositeActor struct { ServiceActor ServiceActor BrokerActor BrokerActor OrgActor OrganizationActor VisibilityActor VisibilityActor }
func (*ServiceBrokerSummaryCompositeActor) GetServiceBrokerSummaries ¶
func (c *ServiceBrokerSummaryCompositeActor) GetServiceBrokerSummaries(brokerName string, serviceName string, organizationName string) ([]v2action.ServiceBrokerSummary, v2action.Warnings, error)
GetServiceBrokerSummaries returns summaries for service brokers that match the arguments passed. An error will be returned if any of the options are invalid (i.e. there is no broker, service or organization with the given names). Consider the structure of Service Brokers, Services, and Plans as a tree (a Broker may have many Services, a Service may have many Plans) for the purpose of this explanation. Each of the provided arguments will act as a filtering mechanism, with the expectation that the caller does not want matches for "parent" concepts, if they have no "children" matching a filtered argument.
For example, given a Broker "Foo", only containing a Service "Bar":
`GetServiceBrokerSummaries("Foo", "NotBar", "")` will return a slice of broker summaries that does not include the Broker "Foo".
Similarly, given a broker "Foo", containing a Service "Bar", that has plans available only in Organization "Baz":
`GetServiceBrokerSummaries("Foo", "Bar", "NotBaz") will recurse upwards resulting in a slice of broker summaries that does not include the Broker "Foo" either.