helpers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(p bool) *bool

BoolPtr converts the supplied bool to a pointer to that bool

func BoolValue

func BoolValue(v *bool) bool

BoolValue converts the supplied bool pointer to an bool, returning false if the pointer is nil.

func GetSecret

func GetSecret(ctx context.Context, kube client.Client, ref *xpv1.SecretKeySelector) (string, error)

func IntPtr

func IntPtr(p int) *int

IntPtr converts the supplied int to a pointer to that int.

func IntValue

func IntValue(v *int) int

IntValue converts the supplied int pointer to an int, returning zero if the pointer is nil.

func LateInitializeBool

func LateInitializeBool(b *bool, from bool) *bool

LateInitializeBool implements late initialization for bool type.

func LateInitializeInt

func LateInitializeInt(i *int, from int) *int

LateInitializeInt implements late initialization for int type.

func LateInitializeString

func LateInitializeString(s *string, from string) *string

LateInitializeString implements late initialization for string type.

func StringPtr

func StringPtr(p string) *string

StringPtr converts the supplied string to a pointer to that string.

func StringValue

func StringValue(v *string) string

StringValue converts the supplied string pointer to a string, returning the empty string if the pointer is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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