Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEPLOY_CONFIG_FILE_NAME string = "deploy-config" DEPLOY_DATA_FILE_NAME string = "deploy-type" DEPLOY_NET_FILE_NAME string = "deploy-net" DEPLOY_PKUGINS_FILE_NAME string = "deploy-plugins" DEPLOY_ENVS_FILE_NAME string = "deploy-envs" DEFAULT_CONFIG_FOLDER string = "env" DEFAULT_CHARTS_FOLDER string = "charts" DEFAULT_MODULES_FOLDER string = "mod" DEFAULT_SYSTEM_FOLDER string = ".go-deploy" )
View Source
const ( Banner string = `` /* 310-byte string literal not displayed */ Version string = "v. 1.0.0" Authors string = "Fabrizio Torelli (hellgate75@gmail.com)" Disclaimer string = "No Warranty is given on use of this product" )
Variables ¶
View Source
var Logger log.Logger = nil
Functions ¶
func GetFileFormatDescritor ¶
func GetFileFormatDescritor(fileName string, defaultFormat module.DescriptorTypeValue) module.DescriptorTypeValue
Evaluate most matching descriptor between given or empty and file extension most suitable format, it can return One of module.DescriptorTypeValue or "UNKNOWN", if no format is pecified and none taken from the file extension, or <default-extension-format><-<file-extension-format> in case there is not match with required format
func ParseArguments ¶
func ParseArguments() (*module.DeployConfig, error)
Parse Command line arguments
Types ¶
type Bootstrap ¶
type Bootstrap interface { Init(baseDir string, suffix string, format module.DescriptorTypeValue, logger log.Logger) []error Load(baseDir string, suffix string, format module.DescriptorTypeValue, logger log.Logger) []error Run(feed *module.FeedExec, logger log.Logger) []error GetDeployConfig() *module.DeployConfig GetDeployType() *module.DeployType GetPluginsType() *module.PluginsConfig GetNetType() *module.NetProtocolType GetDefaultDeployConfig() *module.DeployConfig GetDefaultDeployType() *module.DeployType GetDefaultNetType() *module.NetProtocolType GetDefaultPluginsType() *module.PluginsConfig }
Interface that describes Bootstrap Component behaviors
func NewBootStrap ¶
func NewBootStrap() Bootstrap