utils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIVersion

func GetAPIVersion(node *yaml.RNode) (string, error)

func GetAnnotations

func GetAnnotations(node *yaml.RNode) (map[string]string, error)

func GetCRDGroup

func GetCRDGroup(node *yaml.RNode) (string, error)

func GetCRDKind

func GetCRDKind(node *yaml.RNode) (string, error)

func GetCRDScope

func GetCRDScope(node *yaml.RNode) (string, error)

func GetCRDVersions

func GetCRDVersions(node *yaml.RNode) ([]string, error)

func GetGVK

func GetGVK(node *yaml.RNode) (gvk schema.GroupVersionKind, err error)

func GetKind

func GetKind(node *yaml.RNode) (string, error)

func GetName

func GetName(node *yaml.RNode) (string, error)

func GetNamespace

func GetNamespace(node *yaml.RNode) (string, error)

func GetStringField

func GetStringField(node *yaml.RNode, fields ...string) (string, error)

func IsWhitespaceOrComments

func IsWhitespaceOrComments(input string) bool

func Pluralise

func Pluralise(lowercaseKind string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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