common

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicValue

type DynamicValue struct {
	apiextensionsV1.JSON `json:",inline"`
}

DynamicValue is a dynamic value struct for the component.metadata pair value. +kubebuilder:validation:Type="" +kubebuilder:validation:Schemaless

func (*DynamicValue) DeepCopy

func (in *DynamicValue) DeepCopy() *DynamicValue

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

func (*DynamicValue) DeepCopyInto

func (in *DynamicValue) DeepCopyInto(out *DynamicValue)

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

func (*DynamicValue) String

func (d *DynamicValue) String() string

String returns the string representation of the raw value. If the value is a string, it will be unquoted as the string is guaranteed to be a JSON serialized string.

type NameValuePair

type NameValuePair struct {
	// Name of the property.
	Name string `json:"name"`
	// Value of the property, in plaintext.
	//+optional
	Value DynamicValue `json:"value,omitempty"`
	// SecretKeyRef is the reference of a value in a secret store component.
	//+optional
	SecretKeyRef SecretKeyRef `json:"secretKeyRef,omitempty"`
	// EnvRef is the name of an environmental variable to read the value from.
	//+optional
	EnvRef string `json:"envRef,omitempty"`
}

NameValuePair is a name/value pair.

func (*NameValuePair) DeepCopy

func (in *NameValuePair) DeepCopy() *NameValuePair

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

func (*NameValuePair) DeepCopyInto

func (in *NameValuePair) DeepCopyInto(out *NameValuePair)

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

func (*NameValuePair) HasValue

func (nvp *NameValuePair) HasValue() bool

HasValue returns true if the NameValuePair has a non-empty value.

func (*NameValuePair) SetValue

func (nvp *NameValuePair) SetValue(val []byte)

SetValue sets the value.

type Renegotiation

type Renegotiation string

Renegotiation sets the underlying tls negotiation strategy for an http channel.

const (
	NegotiateNever          Renegotiation = "Never"
	NegotiateOnceAsClient   Renegotiation = "OnceAsClient"
	NegotiateFreelyAsClient Renegotiation = "FreelyAsClient"
)

type Scoped

type Scoped struct {
	//+optional
	Scopes []string `json:"scopes,omitempty"`
}

Scoped is a base struct for components and other resources that can be scoped to apps.

func (*Scoped) DeepCopy

func (in *Scoped) DeepCopy() *Scoped

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

func (*Scoped) DeepCopyInto

func (in *Scoped) DeepCopyInto(out *Scoped)

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

func (*Scoped) IsAppScoped

func (s *Scoped) IsAppScoped(appID string) bool

IsAppScoped returns true if the appID is allowed in the scopes for the resource.

type SecretKeyRef

type SecretKeyRef struct {
	// Secret name.
	Name string `json:"name"`
	// Field in the secret.
	//+optional
	Key string `json:"key"`
}

SecretKeyRef is a reference to a secret holding the value for the name/value item.

func (*SecretKeyRef) DeepCopy

func (in *SecretKeyRef) DeepCopy() *SecretKeyRef

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

func (*SecretKeyRef) DeepCopyInto

func (in *SecretKeyRef) DeepCopyInto(out *SecretKeyRef)

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

type TLS

type TLS struct {
	//+optional
	RootCA *TLSDocument `json:"rootCA"`
	//+optional
	Certificate *TLSDocument `json:"certificate"`
	//+optional
	PrivateKey *TLSDocument `json:"privateKey"`
	//+optional
	//+kubebuilder:validation:Enum={"Never", "OnceAsClient", "FreelyAsClient"}
	//+kubebuilder:default=Never
	Renegotiation *Renegotiation `json:"renegotiation"`
}

TLS describes how to build client or server TLS configurations.

func (*TLS) DeepCopy

func (in *TLS) DeepCopy() *TLS

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

func (*TLS) DeepCopyInto

func (in *TLS) DeepCopyInto(out *TLS)

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

type TLSDocument

type TLSDocument struct {
	// Value of the property, in plaintext.
	//+optional
	Value *DynamicValue `json:"value,omitempty"`
	// SecretKeyRef is the reference of a value in a secret store component.
	//+optional
	SecretKeyRef *SecretKeyRef `json:"secretKeyRef,omitempty"`
}

TLSDocument describes and in-line or pointer to a document to build a TLS configuration.

func (*TLSDocument) DeepCopy

func (in *TLSDocument) DeepCopy() *TLSDocument

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

func (*TLSDocument) DeepCopyInto

func (in *TLSDocument) DeepCopyInto(out *TLSDocument)

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