util

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry added in v1.2.0

func Retry(ctx context.Context, maxRetries int, intervalSec int, retryFunc func(ctx context.Context) error) error

Retry will retry the given function until it returns nil or the maxRetries is reached. If the maxRetries is reached, the last error will be returned. 0 retries means the function will be called once without retrying.

func UpdateSecret

func UpdateSecret(ctx context.Context, clnt *passbolt.Client, scheme *runtime.Scheme, pbscrt *passboltv1alpha3.PassboltSecret, secret *corev1.Secret) func() error

UpdateSecret updates the kubernetes secret with the data from passbolt The thrown error is of type SyncError

Types

This section is empty.

Jump to

Keyboard shortcuts

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