utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCCMTextResponseFormatter

func NewCCMTextResponseFormatter() commonUtils.CCMResponseFormatter

func NewScsTextResponseFormatter

func NewScsTextResponseFormatter() commonUtils.ScsResponseFormatter

NewScsTextResponseFormatter creates a new text-based response formatter

func NewStoTextResponseFormatter

func NewStoTextResponseFormatter() commonUtils.StoResponseFormatter

NewStoTextResponseFormatter creates a new text-based STO response formatter

Types

type CCMTextResponseFormatter

type CCMTextResponseFormatter struct{}

func (CCMTextResponseFormatter) FormatEC2AnalysisResponse

func (f CCMTextResponseFormatter) FormatEC2AnalysisResponse(response *dto.CommitmentEC2AnalysisResponse) ([]mcp.Content, error)

type ScsTextResponseFormatter

type ScsTextResponseFormatter struct{}

ScsTextResponseFormatter formats responses as plain text/JSON (for external mode)

func (*ScsTextResponseFormatter) FormatArtifactSourcesResponse

func (f *ScsTextResponseFormatter) FormatArtifactSourcesResponse(artifacts []generated.ArtifactV2ListingResponse, licenseFilterList *[]generated.LicenseFilter) ([]mcp.Content, error)

FormatArtifactSourcesResponse formats artifact sources as JSON text

func (*ScsTextResponseFormatter) FormatCodeRepositoriesResponse

func (f *ScsTextResponseFormatter) FormatCodeRepositoriesResponse(repositories []generated.CodeRepositoryListingResponse) ([]mcp.Content, error)

FormatCodeRepositoriesResponse formats code repositories as JSON text

type StoTextResponseFormatter

type StoTextResponseFormatter struct{}

StoTextResponseFormatter formats STO responses as plain text/JSON (for external mode)

func (*StoTextResponseFormatter) FormatStoExemptionsResponse

func (f *StoTextResponseFormatter) FormatStoExemptionsResponse(response *stogenerated.SecurityReviewResult, userNameMap map[string]string) ([]mcp.Content, error)

FormatStoExemptionsResponse formats STO global exemptions as JSON text

func (*StoTextResponseFormatter) FormatStoIssuesResponse

func (f *StoTextResponseFormatter) FormatStoIssuesResponse(response *stogenerated.FrontendAllIssuesListResponseBody) ([]mcp.Content, error)

FormatStoIssuesResponse formats STO security issues as JSON text

Jump to

Keyboard shortcuts

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