Documentation ¶
Index ¶
- Constants
- Variables
- type DNSV2Client
- func (c *DNSV2Client) CreateRecordset(ctx context.Context, zoneID, name, rsType, description string, ...) error
- func (c *DNSV2Client) DeleteRecordsetByZoneAndNameIgnoreNotFound(ctx context.Context, zoneID, recordsetName string) error
- func (c *DNSV2Client) GetRecordsetByZoneAndName(ctx context.Context, zoneID, recordsetName string) (recordsets.RecordSet, bool, error)
- func (c *DNSV2Client) GetZoneByName(ctx context.Context, zoneName string) (zones.Zone, error)
- func (c *DNSV2Client) UpdateRecordset(zoneID, recordsetID, description string, recordsetTTL int, records []string) error
Constants ¶
View Source
const ( // AnnotationRecord allows setting a different record than the default per ingress or service. AnnotationRecord = "record" // AnnotationRecordType allows setting the record type. Must be CNAME, A, NS, SOA. Default: CNAME. AnnotationRecordType = "record-type" // AnnotationRecordZoneName allows creating a record in a different DNS zone. AnnotationRecordZoneName = "zone-name" )
Variables ¶
View Source
var DefaultDNSZoneName string
DefaultDNSZoneName is the name of the default DNS zone.
Functions ¶
This section is empty.
Types ¶
type DNSV2Client ¶
type DNSV2Client struct {
// contains filtered or unexported fields
}
DNSV2Client encapsulates a Designate v2 client.
func NewDNSV2ClientFromENV ¶
func NewDNSV2ClientFromENV() (*DNSV2Client, error)
func (*DNSV2Client) CreateRecordset ¶
func (*DNSV2Client) DeleteRecordsetByZoneAndNameIgnoreNotFound ¶
func (c *DNSV2Client) DeleteRecordsetByZoneAndNameIgnoreNotFound(ctx context.Context, zoneID, recordsetName string) error
func (*DNSV2Client) GetRecordsetByZoneAndName ¶
func (c *DNSV2Client) GetRecordsetByZoneAndName(ctx context.Context, zoneID, recordsetName string) (recordsets.RecordSet, bool, error)
func (*DNSV2Client) GetZoneByName ¶
func (*DNSV2Client) UpdateRecordset ¶
func (c *DNSV2Client) UpdateRecordset(zoneID, recordsetID, description string, recordsetTTL int, records []string) error
Click to show internal directories.
Click to hide internal directories.