app

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreateClientOpenAPI

func NewCmdCreateClientOpenAPI(genOpts GenerateOptions) *cobra.Command

NewCmdCreateClientOpenAPI creates the command

func NewCreateDocsCmd

func NewCreateDocsCmd(genOpts GenerateOptions) *cobra.Command

NewCreateDocsCmd creates apidocs for CRDs

func NewGenerateClientSetCmd

func NewGenerateClientSetCmd(genOpts GenerateOptions) *cobra.Command

NewGenerateClientSetCmd creates the command

func Run

func Run() error

Run executes the Cobra root command.

Types

type ClientSetGenerationOptions

type ClientSetGenerationOptions struct {
	GenerateOptions
	Generators []string
}

ClientSetGenerationOptions contain the options for the clientset generation.

func (*ClientSetGenerationOptions) Run

Run executes this command.

type CommonOptions

type CommonOptions struct {
	Args             []string
	Cmd              *cobra.Command
	LogLevel         string
	GeneratorVersion string
}

CommonOptions contains the common options

type CreateClientOpenAPIOptions

type CreateClientOpenAPIOptions struct {
	GenerateOptions
	Title                string
	Version              string
	ReferenceDocsVersion string
	OpenAPIDependencies  []string
	OpenAPIOutputDir     string
	ModuleName           string
}

CreateClientOpenAPIOptions the options for the create client openapi command

func (*CreateClientOpenAPIOptions) Run

Run implements this command

type GenerateDocsOptions

type GenerateDocsOptions struct {
	GenerateOptions
	ReferenceDocsVersion string
}

GenerateDocsOptions contains the options for the create client docs command

type GenerateOptions

type GenerateOptions struct {
	*CommonOptions
	OutputBase          string
	BoilerplateFile     string
	GroupsWithVersions  []string
	InputPackage        string
	GoPathInputPackage  string
	GoPathOutputPackage string
	GoPathOutputBase    string
	OutputPackage       string
	InputBase           string
	Global              bool
	SemVer              string
}

GenerateOptions contain common code generation options

Jump to

Keyboard shortcuts

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