Documentation
¶
Index ¶
- func NewKrb5Config(domain string, kdcs []string) (*config.Config, error)
- type Client
- func (c *Client) Cleanup() (err error)
- func (c *Client) Exchange(host string, msg *dns.Msg) (r *dns.Msg, tt time.Duration, err error)
- func (c *Client) Insert(host, zone string, reqs []string) (r *dns.Msg, tt time.Duration, err error)
- func (c *Client) InsertA(host, name, zone, address string, ttl int) (r *dns.Msg, tt time.Duration, err error)
- func (c *Client) InsertCNAME(host, name, zone, target string, ttl int) (r *dns.Msg, tt time.Duration, err error)
- func (c *Client) Keyname() *string
- func (c *Client) Lookup(host, value string) (data string, r *dns.Msg, tt time.Duration, err error)
- func (c *Client) NegotiateContext() (err error)
- func (c *Client) Remove(host, zone string, reqs []string) (r *dns.Msg, tt time.Duration, err error)
- func (c *Client) RemoveA(host, name, zone, address string, ttl int) (r *dns.Msg, tt time.Duration, err error)
- func (c *Client) RemoveCNAME(host, name, zone, target string, ttl int) (r *dns.Msg, tt time.Duration, err error)
- func (c *Client) Update(host, zone string, oReqs, nReqs []string) (r *dns.Msg, tt time.Duration, err error)
- func (c *Client) UpdateA(host, name, zone, oAddress, nAddress string, ttl int) (r *dns.Msg, tt time.Duration, err error)
- func (c *Client) UpdateCNAME(host, name, zone, oTarget, nTarget string, ttl int) (r *dns.Msg, tt time.Duration, err error)
- type ClientConfig
- type ClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client a dns client for windows dns
func NewClient ¶
func NewClient(conf *ClientConfig, opts ...ClientOption) (c *Client, err error)
NewClient creates a new client
func (*Client) InsertA ¶
func (c *Client) InsertA(host, name, zone, address string, ttl int) (r *dns.Msg, tt time.Duration, err error)
InsertA inserts an A record
func (*Client) InsertCNAME ¶
func (c *Client) InsertCNAME(host, name, zone, target string, ttl int) (r *dns.Msg, tt time.Duration, err error)
InsertCNAME inserts an CNAME record
func (*Client) NegotiateContext ¶
NegotiateContext obtains a new tkey
func (*Client) RemoveA ¶
func (c *Client) RemoveA(host, name, zone, address string, ttl int) (r *dns.Msg, tt time.Duration, err error)
RemoveA removes an A record
func (*Client) RemoveCNAME ¶
func (c *Client) RemoveCNAME(host, name, zone, target string, ttl int) (r *dns.Msg, tt time.Duration, err error)
RemoveCNAME removes an CNAME record
func (*Client) Update ¶
func (c *Client) Update(host, zone string, oReqs, nReqs []string) (r *dns.Msg, tt time.Duration, err error)
Update performs an update
type ClientConfig ¶
type ClientConfig struct { KRB5Host string KRB5Conf *config.Config Domain string Username string Password string }
ClientConfig .
type ClientOption ¶
ClientOption a client option
func WithKRB5ConfigData ¶
func WithKRB5ConfigData(domain string, kdcs []string) ClientOption
WithKRB5ConfigData generates the krb5 config
func WithKRB5ConfigString ¶
func WithKRB5ConfigString(conf string) ClientOption
WithKRB5ConfigString sets the krb5 config
Click to show internal directories.
Click to hide internal directories.