Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileProcessor ¶
type Interface ¶
type Interface interface { // GetImageLaunchCmds :its image level. get entire application launch commands // return appended each app launch cmds Or globalCmds. GetImageLaunchCmds() []string // GetAppLaunchCmds :get application launch commands from configs // return Launch.Cmds firstly Or wrapper application commands through its type. GetAppLaunchCmds(appName string) []string // GetAppNames :get application name list // return spec.AppNames GetAppNames() []string //GetAppRoot :get appRoot path by its name. GetAppRoot(appName string) string // FileProcess :Process application file using at mount stage to modify build app files. FileProcess(mountDir string) error // GetApplication :get application spec // return v2.Application GetApplication() v2.Application Launch(infraDriver infradriver.InfraDriver) error Save(opts SaveOptions) error }
Interface works like application driver, it converts Application fields, such as app configs, app global envs, app image names and so on.
func NewAppDriver ¶ added in v0.11.0
func NewAppDriver(app *v2.Application, extension imagev1.ImageExtension) (Interface, error)
NewAppDriver :unify v2.Application and image extension into same Interface using to do Application ops.
type SaveOptions ¶ added in v0.9.2
type SaveOptions struct { }
Click to show internal directories.
Click to hide internal directories.