Documentation
¶
Index ¶
- type DirExecStatusMap
- type FileExecStatus
- type Instance
- func (i *Instance) DeleteState(directory string) *Instance
- func (i *Instance) Init()
- func (i *Instance) PrintSeparator()
- func (i *Instance) PrintState(directory string) *Instance
- func (i *Instance) ReturnState(directory string) *Instance
- func (i *Instance) RunScriptsInDir(fullDirPath string)
- func (i *Instance) StopRunningCmd()
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirExecStatusMap ¶
type DirExecStatusMap map[string]map[string]FileExecStatus
DirExecStatusMap is a map of: directory -> file exec status of each file within that directory
type FileExecStatus ¶
type FileExecStatus struct {
StartTime time.Time `json:"startTime"`
TimeTaken string `json:"timeTaken"`
LastSuccessTime string `json:"lastSuccessTime"`
LastErrorTime string `json:"lastErrorTime"`
State stateType `json:"state"`
LogFilePath string `json:"logFilePath"`
}
FileExecStatus captures the status of a file
type Instance ¶
type Instance struct {
AutoYesEnabled bool
DryRunEnabled bool
RunOnLocal bool
ReRun bool
LogDir string
GeneratedDir string
TemplateDir string
Error error
TimeoutInterval time.Duration
State
}
Instance is the main struct for bash configs
func (*Instance) DeleteState ¶
DeleteState deletes state
func (*Instance) PrintSeparator ¶
func (i *Instance) PrintSeparator()
PrintSeparator prints a separator
func (*Instance) PrintState ¶
PrintState prints current state
func (*Instance) ReturnState ¶
ReturnState returns state
func (*Instance) RunScriptsInDir ¶
RunScriptsInDir handles running of bash files inside a directory
func (*Instance) StopRunningCmd ¶
func (i *Instance) StopRunningCmd()
StopRunningCmd stops currently running command
type State ¶
type State struct {
StateFilePath string
StateFileDefaultname string
DeploymentID string
StateFileName string
ReturnStateMap DirExecStatusMap
DirExecStatusMap DirExecStatusMap
}
State is the main struct to hold state object
Click to show internal directories.
Click to hide internal directories.