application

package
v0.1.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const MassdriverHelmChartRepository = "https://massdriver-cloud.github.io/helm-charts"

Variables

View Source
var SimpleParams = `` /* 3452-byte string literal not displayed */
View Source
var SimpleUI = `` /* 375-byte string literal not displayed */

Functions

func Generate added in v0.0.6

func Generate(data *TemplateData) error

func GenerateFromTemplate added in v0.2.0

func GenerateFromTemplate(data *TemplateData) error

func PackageApplication added in v0.0.3

func PackageApplication(appPath string, c *client.MassdriverClient, workingDir string, buf io.Writer) (*bundle.Bundle, error)

func RunPrompt added in v0.0.6

func RunPrompt(t *TemplateData) error

func RunPromptNew added in v0.2.0

func RunPromptNew(t *TemplateData) error

Types

type Application

type Application struct {
	Schema       string                  `json:"schema" yaml:"schema"`
	Name         string                  `json:"name" yaml:"name"`
	Description  string                  `json:"description" yaml:"description"`
	Ref          string                  `json:"ref" yaml:"ref"`
	Access       string                  `json:"access" yaml:"access"`
	Deployment   Deployment              `json:"deployment" yaml:"deployment"`
	Params       map[string]interface{}  `json:"params" yaml:"params"`
	Dependencies map[string]Dependencies `json:"dependencies" yaml:"dependencies"`
}

func Parse

func Parse(path string) (*Application, error)

func (*Application) ConvertToBundle

func (app *Application) ConvertToBundle() (*bundle.Bundle, error)

type ChartYAML added in v0.1.0

type ChartYAML struct {
	APIVersion  string `yaml:"apiVersion"`
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	Type        string `yaml:"type"`
	Version     string `yaml:"version"`
}

type Dependencies added in v0.1.0

type Dependencies struct {
	Type     string             `json:"type" yaml:"type"`
	Required bool               `json:"required,omitempty" yaml:"required,omitempty"`
	Envs     []DependenciesEnvs `json:"envs" yaml:"envs"`
	Policies []string           `json:"policies,omitempty" yaml:"policies,omitempty"`
}

type DependenciesEnvs added in v0.1.0

type DependenciesEnvs struct {
	Name string `json:"name" yaml:"name"`
	Path string `json:"path" yaml:"path"`
}

type Deployment added in v0.1.0

type Deployment struct {
	Type       string `json:"type" yaml:"type"`
	Path       string `json:"path,omitempty" yaml:"path,omitempty"`
	Chart      string `json:"chart,omitempty" yaml:"chart,omitempty"`
	Repository string `json:"repository,omitempty" yaml:"repository,omitempty"`
}

type TemplateData added in v0.1.0

type TemplateData struct {
	Name         string
	Description  string
	Access       string
	Chart        string
	Location     string
	TemplateName string
	OutputDir    string
}

Jump to

Keyboard shortcuts

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