util

package
v1.0.0-beta.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLegacyReplicatedConfigMapName

func GetLegacyReplicatedConfigMapName() string

func GetReplicatedAndAppIDs

func GetReplicatedAndAppIDs(namespace string) (string, string, error)

func GetReplicatedDeploymentName

func GetReplicatedDeploymentName() string

func GetReplicatedSecretName

func GetReplicatedSecretName() string

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 WarnOnOutdatedReplicatedVersion

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