cli

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cobra.Command, c *client.Client)

RegisterCommands registers the resource action CLI commands.

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.

func (*AssetsGlobalStatsCommand) Run

func (cmd *AssetsGlobalStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the AssetsGlobalStatsCommand command.

type CoverageStatsCommand

type CoverageStatsCommand struct {
	// Team ID
	TeamID      string
	PrettyPrint bool
}

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.

func (*CoverageStatsCommand) Run

func (cmd *CoverageStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CoverageStatsCommand command.

type CreateAPITokenCommand

type CreateAPITokenCommand struct {
	// User ID
	UserID      string
	PrettyPrint bool
}

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.

func (*CreateAPITokenCommand) Run

func (cmd *CreateAPITokenCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateAPITokenCommand command.

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.

func (*CreateAssetAnnotationsCommand) Run

Run makes the HTTP request corresponding to the CreateAssetAnnotationsCommand command.

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.

func (*CreateAssetGroupCommand) Run

func (cmd *CreateAssetGroupCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateAssetGroupCommand command.

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.

func (*CreateAssetsCommand) Run

func (cmd *CreateAssetsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateAssetsCommand command.

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.

func (*CreateGroupCommand) Run

func (cmd *CreateGroupCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateGroupCommand command.

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.

func (*CreateMultiStatusAssetsCommand) Run

Run makes the HTTP request corresponding to the CreateMultiStatusAssetsCommand command.

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.

func (*CreatePoliciesCommand) Run

func (cmd *CreatePoliciesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreatePoliciesCommand command.

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.

func (*CreatePolicySettingsCommand) Run

func (cmd *CreatePolicySettingsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreatePolicySettingsCommand command.

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.

func (*CreateProgramsCommand) Run

func (cmd *CreateProgramsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateProgramsCommand command.

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.

func (*CreateScanCommand) Run

func (cmd *CreateScanCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateScanCommand command.

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.

func (*CreateScheduleCommand) Run

func (cmd *CreateScheduleCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateScheduleCommand command.

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.

func (*CreateTeamMembersCommand) Run

func (cmd *CreateTeamMembersCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateTeamMembersCommand command.

type CreateTeamsCommand

type CreateTeamsCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

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.

func (*CreateTeamsCommand) Run

func (cmd *CreateTeamsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateTeamsCommand command.

type CreateUserCommand

type CreateUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

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.

func (*CreateUserCommand) Run

func (cmd *CreateUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateUserCommand command.

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.

func (*CurrentExposureGlobalStatsCommand) Run

Run makes the HTTP request corresponding to the CurrentExposureGlobalStatsCommand command.

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.

func (*CurrentExposureStatsCommand) Run

func (cmd *CurrentExposureStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CurrentExposureStatsCommand command.

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.

func (*DeleteAssetAnnotationsCommand) Run

Run makes the HTTP request corresponding to the DeleteAssetAnnotationsCommand command.

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.

func (*DeleteAssetGroupCommand) Run

func (cmd *DeleteAssetGroupCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteAssetGroupCommand command.

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.

func (*DeleteAssetsCommand) Run

func (cmd *DeleteAssetsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteAssetsCommand command.

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.

func (*DeleteGroupCommand) Run

func (cmd *DeleteGroupCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteGroupCommand command.

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.

func (*DeletePoliciesCommand) Run

func (cmd *DeletePoliciesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeletePoliciesCommand command.

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.

func (*DeletePolicySettingsCommand) Run

func (cmd *DeletePolicySettingsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeletePolicySettingsCommand command.

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.

func (*DeleteProgramsCommand) Run

func (cmd *DeleteProgramsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteProgramsCommand command.

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.

func (*DeleteScheduleCommand) Run

func (cmd *DeleteScheduleCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteScheduleCommand command.

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.

func (*DeleteTeamMembersCommand) Run

func (cmd *DeleteTeamMembersCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteTeamMembersCommand command.

type DeleteTeamsCommand

type DeleteTeamsCommand struct {
	// Team ID
	TeamID      string
	PrettyPrint bool
}

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.

func (*DeleteTeamsCommand) Run

func (cmd *DeleteTeamsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteTeamsCommand command.

type DeleteUserCommand

type DeleteUserCommand struct {
	// User ID
	UserID      string
	PrettyPrint bool
}

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.

func (*DeleteUserCommand) Run

func (cmd *DeleteUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteUserCommand command.

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.

func (*DiscoverAssetsCommand) Run

func (cmd *DiscoverAssetsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DiscoverAssetsCommand command.

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.

func (*EmailScanReportCommand) Run

func (cmd *EmailScanReportCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the EmailScanReportCommand command.

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.

func (*ExposureGlobalStatsCommand) Run

func (cmd *ExposureGlobalStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ExposureGlobalStatsCommand command.

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.

func (*ExposureStatsCommand) Run

func (cmd *ExposureStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ExposureStatsCommand command.

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.

func (*FindFindingFindingsCommand) Run

func (cmd *FindFindingFindingsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the FindFindingFindingsCommand command.

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.

func (*FindFindingsFromAIssueFindingsCommand) Run

Run makes the HTTP request corresponding to the FindFindingsFromAIssueFindingsCommand command.

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

RegisterFlags registers the command flags with the command line.

func (*FindFindingsFromATargetFindingsCommand) Run

Run makes the HTTP request corresponding to the FindFindingsFromATargetFindingsCommand command.

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.

func (*FixedGlobalStatsCommand) Run

func (cmd *FixedGlobalStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the FixedGlobalStatsCommand command.

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.

func (*FixedStatsCommand) Run

func (cmd *FixedStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the FixedStatsCommand command.

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.

func (*GenerateScanReportCommand) Run

func (cmd *GenerateScanReportCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the GenerateScanReportCommand command.

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.

func (*ListAssetAnnotationsCommand) Run

func (cmd *ListAssetAnnotationsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListAssetAnnotationsCommand command.

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.

func (*ListAssetGroupCommand) Run

func (cmd *ListAssetGroupCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListAssetGroupCommand command.

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.

func (*ListAssetsCommand) Run

func (cmd *ListAssetsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListAssetsCommand command.

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.

func (*ListFindingOverwritesFindingsCommand) Run

Run makes the HTTP request corresponding to the ListFindingOverwritesFindingsCommand command.

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.

func (*ListFindingsFindingsCommand) Run

func (cmd *ListFindingsFindingsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListFindingsFindingsCommand command.

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.

func (*ListFindingsIssuesFindingsCommand) Run

Run makes the HTTP request corresponding to the ListFindingsIssuesFindingsCommand command.

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.

func (*ListFindingsLabelsFindingsCommand) Run

Run makes the HTTP request corresponding to the ListFindingsLabelsFindingsCommand command.

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.

func (*ListFindingsTargetsFindingsCommand) Run

Run makes the HTTP request corresponding to the ListFindingsTargetsFindingsCommand command.

type ListGroupCommand

type ListGroupCommand struct {
	// Team ID
	TeamID      string
	PrettyPrint bool
}

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.

func (*ListGroupCommand) Run

func (cmd *ListGroupCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListGroupCommand command.

type ListPoliciesCommand

type ListPoliciesCommand struct {
	// Team ID
	TeamID      string
	PrettyPrint bool
}

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.

func (*ListPoliciesCommand) Run

func (cmd *ListPoliciesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListPoliciesCommand command.

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.

func (*ListPolicySettingsCommand) Run

func (cmd *ListPolicySettingsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListPolicySettingsCommand command.

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.

func (*ListProgramScansCommand) Run

func (cmd *ListProgramScansCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListProgramScansCommand command.

type ListProgramsCommand

type ListProgramsCommand struct {
	// Team ID
	TeamID      string
	PrettyPrint bool
}

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.

func (*ListProgramsCommand) Run

func (cmd *ListProgramsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListProgramsCommand command.

type ListRecipientsCommand

type ListRecipientsCommand struct {
	// Team ID
	TeamID      string
	PrettyPrint bool
}

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.

func (*ListRecipientsCommand) Run

func (cmd *ListRecipientsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListRecipientsCommand command.

type ListTeamMembersCommand

type ListTeamMembersCommand struct {
	// Team ID
	TeamID      string
	PrettyPrint bool
}

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.

func (*ListTeamMembersCommand) Run

func (cmd *ListTeamMembersCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListTeamMembersCommand command.

type ListTeamsCommand

type ListTeamsCommand struct {
	// Team tag
	Tag         string
	PrettyPrint bool
}

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.

func (*ListTeamsCommand) Run

func (cmd *ListTeamsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListTeamsCommand command.

type ListTeamsUserCommand

type ListTeamsUserCommand struct {
	// User ID
	UserID      string
	PrettyPrint bool
}

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.

func (*ListTeamsUserCommand) Run

func (cmd *ListTeamsUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListTeamsUserCommand command.

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.

func (*ListUserCommand) Run

func (cmd *ListUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListUserCommand command.

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.

func (*MttrGlobalStatsCommand) Run

func (cmd *MttrGlobalStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the MttrGlobalStatsCommand command.

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.

func (*MttrStatsCommand) Run

func (cmd *MttrStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the MttrStatsCommand command.

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.

func (*OpenGlobalStatsCommand) Run

func (cmd *OpenGlobalStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the OpenGlobalStatsCommand command.

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.

func (*OpenStatsCommand) Run

func (cmd *OpenStatsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the OpenStatsCommand command.

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.

func (*ProfileUserCommand) Run

func (cmd *ProfileUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ProfileUserCommand command.

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.

func (*PutAssetAnnotationsCommand) Run

func (cmd *PutAssetAnnotationsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the PutAssetAnnotationsCommand command.

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.

func (*SendDigestReportCommand) Run

func (cmd *SendDigestReportCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the SendDigestReportCommand command.

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.

func (*SendScanReportCommand) Run

func (cmd *SendScanReportCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the SendScanReportCommand command.

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.

func (*ShowAssetsCommand) Run

func (cmd *ShowAssetsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowAssetsCommand command.

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.

func (*ShowGroupCommand) Run

func (cmd *ShowGroupCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowGroupCommand command.

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.

func (*ShowHealthcheckCommand) Run

func (cmd *ShowHealthcheckCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowHealthcheckCommand command.

type ShowJobsCommand

type ShowJobsCommand struct {
	// Job ID
	JobID       string
	PrettyPrint bool
}

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.

func (*ShowJobsCommand) Run

func (cmd *ShowJobsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowJobsCommand command.

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.

func (*ShowPoliciesCommand) Run

func (cmd *ShowPoliciesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowPoliciesCommand command.

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.

func (*ShowPolicySettingsCommand) Run

func (cmd *ShowPolicySettingsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowPolicySettingsCommand command.

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.

func (*ShowProgramsCommand) Run

func (cmd *ShowProgramsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowProgramsCommand command.

type ShowScanCommand

type ShowScanCommand struct {
	// Scan ID
	ScanID string
	// Team ID
	TeamID      string
	PrettyPrint bool
}

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.

func (*ShowScanCommand) Run

func (cmd *ShowScanCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowScanCommand command.

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.

func (*ShowScanReportCommand) Run

func (cmd *ShowScanReportCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowScanReportCommand command.

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.

func (*ShowTeamMembersCommand) Run

func (cmd *ShowTeamMembersCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowTeamMembersCommand command.

type ShowTeamsCommand

type ShowTeamsCommand struct {
	// Team ID
	TeamID      string
	PrettyPrint bool
}

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.

func (*ShowTeamsCommand) Run

func (cmd *ShowTeamsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowTeamsCommand command.

type ShowUserCommand

type ShowUserCommand struct {
	// User ID
	UserID      string
	PrettyPrint bool
}

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.

func (*ShowUserCommand) Run

func (cmd *ShowUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowUserCommand command.

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

RegisterFlags registers the command flags with the command line.

func (*SubmitAFindingOverwriteFindingsCommand) Run

Run makes the HTTP request corresponding to the SubmitAFindingOverwriteFindingsCommand command.

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.

func (*UpdateAssetAnnotationsCommand) Run

Run makes the HTTP request corresponding to the UpdateAssetAnnotationsCommand command.

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.

func (*UpdateAssetsCommand) Run

func (cmd *UpdateAssetsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateAssetsCommand command.

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.

func (*UpdateGroupCommand) Run

func (cmd *UpdateGroupCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateGroupCommand command.

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.

func (*UpdatePoliciesCommand) Run

func (cmd *UpdatePoliciesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdatePoliciesCommand command.

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.

func (*UpdatePolicySettingsCommand) Run

func (cmd *UpdatePolicySettingsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdatePolicySettingsCommand command.

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.

func (*UpdateProgramsCommand) Run

func (cmd *UpdateProgramsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateProgramsCommand command.

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.

func (*UpdateRecipientsCommand) Run

func (cmd *UpdateRecipientsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateRecipientsCommand command.

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.

func (*UpdateScheduleCommand) Run

func (cmd *UpdateScheduleCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateScheduleCommand command.

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.

func (*UpdateTeamMembersCommand) Run

func (cmd *UpdateTeamMembersCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateTeamMembersCommand command.

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.

func (*UpdateTeamsCommand) Run

func (cmd *UpdateTeamsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateTeamsCommand command.

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.

func (*UpdateUserCommand) Run

func (cmd *UpdateUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateUserCommand command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL