secret

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(opts ...Option) *corev1.Secret

Build runs each of the functions passed in to generate the object.

Types

type Builder added in v1.0.5

type Builder interface {
	Build(opts ...Option) *corev1.Secret

	Options(opts ...Option) Builder

	GenericOptions(opts ...generic.Option) Builder
}

func BasicBuilder added in v1.0.5

func BasicBuilder() Builder

func FullBuilder added in v1.0.5

func FullBuilder(namespace, name string, typer runtime.ObjectTyper) Builder

type Option

type Option func(*corev1.Secret)

Option defines a function signature for any function that wants to be passed into Build

func Generic

func Generic(opt generic.Option) Option

Generic allows common functions applicable to all objects to be used as Options to Build

func WithDataKeyValue

func WithDataKeyValue(key string, value []byte) Option

WithDataKeyValue adds the key and value to the secret's data section.

func WithName added in v1.0.1

func WithName(name string) Option

WithName sets the object.Name field when building an object with Build.

func WithNamespace added in v1.0.1

func WithNamespace(namespace string) Option

WithNamespace sets the object.Namespace field when building an object with Build.

func WithType

func WithType(t corev1.SecretType) Option

WithType sets the secret's type value.

Jump to

Keyboard shortcuts

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