scan

package
v0.0.0-...-8c65269 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var ScanCmd = &cobra.Command{
	Use:   "scan",
	Short: "Scanning the directory and checking the difference in the hash of the files",
	Long: `

Tripwire main functionality:
It scans the specified directory to detect any changes in the files' content.
The tool then outputs the current state in CSV format.

`,
	Run: func(cmd *cobra.Command, args []string) {

		err := TripScan(csvName)

		if err != nil {
			fmt.Println(err)
			os.Exit(1)
		}

	},
}

Functions

func TripScan

func TripScan(csvPath string) error

Types

type Compared

type Compared struct {
	Status
	FilePath string
	Dir      string
}

type Status

type Status string
const (
	NotExist Status = "Not Exists"
	Changed  Status = "Changed"
)

Jump to

Keyboard shortcuts

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