v1

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: 5 Imported by: 0

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 Additional struct {
	URL         string `json:"url,omitempty"`
	Description string `json:"description,omitempty"`
}

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

type Configurations struct {
	Environments map[string]string `json:"environments,omitempty"`
	Files        []string          `json:"files,omitempty"`
}

Jump to

Keyboard shortcuts

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