kube-openapi: k8s.io/kube-openapi/cmd/openapi-gen/args Index | Files

package args

import "k8s.io/kube-openapi/cmd/openapi-gen/args"


Package Files


func Validate Uses

func Validate(genericArgs *args.GeneratorArgs) error

Validate checks the given arguments.

type CustomArgs Uses

type CustomArgs struct {
    // ReportFilename is added to CustomArgs for specifying name of report file used
    // by API linter. If specified, API rule violations will be printed to report file.
    // Otherwise default value "-" will be used which indicates stdout.
    ReportFilename string

CustomArgs is used by the gengo framework to pass args specific to this generator.

func NewDefaults Uses

func NewDefaults() (*args.GeneratorArgs, *CustomArgs)

NewDefaults returns default arguments for the generator. Returning the arguments instead of using default flag parsing allows registering custom arguments afterwards

func (*CustomArgs) AddFlags Uses

func (c *CustomArgs) AddFlags(fs *pflag.FlagSet)

AddFlags add the generator flags to the flag set.

Package args imports 4 packages (graph) and is imported by 3 packages. Updated 2019-06-15. Refresh now. Tools for package owners.