find_bindings

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	Name                string
	ServiceInstanceName string
	ServiceInstanceGuid string
	OrgName             string
	SpaceName           string
	Type                string
}

type BindingFinder

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

func NewBindingFinder

func NewBindingFinder(cfClient Client) *BindingFinder

func (*BindingFinder) FindBindings

func (bf *BindingFinder) FindBindings(serviceLabel string) ([]Binding, error)

type Client

type Client interface {
	GetAppByGuid(guid string) (cfclient.App, error)
	GetOrgByGuid(spaceGUID string) (cfclient.Org, error)
	GetSpaceByGuid(spaceGUID string) (cfclient.Space, error)
	ListServicesByQuery(query url.Values) ([]cfclient.Service, error)
	ListServiceBindingsByQuery(query url.Values) ([]cfclient.ServiceBinding, error)
	ListServicePlansByQuery(query url.Values) ([]cfclient.ServicePlan, error)
	ListServiceKeysByQuery(query url.Values) ([]cfclient.ServiceKey, error)
	ListServiceInstancesByQuery(query url.Values) ([]cfclient.ServiceInstance, 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