v1alpha1

package
v0.0.0-...-6fe2522 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=virtualdisk.vsphere.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "virtualdisk.vsphere.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	Disk_Kind             = "Disk"
	Disk_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Disk_Kind}.String()
	Disk_KindAPIVersion   = Disk_Kind + "." + CRDGroupVersion.String()
	Disk_GroupVersionKind = CRDGroupVersion.WithKind(Disk_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 Disk

type Disk struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DiskSpec   `json:"spec"`
	Status            DiskStatus `json:"status,omitempty"`
}

Disk is the Schema for the Disks API. Provides a vSphere virtual disk resource. This can be used to create and delete virtual disks. +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,vsphere}

func (*Disk) DeepCopy

func (in *Disk) DeepCopy() *Disk

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

func (*Disk) DeepCopyInto

func (in *Disk) DeepCopyInto(out *Disk)

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

func (*Disk) DeepCopyObject

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

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

func (*Disk) GetCondition

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

GetCondition of this Disk.

func (*Disk) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Disk

func (*Disk) GetDeletionPolicy

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

GetDeletionPolicy of this Disk.

func (*Disk) GetID

func (tr *Disk) GetID() string

GetID returns ID of underlying Terraform resource of this Disk

func (*Disk) GetObservation

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

GetObservation of this Disk

func (*Disk) GetParameters

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

GetParameters of this Disk

func (*Disk) GetProviderConfigReference

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

GetProviderConfigReference of this Disk.

func (*Disk) GetProviderReference

func (mg *Disk) GetProviderReference() *xpv1.Reference

GetProviderReference of this Disk. Deprecated: Use GetProviderConfigReference.

func (*Disk) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Disk.

func (*Disk) GetTerraformResourceType

func (mg *Disk) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Disk

func (*Disk) GetTerraformSchemaVersion

func (tr *Disk) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Disk) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Disk.

func (*Disk) LateInitialize

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

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

func (*Disk) SetConditions

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

SetConditions of this Disk.

func (*Disk) SetDeletionPolicy

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

SetDeletionPolicy of this Disk.

func (*Disk) SetObservation

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

SetObservation for this Disk

func (*Disk) SetParameters

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

SetParameters for this Disk

func (*Disk) SetProviderConfigReference

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

SetProviderConfigReference of this Disk.

func (*Disk) SetProviderReference

func (mg *Disk) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Disk. Deprecated: Use SetProviderConfigReference.

func (*Disk) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Disk.

func (*Disk) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Disk.

type DiskList

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

DiskList contains a list of Disks

func (*DiskList) DeepCopy

func (in *DiskList) DeepCopy() *DiskList

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

func (*DiskList) DeepCopyInto

func (in *DiskList) DeepCopyInto(out *DiskList)

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

func (*DiskList) DeepCopyObject

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

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

func (*DiskList) GetItems

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

GetItems of this DiskList.

type DiskObservation

type DiskObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*DiskObservation) DeepCopy

func (in *DiskObservation) DeepCopy() *DiskObservation

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

func (*DiskObservation) DeepCopyInto

func (in *DiskObservation) DeepCopyInto(out *DiskObservation)

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

type DiskParameters

type DiskParameters struct {

	// The adapter type for this virtual disk. Can be
	// one of ide, lsiLogic, or busLogic.  Default: lsiLogic.
	// +kubebuilder:validation:Optional
	AdapterType *string `json:"adapterType,omitempty" tf:"adapter_type,omitempty"`

	// Tells the resource to create any
	// directories that are a part of the vmdk_path parameter if they are missing.
	// Default: false.
	// +kubebuilder:validation:Optional
	CreateDirectories *bool `json:"createDirectories,omitempty" tf:"create_directories,omitempty"`

	// The name of the datacenter in which to create the
	// disk. Can be omitted when when ESXi or if there is only one datacenter in
	// your infrastructure.
	// +kubebuilder:validation:Optional
	Datacenter *string `json:"datacenter,omitempty" tf:"datacenter,omitempty"`

	// The name of the datastore in which to create the
	// disk.
	// +kubebuilder:validation:Required
	Datastore *string `json:"datastore" tf:"datastore,omitempty"`

	// Size of the disk (in GB).
	// +kubebuilder:validation:Required
	Size *float64 `json:"size" tf:"size,omitempty"`

	// The type of disk to create. Can be one of
	// eagerZeroedThick, lazy, or thin. Default: eagerZeroedThick. For
	// information on what each kind of disk provisioning policy means, click
	// here.
	// +kubebuilder:validation:Optional
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*DiskParameters) DeepCopy

func (in *DiskParameters) DeepCopy() *DiskParameters

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

func (*DiskParameters) DeepCopyInto

func (in *DiskParameters) DeepCopyInto(out *DiskParameters)

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

type DiskSpec

type DiskSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     DiskParameters `json:"forProvider"`
}

DiskSpec defines the desired state of Disk

func (*DiskSpec) DeepCopy

func (in *DiskSpec) DeepCopy() *DiskSpec

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

func (*DiskSpec) DeepCopyInto

func (in *DiskSpec) DeepCopyInto(out *DiskSpec)

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

type DiskStatus

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

DiskStatus defines the observed state of Disk.

func (*DiskStatus) DeepCopy

func (in *DiskStatus) DeepCopy() *DiskStatus

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

func (*DiskStatus) DeepCopyInto

func (in *DiskStatus) DeepCopyInto(out *DiskStatus)

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