{"modulePath":"github.com/redhat-developer/service-binding-operator","version":"v0.4.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package servicebinding\n\n## Constants\n\n```go\nconst (\n\t// BindingReady indicates that the overall sbr succeeded\n\tBindingReady conditionsv1.ConditionType = \"Ready\"\n\t// CollectionReady indicates readiness for collection and persistance of intermediate manifests\n\tCollectionReady conditionsv1.ConditionType = \"CollectionReady\"\n\t// InjectionReady indicates readiness to change application manifests to use those intermediate manifests\n\t// If status is true, it indicates that the binding succeeded\n\tInjectionReady conditionsv1.ConditionType = \"InjectionReady\"\n\t// EmptyServiceSelectorsReason is used when the ServiceBinding has empty\n\t// services.\n\tEmptyServiceSelectorsReason = \"EmptyServiceSelectors\"\n\t// EmptyApplicationReason is used when the ServiceBinding has empty\n\t// application.\n\tEmptyApplicationReason = \"EmptyApplication\"\n\t// ApplicationNotFoundReason is used when the application is not found.\n\tApplicationNotFoundReason = \"ApplicationNotFound\"\n\t// ServiceNotFoundReason is used when the service is not found.\n\tServiceNotFoundReason = \"ServiceNotFound\"\n)\n```\n\n## Functions\n\n```go\nfunc Add(mgr manager.Manager) error\n```\nAdd 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.\n\n```go\nfunc NewCreateWatchEventHandler(controller *sbrController) handler.EventHandler\n```\nNewCreateWatchEventHandler creates a new instance of handler.EventHandler interface with CSVToWatcherMapper as map-func.\n\n```go\nfunc NewRetriever(\n\tclient dynamic.Interface,\n) *retriever\n```\nNewRetriever instantiate a new retriever instance.\n\n```go\nfunc NewSBRController(\n\tmgr manager.Manager,\n\toptions controller.Options,\n\tclient dynamic.Interface,\n) (*sbrController, error)\n```\nNewSBRController creates a new SBRController instance. It can return error on bootstrapping a new dynamic client.\n\n## Types\n\n```go\ntype ResourceWatcher interface {\n\tAddWatchForGVR(schema.GroupVersionResource) error\n\tAddWatchForGVK(schema.GroupVersionKind) error\n}\n```\nResourceWatcher add watching for GroupVersionKind/GroupVersionResource\n\n","path":"github.com/redhat-developer/service-binding-operator/pkg/controller/servicebinding","name":"servicebinding","synopsis":"","isRedistributable":true}
