application

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFromTemplate added in v0.2.0

func GenerateFromTemplate(data *template.Data) error

func RunPromptNew added in v0.2.0

func RunPromptNew(t *template.Data) error

Types

type AppBlock added in v0.3.0

type AppBlock struct {
	Envs     map[string]string `json:"envs" yaml:"envs"`
	Policies []string          `json:"policies" yaml:"policies"`
}

type Application

type Application struct {
	Schema      string                 `json:"schema" yaml:"schema"`
	Name        string                 `json:"name" yaml:"name"`
	Description string                 `json:"description" yaml:"description"`
	SourceURL   string                 `json:"source_url" yaml:"source_url"`
	Type        string                 `json:"type" yaml:"type"`
	Access      string                 `json:"access" yaml:"access"`
	Steps       []bundle.Step          `json:"steps" yaml:"steps"`
	Params      map[string]interface{} `json:"params" yaml:"params"`
	Connections map[string]interface{} `json:"connections" yaml:"connections"`
	Artifacts   map[string]interface{} `json:"artifacts" yaml:"artifacts"`
	UI          map[string]interface{} `json:"ui" yaml:"ui"`
	App         AppBlock               `json:"app" yaml:"app"`
}

TODO: combine w/ bundle struct

func Parse

func Parse(path string, overrides map[string]interface{}) (*Application, error)

TODO: combine with bundle.Parse

func (*Application) AsBundle added in v0.3.0

func (app *Application) AsBundle() *bundle.Bundle

func (*Application) Build added in v0.3.0

func (app *Application) Build(c *client.MassdriverClient, output string) error

Jump to

Keyboard shortcuts

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