utils

package
v0.0.0-...-7c47925 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogging

func InitLogging()

func LogAndQuitIfErrorExists

func LogAndQuitIfErrorExists(err error)

func PrintDeleteSuccess

func PrintDeleteSuccess(item string, name string)

func PrintProtoMessage

func PrintProtoMessage(proto protoreflect.ProtoMessage)

func PrintSuccessf

func PrintSuccessf(format string, a ...any)

func ProtoToYaml

func ProtoToYaml(proto protoreflect.ProtoMessage) ([]byte, error)

ProtoToYaml converts a protobuf message to a yaml byte slice

func SetupListResourceCmd

func SetupListResourceCmd(cmd *cobra.Command, item string)

func SetupStandardResourceCmd

func SetupStandardResourceCmd(cmd *cobra.Command, method string, item string, additionalArgs ...string)

func YamlToSpec

func YamlToSpec(yamlData []byte) (*apiv1alpha.Spec, error)

YamlToSpec converts a yaml byte slice to a Kaskada Spec

Types

This section is empty.

Jump to

Keyboard shortcuts

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