Documentation ¶
Overview ¶
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Index ¶
- func CreateDirTable()
- func CreateTable()
- func Execute()
- func GetAllFilesGuarded()
- func GetDb() *sql.DB
- func GetDbLocation() string
- func GetFileData(path string) (int, int, int)
- func GetFilesInSource(path string) []string
- func InsertDirectoryInfo(values ...interface{})
- func InsertFileInfo(values ...interface{})
- type DirInfoRow
- type FileInfoRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirTable ¶
func CreateDirTable()
Used for creating the initial Directory Table where data is stored regarding
func CreateTable ¶
func CreateTable()
Used for creating the initial Table where data is stored regarding
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetAllFilesGuarded ¶
func GetAllFilesGuarded()
func GetDbLocation ¶
func GetDbLocation() string
func GetFilesInSource ¶
Get List of files to be guarded looping internal directories
func InsertDirectoryInfo ¶
func InsertDirectoryInfo(values ...interface{})
func InsertFileInfo ¶
func InsertFileInfo(values ...interface{})
Types ¶
type DirInfoRow ¶
func GetDirectoryInfo ¶
func GetDirectoryInfo(sourcePath string) []DirInfoRow
func (*DirInfoRow) GetFileRowArray ¶
func (f *DirInfoRow) GetFileRowArray() []interface{}
type FileInfoRow ¶
type FileInfoRow struct { SourcePath string FilePath string HardLinkPath string Permissions int UID int GID int }
func GetFileInfo ¶
func GetFileInfo(sourcePath string) []FileInfoRow
func (*FileInfoRow) GetFileRowArray ¶
func (f *FileInfoRow) GetFileRowArray() []interface{}
Click to show internal directories.
Click to hide internal directories.