Documentation ¶
Overview ¶
Package v1alpha1 contains the v1alpha1 group Rule and Filter resources of the Cloudflare provider. +kubebuilder:object:generate=true +groupName=firewall.cloudflare.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Filter
- func (in *Filter) DeepCopy() *Filter
- func (in *Filter) DeepCopyInto(out *Filter)
- func (in *Filter) DeepCopyObject() runtime.Object
- func (mg *Filter) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *Filter) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *Filter) GetProviderConfigReference() *xpv1.Reference
- func (mg *Filter) GetProviderReference() *xpv1.Reference
- func (mg *Filter) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (f *Filter) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Filter) SetConditions(c ...xpv1.Condition)
- func (mg *Filter) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Filter) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Filter) SetProviderReference(r *xpv1.Reference)
- func (mg *Filter) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type FilterList
- type FilterObservation
- type FilterParameters
- type FilterSpec
- type FilterStatus
- 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 (mg *Rule) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *Rule) GetProviderConfigReference() *xpv1.Reference
- func (mg *Rule) GetProviderReference() *xpv1.Reference
- func (mg *Rule) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (fr *Rule) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Rule) SetConditions(c ...xpv1.Condition)
- func (mg *Rule) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Rule) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Rule) SetProviderReference(r *xpv1.Reference)
- func (mg *Rule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type RuleBypassProduct
- type RuleList
- type RuleObservation
- type RuleParameters
- type RuleSpec
- type RuleStatus
Constants ¶
const ( Group = "firewall.cloudflare.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var ( RuleKind = reflect.TypeOf(Rule{}).Name() RuleGroupKind = schema.GroupKind{Group: Group, Kind: RuleKind}.String() RuleKindAPIVersion = RuleKind + "." + SchemeGroupVersion.String() RuleGroupVersionKind = SchemeGroupVersion.WithKind(RuleKind) )
Rule type metadata.
var ( FilterKind = reflect.TypeOf(Filter{}).Name() FilterGroupKind = schema.GroupKind{Group: Group, Kind: FilterKind}.String() FilterKindAPIVersion = FilterKind + "." + SchemeGroupVersion.String() FilterGroupVersionKind = SchemeGroupVersion.WithKind(FilterKind) )
Filter type metadata.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FilterSpec `json:"spec"` Status FilterStatus `json:"status,omitempty"` }
A Filter is a matching expression that can be referenced by one or more firewall rules. +kubebuilder:subresource:status +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="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,cloudflare}
func (*Filter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filter.
func (*Filter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Filter) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Filter) GetCondition ¶
func (mg *Filter) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Filter.
func (*Filter) GetDeletionPolicy ¶
func (mg *Filter) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Filter.
func (*Filter) GetProviderConfigReference ¶
GetProviderConfigReference of this Filter.
func (*Filter) GetProviderReference ¶
GetProviderReference of this Filter. Deprecated: Use GetProviderConfigReference.
func (*Filter) GetWriteConnectionSecretToReference ¶
func (mg *Filter) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Filter.
func (*Filter) ResolveReferences ¶
ResolveReferences of this Filter
func (*Filter) SetConditions ¶
SetConditions of this Filter.
func (*Filter) SetDeletionPolicy ¶
func (mg *Filter) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Filter.
func (*Filter) SetProviderConfigReference ¶
SetProviderConfigReference of this Filter.
func (*Filter) SetProviderReference ¶
SetProviderReference of this Filter. Deprecated: Use SetProviderConfigReference.
func (*Filter) SetWriteConnectionSecretToReference ¶
func (mg *Filter) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Filter.
type FilterList ¶
type FilterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Filter `json:"items"` }
FilterList contains a list of Filter
func (*FilterList) DeepCopy ¶
func (in *FilterList) DeepCopy() *FilterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterList.
func (*FilterList) DeepCopyInto ¶
func (in *FilterList) DeepCopyInto(out *FilterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FilterList) DeepCopyObject ¶
func (in *FilterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*FilterList) GetItems ¶
func (l *FilterList) GetItems() []resource.Managed
GetItems of this FilterList.
type FilterObservation ¶
type FilterObservation struct{}
FilterObservation is the observable fields of a Filter.
func (*FilterObservation) DeepCopy ¶
func (in *FilterObservation) DeepCopy() *FilterObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterObservation.
func (*FilterObservation) DeepCopyInto ¶
func (in *FilterObservation) DeepCopyInto(out *FilterObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FilterParameters ¶
type FilterParameters struct { // Expression is the filter expression used to match traffic. Expression string `json:"expression"` // Description is a human readable description of this rule. // +kubebuilder:validation:MaxLength=500 // +optional Description *string `json:"description,omitempty"` // Paused indicates if this rule is paused or not. // +optional Paused *bool `json:"paused,omitempty"` // ZoneID this Firewall Rule is for. // +immutable // +optional Zone *string `json:"zone,omitempty"` // ZoneRef references the zone object this Firewall Rule is for. // +immutable // +optional ZoneRef *xpv1.Reference `json:"zoneRef,omitempty"` // ZoneSelector selects the zone object this Firewall Rule is for. // +immutable // +optional ZoneSelector *xpv1.Selector `json:"zoneSelector,omitempty"` }
FilterParameters are the configurable fields of a Filter.
func (*FilterParameters) DeepCopy ¶
func (in *FilterParameters) DeepCopy() *FilterParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterParameters.
func (*FilterParameters) DeepCopyInto ¶
func (in *FilterParameters) DeepCopyInto(out *FilterParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FilterSpec ¶
type FilterSpec struct { xpv1.ResourceSpec `json:",inline"` ForProvider FilterParameters `json:"forProvider"` }
A FilterSpec defines the desired state of a Filter.
func (*FilterSpec) DeepCopy ¶
func (in *FilterSpec) DeepCopy() *FilterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterSpec.
func (*FilterSpec) DeepCopyInto ¶
func (in *FilterSpec) DeepCopyInto(out *FilterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FilterStatus ¶
type FilterStatus struct { xpv1.ResourceStatus `json:",inline"` AtProvider FilterObservation `json:"atProvider,omitempty"` }
A FilterStatus represents the observed state of a Filter.
func (*FilterStatus) DeepCopy ¶
func (in *FilterStatus) DeepCopy() *FilterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterStatus.
func (*FilterStatus) DeepCopyInto ¶
func (in *FilterStatus) DeepCopyInto(out *FilterStatus)
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"` }
A Rule applies a firewall filter in a particular order to a Zone. +kubebuilder:subresource:status +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="AGE",type="date",JSONPath=".metadata.creationTimestamp" +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) GetDeletionPolicy ¶
func (mg *Rule) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Rule.
func (*Rule) GetProviderConfigReference ¶
GetProviderConfigReference of this Rule.
func (*Rule) GetProviderReference ¶
GetProviderReference of this Rule. Deprecated: Use GetProviderConfigReference.
func (*Rule) GetWriteConnectionSecretToReference ¶
func (mg *Rule) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Rule.
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) SetProviderConfigReference ¶
SetProviderConfigReference of this Rule.
func (*Rule) SetProviderReference ¶
SetProviderReference of this Rule. Deprecated: Use SetProviderConfigReference.
func (*Rule) SetWriteConnectionSecretToReference ¶
func (mg *Rule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Rule.
type RuleBypassProduct ¶
type RuleBypassProduct string
RuleBypassProduct identifies a product that will be bypassed when the bypass action is used. +kubebuilder:validation:Enum=zoneLockdown;uaBlock;bic;hot;securityLevel;rateLimit;waf
type RuleList ¶
type RuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Rule `json:"items"` }
RuleList contains a list of Rule
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{}
RuleObservation is the observable fields of a Rule.
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 { // Action is the action to apply to a matching request. // +kubebuilder:validation:Enum=block;challenge;js_challenge;allow;log;bypass Action string `json:"action"` // BypassProducts lists the products by identifier that should be // bypassed when the bypass action is used. // +optional BypassProducts []RuleBypassProduct `json:"bypassProducts,omitempty"` // Description is a human readable description of this rule. // +kubebuilder:validation:MaxLength=500 // +optional Description *string `json:"description,omitempty"` // Filter refers to a Filter ID that this rule uses to match // traffic. // +optional Filter *string `json:"filter,omitempty"` // FilterRef references the filter object this rule uses to match traffic. // +optional FilterRef *xpv1.Reference `json:"filterRef,omitempty"` // FilterSelector selects the filter object this rule uses to match traffic. // +optional FilterSelector *xpv1.Selector `json:"filterSelector,omitempty"` // Paused indicates if this rule is paused or not. // +optional Paused *bool `json:"paused,omitempty"` // Priority is the priority of this Firewall Rule, that controls // processing order. Rules without a priority set will be sequenced // after rules with a priority set. // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=2147483647 // +optional Priority *int32 `json:"priority,omitempty"` // ZoneID this Firewall Rule is for. // +immutable // +optional Zone *string `json:"zone,omitempty"` // ZoneRef references the zone object this Firewall Rule is for. // +immutable // +optional ZoneRef *xpv1.Reference `json:"zoneRef,omitempty"` // ZoneSelector selects the zone object this Firewall Rule is for. // +immutable // +optional ZoneSelector *xpv1.Selector `json:"zoneSelector,omitempty"` }
RuleParameters are the configurable fields of a Rule.
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 { xpv1.ResourceSpec `json:",inline"` ForProvider RuleParameters `json:"forProvider"` }
A RuleSpec defines the desired state of a 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 { xpv1.ResourceStatus `json:",inline"` AtProvider RuleObservation `json:"atProvider,omitempty"` }
A RuleStatus represents the observed state of a 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.