common

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubAPIBaseURL   = "https://api.github.com"
	GitHubAPIRateLimit = "https://api.github.com/rate_limit"
	CloneDirectoryName = "cloned_repo"
)

Variables

View Source
var (
	Command                string
	GitHubOrg              string
	ReportPath             string
	SlackNotification      bool
	TrufflehogScan         bool
	TrufflehogVerifiedScan bool
	GitleaksScan           bool
	UsersFilePath          string
)
View Source
var (
	AuthenticatedScan          bool
	NumberOfGitHubUsers        int
	NumberOfPublicRepositories int
	CloneDirectoryPath         string
	SlackMessage               string
	NewMonitorRepositories     []string
)

Functions

func CheckAuthenticatedScan

func CheckAuthenticatedScan()

func CreateDirectory

func CreateDirectory(dirPath string) error

func GetCSVFileContent added in v1.5.0

func GetCSVFileContent(filePath string) ([]string, error)

func GetCurrentTime

func GetCurrentTime() (formattedTime string)

func GetGitHubAPIEndPoints

func GetGitHubAPIEndPoints(username string) *models.GitHubAPIEndPoints

func GetJSONFileContent

func GetJSONFileContent(filePath string) ([]byte, error)

func GetReportFileNames

func GetReportFileNames() *models.ReportFileNames

func GetReportFilePaths

func GetReportFilePaths() *models.ReportFileNames

func IsPreviousScanFileExists

func IsPreviousScanFileExists() bool

func RemoveDirectory

func RemoveDirectory(dirPath string) error

func SaveToJson

func SaveToJson(content []byte, filePath string) error

func SliceDiff

func SliceDiff(slice1, slice2 []string) (diff []string)

func ValidateFlags

func ValidateFlags()

Types

This section is empty.

Jump to

Keyboard shortcuts

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