utils

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitOnError

func ExitOnError(message string, err error)

ExitOnError will print your error nicely and exit in case of error.

func ExitWithErrorMsg

func ExitWithErrorMsg(message string)

ExitWithErrorMsg will print the message and quit the program with an error code.

func ExpectFlag

func ExpectFlag(flag, value string)

ExpectFlag exits with an error if the flag value is empty.

func GetSubmarinerResource added in v0.12.0

func GetSubmarinerResource(config *rest.Config) *v1alpha1.Submariner

func GetSubmarinerResourceWithError added in v0.12.0

func GetSubmarinerResourceWithError(config *rest.Config) (*v1alpha1.Submariner, error)

func PanicOnError

func PanicOnError(err error)

PanicOnError will print the subctl version and then panic in case of an actual error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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