-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated readme and added preview image
- Loading branch information
1 parent
06359dc
commit 42939b8
Showing
9 changed files
with
364 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
output: "{{.Dir}}/README.md" | ||
repository: | ||
url: https://github.com/brittonhayes/pillager | ||
defaultBranch: main | ||
path: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Pillager | ||
|
||
 | ||
|
||
## Table of Contents | ||
|
||
1. [Installation](#installation) | ||
2. [Usage](#usage) | ||
|
||
## Installation | ||
|
||
### Command line | ||
|
||
If you have Go setup on your system, you can install Pillager with `go get` | ||
|
||
```shell script | ||
go get github.com/brittonhayes/pillager | ||
``` | ||
|
||
If you're looking for the binary, check the [bin](./bin) directory or latest release for the executable that matches your system | ||
|
||
### Usage | ||
|
||
To see all of the commands available with `pillager` | ||
|
||
```shell | ||
# To see instructions for the entire application | ||
pillager | ||
|
||
# From any subcommand | ||
pillager [cmd] --help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<!-- Code generated by gomarkdoc. DO NOT EDIT --> | ||
|
||
# hunter | ||
|
||
```go | ||
import "pillager/pkg/hunter" | ||
``` | ||
|
||
## Index | ||
|
||
- [func CheckPath(fs afero.Fs, path string) string](<#func-checkpath>) | ||
- [type Hunter](<#type-hunter>) | ||
- [func NewHunter(system afero.Fs, patterns []*regexp.Regexp, location string) *Hunter](<#func-newhunter>) | ||
- [func (h Hunter) Hunt() error](<#func-hunter-hunt>) | ||
- [func (h Hunter) Inspect(path string, fs afero.Fs)](<#func-hunter-inspect>) | ||
- [type Hunting](<#type-hunting>) | ||
|
||
|
||
## func [CheckPath](<https://github.com/brittonhayes/pillager/blob/main/pkg/hunter/helpers.go#L11>) | ||
|
||
```go | ||
func CheckPath(fs afero.Fs, path string) string | ||
``` | ||
|
||
CheckPath checks if a filepath exists and returns it if so\, otherwise returns a default path | ||
|
||
## type [Hunter](<https://github.com/brittonhayes/pillager/blob/main/pkg/hunter/filepaths.go#L14-L18>) | ||
|
||
```go | ||
type Hunter struct { | ||
System afero.Fs | ||
Patterns []*regexp.Regexp | ||
BasePath string | ||
} | ||
``` | ||
|
||
### func [NewHunter](<https://github.com/brittonhayes/pillager/blob/main/pkg/hunter/filepaths.go#L29>) | ||
|
||
```go | ||
func NewHunter(system afero.Fs, patterns []*regexp.Regexp, location string) *Hunter | ||
``` | ||
|
||
NewHunter creates an instance of the Hunter type | ||
|
||
### func \(Hunter\) [Hunt](<https://github.com/brittonhayes/pillager/blob/main/pkg/hunter/filepaths.go#L35>) | ||
|
||
```go | ||
func (h Hunter) Hunt() error | ||
``` | ||
|
||
Hunt walks over the filesystem at the configured path\, looking for sensitive information it implements the Inspect method over an entire directory | ||
|
||
### func \(Hunter\) [Inspect](<https://github.com/brittonhayes/pillager/blob/main/pkg/hunter/filepaths.go#L58>) | ||
|
||
```go | ||
func (h Hunter) Inspect(path string, fs afero.Fs) | ||
``` | ||
|
||
Inspect digs into the provided file and concurrently scans it for sensitive information | ||
|
||
## type [Hunting](<https://github.com/brittonhayes/pillager/blob/main/pkg/hunter/filepaths.go#L23-L26>) | ||
|
||
Hunting is the primary API interface for the hunter package | ||
|
||
```go | ||
type Hunting interface { | ||
Hunt() error | ||
Inspect(path string, fs afero.Fs) | ||
} | ||
``` | ||
|
||
|
||
|
||
Generated by [gomarkdoc](<https://github.com/princjef/gomarkdoc>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters