Documentation
¶
Overview ¶
Package cmd is the entry points for the command-line interface (CLI) of the `devsec-tools` application. Each package in this directory is a sub-command of the CLI.
Index ¶
- func Execute()
- func GetLogger(fVerbose int, fJSON bool) *log.Logger
- func GetValkeyCacheClient() (*vk.Client, *cache.Cache[string], error)
- func HandleRequest(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
- func NewTable(headers ...string) *table.Table
- type ErrorResponse
- type InputRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func HandleRequest ¶
func HandleRequest(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"error"`
}
type InputRequest ¶
type InputRequest struct {
URL string `json:"url"`
}
Click to show internal directories.
Click to hide internal directories.