util

package
v0.0.0-...-9d88510 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImportKeyAndURI

func BuildImportKeyAndURI(seg1, seg2 string) (string, string)

func FetchURL

func FetchURL(url string) ([]byte, error)

func GetAppClient

func GetAppClient(cfg *rest.Config) appv1.AppsV1Interface

func GetCoreClient

func GetCoreClient(cfg *rest.Config) corev1.CoreV1Interface

func GetCurrentProject

func GetCurrentProject() string

func GetCurrentToken

func GetCurrentToken(cfg *rest.Config) string

func GetK8sConfig

func GetK8sConfig(cfg *config.Config) (*rest.Config, error)

func GetRouteClient

func GetRouteClient(cfg *rest.Config) routev1.RouteV1Interface

func PrintYaml

func PrintYaml(obj interface{}, addDivider bool, w io.Writer) error

func ProcessOutput

func ProcessOutput(str string, err error)

func SetupSignalHandler

func SetupSignalHandler() (stopCh <-chan struct{})

SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned which is closed on one of these signals. If a second signal is caught, the program is terminated with exit code 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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