FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackrox/central/scrape/controller.go at master · stackrox/stackrox · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stackrox
/
stackrox
Public
Notifications
You must be signed in to change notification settings
Fork
191
Star
1.3k
Code
Issues
54
Pull requests
604
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
stackrox
/
central
/
scrape
/
controller.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (22 loc) · 876 Bytes
Breadcrumbs
stackrox
/
central
/
scrape
/
controller.go
Copy path
File metadata and controls
26 lines (22 loc) · 876 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package
scrape
import
(
"github.com/stackrox/rox/central/sensor/service/common"
"github.com/stackrox/rox/generated/internalapi/central"
"github.com/stackrox/rox/generated/internalapi/compliance"
"github.com/stackrox/rox/pkg/concurrency"
"github.com/stackrox/rox/pkg/set"
)
// Controller starts and stops scrapes.
type
Controller
interface
{
ProcessScrapeUpdate
(
update
*
central.
ScrapeUpdate
)
error
RunScrape
(
expectedHosts
set.
StringSet
,
kill
concurrency.
Waitable
,
standardIDs
[]
string
) (
map
[
string
]
*
compliance.
ComplianceReturn
,
error
)
}
// NewController returns a new instance of a Controller.
func
NewController
(
msgInjector
common.
MessageInjector
,
stoppedSig
concurrency.
ReadOnlyErrorSignal
)
Controller
{
return
&
controllerImpl
{
stoppedSig
:
stoppedSig
,
scrapes
:
make
(
map
[
string
]
*
scrapeImpl
),
msgInjector
:
msgInjector
,
}
}
//go:generate mockgen-wrapper
Back
|
FazBrowse Home
|
New Git URL