Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=license.vsphere.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type License
- func (in *License) DeepCopy() *License
- func (in *License) DeepCopyInto(out *License)
- func (in *License) DeepCopyObject() runtime.Object
- func (mg *License) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *License) GetConnectionDetailsMapping() map[string]string
- func (mg *License) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *License) GetID() string
- func (tr *License) GetObservation() (map[string]any, error)
- func (tr *License) GetParameters() (map[string]any, error)
- func (mg *License) GetProviderConfigReference() *xpv1.Reference
- func (mg *License) GetProviderReference() *xpv1.Reference
- func (mg *License) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *License) GetTerraformResourceType() string
- func (tr *License) GetTerraformSchemaVersion() int
- func (mg *License) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *License) LateInitialize(attrs []byte) (bool, error)
- func (mg *License) SetConditions(c ...xpv1.Condition)
- func (mg *License) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *License) SetObservation(obs map[string]any) error
- func (tr *License) SetParameters(params map[string]any) error
- func (mg *License) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *License) SetProviderReference(r *xpv1.Reference)
- func (mg *License) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *License) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type LicenseList
- type LicenseObservation
- type LicenseParameters
- type LicenseSpec
- type LicenseStatus
Constants ¶
const ( CRDGroup = "license.vsphere.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 ( License_Kind = "License" License_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: License_Kind}.String() License_KindAPIVersion = License_Kind + "." + CRDGroupVersion.String() License_GroupVersionKind = CRDGroupVersion.WithKind(License_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type License ¶
type License struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LicenseSpec `json:"spec"` Status LicenseStatus `json:"status,omitempty"` }
License is the Schema for the Licenses API. Provides a VMware vSphere license resource. This can be used to add and remove license keys. +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 (*License) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License.
func (*License) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*License) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*License) GetCondition ¶
func (mg *License) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this License.
func (*License) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this License
func (*License) GetDeletionPolicy ¶
func (mg *License) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this License.
func (*License) GetObservation ¶
GetObservation of this License
func (*License) GetParameters ¶
GetParameters of this License
func (*License) GetProviderConfigReference ¶
GetProviderConfigReference of this License.
func (*License) GetProviderReference ¶
GetProviderReference of this License. Deprecated: Use GetProviderConfigReference.
func (*License) GetPublishConnectionDetailsTo ¶
func (mg *License) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this License.
func (*License) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this License
func (*License) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*License) GetWriteConnectionSecretToReference ¶
func (mg *License) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this License.
func (*License) LateInitialize ¶
LateInitialize this License using its observed tfState. returns True if there are any spec changes for the resource.
func (*License) SetConditions ¶
SetConditions of this License.
func (*License) SetDeletionPolicy ¶
func (mg *License) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this License.
func (*License) SetObservation ¶
SetObservation for this License
func (*License) SetParameters ¶
SetParameters for this License
func (*License) SetProviderConfigReference ¶
SetProviderConfigReference of this License.
func (*License) SetProviderReference ¶
SetProviderReference of this License. Deprecated: Use SetProviderConfigReference.
func (*License) SetPublishConnectionDetailsTo ¶
func (mg *License) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this License.
func (*License) SetWriteConnectionSecretToReference ¶
func (mg *License) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this License.
type LicenseList ¶
type LicenseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []License `json:"items"` }
LicenseList contains a list of Licenses
func (*LicenseList) DeepCopy ¶
func (in *LicenseList) DeepCopy() *LicenseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList.
func (*LicenseList) DeepCopyInto ¶
func (in *LicenseList) DeepCopyInto(out *LicenseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LicenseList) DeepCopyObject ¶
func (in *LicenseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*LicenseList) GetItems ¶
func (l *LicenseList) GetItems() []resource.Managed
GetItems of this LicenseList.
type LicenseObservation ¶
type LicenseObservation struct { // The product edition of the license key. EditionKey *string `json:"editionKey,omitempty" tf:"edition_key,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` // The display name for the license. Name *string `json:"name,omitempty" tf:"name,omitempty"` // Total number of units (example: CPUs) contained in the license. Total *float64 `json:"total,omitempty" tf:"total,omitempty"` // The number of units (example: CPUs) assigned to this license. Used *float64 `json:"used,omitempty" tf:"used,omitempty"` }
func (*LicenseObservation) DeepCopy ¶
func (in *LicenseObservation) DeepCopy() *LicenseObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseObservation.
func (*LicenseObservation) DeepCopyInto ¶
func (in *LicenseObservation) DeepCopyInto(out *LicenseObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LicenseParameters ¶
type LicenseParameters struct { // A map of key/value pairs to be attached as labels (tags) to the license key. // +kubebuilder:validation:Optional Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"` // The license key to add. // +kubebuilder:validation:Required LicenseKey *string `json:"licenseKey" tf:"license_key,omitempty"` }
func (*LicenseParameters) DeepCopy ¶
func (in *LicenseParameters) DeepCopy() *LicenseParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseParameters.
func (*LicenseParameters) DeepCopyInto ¶
func (in *LicenseParameters) DeepCopyInto(out *LicenseParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LicenseSpec ¶
type LicenseSpec struct { v1.ResourceSpec `json:",inline"` ForProvider LicenseParameters `json:"forProvider"` }
LicenseSpec defines the desired state of License
func (*LicenseSpec) DeepCopy ¶
func (in *LicenseSpec) DeepCopy() *LicenseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseSpec.
func (*LicenseSpec) DeepCopyInto ¶
func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LicenseStatus ¶
type LicenseStatus struct { v1.ResourceStatus `json:",inline"` AtProvider LicenseObservation `json:"atProvider,omitempty"` }
LicenseStatus defines the observed state of License.
func (*LicenseStatus) DeepCopy ¶
func (in *LicenseStatus) DeepCopy() *LicenseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseStatus.
func (*LicenseStatus) DeepCopyInto ¶
func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.