Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RunLoop ¶
func RunLoop( ctx context.Context, namespace string, binder framework.Binder, secretWriter SecretWriterFunc, fn WatchServiceBindingFunc, updateFn UpdateServiceBindingFunc, getSvcBrokerFn refs.ServiceBrokerGetterFunc, getSvcClassFn refs.ServiceClassGetterFunc, getSvcInstanceFn refs.ServiceInstanceGetterFunc, ) error
RunLoop starts a blocking control loop that watches and takes action on serviceBroker resources.
TODO: remove the namespace param. See https://github.com/deis/steward-framework/issues/30
Types ¶
type SecretWriterFunc ¶
SecretWriterFunc is the function that writes a secret to storage
func NewK8sSecretWriterFunc ¶
func NewK8sSecretWriterFunc(secretsIface v1.SecretInterface) SecretWriterFunc
NewK8sSecretWriterFunc returns a SecretWriterFunc implemented with a Kubernetes client
type UpdateServiceBindingFunc ¶
type UpdateServiceBindingFunc func(*data.ServiceBinding) (*data.ServiceBinding, error)
UpdateServiceBindingFunc is the function that can update a service binding
func NewK8sUpdateServiceBindingFunc ¶
func NewK8sUpdateServiceBindingFunc(cl *dynamic.Client) UpdateServiceBindingFunc
NewK8sUpdateServiceBindingFunc returns an UpdateServiceBindingFunc backed by a Kubernetes client
type WatchServiceBindingFunc ¶
WatchServiceBindingFunc is the function that returns a watch interface for service binding resources
func NewK8sWatchServiceBindingFunc ¶
func NewK8sWatchServiceBindingFunc(cl *dynamic.Client) WatchServiceBindingFunc
NewK8sWatchServiceBindingFunc returns a WatchServiceBindingFunc backed by a Kubernetes client