Documentation
¶
Index ¶
- Constants
- Variables
- func ExecuteEndpointChain(ctx context.Context, h *api.HTTPAPI, chainID string, ...) (models.GetExecutionResponse, error)
- func ListEndpointChains(ctx context.Context, h *api.HTTPAPI, opts ListEndpointChainOpts) (models.PaginationResponse[chains.ChainForUserState], error)
- type ListEndpointChainOpts
- type ListEndpointChainOrderBy
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 ¶
View Source
var ValidListEndpointChainOrder = []ListEndpointChainOrderBy{ ListEndpointChainOrderbyReleaseDate, ListEndpointChainOrderbyName, ListEndpointChainOrderbyID, ListEndpointChainOrderbyLastRunAt, }
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
func ListEndpointChains ¶ added in v1.2.0
func ListEndpointChains(ctx context.Context, h *api.HTTPAPI, opts ListEndpointChainOpts) (models.PaginationResponse[chains.ChainForUserState], error)
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" )
Click to show internal directories.
Click to hide internal directories.