Documentation ¶
Index ¶
- Constants
- func Format(outputFormat FormatName, outputIndent string, scheme scheme.Scheme, ...) ([]byte, error)
- func ValidateOutputFormat(outputFormat FormatName, schemeType scheme.SchemeType) error
- type FormatName
- type HumanFormatter
- type JsonFormatter
- type NewFormatFunc
- type OutputFormatter
- type UnsupportedScheme
Constants ¶
View Source
const DefaultOutputIndent = " "
Variables ¶
This section is empty.
Functions ¶
func ValidateOutputFormat ¶
func ValidateOutputFormat(outputFormat FormatName, schemeType scheme.SchemeType) error
Types ¶
type FormatName ¶
type FormatName = string
const ( Human FormatName = "human" Json FormatName = "json" Sarif FormatName = "sarif" Markdown FormatName = "markdown" )
func OutputFormats ¶
func OutputFormats() []FormatName
type HumanFormatter ¶
type HumanFormatter struct {
// contains filtered or unexported fields
}
func (*HumanFormatter) IsSchemeSupported ¶
func (f *HumanFormatter) IsSchemeSupported(schemeType string) bool
type JsonFormatter ¶
type JsonFormatter struct { }
func (*JsonFormatter) IsSchemeSupported ¶
func (f *JsonFormatter) IsSchemeSupported(schemeType string) bool
type NewFormatFunc ¶
type NewFormatFunc func() OutputFormatter
type OutputFormatter ¶
type OutputFormatter interface { Format(scheme scheme.Scheme, failedOnly bool) ([]byte, error) IsSchemeSupported(schemeType string) bool }
func NewJsonFormatter ¶
func NewJsonFormatter() OutputFormatter
type UnsupportedScheme ¶
type UnsupportedScheme struct {
// contains filtered or unexported fields
}
func (UnsupportedScheme) Error ¶
func (e UnsupportedScheme) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.