scan_config

package
v0.0.0-...-5a21cb2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteWASConfig

func DeleteWASConfig(apiURL, apiKey, configID string) error

DeleteWASConfig deletes a web application scanning configuration by its ID

Types

type ScanConfigUpdatePayload

type ScanConfigUpdatePayload struct {
	// Define your payload structure here according to the API documentation
	// This example assumes generic fields for demonstration purposes
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
}

ScanConfigUpdatePayload represents the payload for updating a scan configuration

type ScanConfigUpdateResponse

type ScanConfigUpdateResponse struct {
	// Define your response structure here
	// This example assumes a generic response for demonstration purposes
	Message string `json:"message"`
}

ScanConfigUpdateResponse represents the response from updating a scan configuration

func UpdateScanConfig

func UpdateScanConfig(apiURL, apiKey string, configID string, payload ScanConfigUpdatePayload) (*ScanConfigUpdateResponse, error)

UpdateScanConfig sends a request to update an existing scan configuration

type WASConfigPayload

type WASConfigPayload struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
}

WASConfigPayload represents the payload for creating a WAS scan configuration

type WASConfigResponse

type WASConfigResponse struct {
	ConfigID string `json:"config_id"`
}

WASConfigResponse represents the response from creating a WAS scan configuration

func CreateWASConfig

func CreateWASConfig(apiURL, apiKey string, payload WASConfigPayload) (*WASConfigResponse, error)

CreateWASConfig creates a new WAS scan configuration

type WASConfigUpsertResponse

type WASConfigUpsertResponse struct {
	ConfigID           string        `json:"config_id"`
	ContainerID        string        `json:"container_id"`
	OwnerID            string        `json:"owner_id"`
	TemplateID         string        `json:"template_id"`
	UserTemplateID     string        `json:"user_template_id,omitempty"`
	Name               string        `json:"name"`
	Targets            []string      `json:"targets"`
	Description        string        `json:"description,omitempty"`
	CreatedAt          string        `json:"created_at"`
	UpdatedAt          string        `json:"updated_at"`
	ScannerID          string        `json:"scanner_id,omitempty"`
	Schedule           interface{}   `json:"schedule,omitempty"`
	DefaultPermissions string        `json:"default_permissions"`
	ResultsVisibility  string        `json:"results_visibility"`
	Permissions        []interface{} `json:"permissions"`
	Notifications      struct {
		Emails []string `json:"emails"`
	} `json:"notifications"`
	// Include settings structure based on the provided JSON example
	Settings struct {
	} `json:"settings"`
}

WASConfigUpsertResponse WASConfigDetails represents the detailed information of a WAS scan configuration

func GetWASConfigDetails

func GetWASConfigDetails(apiURL, apiKey string, configID string) (*WASConfigUpsertResponse, error)

GetWASConfigDetails fetches details of a WAS scan configuration

Jump to

Keyboard shortcuts

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