{"modulePath":"github.com/redhat-developer/service-binding-operator","version":"v0.2.0-387","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package annotations\n\n## Constants\n\n```go\nconst (\n\t// BindingTypeVolumeMount indicates the binding should happen through a volume mount.\n\tBindingTypeVolumeMount bindingType = \"volumemount\"\n\t// BindingTypeEnvVar indicates the binding should happen through environment variables.\n\tBindingTypeEnvVar bindingType = \"env\"\n)\n```\n\n```go\nconst (\n\t// ServiceBindingOperatorAnnotationPrefix is the prefix of Service Binding Operator related annotations.\n\tServiceBindingOperatorAnnotationPrefix = \"servicebindingoperator.redhat.io/\"\n)\n```\n\n## Variables\n\n```go\nvar ErrEmptyAnnotationName = errors.New(\"empty annotation name\")\n```\n\n```go\nvar ErrInvalidAnnotationName = errors.New(\"invalid annotation name\")\n```\n\n```go\nvar ErrInvalidAnnotationPrefix = errors.New(\"invalid annotation prefix\")\n```\n\n## Functions\n\n```go\nfunc BuildHandler(\n\tkubeClient dynamic.Interface,\n\tobj *unstructured.Unstructured,\n\tannotationKey string,\n\tannotationValue string,\n\trestMapper meta.RESTMapper,\n) (handler, error)\n```\nBuildHandler attempts to create an annotation handler for the given annotationKey and annotationValue. kubeClient is required by some annotation handlers, and an error is returned in the case it is required by an annotation handler but is not defined.\n\n```go\nfunc IsErrHandlerNotFound(err error) bool\n```\n\n```go\nfunc NewBindingInfo(name string, value string) (*bindingInfo, error)\n```\nNewBindingInfo parses the encoded in the annotation name, returning its parts.\n\n```go\nfunc NewResourceHandler(\n\tclient dynamic.Interface,\n\tbi *bindingInfo,\n\tresource unstructured.Unstructured,\n\trelatedGroupVersionResource schema.GroupVersionResource,\n\tinputPathPrefix *string,\n\trestMapper meta.RESTMapper,\n) (*resourceHandler, error)\n```\nNewSecretHandler constructs a SecretHandler.\n\n","path":"github.com/redhat-developer/service-binding-operator/pkg/controller/servicebinding/annotations","name":"annotations","synopsis":"","isRedistributable":true}
