v1alpha1

package
v0.0.0-...-913f5dd Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group datasource resources of the ExternalData provider. +kubebuilder:object:generate=true +groupName=datasource.external.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "datasource.external.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	DataSourceKind             = reflect.TypeOf(DataSource{}).Name()
	DataSourceGroupKind        = schema.GroupKind{Group: Group, Kind: DataSourceKind}.String()
	DataSourceKindAPIVersion   = DataSourceKind + "." + SchemeGroupVersion.String()
	DataSourceGroupVersionKind = SchemeGroupVersion.WithKind(DataSourceKind)
)

DataSource type metadata.

Functions

This section is empty.

Types

type DataSource

type DataSource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   DataSourceSpec   `json:"spec"`
	Status DataSourceStatus `json:"status,omitempty"`
}

A DataSource retrieves data from an external source such as a Kubernetes ConfigMap or HTTP endpoint that returns JSON. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="TYPE",type="string",JSONPath=".spec.forProvider.type" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,externaldata}

func (*DataSource) DeepCopy

func (in *DataSource) DeepCopy() *DataSource

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

func (*DataSource) DeepCopyInto

func (in *DataSource) DeepCopyInto(out *DataSource)

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

func (*DataSource) DeepCopyObject

func (in *DataSource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*DataSource) GetCondition

func (mg *DataSource) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this DataSource.

func (*DataSource) GetDeletionPolicy

func (mg *DataSource) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this DataSource.

func (*DataSource) GetProviderConfigReference

func (mg *DataSource) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this DataSource.

func (*DataSource) GetProviderReference

func (mg *DataSource) GetProviderReference() *xpv1.Reference

GetProviderReference of this DataSource. Deprecated: Use GetProviderConfigReference.

func (*DataSource) GetWriteConnectionSecretToReference

func (mg *DataSource) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this DataSource.

func (*DataSource) SetConditions

func (mg *DataSource) SetConditions(c ...xpv1.Condition)

SetConditions of this DataSource.

func (*DataSource) SetDeletionPolicy

func (mg *DataSource) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this DataSource.

func (*DataSource) SetProviderConfigReference

func (mg *DataSource) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this DataSource.

func (*DataSource) SetProviderReference

func (mg *DataSource) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this DataSource. Deprecated: Use SetProviderConfigReference.

func (*DataSource) SetWriteConnectionSecretToReference

func (mg *DataSource) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this DataSource.

type DataSourceList

type DataSourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DataSource `json:"items"`
}

DataSourceList contains a list of DataSource

func (*DataSourceList) DeepCopy

func (in *DataSourceList) DeepCopy() *DataSourceList

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

func (*DataSourceList) DeepCopyInto

func (in *DataSourceList) DeepCopyInto(out *DataSourceList)

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

func (*DataSourceList) DeepCopyObject

func (in *DataSourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*DataSourceList) GetItems

func (l *DataSourceList) GetItems() []resource.Managed

GetItems of this DataSourceList.

type DataSourceParameters

type DataSourceParameters struct {
	SourceType SourceType `json:"type"`

	// ConfigMapName is the name of a Kubernetes ConfigMap to look up
	// in the Namespace configured on the current ProviderConfig, when
	// type is 'configmap'
	// +optional
	ConfigMapName *string `json:"configMapName,omitempty"`

	// URL is the URL of a JSON endpint to retrieve data from, when type
	// is 'url'
	// +optional
	URL *string `json:"url,omitempty"`
}

DataSourceParameters are the configurable fields of a DataSource.

func (*DataSourceParameters) DeepCopy

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

func (*DataSourceParameters) DeepCopyInto

func (in *DataSourceParameters) DeepCopyInto(out *DataSourceParameters)

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

type DataSourceSpec

type DataSourceSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       DataSourceParameters `json:"forProvider"`
}

A DataSourceSpec defines the desired state of a DataSource.

func (*DataSourceSpec) DeepCopy

func (in *DataSourceSpec) DeepCopy() *DataSourceSpec

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

func (*DataSourceSpec) DeepCopyInto

func (in *DataSourceSpec) DeepCopyInto(out *DataSourceSpec)

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

type DataSourceStatus

type DataSourceStatus struct {
	xpv1.ResourceStatus `json:",inline"`

	// AtProvider contains the results of our external data lookup.
	// +kubebuilder:pruning:PreserveUnknownFields
	// +optional
	AtProvider *runtime.RawExtension `json:"atProvider,omitempty"`
}

A DataSourceStatus represents the observed state of a DataSource.

func (*DataSourceStatus) DeepCopy

func (in *DataSourceStatus) DeepCopy() *DataSourceStatus

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

func (*DataSourceStatus) DeepCopyInto

func (in *DataSourceStatus) DeepCopyInto(out *DataSourceStatus)

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

type SourceType

type SourceType string

SourceType is the type of external data source to retrieve values from. +kubebuilder:validation:Enum=configmap;url

const SourceTypeConfigMap SourceType = "configmap"

SourceTypeConfigMap is a Config Map Source

const SourceTypeURL SourceType = "url"

SourceTypeURL is a URL

Jump to

Keyboard shortcuts

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