project

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project interface {
	HasDependencyOn(project Project) bool
	GetConfigs() []config.Config
	GetConfig(id string) (config.Config, error)
	GetId() string
}

func LoadProjectsToDeploy

func LoadProjectsToDeploy(specificProjectToDeploy string, apis map[string]api.Api, path string, fileReader util.FileReader) (projectsToDeploy []Project, err error)

LoadProjectsToDeploy returns a list of projects for deployment if projects specified with -p parameter then it takes only those projects and it also resolves all project dependencies if no -p parameter specified, then it creates a list of all projects

func NewProject

func NewProject(folder string, apis map[string]api.Api, projectRootFolder string, fileReader util.FileReader) (Project, error)

NewProject loads a new project from folder. Returns either project or a reading/sorting error respectively.

Jump to

Keyboard shortcuts

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