util

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReplicatedSDKAndAppIDs

func GetReplicatedSDKAndAppIDs(namespace string) (string, string, error)

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())

func WarnOnOutdatedSDKVersion

func WarnOnOutdatedSDKVersion() error

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