common

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValueOrSecretKeySelectorPair

type KeyValueOrSecretKeySelectorPair struct {
	// Key is the key part of the key/value pair.
	Key string `json:"key"`

	// Value is the optional value part of the key/value pair.
	Value ValueOrSecretKeySelector `json:"value,omitempty"`
}

KeyValueOrSecretKeySelectorPair is useful when wanting to realize a map as a list of key/value pairs where each value could also reference data stored in a Secret resource.

func (*KeyValueOrSecretKeySelectorPair) DeepCopy

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

func (*KeyValueOrSecretKeySelectorPair) DeepCopyInto

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

type KeyValuePair

type KeyValuePair struct {
	// Key is the key part of the key/value pair.
	Key string `json:"key"`

	// Value is the optional value part of the key/value pair.
	Value string `json:"value,omitempty"`
}

KeyValuePair is useful when wanting to realize a map as a list of key/value pairs.

func (*KeyValuePair) DeepCopy

func (in *KeyValuePair) DeepCopy() *KeyValuePair

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

func (*KeyValuePair) DeepCopyInto

func (in *KeyValuePair) DeepCopyInto(out *KeyValuePair)

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

type LocalObjectRef

type LocalObjectRef struct {
	// APIVersion defines the versioned schema of this representation of an
	// object. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion"`

	// Kind is a string value representing the REST resource this object
	// represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind"`

	// Name refers to a unique resource in the current namespace.
	// More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name"`
}

LocalObjectRef describes a reference to another object in the same namespace as the referrer.

func (*LocalObjectRef) DeepCopy

func (in *LocalObjectRef) DeepCopy() *LocalObjectRef

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

func (*LocalObjectRef) DeepCopyInto

func (in *LocalObjectRef) DeepCopyInto(out *LocalObjectRef)

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

type NameValuePair

type NameValuePair struct {
	// Name is the name part of the name/value pair.
	Name string `json:"name"`

	// Value is the optional value part of the name/value pair.
	Value string `json:"value,omitempty"`
}

NameValuePair is useful when wanting to realize a map as a list of name/value pairs.

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.

type ObjectMeta

type ObjectMeta struct {
	// Map of string keys and values that can be used to organize and categorize
	// (scope and select) objects. May match selectors of replication controllers
	// and services.
	// More info: http://kubernetes.io/docs/user-guide/labels
	// +optional
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations is an unstructured key value map stored with a resource that may be
	// set by external tools to store and retrieve arbitrary metadata. They are not
	// queryable and should be preserved when modifying objects.
	// More info: http://kubernetes.io/docs/user-guide/annotations
	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*ObjectMeta) DeepCopy

func (in *ObjectMeta) DeepCopy() *ObjectMeta

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

func (*ObjectMeta) DeepCopyInto

func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)

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

func (*ObjectMeta) Validate

func (metadata *ObjectMeta) Validate(parent *field.Path) field.ErrorList

Validate validates the labels and annotations in ObjectMeta.

type PartialObjectRef

type PartialObjectRef struct {
	metav1.TypeMeta `json:",inline"`

	// Name refers to a unique resource in the current namespace.
	// More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name"`
}

PartialObjectRef describes a reference to another object in the same namespace as the referrer. The reference can be just a name but may also include the referred resource's APIVersion and Kind.

func (*PartialObjectRef) DeepCopy

func (in *PartialObjectRef) DeepCopy() *PartialObjectRef

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

func (*PartialObjectRef) DeepCopyInto

func (in *PartialObjectRef) DeepCopyInto(out *PartialObjectRef)

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

type SecretKeySelector

type SecretKeySelector struct {
	// Name is the name of the secret.
	Name string `json:"name"`

	// Key is the key in the secret that specifies the requested data.
	Key string `json:"key"`
}

SecretKeySelector references data from a Secret resource by a specific key.

func (*SecretKeySelector) DeepCopy

func (in *SecretKeySelector) DeepCopy() *SecretKeySelector

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

func (*SecretKeySelector) DeepCopyInto

func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector)

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

type ValueOrSecretKeySelector

type ValueOrSecretKeySelector struct {

	// From is specified to reference a value from a Secret resource.
	//
	// Please note this field is mutually exclusive with the Value field.
	From *SecretKeySelector `json:"from,omitempty"`

	// Value is used to directly specify a value.
	//
	// Please note this field is mutually exclusive with the From field.
	Value *string `json:"value,omitempty"`
}

ValueOrSecretKeySelector describes a value from either a SecretKeySelector or value directly in this object.

func (*ValueOrSecretKeySelector) DeepCopy

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

func (*ValueOrSecretKeySelector) DeepCopyInto

func (in *ValueOrSecretKeySelector) DeepCopyInto(out *ValueOrSecretKeySelector)

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