Documentation
¶
Overview ¶
Package dnsmgmt manages DNS entries
Index ¶
- Constants
- func GetProviderNames() []dnsapi.ProviderType
- func PlatformRecordTypeAllowed(rtype string) bool
- type DNSMgr
- func (s *DNSMgr) CreateOrUpdateDNSRecord(ctx context.Context, name, rtype, content string, ttl int, proxy bool) error
- func (s *DNSMgr) DeleteDNSRecord(ctx context.Context, name string) error
- func (s *DNSMgr) GetDNSRecords(ctx context.Context, name string) ([]dnsapi.Record, error)
- func (s *DNSMgr) InfoContext(ctx context.Context, msg string, keysAndValues ...interface{})
- type TestProvider
- func (s *TestProvider) CreateOrUpdateDNSRecord(ctx context.Context, zone, name, rtype, content string, ttl int, proxy bool) error
- func (s *TestProvider) DeleteDNSRecord(ctx context.Context, zone, name string) error
- func (s *TestProvider) GetDNSRecords(ctx context.Context, zone, name string) ([]dnsapi.Record, error)
Constants ¶
View Source
const LocalTestZone = "localtest.net"
Variables ¶
This section is empty.
Functions ¶
func GetProviderNames ¶
func GetProviderNames() []dnsapi.ProviderType
func PlatformRecordTypeAllowed ¶
PlatformRecordTypeAllowed restricts the record types that can be created by external platform services (like CRM, etc).
Types ¶
type DNSMgr ¶
type DNSMgr struct {
// contains filtered or unexported fields
}
func NewDNSMgr ¶
NewDNSMgr creates a new DNS manager that will look for DNS API credentials in Vault, and only allow modification of the specified zones.
func (*DNSMgr) CreateOrUpdateDNSRecord ¶
func (*DNSMgr) DeleteDNSRecord ¶
func (*DNSMgr) GetDNSRecords ¶
type TestProvider ¶
type TestProvider struct{}
func (*TestProvider) CreateOrUpdateDNSRecord ¶
func (*TestProvider) DeleteDNSRecord ¶
func (s *TestProvider) DeleteDNSRecord(ctx context.Context, zone, name string) error
func (*TestProvider) GetDNSRecords ¶
Click to show internal directories.
Click to hide internal directories.