Documentation
¶
Index ¶
- type DNSClient
- func (c *DNSClient) CreateDNSRecord(ctx context.Context, name, recordType, content string) (dns.RecordResponse, error)
- func (c *DNSClient) DeleteDNSRecord(ctx context.Context, recordID string) error
- func (c *DNSClient) GetDNSRecords(ctx context.Context, name, recordType string) ([]dns.RecordResponse, error)
- func (c *DNSClient) GetZoneID() string
- func (c *DNSClient) ReplaceRecords(ctx context.Context, name, recordType string, newContents []string) error
- func (c *DNSClient) UpdateDNSRecord(ctx context.Context, recordID, name, recordType, content string) (dns.RecordResponse, error)
- type DNSClientInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSClient ¶
type DNSClient struct {
// contains filtered or unexported fields
}
func NewDNSClient ¶
func (*DNSClient) CreateDNSRecord ¶
func (*DNSClient) DeleteDNSRecord ¶
func (*DNSClient) GetDNSRecords ¶
func (*DNSClient) ReplaceRecords ¶
func (*DNSClient) UpdateDNSRecord ¶
type DNSClientInterface ¶
type DNSClientInterface interface {
GetDNSRecords(ctx context.Context, name, recordType string) ([]dns.RecordResponse, error)
DeleteDNSRecord(ctx context.Context, recordID string) error
CreateDNSRecord(ctx context.Context, name, recordType, content string) (dns.RecordResponse, error)
UpdateDNSRecord(ctx context.Context, recordID, name, recordType, content string) (dns.RecordResponse, error)
ReplaceRecords(ctx context.Context, name, recordType string, newContents []string) error
GetZoneID() string
}
Click to show internal directories.
Click to hide internal directories.