Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArkSecHubGetScans ¶
type ArkSecHubGetScans struct {
Count int `json:"count" mapstructure:"count" flag:"count" desc:"Total number of scans"`
Scans []ArkSecHubScan `json:"scans" mapstructure:"scans" flag:"scans" desc:"List of scans"`
}
ArkSecHubGetScans represents the response for getting scans.
type ArkSecHubScan ¶
type ArkSecHubScan struct {
ID string `json:"id,omitempty" mapstructure:"id,omitempty" flag:"id" desc:"Scan ID"`
Metadata ArkSecHubScanMetadata `json:"metadata,omitempty" mapstructure:"metadata,omitempty" flag:"metadata" desc:"Scan metadata as JSON string"`
Status string `json:"status,omitempty" mapstructure:"status,omitempty" flag:"status" desc:"Scan status"`
Message string `json:"message,omitempty" mapstructure:"message" flag:"message" desc:"Scan message"`
StartedAt string `json:"started_at,omitempty" mapstructure:"started_at,omitempty" flag:"started-at" desc:"Scan start time"`
FinishedAt string `json:"finished_at,omitempty" mapstructure:"finished_at,omitempty" flag:"finished-at" desc:"Scan finish time"`
CreatedBy string `json:"created_by,omitempty" mapstructure:"created_by,omitempty" flag:"created-by" desc:"Creator of the scan"`
}
ArkSecHubScan represents a single scan in the Secrets Hub.
type ArkSecHubScanIDs ¶
type ArkSecHubScanIDs struct {
ScanIDs []string `json:"scan_ids" mapstructure:"scan_ids" flag:"scan-ids" desc:"List of scan IDs" validate:"required,dive,required"`
}
ArkSecHubScanIDs represents a list of scan IDs returned when triggering a scan.
type ArkSecHubScanMap ¶
type ArkSecHubScanMap struct {
Scope ArkSecHubSecretStoreIds `json:"scope" mapstructure:"scope" desc:"The scope of the secret store ids to scan"`
}
ArkSecHubScanMap represents the request structure for mapping scans in the Ark Secrets Hub.
type ArkSecHubScanMetadata ¶
type ArkSecHubScanMetadata struct {
StoreID string `json:"store_id" mapstructure:"store_id" flag:"store-id" desc:"Store ID associated with the scan"`
}
ArkSecHubScanMetadata represents the metadata for a scan.
type ArkSecHubScanStats ¶
type ArkSecHubScanStats struct {
ScansCount int `json:"scans_count" mapstructure:"scans_count" desc:"Overall scans count"`
ScansCountByCreator map[string]int `json:"scans_count_by_creator" mapstructure:"scans_count_by_creator" desc:"Scans count by creator"`
}
ArkSecHubScanStats represents the response when getting scan statistics from SecHub.
type ArkSecHubSecretStoreIds ¶
type ArkSecHubSecretStoreIds struct {
SecretStoresIds []string `` /* 139-byte string literal not displayed */
}
ArkSecHubSecretStoreIds represents the structure for specifying secret store IDs in the Ark Secrets Hub.
type ArkSecHubTriggerScans ¶
type ArkSecHubTriggerScans struct {
ID string `json:"id" mapstructure:"id" flag:"id" desc:"The ID of the scan, defaulted to default" default:"default"`
Type string `` /* 145-byte string literal not displayed */
SecretStoresIds []string `` /* 139-byte string literal not displayed */
}
ArkSecHubTriggerScans represents the request structure for triggering scans in the Ark Secrets Hub.