generators

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Overview

Package generators has the generators for the client-gen utility.

Index

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 Package

func Package(arguments *args.GeneratorArgs, name string, generators func(context *generator.Context) []generator.Generator) generator.Package

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

type ClientGenerator struct {
	Fakes map[string][]string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL