Documentation ¶
Index ¶
Constants ¶
View Source
const LocalSchema = `` /* 874-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewCmdGenerate ¶
func NewCmdGenerate(streams genericclioptions.IOStreams) *cobra.Command
NewCmdGenerate creates and returns a command to generate resource manifests.
Types ¶
type GenerateOptions ¶
type GenerateOptions struct { ConfigFlags *genericclioptions.ConfigFlags ResourceName string UpstreamSchema *openapi_v2.Document LocalSchema *openapi_v2.Document LocalSchemaPath string genericclioptions.IOStreams }
GenerateOptions encapsulates configuration info
func NewGenerateOptions ¶
func NewGenerateOptions(streams genericclioptions.IOStreams) *GenerateOptions
NewGenerateOptions will return an instance of GenerateOptions
func (*GenerateOptions) Complete ¶
func (o *GenerateOptions) Complete(cmd *cobra.Command, args []string) error
Complete prepares required configurations
func (*GenerateOptions) Validate ¶
func (o *GenerateOptions) Validate() error
Validate will ensure that configurations provided are acceptable
Click to show internal directories.
Click to hide internal directories.