generate

package
v2.0.0-rc Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand return the command for generating ConfigMap and Secret resources from a configuration file

Types

type Flags

type Flags struct {
	// contains filtered or unexported fields
}

Flags contains all the flags for the `generate` command. They will be converted to Options that contains all runtime options for the command.

func (*Flags) AddFlags

func (f *Flags) AddFlags(flags *pflag.FlagSet)

AddFlags set the connection between Flags property to command line flags

func (*Flags) ToOptions

func (f *Flags) ToOptions(fSys filesys.FileSystem) (*Options, error)

ToOptions transform the command flags in command runtime arguments

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options have the data required to perform the generate operation

func (*Options) Run

func (o *Options) Run(ctx context.Context) error

Run execute the generate command

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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