Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=null.template.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Resource
- func (in *Resource) DeepCopy() *Resource
- func (in *Resource) DeepCopyInto(out *Resource)
- func (in *Resource) DeepCopyObject() runtime.Object
- func (mg *Resource) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Resource) GetConnectionDetailsMapping() map[string]string
- func (mg *Resource) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Resource) GetID() string
- func (tr *Resource) GetInitParameters() (map[string]any, error)
- func (mg *Resource) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Resource) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Resource) GetObservation() (map[string]any, error)
- func (tr *Resource) GetParameters() (map[string]any, error)
- func (mg *Resource) GetProviderConfigReference() *xpv1.Reference
- func (mg *Resource) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Resource) GetTerraformResourceType() string
- func (tr *Resource) GetTerraformSchemaVersion() int
- func (mg *Resource) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Resource) Hub()
- func (tr *Resource) LateInitialize(attrs []byte) (bool, error)
- func (mg *Resource) SetConditions(c ...xpv1.Condition)
- func (mg *Resource) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Resource) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Resource) SetObservation(obs map[string]any) error
- func (tr *Resource) SetParameters(params map[string]any) error
- func (mg *Resource) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Resource) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Resource) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ResourceInitParameters
- type ResourceList
- type ResourceObservation
- type ResourceParameters
- type ResourceSpec
- type ResourceStatus
Constants ¶
const ( CRDGroup = "null.template.upbound.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( Resource_Kind = "Resource" Resource_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Resource_Kind}.String() Resource_KindAPIVersion = Resource_Kind + "." + CRDGroupVersion.String() Resource_GroupVersionKind = CRDGroupVersion.WithKind(Resource_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResourceSpec `json:"spec"` Status ResourceStatus `json:"status,omitempty"` }
Resource is the Schema for the Resources API. The null_resource resource implements the standard resource lifecycle but takes no further action.hashicorp. The triggers argument allows specifying an arbitrary set of values that, when changed, will cause the resource to be replaced. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,template}
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Resource) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Resource) GetCondition ¶
func (mg *Resource) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Resource.
func (*Resource) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Resource
func (*Resource) GetDeletionPolicy ¶
func (mg *Resource) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Resource.
func (*Resource) GetInitParameters ¶
GetInitParameters of this Resource
func (*Resource) GetManagementPolicies ¶
func (mg *Resource) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Resource.
func (*Resource) GetMergedParameters ¶
GetInitParameters of this Resource
func (*Resource) GetObservation ¶
GetObservation of this Resource
func (*Resource) GetParameters ¶
GetParameters of this Resource
func (*Resource) GetProviderConfigReference ¶
GetProviderConfigReference of this Resource.
func (*Resource) GetPublishConnectionDetailsTo ¶
func (mg *Resource) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Resource.
func (*Resource) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Resource
func (*Resource) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Resource) GetWriteConnectionSecretToReference ¶
func (mg *Resource) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Resource.
func (*Resource) LateInitialize ¶
LateInitialize this Resource using its observed tfState. returns True if there are any spec changes for the resource.
func (*Resource) SetConditions ¶
SetConditions of this Resource.
func (*Resource) SetDeletionPolicy ¶
func (mg *Resource) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Resource.
func (*Resource) SetManagementPolicies ¶
func (mg *Resource) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Resource.
func (*Resource) SetObservation ¶
SetObservation for this Resource
func (*Resource) SetParameters ¶
SetParameters for this Resource
func (*Resource) SetProviderConfigReference ¶
SetProviderConfigReference of this Resource.
func (*Resource) SetPublishConnectionDetailsTo ¶
func (mg *Resource) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Resource.
func (*Resource) SetWriteConnectionSecretToReference ¶
func (mg *Resource) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Resource.
type ResourceInitParameters ¶
type ResourceInitParameters struct { // running any associated provisioners. // A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners. // +mapType=granular Triggers map[string]*string `json:"triggers,omitempty" tf:"triggers,omitempty"` }
func (*ResourceInitParameters) DeepCopy ¶
func (in *ResourceInitParameters) DeepCopy() *ResourceInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceInitParameters.
func (*ResourceInitParameters) DeepCopyInto ¶
func (in *ResourceInitParameters) DeepCopyInto(out *ResourceInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceList ¶
type ResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Resource `json:"items"` }
ResourceList contains a list of Resources
func (*ResourceList) DeepCopy ¶
func (in *ResourceList) DeepCopy() *ResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList.
func (*ResourceList) DeepCopyInto ¶
func (in *ResourceList) DeepCopyInto(out *ResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceList) DeepCopyObject ¶
func (in *ResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ResourceList) GetItems ¶
func (l *ResourceList) GetItems() []resource.Managed
GetItems of this ResourceList.
type ResourceObservation ¶
type ResourceObservation struct { // (String) This is set to a random value at create time. ID *string `json:"id,omitempty" tf:"id,omitempty"` // running any associated provisioners. // A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners. // +mapType=granular Triggers map[string]*string `json:"triggers,omitempty" tf:"triggers,omitempty"` }
func (*ResourceObservation) DeepCopy ¶
func (in *ResourceObservation) DeepCopy() *ResourceObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceObservation.
func (*ResourceObservation) DeepCopyInto ¶
func (in *ResourceObservation) DeepCopyInto(out *ResourceObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceParameters ¶
type ResourceParameters struct { // running any associated provisioners. // A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners. // +kubebuilder:validation:Optional // +mapType=granular Triggers map[string]*string `json:"triggers,omitempty" tf:"triggers,omitempty"` }
func (*ResourceParameters) DeepCopy ¶
func (in *ResourceParameters) DeepCopy() *ResourceParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceParameters.
func (*ResourceParameters) DeepCopyInto ¶
func (in *ResourceParameters) DeepCopyInto(out *ResourceParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSpec ¶
type ResourceSpec struct { v1.ResourceSpec `json:",inline"` ForProvider ResourceParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception // of Identifier and other resource reference fields. The fields that are // in InitProvider are merged into ForProvider when the resource is created. // The same fields are also added to the terraform ignore_changes hook, to // avoid updating them after creation. This is useful for fields that are // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. InitProvider ResourceInitParameters `json:"initProvider,omitempty"` }
ResourceSpec defines the desired state of Resource
func (*ResourceSpec) DeepCopy ¶
func (in *ResourceSpec) DeepCopy() *ResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec.
func (*ResourceSpec) DeepCopyInto ¶
func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceStatus ¶
type ResourceStatus struct { v1.ResourceStatus `json:",inline"` AtProvider ResourceObservation `json:"atProvider,omitempty"` }
ResourceStatus defines the observed state of Resource.
func (*ResourceStatus) DeepCopy ¶
func (in *ResourceStatus) DeepCopy() *ResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus.
func (*ResourceStatus) DeepCopyInto ¶
func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.