-
Notifications
You must be signed in to change notification settings - Fork 6
/
interface.go
795 lines (667 loc) · 33.8 KB
/
interface.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
package db
import (
"context"
"github.com/Clever/wag/samples/gen-go-db/models"
"github.com/go-openapi/strfmt"
"golang.org/x/time/rate"
)
//go:generate mockgen -source=$GOFILE -destination=mock_db.go -package=db
// Interface for interacting with the swagger-test database.
type Interface interface {
// SaveDeployment saves a Deployment to the database.
SaveDeployment(ctx context.Context, m models.Deployment) error
// GetDeployment retrieves a Deployment from the database.
GetDeployment(ctx context.Context, environment string, application string, version string) (*models.Deployment, error)
// GetDeploymentsByEnvAppAndVersion retrieves a page of Deployments from the database.
GetDeploymentsByEnvAppAndVersion(ctx context.Context, input GetDeploymentsByEnvAppAndVersionInput, fn func(m *models.Deployment, lastDeployment bool) bool) error
// DeleteDeployment deletes a Deployment from the database.
DeleteDeployment(ctx context.Context, environment string, application string, version string) error
// GetDeploymentsByEnvAppAndDate retrieves a page of Deployments from the database.
GetDeploymentsByEnvAppAndDate(ctx context.Context, input GetDeploymentsByEnvAppAndDateInput, fn func(m *models.Deployment, lastDeployment bool) bool) error
// GetDeploymentsByEnvironmentAndDate retrieves a page of Deployments from the database.
GetDeploymentsByEnvironmentAndDate(ctx context.Context, input GetDeploymentsByEnvironmentAndDateInput, fn func(m *models.Deployment, lastDeployment bool) bool) error
// GetDeploymentByVersion retrieves a Deployment from the database.
GetDeploymentByVersion(ctx context.Context, version string) (*models.Deployment, error)
// SaveNoRangeThingWithCompositeAttributes saves a NoRangeThingWithCompositeAttributes to the database.
SaveNoRangeThingWithCompositeAttributes(ctx context.Context, m models.NoRangeThingWithCompositeAttributes) error
// GetNoRangeThingWithCompositeAttributes retrieves a NoRangeThingWithCompositeAttributes from the database.
GetNoRangeThingWithCompositeAttributes(ctx context.Context, name string, branch string) (*models.NoRangeThingWithCompositeAttributes, error)
// DeleteNoRangeThingWithCompositeAttributes deletes a NoRangeThingWithCompositeAttributes from the database.
DeleteNoRangeThingWithCompositeAttributes(ctx context.Context, name string, branch string) error
// GetNoRangeThingWithCompositeAttributessByNameVersionAndDate retrieves a page of NoRangeThingWithCompositeAttributess from the database.
GetNoRangeThingWithCompositeAttributessByNameVersionAndDate(ctx context.Context, input GetNoRangeThingWithCompositeAttributessByNameVersionAndDateInput, fn func(m *models.NoRangeThingWithCompositeAttributes, lastNoRangeThingWithCompositeAttributes bool) bool) error
// SaveSimpleThing saves a SimpleThing to the database.
SaveSimpleThing(ctx context.Context, m models.SimpleThing) error
// GetSimpleThing retrieves a SimpleThing from the database.
GetSimpleThing(ctx context.Context, name string) (*models.SimpleThing, error)
// DeleteSimpleThing deletes a SimpleThing from the database.
DeleteSimpleThing(ctx context.Context, name string) error
// SaveTeacherSharingRule saves a TeacherSharingRule to the database.
SaveTeacherSharingRule(ctx context.Context, m models.TeacherSharingRule) error
// GetTeacherSharingRule retrieves a TeacherSharingRule from the database.
GetTeacherSharingRule(ctx context.Context, teacher string, school string, app string) (*models.TeacherSharingRule, error)
// GetTeacherSharingRulesByTeacherAndSchoolApp retrieves a page of TeacherSharingRules from the database.
GetTeacherSharingRulesByTeacherAndSchoolApp(ctx context.Context, input GetTeacherSharingRulesByTeacherAndSchoolAppInput, fn func(m *models.TeacherSharingRule, lastTeacherSharingRule bool) bool) error
// DeleteTeacherSharingRule deletes a TeacherSharingRule from the database.
DeleteTeacherSharingRule(ctx context.Context, teacher string, school string, app string) error
// GetTeacherSharingRulesByDistrictAndSchoolTeacherApp retrieves a page of TeacherSharingRules from the database.
GetTeacherSharingRulesByDistrictAndSchoolTeacherApp(ctx context.Context, input GetTeacherSharingRulesByDistrictAndSchoolTeacherAppInput, fn func(m *models.TeacherSharingRule, lastTeacherSharingRule bool) bool) error
// SaveThing saves a Thing to the database.
SaveThing(ctx context.Context, m models.Thing) error
// GetThing retrieves a Thing from the database.
GetThing(ctx context.Context, name string, version int64) (*models.Thing, error)
// ScanThings runs a scan on the Things table.
ScanThings(ctx context.Context, input ScanThingsInput, fn func(m *models.Thing, lastThing bool) bool) error
// GetThingsByNameAndVersion retrieves a page of Things from the database.
GetThingsByNameAndVersion(ctx context.Context, input GetThingsByNameAndVersionInput, fn func(m *models.Thing, lastThing bool) bool) error
// DeleteThing deletes a Thing from the database.
DeleteThing(ctx context.Context, name string, version int64) error
// GetThingByID retrieves a Thing from the database.
GetThingByID(ctx context.Context, id string) (*models.Thing, error)
// GetThingsByNameAndCreatedAt retrieves a page of Things from the database.
GetThingsByNameAndCreatedAt(ctx context.Context, input GetThingsByNameAndCreatedAtInput, fn func(m *models.Thing, lastThing bool) bool) error
// SaveThingWithCompositeAttributes saves a ThingWithCompositeAttributes to the database.
SaveThingWithCompositeAttributes(ctx context.Context, m models.ThingWithCompositeAttributes) error
// GetThingWithCompositeAttributes retrieves a ThingWithCompositeAttributes from the database.
GetThingWithCompositeAttributes(ctx context.Context, name string, branch string, date strfmt.DateTime) (*models.ThingWithCompositeAttributes, error)
// GetThingWithCompositeAttributessByNameBranchAndDate retrieves a page of ThingWithCompositeAttributess from the database.
GetThingWithCompositeAttributessByNameBranchAndDate(ctx context.Context, input GetThingWithCompositeAttributessByNameBranchAndDateInput, fn func(m *models.ThingWithCompositeAttributes, lastThingWithCompositeAttributes bool) bool) error
// DeleteThingWithCompositeAttributes deletes a ThingWithCompositeAttributes from the database.
DeleteThingWithCompositeAttributes(ctx context.Context, name string, branch string, date strfmt.DateTime) error
// GetThingWithCompositeAttributessByNameVersionAndDate retrieves a page of ThingWithCompositeAttributess from the database.
GetThingWithCompositeAttributessByNameVersionAndDate(ctx context.Context, input GetThingWithCompositeAttributessByNameVersionAndDateInput, fn func(m *models.ThingWithCompositeAttributes, lastThingWithCompositeAttributes bool) bool) error
// SaveThingWithCompositeEnumAttributes saves a ThingWithCompositeEnumAttributes to the database.
SaveThingWithCompositeEnumAttributes(ctx context.Context, m models.ThingWithCompositeEnumAttributes) error
// GetThingWithCompositeEnumAttributes retrieves a ThingWithCompositeEnumAttributes from the database.
GetThingWithCompositeEnumAttributes(ctx context.Context, name string, branchID models.Branch, date strfmt.DateTime) (*models.ThingWithCompositeEnumAttributes, error)
// GetThingWithCompositeEnumAttributessByNameBranchAndDate retrieves a page of ThingWithCompositeEnumAttributess from the database.
GetThingWithCompositeEnumAttributessByNameBranchAndDate(ctx context.Context, input GetThingWithCompositeEnumAttributessByNameBranchAndDateInput, fn func(m *models.ThingWithCompositeEnumAttributes, lastThingWithCompositeEnumAttributes bool) bool) error
// DeleteThingWithCompositeEnumAttributes deletes a ThingWithCompositeEnumAttributes from the database.
DeleteThingWithCompositeEnumAttributes(ctx context.Context, name string, branchID models.Branch, date strfmt.DateTime) error
// SaveThingWithDateRange saves a ThingWithDateRange to the database.
SaveThingWithDateRange(ctx context.Context, m models.ThingWithDateRange) error
// GetThingWithDateRange retrieves a ThingWithDateRange from the database.
GetThingWithDateRange(ctx context.Context, name string, date strfmt.DateTime) (*models.ThingWithDateRange, error)
// GetThingWithDateRangesByNameAndDate retrieves a page of ThingWithDateRanges from the database.
GetThingWithDateRangesByNameAndDate(ctx context.Context, input GetThingWithDateRangesByNameAndDateInput, fn func(m *models.ThingWithDateRange, lastThingWithDateRange bool) bool) error
// DeleteThingWithDateRange deletes a ThingWithDateRange from the database.
DeleteThingWithDateRange(ctx context.Context, name string, date strfmt.DateTime) error
// SaveThingWithDateTimeComposite saves a ThingWithDateTimeComposite to the database.
SaveThingWithDateTimeComposite(ctx context.Context, m models.ThingWithDateTimeComposite) error
// GetThingWithDateTimeComposite retrieves a ThingWithDateTimeComposite from the database.
GetThingWithDateTimeComposite(ctx context.Context, typeVar string, id string, created strfmt.DateTime, resource string) (*models.ThingWithDateTimeComposite, error)
// GetThingWithDateTimeCompositesByTypeIDAndCreatedResource retrieves a page of ThingWithDateTimeComposites from the database.
GetThingWithDateTimeCompositesByTypeIDAndCreatedResource(ctx context.Context, input GetThingWithDateTimeCompositesByTypeIDAndCreatedResourceInput, fn func(m *models.ThingWithDateTimeComposite, lastThingWithDateTimeComposite bool) bool) error
// DeleteThingWithDateTimeComposite deletes a ThingWithDateTimeComposite from the database.
DeleteThingWithDateTimeComposite(ctx context.Context, typeVar string, id string, created strfmt.DateTime, resource string) error
// SaveThingWithMatchingKeys saves a ThingWithMatchingKeys to the database.
SaveThingWithMatchingKeys(ctx context.Context, m models.ThingWithMatchingKeys) error
// GetThingWithMatchingKeys retrieves a ThingWithMatchingKeys from the database.
GetThingWithMatchingKeys(ctx context.Context, bear string, assocType string, assocID string) (*models.ThingWithMatchingKeys, error)
// GetThingWithMatchingKeyssByBearAndAssocTypeID retrieves a page of ThingWithMatchingKeyss from the database.
GetThingWithMatchingKeyssByBearAndAssocTypeID(ctx context.Context, input GetThingWithMatchingKeyssByBearAndAssocTypeIDInput, fn func(m *models.ThingWithMatchingKeys, lastThingWithMatchingKeys bool) bool) error
// DeleteThingWithMatchingKeys deletes a ThingWithMatchingKeys from the database.
DeleteThingWithMatchingKeys(ctx context.Context, bear string, assocType string, assocID string) error
// GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear retrieves a page of ThingWithMatchingKeyss from the database.
GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear(ctx context.Context, input GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBearInput, fn func(m *models.ThingWithMatchingKeys, lastThingWithMatchingKeys bool) bool) error
// SaveThingWithRequiredFields saves a ThingWithRequiredFields to the database.
SaveThingWithRequiredFields(ctx context.Context, m models.ThingWithRequiredFields) error
// GetThingWithRequiredFields retrieves a ThingWithRequiredFields from the database.
GetThingWithRequiredFields(ctx context.Context, name string) (*models.ThingWithRequiredFields, error)
// DeleteThingWithRequiredFields deletes a ThingWithRequiredFields from the database.
DeleteThingWithRequiredFields(ctx context.Context, name string) error
// SaveThingWithRequiredFields2 saves a ThingWithRequiredFields2 to the database.
SaveThingWithRequiredFields2(ctx context.Context, m models.ThingWithRequiredFields2) error
// GetThingWithRequiredFields2 retrieves a ThingWithRequiredFields2 from the database.
GetThingWithRequiredFields2(ctx context.Context, name string, id string) (*models.ThingWithRequiredFields2, error)
// GetThingWithRequiredFields2sByNameAndID retrieves a page of ThingWithRequiredFields2s from the database.
GetThingWithRequiredFields2sByNameAndID(ctx context.Context, input GetThingWithRequiredFields2sByNameAndIDInput, fn func(m *models.ThingWithRequiredFields2, lastThingWithRequiredFields2 bool) bool) error
// DeleteThingWithRequiredFields2 deletes a ThingWithRequiredFields2 from the database.
DeleteThingWithRequiredFields2(ctx context.Context, name string, id string) error
// SaveThingWithUnderscores saves a ThingWithUnderscores to the database.
SaveThingWithUnderscores(ctx context.Context, m models.ThingWithUnderscores) error
// GetThingWithUnderscores retrieves a ThingWithUnderscores from the database.
GetThingWithUnderscores(ctx context.Context, iDApp string) (*models.ThingWithUnderscores, error)
// DeleteThingWithUnderscores deletes a ThingWithUnderscores from the database.
DeleteThingWithUnderscores(ctx context.Context, iDApp string) error
}
// Int64 returns a pointer to the int64 value passed in.
func Int64(i int64) *int64 { return &i }
// String returns a pointer to the string value passed in.
func String(s string) *string { return &s }
// DateTime returns a pointer to the strfmt.DateTime value passed in.
func DateTime(d strfmt.DateTime) *strfmt.DateTime { return &d }
// GetDeploymentsByEnvAppAndVersionInput is the query input to GetDeploymentsByEnvAppAndVersion.
type GetDeploymentsByEnvAppAndVersionInput struct {
// Environment is required
Environment string
// Application is required
Application string
VersionStartingAt *string
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.Deployment
Descending bool
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrDeploymentNotFound is returned when the database fails to find a Deployment.
type ErrDeploymentNotFound struct {
Environment string
Application string
Version string
}
var _ error = ErrDeploymentNotFound{}
// Error returns a description of the error.
func (e ErrDeploymentNotFound) Error() string {
return "could not find Deployment"
}
// GetDeploymentsByEnvAppAndDateInput is the query input to GetDeploymentsByEnvAppAndDate.
type GetDeploymentsByEnvAppAndDateInput struct {
// Environment is required
Environment string
// Application is required
Application string
DateStartingAt *strfmt.DateTime
StartingAfter *models.Deployment
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrDeploymentByEnvAppAndDateNotFound is returned when the database fails to find a Deployment.
type ErrDeploymentByEnvAppAndDateNotFound struct {
Environment string
Application string
Date strfmt.DateTime
}
var _ error = ErrDeploymentByEnvAppAndDateNotFound{}
// Error returns a description of the error.
func (e ErrDeploymentByEnvAppAndDateNotFound) Error() string {
return "could not find Deployment"
}
// GetDeploymentsByEnvironmentAndDateInput is the query input to GetDeploymentsByEnvironmentAndDate.
type GetDeploymentsByEnvironmentAndDateInput struct {
// Environment is required
Environment string
DateStartingAt *strfmt.DateTime
StartingAfter *models.Deployment
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrDeploymentByEnvironmentAndDateNotFound is returned when the database fails to find a Deployment.
type ErrDeploymentByEnvironmentAndDateNotFound struct {
Environment string
Date strfmt.DateTime
}
var _ error = ErrDeploymentByEnvironmentAndDateNotFound{}
// Error returns a description of the error.
func (e ErrDeploymentByEnvironmentAndDateNotFound) Error() string {
return "could not find Deployment"
}
// ErrDeploymentByVersionNotFound is returned when the database fails to find a Deployment.
type ErrDeploymentByVersionNotFound struct {
Version string
}
var _ error = ErrDeploymentByVersionNotFound{}
// Error returns a description of the error.
func (e ErrDeploymentByVersionNotFound) Error() string {
return "could not find Deployment"
}
// ErrNoRangeThingWithCompositeAttributesNotFound is returned when the database fails to find a NoRangeThingWithCompositeAttributes.
type ErrNoRangeThingWithCompositeAttributesNotFound struct {
Name string
Branch string
}
var _ error = ErrNoRangeThingWithCompositeAttributesNotFound{}
// Error returns a description of the error.
func (e ErrNoRangeThingWithCompositeAttributesNotFound) Error() string {
return "could not find NoRangeThingWithCompositeAttributes"
}
// GetNoRangeThingWithCompositeAttributessByNameVersionAndDateInput is the query input to GetNoRangeThingWithCompositeAttributessByNameVersionAndDate.
type GetNoRangeThingWithCompositeAttributessByNameVersionAndDateInput struct {
// Name is required
Name string
// Version is required
Version int64
DateStartingAt *strfmt.DateTime
StartingAfter *models.NoRangeThingWithCompositeAttributes
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrNoRangeThingWithCompositeAttributesByNameVersionAndDateNotFound is returned when the database fails to find a NoRangeThingWithCompositeAttributes.
type ErrNoRangeThingWithCompositeAttributesByNameVersionAndDateNotFound struct {
Name string
Version int64
Date strfmt.DateTime
}
var _ error = ErrNoRangeThingWithCompositeAttributesByNameVersionAndDateNotFound{}
// Error returns a description of the error.
func (e ErrNoRangeThingWithCompositeAttributesByNameVersionAndDateNotFound) Error() string {
return "could not find NoRangeThingWithCompositeAttributes"
}
// ErrNoRangeThingWithCompositeAttributesAlreadyExists is returned when trying to overwrite a NoRangeThingWithCompositeAttributes.
type ErrNoRangeThingWithCompositeAttributesAlreadyExists struct {
NameBranch string
}
var _ error = ErrNoRangeThingWithCompositeAttributesAlreadyExists{}
// Error returns a description of the error.
func (e ErrNoRangeThingWithCompositeAttributesAlreadyExists) Error() string {
return "NoRangeThingWithCompositeAttributes already exists"
}
// ErrSimpleThingNotFound is returned when the database fails to find a SimpleThing.
type ErrSimpleThingNotFound struct {
Name string
}
var _ error = ErrSimpleThingNotFound{}
// Error returns a description of the error.
func (e ErrSimpleThingNotFound) Error() string {
return "could not find SimpleThing"
}
// ErrSimpleThingAlreadyExists is returned when trying to overwrite a SimpleThing.
type ErrSimpleThingAlreadyExists struct {
Name string
}
var _ error = ErrSimpleThingAlreadyExists{}
// Error returns a description of the error.
func (e ErrSimpleThingAlreadyExists) Error() string {
return "SimpleThing already exists"
}
// GetTeacherSharingRulesByTeacherAndSchoolAppInput is the query input to GetTeacherSharingRulesByTeacherAndSchoolApp.
type GetTeacherSharingRulesByTeacherAndSchoolAppInput struct {
// Teacher is required
Teacher string
StartingAt *SchoolApp
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.TeacherSharingRule
Descending bool
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// SchoolApp struct.
type SchoolApp struct {
School string
App string
}
// ErrTeacherSharingRuleNotFound is returned when the database fails to find a TeacherSharingRule.
type ErrTeacherSharingRuleNotFound struct {
Teacher string
School string
App string
}
var _ error = ErrTeacherSharingRuleNotFound{}
// Error returns a description of the error.
func (e ErrTeacherSharingRuleNotFound) Error() string {
return "could not find TeacherSharingRule"
}
// GetTeacherSharingRulesByDistrictAndSchoolTeacherAppInput is the query input to GetTeacherSharingRulesByDistrictAndSchoolTeacherApp.
type GetTeacherSharingRulesByDistrictAndSchoolTeacherAppInput struct {
// District is required
District string
StartingAt *SchoolTeacherApp
StartingAfter *models.TeacherSharingRule
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// SchoolTeacherApp struct.
type SchoolTeacherApp struct {
School string
Teacher string
App string
}
// ErrTeacherSharingRuleByDistrictAndSchoolTeacherAppNotFound is returned when the database fails to find a TeacherSharingRule.
type ErrTeacherSharingRuleByDistrictAndSchoolTeacherAppNotFound struct {
District string
School string
Teacher string
App string
}
var _ error = ErrTeacherSharingRuleByDistrictAndSchoolTeacherAppNotFound{}
// Error returns a description of the error.
func (e ErrTeacherSharingRuleByDistrictAndSchoolTeacherAppNotFound) Error() string {
return "could not find TeacherSharingRule"
}
// ScanThingsInput is the input to the ScanThings method.
type ScanThingsInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.Thing
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// GetThingsByNameAndVersionInput is the query input to GetThingsByNameAndVersion.
type GetThingsByNameAndVersionInput struct {
// Name is required
Name string
VersionStartingAt *int64
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.Thing
Descending bool
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrThingNotFound is returned when the database fails to find a Thing.
type ErrThingNotFound struct {
Name string
Version int64
}
var _ error = ErrThingNotFound{}
// Error returns a description of the error.
func (e ErrThingNotFound) Error() string {
return "could not find Thing"
}
// ErrThingByIDNotFound is returned when the database fails to find a Thing.
type ErrThingByIDNotFound struct {
ID string
}
var _ error = ErrThingByIDNotFound{}
// Error returns a description of the error.
func (e ErrThingByIDNotFound) Error() string {
return "could not find Thing"
}
// GetThingsByNameAndCreatedAtInput is the query input to GetThingsByNameAndCreatedAt.
type GetThingsByNameAndCreatedAtInput struct {
// Name is required
Name string
CreatedAtStartingAt *strfmt.DateTime
StartingAfter *models.Thing
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrThingByNameAndCreatedAtNotFound is returned when the database fails to find a Thing.
type ErrThingByNameAndCreatedAtNotFound struct {
Name string
CreatedAt strfmt.DateTime
}
var _ error = ErrThingByNameAndCreatedAtNotFound{}
// Error returns a description of the error.
func (e ErrThingByNameAndCreatedAtNotFound) Error() string {
return "could not find Thing"
}
// ErrThingAlreadyExists is returned when trying to overwrite a Thing.
type ErrThingAlreadyExists struct {
Name string
Version int64
}
var _ error = ErrThingAlreadyExists{}
// Error returns a description of the error.
func (e ErrThingAlreadyExists) Error() string {
return "Thing already exists"
}
// GetThingWithCompositeAttributessByNameBranchAndDateInput is the query input to GetThingWithCompositeAttributessByNameBranchAndDate.
type GetThingWithCompositeAttributessByNameBranchAndDateInput struct {
// Name is required
Name string
// Branch is required
Branch string
DateStartingAt *strfmt.DateTime
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.ThingWithCompositeAttributes
Descending bool
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrThingWithCompositeAttributesNotFound is returned when the database fails to find a ThingWithCompositeAttributes.
type ErrThingWithCompositeAttributesNotFound struct {
Name string
Branch string
Date strfmt.DateTime
}
var _ error = ErrThingWithCompositeAttributesNotFound{}
// Error returns a description of the error.
func (e ErrThingWithCompositeAttributesNotFound) Error() string {
return "could not find ThingWithCompositeAttributes"
}
// GetThingWithCompositeAttributessByNameVersionAndDateInput is the query input to GetThingWithCompositeAttributessByNameVersionAndDate.
type GetThingWithCompositeAttributessByNameVersionAndDateInput struct {
// Name is required
Name string
// Version is required
Version int64
DateStartingAt *strfmt.DateTime
StartingAfter *models.ThingWithCompositeAttributes
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrThingWithCompositeAttributesByNameVersionAndDateNotFound is returned when the database fails to find a ThingWithCompositeAttributes.
type ErrThingWithCompositeAttributesByNameVersionAndDateNotFound struct {
Name string
Version int64
Date strfmt.DateTime
}
var _ error = ErrThingWithCompositeAttributesByNameVersionAndDateNotFound{}
// Error returns a description of the error.
func (e ErrThingWithCompositeAttributesByNameVersionAndDateNotFound) Error() string {
return "could not find ThingWithCompositeAttributes"
}
// ErrThingWithCompositeAttributesAlreadyExists is returned when trying to overwrite a ThingWithCompositeAttributes.
type ErrThingWithCompositeAttributesAlreadyExists struct {
NameBranch string
Date strfmt.DateTime
}
var _ error = ErrThingWithCompositeAttributesAlreadyExists{}
// Error returns a description of the error.
func (e ErrThingWithCompositeAttributesAlreadyExists) Error() string {
return "ThingWithCompositeAttributes already exists"
}
// GetThingWithCompositeEnumAttributessByNameBranchAndDateInput is the query input to GetThingWithCompositeEnumAttributessByNameBranchAndDate.
type GetThingWithCompositeEnumAttributessByNameBranchAndDateInput struct {
// Name is required
Name string
// BranchID is required
BranchID models.Branch
DateStartingAt *strfmt.DateTime
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.ThingWithCompositeEnumAttributes
Descending bool
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrThingWithCompositeEnumAttributesNotFound is returned when the database fails to find a ThingWithCompositeEnumAttributes.
type ErrThingWithCompositeEnumAttributesNotFound struct {
Name string
BranchID models.Branch
Date strfmt.DateTime
}
var _ error = ErrThingWithCompositeEnumAttributesNotFound{}
// Error returns a description of the error.
func (e ErrThingWithCompositeEnumAttributesNotFound) Error() string {
return "could not find ThingWithCompositeEnumAttributes"
}
// ErrThingWithCompositeEnumAttributesAlreadyExists is returned when trying to overwrite a ThingWithCompositeEnumAttributes.
type ErrThingWithCompositeEnumAttributesAlreadyExists struct {
NameBranch string
Date strfmt.DateTime
}
var _ error = ErrThingWithCompositeEnumAttributesAlreadyExists{}
// Error returns a description of the error.
func (e ErrThingWithCompositeEnumAttributesAlreadyExists) Error() string {
return "ThingWithCompositeEnumAttributes already exists"
}
// GetThingWithDateRangesByNameAndDateInput is the query input to GetThingWithDateRangesByNameAndDate.
type GetThingWithDateRangesByNameAndDateInput struct {
// Name is required
Name string
DateStartingAt *strfmt.DateTime
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.ThingWithDateRange
Descending bool
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrThingWithDateRangeNotFound is returned when the database fails to find a ThingWithDateRange.
type ErrThingWithDateRangeNotFound struct {
Name string
Date strfmt.DateTime
}
var _ error = ErrThingWithDateRangeNotFound{}
// Error returns a description of the error.
func (e ErrThingWithDateRangeNotFound) Error() string {
return "could not find ThingWithDateRange"
}
// GetThingWithDateTimeCompositesByTypeIDAndCreatedResourceInput is the query input to GetThingWithDateTimeCompositesByTypeIDAndCreatedResource.
type GetThingWithDateTimeCompositesByTypeIDAndCreatedResourceInput struct {
// Type is required
Type string
// ID is required
ID string
StartingAt *CreatedResource
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.ThingWithDateTimeComposite
Descending bool
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// CreatedResource struct.
type CreatedResource struct {
Created strfmt.DateTime
Resource string
}
// ErrThingWithDateTimeCompositeNotFound is returned when the database fails to find a ThingWithDateTimeComposite.
type ErrThingWithDateTimeCompositeNotFound struct {
Type string
ID string
Created strfmt.DateTime
Resource string
}
var _ error = ErrThingWithDateTimeCompositeNotFound{}
// Error returns a description of the error.
func (e ErrThingWithDateTimeCompositeNotFound) Error() string {
return "could not find ThingWithDateTimeComposite"
}
// GetThingWithMatchingKeyssByBearAndAssocTypeIDInput is the query input to GetThingWithMatchingKeyssByBearAndAssocTypeID.
type GetThingWithMatchingKeyssByBearAndAssocTypeIDInput struct {
// Bear is required
Bear string
StartingAt *AssocTypeAssocID
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.ThingWithMatchingKeys
Descending bool
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// AssocTypeAssocID struct.
type AssocTypeAssocID struct {
AssocType string
AssocID string
}
// ErrThingWithMatchingKeysNotFound is returned when the database fails to find a ThingWithMatchingKeys.
type ErrThingWithMatchingKeysNotFound struct {
Bear string
AssocType string
AssocID string
}
var _ error = ErrThingWithMatchingKeysNotFound{}
// Error returns a description of the error.
func (e ErrThingWithMatchingKeysNotFound) Error() string {
return "could not find ThingWithMatchingKeys"
}
// GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBearInput is the query input to GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear.
type GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBearInput struct {
// AssocType is required
AssocType string
// AssocID is required
AssocID string
StartingAt *CreatedBear
StartingAfter *models.ThingWithMatchingKeys
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// CreatedBear struct.
type CreatedBear struct {
Created strfmt.DateTime
Bear string
}
// ErrThingWithMatchingKeysByAssocTypeIDAndCreatedBearNotFound is returned when the database fails to find a ThingWithMatchingKeys.
type ErrThingWithMatchingKeysByAssocTypeIDAndCreatedBearNotFound struct {
AssocType string
AssocID string
Created strfmt.DateTime
Bear string
}
var _ error = ErrThingWithMatchingKeysByAssocTypeIDAndCreatedBearNotFound{}
// Error returns a description of the error.
func (e ErrThingWithMatchingKeysByAssocTypeIDAndCreatedBearNotFound) Error() string {
return "could not find ThingWithMatchingKeys"
}
// ErrThingWithRequiredFieldsNotFound is returned when the database fails to find a ThingWithRequiredFields.
type ErrThingWithRequiredFieldsNotFound struct {
Name string
}
var _ error = ErrThingWithRequiredFieldsNotFound{}
// Error returns a description of the error.
func (e ErrThingWithRequiredFieldsNotFound) Error() string {
return "could not find ThingWithRequiredFields"
}
// ErrThingWithRequiredFieldsAlreadyExists is returned when trying to overwrite a ThingWithRequiredFields.
type ErrThingWithRequiredFieldsAlreadyExists struct {
Name string
}
var _ error = ErrThingWithRequiredFieldsAlreadyExists{}
// Error returns a description of the error.
func (e ErrThingWithRequiredFieldsAlreadyExists) Error() string {
return "ThingWithRequiredFields already exists"
}
// GetThingWithRequiredFields2sByNameAndIDInput is the query input to GetThingWithRequiredFields2sByNameAndID.
type GetThingWithRequiredFields2sByNameAndIDInput struct {
// Name is required
Name string
IDStartingAt *string
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.ThingWithRequiredFields2
Descending bool
// DisableConsistentRead turns off the default behavior of running a consistent read.
DisableConsistentRead bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrThingWithRequiredFields2NotFound is returned when the database fails to find a ThingWithRequiredFields2.
type ErrThingWithRequiredFields2NotFound struct {
Name string
ID string
}
var _ error = ErrThingWithRequiredFields2NotFound{}
// Error returns a description of the error.
func (e ErrThingWithRequiredFields2NotFound) Error() string {
return "could not find ThingWithRequiredFields2"
}
// ErrThingWithRequiredFields2AlreadyExists is returned when trying to overwrite a ThingWithRequiredFields2.
type ErrThingWithRequiredFields2AlreadyExists struct {
Name string
ID string
}
var _ error = ErrThingWithRequiredFields2AlreadyExists{}
// Error returns a description of the error.
func (e ErrThingWithRequiredFields2AlreadyExists) Error() string {
return "ThingWithRequiredFields2 already exists"
}
// ErrThingWithUnderscoresNotFound is returned when the database fails to find a ThingWithUnderscores.
type ErrThingWithUnderscoresNotFound struct {
IDApp string
}
var _ error = ErrThingWithUnderscoresNotFound{}
// Error returns a description of the error.
func (e ErrThingWithUnderscoresNotFound) Error() string {
return "could not find ThingWithUnderscores"
}