util

package
v1.0.0-beta.23 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 22 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(clientset kubernetes.Interface, namespace string) (string, string, error)

func GetReplicatedDeploymentName

func GetReplicatedDeploymentName() string

func GetReplicatedDeploymentUID

func GetReplicatedDeploymentUID(clientset kubernetes.Interface, namespace string) (apimachinerytypes.UID, error)

func GetReplicatedSecretName

func GetReplicatedSecretName() string

func GunzipData

func GunzipData(input []byte) ([]byte, error)

func GzipData

func GzipData(input []byte) ([]byte, 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 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