v1alpha1

package
v0.0.0-...-b890ebe Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=filters.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "filters.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	Filter_Kind             = "Filter"
	Filter_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Filter_Kind}.String()
	Filter_KindAPIVersion   = Filter_Kind + "." + CRDGroupVersion.String()
	Filter_GroupVersionKind = CRDGroupVersion.WithKind(Filter_Kind)
)

Repository type metadata.

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

Functions

This section is empty.

Types

type Filter

type Filter struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.expression) || (has(self.initProvider) && has(self.initProvider.expression))",message="spec.forProvider.expression is a required parameter"
	Spec   FilterSpec   `json:"spec"`
	Status FilterStatus `json:"status,omitempty"`
}

Filter is the Schema for the Filters API. Filter expressions that can be referenced across multiple features, e.g. Firewall Rules. See what is a filter https://developers.cloudflare.com/firewall/api/cf-filters/what-is-a-filter/ for more details and available fields and operators. +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 (*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) GetConnectionDetailsMapping

func (tr *Filter) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Filter

func (*Filter) GetDeletionPolicy

func (mg *Filter) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Filter.

func (*Filter) GetID

func (tr *Filter) GetID() string

GetID returns ID of underlying Terraform resource of this Filter

func (*Filter) GetInitParameters

func (tr *Filter) GetInitParameters() (map[string]any, error)

GetInitParameters of this Filter

func (*Filter) GetManagementPolicies

func (mg *Filter) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Filter.

func (*Filter) GetObservation

func (tr *Filter) GetObservation() (map[string]any, error)

GetObservation of this Filter

func (*Filter) GetParameters

func (tr *Filter) GetParameters() (map[string]any, error)

GetParameters of this Filter

func (*Filter) GetProviderConfigReference

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

GetProviderConfigReference of this Filter.

func (*Filter) GetPublishConnectionDetailsTo

func (mg *Filter) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Filter.

func (*Filter) GetTerraformResourceType

func (mg *Filter) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Filter

func (*Filter) GetTerraformSchemaVersion

func (tr *Filter) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Filter) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Filter.

func (*Filter) LateInitialize

func (tr *Filter) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Filter using its observed tfState. returns True if there are any spec changes for the resource.

func (*Filter) ResolveReferences

func (mg *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) SetManagementPolicies

func (mg *Filter) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Filter.

func (*Filter) SetObservation

func (tr *Filter) SetObservation(obs map[string]any) error

SetObservation for this Filter

func (*Filter) SetParameters

func (tr *Filter) SetParameters(params map[string]any) error

SetParameters for this Filter

func (*Filter) SetProviderConfigReference

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

SetProviderConfigReference of this Filter.

func (*Filter) SetPublishConnectionDetailsTo

func (mg *Filter) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Filter.

func (*Filter) SetWriteConnectionSecretToReference

func (mg *Filter) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Filter.

type FilterInitParameters

type FilterInitParameters struct {

	// (String) A note that you can use to describe the purpose of the filter.
	// A note that you can use to describe the purpose of the filter.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The filter expression to be used.
	// The filter expression to be used.
	Expression *string `json:"expression,omitempty" tf:"expression,omitempty"`

	// (Boolean) Whether this filter is currently paused.
	// Whether this filter is currently paused.
	Paused *bool `json:"paused,omitempty" tf:"paused,omitempty"`

	// (String) Short reference tag to quickly select related rules.
	// Short reference tag to quickly select related rules.
	Ref *string `json:"ref,omitempty" tf:"ref,omitempty"`
}

func (*FilterInitParameters) DeepCopy

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

func (*FilterInitParameters) DeepCopyInto

func (in *FilterInitParameters) DeepCopyInto(out *FilterInitParameters)

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

type FilterList

type FilterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Filter `json:"items"`
}

FilterList contains a list of Filters

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 {

	// (String) A note that you can use to describe the purpose of the filter.
	// A note that you can use to describe the purpose of the filter.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The filter expression to be used.
	// The filter expression to be used.
	Expression *string `json:"expression,omitempty" tf:"expression,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (Boolean) Whether this filter is currently paused.
	// Whether this filter is currently paused.
	Paused *bool `json:"paused,omitempty" tf:"paused,omitempty"`

	// (String) Short reference tag to quickly select related rules.
	// Short reference tag to quickly select related rules.
	Ref *string `json:"ref,omitempty" tf:"ref,omitempty"`

	// (String) The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
	// The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
	ZoneID *string `json:"zoneId,omitempty" tf:"zone_id,omitempty"`
}

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 {

	// (String) A note that you can use to describe the purpose of the filter.
	// A note that you can use to describe the purpose of the filter.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The filter expression to be used.
	// The filter expression to be used.
	// +kubebuilder:validation:Optional
	Expression *string `json:"expression,omitempty" tf:"expression,omitempty"`

	// (Boolean) Whether this filter is currently paused.
	// Whether this filter is currently paused.
	// +kubebuilder:validation:Optional
	Paused *bool `json:"paused,omitempty" tf:"paused,omitempty"`

	// (String) Short reference tag to quickly select related rules.
	// Short reference tag to quickly select related rules.
	// +kubebuilder:validation:Optional
	Ref *string `json:"ref,omitempty" tf:"ref,omitempty"`

	// (String) The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
	// The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
	// +crossplane:generate:reference:type=github.com/milkpirate/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 (*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 {
	v1.ResourceSpec `json:",inline"`
	ForProvider     FilterParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider FilterInitParameters `json:"initProvider,omitempty"`
}

FilterSpec defines the desired state of 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 {
	v1.ResourceStatus `json:",inline"`
	AtProvider        FilterObservation `json:"atProvider,omitempty"`
}

FilterStatus defines the observed state of 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.

Jump to

Keyboard shortcuts

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