MCPcopy Create free account
hub / github.com/devld/go-drive / getAvailableDrives

Method getAvailableDrives

server/api_admin_drives.go:176–183  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

174}
175
176func (sdr *scriptDrivesRoute) getAvailableDrives(c *gin.Context) {
177 result, e := sdr._loadAvailableDriveScripts(c.Request.Context(), utils.ToBool(c.Query("force")))
178 if e != nil {
179 _ = c.Error(e)
180 return
181 }
182 SetResult(c, result)
183}
184
185func (sdr *scriptDrivesRoute) getInstalledDrives(c *gin.Context) {
186 scripts, e := script.ListDriveScripts(sdr.config)

Callers

nothing calls this directly

Calls 4

ToBoolFunction · 0.92
SetResultFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected