application

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 8 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:
	// rawTypeProcessor: this will overwrite the FilePath with the Values.
	// argsTypeProcessor: this will render the FilePath with the Values.
	// secretTypeProcessor: this will write Values as Secret data to the file loaded from FilePath.
	// nameSpaceTypeProcessor: this will write Values as Namespace name to the FilePath whether it is exists or not.
	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

	// GetGlobalCmds :get application global Cmd list
	// return ApplicationSpec.Cmds.
	GetGlobalCmds() []string

	// GetAppNames :get application name list
	// return spec.AppNames firstly Or get from image extension.
	GetAppNames() []string
}

Interface works like application driver, it converts Application fields, such as app configs, app global envs, app image names and so on.

func NewV2Application

func NewV2Application(app *v2.Application, extension v12.ImageExtension) (Interface, error)

Jump to

Keyboard shortcuts

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