Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the dns v1 API group +kubebuilder:object:generate=true +groupName=dns.xzzpig.com
Index ¶
- Variables
- type AliyunProviderConfig
- type CNAMEGeneratorConfig
- type CloudflareProviderConfig
- type DDNSGeneratorConfig
- type DNSGenerator
- type DNSGeneratorList
- type DNSGeneratorSpec
- type DNSGeneratorStatus
- type DNSGeneratorType
- type DNSProvider
- type DNSProviderList
- type DNSProviderSpec
- type DNSProviderStatus
- type DNSProviderType
- type DNSRecord
- type DNSRecordList
- type DNSRecordSpec
- type DNSRecordStatus
- type DNSRecordStatusPhase
- type DNSRecordType
- type NamespacedName
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "dns.xzzpig.com", Version: "v1"} // 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 AliyunProviderConfig ¶
type AliyunProviderConfig struct { AccessKeyID string `json:"accessKeyId"` AccessKeySecret string `json:"accessKeySecret"` }
func (*AliyunProviderConfig) DeepCopy ¶
func (in *AliyunProviderConfig) DeepCopy() *AliyunProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AliyunProviderConfig.
func (*AliyunProviderConfig) DeepCopyInto ¶
func (in *AliyunProviderConfig) DeepCopyInto(out *AliyunProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CNAMEGeneratorConfig ¶ added in v1.2.0
type CNAMEGeneratorConfig struct {
Value string `json:"value"`
}
func (*CNAMEGeneratorConfig) DeepCopy ¶ added in v1.2.0
func (in *CNAMEGeneratorConfig) DeepCopy() *CNAMEGeneratorConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CNAMEGeneratorConfig.
func (*CNAMEGeneratorConfig) DeepCopyInto ¶ added in v1.2.0
func (in *CNAMEGeneratorConfig) DeepCopyInto(out *CNAMEGeneratorConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudflareProviderConfig ¶ added in v1.1.0
type CloudflareProviderConfig struct { // +optional // If empty, spec.domainName will be used as zone name ZoneName string `json:"zoneName,omitempty"` // +optional APIToken string `json:"apiToken"` // +optional Key string `json:"key"` // +optional Email string `json:"email"` // +optional // +kubebuilder:default=false // If true, the DNS record will be proxied by Cloudflare, can be overrided by Annotation `dns.xzzpig.com/record-proxied` Proxied bool `json:"proxied"` }
func (*CloudflareProviderConfig) DeepCopy ¶ added in v1.1.0
func (in *CloudflareProviderConfig) DeepCopy() *CloudflareProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareProviderConfig.
func (*CloudflareProviderConfig) DeepCopyInto ¶ added in v1.1.0
func (in *CloudflareProviderConfig) DeepCopyInto(out *CloudflareProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DDNSGeneratorConfig ¶ added in v1.2.0
type DDNSGeneratorConfig struct { // +optional // +kubebuilder:default=2 // The timeout for ddns service (seconds) Timeout int64 `json:"timeout"` // +optional // The extra apis to get public ip ExtraApis []string `json:"extraApis"` // +optional // +kubebuilder:default=60 // The expire time for public ip cache (seconds) CacheExpire int64 `json:"cacheExpire"` // +optional // +kubebuilder:default=30 // The interval to clean the public ip cache (seconds) CleanInterval int64 `json:"cleanInterval"` // +optional // +kubebuilder:default=600 // The interval to refresh the public ip (seconds) RefreshInternal int64 `json:"refreshInternal"` }
func (*DDNSGeneratorConfig) DeepCopy ¶ added in v1.2.0
func (in *DDNSGeneratorConfig) DeepCopy() *DDNSGeneratorConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DDNSGeneratorConfig.
func (*DDNSGeneratorConfig) DeepCopyInto ¶ added in v1.2.0
func (in *DDNSGeneratorConfig) DeepCopyInto(out *DDNSGeneratorConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DDNSGeneratorConfig) WithDefault ¶ added in v1.2.0
func (d *DDNSGeneratorConfig) WithDefault() *DDNSGeneratorConfig
type DNSGenerator ¶ added in v1.2.0
type DNSGenerator struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DNSGeneratorSpec `json:"spec,omitempty"` Status DNSGeneratorStatus `json:"status,omitempty"` }
DNSGenerator is the Schema for the dnsgenerators API
func (*DNSGenerator) DeepCopy ¶ added in v1.2.0
func (in *DNSGenerator) DeepCopy() *DNSGenerator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSGenerator.
func (*DNSGenerator) DeepCopyInto ¶ added in v1.2.0
func (in *DNSGenerator) DeepCopyInto(out *DNSGenerator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DNSGenerator) DeepCopyObject ¶ added in v1.2.0
func (in *DNSGenerator) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DNSGeneratorList ¶ added in v1.2.0
type DNSGeneratorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DNSGenerator `json:"items"` }
DNSGeneratorList contains a list of DNSGenerator
func (*DNSGeneratorList) DeepCopy ¶ added in v1.2.0
func (in *DNSGeneratorList) DeepCopy() *DNSGeneratorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSGeneratorList.
func (*DNSGeneratorList) DeepCopyInto ¶ added in v1.2.0
func (in *DNSGeneratorList) DeepCopyInto(out *DNSGeneratorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DNSGeneratorList) DeepCopyObject ¶ added in v1.2.0
func (in *DNSGeneratorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DNSGeneratorSpec ¶ added in v1.2.0
type DNSGeneratorSpec struct { GeneratorType DNSGeneratorType `json:"generatorType"` // +optional DDNS DDNSGeneratorConfig `json:"ddns,omitempty"` // +optional CNAME CNAMEGeneratorConfig `json:"cname,omitempty"` }
DNSGeneratorSpec defines the desired state of DNSGenerator
func (*DNSGeneratorSpec) DeepCopy ¶ added in v1.2.0
func (in *DNSGeneratorSpec) DeepCopy() *DNSGeneratorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSGeneratorSpec.
func (*DNSGeneratorSpec) DeepCopyInto ¶ added in v1.2.0
func (in *DNSGeneratorSpec) DeepCopyInto(out *DNSGeneratorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNSGeneratorStatus ¶ added in v1.2.0
DNSGeneratorStatus defines the observed state of DNSGenerator
func (*DNSGeneratorStatus) DeepCopy ¶ added in v1.2.0
func (in *DNSGeneratorStatus) DeepCopy() *DNSGeneratorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSGeneratorStatus.
func (*DNSGeneratorStatus) DeepCopyInto ¶ added in v1.2.0
func (in *DNSGeneratorStatus) DeepCopyInto(out *DNSGeneratorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNSGeneratorType ¶ added in v1.2.0
type DNSGeneratorType string
+kubebuilder:validation:Enum=DDNS;CNAME
const ( DNSGeneratorTypeDDNS DNSGeneratorType = "DDNS" DNSGeneratorTypeCNAME DNSGeneratorType = "CNAME" )
type DNSProvider ¶
type DNSProvider struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DNSProviderSpec `json:"spec,omitempty"` Status DNSProviderStatus `json:"status,omitempty"` }
DNSProvider is the Schema for the dnsproviders API
func (*DNSProvider) DeepCopy ¶
func (in *DNSProvider) DeepCopy() *DNSProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSProvider.
func (*DNSProvider) DeepCopyInto ¶
func (in *DNSProvider) DeepCopyInto(out *DNSProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DNSProvider) DeepCopyObject ¶
func (in *DNSProvider) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DNSProviderList ¶
type DNSProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DNSProvider `json:"items"` }
DNSProviderList contains a list of DNSProvider
func (*DNSProviderList) DeepCopy ¶
func (in *DNSProviderList) DeepCopy() *DNSProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSProviderList.
func (*DNSProviderList) DeepCopyInto ¶
func (in *DNSProviderList) DeepCopyInto(out *DNSProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DNSProviderList) DeepCopyObject ¶
func (in *DNSProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DNSProviderSpec ¶
type DNSProviderSpec struct { DomainName string `json:"domainName"` ProviderType DNSProviderType `json:"providerType"` // +optional Selector *metav1.LabelSelector `json:"selector,omitempty"` // +optional Aliyun AliyunProviderConfig `json:"aliyun,omitempty"` // +optional Cloudflare CloudflareProviderConfig `json:"cloudflare,omitempty"` }
DNSProviderSpec defines the desired state of DNSProvider
func (*DNSProviderSpec) DeepCopy ¶
func (in *DNSProviderSpec) DeepCopy() *DNSProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSProviderSpec.
func (*DNSProviderSpec) DeepCopyInto ¶
func (in *DNSProviderSpec) DeepCopyInto(out *DNSProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNSProviderStatus ¶
type DNSProviderStatus struct { Valid bool `json:"valid"` Message string `json:"message,omitempty"` }
DNSProviderStatus defines the observed state of DNSProvider
func (*DNSProviderStatus) DeepCopy ¶
func (in *DNSProviderStatus) DeepCopy() *DNSProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSProviderStatus.
func (*DNSProviderStatus) DeepCopyInto ¶
func (in *DNSProviderStatus) DeepCopyInto(out *DNSProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNSProviderType ¶
type DNSProviderType string
+kubebuilder:validation:Enum=ALIYUN;CLOUDFLARE
const ( DNSProviderTypeAliyun DNSProviderType = "ALIYUN" DNSProviderTypeCloudflare DNSProviderType = "CLOUDFLARE" )
type DNSRecord ¶
type DNSRecord struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DNSRecordSpec `json:"spec,omitempty"` Status DNSRecordStatus `json:"status,omitempty"` }
DNSRecord is the Schema for the dnsrecords API
func (*DNSRecord) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSRecord.
func (*DNSRecord) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DNSRecord) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DNSRecord) Match ¶ added in v1.1.0
func (record *DNSRecord) Match(provider *DNSProviderSpec) bool
type DNSRecordList ¶
type DNSRecordList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DNSRecord `json:"items"` }
DNSRecordList contains a list of DNSRecord
func (*DNSRecordList) DeepCopy ¶
func (in *DNSRecordList) DeepCopy() *DNSRecordList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSRecordList.
func (*DNSRecordList) DeepCopyInto ¶
func (in *DNSRecordList) DeepCopyInto(out *DNSRecordList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DNSRecordList) DeepCopyObject ¶
func (in *DNSRecordList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DNSRecordSpec ¶
type DNSRecordSpec struct { RecordType DNSRecordType `json:"recordType"` Name string `json:"name"` Value string `json:"value"` // +optional TTL *int `json:"ttl"` }
DNSRecordSpec defines the desired state of DNSRecord
func (*DNSRecordSpec) DeepCopy ¶
func (in *DNSRecordSpec) DeepCopy() *DNSRecordSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSRecordSpec.
func (*DNSRecordSpec) DeepCopyInto ¶
func (in *DNSRecordSpec) DeepCopyInto(out *DNSRecordSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DNSRecordSpec) RR ¶
func (record *DNSRecordSpec) RR(provider *DNSProviderSpec) string
func (*DNSRecordSpec) SpinalName ¶
func (record *DNSRecordSpec) SpinalName() string
type DNSRecordStatus ¶
type DNSRecordStatus struct { ProviderRef NamespacedName `json:"providerRef"` RecordID string `json:"recordID,omitempty"` Status DNSRecordStatusPhase `json:"status"` Message string `json:"message"` }
DNSRecordStatus defines the observed state of DNSRecord
func (*DNSRecordStatus) DeepCopy ¶
func (in *DNSRecordStatus) DeepCopy() *DNSRecordStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSRecordStatus.
func (*DNSRecordStatus) DeepCopyInto ¶
func (in *DNSRecordStatus) DeepCopyInto(out *DNSRecordStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNSRecordStatusPhase ¶
type DNSRecordStatusPhase string
const ( DNSRecordStatusPhasePending DNSRecordStatusPhase = "Pending" DNSRecordStatusPhaseMatching DNSRecordStatusPhase = "Matching" DNSRecordStatusPhaseSyncing DNSRecordStatusPhase = "Syncing" DNSRecordStatusPhaseSuccess DNSRecordStatusPhase = "Success" DNSRecordStatusPhaseFailed DNSRecordStatusPhase = "Failed" )
type DNSRecordType ¶
type DNSRecordType string
+kubebuilder:validation:Enum=A;CNAME;TXT;MX;SRV;AAAA;NS;CAA
const ( DNSRecordTypeA DNSRecordType = "A" DNSRecordTypeCNAME DNSRecordType = "CNAME" DNSRecordTypeTXT DNSRecordType = "TXT" DNSRecordTypeMX DNSRecordType = "MX" DNSRecordTypeSRV DNSRecordType = "SRV" DNSRecordTypeAAAA DNSRecordType = "AAAA" DNSRecordTypeNS DNSRecordType = "NS" DNSRecordTypeCAA DNSRecordType = "CAA" )
type NamespacedName ¶
type NamespacedName struct { // +optional Namespace string `json:"namespace,omitempty"` Name string `json:"name"` }
func (*NamespacedName) DeepCopy ¶
func (in *NamespacedName) DeepCopy() *NamespacedName
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedName.
func (*NamespacedName) DeepCopyInto ¶
func (in *NamespacedName) DeepCopyInto(out *NamespacedName)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.