secret

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Optional fields, provided in constructor as list of options
	SetLabels = builder.SetLabels[*corev1.Secret]
)

Functions

func Build added in v1.3.0

func Build(owner metav1.Object, name string, data map[string][]byte, options ...builder.Option[*corev1.Secret]) (*corev1.Secret, error)

func BuildForNamespace added in v1.3.0

func BuildForNamespace(name, namespace string, data map[string][]byte, options ...builder.Option[*corev1.Secret]) (*corev1.Secret, error)

func ExtractToken

func ExtractToken(secret *corev1.Secret, key string) (string, error)

func GetDataFromSecretName

func GetDataFromSecretName(ctx context.Context, apiReader client.Reader, namespacedName types.NamespacedName, dataKey string, log logd.Logger) (string, error)

func Query

func Query(kubeClient client.Client, kubeReader client.Reader, log logd.Logger) query.Generic[*corev1.Secret, *corev1.SecretList]

func SetType added in v1.3.0

func SetType(secretType corev1.SecretType) builder.Option[*corev1.Secret]

Types

type Tokens

type Tokens struct {
	ApiToken  string
	PaasToken string
}

Jump to

Keyboard shortcuts

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