cmd

package
v0.0.0-...-da68f2a Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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) Run

func (o *GenerateOptions) Run() error

Run executes the command

func (*GenerateOptions) Validate

func (o *GenerateOptions) Validate() error

Validate will ensure that configurations provided are acceptable

Jump to

Keyboard shortcuts

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