Documentation ¶
Index ¶
- func OutputTable(rec []Record)
- type Client
- func (c *Client) ConfigureWinRMClient() error
- func (c *Client) CreateRecord(rec Record) ([]Record, error)
- func (c *Client) DeleteRecord(rec Record) error
- func (c *Client) ExecutePowerShellScript(pscript string) (*Output, error)
- func (c *Client) ReadRecord(rec Record) (Record, error)
- func (c *Client) ReadRecordfromID(recID string) (Record, error)
- func (c *Client) ReadRecords(rec Record) ([]Record, error)
- func (c *Client) RecordExist(rec Record) bool
- func (c *Client) UpdateRecord(rec Record, newValue string, newTTL float64) (Record, error)
- type Output
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { ServerName string Username string Password string Port int HTTPS bool Insecure bool Client *winrm.Client }
Client struct for holding winrm.Client configuration
func GenerateClient ¶
GenerateClient generates the winrm.client configuration
func (*Client) ConfigureWinRMClient ¶
ConfigureWinRMClient creates the connection to the winrm server
func (*Client) CreateRecord ¶
CreateRecord creates new DNS records on server
func (*Client) DeleteRecord ¶
DeleteRecord deletes DNS record specified
func (*Client) ExecutePowerShellScript ¶
ExecutePowerShellScript runs a PS script on the winrm server
func (*Client) ReadRecord ¶
ReadRecord performs DNS Record lookup from server
func (*Client) ReadRecordfromID ¶
ReadRecordfromID retrieves specifc DNS record based on record ID
func (*Client) ReadRecords ¶
ReadRecords returns all DNS records matching query
func (*Client) RecordExist ¶
RecordExist returns if record exists or not
Click to show internal directories.
Click to hide internal directories.