Documentation ¶
Overview ¶
Package v1alpha1 contains the v1alpha1 group resources of the nop provider. +kubebuilder:object:generate=true +groupName=nop.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type NopResource
- func (in *NopResource) DeepCopy() *NopResource
- func (in *NopResource) DeepCopyInto(out *NopResource)
- func (in *NopResource) DeepCopyObject() runtime.Object
- func (mg *NopResource) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *NopResource) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *NopResource) GetManagementPolicies() xpv1.ManagementPolicies
- func (mg *NopResource) GetProviderConfigReference() *xpv1.Reference
- func (mg *NopResource) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *NopResource) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *NopResource) SetConditions(c ...xpv1.Condition)
- func (mg *NopResource) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *NopResource) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (mg *NopResource) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *NopResource) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *NopResource) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type NopResourceList
- type NopResourceObservation
- type NopResourceParameters
- type NopResourceSpec
- type NopResourceStatus
- type ResourceConditionAfter
- type ResourceConnectionDetail
Constants ¶
const ( Group = "nop.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
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} )
var ( NopResourceKind = reflect.TypeOf(NopResource{}).Name() NopResourceGroupKind = schema.GroupKind{Group: Group, Kind: NopResourceKind}.String() NopResourceKindAPIVersion = NopResourceKind + "." + SchemeGroupVersion.String() NopResourceGroupVersionKind = SchemeGroupVersion.WithKind(NopResourceKind) // NopResourceValidator is doing nothing on purpose at the moment, you now... a nop validator. NopResourceValidator = webhook.NewValidator() )
NopResource type metadata.
Functions ¶
This section is empty.
Types ¶
type NopResource ¶
type NopResource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NopResourceSpec `json:"spec"` Status NopResourceStatus `json:"status,omitempty"` }
A NopResource is an example API type. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,nop}
func (*NopResource) DeepCopy ¶
func (in *NopResource) DeepCopy() *NopResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NopResource.
func (*NopResource) DeepCopyInto ¶
func (in *NopResource) DeepCopyInto(out *NopResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NopResource) DeepCopyObject ¶
func (in *NopResource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NopResource) GetCondition ¶
func (mg *NopResource) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this NopResource.
func (*NopResource) GetDeletionPolicy ¶
func (mg *NopResource) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this NopResource.
func (*NopResource) GetManagementPolicies ¶ added in v0.3.0
func (mg *NopResource) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this NopResource.
func (*NopResource) GetProviderConfigReference ¶
func (mg *NopResource) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this NopResource.
func (*NopResource) GetPublishConnectionDetailsTo ¶ added in v0.2.0
func (mg *NopResource) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this NopResource.
func (*NopResource) GetWriteConnectionSecretToReference ¶
func (mg *NopResource) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this NopResource.
func (*NopResource) SetConditions ¶
func (mg *NopResource) SetConditions(c ...xpv1.Condition)
SetConditions of this NopResource.
func (*NopResource) SetDeletionPolicy ¶
func (mg *NopResource) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this NopResource.
func (*NopResource) SetManagementPolicies ¶ added in v0.3.0
func (mg *NopResource) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this NopResource.
func (*NopResource) SetProviderConfigReference ¶
func (mg *NopResource) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this NopResource.
func (*NopResource) SetPublishConnectionDetailsTo ¶ added in v0.2.0
func (mg *NopResource) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this NopResource.
func (*NopResource) SetWriteConnectionSecretToReference ¶
func (mg *NopResource) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this NopResource.
type NopResourceList ¶
type NopResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NopResource `json:"items"` }
NopResourceList contains a list of NopResource.
func (*NopResourceList) DeepCopy ¶
func (in *NopResourceList) DeepCopy() *NopResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NopResourceList.
func (*NopResourceList) DeepCopyInto ¶
func (in *NopResourceList) DeepCopyInto(out *NopResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NopResourceList) DeepCopyObject ¶
func (in *NopResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NopResourceList) GetItems ¶
func (l *NopResourceList) GetItems() []resource.Managed
GetItems of this NopResourceList.
type NopResourceObservation ¶
type NopResourceObservation struct { // Fields is an arbitrary object you can patch to and from. It has no // schema, is not validated, and is not used by the NopResource controller. // +optional Fields runtime.RawExtension `json:"fields,omitempty"` }
NopResourceObservation are the observable fields of a NopResource.
func (*NopResourceObservation) DeepCopy ¶
func (in *NopResourceObservation) DeepCopy() *NopResourceObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NopResourceObservation.
func (*NopResourceObservation) DeepCopyInto ¶
func (in *NopResourceObservation) DeepCopyInto(out *NopResourceObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NopResourceParameters ¶
type NopResourceParameters struct { // ConditionAfter can be used to set status conditions after a specified // time. By default a NopResource will only have a status condition of Type: // Synced. It will never have a status condition of Type: Ready unless one // is configured here. // +optional ConditionAfter []ResourceConditionAfter `json:"conditionAfter,omitempty"` // ConnectionDetails that this NopResource should emit on each reconcile. // +optional ConnectionDetails []ResourceConnectionDetail `json:"connectionDetails,omitempty"` // Fields is an arbitrary object you can patch to and from. It has no // schema, is not validated, and is not used by the NopResource controller. // +optional Fields runtime.RawExtension `json:"fields,omitempty"` }
NopResourceParameters are the configurable fields of a NopResource.
func (*NopResourceParameters) DeepCopy ¶
func (in *NopResourceParameters) DeepCopy() *NopResourceParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NopResourceParameters.
func (*NopResourceParameters) DeepCopyInto ¶
func (in *NopResourceParameters) DeepCopyInto(out *NopResourceParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NopResourceSpec ¶
type NopResourceSpec struct { xpv1.ResourceSpec `json:",inline"` ForProvider NopResourceParameters `json:"forProvider"` }
A NopResourceSpec defines the desired state of a NopResource.
func (*NopResourceSpec) DeepCopy ¶
func (in *NopResourceSpec) DeepCopy() *NopResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NopResourceSpec.
func (*NopResourceSpec) DeepCopyInto ¶
func (in *NopResourceSpec) DeepCopyInto(out *NopResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NopResourceStatus ¶
type NopResourceStatus struct { xpv1.ResourceStatus `json:",inline"` AtProvider NopResourceObservation `json:"atProvider,omitempty"` }
A NopResourceStatus represents the observed state of a NopResource.
func (*NopResourceStatus) DeepCopy ¶
func (in *NopResourceStatus) DeepCopy() *NopResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NopResourceStatus.
func (*NopResourceStatus) DeepCopyInto ¶
func (in *NopResourceStatus) DeepCopyInto(out *NopResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceConditionAfter ¶
type ResourceConditionAfter struct { // Time is the duration after which the condition should be set. Time metav1.Duration `json:"time"` // ConditionType to set - e.g. Ready. ConditionType xpv1.ConditionType `json:"conditionType"` // ConditionStatus to set - e.g. True. ConditionStatus corev1.ConditionStatus `json:"conditionStatus"` // ConditionReason to set - e.g. Available. // +optional ConditionReason *xpv1.ConditionReason `json:"conditionReason,omitempty"` }
ResourceConditionAfter specifies a condition of a NopResource that should be set after a certain duration.
func (*ResourceConditionAfter) DeepCopy ¶
func (in *ResourceConditionAfter) DeepCopy() *ResourceConditionAfter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceConditionAfter.
func (*ResourceConditionAfter) DeepCopyInto ¶
func (in *ResourceConditionAfter) DeepCopyInto(out *ResourceConditionAfter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceConnectionDetail ¶ added in v0.2.0
type ResourceConnectionDetail struct { // Name of the connection detail. Name string `json:"name"` // Value of the connection detail. Value string `json:"value"` }
ResourceConnectionDetail specifies a connection detail a NopResource should emit.
func (*ResourceConnectionDetail) DeepCopy ¶ added in v0.2.0
func (in *ResourceConnectionDetail) DeepCopy() *ResourceConnectionDetail
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceConnectionDetail.
func (*ResourceConnectionDetail) DeepCopyInto ¶ added in v0.2.0
func (in *ResourceConnectionDetail) DeepCopyInto(out *ResourceConnectionDetail)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.