Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=block.vultr.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Storage
- func (in *Storage) DeepCopy() *Storage
- func (in *Storage) DeepCopyInto(out *Storage)
- func (in *Storage) DeepCopyObject() runtime.Object
- func (mg *Storage) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Storage) GetConnectionDetailsMapping() map[string]string
- func (mg *Storage) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Storage) GetID() string
- func (mg *Storage) GetManagementPolicy() xpv1.ManagementPolicy
- func (tr *Storage) GetObservation() (map[string]any, error)
- func (tr *Storage) GetParameters() (map[string]any, error)
- func (mg *Storage) GetProviderConfigReference() *xpv1.Reference
- func (mg *Storage) GetProviderReference() *xpv1.Reference
- func (mg *Storage) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Storage) GetTerraformResourceType() string
- func (tr *Storage) GetTerraformSchemaVersion() int
- func (mg *Storage) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Storage) LateInitialize(attrs []byte) (bool, error)
- func (mg *Storage) SetConditions(c ...xpv1.Condition)
- func (mg *Storage) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Storage) SetManagementPolicy(r xpv1.ManagementPolicy)
- func (tr *Storage) SetObservation(obs map[string]any) error
- func (tr *Storage) SetParameters(params map[string]any) error
- func (mg *Storage) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Storage) SetProviderReference(r *xpv1.Reference)
- func (mg *Storage) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Storage) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type StorageList
- type StorageObservation
- type StorageParameters
- type StorageSpec
- type StorageStatus
Constants ¶
const ( CRDGroup = "block.vultr.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 ( Storage_Kind = "Storage" Storage_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Storage_Kind}.String() Storage_KindAPIVersion = Storage_Kind + "." + CRDGroupVersion.String() Storage_GroupVersionKind = CRDGroupVersion.WithKind(Storage_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.region)",message="region is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.sizeGb)",message="sizeGb is a required parameter" Spec StorageSpec `json:"spec"` Status StorageStatus `json:"status,omitempty"` }
Storage is the Schema for the Storages API. Provides a Vultr Block Storage resource. This can be used to create, read, modify, and delete Block Storage. +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:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,vultr}
func (*Storage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.
func (*Storage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Storage) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Storage) GetCondition ¶
func (mg *Storage) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Storage.
func (*Storage) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Storage
func (*Storage) GetDeletionPolicy ¶
func (mg *Storage) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Storage.
func (*Storage) GetManagementPolicy ¶
func (mg *Storage) GetManagementPolicy() xpv1.ManagementPolicy
GetManagementPolicy of this Storage.
func (*Storage) GetObservation ¶
GetObservation of this Storage
func (*Storage) GetParameters ¶
GetParameters of this Storage
func (*Storage) GetProviderConfigReference ¶
GetProviderConfigReference of this Storage.
func (*Storage) GetProviderReference ¶
GetProviderReference of this Storage. Deprecated: Use GetProviderConfigReference.
func (*Storage) GetPublishConnectionDetailsTo ¶
func (mg *Storage) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Storage.
func (*Storage) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Storage
func (*Storage) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Storage) GetWriteConnectionSecretToReference ¶
func (mg *Storage) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Storage.
func (*Storage) LateInitialize ¶
LateInitialize this Storage using its observed tfState. returns True if there are any spec changes for the resource.
func (*Storage) SetConditions ¶
SetConditions of this Storage.
func (*Storage) SetDeletionPolicy ¶
func (mg *Storage) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Storage.
func (*Storage) SetManagementPolicy ¶
func (mg *Storage) SetManagementPolicy(r xpv1.ManagementPolicy)
SetManagementPolicy of this Storage.
func (*Storage) SetObservation ¶
SetObservation for this Storage
func (*Storage) SetParameters ¶
SetParameters for this Storage
func (*Storage) SetProviderConfigReference ¶
SetProviderConfigReference of this Storage.
func (*Storage) SetProviderReference ¶
SetProviderReference of this Storage. Deprecated: Use SetProviderConfigReference.
func (*Storage) SetPublishConnectionDetailsTo ¶
func (mg *Storage) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Storage.
func (*Storage) SetWriteConnectionSecretToReference ¶
func (mg *Storage) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Storage.
type StorageList ¶
type StorageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Storage `json:"items"` }
StorageList contains a list of Storages
func (*StorageList) DeepCopy ¶
func (in *StorageList) DeepCopy() *StorageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageList.
func (*StorageList) DeepCopyInto ¶
func (in *StorageList) DeepCopyInto(out *StorageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageList) DeepCopyObject ¶
func (in *StorageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*StorageList) GetItems ¶
func (l *StorageList) GetItems() []resource.Managed
GetItems of this StorageList.
type StorageObservation ¶
type StorageObservation struct { // VPS ID that is attached to this block storage. AttachedToInstance *string `json:"attachedToInstance,omitempty" tf:"attached_to_instance,omitempty"` // The type of block storage volume. Values are high_perf or storage_opt. BlockType *string `json:"blockType,omitempty" tf:"block_type,omitempty"` // The monthly cost of this block storage. Cost *float64 `json:"cost,omitempty" tf:"cost,omitempty"` // The date this block storage was created. DateCreated *string `json:"dateCreated,omitempty" tf:"date_created,omitempty"` // The ID for this block storage. ID *string `json:"id,omitempty" tf:"id,omitempty"` // Label that is given to your block storage. Label *string `json:"label,omitempty" tf:"label,omitempty"` // Flag which will determine if a volume should be attached with a restart or not. Live *bool `json:"live,omitempty" tf:"live,omitempty"` // An ID associated with the instance, when mounted the ID can be found in /dev/disk/by-id prefixed with virtio. MountID *string `json:"mountId,omitempty" tf:"mount_id,omitempty"` // Region in which this block storage will reside in. (Currently only NJ/NY supported region "ewr") Region *string `json:"region,omitempty" tf:"region,omitempty"` // The size of the given block storage. SizeGb *float64 `json:"sizeGb,omitempty" tf:"size_gb,omitempty"` // Current status of your block storage. Status *string `json:"status,omitempty" tf:"status,omitempty"` }
func (*StorageObservation) DeepCopy ¶
func (in *StorageObservation) DeepCopy() *StorageObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageObservation.
func (*StorageObservation) DeepCopyInto ¶
func (in *StorageObservation) DeepCopyInto(out *StorageObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageParameters ¶
type StorageParameters struct { // VPS ID that is attached to this block storage. // +kubebuilder:validation:Optional AttachedToInstance *string `json:"attachedToInstance,omitempty" tf:"attached_to_instance,omitempty"` // The type of block storage volume. Values are high_perf or storage_opt. // +kubebuilder:validation:Optional BlockType *string `json:"blockType,omitempty" tf:"block_type,omitempty"` // Label that is given to your block storage. // +kubebuilder:validation:Optional Label *string `json:"label,omitempty" tf:"label,omitempty"` // Flag which will determine if a volume should be attached with a restart or not. // +kubebuilder:validation:Optional Live *bool `json:"live,omitempty" tf:"live,omitempty"` // Region in which this block storage will reside in. (Currently only NJ/NY supported region "ewr") // +kubebuilder:validation:Optional Region *string `json:"region,omitempty" tf:"region,omitempty"` // The size of the given block storage. // +kubebuilder:validation:Optional SizeGb *float64 `json:"sizeGb,omitempty" tf:"size_gb,omitempty"` }
func (*StorageParameters) DeepCopy ¶
func (in *StorageParameters) DeepCopy() *StorageParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageParameters.
func (*StorageParameters) DeepCopyInto ¶
func (in *StorageParameters) DeepCopyInto(out *StorageParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageSpec ¶
type StorageSpec struct { v1.ResourceSpec `json:",inline"` ForProvider StorageParameters `json:"forProvider"` }
StorageSpec defines the desired state of Storage
func (*StorageSpec) DeepCopy ¶
func (in *StorageSpec) DeepCopy() *StorageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageSpec.
func (*StorageSpec) DeepCopyInto ¶
func (in *StorageSpec) DeepCopyInto(out *StorageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageStatus ¶
type StorageStatus struct { v1.ResourceStatus `json:",inline"` AtProvider StorageObservation `json:"atProvider,omitempty"` }
StorageStatus defines the observed state of Storage.
func (*StorageStatus) DeepCopy ¶
func (in *StorageStatus) DeepCopy() *StorageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageStatus.
func (*StorageStatus) DeepCopyInto ¶
func (in *StorageStatus) DeepCopyInto(out *StorageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.