Documentation ¶
Overview ¶
Package v1 is the v1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: binddns.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type DnsDomain ¶
type DnsDomain struct { metav1.TypeMeta `json:",inline"` // Standard object metadata. metav1.ObjectMeta `json:"metadata"` // Specification of the desired behavior of the DnsDomain. Spec DnsDomainSpec `json:"spec"` // +kubebuilder:validation:Optional // Most recently observed status of the DnsDomain. Status DnsDomainStatus `json:"status,omitempty"` }
+k8s:openapi-gen=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="enabled",type=boolean,JSONPath=`.spec.enabled` +kubebuilder:printcolumn:name="remark",type=string,JSONPath=`.spec.remark` +kubebuilder:printcolumn:name="update",type=string,JSONPath=`.status.updateTime` +kubebuilder:printcolumn:name="status",type=string,JSONPath=`.status.phase`
func (*DnsDomain) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DnsDomain.
func (*DnsDomain) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DnsDomain) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DnsDomainList ¶
type DnsDomainList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []DnsDomain `json:"items"` }
func (*DnsDomainList) DeepCopy ¶
func (in *DnsDomainList) DeepCopy() *DnsDomainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DnsDomainList.
func (*DnsDomainList) DeepCopyInto ¶
func (in *DnsDomainList) DeepCopyInto(out *DnsDomainList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DnsDomainList) DeepCopyObject ¶
func (in *DnsDomainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DnsDomainSpec ¶
type DnsDomainSpec struct { // Enabled defines whether enable the domain. Enabled bool `json:"enabled"` // +kubebuilder:validation:Optional // Remark defines the remark for the domain, base64 format. Remark string `json:"remark,omitempty"` }
func (*DnsDomainSpec) DeepCopy ¶
func (in *DnsDomainSpec) DeepCopy() *DnsDomainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DnsDomainSpec.
func (*DnsDomainSpec) DeepCopyInto ¶
func (in *DnsDomainSpec) DeepCopyInto(out *DnsDomainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DnsDomainStatus ¶
type DnsDomainStatus struct { // +kubebuilder:validation:Optional // CreateTime defines the domain create time. CreateTime string `json:"createTime"` // +kubebuilder:validation:Optional // UpdateTime defines the domain update time. UpdateTime string `json:"updateTime"` // +kubebuilder:validation:Optional // InstanceStatuses defines the domain status of every instance InstanceStatuses map[string]InstanceStatus `json:"instanceStatuses"` // +kubebuilder:validation:Optional Phase DomainStatus `json:"phase"` }
func (*DnsDomainStatus) DeepCopy ¶
func (in *DnsDomainStatus) DeepCopy() *DnsDomainStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DnsDomainStatus.
func (*DnsDomainStatus) DeepCopyInto ¶
func (in *DnsDomainStatus) DeepCopyInto(out *DnsDomainStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DnsRule ¶
type DnsRule struct { metav1.TypeMeta `json:",inline"` // Standard object metadata. metav1.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behavior of the DnsRule. Spec DnsRuleSpec `json:"spec"` // +kubebuilder:validation:Optional // Most recently observed status of the DnsRule. Status DnsRuleStatus `json:"status,omitempty"` }
+k8s:openapi-gen=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Zone",type=string,JSONPath=`.spec.zone` +kubebuilder:printcolumn:name="Enabled",type=boolean,JSONPath=`.spec.enabled` +kubebuilder:printcolumn:name="Host",type=string,JSONPath=`.spec.host` +kubebuilder:printcolumn:name="Type",type=string,JSONPath=`.spec.type` +kubebuilder:printcolumn:name="Data",type=string,JSONPath=`.spec.data` +kubebuilder:printcolumn:name="Ttl",type=number,JSONPath=`.spec.ttl` +kubebuilder:printcolumn:name="MxPriority",type=number,JSONPath=`.spec.mxPriority`
func (*DnsRule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DnsRule.
func (*DnsRule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DnsRule) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DnsRuleList ¶
type DnsRuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []DnsRule `json:"items"` }
func (*DnsRuleList) DeepCopy ¶
func (in *DnsRuleList) DeepCopy() *DnsRuleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DnsRuleList.
func (*DnsRuleList) DeepCopyInto ¶
func (in *DnsRuleList) DeepCopyInto(out *DnsRuleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DnsRuleList) DeepCopyObject ¶
func (in *DnsRuleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DnsRuleSpec ¶
type DnsRuleSpec struct { Zone string `json:"zone"` Enabled bool `json:"enabled"` Host string `json:"host"` Type DnsType `json:"type"` Data string `json:"data"` Ttl int32 `json:"ttl"` // +kubebuilder:validation:Optional MxPriority int32 `json:"mxPriority"` }
func (*DnsRuleSpec) DeepCopy ¶
func (in *DnsRuleSpec) DeepCopy() *DnsRuleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DnsRuleSpec.
func (*DnsRuleSpec) DeepCopyInto ¶
func (in *DnsRuleSpec) DeepCopyInto(out *DnsRuleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DnsRuleStatus ¶
type DnsRuleStatus struct { // +kubebuilder:validation:Optional CreateTime string `json:"createTime"` // +kubebuilder:validation:Optional UpdateTime string `json:"updateTime"` }
func (*DnsRuleStatus) DeepCopy ¶
func (in *DnsRuleStatus) DeepCopy() *DnsRuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DnsRuleStatus.
func (*DnsRuleStatus) DeepCopyInto ¶
func (in *DnsRuleStatus) DeepCopyInto(out *DnsRuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DomainStatus ¶
type DomainStatus string
const ( DomainAvailable DomainStatus = "Available" DomainProgressing DomainStatus = "Progressing" DomainFailure DomainStatus = "Failure" )
type InstanceStatus ¶
type InstanceStatus struct { // +kubebuilder:validation:Optional Name string `json:"name"` // +kubebuilder:validation:Optional Status DomainStatus `json:"status"` // +kubebuilder:validation:Optional UpdatedAt string `json:"updatedAt"` }
func (*InstanceStatus) DeepCopy ¶
func (in *InstanceStatus) DeepCopy() *InstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceStatus.
func (*InstanceStatus) DeepCopyInto ¶
func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.