Documentation
¶
Index ¶
- func BuildImportKeyAndURI(seg1, seg2 string) (string, string)
- func FetchURL(url string) ([]byte, error)
- func GetAppClient(cfg *rest.Config) appv1.AppsV1Interface
- func GetCoreClient(cfg *rest.Config) corev1.CoreV1Interface
- func GetCurrentProject() string
- func GetCurrentToken(cfg *rest.Config) string
- func GetK8sConfig(cfg *config.Config) (*rest.Config, error)
- func GetKServeClient(cfg *rest.Config) servingv1beta1.ServingV1beta1Interface
- func GetRouteClient(cfg *rest.Config) routev1.RouteV1Interface
- func PrintYaml(obj interface{}, addDivider bool, w io.Writer) error
- func ProcessOutput(str string, err error)
- func SetupSignalHandler() (stopCh <-chan struct{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImportKeyAndURI ¶
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 GetKServeClient ¶
func GetKServeClient(cfg *rest.Config) servingv1beta1.ServingV1beta1Interface
func GetRouteClient ¶
func GetRouteClient(cfg *rest.Config) routev1.RouteV1Interface
func ProcessOutput ¶
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.
Click to show internal directories.
Click to hide internal directories.