Documentation
¶
Index ¶
- func ClientsGeneratedForType(info *markers.TypeInfo) bool
- func CollectKinds(ctx *genall.GenerationContext, verbs ...string) (map[Group]map[types.PackageVersion][]Kind, error)
- func GenclientMarker() *markers.Definition
- func GroupGoNameMarker() *markers.Definition
- func GroupNameMarker() *markers.Definition
- func IsClusterScoped(info *markers.TypeInfo) bool
- func IsNamespaced(info *markers.TypeInfo) bool
- func NoStatusMarker() *markers.Definition
- func NoVerbsMarker() *markers.Definition
- func NonNamespacedMarker() *markers.Definition
- func OnlyVerbsMarker() *markers.Definition
- func ReadOnlyMarker() *markers.Definition
- func SkipVerbsMarker() *markers.Definition
- func SupportedVerbs(info *markers.TypeInfo) (sets.Set[string], error)
- func SupportsVerbs(info *markers.TypeInfo, verbs ...string) (bool, error)
- type Extension
- type Group
- type Kind
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientsGeneratedForType ¶
ClientsGeneratedForType verifies if the genclient marker is enabled for this type or not.
func CollectKinds ¶
func CollectKinds(ctx *genall.GenerationContext, verbs ...string) (map[Group]map[types.PackageVersion][]Kind, error)
CollectKinds finds all groupVersionKinds for which the k8s client-generators are run and the set of verbs are supported. When we are looking at a package, we can determine the group and version by copying the upstream logic: https://github.com/kubernetes/kubernetes/blob/f046bdf24e69ac31d3e1ed56926d9a7c715f1cc8/staging/src/k8s.io/code-generator/cmd/lister-gen/generators/lister.go#L93-L106
func GenclientMarker ¶
func GenclientMarker() *markers.Definition
func GroupGoNameMarker ¶
func GroupGoNameMarker() *markers.Definition
func GroupNameMarker ¶
func GroupNameMarker() *markers.Definition
func IsClusterScoped ¶
IsClusterScoped verifies if the genclient marker for this type is namespaced or clusterscoped.
func IsNamespaced ¶
IsNamespaced verifies if the genclient marker for this type is namespaced.
func NoStatusMarker ¶
func NoStatusMarker() *markers.Definition
func NoVerbsMarker ¶
func NoVerbsMarker() *markers.Definition
func NonNamespacedMarker ¶
func NonNamespacedMarker() *markers.Definition
func OnlyVerbsMarker ¶
func OnlyVerbsMarker() *markers.Definition
func ReadOnlyMarker ¶
func ReadOnlyMarker() *markers.Definition
func SkipVerbsMarker ¶
func SkipVerbsMarker() *markers.Definition
func SupportedVerbs ¶
SupportedVerbs determines which verbs the type supports.
Types ¶
type Extension ¶
type Extension struct { Method string Verb string Subresource string InputPath string InputType string ResultPath string ResultType string }
func ClientExtensions ¶
type Group ¶
type Group struct { types.Group GoName string `marker:",+groupGoName"` Version Version PackageAlias string LowerCaseGroupGoName string }