Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cdn v1alpha1 API group +kubebuilder:object:generate=true +groupName=cdn.gympass.com
Index ¶
- Variables
- type CDNStatus
- func (in *CDNStatus) DeepCopy() *CDNStatus
- func (in *CDNStatus) DeepCopyInto(out *CDNStatus)
- func (in *CDNStatus) DeepCopyObject() runtime.Object
- func (c *CDNStatus) GetIngressKeys() []client.ObjectKey
- func (c *CDNStatus) HasIngressRef(ing namespacedName) bool
- func (c *CDNStatus) RemoveDNSRecords(records []string)
- func (c *CDNStatus) RemoveIngressRef(ing namespacedName)
- func (c *CDNStatus) SetAliases(aliases []string)
- func (c *CDNStatus) SetDNSSync(synced bool)
- func (c *CDNStatus) SetIngressRef(inSync bool, ing namespacedName)
- func (c *CDNStatus) UpsertDNSRecords(records []string)
- type CDNStatusList
- type CDNStatusStatus
- type DNSStatus
- type IngressRef
- type IngressRefs
Constants ¶
This section is empty.
Variables ¶
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDNStatus.
func (*CDNStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CDNStatus) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CDNStatus) GetIngressKeys ¶
GetIngressKeys returns keys to manipulate all IngressRef stored in the CDNStatus
func (*CDNStatus) HasIngressRef ¶
HasIngressRef returns whether the given Ingress is part of the refs stored by CDNStatus
func (*CDNStatus) RemoveDNSRecords ¶
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 ¶
SetAliases sets the CDN's aliases
func (*CDNStatus) SetDNSSync ¶ added in v0.0.10
SetDNSSync sets the DNS sync status if there is any DNS status to report
func (*CDNStatus) SetIngressRef ¶
SetIngressRef set IngressRef to the status based on Ingress obj
func (*CDNStatus) UpsertDNSRecords ¶
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,omitempty"`
}
DNSStatus provides status regarding the creation of DNS records for aliases
func (*DNSStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSStatus.
func (*DNSStatus) DeepCopyInto ¶
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.