(taskCtx plugin.SubTaskContext, rawTable string)
| 54 | ) |
| 55 | |
| 56 | func CreateRawDataSubTaskArgs(taskCtx plugin.SubTaskContext, rawTable string) (*api.RawDataSubTaskArgs, *BambooOptions) { |
| 57 | data := taskCtx.GetData().(*BambooOptions) |
| 58 | filteredData := *data |
| 59 | filteredData.Options = &models.BambooOptions{} |
| 60 | *filteredData.Options = *data.Options |
| 61 | var params = models.BambooApiParams{ |
| 62 | ConnectionId: data.Options.ConnectionId, |
| 63 | PlanKey: data.Options.PlanKey, |
| 64 | } |
| 65 | rawDataSubTaskArgs := &api.RawDataSubTaskArgs{ |
| 66 | Ctx: taskCtx, |
| 67 | Params: params, |
| 68 | Table: rawTable, |
| 69 | } |
| 70 | return rawDataSubTaskArgs, &filteredData |
| 71 | } |
| 72 | |
| 73 | func GetTotalPagesFromSizeInfo(sizeInfo *models.ApiBambooSizeData, args *api.ApiCollectorArgs) (int, errors.Error) { |
| 74 | pages := sizeInfo.Size / args.PageSize |
no test coverage detected