Documentation
¶
Index ¶
- Constants
- func AddBlankCommand(db *sql.DB) (entryNumber int, err error)
- func AddBlankCred(db *sql.DB) (entryNumber int, err error)
- func AddBlankHost(db *sql.DB) (entryNumber int, err error)
- func DeleteEntry(db *sql.DB, table string, ID int) error
- func FreshInstall(db *sql.DB) error
- func GetCMD(db *sql.DB, ID int) (typelib.CommandBuild, error)
- func GetCommandBarEntry(db *sql.DB) (typelib.CommandBar, error)
- func GetCommandLib(db *sql.DB) (typelib.CommandLibrary, error)
- func GetCred(db *sql.DB, ID int) (typelib.CredEntry, error)
- func GetCredTableSQLEntries(db *sql.DB) ([]typelib.CredEntry, error)
- func GetHost(db *sql.DB, ID int) (typelib.HostEntry, error)
- func GetHostList(db *sql.DB) ([]typelib.HostEntry, error)
- func InsertCommandIntoLib(db *sql.DB, commandLib typelib.CommandLibrary) error
- func InsertCommandParseTable(db *sql.DB, cmdObject typelib.CommandParseDB) error
- func InsertCreds(db *sql.DB, entry typelib.CredEntry) string
- func InsertHost(db *sql.DB, hostEntry typelib.HostEntry) error
- func MakeNewDatabase() *sql.DB
- func OpenDatabase() *sql.DB
- func RetreiveParseTable(db *sql.DB) (typelib.CommandParseDB, error)
- func SetCredBarEntry(db *sql.DB, commmandBarObject typelib.CommandBar) error
- func UpdateCMD(db *sql.DB, entry typelib.CommandBuild) error
- func UpdateCred(db *sql.DB, entry typelib.CredEntry) error
- func UpdateHost(db *sql.DB, entry typelib.HostEntry) error
Constants ¶
View Source
const DELETE_COMMAND = `DELETE FROM commands WHERE idCommand = (?)`
View Source
const DELETE_CRED = `DELETE FROM creds WHERE idCred = (?)`
View Source
const DELETE_HOST = `DELETE FROM hosts WHERE idHost = (?)`
Variables ¶
This section is empty.
Functions ¶
func FreshInstall ¶
func GetCommandBarEntry ¶
func GetCommandBarEntry(db *sql.DB) (typelib.CommandBar, error)
func GetCommandLib ¶
func GetCommandLib(db *sql.DB) (typelib.CommandLibrary, error)
func InsertCommandIntoLib ¶
func InsertCommandIntoLib(db *sql.DB, commandLib typelib.CommandLibrary) error
func InsertCommandParseTable ¶
func InsertCommandParseTable(db *sql.DB, cmdObject typelib.CommandParseDB) error
func MakeNewDatabase ¶
TODO Pass argument for location of new database
func RetreiveParseTable ¶
func RetreiveParseTable(db *sql.DB) (typelib.CommandParseDB, error)
func SetCredBarEntry ¶
func SetCredBarEntry(db *sql.DB, commmandBarObject typelib.CommandBar) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.