Documentation
¶
Index ¶
- func ClientFnBuilder(ctx context.Context, client client.Client) func(resource.Managed) (*cfv3.Client, error)
- func ErrorIsNotFound(err error) bool
- func ExtractSecret(ctx context.Context, kube k8s.Client, sr *xpv1.SecretReference, key string) ([]byte, error)
- func GetCredentialConfig(ctx context.Context, client client.Client, mg resource.Managed) (*config.Config, error)
- func IgnoreNotFoundErr(err error) error
- func IsValidGUID(guid string) bool
- type CfCredentials
- type ClientFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientFnBuilder ¶
func ErrorIsNotFound ¶
ErrorIsNotFound return true if error is not nil and is a not found issue.
func ExtractSecret ¶
func ExtractSecret(ctx context.Context, kube k8s.Client, sr *xpv1.SecretReference, key string) ([]byte, error)
ExtractSecret extracts parameters/credentials from a secret reference. If a key is specified, returns the raw value for that key. If no key is specified, returns all secret data as nested JSON/YAML.
func GetCredentialConfig ¶
func GetCredentialConfig(ctx context.Context, client client.Client, mg resource.Managed) (*config.Config, error)
GetCredentialConfig returns a config.Config for the given managed resource
func IgnoreNotFoundErr ¶
IgnoreNotFoundErr returns nil if the error a not found issue.
func IsValidGUID ¶
IsValidGUID checks if the given string is a valid UUID.
Types ¶
Click to show internal directories.
Click to hide internal directories.