Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=billingrule.taikun.jet.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type LabelObservation
- type LabelParameters
- type Rule
- func (in *Rule) DeepCopy() *Rule
- func (in *Rule) DeepCopyInto(out *Rule)
- func (in *Rule) DeepCopyObject() runtime.Object
- func (mg *Rule) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Rule) GetConnectionDetailsMapping() map[string]string
- func (mg *Rule) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Rule) GetID() string
- func (tr *Rule) GetObservation() (map[string]any, error)
- func (tr *Rule) GetParameters() (map[string]any, error)
- func (mg *Rule) GetProviderConfigReference() *xpv1.Reference
- func (mg *Rule) GetProviderReference() *xpv1.Reference
- func (mg *Rule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Rule) GetTerraformResourceType() string
- func (tr *Rule) GetTerraformSchemaVersion() int
- func (mg *Rule) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Rule) LateInitialize(attrs []byte) (bool, error)
- func (mg *Rule) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Rule) SetConditions(c ...xpv1.Condition)
- func (mg *Rule) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *Rule) SetObservation(obs map[string]any) error
- func (tr *Rule) SetParameters(params map[string]any) error
- func (mg *Rule) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Rule) SetProviderReference(r *xpv1.Reference)
- func (mg *Rule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Rule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type RuleList
- type RuleObservation
- type RuleParameters
- type RuleSpec
- type RuleStatus
Constants ¶
const ( CRDGroup = "billingrule.taikun.jet.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 ( Rule_Kind = "Rule" Rule_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Rule_Kind}.String() Rule_KindAPIVersion = Rule_Kind + "." + CRDGroupVersion.String() Rule_GroupVersionKind = CRDGroupVersion.WithKind(Rule_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type LabelObservation ¶
type LabelObservation struct { // ID of the label. ID *string `json:"id,omitempty" tf:"id,omitempty"` }
func (*LabelObservation) DeepCopy ¶
func (in *LabelObservation) DeepCopy() *LabelObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelObservation.
func (*LabelObservation) DeepCopyInto ¶
func (in *LabelObservation) DeepCopyInto(out *LabelObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LabelParameters ¶
type LabelParameters struct { // Key of the label. // +kubebuilder:validation:Required Key *string `json:"key" tf:"key,omitempty"` // Value of the label. // +kubebuilder:validation:Required Value *string `json:"value" tf:"value,omitempty"` }
func (*LabelParameters) DeepCopy ¶
func (in *LabelParameters) DeepCopy() *LabelParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelParameters.
func (*LabelParameters) DeepCopyInto ¶
func (in *LabelParameters) DeepCopyInto(out *LabelParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Rule ¶
type Rule struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RuleSpec `json:"spec"` Status RuleStatus `json:"status,omitempty"` }
Rule is the Schema for the Rules API. <no value> +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,taikunjet}
func (*Rule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rule) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Rule) GetCondition ¶
func (mg *Rule) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Rule.
func (*Rule) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Rule
func (*Rule) GetDeletionPolicy ¶
func (mg *Rule) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Rule.
func (*Rule) GetObservation ¶
GetObservation of this Rule
func (*Rule) GetParameters ¶
GetParameters of this Rule
func (*Rule) GetProviderConfigReference ¶
GetProviderConfigReference of this Rule.
func (*Rule) GetProviderReference ¶
GetProviderReference of this Rule. Deprecated: Use GetProviderConfigReference.
func (*Rule) GetPublishConnectionDetailsTo ¶
func (mg *Rule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Rule.
func (*Rule) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Rule
func (*Rule) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Rule) GetWriteConnectionSecretToReference ¶
func (mg *Rule) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Rule.
func (*Rule) LateInitialize ¶
LateInitialize this Rule using its observed tfState. returns True if there are any spec changes for the resource.
func (*Rule) ResolveReferences ¶
ResolveReferences of this Rule.
func (*Rule) SetConditions ¶
SetConditions of this Rule.
func (*Rule) SetDeletionPolicy ¶
func (mg *Rule) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Rule.
func (*Rule) SetObservation ¶
SetObservation for this Rule
func (*Rule) SetParameters ¶
SetParameters for this Rule
func (*Rule) SetProviderConfigReference ¶
SetProviderConfigReference of this Rule.
func (*Rule) SetProviderReference ¶
SetProviderReference of this Rule. Deprecated: Use SetProviderConfigReference.
func (*Rule) SetPublishConnectionDetailsTo ¶
func (mg *Rule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Rule.
func (*Rule) SetWriteConnectionSecretToReference ¶
func (mg *Rule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Rule.
type RuleList ¶
type RuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Rule `json:"items"` }
RuleList contains a list of Rules
func (*RuleList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList.
func (*RuleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuleList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuleObservation ¶
type RuleObservation struct { // The creator of the billing rule. CreatedBy *string `json:"createdBy,omitempty" tf:"created_by,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` // Labels linked to the billing rule. // +kubebuilder:validation:Required Label []LabelObservation `json:"label,omitempty" tf:"label,omitempty"` // Time and date of last modification. LastModified *string `json:"lastModified,omitempty" tf:"last_modified,omitempty"` // The last user to have modified the billing rule. LastModifiedBy *string `json:"lastModifiedBy,omitempty" tf:"last_modified_by,omitempty"` }
func (*RuleObservation) DeepCopy ¶
func (in *RuleObservation) DeepCopy() *RuleObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleObservation.
func (*RuleObservation) DeepCopyInto ¶
func (in *RuleObservation) DeepCopyInto(out *RuleObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleParameters ¶
type RuleParameters struct { // ID of the billing credential. // +crossplane:generate:reference:type=github.com/itera-io/provider-jet-taikun/apis/billingcredential/v1alpha1.Credential // +kubebuilder:validation:Optional BillingCredentialID *string `json:"billingCredentialId,omitempty" tf:"billing_credential_id,omitempty"` // Reference to a Credential in billingcredential to populate billingCredentialId. // +kubebuilder:validation:Optional BillingCredentialIDRef *v1.Reference `json:"billingCredentialIdRef,omitempty" tf:"-"` // Selector for a Credential in billingcredential to populate billingCredentialId. // +kubebuilder:validation:Optional BillingCredentialIDSelector *v1.Selector `json:"billingCredentialIdSelector,omitempty" tf:"-"` // Labels linked to the billing rule. // +kubebuilder:validation:Required Label []LabelParameters `json:"label" tf:"label,omitempty"` // The name of the Prometheus metric (e.g. volumes, flavors, networks) to bill. // +kubebuilder:validation:Required MetricName *string `json:"metricName" tf:"metric_name,omitempty"` // The name of the billing rule. // +kubebuilder:validation:Required Name *string `json:"name" tf:"name,omitempty"` // The price in CZK per selected unit. // +kubebuilder:validation:Required Price *float64 `json:"price" tf:"price,omitempty"` // The type of billing rule: `Count` (calculate package as unit) or `Sum` (calculate per quantity). // +kubebuilder:validation:Required Type *string `json:"type" tf:"type,omitempty"` }
func (*RuleParameters) DeepCopy ¶
func (in *RuleParameters) DeepCopy() *RuleParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleParameters.
func (*RuleParameters) DeepCopyInto ¶
func (in *RuleParameters) DeepCopyInto(out *RuleParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleSpec ¶
type RuleSpec struct { v1.ResourceSpec `json:",inline"` ForProvider RuleParameters `json:"forProvider"` }
RuleSpec defines the desired state of Rule
func (*RuleSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleSpec.
func (*RuleSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleStatus ¶
type RuleStatus struct { v1.ResourceStatus `json:",inline"` AtProvider RuleObservation `json:"atProvider,omitempty"` }
RuleStatus defines the observed state of Rule.
func (*RuleStatus) DeepCopy ¶
func (in *RuleStatus) DeepCopy() *RuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleStatus.
func (*RuleStatus) DeepCopyInto ¶
func (in *RuleStatus) DeepCopyInto(out *RuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.