Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=firewall.cloudflare.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- 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 = "firewall.cloudflare.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 ( 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 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,cloudflare}
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 {
ID *string `json:"id,omitempty" tf:"id,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 { // The action to apply to a matched request. Available values: `block`, `challenge`, `allow`, `js_challenge`, `managed_challenge`, `log`, `bypass`. // +kubebuilder:validation:Required Action *string `json:"action" tf:"action,omitempty"` // A description of the rule to help identify it. // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // The identifier of the Filter to use for determining if the Firewall Rule should be triggered. // +crossplane:generate:reference:type=github.com/cdloh/provider-cloudflare/apis/filters/v1alpha1.Filter // +kubebuilder:validation:Optional FilterID *string `json:"filterId,omitempty" tf:"filter_id,omitempty"` // Reference to a Filter in filters to populate filterId. // +kubebuilder:validation:Optional FilterIDRef *v1.Reference `json:"filterIdRef,omitempty" tf:"-"` // Selector for a Filter in filters to populate filterId. // +kubebuilder:validation:Optional FilterIDSelector *v1.Selector `json:"filterIdSelector,omitempty" tf:"-"` // Whether this filter based firewall rule is currently paused. // +kubebuilder:validation:Optional Paused *bool `json:"paused,omitempty" tf:"paused,omitempty"` // The priority of the rule to allow control of processing order. A lower number indicates high priority. If not provided, any rules with a priority will be sequenced before those without. // +kubebuilder:validation:Optional Priority *float64 `json:"priority,omitempty" tf:"priority,omitempty"` // List of products to bypass for a request when the bypass action is used. Available values: `zoneLockdown`, `uaBlock`, `bic`, `hot`, `securityLevel`, `rateLimit`, `waf`. // +kubebuilder:validation:Optional Products []*string `json:"products,omitempty" tf:"products,omitempty"` // The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.** // +crossplane:generate:reference:type=github.com/cdloh/provider-cloudflare/apis/zone/v1alpha1.Zone // +kubebuilder:validation:Optional ZoneID *string `json:"zoneId,omitempty" tf:"zone_id,omitempty"` // Reference to a Zone in zone to populate zoneId. // +kubebuilder:validation:Optional ZoneIDRef *v1.Reference `json:"zoneIdRef,omitempty" tf:"-"` // Selector for a Zone in zone to populate zoneId. // +kubebuilder:validation:Optional ZoneIDSelector *v1.Selector `json:"zoneIdSelector,omitempty" tf:"-"` }
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.