Documentation ¶
Overview ¶
Package update contains the logic for updating elements in the system (cases/sequences/projects...).
Index ¶
- func CasePut(t handler.TestCaseUpdater, caseChecker id.TestExistenceChecker) http.HandlerFunc
- func InvalidIsMinor(r *http.Request, v string, cause error) errors.HandlerError
- func MemberUpdate(us middleware.UserRetriever, ps handler.ProjectAdder) http.HandlerFunc
- func NoSequenceVersions(r *http.Request, testID id.TestID) errors.HandlerError
- func ProjectPost(pa handler.ProjectAdder, pec id.ProjectExistenceChecker) http.HandlerFunc
- func ProjectRolesPut(projectAdder handler.ProjectAdder) func(w http.ResponseWriter, r *http.Request)
- func SequencePut(t handler.TestCaseGetter, tsu handler.TestSequenceUpdater, ...) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CasePut ¶
func CasePut(t handler.TestCaseUpdater, caseChecker id.TestExistenceChecker) http.HandlerFunc
CasePut handles put requests that update existing cases.
func InvalidIsMinor ¶
InvalidIsMinor returns an error describing that the client send an invalid value for isMinor.
func MemberUpdate ¶ added in v1.3.0
func MemberUpdate(us middleware.UserRetriever, ps handler.ProjectAdder) http.HandlerFunc
func NoSequenceVersions ¶
NoSequenceVersions returns an ErrorMessage describing that the test sequence doesn't have a version.
func ProjectPost ¶
func ProjectPost(pa handler.ProjectAdder, pec id.ProjectExistenceChecker) http.HandlerFunc
ProjectPost is used to update an existing project
func ProjectRolesPut ¶ added in v1.1.0
func ProjectRolesPut(projectAdder handler.ProjectAdder) func(w http.ResponseWriter, r *http.Request)
ProjectRolesPut handles the request to update the roles of a project
func SequencePut ¶
func SequencePut(t handler.TestCaseGetter, tsu handler.TestSequenceUpdater, sequenceChecker id.TestExistenceChecker) http.HandlerFunc
SequencePut handles requests that demand to update a sequence
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.