manipcli

package
v1.135.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManipulatorFlagSet

func ManipulatorFlagSet() *pflag.FlagSet

ManipulatorFlagSet returns the flagSet required to call ManipulatorFromFlags.

func New

func New(modelManager elemental.ModelManager, manipulatorMaker ManipulatorMaker, options ...Option) *cobra.Command

New generates the API commands and subcommands based on the model manager.

func ReadData

func ReadData(
	apiurl string,
	namespace string,
	file string,
	url string,
	valuesFile string,
	values []string,
	printOnly bool,
	mandatory bool,
) (data []byte, err error)

ReadData reads data from a template coming from a url or a file. It can get some additional values from different sources (user input, values file or single values).

Types

type ManipulatorMaker

type ManipulatorMaker = func(opts ...maniphttp.Option) (manipulate.Manipulator, error)

ManipulatorMaker returs a function which can create a manipulator based on pflags.

func ManipulatorMakerFromFlags

func ManipulatorMakerFromFlags(options ...maniphttp.Option) ManipulatorMaker

ManipulatorMakerFromFlags returns a func that creates a manipulator based on command flags. Command flags are read using viper. It needs the following flags: FlagAPI, FlagToken, FlagAppCredentials, FlagNamespace, FlagCACertPath, FlagAPISkipVerify, FlagEncoding Use SetCLIFlags to add these flags to your command.

type Option

type Option func(*cliConfig)

Option represents an option can for the generate command.

func OptionArgumentsPrefix

func OptionArgumentsPrefix(prefix string) Option

OptionArgumentsPrefix sets which non-private identities should be ignored.

func OptionIgnoreIdentities

func OptionIgnoreIdentities(identities ...elemental.Identity) Option

OptionIgnoreIdentities sets which non-private identities should be ignored.

Jump to

Keyboard shortcuts

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