projects

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadProjectFile added in v1.3.0

func ReadProjectFile(dir dir.Directory) ([]byte, error)

ReadProjectFile reads a project.yml file from a given directory.

Types

type Project

type Project struct {
	Directory   dir.Directory
	Name        string                            `yaml:"name"`
	Description string                            `yaml:"description"`
	Products    map[string]products.ProductConfig `yaml:"products"`
	Network     ProjectNetwork                    `yaml:"network"`
}

Project holds project-related configuration information.

func Load added in v1.3.0

func Load(dir dir.Directory) (Project, error)

Load loads a project and returns a Project struct instance for manipulating the project.

func NewProject

func NewProject(dir dir.Directory, track bool) (Project, error)

NewProject creates a project in the specified directory and adds it to the tracked projects if track is specified.

type ProjectNetwork added in v1.3.0

type ProjectNetwork struct {
	Name   string            `yaml:"name"`
	Labels map[string]string `yaml:"labels"`
}

ProjectNetwork is a representation of a "network" entity within the deployment platform.

Jump to

Keyboard shortcuts

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