( ctx context.Context, client SDKForDynamicParametersSetup, orgID uuid.UUID, templateName string, provisionerTags map[string]string, numEvals int64, logger slog.Logger, )
| 137 | } |
| 138 | |
| 139 | func SetupPartitions( |
| 140 | ctx context.Context, client SDKForDynamicParametersSetup, |
| 141 | orgID uuid.UUID, templateName string, provisionerTags map[string]string, |
| 142 | numEvals int64, |
| 143 | logger slog.Logger, |
| 144 | ) ([]Partition, error) { |
| 145 | p := &partitioner{ |
| 146 | ctx: ctx, |
| 147 | client: client, |
| 148 | orgID: orgID, |
| 149 | templateName: templateName, |
| 150 | provisionerTags: provisionerTags, |
| 151 | numEvals: numEvals, |
| 152 | logger: logger, |
| 153 | clock: quartz.NewReal(), |
| 154 | } |
| 155 | return p.run() |
| 156 | } |
| 157 | |
| 158 | func (p *partitioner) run() ([]Partition, error) { |
| 159 | var ( |
no test coverage detected