clients

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFnBuilder

func ClientFnBuilder(ctx context.Context, client client.Client) func(resource.Managed) (*cfv3.Client, error)

func ErrorIsNotFound

func ErrorIsNotFound(err error) bool

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

func IgnoreNotFoundErr(err error) error

IgnoreNotFoundErr returns nil if the error a not found issue.

func IsValidGUID

func IsValidGUID(guid string) bool

IsValidGUID checks if the given string is a valid UUID.

Types

type CfCredentials

type CfCredentials struct {
	Email    string `json:"email"`
	Username string `json:"username"`
	Password string `json:"password"`
	Passcode string `json:"passcode"`
}

CfCredentials used to authenticate with the provider FIXME: not consistent with other providers.

type ClientFn

type ClientFn func(resource.Managed) (*cfv3.Client, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL