Documentation ¶
Index ¶
- Constants
- func ImportLicenses(ctx context.Context, req *types.ImportRequest, in ...*types.LicenseReport) error
- func ImportPackages(ctx context.Context, req *types.ImportRequest, in ...*types.PackageReport) error
- func ImportVulnerabilities(ctx context.Context, req *types.ImportRequest, ...) error
- func ParseImportRequest(k types.DiscoKind, v string) (*types.ImportRequest, error)
- type LicenseRow
- type PackageRow
- type VulnerabilityRow
Constants ¶
View Source
const (
DatasetNameDefault = "disco"
)
Variables ¶
This section is empty.
Functions ¶
func ImportLicenses ¶
func ImportLicenses(ctx context.Context, req *types.ImportRequest, in ...*types.LicenseReport) error
func ImportPackages ¶ added in v0.8.1
func ImportPackages(ctx context.Context, req *types.ImportRequest, in ...*types.PackageReport) error
func ImportVulnerabilities ¶
func ImportVulnerabilities(ctx context.Context, req *types.ImportRequest, in ...*types.VulnerabilityReport) error
func ParseImportRequest ¶ added in v0.9.5
ParseImportRequest parses import request. e.g. bq://cloudy-demos.disco.packages
Types ¶
type LicenseRow ¶
type LicenseRow struct { BatchID int64 Image string Sha string Name string Package string Updated string }
func MakeLicenseRows ¶
func MakeLicenseRows(in ...*types.LicenseReport) []*LicenseRow
type PackageRow ¶ added in v0.8.1
type PackageRow struct { BatchID int64 Image string Sha string Format string Provider string Package string PackageVersion string Source string License string Updated string }
func MakePackageRows ¶ added in v0.9.5
func MakePackageRows(in ...*types.PackageReport) []*PackageRow
type VulnerabilityRow ¶
type VulnerabilityRow struct { BatchID int64 Image string Sha string CVE string Severity string Package string PackageVersion string Title string Description string URL string Updated string }
func MakeVulnerabilityRows ¶
func MakeVulnerabilityRows(in ...*types.VulnerabilityReport) []*VulnerabilityRow
Click to show internal directories.
Click to hide internal directories.