v1alpha1

package
v0.0.0-...-be1e11a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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

View Source
const (
	Group   = "firewall.cloudflare.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
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}
)
View Source
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.

View Source
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

func (in *Filter) DeepCopy() *Filter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filter.

func (*Filter) DeepCopyInto

func (in *Filter) DeepCopyInto(out *Filter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Filter) DeepCopyObject

func (in *Filter) DeepCopyObject() runtime.Object

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

func (mg *Filter) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Filter.

func (*Filter) GetProviderReference

func (mg *Filter) GetProviderReference() *xpv1.Reference

GetProviderReference of this Filter. Deprecated: Use GetProviderConfigReference.

func (*Filter) GetWriteConnectionSecretToReference

func (mg *Filter) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Filter.

func (*Filter) ResolveReferences

func (f *Filter) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Filter

func (*Filter) SetConditions

func (mg *Filter) SetConditions(c ...xpv1.Condition)

SetConditions of this Filter.

func (*Filter) SetDeletionPolicy

func (mg *Filter) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Filter.

func (*Filter) SetProviderConfigReference

func (mg *Filter) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Filter.

func (*Filter) SetProviderReference

func (mg *Filter) SetProviderReference(r *xpv1.Reference)

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

func (in *Rule) DeepCopy() *Rule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Rule) DeepCopyObject

func (in *Rule) DeepCopyObject() runtime.Object

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

func (mg *Rule) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Rule.

func (*Rule) GetProviderReference

func (mg *Rule) GetProviderReference() *xpv1.Reference

GetProviderReference of this Rule. Deprecated: Use GetProviderConfigReference.

func (*Rule) GetWriteConnectionSecretToReference

func (mg *Rule) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Rule.

func (*Rule) ResolveReferences

func (fr *Rule) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Rule

func (*Rule) SetConditions

func (mg *Rule) SetConditions(c ...xpv1.Condition)

SetConditions of this Rule.

func (*Rule) SetDeletionPolicy

func (mg *Rule) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Rule.

func (*Rule) SetProviderConfigReference

func (mg *Rule) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Rule.

func (*Rule) SetProviderReference

func (mg *Rule) SetProviderReference(r *xpv1.Reference)

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

func (in *RuleList) DeepCopy() *RuleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList.

func (*RuleList) DeepCopyInto

func (in *RuleList) DeepCopyInto(out *RuleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RuleList) DeepCopyObject

func (in *RuleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RuleList) GetItems

func (l *RuleList) GetItems() []resource.Managed

GetItems of this RuleList.

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

func (in *RuleSpec) DeepCopy() *RuleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleSpec.

func (*RuleSpec) DeepCopyInto

func (in *RuleSpec) DeepCopyInto(out *RuleSpec)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL