Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Name ¶
type Name struct {
// contains filtered or unexported fields
}
Name represents a valid DNS resource name. +kubebuilder:validation:Type=string
func NewName ¶
NewName validates the given domain name and constructs a new Name. The domain name can be either be fully qualified or not.
func (*Name) IsChildOf ¶
IsChildOf returns `true` if this domain name is a child of the given parent name. A domain is a child of another one if the latter is a suffix of the former. Note: this method ignores the final dot of a FQDN.
func (*Name) IsFQDN ¶
IsFQDN return `true` when the domain name is a Fully Qualified Domain Name (i.e., it ends with a dot).
func (*Name) MarshalJSON ¶
MarshalJSON saves the JSON representation of this domain name.
func (*Name) UnmarshalJSON ¶
UnmarshalJSON parses the given JSON data as a domain name.