v1alpha1

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cdn v1alpha1 API group +kubebuilder:object:generate=true +groupName=cdn.gympass.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cdn.gympass.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type CDNClass added in v0.2.0

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

	Spec   CDNClassSpec   `json:"spec,omitempty"`
	Status CDNClassStatus `json:"status,omitempty"`
}

CDNClass is the Schema for the cdnclasses API

func (*CDNClass) DeepCopy added in v0.2.0

func (in *CDNClass) DeepCopy() *CDNClass

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

func (*CDNClass) DeepCopyInto added in v0.2.0

func (in *CDNClass) DeepCopyInto(out *CDNClass)

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

func (*CDNClass) DeepCopyObject added in v0.2.0

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

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

type CDNClassList added in v0.2.0

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

CDNClassList contains a list of CDNClass

func (*CDNClassList) DeepCopy added in v0.2.0

func (in *CDNClassList) DeepCopy() *CDNClassList

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

func (*CDNClassList) DeepCopyInto added in v0.2.0

func (in *CDNClassList) DeepCopyInto(out *CDNClassList)

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

func (*CDNClassList) DeepCopyObject added in v0.2.0

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

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

type CDNClassSpec added in v0.2.0

type CDNClassSpec struct {
	// CertificateArn is deprecated, certs are now automatically discovered and this field is ignored
	// +optional
	CertificateArn string `json:"certificateArn"`
	// HostedZoneID represents a valid hosted zone ID for a domain name
	// +kubebuilder:validation:Required
	HostedZoneID string `json:"hostedZoneID"`
	// CreateAlias determine if should create an DNS alias for distribution
	// +kubebuilder:validation:Required
	CreateAlias bool `json:"createAlias"`
	// TXTOwnerValue is the value to be used when creating ownership TXT records for aliases
	// +kubebuilder:validation:Required
	TXTOwnerValue string `json:"txtOwnerValue"`
}

CDNClassSpec defines the desired state of CDNClass

func (*CDNClassSpec) DeepCopy added in v0.2.0

func (in *CDNClassSpec) DeepCopy() *CDNClassSpec

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

func (*CDNClassSpec) DeepCopyInto added in v0.2.0

func (in *CDNClassSpec) DeepCopyInto(out *CDNClassSpec)

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

type CDNClassStatus added in v0.2.0

type CDNClassStatus struct {
	// CDNClass resource condition
	// +optional
	// +nullable
	Conditions []metav1.Condition `json:"conditions"`
}

CDNClassStatus defines the observed state of CDNClass

func (*CDNClassStatus) DeepCopy added in v0.2.0

func (in *CDNClassStatus) DeepCopy() *CDNClassStatus

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

func (*CDNClassStatus) DeepCopyInto added in v0.2.0

func (in *CDNClassStatus) DeepCopyInto(out *CDNClassStatus)

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

type CDNStatus

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

	Status CDNStatusStatus `json:"status,omitempty"`
}

CDNStatus is the Schema for the cdnstatuses API

func (*CDNStatus) DeepCopy

func (in *CDNStatus) DeepCopy() *CDNStatus

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

func (*CDNStatus) DeepCopyInto

func (in *CDNStatus) DeepCopyInto(out *CDNStatus)

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

func (*CDNStatus) DeepCopyObject

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

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

func (*CDNStatus) Exists added in v0.0.13

func (c *CDNStatus) Exists() bool

Exists returns whether the CDNStatus exists on Kubernetes or not

func (*CDNStatus) GetIngressKeys

func (c *CDNStatus) GetIngressKeys() []client.ObjectKey

GetIngressKeys returns keys to manipulate all IngressRef stored in the CDNStatus

func (*CDNStatus) HasIngressRef

func (c *CDNStatus) HasIngressRef(ing namespacedName) bool

HasIngressRef returns whether the given Ingress is part of the refs stored by CDNStatus

func (*CDNStatus) RemoveDNSRecords

func (c *CDNStatus) RemoveDNSRecords(records []string)

RemoveDNSRecords deletes the given records from the DNS status section

func (*CDNStatus) RemoveIngressRef

func (c *CDNStatus) RemoveIngressRef(ing namespacedName)

RemoveIngressRef ensures the given Ingress is not referenced

func (*CDNStatus) SetAliases

func (c *CDNStatus) SetAliases(aliases []string)

SetAliases sets the CDN's aliases

func (*CDNStatus) SetDNSSync added in v0.0.10

func (c *CDNStatus) SetDNSSync(synced bool)

SetDNSSync sets the DNS sync status if there is any DNS status to report

func (*CDNStatus) SetInfo added in v0.0.13

func (c *CDNStatus) SetInfo(id, arn, address string)

SetInfo sets Distribution basic info

func (*CDNStatus) SetIngressRef

func (c *CDNStatus) SetIngressRef(inSync bool, ing namespacedName)

SetIngressRef set IngressRef to the status based on Ingress obj

func (*CDNStatus) UpsertDNSRecords

func (c *CDNStatus) UpsertDNSRecords(records []string)

UpsertDNSRecords inserts the given records at the DNS status section if they're not present already

type CDNStatusList

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

CDNStatusList contains a list of CDNStatus

func (*CDNStatusList) DeepCopy

func (in *CDNStatusList) DeepCopy() *CDNStatusList

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

func (*CDNStatusList) DeepCopyInto

func (in *CDNStatusList) DeepCopyInto(out *CDNStatusList)

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

func (*CDNStatusList) DeepCopyObject

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

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

type CDNStatusStatus

type CDNStatusStatus struct {
	ID        string      `json:"id,omitempty"`
	ARN       string      `json:"arn,omitempty"`
	Ingresses IngressRefs `json:"ingresses,omitempty"`
	Aliases   []string    `json:"aliases,omitempty"`
	Address   string      `json:"address,omitempty"`
	// +optional
	// +nullable
	DNS *DNSStatus `json:"dns,omitempty"`
}

CDNStatusStatus defines the observed state of CDNStatus

func (*CDNStatusStatus) DeepCopy

func (in *CDNStatusStatus) DeepCopy() *CDNStatusStatus

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

func (*CDNStatusStatus) DeepCopyInto

func (in *CDNStatusStatus) DeepCopyInto(out *CDNStatusStatus)

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

type DNSStatus

type DNSStatus struct {
	Records []string `json:"records,omitempty"`
	Synced  bool     `json:"synced"`
}

DNSStatus provides status regarding the creation of DNS records for aliases

func (*DNSStatus) DeepCopy

func (in *DNSStatus) DeepCopy() *DNSStatus

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

func (*DNSStatus) DeepCopyInto

func (in *DNSStatus) DeepCopyInto(out *DNSStatus)

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

type IngressRef

type IngressRef string

IngressRef represents a reference to an Ingress

func NewIngressRef

func NewIngressRef(namespace, name string) IngressRef

NewIngressRef creates a new IngressRef for given name and namespace

func (IngressRef) GetName

func (i IngressRef) GetName() string

GetName returns the IngressRef name

func (IngressRef) GetNamespace

func (i IngressRef) GetNamespace() string

GetNamespace returns the IngressRef namespace

func (IngressRef) ToNamespacedName

func (i IngressRef) ToNamespacedName() types.NamespacedName

ToNamespacedName creates a types.Namespaced from an IngressRef

type IngressRefs

type IngressRefs map[IngressRef]string

IngressRefs ingresses map

func (IngressRefs) DeepCopy

func (in IngressRefs) DeepCopy() IngressRefs

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

func (IngressRefs) DeepCopyInto

func (in IngressRefs) DeepCopyInto(out *IngressRefs)

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