apimachineryk8s.io/apimachinery/pkg/api/apitesting/naming Index | Files

package naming

import "k8s.io/apimachinery/pkg/api/apitesting/naming"

Index

Functions

func VerifyGroupNames

func VerifyGroupNames(scheme *runtime.Scheme, legacyUnsuffixedGroups sets.String) error

VerifyGroupNames ensures that all groups in the scheme ends with the k8s.io suffix. Exceptions can be tolerated using the legacyUnsuffixedGroups parameter

func VerifyTagNaming

func VerifyTagNaming(scheme *runtime.Scheme, typesAllowedTags map[reflect.Type]bool, allowedNonstandardJSONNames map[reflect.Type]string) error

VerifyTagNaming ensures that all types in the scheme have JSON tags set on external types, and JSON tags not set on internal types. Exceptions can be tolerated using the typesAllowedTags and allowedNonstandardJSONNames parameters

Source Files

naming.go

Version
v0.19.4
Published
Aug 21, 2020
Platform
js/wasm
Imports
8 packages
Last checked
3 hours ago

Tools for package owners.