Documentation
¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func NewCreateWatchEventHandler(controller *sbrController) handler.EventHandler
- func NewRetriever(client dynamic.Interface) *retriever
- func NewSBRController(mgr manager.Manager, options controller.Options, client dynamic.Interface) (*sbrController, error)
- type ResourceWatcher
Constants ¶
View Source
const ( // BindingReady indicates that the overall sbr succeeded BindingReady conditionsv1.ConditionType = "Ready" // CollectionReady indicates readiness for collection and persistance of intermediate manifests CollectionReady conditionsv1.ConditionType = "CollectionReady" // InjectionReady indicates readiness to change application manifests to use those intermediate manifests // If status is true, it indicates that the binding succeeded InjectionReady conditionsv1.ConditionType = "InjectionReady" // EmptyServiceSelectorsReason is used when the ServiceBinding has empty // services. EmptyServiceSelectorsReason = "EmptyServiceSelectors" // EmptyApplicationReason is used when the ServiceBinding has empty // application. EmptyApplicationReason = "EmptyApplication" // ApplicationNotFoundReason is used when the application is not found. ApplicationNotFoundReason = "ApplicationNotFound" // ServiceNotFoundReason is used when the service is not found. ServiceNotFoundReason = "ServiceNotFound" )
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new ServiceBinding Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func NewCreateWatchEventHandler ¶
func NewCreateWatchEventHandler(controller *sbrController) handler.EventHandler
NewCreateWatchEventHandler creates a new instance of handler.EventHandler interface with CSVToWatcherMapper as map-func.
func NewRetriever ¶
NewRetriever instantiate a new retriever instance.
func NewSBRController ¶
func NewSBRController( mgr manager.Manager, options controller.Options, client dynamic.Interface, ) (*sbrController, error)
NewSBRController creates a new SBRController instance. It can return error on bootstrapping a new dynamic client.
Types ¶
type ResourceWatcher ¶
type ResourceWatcher interface {
AddWatchForGVR(schema.GroupVersionResource) error
AddWatchForGVK(schema.GroupVersionKind) error
}
ResourceWatcher add watching for GroupVersionKind/GroupVersionResource
Source Files
¶
Click to show internal directories.
Click to hide internal directories.