Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // Hostname returns the OS hostname Hostname() (string, error) // FQDN returns the fully qualified domain name FQDN() (string, error) // OSDescription returns a human readable description of the OS. OSDescription(ctx context.Context) (string, error) // OSType returns the host operating system OSType() (string, error) // LookupCNAME returns the canonical name for the current host LookupCNAME() (string, error) // ReverseLookupHost does a reverse DNS query on the current host's IP address ReverseLookupHost() (string, error) // HostID returns Host Unique Identifier HostID(ctx context.Context) (string, error) // HostArch returns the host architecture HostArch() (string, error) // HostIPs returns the host's IP interfaces HostIPs() ([]net.IP, error) // HostMACs returns the host's MAC addresses HostMACs() ([]net.HardwareAddr, error) }
func NewProvider ¶
func NewProvider() Provider
Click to show internal directories.
Click to hide internal directories.