generators

package
v0.0.114 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecretEntry

func GetSecretEntry(kubeClient kubernetes.Interface, namespace, secretName, entry string) (string, error)

GetSecretEntry returns a secret entry for a namespace, secret and secret entry

func Hmac

func Hmac(_ *Arguments) (string, error)

Hmac generates a hmac value for webhooks

func Password

func Password(args *Arguments) (string, error)

Password generates a password value

Types

type Arguments

type Arguments struct {
	Object   *v1alpha1.Object
	Property *v1alpha1.Property
}

Arguments the generator arguments

type Generator

type Generator func(*Arguments) (string, error)

Generator a generator function

func SecretEntry

func SecretEntry(kubeClient kubernetes.Interface, namespace, secretName, entry string) Generator

SecretEntry creates a generator for a secret

Jump to

Keyboard shortcuts

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