application

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileProcessor

type FileProcessor interface {
	//Process application files though ValueType
	// currently Processor register as blew:
	// overWriteProcessor: this will overwrite the FilePath with the Values.
	// renderProcessor: this will render the FilePath with the Values.
	Process(appRoot string) error
}

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 {
}

Jump to

Keyboard shortcuts

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