sbom

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SBOMRequest

type SBOMRequest struct {
	Source                 string `json:"source"`
	OutputFormat           string `json:"output_format"`
	IncludeDevDependencies bool   `json:"include_dev_dependencies"`
	OutputFile             string `json:"output_file"`
}

SBOMRequest represents the parsed request parameters

type SBOMResponse

type SBOMResponse struct {
	Content      string `json:"content"`
	Format       string `json:"format"`
	PackageCount int    `json:"package_count"`
	Source       string `json:"source"`
	OutputFile   string `json:"output_file,omitempty"`
}

SBOMResponse represents the SBOM generation response

type SBOMTool

type SBOMTool struct{}

SBOMTool implements SBOM generation using Anchore Syft

func (*SBOMTool) Definition

func (t *SBOMTool) Definition() mcp.Tool

Definition returns the tool's definition for MCP registration

func (*SBOMTool) Execute

func (t *SBOMTool) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, args map[string]interface{}) (*mcp.CallToolResult, error)

Execute executes the SBOM tool

func (*SBOMTool) ProvideExtendedInfo

func (t *SBOMTool) ProvideExtendedInfo() *tools.ExtendedHelp

ProvideExtendedInfo provides detailed usage information for the SBOM tool

Jump to

Keyboard shortcuts

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