analyzer

package
v3.81.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

README

Implementing Analyzers

Defining the Permissions

Permissions are defined in lower snake case as permission_name:access_level.

The Permissions are initially defined as a yaml file.

At the top of the analyzer implementation you specify the go generate command.

You can install the generator with go install github.com/trufflesecurity/trufflehog/v3/pkg/analyzer/generate_permissions.

Then you can run go generate ./... to generate the Permission types for the analyzer.

The generated Permission types are to be used in the AnalyzerResult struct when defining the Permissions and in your code.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(app *kingpin.Application) *kingpin.CmdClause

func Run

func Run(cmd string)

Types

This section is empty.

Directories

Path Synopsis
github/classic
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
github/finegrained
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
openai
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
twilio
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
pb

Jump to

Keyboard shortcuts

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