util

package
v0.0.0-...-c6bb40e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dest string) error

func CreateSSHKeyPair

func CreateSSHKeyPair(clusterName string) (string, string, error)

CreateSSHKeyPair creates a key pair in a temp directory and returns the paths to the private and public keys respectively. The file paths are deterministic from the clusterName.

func ExternalIPRange

func ExternalIPRange() (string, error)

ExternalIPRange returns the CIDR block for the public IP in front of the kubetest2 client

func HTTPGETWithHeaders

func HTTPGETWithHeaders(url string, headers map[string]string, writer io.Writer) error

HTTPGETWithHeaders writes the response of an HTTP GET request

func UnzipToTempDir

func UnzipToTempDir(data []byte) (string, error)

UnzipToTempDir will decompress the provided bytes into a temporary directory that is returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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