Documentation
¶
Index ¶
- func CleanupConnections() error
- func CleanupTask(fr *b.FinalResult) error
- func DirNameFromURL(s string) (string, error)
- func Local(finalResult *b.FinalResult, dataSettings *b.DataSettings, outPath string) error
- func Sftp(r *b.FinalResult) error
- func StoreAll(finalResult *b.FinalResult) error
- func StoreResultsSSH(r *b.FinalResult, activeConn *SftpConn, remotePath string) error
- type ConnInfo
- type SftpConn
- type SftpParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupConnections ¶
func CleanupConnections() error
CleanupConnections should be called when MIDA exits to ensure that any existing connections to remote hosts or databases are closed gracefully
func CleanupTask ¶
func CleanupTask(fr *b.FinalResult) error
CleanupTask handles deleting temporary files created as tasks are processed. It should only be called once results have been totally stored.
func DirNameFromURL ¶
DirNameFromURL takes a URL and sanitizes/escapes it so it can safely be used as a filename
func Local ¶
func Local(finalResult *b.FinalResult, dataSettings *b.DataSettings, outPath string) error
Local stores the results of a site visit locally, returning the path to the results along with an error
func Sftp ¶
func Sftp(r *b.FinalResult) error
func StoreAll ¶
func StoreAll(finalResult *b.FinalResult) error
func StoreResultsSSH ¶
func StoreResultsSSH(r *b.FinalResult, activeConn *SftpConn, remotePath string) error
Types ¶
Click to show internal directories.
Click to hide internal directories.