network

package
v0.0.0-...-e23586d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMac

func GenerateMac(except []string) net.HardwareAddr

func NormalizeMacWindows

func NormalizeMacWindows(mac string) string

func Provider

func Provider() *schema.Provider

Provider exports the provider schema

Types

type Communicator

type Communicator struct {
	// contains filtered or unexported fields
}

func (*Communicator) AddDHCPReservation

func (c *Communicator) AddDHCPReservation(mac string, ip net.IP, scopeId string, description string, name string) error

func (*Communicator) AddDNSRecordA

func (c *Communicator) AddDNSRecordA(zone string, ip net.IP, name string) error

func (*Communicator) AddDNSRecordPTR

func (c *Communicator) AddDNSRecordPTR(zone string, ip net.IP, name string, ptrArr []string, lastByteArr []string) error

func (*Communicator) AddFilterAllowAddress

func (c *Communicator) AddFilterAllowAddress(mac string, description string) error

func (*Communicator) Connect

func (c *Communicator) Connect() error

func (*Communicator) Execute

func (c *Communicator) Execute(command string) (string, string, int)

func (*Communicator) GetAllAllowedMacAddress

func (c *Communicator) GetAllAllowedMacAddress() []string

func (*Communicator) GetFreeIp

func (c *Communicator) GetFreeIp(scopeId string) (net.IP, error)

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 (c *Communicator) RemoveDNSRecordA(zone string, ip net.IP, name string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL