cmd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Index

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 GetDb

func GetDb() *sql.DB

func GetDbLocation

func GetDbLocation() string

func GetFileData

func GetFileData(path string) (int, int, int)

func GetFilesInSource

func GetFilesInSource(path string) []string

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

type DirInfoRow struct {
	SourcePath  string
	Directory   string
	Permissions int
	UID         int
	GID         int
}

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{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL