Documentation
¶
Index ¶
- func GetPrefixNoteName(n string) string
- 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
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrefixNoteName ¶ added in v0.4.11
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
type Source ¶ added in v0.4.0
type Source struct { // Project is the associated project. Project string // URI is the image URI. URI string // Format of the file to import. Format types.SourceFormat // Data is the source data. Data *gabs.Container }
func NewFileSource ¶ added in v0.4.0
NewFileSource returns a new Source from the given path.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.