Documentation
¶
Index ¶
- Constants
- Variables
- func Score(vector string) (float64, error)
- func Severity(vector string) (string, error)
- type CvssTool
- func (ct *CvssTool) CompileOptions() []cel.EnvOption
- func (*CvssTool) ConvertToNative(_ reflect.Type) (any, error)
- func (ct *CvssTool) ConvertToType(typeVal ref.Type) ref.Val
- func (*CvssTool) Equal(_ ref.Val) ref.Val
- func (ct *CvssTool) Functions() []cel.EnvOption
- func (*CvssTool) ProgramOptions() []cel.ProgramOption
- func (*CvssTool) Type() ref.Type
- func (ct *CvssTool) Value() any
- type Plugin
- type TypeAdapter
Constants ¶
View Source
const ( Version20 = "2.0" Version30 = "3.0" Version31 = "3.1" Version40 = "4.0" Prefix30 = "CVSS:3.0/" Prefix31 = "CVSS:3.1/" Prefix40 = "CVSS:4.0/" )
Variables ¶
View Source
var CvssType = cel.ObjectType("cvss", traits.ReceiverType)
View Source
var Identity = class.MustParseIdentity("cvss@v0")
Functions ¶
Types ¶
type CvssTool ¶
type CvssTool struct{}
func (*CvssTool) CompileOptions ¶
func (*CvssTool) ProgramOptions ¶
func (*CvssTool) ProgramOptions() []cel.ProgramOption
type Plugin ¶
type Plugin struct {
Tool *CvssTool
}
func (*Plugin) Capabilities ¶
func (p *Plugin) Capabilities() []api.Capability
type TypeAdapter ¶
type TypeAdapter struct{}
func (TypeAdapter) NativeToValue ¶
func (TypeAdapter) NativeToValue(value any) ref.Val
Click to show internal directories.
Click to hide internal directories.