Documentation
¶
Index ¶
- func ParsePackageType(v string) string
- func ToCVSS(baseScore float32, vector string) *g.CVSS
- func ToCVSSv3(baseScore float32, vector string) *g.CVSSv3
- func ToFloat32(v interface{}) float32
- func ToGRPCTime(v interface{}) *timestamppb.Timestamp
- func ToGrafeasSeverity(s string) g.Severity
- func ToString(v interface{}) string
- type NoteResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePackageType ¶
ParsePackageType parses package type from string.
func ToGRPCTime ¶
func ToGRPCTime(v interface{}) *timestamppb.Timestamp
ToGRPCTime converts string to gRPC timestamp.
func ToGrafeasSeverity ¶
Types ¶
type NoteResource ¶ added in v0.3.4
func GetNoteResource ¶ added in v0.3.4
func GetNoteResource(p string) (*NoteResource, error)
func (*NoteResource) Name ¶ added in v0.3.4
func (r *NoteResource) Name() string
Click to show internal directories.
Click to hide internal directories.