code-generator: k8s.io/code-generator/cmd/client-gen/generators/scheme Index | Files

package scheme

import "k8s.io/code-generator/cmd/client-gen/generators/scheme"

Index

Package Files

generator_for_scheme.go

type GenScheme Uses

type GenScheme struct {
    generator.DefaultGen
    OutputPackage  string
    Groups         []clientgentypes.GroupVersions
    GroupGoNames   map[clientgentypes.GroupVersion]string
    InputPackages  map[clientgentypes.GroupVersion]string
    OutputPath     string
    ImportTracker  namer.ImportTracker
    PrivateScheme  bool
    CreateRegistry bool
    // contains filtered or unexported fields
}

GenScheme produces a package for a clientset with the scheme, codecs and parameter codecs.

func (*GenScheme) Filter Uses

func (g *GenScheme) Filter(c *generator.Context, t *types.Type) bool

We only want to call GenerateType() once.

func (*GenScheme) GenerateType Uses

func (g *GenScheme) GenerateType(c *generator.Context, t *types.Type, w io.Writer) error

func (*GenScheme) Imports Uses

func (g *GenScheme) Imports(c *generator.Context) (imports []string)

func (*GenScheme) Namers Uses

func (g *GenScheme) Namers(c *generator.Context) namer.NameSystems

Package scheme imports 10 packages (graph) and is imported by 4 packages. Updated 2020-07-20. Refresh now. Tools for package owners.