Documentation
¶
Index ¶
- Variables
- func FindVaultAuthByUID(ctx context.Context, c client.Client, namespace string, uid types.UID, ...) (*secretsv1alpha1.VaultAuth, error)
- func FindVaultAuthForStorageEncryption(ctx context.Context, c client.Client) (*secretsv1alpha1.VaultAuth, error)
- func FindVaultConnectionByUID(ctx context.Context, c client.Client, namespace string, uid types.UID, ...) (*secretsv1alpha1.VaultConnection, error)
- func GetConnectionNamespacedName(a *secretsv1alpha1.VaultAuth) (types.NamespacedName, error)
- func GetVaultAuth(ctx context.Context, c client.Client, key types.NamespacedName) (*secretsv1alpha1.VaultAuth, error)
- func GetVaultAuthAndTarget(ctx context.Context, c client.Client, obj client.Object) (*secretsv1alpha1.VaultAuth, types.NamespacedName, error)
- func GetVaultAuthWithRetry(ctx context.Context, c client.Client, key types.NamespacedName, ...) (*secretsv1alpha1.VaultAuth, error)
- func GetVaultConnection(ctx context.Context, c client.Client, key types.NamespacedName) (*secretsv1alpha1.VaultConnection, error)
- func GetVaultConnectionWithRetry(ctx context.Context, c client.Client, key types.NamespacedName, ...) (*secretsv1alpha1.VaultConnection, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var OperatorNamespace string
operatorNamespace of the current operator instance, set in init()
Functions ¶
func FindVaultAuthByUID ¶
func FindVaultAuthForStorageEncryption ¶
func FindVaultAuthForStorageEncryption(ctx context.Context, c client.Client) (*secretsv1alpha1.VaultAuth, error)
FindVaultAuthForStorageEncryption returns VaultAuth resource labeled with `cacheEncryption=true`, and is found in the Operator's namespace. If none or more than one resource is found, an error will be returned. The resulting resource must have a valid StorageEncryption configured.
func GetConnectionNamespacedName ¶
func GetConnectionNamespacedName(a *secretsv1alpha1.VaultAuth) (types.NamespacedName, error)
GetConnectionNamespacedName returns the NamespacedName for the VaultAuth's configured vaultConnectionRef. If the vaultConnectionRef is empty then defaults Namespace and Name will be returned.
func GetVaultAuth ¶
func GetVaultAuth(ctx context.Context, c client.Client, key types.NamespacedName) (*secretsv1alpha1.VaultAuth, error)
func GetVaultAuthAndTarget ¶
func GetVaultAuthWithRetry ¶
func GetVaultConnection ¶
func GetVaultConnection(ctx context.Context, c client.Client, key types.NamespacedName) (*secretsv1alpha1.VaultConnection, error)
func GetVaultConnectionWithRetry ¶
func GetVaultConnectionWithRetry(ctx context.Context, c client.Client, key types.NamespacedName, delay time.Duration, max uint64) (*secretsv1alpha1.VaultConnection, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.