v1alpha1

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the dns v1alpha1 API group +kubebuilder:object:generate=true +groupName=dns.linka.cloud

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "dns.linka.cloud", 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 ARecord

type ARecord struct {
	Name string `json:"name"`
	// +optional
	Class uint16 `json:"class,omitempty"`
	// +optional
	Ttl uint32 `json:"ttl"`
	// TODO(adphi): support service, e.g. default/kubernetes
	Target string `json:"target,omitempty"`
}

func (*ARecord) DeepCopy

func (in *ARecord) DeepCopy() *ARecord

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

func (*ARecord) DeepCopyInto

func (in *ARecord) DeepCopyInto(out *ARecord)

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

type CNAMERecord

type CNAMERecord struct {
	Name string `json:"name"`
	// +optional
	Class uint16 `json:"class,omitempty"`
	// +optional
	Ttl    uint32 `json:"ttl"`
	Target string `json:"target"`
}

func (*CNAMERecord) DeepCopy

func (in *CNAMERecord) DeepCopy() *CNAMERecord

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

func (*CNAMERecord) DeepCopyInto

func (in *CNAMERecord) DeepCopyInto(out *CNAMERecord)

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

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

func (in *DNSRecord) DeepCopy() *DNSRecord

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

func (*DNSRecord) DeepCopyInto

func (in *DNSRecord) DeepCopyInto(out *DNSRecord)

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

func (*DNSRecord) DeepCopyObject

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

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

func (*DNSRecord) Default

func (in *DNSRecord) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*DNSRecord) SetupWebhookWithManager

func (r *DNSRecord) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*DNSRecord) ValidateCreate

func (r *DNSRecord) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*DNSRecord) ValidateDelete

func (r *DNSRecord) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*DNSRecord) ValidateUpdate

func (r *DNSRecord) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

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 {
	Active *bool        `json:"active,omitempty"`
	A      *ARecord     `json:"a,omitempty"`
	CNAME  *CNAMERecord `json:"cname,omitempty"`
	TXT    *TXTRecord   `json:"txt,omitempty"`
	SRV    *SRVRecord   `json:"srv,omitempty"`
	MX     *MXRecord    `json:"mx,omitempty"`
	// Raw is an RFC 1035 style record string that github.com/miekg/dns will try to parse
	// +optional
	Raw string `json:"raw,omitempty"`
}

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.

type DNSRecordStatus

type DNSRecordStatus struct {
	Record   string `json:"record,omitempty"`
	Active   *bool  `json:"active,omitempty"`
	Provider string `json:"provider,omitempty"`
	ID       string `json:"id,omitempty"`
}

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 MXRecord

type MXRecord struct {
	Name string `json:"name"`
	// +optional
	Class uint16 `json:"class,omitempty"`
	// +optional
	Ttl uint32 `json:"ttl"`
	// +optional
	Preference uint16 `json:"preference,omitempty"`
	Target     string `json:"target,omitempty"`
}

func (*MXRecord) DeepCopy

func (in *MXRecord) DeepCopy() *MXRecord

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

func (*MXRecord) DeepCopyInto

func (in *MXRecord) DeepCopyInto(out *MXRecord)

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

type SRVRecord

type SRVRecord struct {
	Name string `json:"name"`
	// +optional
	Class uint16 `json:"class,omitempty"`
	// +optional
	Ttl uint32 `json:"ttl"`
	// +optional
	Priority uint16 `json:"priority,omitempty"`
	// +optional
	Weight uint16 `json:"weight,omitempty"`
	Port   uint16 `json:"port,omitempty"`
	Target string `json:"target,omitempty"`
}

func (*SRVRecord) DeepCopy

func (in *SRVRecord) DeepCopy() *SRVRecord

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

func (*SRVRecord) DeepCopyInto

func (in *SRVRecord) DeepCopyInto(out *SRVRecord)

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

type TXTRecord

type TXTRecord struct {
	Name string `json:"name"`
	// +optional
	Class uint16 `json:"class,omitempty"`
	// +optional
	Ttl     uint32   `json:"ttl"`
	Targets []string `json:"targets,omitempty"`
}

func (*TXTRecord) DeepCopy

func (in *TXTRecord) DeepCopy() *TXTRecord

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

func (*TXTRecord) DeepCopyInto

func (in *TXTRecord) DeepCopyInto(out *TXTRecord)

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