encryption

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StoreTypeClient = StoreType("client")
	StoreTypeServer = StoreType("server")
)
View Source
const (
	StoreNameKeystore   = StoreName("keystore")
	StoreNameTruststore = StoreName("truststore")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretKeySelector added in v1.4.0

type SecretKeySelector struct {
	// The name of the Secret resource being referred to.
	corev1.LocalObjectReference `json:",inline"`

	// The key of the entry in the Secret resource's `data` field to be used.
	// +kubebuilder:validation:Optional
	Key string `json:"key,omitempty"`
}

A reference to a specific 'key' within a Secret resource.

func (*SecretKeySelector) GetSpecificKeyOrDefault added in v1.4.0

func (s *SecretKeySelector) GetSpecificKeyOrDefault(defaultVal string) (key string)

type StoreName

type StoreName string

type StoreType

type StoreType string

type Stores

type Stores struct {
	// ref to the secret that contains the keystore and optionally its password (which can also be specified through
	//the keystorePasswordSecretRef field)
	// if keys are not specified, "keystore" entry and a "keystore-password" entry will be used
	// +kubebuilder:validation:Required
	KeystoreSecretRef *SecretKeySelector `json:"keystoreSecretRef"`

	// ref to the secret that contains the truststore and optionally its password (which can also be specified through
	//the truststorePasswordSecretRef field)
	// if keys are not specified explicitly, "keystore" entry and a "keystore-password" entry will be used
	// +kubebuilder:validation:Required
	TruststoreSecretRef *SecretKeySelector `json:"truststoreSecretRef"`

	// ref to the secret that contains the keystore password if password stored in different secret than keystoreSecretRef
	// if key isn't specified explicitly, "keystore-password" entry will be used
	// +kubebuilder:validation:Optional
	KeystorePasswordRef *SecretKeySelector `json:"keystorePasswordSecretRef"`

	// ref to the secret that contains the truststore password if password stored in different secret than keystoreSecretRef
	// if key isn't specified  explicitly, "truststore-password" entry will be used
	// +kubebuilder:validation:Optional
	TruststorePasswordSecretRef *SecretKeySelector `json:"truststorePasswordSecretRef"`
}

+kubebuilder:object:generate=true

func (*Stores) DeepCopy

func (in *Stores) DeepCopy() *Stores

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stores.

func (*Stores) DeepCopyInto

func (in *Stores) DeepCopyInto(out *Stores)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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