util

package
v0.0.0-...-baa1f0e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseImportName

func GetBaseImportName(pkgName, baseGroupName, version string) string

func GetCrdName

func GetCrdName(nodeName, pkgName, baseGroupName string) string

func GetGroupFromCrdName

func GetGroupFromCrdName(crdName string) string

func GetGroupGoName

func GetGroupGoName(baseGroupName string) string

func GetGroupName

func GetGroupName(pkgName, baseGroupName string) string

func GetGroupResourceName

func GetGroupResourceName(nodeName string) string

func GetGroupResourceNameTitle

func GetGroupResourceNameTitle(nodeName string) string

func GetGroupResourceType

func GetGroupResourceType(baseNodeName, pkgName, baseGroupName, version string) string

func GetGroupTypeName

func GetGroupTypeName(pkgName, baseGroupName, version string) string

func GetGroupVarName

func GetGroupVarName(pkgName, baseGroupName, version string) string

func GetGvkFieldName

func GetGvkFieldName(fieldName string) string

func GetGvkFieldTagName

func GetGvkFieldTagName(fieldName string) string

func GetImportPath

func GetImportPath(pkgName, baseGroupName, version string) string

func GetInformerImportName

func GetInformerImportName(pkgName, baseGroupName, version string) string

func GetInternalImport

func GetInternalImport(crdModulePath string, packageName string) string

func GetNodeNameTitle

func GetNodeNameTitle(nodeName string) string

func GetPackageName

func GetPackageName(groupName string) string

func GetPackageNameFromCrdName

func GetPackageNameFromCrdName(crdName string) string

func GetSimpleGroupTypeName

func GetSimpleGroupTypeName(pkgName string) string

func GetTag

func GetTag(name string) string

func RemoveSpecialChars

func RemoveSpecialChars(value string) string

func RenderDecl

func RenderDecl(decl ast.Decl, fileset *token.FileSet) (bytes.Buffer, error)

func ToPlural

func ToPlural(t string) string

ToPlural returns the plural form of the type's name. If the type's name is found in the exceptions map, the map value is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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