0c0b028a59
* core: add eval delete RPC and core functionality. * agent: add eval delete HTTP endpoint. * api: add eval delete API functionality. * cli: add eval delete command. * docs: add eval delete website documentation.
25 lines
652 B
Go
25 lines
652 B
Go
package structs
|
|
|
|
const (
|
|
// EvalDeleteRPCMethod is the RPC method for batch deleting evaluations
|
|
// using their IDs.
|
|
//
|
|
// Args: EvalDeleteRequest
|
|
// Reply: EvalDeleteResponse
|
|
EvalDeleteRPCMethod = "Eval.Delete"
|
|
)
|
|
|
|
// EvalDeleteRequest is the request object used when operators are manually
|
|
// deleting evaluations. The number of evaluation IDs within the request must
|
|
// not be greater than MaxEvalIDsPerDeleteRequest.
|
|
type EvalDeleteRequest struct {
|
|
EvalIDs []string
|
|
WriteRequest
|
|
}
|
|
|
|
// EvalDeleteResponse is the response object when one or more evaluation are
|
|
// deleted manually by an operator.
|
|
type EvalDeleteResponse struct {
|
|
WriteMeta
|
|
}
|