serviceinstance

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCancelled           = errors.New("stopped")
	ErrNotAServiceInstance = errors.New("not a service instance")
	ErrWatchClosed         = errors.New("watch closed")
)

Functions

func RunLoop

func RunLoop(
	ctx context.Context,
	watchFn WatchServiceInstanceFunc,
	updateFn UpdateServiceInstanceFunc,
	getServiceClassFn refs.ServiceClassGetterFunc,
	getServiceBrokerFn refs.ServiceBrokerGetterFunc,
	lifecycler framework.Lifecycler,
) error

RunLoop starts a blocking control loop that watches and takes action on service instance resources

Types

type UpdateServiceInstanceFunc

type UpdateServiceInstanceFunc func(*data.ServiceInstance) (*data.ServiceInstance, error)

UpdateServiceInstanceFunc is the function that can update a service instance

func NewK8sUpdateServiceInstanceFunc

func NewK8sUpdateServiceInstanceFunc(cl *dynamic.Client) UpdateServiceInstanceFunc

NewK8sUpdateServiceInstanceFunc returns an UpdateServiceInstanceFunc backed by a Kubernetes client

type WatchServiceInstanceFunc

type WatchServiceInstanceFunc func(namespace string) (watch.Interface, error)

WatchServiceInstanceFunc is the function that returns a watch interface for service instance resources

func NewK8sWatchServiceInstanceFunc

func NewK8sWatchServiceInstanceFunc(cl *dynamic.Client) WatchServiceInstanceFunc

NewK8sWatchServiceInstanceFunc returns a WatchServiceInstanceFunc backed by a Kubernetes client

Jump to

Keyboard shortcuts

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