package naming
import "k8s.io/apimachinery/pkg/api/apitesting/naming"
Index ¶
- func VerifyGroupNames(scheme *runtime.Scheme, legacyUnsuffixedGroups sets.String) error
- func VerifyTagNaming(scheme *runtime.Scheme, typesAllowedTags map[reflect.Type]bool, allowedNonstandardJSONNames map[reflect.Type]string) error
Functions ¶
func VerifyGroupNames ¶
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.33.0 (latest)
- Published
- Apr 11, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 11 minutes ago –
Tools for package owners.