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 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultNameSystem ¶
func DefaultNameSystem() string
func GetGroupPackage ¶
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 ¶
func IsInformer ¶
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
}
Click to show internal directories.
Click to hide internal directories.