Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RecordTypeA is a RecordType enum value RecordTypeA = "A" // RecordTypeCNAME is a RecordType enum value RecordTypeCNAME = "CNAME" // RecordTypeTXT is a RecordType enum value RecordTypeTXT = "TXT" )
View Source
const ( // OwnerLabelKey is the name of the label that defines the owner of an Endpoint. OwnerLabelKey = "owner" // ResourceLabelKey is the name of the label that identifies k8s resource which wants to acquire the DNS name ResourceLabelKey = "resource" )
Variables ¶
View Source
var ( // ErrInvalidHeritage is returned when heritage was not found, or different heritage is found ErrInvalidHeritage = errors.New("heritage is unknown or not found") )
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { // The hostname of the DNS record DNSName string // The target the DNS record points to Target string // RecordType type of record, e.g. CNAME, A, TXT etc RecordType string // TTL for the record RecordTTL TTL // Labels stores labels defined for the Endpoint Labels Labels }
Endpoint is a high-level way of a connection between a service and an IP
func NewEndpoint ¶ added in v0.2.0
NewEndpoint initialization method to be used to create an endpoint
func NewEndpointWithTTL ¶ added in v0.4.6
NewEndpointWithTTL initialization method to be used to create an endpoint with a TTL struct
type Labels ¶ added in v0.5.0
Labels store metadata related to the endpoint it is then stored in a persistent storage via serialization
func NewLabelsFromString ¶ added in v0.5.0
NewLabelsFromString constructs endpoints labels from a provided format string if heritage set to another value is found then error is returned no heritage automatically assumes is not owned by external-dns and returns invalidHeritage error
Click to show internal directories.
Click to hide internal directories.