Version: v0.0.0-...-4eadfbb Latest Latest

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0



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



This section is empty.


This section is empty.


func DefaultNameSystem

func DefaultNameSystem() string

DefaultNameSystem returns the default name system for ordering the types to be processed by the generators in this package.

func NameSystems

func NameSystems() namer.NameSystems

NameSystems returns the name system used by the generators in this package.

func NewTagOverrideNamer

func NewTagOverrideNamer(tagName string, fallback namer.Namer) namer.Namer

NewTagOverrideNamer creates a namer.Namer which uses the contents of the given tag as the name, or falls back to another Namer if the tag is not present.

func Packages

func Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages

Packages makes the client package definition.


type ExceptionNamer

type ExceptionNamer struct {
	Exceptions map[string]string
	KeyFunc    func(*types.Type) string

	Delegate namer.Namer

ExceptionNamer allows you specify exceptional cases with exact names. This allows you to have control for handling various conflicts, like group and resource names for instance.

func (*ExceptionNamer) Name

func (n *ExceptionNamer) Name(t *types.Type) string

Name provides the requested name for a type.


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL