helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGenericError

func CheckGenericError(err error)

CheckGenericError checks if there's an error, shows it and exits the program if it is

func CheckHTTPError

func CheckHTTPError(resp *http.Response)

func GetLastPage

func GetLastPage(link string) (int, error)

func GetOSArch

func GetOSArch() (string, error)

func KubeGetVersion

func KubeGetVersion() (string, error)

Types

type OSArchError

type OSArchError struct {
	Err  string
	OS   string
	Arch string
}

func (*OSArchError) Error

func (e *OSArchError) Error() string

Jump to

Keyboard shortcuts

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