Documentation ¶
Index ¶
Constants ¶
View Source
const ( Success int = iota Failed Error )
enum for error types ...
View Source
const ( Linux string = "linux" Windows = "windows" )
const ...
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
func RunCommand(command string, directory string, logger *zap.SugaredLogger, result chan OperationStatus)
RunCommand runs command using the passed function parameters
Types ¶
type Commands ¶
type Commands struct {
Commands JsonFile `json:"commands"`
}
Commands ...
func ReadConfig ¶
ReadConfig function reads the settings file ...
type HandlerObjects ¶
type HandlerObjects struct { Logger *zap.SugaredLogger Config JsonInner }
HandlerObjects ...
type Instance ¶
type Instance struct { Logger *zap.SugaredLogger Config *Commands OperatingSystem string }
Instance ...
func InitApplication ¶
InitApplication starts the application by initializing the config and logger ...
func (*Instance) StartHandler ¶
func (i *Instance) StartHandler()
StartHandler function responsible for starting appropriate ...
type JsonInner ¶
type JsonInner struct { Directory string `json:"directory"` Concurrent bool `json:"concurrent"` List []ListItems `json:"list"` }
JsonInner represents the structure of the innser json ...
type OperationStatus ¶
type OperationStatus struct { Status int Result execute.ExecResult Duration time.Duration }
OperationStatus ...
func RunCommandSync ¶
func RunCommandSync(command string, directory string, logger *zap.SugaredLogger) (result OperationStatus)
RunCommandSync runs command synchronously ...
Click to show internal directories.
Click to hide internal directories.