Documentation ¶
Index ¶
- func GenerateMac(except []string) net.HardwareAddr
- func NormalizeMacWindows(mac string) string
- func Provider() *schema.Provider
- type Communicator
- func (c *Communicator) AddDHCPReservation(mac string, ip net.IP, scopeId string, description string, name string) error
- func (c *Communicator) AddDNSRecordA(zone string, ip net.IP, name string) error
- func (c *Communicator) AddDNSRecordPTR(zone string, ip net.IP, name string, ptrArr []string, lastByteArr []string) error
- func (c *Communicator) AddFilterAllowAddress(mac string, description string) error
- func (c *Communicator) Connect() error
- func (c *Communicator) Execute(command string) (string, string, int)
- func (c *Communicator) GetAllAllowedMacAddress() []string
- func (c *Communicator) GetFreeIp(scopeId string) (net.IP, error)
- func (c *Communicator) RemoveDHCPLease(scopeId string, mac string, ip string) error
- func (c *Communicator) RemoveDHCPReservation(mac string, scopeId string) error
- func (c *Communicator) RemoveDNSRecordA(zone string, ip net.IP, name string) error
- func (c *Communicator) RemoveDNSRecordPTR(ptrArr []string, lastByteArr []string) error
- func (c *Communicator) RemoveFilterAllowAddress(mac string) error
- type WinrmError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMac ¶
func GenerateMac(except []string) net.HardwareAddr
func NormalizeMacWindows ¶
Types ¶
type Communicator ¶
type Communicator struct {
// contains filtered or unexported fields
}
func (*Communicator) AddDHCPReservation ¶
func (*Communicator) AddDNSRecordA ¶
func (*Communicator) AddDNSRecordPTR ¶
func (*Communicator) AddFilterAllowAddress ¶
func (c *Communicator) AddFilterAllowAddress(mac string, description string) error
func (*Communicator) Connect ¶
func (c *Communicator) Connect() error
func (*Communicator) GetAllAllowedMacAddress ¶
func (c *Communicator) GetAllAllowedMacAddress() []string
func (*Communicator) RemoveDHCPLease ¶
func (c *Communicator) RemoveDHCPLease(scopeId string, mac string, ip string) error
func (*Communicator) RemoveDHCPReservation ¶
func (c *Communicator) RemoveDHCPReservation(mac string, scopeId string) error
func (*Communicator) RemoveDNSRecordA ¶
func (*Communicator) RemoveDNSRecordPTR ¶
func (c *Communicator) RemoveDNSRecordPTR(ptrArr []string, lastByteArr []string) error
func (*Communicator) RemoveFilterAllowAddress ¶
func (c *Communicator) RemoveFilterAllowAddress(mac string) error
type WinrmError ¶
type WinrmError struct {
// contains filtered or unexported fields
}
func (*WinrmError) Error ¶
func (e *WinrmError) Error() string
Click to show internal directories.
Click to hide internal directories.