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 Spectrum resources of the Template provider. +kubebuilder:object:generate=true +groupName=spectrum.cloudflare.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "spectrum.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 (
	ApplicationKind             = reflect.TypeOf(Application{}).Name()
	ApplicationGroupKind        = schema.GroupKind{Group: Group, Kind: ApplicationKind}.String()
	ApplicationKindAPIVersion   = ApplicationKind + "." + SchemeGroupVersion.String()
	ApplicationGroupVersionKind = SchemeGroupVersion.WithKind(ApplicationKind)
)

Application type metadata.

Functions

This section is empty.

Types

type Application

type Application struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ApplicationSpec   `json:"spec"`
	Status ApplicationStatus `json:"status,omitempty"`
}

A Application is a set of common settings applied to one or more domains. +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:resource:scope=Cluster,categories={crossplane,managed,cloudflare}

func (*Application) DeepCopy

func (in *Application) DeepCopy() *Application

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

func (*Application) DeepCopyInto

func (in *Application) DeepCopyInto(out *Application)

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

func (*Application) DeepCopyObject

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

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

func (*Application) GetCondition

func (mg *Application) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Application.

func (*Application) GetDeletionPolicy

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

GetDeletionPolicy of this Application.

func (*Application) GetProviderConfigReference

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

GetProviderConfigReference of this Application.

func (*Application) GetProviderReference

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

GetProviderReference of this Application. Deprecated: Use GetProviderConfigReference.

func (*Application) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Application.

func (*Application) ResolveReferences

func (dr *Application) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences resolves references to the Zone that this Spectrum Application is managed on.

func (*Application) SetConditions

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

SetConditions of this Application.

func (*Application) SetDeletionPolicy

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

SetDeletionPolicy of this Application.

func (*Application) SetProviderConfigReference

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

SetProviderConfigReference of this Application.

func (*Application) SetProviderReference

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

SetProviderReference of this Application. Deprecated: Use SetProviderConfigReference.

func (*Application) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Application.

type ApplicationList

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

ApplicationList contains a list of Application objects.

func (*ApplicationList) DeepCopy

func (in *ApplicationList) DeepCopy() *ApplicationList

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

func (*ApplicationList) DeepCopyInto

func (in *ApplicationList) DeepCopyInto(out *ApplicationList)

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

func (*ApplicationList) DeepCopyObject

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

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

func (*ApplicationList) GetItems

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

GetItems of this ApplicationList.

type ApplicationObservation

type ApplicationObservation struct {
	CreatedOn  *metav1.Time `json:"createdOn,omitempty"`
	ModifiedOn *metav1.Time `json:"modifiedOn,omitempty"`
}

ApplicationObservation are the observable fields of a Spectrum Application.

func (*ApplicationObservation) DeepCopy

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

func (*ApplicationObservation) DeepCopyInto

func (in *ApplicationObservation) DeepCopyInto(out *ApplicationObservation)

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

type ApplicationParameters

type ApplicationParameters struct {
	// Protocol port configuration at Cloudflare’s edge.
	Protocol string `json:"protocol"`

	// The name and type of DNS record for the Spectrum application.
	DNS SpectrumApplicationDNS `json:"dns,omitempty"`

	// OriginDirect is a list of destination addresses to the origin.
	OriginDirect []string `json:"originDirect,omitempty"`

	// OriginPort is the port range when using Origin DNS
	// +optional
	OriginPort *SpectrumApplicationOriginPort `json:"originPort,omitempty"`

	// OriginDNS is the DNS entry when using DNS Origins
	// +optional
	OriginDNS *SpectrumApplicationOriginDNS `json:"originDNS,omitempty"`

	// IPFirewall enables IP Access Rules for this application.
	// +optional
	IPFirewall *bool `json:"ipFirewall,omitempty"`

	// ProxyProtocol enables / sets the Proxy Protocol to the origin.
	// +kubebuilder:validation:Enum=off;v1;v2;simple
	// +optional
	ProxyProtocol *string `json:"proxyProtocol,omitempty"`

	// TLS is the type of TLS termination associated with the application.
	// +kubebuilder:validation:Enum=off;flexible;full;strict
	// +optional
	TLS *string `json:"tls,omitempty"`

	// TrafficType determines how data travels from the edge to the origin.
	// +kubebuilder:validation:Enum=direct;http;https
	// +optional
	TrafficType *string `json:"trafficType,omitempty"`

	// EdgeIPs is the anycast edge IP configuration for the hostname of this application.
	// +optional
	EdgeIPs *SpectrumApplicationEdgeIPs `json:"edgeIPs,omitempty"`

	// ArgoSmartRouting enables Argo Smart Routing for this application.
	// +optional
	ArgoSmartRouting *bool `json:"argoSmartRouting,omitempty"`

	// ZoneID this Spectrum Application is managed on.
	// +immutable
	// +optional
	Zone *string `json:"zone,omitempty"`

	// ZoneRef references the Zone object this Spectrum Application is managed on.
	// +optional
	ZoneRef *xpv1.Reference `json:"zoneRef,omitempty"`

	// ZoneSelector selects the Zone object this Spectrum Application is managed on.
	// +optional
	ZoneSelector *xpv1.Selector `json:"zoneSelector,omitempty"`
}

ApplicationParameters are the configurable fields of a Spectrum Application.

func (*ApplicationParameters) DeepCopy

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

func (*ApplicationParameters) DeepCopyInto

func (in *ApplicationParameters) DeepCopyInto(out *ApplicationParameters)

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

type ApplicationSpec

type ApplicationSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       ApplicationParameters `json:"forProvider"`
}

A ApplicationSpec defines the desired state of a Spectrum Application.

func (*ApplicationSpec) DeepCopy

func (in *ApplicationSpec) DeepCopy() *ApplicationSpec

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

func (*ApplicationSpec) DeepCopyInto

func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)

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

type ApplicationStatus

type ApplicationStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          ApplicationObservation `json:"atProvider,omitempty"`
}

A ApplicationStatus represents the observed state of a Spectrum Application.

func (*ApplicationStatus) DeepCopy

func (in *ApplicationStatus) DeepCopy() *ApplicationStatus

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

func (*ApplicationStatus) DeepCopyInto

func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)

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

type SpectrumApplicationDNS

type SpectrumApplicationDNS struct {
	// Type is the type of edge IP configuration specified
	// Only valid with CNAME DNS names
	// +kubebuilder:validation:Enum=CNAME;ADDRESS
	Type string `json:"type"`

	// Name is the name of the DNS record associated with the application.
	// +kubebuilder:validation:Format=hostname
	Name string `json:"name"`
}

SpectrumApplicationDNS holds the external DNS configuration for a Spectrum Application.

func (*SpectrumApplicationDNS) DeepCopy

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

func (*SpectrumApplicationDNS) DeepCopyInto

func (in *SpectrumApplicationDNS) DeepCopyInto(out *SpectrumApplicationDNS)

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

type SpectrumApplicationEdgeIPs

type SpectrumApplicationEdgeIPs struct {
	// Type is the type of edge IP configuration specified.
	// +kubebuilder:validation:Enum=dynamic;static
	Type string `json:"type"`

	// Connectivity is IP versions supported for inbound connections on Spectrum anycast IPs.
	// +kubebuilder:validation:Enum=all;ipv4;ipv6
	// +optional
	Connectivity *string `json:"connectivity,omitempty"`

	// IPs is a slice of customer owned IPs we broadcast via anycast for this hostname and application.
	// +optional
	IPs []string `json:"ips,omitempty"`
}

SpectrumApplicationEdgeIPs holds the anycast edge IP configuration for the hostname of this application.

func (*SpectrumApplicationEdgeIPs) DeepCopy

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

func (*SpectrumApplicationEdgeIPs) DeepCopyInto

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

type SpectrumApplicationOriginDNS

type SpectrumApplicationOriginDNS struct {
	// Name is the name of the Origin DNS for the Spectrum Application
	// +kubebuilder:validation:Format=hostname
	Name string `json:"name"`
}

SpectrumApplicationOriginDNS holds the origin DNS configuration for a Spectrum Application.

func (*SpectrumApplicationOriginDNS) DeepCopy

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

func (*SpectrumApplicationOriginDNS) DeepCopyInto

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

type SpectrumApplicationOriginPort

type SpectrumApplicationOriginPort struct {
	// Port is a singular port for a Spectrum Application
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65535
	// +optional
	Port *uint32 `json:"port,omitempty"`

	// Start is the start of a port range for a Spectrum Application
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65535
	// +optional
	Start *uint32 `json:"start,omitempty"`

	// End is the end of a port range for a Spectrum Application
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65535
	// +optional
	End *uint32 `json:"end,omitempty"`
}

SpectrumApplicationOriginPort holds the origin ports for a Spectrum Application

func (*SpectrumApplicationOriginPort) DeepCopy

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

func (*SpectrumApplicationOriginPort) DeepCopyInto

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