Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DeleteSpotMeta = endpointdef.New( "DeleteSpotDetails", "/spots/{"+endpoints.ParamSpotName+"}", http.MethodDelete, http.StatusNoContent, )
DeleteSpotMeta holds the endpoint information
Functions ¶
This section is empty.
Types ¶
type DeleteSpotRequest ¶
type DeleteSpotRequest struct {
SpotName string `json:"spotName"`
}
DeleteSpotRequest is the request structure
type DeleteSpotResponse ¶
type DeleteSpotResponse struct{}
DeleteSpotResponse holds the response structure
func DeleteSpot ¶
func DeleteSpot(ctx context.Context, request DeleteSpotRequest, odsDB db.DB) (DeleteSpotResponse, *errors.ODSError)
DeleteSpot deletes a given spot endpoint is idempotent which means even the image is not deleted, we return the same response
Click to show internal directories.
Click to hide internal directories.