Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=lighthouse.tencentcloud.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type ContainersObservation
- type ContainersParameters
- type EnvsObservation
- type EnvsParameters
- type Instance
- func (in *Instance) DeepCopy() *Instance
- func (in *Instance) DeepCopyInto(out *Instance)
- func (in *Instance) DeepCopyObject() runtime.Object
- func (mg *Instance) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Instance) GetConnectionDetailsMapping() map[string]string
- func (mg *Instance) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Instance) GetID() string
- func (tr *Instance) GetObservation() (map[string]interface{}, error)
- func (tr *Instance) GetParameters() (map[string]interface{}, error)
- func (mg *Instance) GetProviderConfigReference() *xpv1.Reference
- func (mg *Instance) GetProviderReference() *xpv1.Reference
- func (mg *Instance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Instance) GetTerraformResourceType() string
- func (tr *Instance) GetTerraformSchemaVersion() int
- func (mg *Instance) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Instance) LateInitialize(attrs []byte) (bool, error)
- func (mg *Instance) SetConditions(c ...xpv1.Condition)
- func (mg *Instance) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *Instance) SetObservation(obs map[string]interface{}) error
- func (tr *Instance) SetParameters(params map[string]interface{}) error
- func (mg *Instance) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Instance) SetProviderReference(r *xpv1.Reference)
- func (mg *Instance) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Instance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type InstanceList
- type InstanceObservation
- type InstanceParameters
- type InstanceSpec
- type InstanceStatus
- type LoginConfigurationObservation
- type LoginConfigurationParameters
- type PublishPortsObservation
- type PublishPortsParameters
- type VolumesObservation
- type VolumesParameters
Constants ¶
const ( CRDGroup = "lighthouse.tencentcloud.crossplane.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 ( Instance_Kind = "Instance" Instance_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Instance_Kind}.String() Instance_KindAPIVersion = Instance_Kind + "." + CRDGroupVersion.String() Instance_GroupVersionKind = CRDGroupVersion.WithKind(Instance_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type ContainersObservation ¶
type ContainersObservation struct { }
func (*ContainersObservation) DeepCopy ¶
func (in *ContainersObservation) DeepCopy() *ContainersObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainersObservation.
func (*ContainersObservation) DeepCopyInto ¶
func (in *ContainersObservation) DeepCopyInto(out *ContainersObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainersParameters ¶
type ContainersParameters struct { // The command to run. // +kubebuilder:validation:Optional Command *string `json:"command,omitempty" tf:"command,omitempty"` // Container image address. // +kubebuilder:validation:Optional ContainerImage *string `json:"containerImage,omitempty" tf:"container_image,omitempty"` // Container name. // +kubebuilder:validation:Optional ContainerName *string `json:"containerName,omitempty" tf:"container_name,omitempty"` // List of environment variables. // +kubebuilder:validation:Optional Envs []EnvsParameters `json:"envs,omitempty" tf:"envs,omitempty"` // List of mappings of container ports and host ports. // +kubebuilder:validation:Optional PublishPorts []PublishPortsParameters `json:"publishPorts,omitempty" tf:"publish_ports,omitempty"` // List of container mount volumes. // +kubebuilder:validation:Optional Volumes []VolumesParameters `json:"volumes,omitempty" tf:"volumes,omitempty"` }
func (*ContainersParameters) DeepCopy ¶
func (in *ContainersParameters) DeepCopy() *ContainersParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainersParameters.
func (*ContainersParameters) DeepCopyInto ¶
func (in *ContainersParameters) DeepCopyInto(out *ContainersParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvsObservation ¶
type EnvsObservation struct { }
func (*EnvsObservation) DeepCopy ¶
func (in *EnvsObservation) DeepCopy() *EnvsObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvsObservation.
func (*EnvsObservation) DeepCopyInto ¶
func (in *EnvsObservation) DeepCopyInto(out *EnvsObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvsParameters ¶
type EnvsParameters struct { // Environment variable key. // +kubebuilder:validation:Required Key *string `json:"key" tf:"key,omitempty"` // Environment variable value. // +kubebuilder:validation:Required Value *string `json:"value" tf:"value,omitempty"` }
func (*EnvsParameters) DeepCopy ¶
func (in *EnvsParameters) DeepCopy() *EnvsParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvsParameters.
func (*EnvsParameters) DeepCopyInto ¶
func (in *EnvsParameters) DeepCopyInto(out *EnvsParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Instance ¶
type Instance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec InstanceSpec `json:"spec"` Status InstanceStatus `json:"status,omitempty"` }
Instance is the Schema for the Instances API +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,tencentcloudjet}
func (*Instance) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Instance.
func (*Instance) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Instance) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Instance) GetCondition ¶
func (mg *Instance) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Instance.
func (*Instance) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Instance
func (*Instance) GetDeletionPolicy ¶
func (mg *Instance) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Instance.
func (*Instance) GetObservation ¶
GetObservation of this Instance
func (*Instance) GetParameters ¶
GetParameters of this Instance
func (*Instance) GetProviderConfigReference ¶
GetProviderConfigReference of this Instance.
func (*Instance) GetProviderReference ¶
GetProviderReference of this Instance. Deprecated: Use GetProviderConfigReference.
func (*Instance) GetPublishConnectionDetailsTo ¶
func (mg *Instance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Instance.
func (*Instance) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Instance
func (*Instance) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Instance) GetWriteConnectionSecretToReference ¶
func (mg *Instance) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Instance.
func (*Instance) LateInitialize ¶
LateInitialize this Instance using its observed tfState. returns True if there are any spec changes for the resource.
func (*Instance) SetConditions ¶
SetConditions of this Instance.
func (*Instance) SetDeletionPolicy ¶
func (mg *Instance) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Instance.
func (*Instance) SetObservation ¶
SetObservation for this Instance
func (*Instance) SetParameters ¶
SetParameters for this Instance
func (*Instance) SetProviderConfigReference ¶
SetProviderConfigReference of this Instance.
func (*Instance) SetProviderReference ¶
SetProviderReference of this Instance. Deprecated: Use SetProviderConfigReference.
func (*Instance) SetPublishConnectionDetailsTo ¶
func (mg *Instance) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Instance.
func (*Instance) SetWriteConnectionSecretToReference ¶
func (mg *Instance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Instance.
type InstanceList ¶
type InstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Instance `json:"items"` }
InstanceList contains a list of Instances
func (*InstanceList) DeepCopy ¶
func (in *InstanceList) DeepCopy() *InstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceList.
func (*InstanceList) DeepCopyInto ¶
func (in *InstanceList) DeepCopyInto(out *InstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstanceList) DeepCopyObject ¶
func (in *InstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*InstanceList) GetItems ¶
func (l *InstanceList) GetItems() []resource.Managed
GetItems of this InstanceList.
type InstanceObservation ¶
type InstanceObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
func (*InstanceObservation) DeepCopy ¶
func (in *InstanceObservation) DeepCopy() *InstanceObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceObservation.
func (*InstanceObservation) DeepCopyInto ¶
func (in *InstanceObservation) DeepCopyInto(out *InstanceObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceParameters ¶
type InstanceParameters struct { // ID of the Lighthouse image. // +kubebuilder:validation:Required BlueprintID *string `json:"blueprintId" tf:"blueprint_id,omitempty"` // ID of the Lighthouse package. // +kubebuilder:validation:Required BundleID *string `json:"bundleId" tf:"bundle_id,omitempty"` // A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed. // +kubebuilder:validation:Optional ClientToken *string `json:"clientToken,omitempty" tf:"client_token,omitempty"` // Configuration of the containers to create. // +kubebuilder:validation:Optional Containers []ContainersParameters `json:"containers,omitempty" tf:"containers,omitempty"` // Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met. // +kubebuilder:validation:Optional DryRun *bool `json:"dryRun,omitempty" tf:"dry_run,omitempty"` // The display name of the Lighthouse instance. // +kubebuilder:validation:Required InstanceName *string `json:"instanceName" tf:"instance_name,omitempty"` // Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation. // +kubebuilder:validation:Optional LoginConfiguration []LoginConfigurationParameters `json:"loginConfiguration,omitempty" tf:"login_configuration,omitempty"` // Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60. // +kubebuilder:validation:Required Period *float64 `json:"period" tf:"period,omitempty"` // Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. // +kubebuilder:validation:Required RenewFlag *string `json:"renewFlag" tf:"renew_flag,omitempty"` // List of availability zones. A random AZ is selected by default. // +kubebuilder:validation:Optional Zone *string `json:"zone,omitempty" tf:"zone,omitempty"` }
func (*InstanceParameters) DeepCopy ¶
func (in *InstanceParameters) DeepCopy() *InstanceParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceParameters.
func (*InstanceParameters) DeepCopyInto ¶
func (in *InstanceParameters) DeepCopyInto(out *InstanceParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceSpec ¶
type InstanceSpec struct { v1.ResourceSpec `json:",inline"` ForProvider InstanceParameters `json:"forProvider"` }
InstanceSpec defines the desired state of Instance
func (*InstanceSpec) DeepCopy ¶
func (in *InstanceSpec) DeepCopy() *InstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpec.
func (*InstanceSpec) DeepCopyInto ¶
func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceStatus ¶
type InstanceStatus struct { v1.ResourceStatus `json:",inline"` AtProvider InstanceObservation `json:"atProvider,omitempty"` }
InstanceStatus defines the observed state of Instance.
func (*InstanceStatus) DeepCopy ¶
func (in *InstanceStatus) DeepCopy() *InstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceStatus.
func (*InstanceStatus) DeepCopyInto ¶
func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoginConfigurationObservation ¶
type LoginConfigurationObservation struct { }
func (*LoginConfigurationObservation) DeepCopy ¶
func (in *LoginConfigurationObservation) DeepCopy() *LoginConfigurationObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoginConfigurationObservation.
func (*LoginConfigurationObservation) DeepCopyInto ¶
func (in *LoginConfigurationObservation) DeepCopyInto(out *LoginConfigurationObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoginConfigurationParameters ¶
type LoginConfigurationParameters struct { // whether auto generate password. if false, need set password. // +kubebuilder:validation:Required AutoGeneratePassword *string `json:"autoGeneratePassword" tf:"auto_generate_password,omitempty"` // Login password. // +kubebuilder:validation:Optional Password *string `json:"password,omitempty" tf:"password,omitempty"` }
func (*LoginConfigurationParameters) DeepCopy ¶
func (in *LoginConfigurationParameters) DeepCopy() *LoginConfigurationParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoginConfigurationParameters.
func (*LoginConfigurationParameters) DeepCopyInto ¶
func (in *LoginConfigurationParameters) DeepCopyInto(out *LoginConfigurationParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PublishPortsObservation ¶
type PublishPortsObservation struct { }
func (*PublishPortsObservation) DeepCopy ¶
func (in *PublishPortsObservation) DeepCopy() *PublishPortsObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublishPortsObservation.
func (*PublishPortsObservation) DeepCopyInto ¶
func (in *PublishPortsObservation) DeepCopyInto(out *PublishPortsObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PublishPortsParameters ¶
type PublishPortsParameters struct { // Container port. // +kubebuilder:validation:Required ContainerPort *float64 `json:"containerPort" tf:"container_port,omitempty"` // Host port. // +kubebuilder:validation:Required HostPort *float64 `json:"hostPort" tf:"host_port,omitempty"` // External IP. It defaults to 0.0.0.0. // +kubebuilder:validation:Optional IP *string `json:"ip,omitempty" tf:"ip,omitempty"` // The protocol defaults to tcp. Valid values: tcp, udp and sctp. // +kubebuilder:validation:Optional Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"` }
func (*PublishPortsParameters) DeepCopy ¶
func (in *PublishPortsParameters) DeepCopy() *PublishPortsParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublishPortsParameters.
func (*PublishPortsParameters) DeepCopyInto ¶
func (in *PublishPortsParameters) DeepCopyInto(out *PublishPortsParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumesObservation ¶
type VolumesObservation struct { }
func (*VolumesObservation) DeepCopy ¶
func (in *VolumesObservation) DeepCopy() *VolumesObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumesObservation.
func (*VolumesObservation) DeepCopyInto ¶
func (in *VolumesObservation) DeepCopyInto(out *VolumesObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumesParameters ¶
type VolumesParameters struct { // Container path. // +kubebuilder:validation:Required ContainerPath *string `json:"containerPath" tf:"container_path,omitempty"` // Host path. // +kubebuilder:validation:Required HostPath *string `json:"hostPath" tf:"host_path,omitempty"` }
func (*VolumesParameters) DeepCopy ¶
func (in *VolumesParameters) DeepCopy() *VolumesParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumesParameters.
func (*VolumesParameters) DeepCopyInto ¶
func (in *VolumesParameters) DeepCopyInto(out *VolumesParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.