networking

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertIPv4ToUint32

func ConvertIPv4ToUint32(ip net.IP) uint32

ConvertIPv4ToUint32 converts an IPv4 net.IP to a uint32 FIXME: this does nothing to protect the caller from bad input yet

func ConvertUint32ToIPv4

func ConvertUint32ToIPv4(i uint32) net.IP

ConvertUint32ToIPv4 converts an IPv4 net.IP to a uint32 FIXME: this does nothing to protect the caller from bad input yet

func GetIPRangeStr

func GetIPRangeStr(ip1, ip2 net.IP) string

GetIPRangeStr provides a string range of IP address given two net.IPs. For example, "192.168.1.240-192.168.1.250".

func WaitForHTTP added in v0.8.0

func WaitForHTTP(ctx context.Context, getURL string, statusCode int) chan error

WaitForHTTP will make an HTTP GET request to the given URL until either the responses return the expected status code or the context completes (and then it will throw an error). The main purpose of this function is basically just to wait for an HTTP server that has been deployed to be ready without needing to bother with checking pod status, health e.t.c.

Types

This section is empty.

Jump to

Keyboard shortcuts

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