informergen

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: 11 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 {
	// Name is the name of the clientset, e.g. "kubernetes"
	ClientsetName string `marker:",optional"`

	// ExternalOnly toggles the creation of a "externalversions" sub-directory. Set to true if you are generating
	// custom code for a project that's not using k8s.io/code-generator/generate-groups.sh for their types.
	ExternalOnly bool `marker:",optional"`

	// Standalone toggles the creation of a "cluster" sub-directory. Set to true if you are placing cluster-
	// aware code somewhere outside of the normal client tree.
	Standalone bool `marker:",optional"`

	// 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"`

	// OutputPackagePath is the root directory under which this tool will output files.
	// e.g. "github.com/kcp-dev/client-go/clients"
	OutputPackagePath string `marker:""`

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

	// SingleClusterClientPackagePath is the root directory under which single-cluster-aware clients exist.
	// e.g. "k8s.io/client-go/kubernetes"
	SingleClusterClientPackagePath string `marker:""`

	// SingleClusterInformerPackagePath is the package under which the cluster-unaware listers are exposed.
	// e.g. "k8s.io/client-go/informers"
	SingleClusterInformerPackagePath string `marker:",optional"`

	// 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

func (Generator) RegisterMarkers

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

Jump to

Keyboard shortcuts

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