utils

package
v0.0.0-...-035c13a Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const INSTANCE_ANNOTATION = "postgres.db.movetokube.com/instance"

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(name string) string

func GetRandomString

func GetRandomString(length int) string

func GetSecureRandomString

func GetSecureRandomString(length int) (string, error)

If the secure random number generator malfunctions it will return an error

func ListContains

func ListContains(l []string, i string) bool

func MatchesInstanceAnnotation

func MatchesInstanceAnnotation(annotationMap map[string]string, configuredInstance string) bool

func MustGetEnv

func MustGetEnv(name string) string

func Patch

func Patch(cl client.Client, ctx context.Context, before runtime.Object, after runtime.Object) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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