application

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MASSDRIVER_URL string = "https://api.massdriver.cloud/"
View Source
var SimpleParams = `` /* 3432-byte string literal not displayed */
View Source
var SimpleUi = `` /* 375-byte string literal not displayed */

Functions

func PackageApplication added in v0.0.3

func PackageApplication(appPath string, c *client.MassdriverClient, workingDir string, buf io.Writer) (*bundle.Bundle, 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   ApplicationDeployment     `json:"deployment" yaml:"deployment"`
	Params       map[string]interface{}    `json:"params" yaml:"params"`
	Dependencies []ApplicationDependencies `json:"dependencies" yaml:"dependencies"`
}

func Parse

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

func (*Application) ConvertToBundle

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

type ApplicationDependencies

type ApplicationDependencies struct {
	Type     string                        `json:"type" yaml:"type"`
	Field    string                        `json:"field" yaml:"field"`
	Required bool                          `json:"required,omitempty" yaml:"required,omitempty"`
	Env      []ApplicationDependenciesEnvs `json:"env" yaml:"env"`
	Policy   string                        `json:"policy,omitempty" yaml:"policy,omitempty"`
}

type ApplicationDependenciesEnvs

type ApplicationDependenciesEnvs struct {
	Name  string `json:"name" yaml:"name"`
	Value string `json:"value" yaml:"value"`
}

type ApplicationDeployment

type ApplicationDeployment 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"`
}

Jump to

Keyboard shortcuts

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