(ctx *gin.Context)
| 107 | } |
| 108 | |
| 109 | func (i *imlExportConfigController) ExportAll(ctx *gin.Context) error { |
| 110 | files, err := i.appendFiles(ctx) |
| 111 | if err != nil { |
| 112 | return err |
| 113 | } |
| 114 | buf, err := zipFile(files) |
| 115 | if err != nil { |
| 116 | |
| 117 | } |
| 118 | |
| 119 | ctx.DataFromReader(http.StatusOK, int64(buf.Len()), "application/zip", buf, map[string]string{ |
| 120 | "Content-Disposition": "attachment; filename=\"export.zip\"", |
| 121 | }) |
| 122 | return nil |
| 123 | } |
| 124 | |
| 125 | func (i *imlExportConfigController) appendFiles(ctx *gin.Context) ([]*ExportFile, error) { |
| 126 | type exportConfig struct { |
nothing calls this directly
no test coverage detected