Documentation
¶
Overview ¶
Package v3 contains API Schema definitions for the cdn v3 API group +kubebuilder:object:generate=true +groupName=cdn.benauro.gg
Index ¶
- Variables
- type CDNMetrics
- type CacheRule
- type ContentDeliveryNetwork
- type ContentDeliveryNetworkList
- type ContentDeliveryNetworkNode
- type ContentDeliveryNetworkNodeList
- type ContentDeliveryNetworkNodeSpec
- type ContentDeliveryNetworkNodeStatus
- type ContentDeliveryNetworkSpec
- type ContentDeliveryNetworkStatus
- type DomainNameSystem
- type DomainNameSystemList
- type DomainNameSystemSpec
- type DomainNameSystemStatus
- type SSLConfig
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cdn.benauro.gg", Version: "v3"} // 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 CDNMetrics ¶
type CDNMetrics struct {
RequestsPerSecond string `json:"requestsPerSecond"`
CacheHitRate string `json:"cacheHitRate"`
AverageLatency string `json:"averageLatency"` // in milliseconds
}
CDNMetrics contains monitoring metrics for the CDN
func (*CDNMetrics) DeepCopy ¶
func (in *CDNMetrics) DeepCopy() *CDNMetrics
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDNMetrics.
func (*CDNMetrics) DeepCopyInto ¶
func (in *CDNMetrics) DeepCopyInto(out *CDNMetrics)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CacheRule ¶
type CacheRule struct {
PathPattern string `json:"pathPattern"`
TTL int `json:"ttl"` // in seconds
}
CacheRule defines a specific caching rule
func (*CacheRule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheRule.
func (*CacheRule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentDeliveryNetwork ¶
type ContentDeliveryNetwork struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ContentDeliveryNetworkSpec `json:"spec,omitempty"`
Status ContentDeliveryNetworkStatus `json:"status,omitempty"`
}
ContentDeliveryNetwork is the Schema for the contentdeliverynetworks API
func (*ContentDeliveryNetwork) DeepCopy ¶
func (in *ContentDeliveryNetwork) DeepCopy() *ContentDeliveryNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentDeliveryNetwork.
func (*ContentDeliveryNetwork) DeepCopyInto ¶
func (in *ContentDeliveryNetwork) DeepCopyInto(out *ContentDeliveryNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContentDeliveryNetwork) DeepCopyObject ¶
func (in *ContentDeliveryNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContentDeliveryNetworkList ¶
type ContentDeliveryNetworkList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ContentDeliveryNetwork `json:"items"`
}
ContentDeliveryNetworkList contains a list of ContentDeliveryNetwork
func (*ContentDeliveryNetworkList) DeepCopy ¶
func (in *ContentDeliveryNetworkList) DeepCopy() *ContentDeliveryNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentDeliveryNetworkList.
func (*ContentDeliveryNetworkList) DeepCopyInto ¶
func (in *ContentDeliveryNetworkList) DeepCopyInto(out *ContentDeliveryNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContentDeliveryNetworkList) DeepCopyObject ¶
func (in *ContentDeliveryNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContentDeliveryNetworkNode ¶
type ContentDeliveryNetworkNode struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ContentDeliveryNetworkNodeSpec `json:"spec,omitempty"`
Status ContentDeliveryNetworkNodeStatus `json:"status,omitempty"`
}
ContentDeliveryNetworkNode is the Schema for the contentdeliverynetworknodes API
func (*ContentDeliveryNetworkNode) DeepCopy ¶
func (in *ContentDeliveryNetworkNode) DeepCopy() *ContentDeliveryNetworkNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentDeliveryNetworkNode.
func (*ContentDeliveryNetworkNode) DeepCopyInto ¶
func (in *ContentDeliveryNetworkNode) DeepCopyInto(out *ContentDeliveryNetworkNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContentDeliveryNetworkNode) DeepCopyObject ¶
func (in *ContentDeliveryNetworkNode) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContentDeliveryNetworkNodeList ¶
type ContentDeliveryNetworkNodeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ContentDeliveryNetworkNode `json:"items"`
}
ContentDeliveryNetworkNodeList contains a list of ContentDeliveryNetworkNode
func (*ContentDeliveryNetworkNodeList) DeepCopy ¶
func (in *ContentDeliveryNetworkNodeList) DeepCopy() *ContentDeliveryNetworkNodeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentDeliveryNetworkNodeList.
func (*ContentDeliveryNetworkNodeList) DeepCopyInto ¶
func (in *ContentDeliveryNetworkNodeList) DeepCopyInto(out *ContentDeliveryNetworkNodeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContentDeliveryNetworkNodeList) DeepCopyObject ¶
func (in *ContentDeliveryNetworkNodeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContentDeliveryNetworkNodeSpec ¶
type ContentDeliveryNetworkNodeSpec struct {
// Size for caching
CacheSize int `json:"cacheSize"`
}
ContentDeliveryNetworkNodeSpec defines the desired state of ContentDeliveryNetworkNode
func (*ContentDeliveryNetworkNodeSpec) DeepCopy ¶
func (in *ContentDeliveryNetworkNodeSpec) DeepCopy() *ContentDeliveryNetworkNodeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentDeliveryNetworkNodeSpec.
func (*ContentDeliveryNetworkNodeSpec) DeepCopyInto ¶
func (in *ContentDeliveryNetworkNodeSpec) DeepCopyInto(out *ContentDeliveryNetworkNodeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentDeliveryNetworkNodeStatus ¶
type ContentDeliveryNetworkNodeStatus struct {
Available bool `json:"available"`
}
ContentDeliveryNetworkNodeStatus defines the observed state of ContentDeliveryNetworkNode
func (*ContentDeliveryNetworkNodeStatus) DeepCopy ¶
func (in *ContentDeliveryNetworkNodeStatus) DeepCopy() *ContentDeliveryNetworkNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentDeliveryNetworkNodeStatus.
func (*ContentDeliveryNetworkNodeStatus) DeepCopyInto ¶
func (in *ContentDeliveryNetworkNodeStatus) DeepCopyInto(out *ContentDeliveryNetworkNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentDeliveryNetworkSpec ¶
type ContentDeliveryNetworkSpec struct {
DNS DomainNameSystem `json:"dns"`
CDNNodes []ContentDeliveryNetworkNode `json:"cdnNodes"`
// Source of the original content
Origin string `json:"origin"`
// CDN node domain name
DomainName string `json:"domainName"`
// Caching policy
CacheBehavior string `json:"cacheBehavior,omitempty"`
// Cache Rules
CacheRules []CacheRule `json:"cacheRules,omitempty"`
// SSL/TLS configuration
SSLConfig *SSLConfig `json:"sslConfig,omitempty"`
// Image pull policy
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"`
// Replicas
MinReplicas int `json:"minReplicas"`
MaxReplicas int `json:"maxReplicas"`
}
ContentDeliveryNetworkSpec defines the desired state of ContentDeliveryNetwork
func (*ContentDeliveryNetworkSpec) DeepCopy ¶
func (in *ContentDeliveryNetworkSpec) DeepCopy() *ContentDeliveryNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentDeliveryNetworkSpec.
func (*ContentDeliveryNetworkSpec) DeepCopyInto ¶
func (in *ContentDeliveryNetworkSpec) DeepCopyInto(out *ContentDeliveryNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentDeliveryNetworkStatus ¶
type ContentDeliveryNetworkStatus struct {
// CDN distribution status
State string `json:"state"`
// List of IP addresses of the CDN nodes
Nodes []string `json:"nodes,omitempty"`
// Last updated time
LastUpdated metav1.Time `json:"lastUpdated,omitempty"`
// Metrics for monitoring
Metrics CDNMetrics `json:"metrics,omitempty"`
}
ContentDeliveryNetworkStatus defines the observed state of ContentDeliveryNetwork
func (*ContentDeliveryNetworkStatus) DeepCopy ¶
func (in *ContentDeliveryNetworkStatus) DeepCopy() *ContentDeliveryNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentDeliveryNetworkStatus.
func (*ContentDeliveryNetworkStatus) DeepCopyInto ¶
func (in *ContentDeliveryNetworkStatus) DeepCopyInto(out *ContentDeliveryNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DomainNameSystem ¶
type DomainNameSystem struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DomainNameSystemSpec `json:"spec,omitempty"`
Status DomainNameSystemStatus `json:"status,omitempty"`
}
DomainNameSystem is the Schema for the domainnamesystems API
func (*DomainNameSystem) DeepCopy ¶
func (in *DomainNameSystem) DeepCopy() *DomainNameSystem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainNameSystem.
func (*DomainNameSystem) DeepCopyInto ¶
func (in *DomainNameSystem) DeepCopyInto(out *DomainNameSystem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DomainNameSystem) DeepCopyObject ¶
func (in *DomainNameSystem) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DomainNameSystemList ¶
type DomainNameSystemList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DomainNameSystem `json:"items"`
}
DomainNameSystemList contains a list of DomainNameSystem
func (*DomainNameSystemList) DeepCopy ¶
func (in *DomainNameSystemList) DeepCopy() *DomainNameSystemList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainNameSystemList.
func (*DomainNameSystemList) DeepCopyInto ¶
func (in *DomainNameSystemList) DeepCopyInto(out *DomainNameSystemList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DomainNameSystemList) DeepCopyObject ¶
func (in *DomainNameSystemList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DomainNameSystemSpec ¶
type DomainNameSystemSpec struct {
// Replicas
MinReplicas int `json:"minReplicas"`
MaxReplicas int `json:"maxReplicas"`
}
DomainNameSystemSpec defines the desired state of DomainNameSystem
func (*DomainNameSystemSpec) DeepCopy ¶
func (in *DomainNameSystemSpec) DeepCopy() *DomainNameSystemSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainNameSystemSpec.
func (*DomainNameSystemSpec) DeepCopyInto ¶
func (in *DomainNameSystemSpec) DeepCopyInto(out *DomainNameSystemSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DomainNameSystemStatus ¶
type DomainNameSystemStatus struct {
// DNS status
State string `json:"state"`
}
DomainNameSystemStatus defines the observed state of DomainNameSystem
func (*DomainNameSystemStatus) DeepCopy ¶
func (in *DomainNameSystemStatus) DeepCopy() *DomainNameSystemStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainNameSystemStatus.
func (*DomainNameSystemStatus) DeepCopyInto ¶
func (in *DomainNameSystemStatus) DeepCopyInto(out *DomainNameSystemStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SSLConfig ¶
type SSLConfig struct {
Enabled bool `json:"enabled"`
Cert string `json:"cert,omitempty"`
Key string `json:"key,omitempty"`
}
SSLConfig defines the SSL/TLS configuration for the CDN
func (*SSLConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSLConfig.
func (*SSLConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.