account

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CloudScanRulesEndpoint = "api/v1/cloud-scan-rules"

Variables

This section is empty.

Functions

func DeleteCloudScanRule

func DeleteCloudScanRule(c api.Client, name string) error

Delete an existing cloud scan rule

func UpdateCloudScanRule

func UpdateCloudScanRule(c api.Client, rule []CloudScanRule) error

Create/Update cloud scan rules

Types

type AgentlessScanSpec

type AgentlessScanSpec struct {
	Enabled              bool     `json:"enabled,omitempty"`
	HubAccount           bool     `json:"hubAccount,omitempty"`
	ConsoleAddr          string   `json:"consoleAddr,omitempty"`
	ScanNonRunning       bool     `json:"scanNonRunning,omitempty"`
	ProxyAddress         string   `json:"proxyAddress,omitempty"`
	ProxyCA              string   `json:"proxyCA,omitempty"`
	SkipPermissionsCheck bool     `json:"skipPermissionsCheck,omitempty"`
	AutoScale            bool     `json:"autoScale,omitempty"`
	Scanners             int      `json:"scanners,omitempty"`
	SecurityGroup        string   `json:"securityGroup,omitempty"`
	SubNet               string   `json:"subnet,omitempty"`
	Regions              []string `json:"regions,omitempty"`
	CustomTags           []Tag    `json:"customTags,omitempty"`
	IncludedTags         []Tag    `json:"includedTags,omitempty"`
}

type CloudScanRule

type CloudScanRule struct {
	CredentialId                string             `json:"credentialId"`
	Credential                  auth.Credential    `json:"credential,omitempty"`
	DiscoveryEnabled            bool               `json:"discoveryEnabled,omitempty"`
	ServerlessRadarEnabled      bool               `json:"serverlessRadarEnabled,omitempty"`
	VmTagsEnabled               bool               `json:"vmTagsEnabled,omitempty"`
	DiscoverAllFunctionVersions bool               `json:"discoverAllFunctionVersions,omitempty"`
	ServerlessRadarCap          int                `json:"serverlessRadarCap,omitempty"`
	AgentlessScanSpec           AgentlessScanSpec  `json:"agentlessScanSpec,omitempty"`
	ServerlessScanSpec          ServerLessScanSpec `json:"serverlessScanSpec,omitempty"`
	AwsRegionType               string             `json:"awsRegionType,omitempty"`
}

func GetCloudScanRule

func GetCloudScanRule(c api.Client, name string) (*CloudScanRule, error)

Get a specific cloud scan rule

func ListCloudScanRules

func ListCloudScanRules(c api.Client) ([]CloudScanRule, error)

Get all cloud can rules

type ServerLessScanSpec

type ServerLessScanSpec struct {
	Enabled         bool `json:"enabled,omitempty"`
	Cap             int  `json:"cap,omitempty"`
	ScanAllVersions bool `json:"scanAllVersions,omitempty"`
	ScanLayers      bool `json:"scanLayers,omitempty"`
}

Serverless scan specs struct

type Tag

type Tag struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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