Documentation ¶
Overview ¶
Package generators has the generators for the client-gen utility.
Index ¶
- Constants
- func FactoryGo(group string, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
- func GroupInterfaceGo(group string, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
- func GroupVersionInterfaceGo(gv schema.GroupVersion, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
- func ListTypesGo(gv schema.GroupVersion, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
- func Package(arguments *args.GeneratorArgs, name string, ...) generator.Package
- func RegisterGroupGo(group string, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
- func RegisterGroupVersionGo(gv schema.GroupVersion, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
- func TypeGo(gv schema.GroupVersion, name *types.Name, args *args.GeneratorArgs, ...) generator.Generator
- type ClientGenerator
Constants ¶
View Source
const (
GenericPackage = "github.com/rancher/wrangler/pkg/generic"
)
Variables ¶
This section is empty.
Functions ¶
func FactoryGo ¶
func FactoryGo(group string, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
func GroupInterfaceGo ¶
func GroupInterfaceGo(group string, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
func GroupVersionInterfaceGo ¶
func GroupVersionInterfaceGo(gv schema.GroupVersion, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
func ListTypesGo ¶
func ListTypesGo(gv schema.GroupVersion, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
func RegisterGroupGo ¶
func RegisterGroupGo(group string, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
func RegisterGroupVersionGo ¶
func RegisterGroupVersionGo(gv schema.GroupVersion, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
func TypeGo ¶
func TypeGo(gv schema.GroupVersion, name *types.Name, args *args.GeneratorArgs, customArgs *args2.CustomArgs) generator.Generator
Types ¶
type ClientGenerator ¶
func NewClientGenerator ¶
func NewClientGenerator() *ClientGenerator
func (*ClientGenerator) GenerateMocks ¶
func (cg *ClientGenerator) GenerateMocks() error
func (*ClientGenerator) Packages ¶
func (cg *ClientGenerator) Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages
Packages makes the client package definition.
Click to show internal directories.
Click to hide internal directories.