v3

package
v0.0.0-...-02318a8 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v3 contains API Schema definitions for the cdn v3 API group +kubebuilder:object:generate=true +groupName=cdn.benauro.gg

Index

Constants

This section is empty.

Variables

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

func (in *CacheRule) DeepCopy() *CacheRule

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

func (*CacheRule) DeepCopyInto

func (in *CacheRule) DeepCopyInto(out *CacheRule)

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

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

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

func (*ContentDeliveryNetworkList) DeepCopyInto

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

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

func (*ContentDeliveryNetworkNode) DeepCopyInto

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

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

func (*ContentDeliveryNetworkNodeList) DeepCopyInto

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

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

func (*ContentDeliveryNetworkNodeSpec) DeepCopyInto

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

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

func (*ContentDeliveryNetworkNodeStatus) DeepCopyInto

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

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

func (*ContentDeliveryNetworkSpec) DeepCopyInto

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

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

func (*ContentDeliveryNetworkStatus) DeepCopyInto

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

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

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

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

func (in *SSLConfig) DeepCopy() *SSLConfig

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

func (*SSLConfig) DeepCopyInto

func (in *SSLConfig) DeepCopyInto(out *SSLConfig)

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