interfaces

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd interface {
	Run() error
	Output() ([]byte, error)
	CombinedOutput() ([]byte, error)
}

type Exec

type Exec interface {
	Command(name string, arg ...string) Cmd
}

type Interface

type Interface interface {
	Addrs() ([]net.Addr, error)
}

type Network

type Network interface {
	InitializeNetworkState(networkAdapter string)
	RetrieveInternalMode() string
	RetrieveHostname() (string, error)
	RetrieveMACAddress(networkAdapter string) (string, error)
	RetrieveDeviceState(networkAdapter string) gonetworkmanager.NmDeviceState
	RetrieveMode(networkAdapter string) (string, error)
	SetMode(networkAdapter string, mode string) error
	RetrieveIPAddress(networkAdapter string) (string, error)
	SetIPAddress(networkAdapter string, ip string) error
	RetrieveDefaultGateway(networkAdapter string) (string, error)
	SetDefaultGateway(networkAdapter string, gateway string) error
	RetrieveSubnetMask(networkAdapter string) (string, error)
	SetSubnetMask(networkAdapter string, subnet string) error
	RetrieveDNS1(networkAdapter string) (string, error)
	SetDNS1(networkAdapter string, dns string) error
	RetrieveDNS2(networkAdapter string) (string, error)
	SetDNS2(networkAdapter string, dns string) error
	SetIPs(networkAdapter string, mode string, ip string, subnet string, gateway string, dns1 string, dns2 string) error
}

type NetworkManager

type NetworkManager interface {
	Hostname() (string, error)
	Manager() (gonetworkmanager.NetworkManager, error)
	Settings() (gonetworkmanager.Settings, error)
	Interfaces() ([]net.Interface, error)
	InterfaceByName(networkAdapter string) (Interface, error)
}

Jump to

Keyboard shortcuts

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