powerdns

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, apiKey, serverHost, basePath, scheme string) *Client

func (*Client) CreateRecordSet added in v0.0.3

func (pdns *Client) CreateRecordSet(ctx context.Context, serverID, zoneID string, recordSet *RecordSet) (*RecordSet, error)

func (*Client) CreateZone

func (pdns *Client) CreateZone(ctx context.Context, serverID string, zone *Zone) (*Zone, error)

func (*Client) DeleteRecordSet added in v0.0.3

func (pdns *Client) DeleteRecordSet(ctx context.Context, serverID, zoneID string, recordSet *RecordSet) error

func (*Client) DeleteZone

func (pdns *Client) DeleteZone(ctx context.Context, serverID, zoneID string) error

func (*Client) GetRecordSet added in v0.0.3

func (pdns *Client) GetRecordSet(ctx context.Context, serverID, zoneID, recordSetName, recordSetType string) (*RecordSet, error)

func (*Client) GetZone

func (pdns *Client) GetZone(ctx context.Context, serverID, zoneID string) (*Zone, error)

func (*Client) UpdateRecordSet added in v0.0.3

func (pdns *Client) UpdateRecordSet(ctx context.Context, serverID, zoneID string, recordSet *RecordSet) error

func (*Client) UpdateZone

func (pdns *Client) UpdateZone(ctx context.Context, serverID, zoneID string, zone *Zone) error

type RecordSet

type RecordSet struct {
	Name       string
	Type       string
	TTL        int64
	Changetype string
	Records    []string
}

type Zone

type Zone struct {
	ID         string
	Name       string
	Kind       string
	DNSSec     bool
	Serial     int64
	Masters    []string
	RecordSets []RecordSet
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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