helper

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToString

func BoolToString(b bool) string

func GetKeyFromSecret

func GetKeyFromSecret(sec *corev1.Secret, key string) (string, error)

func NewRandomPassword

func NewRandomPassword(passwordStrength int32) (string, error)

func ObjExists

func ObjExists(ctx context.Context, client client.Client, name, namespace string, obj runtime.Object) (bool, error)

func PullFinalizer

func PullFinalizer(o metav1.Object, finalizer string)

func PushFinalizer

func PushFinalizer(o metav1.Object, finalizer string)

Types

type InterfaceHash

type InterfaceHash []byte

func GenerateHashFromInterfaces

func GenerateHashFromInterfaces(interfaces []interface{}) (InterfaceHash, error)

func (*InterfaceHash) Short

func (hash *InterfaceHash) Short() string

func (*InterfaceHash) String

func (hash *InterfaceHash) String() string

type JSONPatch

type JSONPatch struct {
	// contains filtered or unexported fields
}

func (*JSONPatch) AddOp

func (p *JSONPatch) AddOp(op, path string, value interface{})

func (*JSONPatch) Data

func (p *JSONPatch) Data(obj runtime.Object) ([]byte, error)

func (*JSONPatch) Type

func (p *JSONPatch) Type() types.PatchType

Jump to

Keyboard shortcuts

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