Documentation ¶
Index ¶
- func DecodePEM(pemBytes []byte) ([]*x509.Certificate, error)
- func ForEachInterface(f func(link netlink.Link) error) error
- func GetDeviceDuplex(device string) string
- func GetDeviceSpeed(device string) string
- func GetHardwareAddr(s string) *net.HardwareAddr
- func GetInterfaceName(mac *net.HardwareAddr) string
- func NewClient(rootFile string) (http.Client, error)
- func ResetInterfaces() error
- func TestInterfaces(gw, addr string, interfaceWait time.Duration) ([]netlink.Link, error)
- func WaitForDeviceEvent(ctx context.Context, iface string, state netlink.LinkOperState) error
- type Pinger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePEM ¶ added in v0.3.1
func DecodePEM(pemBytes []byte) ([]*x509.Certificate, error)
func ForEachInterface ¶
ForEachInterface runs a callback on all non-loopback interfaces
func GetHardwareAddr ¶
func GetHardwareAddr(s string) *net.HardwareAddr
func GetInterfaceName ¶
func GetInterfaceName(mac *net.HardwareAddr) string
func NewClient ¶ added in v0.3.1
NewClient configures an HTTP client in the same way that stboot does. The root file needs to contain one or more X.509 certificates in PEM format. These certificates are used as trust anchors while constructing chains.
func TestInterfaces ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.