api

package
v4.1.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Categories

func Categories(version string, rules []scan.Rule) http.HandlerFunc

Categories returns all the available Earlybird categories in "CategoriesReponse" format

func GITScan

GITScan searches for secrets in git repositories based off the Earlybird config, supports authentication via env variables "gituser" and "gitpassword"

func Labels

func Labels(version string, scanLabels map[int]scan.LabelConfigs) http.HandlerFunc

Labels returns all the available Earlybird labels in "LabelsReponse" format

func LabelsPerCategory

func LabelsPerCategory(version string, scanLabels map[int]scan.LabelConfigs) http.HandlerFunc

LabelsPerCategory returns all the available Earlybird labels per categories in "CategoryLabelsResponse" format

func Scan

Scan uses the Earlybird config to search uploaded multipart files for secrets

Types

type CategoriesResponse

type CategoriesResponse struct {
	Version    string   `json:"version"`
	Categories []string `json:"categories"`
}

CategoriesResponse is the format of API results from categories end point

type CategoryLabelsResponse

type CategoryLabelsResponse struct {
	Version        string              `json:"version"`
	CategoryLabels map[string][]string `json:"categorylabels"`
}

CategoryLabelsResponse is the format of API results from label per category end point

type LabelsResponse

type LabelsResponse struct {
	Version string   `json:"version"`
	Labels  []string `json:"labels"`
}

LabelsResponse is the format of API results from label end point

Jump to

Keyboard shortcuts

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