chains

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ExecuteEndpointChainsV2URI = "/api/v2/chains"

ExecuteEndpointChainsV2URI is the base endpoint for the endpoint chains API

View Source
const ListEndpointChainsV2URI = "/api/v2/content/chains"

ListEndpointChainsV2URI is the base endpoint for the endpoint chains API

Variables

Functions

func ExecuteEndpointChain

func ExecuteEndpointChain(ctx context.Context, h *api.HTTPAPI, chainID string, attackRun models.AttackRun) (models.GetExecutionResponse, error)

ExecuteEndpointChain executes an endpoint attack chain by chain ID on specified assets

Types

type ListEndpointChainOpts added in v1.2.0

type ListEndpointChainOpts struct {
	Size             int       `json:"size"`
	Offset           int       `json:"offset"`
	Order            []string  `json:"order"`
	StartReleaseDate time.Time `json:"start_release_date,omitempty"`
	EndReleaseDate   time.Time `json:"end_release_date,omitempty"`
	StartLastRunAt   time.Time `json:"start_last_run_at,omitempty"`
	EndLastRunAt     time.Time `json:"end_last_run_at,omitempty"`
	ID               string    `json:"id,omitempty"`
	Name             string    `json:"name,omitempty"`
	Platform         []string  `json:"platform,omitempty"`
	Elevated         *bool     `json:"elevated,omitempty"`
	ShowDeprecated   *bool     `json:"show_deprecated,omitempty"`
}

type ListEndpointChainOrderBy added in v1.2.0

type ListEndpointChainOrderBy string
const (
	ListEndpointChainOrderbyReleaseDate ListEndpointChainOrderBy = "release_date"
	ListEndpointChainOrderbyName        ListEndpointChainOrderBy = "name"
	ListEndpointChainOrderbyID          ListEndpointChainOrderBy = "id"
	ListEndpointChainOrderbyLastRunAt   ListEndpointChainOrderBy = "last_run_at"
)

Jump to

Keyboard shortcuts

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