Documentation ¶
Index ¶
- Constants
- Variables
- func CreateProjectConfigFile(dir string, projectName string, projectContext *ZeroProjectConfig) error
- func ReadVendorCredentialsFromModule(m Module, vendor string) (error, string)
- func SetRootDir(dir string)
- type Condition
- type Files
- type Module
- type Modules
- type Parameters
- type ZeroProjectConfig
Constants ¶
View Source
const GraphRootName = "graphRoot"
GraphRootName represents the root of the graph of modules in a project
Variables ¶
View Source
var RootDir = "./"
Functions ¶
func CreateProjectConfigFile ¶
func CreateProjectConfigFile(dir string, projectName string, projectContext *ZeroProjectConfig) error
CreateProjectConfigFile extracts the required content for zero project config file then write to disk.
func ReadVendorCredentialsFromModule ¶ added in v0.1.0
ReadVendorCredentialsFromModule uses parsed project-config's module based on vendor parameter, retrieve the vendor's credential for pre-defined functionalities (eg: Github api key for pushing repos to github)
func SetRootDir ¶
func SetRootDir(dir string)
Types ¶
type Module ¶
type Module struct { DependsOn []string `yaml:"dependsOn,omitempty"` Parameters Parameters `yaml:"parameters,omitempty"` Files Files Conditions []Condition `yaml:"conditions,omitempty"` }
type Parameters ¶
type ZeroProjectConfig ¶
type ZeroProjectConfig struct { Name string `yaml:"name"` ShouldPushRepositories bool `yaml:"shouldPushRepositories"` Parameters map[string]string Modules Modules `yaml:"modules"` }
func LoadConfig ¶
func LoadConfig(filePath string) *ZeroProjectConfig
func (*ZeroProjectConfig) GetDAG ¶
func (c *ZeroProjectConfig) GetDAG() dag.AcyclicGraph
GetDAG returns a graph of the module names used in this project config
func (*ZeroProjectConfig) Print ¶
func (c *ZeroProjectConfig) Print()
Click to show internal directories.
Click to hide internal directories.