util

package
v0.0.1-alpha.12 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAirgap

func IsAirgap() bool

func IsDevEnv

func IsDevEnv() bool

func IsDevLicense

func IsDevLicense(license *kotsv1beta1.License) bool

func NewRequest

func NewRequest(method string, url string, body io.Reader) (*http.Request, error)

NewRequest returns a http.Request object with kots defaults set, including a User-Agent header.

func NewThrottle

func NewThrottle(after time.Duration) func(f func())

Types

type ActionableError

type ActionableError struct {
	Message string
}

func (ActionableError) Error

func (e ActionableError) Error() string

Jump to

Keyboard shortcuts

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