Documentation ¶
Index ¶
- func DefaultNameSystem() string
- func GetGroup(t *types.Type) string
- func GetGroupPackage(t *types.Type) string
- func GetKind(t *types.Type, group string) string
- func GetVersion(t *types.Type, group string) string
- func HasCategories(t *types.Type) bool
- func HasDocAnnotation(t *types.Type) bool
- func HasStatusSubresource(t *types.Type) bool
- func HasSubresource(t *types.Type) bool
- func IsAPIResource(t *types.Type) bool
- func IsAPISubresource(t *types.Type) bool
- func IsApisDir(dir string) bool
- func IsController(t *types.Type) bool
- func IsInformer(t *types.Type) bool
- func IsNonNamespaced(t *types.Type) bool
- func IsRBAC(t *types.Type) bool
- func IsUnversioned(t *types.Type, group string) bool
- func IsVersioned(t *types.Type, group string) bool
- func NameSystems() namer.NameSystems
- func NewContext(p *parser.Builder) (*generator.Context, error)
- type APIs
- type Comments
- type ParseOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultNameSystem ¶
func DefaultNameSystem() string
func GetGroupPackage ¶
func HasCategories ¶ added in v0.1.8
HasCategories returns true if t is an APIResource annotated with +kubebuilder:categories.
func HasDocAnnotation ¶ added in v0.1.10
HasDocAnnotation returns true if t is an APIResource with doc annotation +kubebuilder:doc
func HasStatusSubresource ¶ added in v0.1.12
HasStatusSubresource returns true if t is an APIResource annotated with +kubebuilder:subresource:status.
func HasSubresource ¶
HasSubresource returns true if t is an APIResource with one or more Subresources
func IsAPIResource ¶
IsAPIResource returns true if t has a +resource/+kubebuilder:resource comment tag
func IsAPISubresource ¶
IsAPISubresource returns true if t has a +subresource-request comment tag
func IsController ¶
IsController returns true if t has a +controller or +kubebuilder:controller tag
func IsInformer ¶
IsInformer returns true if t has a +informers or +kubebuilder:informers tag
func IsNonNamespaced ¶
IsNonNamespaced returns true if t has a +nonNamespaced comment tag
func NameSystems ¶
func NameSystems() namer.NameSystems
nameSystems returns the name system used by the generators in this package. e.g. black-magic
Types ¶
type APIs ¶
type APIs struct { Domain string VersionedPkgs sets.String UnversionedPkgs sets.String APIsPkg string APIsPkgRaw *types.Package GroupNames sets.String APIs *codegen.APIs Controllers []codegen.Controller ByGroupKindVersion map[string]map[string]map[string]*codegen.APIResource ByGroupVersionKind map[string]map[string]map[string]*codegen.APIResource SubByGroupVersionKind map[string]map[string]map[string]*types.Type Groups map[string]types.Package Rules []rbacv1.PolicyRule Informers map[v1.GroupVersionKind]bool // contains filtered or unexported fields }
type Comments ¶
type Comments []string
Comments is a structure for using comment tags on go structs and fields