v1alpha1

package
v0.0.0-...-0c44014 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=volumeattachment.hcloud.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "volumeattachment.hcloud.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	Attachment_Kind             = "Attachment"
	Attachment_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Attachment_Kind}.String()
	Attachment_KindAPIVersion   = Attachment_Kind + "." + CRDGroupVersion.String()
	Attachment_GroupVersionKind = CRDGroupVersion.WithKind(Attachment_Kind)
)

Repository type metadata.

View Source
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
)

Functions

This section is empty.

Types

type Attachment

type Attachment 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"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.volumeId) || (has(self.initProvider) && has(self.initProvider.volumeId))",message="spec.forProvider.volumeId is a required parameter"
	Spec   AttachmentSpec   `json:"spec"`
	Status AttachmentStatus `json:"status,omitempty"`
}

Attachment is the Schema for the Attachments API. Provides a Hetzner Cloud Volume attachment to attach a Volume to a Hetzner Cloud Server. +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 (*Attachment) DeepCopy

func (in *Attachment) DeepCopy() *Attachment

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

func (*Attachment) DeepCopyInto

func (in *Attachment) DeepCopyInto(out *Attachment)

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

func (*Attachment) DeepCopyObject

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

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

func (*Attachment) GetCondition

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

GetCondition of this Attachment.

func (*Attachment) GetConnectionDetailsMapping

func (tr *Attachment) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Attachment

func (*Attachment) GetDeletionPolicy

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

GetDeletionPolicy of this Attachment.

func (*Attachment) GetID

func (tr *Attachment) GetID() string

GetID returns ID of underlying Terraform resource of this Attachment

func (*Attachment) GetInitParameters

func (tr *Attachment) GetInitParameters() (map[string]any, error)

GetInitParameters of this Attachment

func (*Attachment) GetManagementPolicies

func (mg *Attachment) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Attachment.

func (*Attachment) GetMergedParameters

func (tr *Attachment) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Attachment

func (*Attachment) GetObservation

func (tr *Attachment) GetObservation() (map[string]any, error)

GetObservation of this Attachment

func (*Attachment) GetParameters

func (tr *Attachment) GetParameters() (map[string]any, error)

GetParameters of this Attachment

func (*Attachment) GetProviderConfigReference

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

GetProviderConfigReference of this Attachment.

func (*Attachment) GetPublishConnectionDetailsTo

func (mg *Attachment) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Attachment.

func (*Attachment) GetTerraformResourceType

func (mg *Attachment) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Attachment

func (*Attachment) GetTerraformSchemaVersion

func (tr *Attachment) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Attachment) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Attachment.

func (*Attachment) Hub

func (tr *Attachment) Hub()

Hub marks this type as a conversion hub.

func (*Attachment) LateInitialize

func (tr *Attachment) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Attachment using its observed tfState. returns True if there are any spec changes for the resource.

func (*Attachment) SetConditions

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

SetConditions of this Attachment.

func (*Attachment) SetDeletionPolicy

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

SetDeletionPolicy of this Attachment.

func (*Attachment) SetManagementPolicies

func (mg *Attachment) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Attachment.

func (*Attachment) SetObservation

func (tr *Attachment) SetObservation(obs map[string]any) error

SetObservation for this Attachment

func (*Attachment) SetParameters

func (tr *Attachment) SetParameters(params map[string]any) error

SetParameters for this Attachment

func (*Attachment) SetProviderConfigReference

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

SetProviderConfigReference of this Attachment.

func (*Attachment) SetPublishConnectionDetailsTo

func (mg *Attachment) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Attachment.

func (*Attachment) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Attachment.

type AttachmentInitParameters

type AttachmentInitParameters struct {

	// Automount the volume upon attaching it.
	Automount *bool `json:"automount,omitempty" tf:"automount,omitempty"`

	// Server to attach the Volume to.
	ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"`

	// ID of the Volume.
	VolumeID *float64 `json:"volumeId,omitempty" tf:"volume_id,omitempty"`
}

func (*AttachmentInitParameters) DeepCopy

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

func (*AttachmentInitParameters) DeepCopyInto

func (in *AttachmentInitParameters) DeepCopyInto(out *AttachmentInitParameters)

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

type AttachmentList

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

AttachmentList contains a list of Attachments

func (*AttachmentList) DeepCopy

func (in *AttachmentList) DeepCopy() *AttachmentList

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

func (*AttachmentList) DeepCopyInto

func (in *AttachmentList) DeepCopyInto(out *AttachmentList)

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

func (*AttachmentList) DeepCopyObject

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

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

func (*AttachmentList) GetItems

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

GetItems of this AttachmentList.

type AttachmentObservation

type AttachmentObservation struct {

	// Automount the volume upon attaching it.
	Automount *bool `json:"automount,omitempty" tf:"automount,omitempty"`

	// (int) Unique ID of the Volume Attachment.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Server to attach the Volume to.
	ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"`

	// ID of the Volume.
	VolumeID *float64 `json:"volumeId,omitempty" tf:"volume_id,omitempty"`
}

func (*AttachmentObservation) DeepCopy

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

func (*AttachmentObservation) DeepCopyInto

func (in *AttachmentObservation) DeepCopyInto(out *AttachmentObservation)

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

type AttachmentParameters

type AttachmentParameters struct {

	// Automount the volume upon attaching it.
	// +kubebuilder:validation:Optional
	Automount *bool `json:"automount,omitempty" tf:"automount,omitempty"`

	// Server to attach the Volume to.
	// +kubebuilder:validation:Optional
	ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"`

	// ID of the Volume.
	// +kubebuilder:validation:Optional
	VolumeID *float64 `json:"volumeId,omitempty" tf:"volume_id,omitempty"`
}

func (*AttachmentParameters) DeepCopy

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

func (*AttachmentParameters) DeepCopyInto

func (in *AttachmentParameters) DeepCopyInto(out *AttachmentParameters)

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

type AttachmentSpec

type AttachmentSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     AttachmentParameters `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 AttachmentInitParameters `json:"initProvider,omitempty"`
}

AttachmentSpec defines the desired state of Attachment

func (*AttachmentSpec) DeepCopy

func (in *AttachmentSpec) DeepCopy() *AttachmentSpec

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

func (*AttachmentSpec) DeepCopyInto

func (in *AttachmentSpec) DeepCopyInto(out *AttachmentSpec)

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

type AttachmentStatus

type AttachmentStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        AttachmentObservation `json:"atProvider,omitempty"`
}

AttachmentStatus defines the observed state of Attachment.

func (*AttachmentStatus) DeepCopy

func (in *AttachmentStatus) DeepCopy() *AttachmentStatus

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

func (*AttachmentStatus) DeepCopyInto

func (in *AttachmentStatus) DeepCopyInto(out *AttachmentStatus)

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