app

package
v0.0.0-...-22be34c Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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 Initialize(app *App) *App

func (*App) Execute

func (a *App) Execute(reader io.Reader, writer io.Writer) error

func (*App) MarshalJson

func (a *App) MarshalJson(v interface{}) []byte

func (*App) QueryChart

func (a *App) QueryChart(name, defaul, question string, loop, required bool)

func (*App) QueryValue

func (a *App) QueryValue(name, defaul, question string, required bool)

func (*App) Read

func (a *App) Read(p []byte) (n int, err error)

func (*App) Shell

func (a *App) Shell(args ...string) (stdout string, err error)

func (*App) ShellOutput

func (a *App) ShellOutput(args ...string) (stdout []byte, err error)

func (*App) UnmarshalJson

func (a *App) UnmarshalJson(v interface{}) error

func (*App) Write

func (a *App) Write(p []byte) (n int, err error)

func (*App) WriteConfig

func (a *App) WriteConfig() error

type AppFunc

type AppFunc func(*App) error

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 Maintainer struct {
	Name  string `json:"name"`
	Email string `json:"email"`
	Url   string `json:"url"`
}

type ParamMap

type ParamMap map[ConfigMode]Parameter

type Parameter

type Parameter struct {
	*pflag.Flag
}

type Path

type Path struct {
	TfDir       string `json:"tfDir"`
	ProtoDir    string `json:"protoDir"`
	TemplateDir string `json:"templateDir"`
	StaticDir   string `json:"staticDir"`
	CertPath    string `json:"certPath"`
	KeyPath     string `json:"keyPath"`
}

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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