utils

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(list []string, s string) bool

Contains will check if search string is in slice

func MustGetEnv

func MustGetEnv(name string) string

MustGetEnv would get Env variable of die

func MustGetEnvInt

func MustGetEnvInt(name string) int

MustGetEnvInt would get Env variable, make int from it of die

func PatchVaultCertificate added in v0.3.7

func PatchVaultCertificate(ctx context.Context, cl client.Client, before *xov1alpha1.VaultCertificate, after *xov1alpha1.VaultCertificate) error

func PatchVaultSecret

func PatchVaultSecret(ctx context.Context, cl client.Client, before *xov1alpha1.VaultSecret, after *xov1alpha1.VaultSecret) error

Patch would patch runtime Object

Types

This section is empty.

Jump to

Keyboard shortcuts

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