Documentation
¶
Index ¶
- Variables
- func ConfigureBondInterface(cfg *host.Config) (*netlink.Bond, error)
- func SetBonded(bond *netlink.Bond, toBondNames []*host.NetworkInterface) error
- func SetDNSServer(addresses []*net.IP) error
- func SetupBondInterface(ifaceName string, mode netlink.BondMode) (*netlink.Bond, error)
- func SetupNetworkInterface(ctx context.Context, cfg *host.Config) error
- type HTTPClient
- type HTTPClientOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDownloadTimeout = errors.New("hit download timeout") ErrRetriesLimit = errors.New("hit retries limit") ErrBadHTTPStatus = errors.New("bad HTTP status") ErrEmptyBody = errors.New("HTTP response body is empty") )
View Source
var ( ErrFailedForAllInterfaces = errors.New("IP configuration failed for all interfaces") ErrFoundNoInterfaces = errors.New("found no interfaces") )
Errors which may be raised and wrapped in this package.
Functions ¶
func SetDNSServer ¶
SetDNSServer writes adresses to /etc/resolv.conf file.
func SetupBondInterface ¶
Types ¶
type HTTPClient ¶ added in v0.1.0
type HTTPClient struct { HTTPClient http.Client Retries int RetryWait time.Duration // contains filtered or unexported fields }
func NewHTTPClient ¶ added in v0.1.0
func NewHTTPClient(httpsRoots []*x509.Certificate, insecure bool, opts ...HTTPClientOption) HTTPClient
type HTTPClientOption ¶ added in v0.5.1
type HTTPClientOption func(*HTTPClient)
func WithDecryption ¶ added in v0.5.1
func WithDecryption(decryptionIdentities []age.Identity) HTTPClientOption
Click to show internal directories.
Click to hide internal directories.