disco

package
v0.0.0-...-84d2bf4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 (c *DNSV2Client) CreateRecordset(ctx context.Context, zoneID, name, rsType, description string, records []string, recordsetTTL int) error

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 (c *DNSV2Client) GetZoneByName(ctx context.Context, zoneName string) (zones.Zone, error)

func (*DNSV2Client) UpdateRecordset

func (c *DNSV2Client) UpdateRecordset(zoneID, recordsetID, description string, recordsetTTL int, records []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL