workspace

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Version          string    `yaml:"compatibility_version"`
	ArtifactVersion  string    `yaml:"artifact_version"`
	Message          string    `yaml:"splash_message"`
	DeploymentName   string    `yaml:"deployment_name"`
	AnalyticsMessage string    `yaml:"analytics_message"`
	DefaultMemory    int       `yaml:"default_memory"`
	Services         []Service `yaml:"services"`
	Versions         []Version `yaml:"versions"`
}

type Service

type Service struct {
	Name       string `yaml:"name"`
	Flagname   string `yaml:"flag_name"`
	Script     string `yaml:"script"`
	Deployment string `yaml:"deployment"`
	IsErrand   bool   `yaml:"errand"`
}

type Version

type Version struct {
	Name  string `yaml:"name"`
	Value string `yaml:"version"`
}

type Workspace

type Workspace struct {
	Config config.Config
}

func New

func New(config config.Config) *Workspace

func (*Workspace) CreateDirs

func (w *Workspace) CreateDirs() error

func (*Workspace) Envs

func (w *Workspace) Envs() []string

func (*Workspace) EnvsMapping

func (w *Workspace) EnvsMapping() map[string]string

func (*Workspace) Metadata

func (w *Workspace) Metadata() (Metadata, error)

func (*Workspace) SetupState

func (w *Workspace) SetupState(depsFile string) error

Jump to

Keyboard shortcuts

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