args

package
v0.8.4-0...-97960e5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckType

func CheckType(passedType *types.Type)

func ObjectsToGroupVersion

func ObjectsToGroupVersion(group string, objs []interface{}, ret map[schema.GroupVersion][]*types.Name) error

Types

type CustomArgs

type CustomArgs struct {
	Package      string
	TypesByGroup map[schema.GroupVersion][]*types.Name
	Options      Options
	OutputBase   string
}

type Group

type Group struct {
	// Types is a slice of the following types
	// Instance of any struct: used for reflection to describe the type
	// string: a directory that will be listed (non-recursively) for types
	// Type: a description of a type
	Types         []interface{}
	GenerateTypes bool
	// Generate clientsets
	GenerateClients             bool
	OutputControllerPackageName string
	// Generate listers
	GenerateListers bool
	// Generate informers
	GenerateInformers bool
	// The package name of the API types
	PackageName string
	// Use existing clientset, informer, listers
	ClientSetPackage string
	ListersPackage   string
	InformersPackage string
}

type Options

type Options struct {
	OutputPackage string
	Groups        map[string]Group
	Boilerplate   string
}

type Type

type Type struct {
	Version string
	Package string
	Name    string
}

func ScanDirectory

func ScanDirectory(pkgPath string) (result []Type, err error)

Jump to

Keyboard shortcuts

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