Documentation
¶
Index ¶
- Constants
- Variables
- func DestroySession(sessionId string)
- func NewSessionId() string
- type ConnectionConfig
- type DeployConfig
- func (dc *DeployConfig) FromJsonCode(jsonCode string) (*DeployConfig, error)
- func (dc *DeployConfig) FromJsonFile(path string) (*DeployConfig, error)
- func (dc *DeployConfig) FromXmlCode(xmlCode string) (*DeployConfig, error)
- func (dc *DeployConfig) FromXmlFile(path string) (*DeployConfig, error)
- func (dc *DeployConfig) FromYamlCode(yamlCode string) (*DeployConfig, error)
- func (dc *DeployConfig) FromYamlFile(path string) (*DeployConfig, error)
- func (dc *DeployConfig) Json() (string, error)
- func (dc *DeployConfig) Merge(dc2 *DeployConfig) *DeployConfig
- func (dc *DeployConfig) String() string
- func (dc *DeployConfig) Xml() (string, error)
- func (dc *DeployConfig) Yaml() (string, error)
- type DeployType
- func (dt *DeployType) FromJsonCode(jsonCode string) (*DeployType, error)
- func (dt *DeployType) FromJsonFile(path string) (*DeployType, error)
- func (dt *DeployType) FromXmlCode(xmlCode string) (*DeployType, error)
- func (dt *DeployType) FromXmlFile(path string) (*DeployType, error)
- func (dt *DeployType) FromYamlCode(yamlCode string) (*DeployType, error)
- func (dt *DeployType) FromYamlFile(path string) (*DeployType, error)
- func (dt *DeployType) Json() (string, error)
- func (dt *DeployType) Merge(dt2 *DeployType) *DeployType
- func (dt *DeployType) String() string
- func (dt *DeployType) Xml() (string, error)
- func (dt *DeployType) Yaml() (string, error)
- type DeploymentTypeValue
- type DescriptorTypeValue
- type FeedExec
- type NetProtocolType
- func (npt *NetProtocolType) FromJsonCode(jsonCode string) (*NetProtocolType, error)
- func (npt *NetProtocolType) FromJsonFile(path string) (*NetProtocolType, error)
- func (npt *NetProtocolType) FromXmlCode(xmlCode string) (*NetProtocolType, error)
- func (npt *NetProtocolType) FromXmlFile(path string) (*NetProtocolType, error)
- func (npt *NetProtocolType) FromYamlCode(yamlCode string) (*NetProtocolType, error)
- func (npt *NetProtocolType) FromYamlFile(path string) (*NetProtocolType, error)
- func (npt *NetProtocolType) Json() (string, error)
- func (npt *NetProtocolType) Merge(npt2 *NetProtocolType) *NetProtocolType
- func (npt *NetProtocolType) String() string
- func (npt *NetProtocolType) Xml() (string, error)
- func (npt *NetProtocolType) Yaml() (string, error)
- type NetProtocolTypeValue
- type PluginsConfig
- func (pc *PluginsConfig) FromJsonCode(jsonCode string) (*PluginsConfig, error)
- func (pc *PluginsConfig) FromJsonFile(path string) (*PluginsConfig, error)
- func (pc *PluginsConfig) FromXmlCode(xmlCode string) (*PluginsConfig, error)
- func (pc *PluginsConfig) FromXmlFile(path string) (*PluginsConfig, error)
- func (pc *PluginsConfig) FromYamlCode(yamlCode string) (*PluginsConfig, error)
- func (pc *PluginsConfig) FromYamlFile(path string) (*PluginsConfig, error)
- func (pc *PluginsConfig) Json() (string, error)
- func (pc *PluginsConfig) Merge(pc2 *PluginsConfig) *PluginsConfig
- func (pc *PluginsConfig) String() string
- func (pc *PluginsConfig) Xml() (string, error)
- func (pc *PluginsConfig) Yaml() (string, error)
- type Printable
- type RestMethodTypeValue
- type Session
- type Step
- type StrategyTypeValue
Constants ¶
View Source
const ( // Unknown Feed(s) and activation Source UNKNOWN DeploymentTypeValue = "UNKNOWN" // File Feed(s) and activation Source FILE_SOURCE DeploymentTypeValue = "FILE_SOURCE" // HTTP Call Feed(s) and activation Source HTTP_SOURCE DeploymentTypeValue = "HTTP_SOURCE" // Rest service Feed(s) and activation Source REST_SOURCE DeploymentTypeValue = "REST_SOURCE" // Pipe channel Feed(s) and activation Source PIPE_SOURCE DeploymentTypeValue = "PIPE_SOURCE" // Streaing engine Feed(s) and activation Source STREAM_SOURCE DeploymentTypeValue = "STREAM_SOURCE" // YAML File Descriptor YAML_DESCRIPTOR DescriptorTypeValue = "YAML" // JSON File Descriptor JSON_DESCRIPTOR DescriptorTypeValue = "JSON" // XML File Descriptor XML_DESCRIPTOR DescriptorTypeValue = "XML" // ONE SHOT Deployment Strategy ONE_SHOT_DEPLOYMENT StrategyTypeValue = "ONE_SHOT_DEPLOYMENT" // Continuous Deployment Strategy CONTINUOUS_DEPLOYMENT StrategyTypeValue = "CONTINUOUS_DEPLOYMENT" // Awake On-Demand Deployment Strategy ON_DEMAND_DEPLOYMENT StrategyTypeValue = "ON_DEMAND_DEPLOYMENT" // Sheduled and periodic Deployment Strategy PERIODIC_DEPLOYMENT StrategyTypeValue = "PERIODIC_DEPLOYMENT" // REST Service Get Requiest Identifier REST_GET_REQUEST RestMethodTypeValue = "GET" // REST Service Post Requiest Identifier REST_POST_REQUEST RestMethodTypeValue = "POST" // SSH Built-in Client protocol NET_PROTOCOL_SSH NetProtocolTypeValue = "SSH" // Go! TLS/TCP Client protocol NET_PROTOCOL_GO_DEPLOY_CLIENT NetProtocolTypeValue = "GO_DEPLOY" )
Variables ¶
View Source
var Logger log.Logger = nil
Functions ¶
func DestroySession ¶
func DestroySession(sessionId string)
func NewSessionId ¶
func NewSessionId() string
Types ¶
type ConnectionConfig ¶
type ConnectionConfig struct { UseUserPassword bool UseUserKey bool UseUserKeyPassphrase bool UseSSHConfig bool UseTLSCertificates bool }
Client Connection Features Availabolity Configuration
type DeployConfig ¶
type DeployConfig struct { DeployName string `yaml:"deployName,omitempty" json:"deployName,omitempty" xml:"deploy-name,chardata,omitempty"` LogVerbosity string `yaml:"verbosity,omitempty" json:"verbosity,omitempty" xml:"verbosity,chardata,omitempty"` UseHosts []string `yaml:"useHosts,omitempty" json:"useHosts,omitempty" xml:"use-hosts,chardata,omitempty"` UseVars []string `yaml:"useVars,omitempty" json:"useVars,omitempty" xml:"use-vars,chardata,omitempty"` WorkDir string `yaml:"workDir,omitempty" json:"workDir,omitempty" xml:"work-dir,chardata,omitempty"` ModulesDir string `yaml:"modulesDir,omitempty" json:"modulesDir,omitempty" xml:"modules-dir,chardata,omitempty"` ConfigDir string `yaml:"configDir,omitempty" json:"configDir,omitempty" xml:"config-dir,chardata,omitempty"` ChartsDir string `yaml:"chartsDir,omitempty" json:"chartsDir,omitempty" xml:"charts-dir,chardata,omitempty"` SystemDir string `yaml:"systemDir,omitempty" json:"systemDir,omitempty" xml:"system-dir,chardata,omitempty"` ConfigLang DescriptorTypeValue `yaml:"configLang,omitempty" json:"configLang,omitempty" xml:"config-lang,chardata,omitempty"` EnvSelector string `yaml:"env,omitempty" json:"env,omitempty" xml:"env,chardata,omitempty"` ParallelExecutions bool `yaml:"parallel,omitempty" json:"parallel,omitempty" xml:"parallel,chardata,omitempty"` MaxThreads int64 `yaml:"maxThreads,omitempty" json:"maxThreads,omitempty" xml:"max-threads,chardata,omitempty"` SingleSession bool `yaml:"singleSession,omitempty" json:"singleSession,omitempty" xml:"single-session,chardata,omitempty"` ReadTimeout int64 `yaml:"readTimeout,omitempty" json:"readTimeout,omitempty" xml:"read-timeout,chardata,omitempty"` }
Main Configuration Struture
var RuntimeDeployConfig *DeployConfig = nil
func (*DeployConfig) FromJsonCode ¶
func (dc *DeployConfig) FromJsonCode(jsonCode string) (*DeployConfig, error)
func (*DeployConfig) FromJsonFile ¶
func (dc *DeployConfig) FromJsonFile(path string) (*DeployConfig, error)
func (*DeployConfig) FromXmlCode ¶
func (dc *DeployConfig) FromXmlCode(xmlCode string) (*DeployConfig, error)
func (*DeployConfig) FromXmlFile ¶
func (dc *DeployConfig) FromXmlFile(path string) (*DeployConfig, error)
func (*DeployConfig) FromYamlCode ¶
func (dc *DeployConfig) FromYamlCode(yamlCode string) (*DeployConfig, error)
func (*DeployConfig) FromYamlFile ¶
func (dc *DeployConfig) FromYamlFile(path string) (*DeployConfig, error)
func (*DeployConfig) Json ¶
func (dc *DeployConfig) Json() (string, error)
func (*DeployConfig) Merge ¶
func (dc *DeployConfig) Merge(dc2 *DeployConfig) *DeployConfig
func (*DeployConfig) String ¶
func (dc *DeployConfig) String() string
func (*DeployConfig) Xml ¶
func (dc *DeployConfig) Xml() (string, error)
func (*DeployConfig) Yaml ¶
func (dc *DeployConfig) Yaml() (string, error)
type DeployType ¶
type DeployType struct { DeploymentType DeploymentTypeValue `yaml:"deploymentType,omitempty" json:"deploymentType,omitempty" xml:"deployment-type,chardata,omitempty"` DescriptorType DescriptorTypeValue `yaml:"descriptorType,omitempty" json:"descriptorType,omitempty" xmk:"descriptor-type,chardata,omitempty"` StrategyType StrategyTypeValue `yaml:"strategyType,omitempty" json:"strategyType,omitempty" json:"strategy-type,chardata,omitempty"` Scheduled string `yaml:"scheduled,omitempty" json:"scheduled,omitempty" json:"scheduled,chardata,omitempty"` Method RestMethodTypeValue `yaml:"restMethod,omitempty" json:"restMethod,omitempty" json:"restMethod,chardata,omitempty"` PostBody string `yaml:"postBody,omitempty" json:"postBody,omitempty" json:"post-body,chardata,omitempty"` }
Deploy Behaviour Configuration Struture
var RuntimeDeployType *DeployType = nil
func (*DeployType) FromJsonCode ¶
func (dt *DeployType) FromJsonCode(jsonCode string) (*DeployType, error)
func (*DeployType) FromJsonFile ¶
func (dt *DeployType) FromJsonFile(path string) (*DeployType, error)
func (*DeployType) FromXmlCode ¶
func (dt *DeployType) FromXmlCode(xmlCode string) (*DeployType, error)
func (*DeployType) FromXmlFile ¶
func (dt *DeployType) FromXmlFile(path string) (*DeployType, error)
func (*DeployType) FromYamlCode ¶
func (dt *DeployType) FromYamlCode(yamlCode string) (*DeployType, error)
func (*DeployType) FromYamlFile ¶
func (dt *DeployType) FromYamlFile(path string) (*DeployType, error)
func (*DeployType) Json ¶
func (dt *DeployType) Json() (string, error)
func (*DeployType) Merge ¶
func (dt *DeployType) Merge(dt2 *DeployType) *DeployType
func (*DeployType) String ¶
func (dt *DeployType) String() string
func (*DeployType) Xml ¶
func (dt *DeployType) Xml() (string, error)
func (*DeployType) Yaml ¶
func (dt *DeployType) Yaml() (string, error)
type DeploymentTypeValue ¶
type DeploymentTypeValue string
type DescriptorTypeValue ¶
type DescriptorTypeValue string
var ChartsDescriptorFormat DescriptorTypeValue = DescriptorTypeValue("YAML")
type NetProtocolType ¶
type NetProtocolType struct { NetProtocol NetProtocolTypeValue `yaml:"protocol,omitempty" json:"protocol,omitempty" xml:"protocol,chardata,omitempty"` UserName string `yaml:"userName,omitempty" json:"userName,omitempty" xml:"username,chardata,omitempty"` Password string `yaml:"password,omitempty" json:"password,omitempty" xml:"password,chardata,omitempty"` KeyFile string `yaml:"keyFile,omitempty" json:"keyFile,omitempty" xml:"key-file,chardata,omitempty"` CaCert string `yaml:"caCert,omitempty" json:"caCert,omitempty" xml:"ca-cert,chardata,omitempty"` Passphrase string `yaml:"passphrase,omitempty" json:"passphrase,omitempty" xml:"passphrase,chardata,omitempty"` Certificate string `yaml:"certificate,omitempty" json:"certificate,omitempty" xml:"certificate,chardata,omitempty"` Insecure bool `yaml:"insecure,omitempty" json:"insecure,omitempty" xml:"insecure,chardata,omitempty"` }
Networking and Client Configuration Struture
var RuntimeNetworkType *NetProtocolType = nil
func (*NetProtocolType) FromJsonCode ¶
func (npt *NetProtocolType) FromJsonCode(jsonCode string) (*NetProtocolType, error)
func (*NetProtocolType) FromJsonFile ¶
func (npt *NetProtocolType) FromJsonFile(path string) (*NetProtocolType, error)
func (*NetProtocolType) FromXmlCode ¶
func (npt *NetProtocolType) FromXmlCode(xmlCode string) (*NetProtocolType, error)
func (*NetProtocolType) FromXmlFile ¶
func (npt *NetProtocolType) FromXmlFile(path string) (*NetProtocolType, error)
func (*NetProtocolType) FromYamlCode ¶
func (npt *NetProtocolType) FromYamlCode(yamlCode string) (*NetProtocolType, error)
func (*NetProtocolType) FromYamlFile ¶
func (npt *NetProtocolType) FromYamlFile(path string) (*NetProtocolType, error)
func (*NetProtocolType) Json ¶
func (npt *NetProtocolType) Json() (string, error)
func (*NetProtocolType) Merge ¶
func (npt *NetProtocolType) Merge(npt2 *NetProtocolType) *NetProtocolType
func (*NetProtocolType) String ¶
func (npt *NetProtocolType) String() string
func (*NetProtocolType) Xml ¶
func (npt *NetProtocolType) Xml() (string, error)
func (*NetProtocolType) Yaml ¶
func (npt *NetProtocolType) Yaml() (string, error)
type NetProtocolTypeValue ¶
type NetProtocolTypeValue string
type PluginsConfig ¶
type PluginsConfig struct { EnableDeployClientsPlugin bool `` /* 139-byte string literal not displayed */ DeployClientsPluginExtension string `` /* 148-byte string literal not displayed */ DeployClientsPluginFolder string `` /* 139-byte string literal not displayed */ EnableDeployCommandsPlugin bool `` /* 142-byte string literal not displayed */ DeployCommandsPluginExtension string `` /* 151-byte string literal not displayed */ DeployCommandsPluginFolder string `` /* 142-byte string literal not displayed */ EnableDeployClientCommandsPlugin bool `` /* 161-byte string literal not displayed */ DeployClientCommandsPluginExtension string `` /* 170-byte string literal not displayed */ DeployClientCommandsPluginFolder string `` /* 161-byte string literal not displayed */ }
Plugins Configuration Struture
var RuntimePluginsType *PluginsConfig = nil
func (*PluginsConfig) FromJsonCode ¶
func (pc *PluginsConfig) FromJsonCode(jsonCode string) (*PluginsConfig, error)
func (*PluginsConfig) FromJsonFile ¶
func (pc *PluginsConfig) FromJsonFile(path string) (*PluginsConfig, error)
func (*PluginsConfig) FromXmlCode ¶
func (pc *PluginsConfig) FromXmlCode(xmlCode string) (*PluginsConfig, error)
func (*PluginsConfig) FromXmlFile ¶
func (pc *PluginsConfig) FromXmlFile(path string) (*PluginsConfig, error)
func (*PluginsConfig) FromYamlCode ¶
func (pc *PluginsConfig) FromYamlCode(yamlCode string) (*PluginsConfig, error)
func (*PluginsConfig) FromYamlFile ¶
func (pc *PluginsConfig) FromYamlFile(path string) (*PluginsConfig, error)
func (*PluginsConfig) Json ¶
func (pc *PluginsConfig) Json() (string, error)
func (*PluginsConfig) Merge ¶
func (pc *PluginsConfig) Merge(pc2 *PluginsConfig) *PluginsConfig
func (*PluginsConfig) String ¶
func (pc *PluginsConfig) String() string
func (*PluginsConfig) Xml ¶
func (pc *PluginsConfig) Xml() (string, error)
func (*PluginsConfig) Yaml ¶
func (pc *PluginsConfig) Yaml() (string, error)
type Printable ¶
type Printable interface { // Traslates the object in printable version <BR/> // Return: <BR/> // (string) Representation of the structure<BR/> String() string }
Printable interface, allows system to print as sting any implementing components (almost all in this project)
type RestMethodTypeValue ¶
type RestMethodTypeValue string
type Session ¶
type Session interface { // Retrives Session Unique Id GetSessionId() string // Retrives Session Deploy Type GetDeployType() *DeployType // Retrives Session Network Protocol Type GetNetProtocolType() *NetProtocolType // Retrives Session Deploy Config GetDeployConfig() *DeployConfig // Retrives a Session Variable by key GetVar(name string) (string, error) // Sets a Session Variable SetVar(name string, value string) bool // Retrives all Session Variable keys GetKeys() []string // Retrives a Session Object by key GetSystemObject(name string) (interface{}, error) // Sets a Session Variable // Build-in are required variables present in Vars files SetSystemObject(name string, value interface{}) bool // Retrives all Session Object keys // Build-in session objects : // connection-handler -> Current Session ConnectionHandler // rutime-config -> Session module.DeployConfig // runtime-type -> Session module.DeployType // runtime-net -> Session module.NetworkType // host-groups -> Current Running defaults.HostGroup // envs -> Session Environemnts Row defaults.NameValuePair list // vars -> Session Variables Row defaults.NameValuePair list // system-logger -> Centrilized Go! Deploy logger instance GetSystemKeys() []string }
Session Interface
func NewSession ¶
type Step ¶
type Step struct { Name string StepType string StepData interface{} Children []*Step Feeds []*FeedExec }
Step Structure
type StrategyTypeValue ¶
type StrategyTypeValue string
Click to show internal directories.
Click to hide internal directories.