Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppLaunchCmd ¶ added in v0.11.0
func GetAppLaunchCmd(appRoot string, app *Application) string
GetAppLaunchCmd : Get the real app launch cmds values in the following order. 1. appcmds instructionx defined in kubefile. 2. generated default command based on app type
func NewV1Application ¶
func NewV1Application( name string, appType string, files []string) version.VersionedApplication
Types ¶
type Additional ¶
type Application ¶
type Application struct {
NameVar string `json:"name"`
TypeVar string `json:"type,omitempty"`
FilesVar []string `json:"files,omitempty"`
VersionVar string `json:"version,omitempty"`
// AppEnv is a set of key value pair.
// it is app level, only this app will be aware of its existence,
// it is used to render app files, or as an environment variable for app startup and deletion commands
AppEnv map[string]string `json:"env,omitempty"`
// AppCMDs defined from `appcmds` instruction
AppCMDs []string `json:"cmds,omitempty"`
}
func (*Application) Files ¶ added in v0.10.0
func (app *Application) Files() []string
func (*Application) Name ¶
func (app *Application) Name() string
func (*Application) SetCmds ¶ added in v0.11.0
func (app *Application) SetCmds(appCmds []string)
func (*Application) SetEnv ¶ added in v0.11.0
func (app *Application) SetEnv(appEnv map[string]string)
func (*Application) Type ¶
func (app *Application) Type() string
func (*Application) Version ¶
func (app *Application) Version() string
type Configurations ¶
Click to show internal directories.
Click to hide internal directories.