Documentation ¶
Overview ¶
Package v1 is the package for the types used in Seed resources +k8s:deepcopy-gen=package +k8s:openapi-gen=true
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValueToJSON ¶ added in v0.1.1
func ValueToJSON(ctx rcontext.Context, valueFrom KeyValueSource) (interface{}, error)
ValueToJSON takes a KeyValueSource and resolves its value
Types ¶
type KeyValue ¶
type KeyValue struct { // Name representing the key. Name string `json:"name"` // A parameter may have attributes (e.g. message hub topic might have partitions) // +optional Attributes map[string]runtime.RawExtension `json:"attributes,omitempty"` // Defaults to null. // +optional Value *runtime.RawExtension `json:"value,omitempty"` // Source for the value. Cannot be used if value is not empty. // +optional ValueFrom *KeyValueSource `json:"valueFrom,omitempty"` }
KeyValue represents a key-value pair
func (*KeyValue) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyValue.
func (*KeyValue) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeyValueSource ¶
type KeyValueSource struct { // Selects a key of a ConfigMap. // +optional ConfigMapKeyRef *v1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` // Selects a key of a secret in the resource namespace // +optional SecretKeyRef *v1.SecretKeySelector `json:"secretKeyRef,omitempty"` }
KeyValueSource represents a source for the value of a KeyValue.
func (*KeyValueSource) DeepCopy ¶
func (in *KeyValueSource) DeepCopy() *KeyValueSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyValueSource.
func (*KeyValueSource) DeepCopyInto ¶
func (in *KeyValueSource) DeepCopyInto(out *KeyValueSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.