Documentation ¶
Index ¶
- Variables
- type App
- func (a *App) Execute(reader io.Reader, writer io.Writer) error
- func (a *App) MarshalJson(v interface{}) []byte
- func (a *App) QueryChart(name, defaul, question string, loop, required bool)
- func (a *App) QueryValue(name, defaul, question string, required bool)
- func (a *App) Read(p []byte) (n int, err error)
- func (a *App) Shell(args ...string) (stdout string, err error)
- func (a *App) ShellOutput(args ...string) (stdout []byte, err error)
- func (a *App) UnmarshalJson(v interface{}) error
- func (a *App) Write(p []byte) (n int, err error)
- func (a *App) WriteConfig() error
- type AppFunc
- type Chart
- type Chartemp
- type ConfigFile
- type ConfigMode
- type Maintainer
- type ParamMap
- type Parameter
- type Path
- type QueryMap
- type State
- type Values
Constants ¶
This section is empty.
Variables ¶
View Source
var ChartKeys = []string{"icon", "apiVersion", "version", "appVersion", "name", "description", "keywords", "home", "sources", "maintainers"}
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Values *Values `json:"values"` Chart *Chart `json:"chart"` AppFuncs []AppFunc // contains filtered or unexported fields }
func Initialize ¶
func (*App) MarshalJson ¶
func (*App) QueryChart ¶
func (*App) QueryValue ¶
func (*App) UnmarshalJson ¶
func (*App) WriteConfig ¶
type Chart ¶
type Chart struct { Icon string `json:"icon"` ApiVersion string `json:"apiVersion"` Version string `json:"version"` AppVersion string `json:"appVersion"` Name string `json:"name"` Description string `json:"description"` KeyWords []string `json:"keywords"` Home string `json:"home"` Sources []string `json:"sources"` Maintainers []*Maintainer `json:"maintainers"` }
type Chartemp ¶
type Chartemp struct { Icon Parameter `json:"icon"` ApiVersion Parameter `json:"apiVersion"` Version Parameter `json:"version"` AppVersion Parameter `json:"appVersion"` Name Parameter `json:"name"` Description Parameter `json:"description"` KeyWords []string `json:"keywords"` Home string `json:"home"` Sources []string `json:"sources"` Maintainers []*Maintainer `json:"maintainers"` *pflag.FlagSet }
type ConfigFile ¶
type ConfigFile int
const ( ChartConfig ConfigFile = 1 ValuesConfig ConfigFile = 2 TfConfig ConfigFile = 3 KubeConfig ConfigFile = 4 )
type ConfigMode ¶
type ConfigMode int
const ( Query ConfigMode = 1 Flag ConfigMode = 2 File ConfigMode = 4 Env ConfigMode = 3 )
type Maintainer ¶
type ParamMap ¶
type ParamMap map[ConfigMode]Parameter
type QueryMap ¶
type QueryMap map[ConfigFile]ParamMap
type State ¶
type State struct { Project tfItem `json:"project"` ClusterName tfItem `json:"cluster_name"` ClusterZone tfItem `json:"cluster_zone"` DatabaseInstance tfItem `json:"database_instance"` DatabaseRegion tfItem `json:"database_region"` RUnVarConfig tfItem `json:"run_var_config"` RunVarName tfItem `json:"run_var_name"` }
type Values ¶
type Values struct { Modules bool `json:"modules"` Bucket string `json:"bucket"` DbName string `json:"dbHost"` DbHost string `json:"dbHost"` DbUser string `json:"dbUser"` DbPassword string `json:"dbPassword"` RunVarWait string `json:"runVarWait"` GitIgnore []string `json:"gitignore"` DockerIgnore []string `json:"dockerignore"` RunVar string `json:"run_var"` State *State `json:"state"` Path *Path `json:"path"` }
Click to show internal directories.
Click to hide internal directories.