Documentation
¶
Index ¶
- Variables
- type ArkSecHubScansPage
- type ArkSecHubScansService
- func (s *ArkSecHubScansService) Scans() (<-chan *ArkSecHubScansPage, error)
- func (s *ArkSecHubScansService) ScansStats() (*scansmodels.ArkSecHubScanStats, error)
- func (s *ArkSecHubScansService) ServiceConfig() services.ArkServiceConfig
- func (s *ArkSecHubScansService) TriggerScan(triggerScan *scansmodels.ArkSecHubTriggerScans) (*scansmodels.ArkSecHubScanIDs, error)
Constants ¶
This section is empty.
Variables ¶
var ServiceConfig = services.ArkServiceConfig{ ServiceName: "sechub-scans", RequiredAuthenticatorNames: []string{"isp"}, OptionalAuthenticatorNames: []string{}, ActionsConfigurations: map[actions.ArkServiceActionType][]actions.ArkServiceActionDefinition{ actions.ArkServiceActionTypeCLI: { sechubsscansactions.CLIAction, }, }, }
ServiceConfig is the configuration for the Secrets Hub scans service.
var ServiceGenerator = NewArkSecHubScansService
ServiceGenerator is the function that creates a new instance of the SecHub scans service.
Functions ¶
This section is empty.
Types ¶
type ArkSecHubScansPage ¶
type ArkSecHubScansPage = common.ArkPage[scansmodels.ArkSecHubScan]
ArkSecHubScansPage is a page of ArkSecHubScan items.
type ArkSecHubScansService ¶
type ArkSecHubScansService struct {
services.ArkService
*services.ArkBaseService
// contains filtered or unexported fields
}
ArkSecHubScansService is the service for interacting with Secrets Hub scans
func NewArkSecHubScansService ¶
func NewArkSecHubScansService(authenticators ...auth.ArkAuth) (*ArkSecHubScansService, error)
NewArkSecHubScansService creates a new instance of ArkSecHubscansService.
func (*ArkSecHubScansService) Scans ¶
func (s *ArkSecHubScansService) Scans() (<-chan *ArkSecHubScansPage, error)
Scans retrieves the scans info from the Secrets Hub service. https://api-docs.cyberark.com/docs/secretshub-api/78cprz38emhrb-get-scans
func (*ArkSecHubScansService) ScansStats ¶
func (s *ArkSecHubScansService) ScansStats() (*scansmodels.ArkSecHubScanStats, error)
ScansStats retrieves statistics about scans.
func (*ArkSecHubScansService) ServiceConfig ¶
func (s *ArkSecHubScansService) ServiceConfig() services.ArkServiceConfig
ServiceConfig returns the service scans for the ArkSecHubScansService.
func (*ArkSecHubScansService) TriggerScan ¶
func (s *ArkSecHubScansService) TriggerScan(triggerScan *scansmodels.ArkSecHubTriggerScans) (*scansmodels.ArkSecHubScanIDs, error)
TriggerScan triggers scans in the Secrets Hub service. https://api-docs.cyberark.com/docs/secretshub-api/kyc9azwliw2xa-trigger-scan