refs

package
v0.0.0-...-feb569f Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDependenciesForServiceBinding

func GetDependenciesForServiceBinding(
	serviceBinding *data.ServiceBinding,
	getServiceBroker ServiceBrokerGetterFunc,
	getServiceClass ServiceClassGetterFunc,
	getServiceInstance ServiceInstanceGetterFunc,
) (*data.ServiceBroker, *data.ServiceClass, *data.ServiceInstance, error)

GetDependenciesForServiceBinding fetches the entire reference tree for service binding

func GetDependenciesForServiceInstance

func GetDependenciesForServiceInstance(
	inst *data.ServiceInstance,
	getServiceBroker ServiceBrokerGetterFunc,
	getServiceClass ServiceClassGetterFunc,
) (*data.ServiceBroker, *data.ServiceClass, error)

GetDependenciesForServiceInstance fetches the entire reference tree for inst

Types

type ServiceBrokerGetterFunc

type ServiceBrokerGetterFunc func(api.ObjectReference) (*data.ServiceBroker, error)

ServiceBrokerGetterFunc is the function that attempts to retrieve a service broker at the given object ref

func NewFakeServiceBrokerGetterFunc

func NewFakeServiceBrokerGetterFunc(
	serviceBroker *data.ServiceBroker,
	retErr error,
) ServiceBrokerGetterFunc

NewFakeServiceBrokerGetterFunc returns a fake ServiceBrokerGetterFunc. If retErr is non-nil, it always returns (nil, retErr). Otherwise returns (serviceBroker, nil)

func NewK8sServiceBrokerGetterFunc

func NewK8sServiceBrokerGetterFunc(cl *dynamic.Client) ServiceBrokerGetterFunc

NewK8sServiceBrokerGetterFunc returns a ServiceBrokerGetterFunc backed by a real kubernetes client

type ServiceClassGetterFunc

type ServiceClassGetterFunc func(api.ObjectReference) (*data.ServiceClass, error)

ServiceClassGetterFunc is the function that attempts to retrieve a service class at the given object ref

func NewFakeServiceClassGetterFunc

func NewFakeServiceClassGetterFunc(svcClass *data.ServiceClass, retErr error) ServiceClassGetterFunc

NewFakeServiceClassGetterFunc returns a fake ServiceClassGetterFunc. If retErr is non-nil, it always returns (nil, retErr). Otherwise returns (svcClass, nil)

func NewK8sServiceClassGetterFunc

func NewK8sServiceClassGetterFunc(cl *dynamic.Client) ServiceClassGetterFunc

NewK8sServiceClassGetterFunc returns a ServiceClassGetterFunc backed by a real kubernetes client

type ServiceInstanceGetterFunc

type ServiceInstanceGetterFunc func(api.ObjectReference) (*data.ServiceInstance, error)

ServiceInstanceGetterFunc is the function that attempts to fetch a service instance at the given object ref

func NewFakeServiceInstanceGetterFunc

func NewFakeServiceInstanceGetterFunc(inst *data.ServiceInstance, retErr error) ServiceInstanceGetterFunc

NewFakeServiceInstanceGetterFunc returns a fake ServiceInstanceGetterFunc. If retErr is non-nil, it always returns (nil, retErr). Otherwise returns (inst, nil)

func NewK8sServiceInstanceGetterFunc

func NewK8sServiceInstanceGetterFunc(cl *dynamic.Client) ServiceInstanceGetterFunc

NewK8sServiceInstanceGetterFunc returns an ServiceInstanceGetterFunc backed by a real kubernetes client

Jump to

Keyboard shortcuts

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