common

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: GPL-3.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Err404 = errors.New("404 status code")
View Source
var Err422 = errors.New("422 status code")
View Source
var OsRuntime = runtime.GOOS

Functions

func CountFiles

func CountFiles(path string) (int, error)

func HTTPGet

func HTTPGet(client *http.Client, targetURL string, headers map[string]string) ([]byte, error)

func ReadFile

func ReadFile(path string) ([]byte, error)

func UnzipBytes

func UnzipBytes(zipBytes []byte, dest string) error

Types

type Options

type Options struct {
	// Target options
	Repo  string
	Repos string

	// Running options
	Fireprox   string
	Debug      bool
	Threads    int
	OutDir     string
	SaveRepo   bool
	NoEmoji    bool
	ConfigPath string

	// Display options
	Description     bool
	FullDescription bool
	Stars           bool
	Language        bool
	Topics          bool
	Files           bool
	RepoLink        bool
	Forks           bool
	LastRelease     bool
	LastCommit      bool
	FirstCommit     bool
	Commits         bool
	SecurityIssues  bool
	Watchers        bool
	Contributors    bool
	Branch          bool
	Issues          bool
	PullRequests    bool

	// Filters
	FilterStars          string
	FilterFiles          string
	FilterForks          string
	FilterLastRelease    string
	FilterLastCommit     string
	FilterFirstCommit    string
	FilterCommits        string
	FilterSecurityIssues string
	FilterWatchers       string
	FilterContributors   string
	FilterIssues         string
	FilterPullRequests   string

	// Scanning options
	NoSemgrep   bool
	SemgrepPath string

	// Reporting options
	Github1s bool
	RawLinks bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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