Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=snapshot.hcloud.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Snapshot
- func (in *Snapshot) DeepCopy() *Snapshot
- func (in *Snapshot) DeepCopyInto(out *Snapshot)
- func (in *Snapshot) DeepCopyObject() runtime.Object
- func (mg *Snapshot) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Snapshot) GetConnectionDetailsMapping() map[string]string
- func (mg *Snapshot) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Snapshot) GetID() string
- func (tr *Snapshot) GetInitParameters() (map[string]any, error)
- func (mg *Snapshot) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Snapshot) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Snapshot) GetObservation() (map[string]any, error)
- func (tr *Snapshot) GetParameters() (map[string]any, error)
- func (mg *Snapshot) GetProviderConfigReference() *xpv1.Reference
- func (mg *Snapshot) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Snapshot) GetTerraformResourceType() string
- func (tr *Snapshot) GetTerraformSchemaVersion() int
- func (mg *Snapshot) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Snapshot) Hub()
- func (tr *Snapshot) LateInitialize(attrs []byte) (bool, error)
- func (mg *Snapshot) SetConditions(c ...xpv1.Condition)
- func (mg *Snapshot) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Snapshot) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Snapshot) SetObservation(obs map[string]any) error
- func (tr *Snapshot) SetParameters(params map[string]any) error
- func (mg *Snapshot) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Snapshot) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Snapshot) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type SnapshotInitParameters
- type SnapshotList
- type SnapshotObservation
- type SnapshotParameters
- type SnapshotSpec
- type SnapshotStatus
Constants ¶
const ( CRDGroup = "snapshot.hcloud.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 ( Snapshot_Kind = "Snapshot" Snapshot_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Snapshot_Kind}.String() Snapshot_KindAPIVersion = Snapshot_Kind + "." + CRDGroupVersion.String() Snapshot_GroupVersionKind = CRDGroupVersion.WithKind(Snapshot_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
type Snapshot struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serverId) || (has(self.initProvider) && has(self.initProvider.serverId))",message="spec.forProvider.serverId is a required parameter" Spec SnapshotSpec `json:"spec"` Status SnapshotStatus `json:"status,omitempty"` }
Snapshot is the Schema for the Snapshots API. Provides a Hetzner Cloud snapshot to represent an image with type snapshot in the Hetzner Cloud. +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="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,hcloud}
func (*Snapshot) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snapshot.
func (*Snapshot) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Snapshot) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Snapshot) GetCondition ¶
func (mg *Snapshot) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Snapshot.
func (*Snapshot) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Snapshot
func (*Snapshot) GetDeletionPolicy ¶
func (mg *Snapshot) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Snapshot.
func (*Snapshot) GetInitParameters ¶
GetInitParameters of this Snapshot
func (*Snapshot) GetManagementPolicies ¶
func (mg *Snapshot) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Snapshot.
func (*Snapshot) GetMergedParameters ¶
GetInitParameters of this Snapshot
func (*Snapshot) GetObservation ¶
GetObservation of this Snapshot
func (*Snapshot) GetParameters ¶
GetParameters of this Snapshot
func (*Snapshot) GetProviderConfigReference ¶
GetProviderConfigReference of this Snapshot.
func (*Snapshot) GetPublishConnectionDetailsTo ¶
func (mg *Snapshot) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Snapshot.
func (*Snapshot) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Snapshot
func (*Snapshot) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Snapshot) GetWriteConnectionSecretToReference ¶
func (mg *Snapshot) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Snapshot.
func (*Snapshot) LateInitialize ¶
LateInitialize this Snapshot using its observed tfState. returns True if there are any spec changes for the resource.
func (*Snapshot) SetConditions ¶
SetConditions of this Snapshot.
func (*Snapshot) SetDeletionPolicy ¶
func (mg *Snapshot) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Snapshot.
func (*Snapshot) SetManagementPolicies ¶
func (mg *Snapshot) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Snapshot.
func (*Snapshot) SetObservation ¶
SetObservation for this Snapshot
func (*Snapshot) SetParameters ¶
SetParameters for this Snapshot
func (*Snapshot) SetProviderConfigReference ¶
SetProviderConfigReference of this Snapshot.
func (*Snapshot) SetPublishConnectionDetailsTo ¶
func (mg *Snapshot) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Snapshot.
func (*Snapshot) SetWriteConnectionSecretToReference ¶
func (mg *Snapshot) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Snapshot.
type SnapshotInitParameters ¶
type SnapshotInitParameters struct { // Description of the snapshot. Description *string `json:"description,omitempty" tf:"description,omitempty"` // User-defined labels (key-value pairs) should be created with. // +mapType=granular Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"` // Server to the snapshot should be created from. ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"` }
func (*SnapshotInitParameters) DeepCopy ¶
func (in *SnapshotInitParameters) DeepCopy() *SnapshotInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotInitParameters.
func (*SnapshotInitParameters) DeepCopyInto ¶
func (in *SnapshotInitParameters) DeepCopyInto(out *SnapshotInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotList ¶
type SnapshotList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Snapshot `json:"items"` }
SnapshotList contains a list of Snapshots
func (*SnapshotList) DeepCopy ¶
func (in *SnapshotList) DeepCopy() *SnapshotList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotList.
func (*SnapshotList) DeepCopyInto ¶
func (in *SnapshotList) DeepCopyInto(out *SnapshotList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnapshotList) DeepCopyObject ¶
func (in *SnapshotList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SnapshotList) GetItems ¶
func (l *SnapshotList) GetItems() []resource.Managed
GetItems of this SnapshotList.
type SnapshotObservation ¶
type SnapshotObservation struct { // Description of the snapshot. Description *string `json:"description,omitempty" tf:"description,omitempty"` // (int) Unique ID of the snapshot. ID *string `json:"id,omitempty" tf:"id,omitempty"` // User-defined labels (key-value pairs) should be created with. // +mapType=granular Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"` // Server to the snapshot should be created from. ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"` }
func (*SnapshotObservation) DeepCopy ¶
func (in *SnapshotObservation) DeepCopy() *SnapshotObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotObservation.
func (*SnapshotObservation) DeepCopyInto ¶
func (in *SnapshotObservation) DeepCopyInto(out *SnapshotObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotParameters ¶
type SnapshotParameters struct { // Description of the snapshot. // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // User-defined labels (key-value pairs) should be created with. // +kubebuilder:validation:Optional // +mapType=granular Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"` // Server to the snapshot should be created from. // +kubebuilder:validation:Optional ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"` }
func (*SnapshotParameters) DeepCopy ¶
func (in *SnapshotParameters) DeepCopy() *SnapshotParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotParameters.
func (*SnapshotParameters) DeepCopyInto ¶
func (in *SnapshotParameters) DeepCopyInto(out *SnapshotParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotSpec ¶
type SnapshotSpec struct { v1.ResourceSpec `json:",inline"` ForProvider SnapshotParameters `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 SnapshotInitParameters `json:"initProvider,omitempty"` }
SnapshotSpec defines the desired state of Snapshot
func (*SnapshotSpec) DeepCopy ¶
func (in *SnapshotSpec) DeepCopy() *SnapshotSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotSpec.
func (*SnapshotSpec) DeepCopyInto ¶
func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotStatus ¶
type SnapshotStatus struct { v1.ResourceStatus `json:",inline"` AtProvider SnapshotObservation `json:"atProvider,omitempty"` }
SnapshotStatus defines the observed state of Snapshot.
func (*SnapshotStatus) DeepCopy ¶
func (in *SnapshotStatus) DeepCopy() *SnapshotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotStatus.
func (*SnapshotStatus) DeepCopyInto ¶
func (in *SnapshotStatus) DeepCopyInto(out *SnapshotStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.