codegen

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerGenerator

type ControllerGenerator interface {
	// GenerateInject returns a Generator for the controller package e.g. pkg/controller
	GenerateInject(controllers []codegen.Controller, apis *codegen.APIs, filename string) generator.Generator
}

ControllerGenerator provides a code generator that takes a package of a controller and generates a file

type ResourceGenerator

type ResourceGenerator interface {
	// Returns a Generator for a versioned resource package e.g. pkg/apis/<group>/<version>
	GenerateVersionedResource(
		apiversion *codegen.APIVersion, apigroup *codegen.APIGroup, filename string) generator.Generator
}

ResourceGenerator provides a code generator that takes a package of an API GroupVersion and generates a file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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