escape

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package escape provides the API client for the Escape Platform

Package escape provides the API client for the Escape Platform

Index

Constants

View Source
const (
	// InvalidAPIKeyMessage is the user-facing error when the API rejects credentials.
	InvalidAPIKeyMessage = "Invalid API Key."
	// InvalidAPIKeyHint tells users where to retrieve a valid API key.
	InvalidAPIKeyHint = env.APIKeyHint
)

Variables

View Source
var Debug = false

Debug is a flag to enable debug mode for the API client

Functions

func BulkDeleteAssets added in v1.1.0

BulkDeleteAssets deletes multiple assets matching a filter

func BulkUpdateAssets added in v1.1.0

BulkUpdateAssets updates multiple assets matching a filter

func BulkUpdateIssues added in v1.1.0

BulkUpdateIssues updates multiple issues matching a filter

func CancelScan added in v0.3.0

func CancelScan(ctx context.Context, scanID string) error

CancelScan cancels a scan

func CommentAsset added in v1.1.0

func CommentAsset(ctx context.Context, assetID, comment string) (*v3.CreateAssetComment200Response, error)

CommentAsset adds a comment to an asset

func CommentIssue added in v1.1.0

func CommentIssue(ctx context.Context, issueID string, comment string) (*v3.CreateAssetComment200Response, error)

CommentIssue adds a comment to an issue and returns the created activity.

func CreateAsset added in v0.3.0

func CreateAsset(ctx context.Context, data []byte, assetType string) (interface{}, error)

CreateAsset creates an asset

func CreateCustomRule added in v0.3.8

func CreateCustomRule(ctx context.Context, data []byte) (*v3.CreateCustomRule200Response, error)

CreateCustomRule creates a custom rule from raw JSON

func CreateIntegration added in v1.1.0

func CreateIntegration(ctx context.Context, kind string, body []byte) (map[string]interface{}, error)

CreateIntegration creates an integration of a given kind from raw JSON bytes.

func CreateLocation

func CreateLocation(ctx context.Context, name, sshPublicKey string) (*v3.CreateLocation200Response, error)

CreateLocation creates a location and returns the created location.

func CreateProfileAiPentest added in v1.3.6

func CreateProfileAiPentest(ctx context.Context, data []byte) (interface{}, error)

CreateProfileAiPentest creates an AI pentest profile (POST /profiles/ai-pentest).

func CreateProfileGraphql added in v0.3.0

func CreateProfileGraphql(ctx context.Context, data []byte) (interface{}, error)

CreateProfileGraphql creates a profile for a GraphQL application

func CreateProfileRest added in v0.3.0

func CreateProfileRest(ctx context.Context, data []byte) (interface{}, error)

CreateProfileRest creates a profile for a REST application

func CreateProfileWebapp added in v0.3.0

func CreateProfileWebapp(ctx context.Context, data []byte) (interface{}, error)

CreateProfileWebapp creates a profile for a web application

func CreateProject added in v1.1.0

func CreateProject(ctx context.Context, body []byte) (*v3.CreateProject200Response, error)

CreateProject creates a new project from raw JSON bytes

func CreateRole added in v1.1.0

func CreateRole(ctx context.Context, body []byte) (*v3.CreateRole200Response, error)

CreateRole creates a new role from raw JSON bytes

func CreateRoleBindings added in v1.1.0

func CreateRoleBindings(ctx context.Context, roleID, userID string) ([]v3.CreateRoleBindings200ResponseInner, error)

CreateRoleBindings creates role bindings associating users to roles

func CreateSchemaAsset added in v1.3.3

func CreateSchemaAsset(ctx context.Context, temporaryObjectKey string, name string) (*v3.UpdateAsset200Response, error)

CreateSchemaAsset turns a temporary upload object key into a SCHEMA asset. POST /v3/assets/schema polls the schema-build workflow internally; the server returns the finalized asset or a 400 on workflow timeout.

func CreateTag added in v0.3.0

func CreateTag(ctx context.Context, name string, color string) (*v3.CreateTag200Response, error)

CreateTag creates a tag

func CreateWorkflow added in v1.1.0

func CreateWorkflow(ctx context.Context, body []byte) (*v3.CreateWorkflow200Response, error)

CreateWorkflow creates a new workflow from raw JSON bytes

func DeleteAsset added in v0.3.0

func DeleteAsset(ctx context.Context, id string) (*v3.DeleteProfile200Response, error)

DeleteAsset deletes an asset by ID and returns the API's acknowledgement.

func DeleteCustomRule added in v0.3.8

func DeleteCustomRule(ctx context.Context, id string) (*v3.DeleteCustomRule200Response, error)

DeleteCustomRule deletes a custom rule

func DeleteIntegration

func DeleteIntegration(ctx context.Context, kind, integrationID string) (*v3.CreateakamaiIntegration200Response, error)

DeleteIntegration deletes an integration by kind and ID. Every generated delete operation returns CreateakamaiIntegration200Response, so the kind-generic client decodes that one shape.

func DeleteLocation

func DeleteLocation(ctx context.Context, id string) (*v3.DeleteLocation200Response, error)

DeleteLocation deletes a location and returns the API's acknowledgement.

func DeleteProfile added in v0.3.10

func DeleteProfile(ctx context.Context, profileID string) (*v3.DeleteProfile200Response, error)

DeleteProfile deletes a profile by ID

func DeleteProject added in v1.1.0

func DeleteProject(ctx context.Context, projectID string) error

DeleteProject deletes a project by ID.

func DeleteRole added in v1.1.0

func DeleteRole(ctx context.Context, roleID string) error

DeleteRole deletes a role by ID.

func DeleteRoleBinding added in v1.1.0

func DeleteRoleBinding(ctx context.Context, bindingID string) (*v3.DeleteCustomRule200Response, error)

DeleteRoleBinding deletes a role binding by ID.

func DeleteTag added in v0.6.0

func DeleteTag(ctx context.Context, id string) (*v3.DeleteProfile200Response, error)

DeleteTag deletes a tag

func DeleteWorkflow added in v1.1.0

func DeleteWorkflow(ctx context.Context, workflowID string) (*v3.CreateWorkflow200Response, error)

DeleteWorkflow deletes a workflow by ID

func DownloadSignedURL added in v1.3.3

func DownloadSignedURL(ctx context.Context, signedURL string, dst io.Writer) error

DownloadSignedURL streams the body of a pre-signed URL to the writer. Used to download schema bytes after `GetProfile` returns a signedUrl. The caller is the sole authority on deadlines: pass a ctx with the desired deadline via context.WithTimeout / context.WithDeadline. We deliberately don't set http.Client.Timeout here — stacking two independent timeout mechanisms (ctx deadline + client timeout) produces confusing failure modes where the shorter one wins silently.

func GetAsset added in v0.3.0

func GetAsset(ctx context.Context, id string) (*v3.AssetDetailed1, error)

GetAsset gets an asset by ID

func GetAuthentication added in v1.1.0

func GetAuthentication(ctx context.Context, authenticationID string) (*v3.GetAuthentication200Response, error)

GetAuthentication gets a profile authentication check by ID.

func GetCustomRule added in v0.3.4

func GetCustomRule(ctx context.Context, id string) (*v3.CreateCustomRule200Response, error)

GetCustomRule gets a custom rule

func GetEvent added in v0.3.0

func GetEvent(ctx context.Context, eventID string) (*v3.GetEvent200Response, error)

GetEvent gets an event

func GetIntegration

func GetIntegration(ctx context.Context, kind, integrationID string) (map[string]interface{}, error)

GetIntegration gets an integration by kind and ID.

func GetIssue added in v0.3.0

func GetIssue(ctx context.Context, issueID string) (*v3.GetIssue200Response, error)

GetIssue gets an issue by ID

func GetJob added in v1.1.0

func GetJob(ctx context.Context, jobID string) (*v3.GetJob200Response, error)

GetJob gets the status and result of an async job

func GetLocation

func GetLocation(ctx context.Context, id string) (*v3.CreateLocation200Response, error)

GetLocation gets a location by ID

func GetMe added in v1.1.0

func GetMe(ctx context.Context) (*v3.GetMe200Response, error)

GetMe returns the current authenticated user and organization context

func GetProfile added in v0.3.0

func GetProfile(ctx context.Context, profileID string) (*v3.GetProfile200Response, error)

GetProfile gets a profile by ID

func GetProject added in v1.1.0

func GetProject(ctx context.Context, projectID string) (*v3.CreateProject200Response, error)

GetProject gets a project by ID

func GetRetest

func GetRetest(ctx context.Context, retestID string, cursor string, size int) (*v3.GetRetest200Response, error)

GetRetest gets one page of a retest by scan id. Reports are cursor-paginated. size <= 0 leaves the API default page size in place.

func GetRole added in v1.1.0

func GetRole(ctx context.Context, roleID string) (*v3.CreateRole200Response, error)

GetRole gets a role by ID

func GetScan

func GetScan(ctx context.Context, scanID string) (*v3.StartScan200Response, error)

GetScan returns a scan by its ID

func GetScanIssues

func GetScanIssues(ctx context.Context, scanID string, cursor string, size int) ([]v3.IssueSummarized, *string, int, error)

GetScanIssues returns one page of issues found in a scan. size 0 keeps the API default page size (the server default is 50). Callers that need every issue must follow nextCursor. The returned total is totalCount.

func GetStatistics added in v1.1.0

func GetStatistics(ctx context.Context) (*v3.GetStatistics200Response, error)

GetStatistics returns organization-level statistics

func GetTag added in v1.1.0

func GetTag(ctx context.Context, id string) (*v3.CreateTag200Response, error)

GetTag gets a tag by ID

func GetUploadSignedURL added in v0.3.10

func GetUploadSignedURL(ctx context.Context) (*v3.CreateUploadSignedUrl200Response, error)

GetUploadSignedURL gets a signed url

func GetUser added in v1.1.0

func GetUser(ctx context.Context, userID string) (*v3.GetUser200Response, error)

GetUser gets a user by ID

func GetWorkflow added in v1.1.0

func GetWorkflow(ctx context.Context, workflowID string) (*v3.CreateWorkflow200Response, error)

GetWorkflow gets a workflow by ID

func IgnoreScan added in v0.3.0

func IgnoreScan(ctx context.Context, scanID string) error

IgnoreScan ignore a scan

func InviteUsers added in v1.1.0

func InviteUsers(ctx context.Context, emails []string, roleID string) ([]v3.ListUsers200ResponseInner, error)

InviteUsers invites one or more users by email address.

func IsInvalidAPIKey added in v1.3.6

func IsInvalidAPIKey(err error) bool

IsInvalidAPIKey reports whether err was produced by an unauthorized API response.

func ListAssetActivities added in v1.1.0

func ListAssetActivities(ctx context.Context, assetID string) ([]v3.ActivitySummarized, error)

ListAssetActivities lists activities for an asset

func ListAssets added in v0.3.0

func ListAssets(ctx context.Context, next string, filters *ListAssetsFilters, size int) ([]v3.AssetSummarized, *string, int, error)

ListAssets lists one page of assets. size 0 keeps the historical page size of 100. The returned total is totalCount.

func ListAuditLogs added in v0.3.0

func ListAuditLogs(ctx context.Context, next string, filters *ListAuditLogsFilters) ([]v3.AuditLogSummarized, *string, error)

ListAuditLogs lists audit logs

func ListCustomRules added in v0.3.4

func ListCustomRules(ctx context.Context) ([]v3.CustomRuleSummarized, error)

ListCustomRules lists all custom rules

func ListEvents added in v0.3.0

func ListEvents(ctx context.Context, next string, filters *ListEventsFilters, size int) ([]v3.EventSummarized, *string, int, error)

ListEvents lists one page of events. size 0 keeps the historical page size of 100. The returned total is totalCount.

func ListInboxEmails added in v1.2.0

func ListInboxEmails(ctx context.Context, cursor string, filters *ListInboxEmailsFilters) (*v3.ListInboxEmails200Response, error)

ListInboxEmails lists inbox emails for a target scan email address.

func ListIntegrations

func ListIntegrations(ctx context.Context, kind, next string, filters *ListIntegrationsFilters, size int) ([]map[string]interface{}, *string, int, error)

ListIntegrations lists one page of integrations of a given kind. size 0 omits the query parameter so the API keeps its default page size. The returned total is totalCount.

func ListIssueActivities added in v0.3.0

func ListIssueActivities(ctx context.Context, issueID string) ([]v3.ActivitySummarized, error)

ListIssueActivities lists the activities of an issue

func ListIssues added in v0.3.0

func ListIssues(ctx context.Context, next string, filters *ListIssuesFilters, sortType string, sortDirection string, size int) ([]v3.IssueSummarized, *string, int, error)

ListIssues lists one page of issues. size 0 keeps the API default page size. The returned total is the collection totalCount, not the number of rows in this page.

func ListLocations

func ListLocations(ctx context.Context, next string, filters *ListLocationsFilters, size int) ([]v3.LocationSummarized, *string, int, error)

ListLocations lists one page of locations. size 0 keeps the API default page size. The returned total is totalCount.

func ListProblems added in v0.5.0

func ListProblems(ctx context.Context, next string, filters *ListProblemsFilters, size int) ([]v3.ProfileScanProblemsRow, *string, int, error)

ListProblems lists one page of profile scan problems. size 0 keeps the API default page size. The returned total is totalCount.

func ListProfiles added in v0.3.0

func ListProfiles(ctx context.Context, next string, filters *ListProfilesFilters, size int) ([]v3.ProfileSummarized, *string, int, error)

ListProfiles lists one page of profiles. size 0 keeps the API default page size. The returned total is totalCount.

func ListProjects added in v1.1.0

func ListProjects(ctx context.Context, next string, filters *ListProjectsFilters, size int) ([]v3.ListProjects200ResponseDataInner, *string, int, error)

ListProjects lists one page of projects. size 0 keeps the API default page size. The returned total is totalCount.

func ListRetests

func ListRetests(ctx context.Context, next string, filters *ListRetestsFilters, size int) ([]v3.RetestDetailed, *string, int, error)

ListRetests lists one page of issue retests. The id of each item is the scan id. Empty sort fields default to createdAt desc so the newest retest is first. size <= 0 keeps the historical request page size (the API maximum). The returned int is totalCount.

func ListRoles added in v1.1.0

func ListRoles(ctx context.Context) ([]v3.ListRoles200ResponseInner, error)

ListRoles lists all roles in the organization

func ListScanProblems added in v1.3.6

func ListScanProblems(ctx context.Context, next string, filters *ListScanProblemsFilters, size int) ([]v3.ScanSummarizedWithProblems2, *string, int, error)

ListScanProblems lists one page of scans together with their validation problems. The returned total is totalCount.

func ListScanTargets added in v1.1.0

func ListScanTargets(
	ctx context.Context,
	scanID string,
	next string,
	targetTypes string,
	size int,
) ([]v3.TargetDetailed, *string, int, error)

ListScanTargets lists one page of targets discovered during a scan. size is the API page size (max 100). Pass 0 to use scanTargetsAPIPageSize.

func ListScans

func ListScans(ctx context.Context, next string, filters *ListScansFilters) ([]v3.ScanSummarized2, *string, error)

ListScans lists all scans for an application

func ListTags added in v0.3.0

func ListTags(ctx context.Context) ([]v3.TagDetail, error)

ListTags lists all tags

func ListUsers added in v1.1.0

func ListUsers(ctx context.Context, search string) ([]v3.ListUsers200ResponseInner, error)

ListUsers lists all users in the organization. Search is applied client-side because the public API does not expose a search filter.

func ListWorkflows added in v1.1.0

func ListWorkflows(ctx context.Context, next string, filters *ListWorkflowsFilters, size int) ([]v3.WorkflowSummarized, *string, int, error)

ListWorkflows lists one page of workflows. size 0 keeps the API default page size. The returned total is totalCount.

func NotifyIssueOwners added in v1.1.0

func NotifyIssueOwners(ctx context.Context, issueID, scanID string) (*v3.NotifyIssueOwners200Response, error)

NotifyIssueOwners sends a notification to asset owners about an issue

func ParseJSONOrYAML

func ParseJSONOrYAML[T parsable](body []byte, v T) (T, error)

ParseJSONOrYAML parses a JSON or YAML data into the requested struct It returns an error if the data is neither JSON nor YAML

func ReadInboxEmail added in v1.2.0

func ReadInboxEmail(ctx context.Context, id string) (*v3.ScanEmailDetails, error)

ReadInboxEmail reads the full raw content of an inbox email by ID.

func StartAuthentication added in v1.1.0

func StartAuthentication(ctx context.Context, body []byte) (*v3.StartAuthentication200Response, error)

StartAuthentication starts a profile authentication check from raw JSON bytes.

func StartRetest

func StartRetest(ctx context.Context, request v3.StartRetestRequest) (*v3.StartRetest200Response, error)

StartRetest starts an issue retest. The request must contain a profile id and exactly one of issueIds or filter. The returned id is the scan id.

func StartScan

func StartScan(
	ctx context.Context,
	profileID string,
	commitHash string,
	commitLink string,
	commitBranch string,
	commitAuthor string,
	commitAuthorProfilePictureLink string,
	configurationOverride map[string]interface{},
	additionalProperties map[string]interface{},
	initiator v3.ENUMPROPERTIESDATAITEMSPROPERTIESINITIATORSITEMS,
) (*v3.StartScan200Response, error)

StartScan starts a scan for an application

func TriggerAsmScans added in v1.1.0

TriggerAsmScans triggers ASM scans on assets matching an optional filter

func TriggerExport added in v1.1.0

func TriggerExport(ctx context.Context, blocks []string, scanID string) (*v3.TriggerExport200Response, error)

TriggerExport triggers an async PDF/report export job

func TriggerIssueManualWorkflow

func TriggerIssueManualWorkflow(ctx context.Context, issueID, workflowID string) (*v3.TriggerIssueManualWorkflow200Response, error)

TriggerIssueManualWorkflow runs a manual workflow (e.g. exporting the issue to Jira) on a single issue and returns the workflow that was triggered.

func UpdateAsset added in v0.3.0

func UpdateAsset(
	ctx context.Context,
	id string,
	assetDescription *string,
	assetFramework *v3.ENUMPROPERTIESFRAMEWORK,
	assetOwners *[]string,
	assetStatus *v3.ENUMPROPERTIESDATAITEMSPROPERTIESEXTRAASSETSITEMSPROPERTIESSTATUS,
	assetTagIDs *[]string,
	assetProjectIDs *[]string,
	assetName *string,
) (*v3.UpdateAsset200Response, error)

UpdateAsset updates an asset by ID

func UpdateCustomRule added in v0.3.8

func UpdateCustomRule(ctx context.Context, id string, data []byte) (*v3.CreateCustomRule200Response, error)

UpdateCustomRule updates a custom rule from raw JSON

func UpdateIntegration added in v1.1.0

func UpdateIntegration(ctx context.Context, kind, integrationID string, body []byte) (map[string]interface{}, error)

UpdateIntegration updates an integration by kind and ID from raw JSON bytes.

func UpdateIssue added in v0.3.0

func UpdateIssue(ctx context.Context, issueID string, body v3.UpdateIssueRequest) (*v3.UpdateIssue200Response, error)

UpdateIssue applies the supplied mutation to a single issue.

func UpdateLocation

func UpdateLocation(ctx context.Context, id string, name, sshPublicKey *string, enabled *bool) (*v3.CreateLocation200Response, error)

UpdateLocation updates a location. Only non-nil fields are sent. The returned value is the location after the update.

func UpdateProfile added in v1.0.0

func UpdateProfile(ctx context.Context, profileID string, data []byte) (*v3.GetProfile200Response, error)

UpdateProfile updates profile metadata (name, description, cron, extra assets)

func UpdateProfileConfiguration added in v1.0.0

func UpdateProfileConfiguration(ctx context.Context, profileID string, data []byte) (map[string]interface{}, error)

UpdateProfileConfiguration updates profile configuration (auth, scope, frontend_dast, etc.)

func UpdateProfileSchema added in v1.0.0

func UpdateProfileSchema(ctx context.Context, profileID string, schemaID string) (*v3.GetProfile200Response, error)

UpdateProfileSchema updates the schema attached to a profile

func UpdateProject added in v1.1.0

func UpdateProject(ctx context.Context, projectID string, body []byte) (*v3.CreateProject200Response, error)

UpdateProject updates a project by ID from raw JSON bytes

func UpdateRole added in v1.1.0

func UpdateRole(ctx context.Context, roleID string, body []byte) (*v3.CreateRole200Response, error)

UpdateRole updates a role by ID from raw JSON bytes

func UpdateTag added in v1.1.0

func UpdateTag(ctx context.Context, id string, name *string, color *string) (*v3.CreateTag200Response, error)

UpdateTag updates a tag name and/or color

func UpdateWorkflow added in v1.1.0

func UpdateWorkflow(ctx context.Context, workflowID string, body []byte) (*v3.CreateWorkflow200Response, error)

UpdateWorkflow updates a workflow by ID from raw JSON bytes

func UploadSchema added in v0.3.10

func UploadSchema(ctx context.Context, url string, data []byte) error

UploadSchema uploads a file to the signed url

func UpsertKubernetesIntegration added in v0.6.3

UpsertKubernetesIntegration creates a Kubernetes integration if it doesn't exist

func UpsertLocation

func UpsertLocation(ctx context.Context, name, sshPublicKey string) (string, error)

UpsertLocation Creates or updates a location and returns its ID.

func WatchScan

func WatchScan(ctx context.Context, scanID string) (chan *v3.StartScan200Response, error)

WatchScan watches scans status and logs

Types

type AgentLogSummarized added in v1.8.1

type AgentLogSummarized struct {
	ID          string `json:"id"`
	CreatedAt   string `json:"createdAt"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Stage       string `json:"stage"`
	Level       string `json:"level"`
}

AgentLogSummarized is a reasoning or action log entry for an agent.

func ListScanAgentLogs added in v1.8.1

func ListScanAgentLogs(
	ctx context.Context,
	scanID string,
	agentID string,
	next string,
	size int,
	filters *ListScanAgentLogsFilters,
) ([]AgentLogSummarized, *string, error)

ListScanAgentLogs lists reasoning logs for a scan agent.

type AgentSummarized added in v1.8.1

type AgentSummarized struct {
	ID          string   `json:"id"`
	Title       string   `json:"title"`
	Status      string   `json:"status"`
	ParentID    *string  `json:"parentId"`
	HasChildren bool     `json:"hasChildren"`
	Duration    *float64 `json:"duration"`
	IssuesCount int      `json:"issuesCount"`
}

AgentSummarized is a lightweight AI pentest agent row.

func ListScanAgents added in v1.8.1

func ListScanAgents(
	ctx context.Context,
	scanID string,
	next string,
	size int,
	filters *ListScanAgentsFilters,
) ([]AgentSummarized, *string, error)

ListScanAgents lists AI pentest agents for a scan.

type IssueFunnelStep added in v1.1.0

type IssueFunnelStep struct {
	Category string  `json:"category"`
	Step     string  `json:"step"`
	Count    float32 `json:"count"`
}

IssueFunnelStep is a stable CLI DTO for the issue funnel endpoint.

func GetIssueFunnel added in v1.1.0

func GetIssueFunnel(ctx context.Context, projectIDs []string) ([]IssueFunnelStep, error)

GetIssueFunnel returns the issue funnel breakdown

type IssueTrendPoint added in v1.1.0

type IssueTrendPoint struct {
	Date   string  `json:"date"`
	HIGH   float32 `json:"HIGH"`
	MEDIUM float32 `json:"MEDIUM"`
	LOW    float32 `json:"LOW"`
	INFO   float32 `json:"INFO"`
}

IssueTrendPoint is a stable CLI DTO for the issue trends endpoint.

func GetIssueTrends added in v1.1.0

func GetIssueTrends(ctx context.Context, after, before, interval string, applicationIDs, projectIDs []string) ([]IssueTrendPoint, error)

GetIssueTrends returns severity trends over time

type ListAssetsFilters added in v0.3.2

type ListAssetsFilters struct {
	AssetTypes      []string
	AssetStatuses   []string
	ProjectIDs      []string
	Search          string
	ManuallyCreated bool
	SortType        string
	SortDirection   string
}

ListAssetsFilters holds optional filters for listing assets

type ListAuditLogsFilters added in v0.3.2

type ListAuditLogsFilters struct {
	DateFrom      string
	DateTo        string
	ActionType    string
	Actor         string
	Search        string
	SortType      string
	SortDirection string
	Size          int
}

ListAuditLogsFilters holds optional filters for listing audit logs

type ListEventsFilters added in v0.3.2

type ListEventsFilters struct {
	Search         string
	ProfileIDs     []string
	ScanIDs        []string
	AssetIDs       []string
	IssueIDs       []string
	Levels         []string
	Stages         []string
	HasAttachments bool
	Attachments    []string
	SortType       string
	SortDirection  string
}

ListEventsFilters holds optional filters for listing events

type ListInboxEmailsFilters added in v1.2.0

type ListInboxEmailsFilters struct {
	Email  string
	IDs    []string
	Before *time.Time
	After  *time.Time
	Size   int
}

ListInboxEmailsFilters holds the supported inbox email list filters.

type ListIntegrationsFilters added in v1.1.0

type ListIntegrationsFilters struct {
	ProjectIDs  []string
	IDs         []string
	LocationIDs []string
	Search      string
}

ListIntegrationsFilters holds optional filters for listing integrations.

type ListIssuesFilters added in v0.3.0

type ListIssuesFilters struct {
	Status       []string
	Severities   []string
	ProfileIDs   []string
	AssetIDs     []string
	Domains      []string
	IssueIDs     []string
	ScanIDs      []string
	TagsIDs      []string
	Search       string
	JiraTicket   string
	Risks        []string
	AssetClasses []string
	ScannerKinds []string
	Names        []string
}

ListIssuesFilters holds optional filters for listing issues

type ListKubernetesIntegrationsFilters added in v0.6.3

type ListKubernetesIntegrationsFilters struct {
	ProjectIDs  []string
	LocationIDs string
	Search      string
}

ListKubernetesIntegrationsFilters holds optional filters for listing Kubernetes integrations

type ListLocationsFilters added in v0.3.2

type ListLocationsFilters struct {
	Search        string
	Enabled       bool
	LocationTypes []string
	SortType      string
	SortDirection string
}

ListLocationsFilters holds optional filters for listing locations

type ListProblemsFilters added in v0.5.0

type ListProblemsFilters struct {
	AssetIDs   []string
	Domains    []string
	IssueIDs   []string
	TagsIDs    []string
	Search     string
	Initiators []string
	Kinds      []string
	Risks      []string
}

ListProblemsFilters holds optional filters for listing problems

type ListProfilesFilters added in v0.3.2

type ListProfilesFilters struct {
	AssetIDs      []string
	Domains       []string
	IssueIDs      []string
	TagsIDs       []string
	Search        string
	Initiators    []string
	Kinds         []string
	Risks         []string
	SortType      string
	SortDirection string
}

ListProfilesFilters holds optional filters for listing profiles

type ListProjectsFilters added in v1.1.0

type ListProjectsFilters struct {
	Search string
}

ListProjectsFilters holds optional filters for listing projects

type ListRetestsFilters

type ListRetestsFilters struct {
	ProfileIDs    []string
	SortType      string
	SortDirection string
}

ListRetestsFilters holds optional filters for listing retests.

type ListScanAgentLogsFilters added in v1.8.1

type ListScanAgentLogsFilters struct {
	Search        string
	Stages        []string
	SortType      string
	SortDirection string
}

ListScanAgentLogsFilters holds optional filters for listing agent logs.

type ListScanAgentsFilters added in v1.8.1

type ListScanAgentsFilters struct {
	Search        string
	EventSearch   string
	RootsOnly     bool
	SortType      string
	SortDirection string
}

ListScanAgentsFilters holds optional filters for listing scan agents.

type ListScanProblemsFilters added in v1.3.6

type ListScanProblemsFilters struct {
	After         string
	Before        string
	AssetIDs      []string
	ProfileIDs    []string
	ProjectIDs    []string
	Ignored       string
	Initiator     []string
	Kinds         []string
	Status        []string
	SortType      string
	SortDirection string
}

ListScanProblemsFilters holds optional filters for listing scan problems

type ListScansFilters added in v0.3.2

type ListScansFilters struct {
	After         string
	Before        string
	AssetIDs      *[]string
	ProfileIDs    *[]string
	ProjectIDs    *[]string
	Ignored       string
	Initiator     *[]string
	Kinds         *[]string
	Status        *[]string
	SortType      string
	SortDirection string
}

ListScansFilters holds optional filters for listing scans

type ListWorkflowsFilters added in v1.1.0

type ListWorkflowsFilters struct {
	Triggers       []string
	Search         string
	ProjectIDs     []string
	IntegrationIDs []string
	WorkflowIDs    []string
}

ListWorkflowsFilters holds optional filters for listing workflows

Jump to

Keyboard shortcuts

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