go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/explorer/scan/scan.go (about) 1 // Copyright (c) Mondoo, Inc. 2 // SPDX-License-Identifier: BUSL-1.1 3 4 package scan 5 6 import ( 7 "context" 8 "math/rand" 9 "time" 10 11 "go.mondoo.com/cnquery/cli/progress" 12 "go.mondoo.com/cnquery/explorer" 13 "go.mondoo.com/cnquery/providers" 14 "go.mondoo.com/cnquery/providers-sdk/v1/inventory" 15 "go.mondoo.com/cnquery/providers-sdk/v1/upstream" 16 ) 17 18 //go:generate protoc --proto_path=../../:. --go_out=. --go_opt=paths=source_relative --rangerrpc_out=. cnquery_explorer_scan.proto 19 20 func init() { 21 rand.Seed(time.Now().UnixNano()) 22 } 23 24 type AssetJob struct { 25 DoRecord bool 26 UpstreamConfig *upstream.UpstreamConfig 27 Asset *inventory.Asset 28 Bundle *explorer.Bundle 29 QueryPackFilters []string 30 Props map[string]string 31 Ctx context.Context 32 Reporter Reporter 33 runtime *providers.Runtime 34 ProgressReporter progress.Progress 35 }