Documentation
¶
Index ¶
- Constants
- Variables
- func BuildHandler(kubeClient dynamic.Interface, obj *unstructured.Unstructured, ...) (handler, error)
- func IsErrHandlerNotFound(err error) bool
- func NewBindingInfo(name string, value string) (*bindingInfo, error)
- func NewResourceHandler(client dynamic.Interface, bi *bindingInfo, resource unstructured.Unstructured, ...) (*resourceHandler, error)
Constants ¶
View Source
const ( // BindingTypeVolumeMount indicates the binding should happen through a volume mount. BindingTypeVolumeMount bindingType = "volumemount" // BindingTypeEnvVar indicates the binding should happen through environment variables. BindingTypeEnvVar bindingType = "env" )
View Source
const (
// ServiceBindingOperatorAnnotationPrefix is the prefix of Service Binding Operator related annotations.
ServiceBindingOperatorAnnotationPrefix = "servicebindingoperator.redhat.io/"
)
Variables ¶
View Source
var ErrEmptyAnnotationName = errors.New("empty annotation name")
View Source
var ErrInvalidAnnotationName = errors.New("invalid annotation name")
View Source
var ErrInvalidAnnotationPrefix = errors.New("invalid annotation prefix")
Functions ¶
func BuildHandler ¶
func BuildHandler( kubeClient dynamic.Interface, obj *unstructured.Unstructured, annotationKey string, annotationValue string, restMapper meta.RESTMapper, ) (handler, error)
BuildHandler 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.
func IsErrHandlerNotFound ¶
func NewBindingInfo ¶
NewBindingInfo parses the encoded in the annotation name, returning its parts.
func NewResourceHandler ¶
func NewResourceHandler( client dynamic.Interface, bi *bindingInfo, resource unstructured.Unstructured, relatedGroupVersionResource schema.GroupVersionResource, inputPathPrefix *string, restMapper meta.RESTMapper, ) (*resourceHandler, error)
NewSecretHandler constructs a SecretHandler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.