composite

package
v0.0.0-...-e4dbece Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerActor

type BrokerActor interface {
	GetServiceBrokerByName(brokerName string) (v2action.ServiceBroker, v2action.Warnings, error)
	GetServiceBrokers() ([]v2action.ServiceBroker, v2action.Warnings, error)
}

type OrganizationActor

type OrganizationActor interface {
	GetOrganization(organizationGUID string) (v2action.Organization, v2action.Warnings, error)
	OrganizationExistsWithName(organizationName string) (bool, v2action.Warnings, error)
}

type ServiceActor

type ServiceActor interface {
	GetServicesWithPlans(filters ...v2action.Filter) (v2action.ServicesWithPlans, v2action.Warnings, error)
	ServiceExistsWithName(serviceName string) (bool, v2action.Warnings, error)
}

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.

type VisibilityActor

type VisibilityActor interface {
	GetServicePlanVisibilities(planGUID string) ([]v2action.ServicePlanVisibility, v2action.Warnings, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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