Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ManipulatorFlagSet ¶
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 ¶
OptionArgumentsPrefix sets which non-private identities should be ignored.
func OptionIgnoreIdentities ¶
OptionIgnoreIdentities sets which non-private identities should be ignored.