listergen

package
v0.0.0-...-2dc1248 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// HeaderFile specifies the header text (e.g. license) to prepend to generated files.
	HeaderFile string `marker:",optional"`

	// Year specifies the year to substitute for " YEAR" in the header file.
	Year string `marker:",optional"`

	// APIPackagePath is the root directory under which API types exist.
	// e.g. "k8s.io/api"
	APIPackagePath string `marker:"apiPackagePath"`

	// SingleClusterListerPackagePath is the root directory under which single-cluster-aware listers exist,
	// for the case where we're only generating new code "on top" to enable multi-cluster use-cases.
	// e.g. "k8s.io/client-go/listers"
	SingleClusterListerPackagePath string `marker:",optional"`
}

func (Generator) Generate

func (g Generator) Generate(ctx *genall.GenerationContext) error

Generate will generate listers for all types that have generated clients and support LIST + WATCH verbs.

func (Generator) RegisterMarkers

func (Generator) RegisterMarkers(into *markers.Registry) error

Jump to

Keyboard shortcuts

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