service

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 11 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InstanceNotFound = errors.New("Service instance not found")
)

Functions

This section is empty.

Types

type CFServiceInstanceLister added in v0.24.0

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

func NewCFServiceInstanceLister added in v0.24.0

func NewCFServiceInstanceLister(cfClient ListerClient, serviceOfferingID string, logger *log.Logger) *CFServiceInstanceLister

func (*CFServiceInstanceLister) Instances added in v0.24.0

func (l *CFServiceInstanceLister) Instances() ([]Instance, error)

type Doer added in v0.19.0

type Doer interface {
	Do(*http.Request) (*http.Response, error)
}

type Instance

type Instance struct {
	GUID         string `json:"service_instance_id"`
	PlanUniqueID string `json:"plan_id"`
}

type InstanceLister added in v0.24.0

type InstanceLister interface {
	Instances() ([]Instance, error)
}

InstanceLister provides a interface to query service instances present in the platform

func BuildInstanceLister added in v0.24.0

func BuildInstanceLister(
	client ListerClient, serviceOfferingID string, siapiConfig config.ServiceInstancesAPI, logger *log.Logger,
) (InstanceLister, error)

type ListerClient added in v0.24.0

type ListerClient interface {
	GetInstancesOfServiceOffering(string, *log.Logger) ([]Instance, error)
}

type ServiceInstanceLister

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

func NewInstanceLister

func NewInstanceLister(client Doer, authHeaderBuilder authorizationheader.AuthHeaderBuilder, baseURL string, configured bool, logger *log.Logger) *ServiceInstanceLister

func (*ServiceInstanceLister) FilteredInstances added in v0.21.0

func (s *ServiceInstanceLister) FilteredInstances(params map[string]string) ([]Instance, error)

func (*ServiceInstanceLister) Instances

func (s *ServiceInstanceLister) Instances() ([]Instance, error)

func (*ServiceInstanceLister) LatestInstanceInfo added in v0.20.0

func (s *ServiceInstanceLister) LatestInstanceInfo(instance Instance) (Instance, 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