Documentation
¶
Index ¶
- func ExitOnError(message string, err error)
- func ExitWithErrorMsg(message string)
- func ExpectFlag(flag, value string)
- func GetSubmarinerResource(config *rest.Config) *v1alpha1.Submariner
- func GetSubmarinerResourceWithError(config *rest.Config) (*v1alpha1.Submariner, error)
- func PanicOnError(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitOnError ¶
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.
Click to show internal directories.
Click to hide internal directories.