MCPcopy Index your code
hub / github.com/coder/coder / AsError

Function AsError

codersdk/client.go:639–642  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

637}
638
639func AsError(err error) (*Error, bool) {
640 var e *Error
641 return e, xerrors.As(err, &e)
642}
643
644// RequestOption is a function that can be used to modify an http.Request.
645type RequestOption func(*http.Request)

Callers 15

TestUpdateWorkspaceACLFunction · 0.92
startMethod · 0.92
templateCreateMethod · 0.92
restartMethod · 0.92
templateEditMethod · 0.92
TestTemplateEditFunction · 0.92

Calls 1

AsMethod · 0.80

Tested by 15

TestUpdateWorkspaceACLFunction · 0.74
TestTemplateEditFunction · 0.74
TestCreateWorkspaceFunction · 0.74
TestCreateUserWorkspaceFunction · 0.74
TestWorkspaceAutobuildFunction · 0.74
TestUpdateWorkspaceACLFunction · 0.74
TestCreateGroupFunction · 0.74
TestPatchGroupFunction · 0.74
TestGroupFunction · 0.74