Documentation
¶
Index ¶
- func RegisterCommands(app *cobra.Command, c *client.Client)
- type AssetsGlobalStatsCommand
- type CoverageStatsCommand
- type CreateAPITokenCommand
- type CreateAssetAnnotationsCommand
- type CreateAssetGroupCommand
- type CreateAssetsCommand
- type CreateGroupCommand
- type CreateMultiStatusAssetsCommand
- type CreatePoliciesCommand
- type CreatePolicySettingsCommand
- type CreateProgramsCommand
- type CreateScanCommand
- type CreateScheduleCommand
- type CreateTeamMembersCommand
- type CreateTeamsCommand
- type CreateUserCommand
- type CurrentExposureGlobalStatsCommand
- type CurrentExposureStatsCommand
- type DeleteAssetAnnotationsCommand
- type DeleteAssetGroupCommand
- type DeleteAssetsCommand
- type DeleteGroupCommand
- type DeletePoliciesCommand
- type DeletePolicySettingsCommand
- type DeleteProgramsCommand
- type DeleteScheduleCommand
- type DeleteTeamMembersCommand
- type DeleteTeamsCommand
- type DeleteUserCommand
- type DiscoverAssetsCommand
- type EmailScanReportCommand
- type ExposureGlobalStatsCommand
- type ExposureStatsCommand
- type FindFindingFindingsCommand
- type FindFindingsFromAIssueFindingsCommand
- type FindFindingsFromATargetFindingsCommand
- type FixedGlobalStatsCommand
- type FixedStatsCommand
- type GenerateScanReportCommand
- type ListAssetAnnotationsCommand
- type ListAssetGroupCommand
- type ListAssetsCommand
- type ListFindingOverwritesFindingsCommand
- type ListFindingsFindingsCommand
- type ListFindingsIssuesFindingsCommand
- type ListFindingsLabelsFindingsCommand
- type ListFindingsTargetsFindingsCommand
- type ListGroupCommand
- type ListPoliciesCommand
- type ListPolicySettingsCommand
- type ListProgramScansCommand
- type ListProgramsCommand
- type ListRecipientsCommand
- type ListTeamMembersCommand
- type ListTeamsCommand
- type ListTeamsUserCommand
- type ListUserCommand
- type MttrGlobalStatsCommand
- type MttrStatsCommand
- type OpenGlobalStatsCommand
- type OpenStatsCommand
- type ProfileUserCommand
- type PutAssetAnnotationsCommand
- type SendDigestReportCommand
- type SendScanReportCommand
- type ShowAssetsCommand
- type ShowGroupCommand
- type ShowHealthcheckCommand
- type ShowJobsCommand
- type ShowPoliciesCommand
- type ShowPolicySettingsCommand
- type ShowProgramsCommand
- type ShowScanCommand
- type ShowScanReportCommand
- type ShowTeamMembersCommand
- type ShowTeamsCommand
- type ShowUserCommand
- type SubmitAFindingOverwriteFindingsCommand
- type UpdateAssetAnnotationsCommand
- type UpdateAssetsCommand
- type UpdateGroupCommand
- type UpdatePoliciesCommand
- type UpdatePolicySettingsCommand
- type UpdateProgramsCommand
- type UpdateRecipientsCommand
- type UpdateScheduleCommand
- type UpdateTeamMembersCommand
- type UpdateTeamsCommand
- type UpdateUserCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssetsGlobalStatsCommand ¶
type AssetsGlobalStatsCommand struct {
// A comma separated list of asset identifiers
Identifiers string
// A comma separated list of associated labels
Labels string
// Comma separated list of team tags to filter by. Only admin and observer users are allowed to set this field.
Tags string
PrettyPrint bool
}
AssetsGlobalStatsCommand is the command line data structure for the assets action of global-stats
func (*AssetsGlobalStatsCommand) RegisterFlags ¶
func (cmd *AssetsGlobalStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CoverageStatsCommand ¶
CoverageStatsCommand is the command line data structure for the coverage action of stats
func (*CoverageStatsCommand) RegisterFlags ¶
func (cmd *CoverageStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateAPITokenCommand ¶
CreateAPITokenCommand is the command line data structure for the create action of api-token
func (*CreateAPITokenCommand) RegisterFlags ¶
func (cmd *CreateAPITokenCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateAssetAnnotationsCommand ¶
type CreateAssetAnnotationsCommand struct {
Payload string
ContentType string
// Asset ID
AssetID string
// Team ID
TeamID string
PrettyPrint bool
}
CreateAssetAnnotationsCommand is the command line data structure for the create action of asset-annotations
func (*CreateAssetAnnotationsCommand) RegisterFlags ¶
func (cmd *CreateAssetAnnotationsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateAssetGroupCommand ¶
type CreateAssetGroupCommand struct {
Payload string
ContentType string
// Group ID
GroupID string
// Team ID
TeamID string
PrettyPrint bool
}
CreateAssetGroupCommand is the command line data structure for the create action of asset-group
func (*CreateAssetGroupCommand) RegisterFlags ¶
func (cmd *CreateAssetGroupCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateAssetsCommand ¶
type CreateAssetsCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
CreateAssetsCommand is the command line data structure for the create action of assets
func (*CreateAssetsCommand) RegisterFlags ¶
func (cmd *CreateAssetsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateGroupCommand ¶
type CreateGroupCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
CreateGroupCommand is the command line data structure for the create action of group
func (*CreateGroupCommand) RegisterFlags ¶
func (cmd *CreateGroupCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateMultiStatusAssetsCommand ¶
type CreateMultiStatusAssetsCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
CreateMultiStatusAssetsCommand is the command line data structure for the createMultiStatus action of assets
func (*CreateMultiStatusAssetsCommand) RegisterFlags ¶
func (cmd *CreateMultiStatusAssetsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreatePoliciesCommand ¶
type CreatePoliciesCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
CreatePoliciesCommand is the command line data structure for the create action of policies
func (*CreatePoliciesCommand) RegisterFlags ¶
func (cmd *CreatePoliciesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreatePolicySettingsCommand ¶
type CreatePolicySettingsCommand struct {
Payload string
ContentType string
// Policy ID
PolicyID string
// Team ID
TeamID string
PrettyPrint bool
}
CreatePolicySettingsCommand is the command line data structure for the create action of policy-settings
func (*CreatePolicySettingsCommand) RegisterFlags ¶
func (cmd *CreatePolicySettingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateProgramsCommand ¶
type CreateProgramsCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
CreateProgramsCommand is the command line data structure for the create action of programs
func (*CreateProgramsCommand) RegisterFlags ¶
func (cmd *CreateProgramsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateScanCommand ¶
type CreateScanCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
CreateScanCommand is the command line data structure for the create action of scan
func (*CreateScanCommand) RegisterFlags ¶
func (cmd *CreateScanCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateScheduleCommand ¶
type CreateScheduleCommand struct {
Payload string
ContentType string
// Program ID
ProgramID string
// Team ID
TeamID string
PrettyPrint bool
}
CreateScheduleCommand is the command line data structure for the create action of schedule
func (*CreateScheduleCommand) RegisterFlags ¶
func (cmd *CreateScheduleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateTeamMembersCommand ¶
type CreateTeamMembersCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
CreateTeamMembersCommand is the command line data structure for the create action of team-members
func (*CreateTeamMembersCommand) RegisterFlags ¶
func (cmd *CreateTeamMembersCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateTeamsCommand ¶
CreateTeamsCommand is the command line data structure for the create action of teams
func (*CreateTeamsCommand) RegisterFlags ¶
func (cmd *CreateTeamsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateUserCommand ¶
CreateUserCommand is the command line data structure for the create action of user
func (*CreateUserCommand) RegisterFlags ¶
func (cmd *CreateUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CurrentExposureGlobalStatsCommand ¶
type CurrentExposureGlobalStatsCommand struct {
// A comma separated list of associated labels
Labels string
// Maximum issues score filter
MaxScore string
// Minimum issues score filter
MinScore string
// Comma separated list of team tags to filter by. Only admin and observer users are allowed to set this field.
Tags string
PrettyPrint bool
}
CurrentExposureGlobalStatsCommand is the command line data structure for the current exposure action of global-stats
func (*CurrentExposureGlobalStatsCommand) RegisterFlags ¶
func (cmd *CurrentExposureGlobalStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CurrentExposureStatsCommand ¶
type CurrentExposureStatsCommand struct {
// Team ID
TeamID string
// Maximum issues score filter
MaxScore string
// Minimum issues score filter
MinScore string
PrettyPrint bool
}
CurrentExposureStatsCommand is the command line data structure for the current exposure action of stats
func (*CurrentExposureStatsCommand) RegisterFlags ¶
func (cmd *CurrentExposureStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteAssetAnnotationsCommand ¶
type DeleteAssetAnnotationsCommand struct {
Payload string
ContentType string
// Asset ID
AssetID string
// Team ID
TeamID string
PrettyPrint bool
}
DeleteAssetAnnotationsCommand is the command line data structure for the delete action of asset-annotations
func (*DeleteAssetAnnotationsCommand) RegisterFlags ¶
func (cmd *DeleteAssetAnnotationsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteAssetGroupCommand ¶
type DeleteAssetGroupCommand struct {
// Asset ID
AssetID string
// Group ID
GroupID string
// Team ID
TeamID string
PrettyPrint bool
}
DeleteAssetGroupCommand is the command line data structure for the delete action of asset-group
func (*DeleteAssetGroupCommand) RegisterFlags ¶
func (cmd *DeleteAssetGroupCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteAssetsCommand ¶
type DeleteAssetsCommand struct {
// Asset ID
AssetID string
// Team ID
TeamID string
PrettyPrint bool
}
DeleteAssetsCommand is the command line data structure for the delete action of assets
func (*DeleteAssetsCommand) RegisterFlags ¶
func (cmd *DeleteAssetsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteGroupCommand ¶
type DeleteGroupCommand struct {
// Group ID
GroupID string
// Team ID
TeamID string
PrettyPrint bool
}
DeleteGroupCommand is the command line data structure for the delete action of group
func (*DeleteGroupCommand) RegisterFlags ¶
func (cmd *DeleteGroupCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeletePoliciesCommand ¶
type DeletePoliciesCommand struct {
// Policy ID
PolicyID string
// Team ID
TeamID string
PrettyPrint bool
}
DeletePoliciesCommand is the command line data structure for the delete action of policies
func (*DeletePoliciesCommand) RegisterFlags ¶
func (cmd *DeletePoliciesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeletePolicySettingsCommand ¶
type DeletePolicySettingsCommand struct {
// Policy ID
PolicyID string
// Policy Settings ID
SettingsID string
// Team ID
TeamID string
PrettyPrint bool
}
DeletePolicySettingsCommand is the command line data structure for the delete action of policy-settings
func (*DeletePolicySettingsCommand) RegisterFlags ¶
func (cmd *DeletePolicySettingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteProgramsCommand ¶
type DeleteProgramsCommand struct {
// Program ID
ProgramID string
// Team ID
TeamID string
PrettyPrint bool
}
DeleteProgramsCommand is the command line data structure for the delete action of programs
func (*DeleteProgramsCommand) RegisterFlags ¶
func (cmd *DeleteProgramsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteScheduleCommand ¶
type DeleteScheduleCommand struct {
// Program ID
ProgramID string
// Team ID
TeamID string
PrettyPrint bool
}
DeleteScheduleCommand is the command line data structure for the delete action of schedule
func (*DeleteScheduleCommand) RegisterFlags ¶
func (cmd *DeleteScheduleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteTeamMembersCommand ¶
type DeleteTeamMembersCommand struct {
// Team ID
TeamID string
// User ID
UserID string
PrettyPrint bool
}
DeleteTeamMembersCommand is the command line data structure for the delete action of team-members
func (*DeleteTeamMembersCommand) RegisterFlags ¶
func (cmd *DeleteTeamMembersCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteTeamsCommand ¶
DeleteTeamsCommand is the command line data structure for the delete action of teams
func (*DeleteTeamsCommand) RegisterFlags ¶
func (cmd *DeleteTeamsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteUserCommand ¶
DeleteUserCommand is the command line data structure for the delete action of user
func (*DeleteUserCommand) RegisterFlags ¶
func (cmd *DeleteUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DiscoverAssetsCommand ¶
type DiscoverAssetsCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
DiscoverAssetsCommand is the command line data structure for the discover action of assets
func (*DiscoverAssetsCommand) RegisterFlags ¶
func (cmd *DiscoverAssetsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type EmailScanReportCommand ¶
type EmailScanReportCommand struct {
// Scan ID
ScanID string
// Team ID
TeamID string
PrettyPrint bool
}
EmailScanReportCommand is the command line data structure for the email action of scan report
func (*EmailScanReportCommand) RegisterFlags ¶
func (cmd *EmailScanReportCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ExposureGlobalStatsCommand ¶
type ExposureGlobalStatsCommand struct {
// Specific date to get statistics at
AtDate string
// Maximum issues score filter
MaxScore string
// Minimum issues score filter
MinScore string
// Comma separated list of team tags to filter by. Only admin and observer users are allowed to set this field.
Tags string
PrettyPrint bool
}
ExposureGlobalStatsCommand is the command line data structure for the exposure action of global-stats
func (*ExposureGlobalStatsCommand) RegisterFlags ¶
func (cmd *ExposureGlobalStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ExposureStatsCommand ¶
type ExposureStatsCommand struct {
// Team ID
TeamID string
// Specific date to get statistics at
AtDate string
// Maximum issues score filter
MaxScore string
// Minimum issues score filter
MinScore string
PrettyPrint bool
}
ExposureStatsCommand is the command line data structure for the exposure action of stats
func (*ExposureStatsCommand) RegisterFlags ¶
func (cmd *ExposureStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type FindFindingFindingsCommand ¶
type FindFindingFindingsCommand struct {
// Finding ID
FindingID string
// Team ID
TeamID string
PrettyPrint bool
}
FindFindingFindingsCommand is the command line data structure for the Find finding action of findings
func (*FindFindingFindingsCommand) RegisterFlags ¶
func (cmd *FindFindingFindingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type FindFindingsFromAIssueFindingsCommand ¶
type FindFindingsFromAIssueFindingsCommand struct {
// Issue ID
IssueID string
// Team ID
TeamID string
// Allows to get findings list at a specific date (incompatible and preferential to min and max date params)
AtDate string
// A comma separated list of identifiers
Identifiers string
// A comma separated list of associated labels
Labels string
// Allows to get findings list until a specific date
MaxDate string
// Findings maximum score
MaxScore string
// Allows to get findings list from a specific date
MinDate string
// Findings minimum score
MinScore string
// Requested page
Page string
// Requested page size
Size string
// Sorting criteria. Supported fields: score, -score (for descending order)
SortBy string
// Findings Status
Status string
PrettyPrint bool
}
FindFindingsFromAIssueFindingsCommand is the command line data structure for the Find findings from a Issue action of findings
func (*FindFindingsFromAIssueFindingsCommand) RegisterFlags ¶
func (cmd *FindFindingsFromAIssueFindingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type FindFindingsFromATargetFindingsCommand ¶
type FindFindingsFromATargetFindingsCommand struct {
// Target ID
TargetID string
// Team ID
TeamID string
// Allows to get findings list at a specific date (incompatible and preferential to min and max date params)
AtDate string
// A comma separated list of identifiers
Identifiers string
// A comma separated list of associated labels
Labels string
// Allows to get findings list until a specific date
MaxDate string
// Findings maximum score
MaxScore string
// Allows to get findings list from a specific date
MinDate string
// Findings minimum score
MinScore string
// Requested page
Page string
// Requested page size
Size string
// Sorting criteria. Supported fields: score, -score (for descending order)
SortBy string
// Findings Status
Status string
PrettyPrint bool
}
FindFindingsFromATargetFindingsCommand is the command line data structure for the Find findings from a Target action of findings
func (*FindFindingsFromATargetFindingsCommand) RegisterFlags ¶
func (cmd *FindFindingsFromATargetFindingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type FixedGlobalStatsCommand ¶
type FixedGlobalStatsCommand struct {
// Specific date to get statistics at (incompatible and preferential to min and max date params)
AtDate string
// A comma separated list of asset identifiers
Identifiers string
// A comma separated list of associated labels
Labels string
// Maximum date to filter statistics by
MaxDate string
// Minimum date to filter statistics by
MinDate string
// Comma separated list of team tags to filter by. Only admin and observer users are allowed to set this field.
Tags string
PrettyPrint bool
}
FixedGlobalStatsCommand is the command line data structure for the fixed action of global-stats
func (*FixedGlobalStatsCommand) RegisterFlags ¶
func (cmd *FixedGlobalStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type FixedStatsCommand ¶
type FixedStatsCommand struct {
// Team ID
TeamID string
// Specific date to get statistics at (incompatible and preferential to min and max date params)
AtDate string
// A comma separated list of asset identifiers
Identifiers string
// A comma separated list of associated labels
Labels string
// Maximum date to filter statistics by
MaxDate string
// Minimum date to filter statistics by
MinDate string
PrettyPrint bool
}
FixedStatsCommand is the command line data structure for the fixed action of stats
func (*FixedStatsCommand) RegisterFlags ¶
func (cmd *FixedStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type GenerateScanReportCommand ¶
type GenerateScanReportCommand struct {
// Scan ID
ScanID string
// Team ID
TeamID string
PrettyPrint bool
}
GenerateScanReportCommand is the command line data structure for the generate action of scan report
func (*GenerateScanReportCommand) RegisterFlags ¶
func (cmd *GenerateScanReportCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListAssetAnnotationsCommand ¶
type ListAssetAnnotationsCommand struct {
// Asset ID
AssetID string
// Team ID
TeamID string
PrettyPrint bool
}
ListAssetAnnotationsCommand is the command line data structure for the list action of asset-annotations
func (*ListAssetAnnotationsCommand) RegisterFlags ¶
func (cmd *ListAssetAnnotationsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListAssetGroupCommand ¶
type ListAssetGroupCommand struct {
// Group ID
GroupID string
// Team ID
TeamID string
PrettyPrint bool
}
ListAssetGroupCommand is the command line data structure for the list action of asset-group
func (*ListAssetGroupCommand) RegisterFlags ¶
func (cmd *ListAssetGroupCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListAssetsCommand ¶
type ListAssetsCommand struct {
// Team ID
TeamID string
// Identifier
Identifier string
PrettyPrint bool
}
ListAssetsCommand is the command line data structure for the list action of assets
func (*ListAssetsCommand) RegisterFlags ¶
func (cmd *ListAssetsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListFindingOverwritesFindingsCommand ¶
type ListFindingOverwritesFindingsCommand struct {
FindingID string
// Team ID
TeamID string
PrettyPrint bool
}
ListFindingOverwritesFindingsCommand is the command line data structure for the List Finding Overwrites action of findings
func (*ListFindingOverwritesFindingsCommand) RegisterFlags ¶
func (cmd *ListFindingOverwritesFindingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListFindingsFindingsCommand ¶
type ListFindingsFindingsCommand struct {
// Team ID
TeamID string
// Allows to get findings list at a specific date (incompatible and preferential to min and max date params)
AtDate string
// Allows to get findings list for a specific asset identifier
Identifier string
// A comma separated list of identifiers
Identifiers string
// Issue ID (Vulnerability DB)
IssueID string
// A comma separated list of associated labels
Labels string
// Allows to get findings list until a specific date
MaxDate string
// Findings maximum score
MaxScore string
// Allows to get findings list from a specific date
MinDate string
// Findings minimum score
MinScore string
// Requested page
Page string
// Requested page size
Size string
// Sorting criteria. Supported fields: score, -score (for descending order)
SortBy string
// Findings Status
Status string
// Target ID (Vulnerability DB)
TargetID string
PrettyPrint bool
}
ListFindingsFindingsCommand is the command line data structure for the list findings action of findings
func (*ListFindingsFindingsCommand) RegisterFlags ¶
func (cmd *ListFindingsFindingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListFindingsIssuesFindingsCommand ¶
type ListFindingsIssuesFindingsCommand struct {
// Team ID
TeamID string
// Allows to get issues list at a specific date
AtDate string
// A comma separated list of identifiers
Identifiers string
// A comma separated list of associated labels
Labels string
// Allows to get findings list until a specific date
MaxDate string
// Allows to get findings list from a specific date
MinDate string
// Requested page
Page string
// Requested page size
Size string
// Sorting criteria. Supported fields: max_score, targets_count (use - for descending order. E.g.: -max_score)
SortBy string
// Findings Status
Status string
// Target ID (Vulnerability DB)
TargetID string
PrettyPrint bool
}
ListFindingsIssuesFindingsCommand is the command line data structure for the list findings issues action of findings
func (*ListFindingsIssuesFindingsCommand) RegisterFlags ¶
func (cmd *ListFindingsIssuesFindingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListFindingsLabelsFindingsCommand ¶
type ListFindingsLabelsFindingsCommand struct {
// Team ID
TeamID string
// Allows to get findings list at a specific date (incompatible and preferential to min and max date params)
AtDate string
// A comma separated list of identifiers
Identifiers string
// Allows to get findings list until a specific date
MaxDate string
// Allows to get findings list from a specific date
MinDate string
// Findings status
Status string
PrettyPrint bool
}
ListFindingsLabelsFindingsCommand is the command line data structure for the List findings labels action of findings
func (*ListFindingsLabelsFindingsCommand) RegisterFlags ¶
func (cmd *ListFindingsLabelsFindingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListFindingsTargetsFindingsCommand ¶
type ListFindingsTargetsFindingsCommand struct {
// Team ID
TeamID string
// Allows to get targets list at a specific date
AtDate string
// A comma separated list of identifiers
Identifiers string
// Issue ID (Vulnerability DB)
IssueID string
// A comma separated list of associated labels
Labels string
// Allows to get findings list until a specific date
MaxDate string
// Allows to get findings list from a specific date
MinDate string
// Requested page
Page string
// Requested page size
Size string
// Sorting criteria. Supported fields: max_score, findings_count (use - for descending order. E.g.: -max_score)
SortBy string
// Findings Status
Status string
PrettyPrint bool
}
ListFindingsTargetsFindingsCommand is the command line data structure for the list findings targets action of findings
func (*ListFindingsTargetsFindingsCommand) RegisterFlags ¶
func (cmd *ListFindingsTargetsFindingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListGroupCommand ¶
ListGroupCommand is the command line data structure for the list action of group
func (*ListGroupCommand) RegisterFlags ¶
func (cmd *ListGroupCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListPoliciesCommand ¶
ListPoliciesCommand is the command line data structure for the list action of policies
func (*ListPoliciesCommand) RegisterFlags ¶
func (cmd *ListPoliciesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListPolicySettingsCommand ¶
type ListPolicySettingsCommand struct {
// Policy ID
PolicyID string
// Team ID
TeamID string
PrettyPrint bool
}
ListPolicySettingsCommand is the command line data structure for the list action of policy-settings
func (*ListPolicySettingsCommand) RegisterFlags ¶
func (cmd *ListPolicySettingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListProgramScansCommand ¶
type ListProgramScansCommand struct {
// Program ID
ProgramID string
// Team ID
TeamID string
PrettyPrint bool
}
ListProgramScansCommand is the command line data structure for the list action of program-scans
func (*ListProgramScansCommand) RegisterFlags ¶
func (cmd *ListProgramScansCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListProgramsCommand ¶
ListProgramsCommand is the command line data structure for the list action of programs
func (*ListProgramsCommand) RegisterFlags ¶
func (cmd *ListProgramsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListRecipientsCommand ¶
ListRecipientsCommand is the command line data structure for the list action of recipients
func (*ListRecipientsCommand) RegisterFlags ¶
func (cmd *ListRecipientsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListTeamMembersCommand ¶
ListTeamMembersCommand is the command line data structure for the list action of team-members
func (*ListTeamMembersCommand) RegisterFlags ¶
func (cmd *ListTeamMembersCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListTeamsCommand ¶
ListTeamsCommand is the command line data structure for the list action of teams
func (*ListTeamsCommand) RegisterFlags ¶
func (cmd *ListTeamsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListTeamsUserCommand ¶
ListTeamsUserCommand is the command line data structure for the list-teams action of user
func (*ListTeamsUserCommand) RegisterFlags ¶
func (cmd *ListTeamsUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListUserCommand ¶
type ListUserCommand struct {
PrettyPrint bool
}
ListUserCommand is the command line data structure for the list action of user
func (*ListUserCommand) RegisterFlags ¶
func (cmd *ListUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type MttrGlobalStatsCommand ¶
type MttrGlobalStatsCommand struct {
// A comma separated list of associated labels
Labels string
// Maximum date to filter statistics by
MaxDate string
// Minimum date to filter statistics by
MinDate string
// Comma separated list of team tags to filter by. Only admin and observer users are allowed to set this field.
Tags string
PrettyPrint bool
}
MttrGlobalStatsCommand is the command line data structure for the mttr action of global-stats
func (*MttrGlobalStatsCommand) RegisterFlags ¶
func (cmd *MttrGlobalStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type MttrStatsCommand ¶
type MttrStatsCommand struct {
// Team ID
TeamID string
// Maximum date to filter statistics by
MaxDate string
// Minimum date to filter statistics by
MinDate string
PrettyPrint bool
}
MttrStatsCommand is the command line data structure for the mttr action of stats
func (*MttrStatsCommand) RegisterFlags ¶
func (cmd *MttrStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type OpenGlobalStatsCommand ¶
type OpenGlobalStatsCommand struct {
// Specific date to get statistics at (incompatible and preferential to min and max date params)
AtDate string
// A comma separated list of asset identifiers
Identifiers string
// A comma separated list of associated labels
Labels string
// Maximum date to filter statistics by
MaxDate string
// Minimum date to filter statistics by
MinDate string
// Comma separated list of team tags to filter by. Only admin and observer users are allowed to set this field.
Tags string
PrettyPrint bool
}
OpenGlobalStatsCommand is the command line data structure for the open action of global-stats
func (*OpenGlobalStatsCommand) RegisterFlags ¶
func (cmd *OpenGlobalStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type OpenStatsCommand ¶
type OpenStatsCommand struct {
// Team ID
TeamID string
// Specific date to get statistics at (incompatible and preferential to min and max date params)
AtDate string
// A comma separated list of asset identifiers
Identifiers string
// A comma separated list of associated labels
Labels string
// Maximum date to filter statistics by
MaxDate string
// Minimum date to filter statistics by
MinDate string
PrettyPrint bool
}
OpenStatsCommand is the command line data structure for the open action of stats
func (*OpenStatsCommand) RegisterFlags ¶
func (cmd *OpenStatsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ProfileUserCommand ¶
type ProfileUserCommand struct {
PrettyPrint bool
}
ProfileUserCommand is the command line data structure for the profile action of user
func (*ProfileUserCommand) RegisterFlags ¶
func (cmd *ProfileUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type PutAssetAnnotationsCommand ¶
type PutAssetAnnotationsCommand struct {
Payload string
ContentType string
// Asset ID
AssetID string
// Team ID
TeamID string
PrettyPrint bool
}
PutAssetAnnotationsCommand is the command line data structure for the put action of asset-annotations
func (*PutAssetAnnotationsCommand) RegisterFlags ¶
func (cmd *PutAssetAnnotationsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type SendDigestReportCommand ¶
type SendDigestReportCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
SendDigestReportCommand is the command line data structure for the send digest action of report
func (*SendDigestReportCommand) RegisterFlags ¶
func (cmd *SendDigestReportCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type SendScanReportCommand ¶
type SendScanReportCommand struct {
// Scan ID
ScanID string
// Team ID
TeamID string
PrettyPrint bool
}
SendScanReportCommand is the command line data structure for the send action of scan report
func (*SendScanReportCommand) RegisterFlags ¶
func (cmd *SendScanReportCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowAssetsCommand ¶
type ShowAssetsCommand struct {
// Asset ID
AssetID string
// Team ID
TeamID string
PrettyPrint bool
}
ShowAssetsCommand is the command line data structure for the show action of assets
func (*ShowAssetsCommand) RegisterFlags ¶
func (cmd *ShowAssetsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowGroupCommand ¶
type ShowGroupCommand struct {
// Group ID
GroupID string
// Team ID
TeamID string
PrettyPrint bool
}
ShowGroupCommand is the command line data structure for the show action of group
func (*ShowGroupCommand) RegisterFlags ¶
func (cmd *ShowGroupCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowHealthcheckCommand ¶
type ShowHealthcheckCommand struct {
PrettyPrint bool
}
ShowHealthcheckCommand is the command line data structure for the show action of healthcheck
func (*ShowHealthcheckCommand) RegisterFlags ¶
func (cmd *ShowHealthcheckCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowJobsCommand ¶
ShowJobsCommand is the command line data structure for the show action of jobs
func (*ShowJobsCommand) RegisterFlags ¶
func (cmd *ShowJobsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowPoliciesCommand ¶
type ShowPoliciesCommand struct {
// Policy ID
PolicyID string
// Team ID
TeamID string
PrettyPrint bool
}
ShowPoliciesCommand is the command line data structure for the show action of policies
func (*ShowPoliciesCommand) RegisterFlags ¶
func (cmd *ShowPoliciesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowPolicySettingsCommand ¶
type ShowPolicySettingsCommand struct {
// Policy ID
PolicyID string
// CheckType Settings ID
SettingsID string
// Team ID
TeamID string
PrettyPrint bool
}
ShowPolicySettingsCommand is the command line data structure for the show action of policy-settings
func (*ShowPolicySettingsCommand) RegisterFlags ¶
func (cmd *ShowPolicySettingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowProgramsCommand ¶
type ShowProgramsCommand struct {
// Program ID
ProgramID string
// Team ID
TeamID string
PrettyPrint bool
}
ShowProgramsCommand is the command line data structure for the show action of programs
func (*ShowProgramsCommand) RegisterFlags ¶
func (cmd *ShowProgramsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowScanCommand ¶
ShowScanCommand is the command line data structure for the show action of scan
func (*ShowScanCommand) RegisterFlags ¶
func (cmd *ShowScanCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowScanReportCommand ¶
type ShowScanReportCommand struct {
// Scan ID
ScanID string
// Team ID
TeamID string
PrettyPrint bool
}
ShowScanReportCommand is the command line data structure for the show action of scan report
func (*ShowScanReportCommand) RegisterFlags ¶
func (cmd *ShowScanReportCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowTeamMembersCommand ¶
type ShowTeamMembersCommand struct {
// Team ID
TeamID string
// User ID
UserID string
PrettyPrint bool
}
ShowTeamMembersCommand is the command line data structure for the show action of team-members
func (*ShowTeamMembersCommand) RegisterFlags ¶
func (cmd *ShowTeamMembersCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowTeamsCommand ¶
ShowTeamsCommand is the command line data structure for the show action of teams
func (*ShowTeamsCommand) RegisterFlags ¶
func (cmd *ShowTeamsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowUserCommand ¶
ShowUserCommand is the command line data structure for the show action of user
func (*ShowUserCommand) RegisterFlags ¶
func (cmd *ShowUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type SubmitAFindingOverwriteFindingsCommand ¶
type SubmitAFindingOverwriteFindingsCommand struct {
Payload string
ContentType string
FindingID string
// Team ID
TeamID string
PrettyPrint bool
}
SubmitAFindingOverwriteFindingsCommand is the command line data structure for the Submit a Finding Overwrite action of findings
func (*SubmitAFindingOverwriteFindingsCommand) RegisterFlags ¶
func (cmd *SubmitAFindingOverwriteFindingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateAssetAnnotationsCommand ¶
type UpdateAssetAnnotationsCommand struct {
Payload string
ContentType string
// Asset ID
AssetID string
// Team ID
TeamID string
PrettyPrint bool
}
UpdateAssetAnnotationsCommand is the command line data structure for the update action of asset-annotations
func (*UpdateAssetAnnotationsCommand) RegisterFlags ¶
func (cmd *UpdateAssetAnnotationsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateAssetsCommand ¶
type UpdateAssetsCommand struct {
Payload string
ContentType string
// Asset ID
AssetID string
// Team ID
TeamID string
PrettyPrint bool
}
UpdateAssetsCommand is the command line data structure for the update action of assets
func (*UpdateAssetsCommand) RegisterFlags ¶
func (cmd *UpdateAssetsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateGroupCommand ¶
type UpdateGroupCommand struct {
Payload string
ContentType string
// Group ID
GroupID string
// Team ID
TeamID string
PrettyPrint bool
}
UpdateGroupCommand is the command line data structure for the update action of group
func (*UpdateGroupCommand) RegisterFlags ¶
func (cmd *UpdateGroupCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdatePoliciesCommand ¶
type UpdatePoliciesCommand struct {
Payload string
ContentType string
// Policy ID
PolicyID string
// Team ID
TeamID string
PrettyPrint bool
}
UpdatePoliciesCommand is the command line data structure for the update action of policies
func (*UpdatePoliciesCommand) RegisterFlags ¶
func (cmd *UpdatePoliciesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdatePolicySettingsCommand ¶
type UpdatePolicySettingsCommand struct {
Payload string
ContentType string
// Policy ID
PolicyID string
// Policy Settings ID
SettingsID string
// Team ID
TeamID string
PrettyPrint bool
}
UpdatePolicySettingsCommand is the command line data structure for the update action of policy-settings
func (*UpdatePolicySettingsCommand) RegisterFlags ¶
func (cmd *UpdatePolicySettingsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateProgramsCommand ¶
type UpdateProgramsCommand struct {
Payload string
ContentType string
// Program ID
ProgramID string
// Team ID
TeamID string
PrettyPrint bool
}
UpdateProgramsCommand is the command line data structure for the update action of programs
func (*UpdateProgramsCommand) RegisterFlags ¶
func (cmd *UpdateProgramsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateRecipientsCommand ¶
type UpdateRecipientsCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
PrettyPrint bool
}
UpdateRecipientsCommand is the command line data structure for the update action of recipients
func (*UpdateRecipientsCommand) RegisterFlags ¶
func (cmd *UpdateRecipientsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateScheduleCommand ¶
type UpdateScheduleCommand struct {
Payload string
ContentType string
// Program ID
ProgramID string
// Team ID
TeamID string
PrettyPrint bool
}
UpdateScheduleCommand is the command line data structure for the update action of schedule
func (*UpdateScheduleCommand) RegisterFlags ¶
func (cmd *UpdateScheduleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateTeamMembersCommand ¶
type UpdateTeamMembersCommand struct {
Payload string
ContentType string
// Team ID
TeamID string
// User ID
UserID string
PrettyPrint bool
}
UpdateTeamMembersCommand is the command line data structure for the update action of team-members
func (*UpdateTeamMembersCommand) RegisterFlags ¶
func (cmd *UpdateTeamMembersCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateTeamsCommand ¶
type UpdateTeamsCommand struct {
Payload string
ContentType string
// team ID
TeamID string
PrettyPrint bool
}
UpdateTeamsCommand is the command line data structure for the update action of teams
func (*UpdateTeamsCommand) RegisterFlags ¶
func (cmd *UpdateTeamsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateUserCommand ¶
type UpdateUserCommand struct {
Payload string
ContentType string
// User ID
UserID string
PrettyPrint bool
}
UpdateUserCommand is the command line data structure for the update action of user
func (*UpdateUserCommand) RegisterFlags ¶
func (cmd *UpdateUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.