Documentation ¶
Index ¶
Constants ¶
View Source
const ( ImportTargetProtocolUndefined ImportTargetProtocol = iota ImportTargetProtocolBigQuery ImportTargetProtocolUndefinedName = "undefined" ImportTargetProtocolBigQueryName = "bq" )
Variables ¶
View Source
var ( VulnerabilityImporter VulnerabilityImporterFunc = bq.ImportVulnerabilities PackageImporter PackageImporterFunc = bq.ImportPackages LicenseImporter LicenseImporterFunc = bq.ImportLicenses )
Functions ¶
func ParseImportRequest ¶ added in v0.9.5
func ParseImportRequest(req *types.SimpleQuery) (*types.ImportRequest, error)
ParseImportRequest parses import request. e.g. bq://cloudy-demos.disco.packages
Types ¶
type ImportTargetProtocol ¶ added in v0.9.5
type ImportTargetProtocol int64
func (ImportTargetProtocol) String ¶ added in v0.9.5
func (i ImportTargetProtocol) String() string
type LicenseImporterFunc ¶ added in v0.9.5
type LicenseImporterFunc func(ctx context.Context, req *types.ImportRequest, in ...*types.LicenseReport) error
type PackageImporterFunc ¶ added in v0.9.5
type PackageImporterFunc func(ctx context.Context, req *types.ImportRequest, in ...*types.PackageReport) error
type VulnerabilityImporterFunc ¶ added in v0.9.5
type VulnerabilityImporterFunc func(ctx context.Context, req *types.ImportRequest, in ...*types.VulnerabilityReport) error
Click to show internal directories.
Click to hide internal directories.