v1

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

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

func (in *KeyValue) DeepCopy() *KeyValue

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

func (*KeyValue) DeepCopyInto

func (in *KeyValue) DeepCopyInto(out *KeyValue)

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

func (*KeyValue) ToJSON

func (v *KeyValue) ToJSON(ctx rcontext.Context) (interface{}, error)

ToJSON converts variable value to JSON value

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.

Jump to

Keyboard shortcuts

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