Documentation ¶
Index ¶
- type DNSMock
- func (m *DNSMock) AddAAAARecord(ip net.IP) *DNSMock
- func (m *DNSMock) AddARecord(fqdn string, ip net.IP) *DNSMock
- func (m *DNSMock) AddNSRecord(fqdn, nsName string) *DNSMock
- func (m *DNSMock) AddTXTRecord(fqdn string, strings ...string) *DNSMock
- func (m *DNSMock) RunTestFunc(f func()) *Result
- func (m *DNSMock) Start() *DNSMock
- type FakeDNSSettings
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSMock ¶
type DNSMock struct {
// contains filtered or unexported fields
}
DNSMock acts as DNS server but returns mock values
func NewFakeDNS ¶
func NewFakeDNS(settings FakeDNSSettings) *DNSMock
func (*DNSMock) AddNSRecord ¶
func (*DNSMock) AddTXTRecord ¶
func (*DNSMock) RunTestFunc ¶
type FakeDNSSettings ¶
Click to show internal directories.
Click to hide internal directories.