/
interface.go
2046 lines (1770 loc) · 105 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
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package db
import (
"context"
"github.com/Clever/wag/samples/v8/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)
// ScanDeployments runs a scan on the Deployments table.
ScanDeployments(ctx context.Context, input ScanDeploymentsInput, fn func(m *models.Deployment, lastDeployment bool) bool) 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
// ScanDeploymentsByEnvAppAndDate runs a scan on the EnvAppAndDate index.
ScanDeploymentsByEnvAppAndDate(ctx context.Context, input ScanDeploymentsByEnvAppAndDateInput, 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)
// ScanDeploymentsByVersion runs a scan on the Version index.
ScanDeploymentsByVersion(ctx context.Context, input ScanDeploymentsByVersionInput, fn func(m *models.Deployment, lastDeployment bool) bool) error
// SaveEvent saves a Event to the database.
SaveEvent(ctx context.Context, m models.Event) error
// GetEvent retrieves a Event from the database.
GetEvent(ctx context.Context, pk string, sk string) (*models.Event, error)
// ScanEvents runs a scan on the Events table.
ScanEvents(ctx context.Context, input ScanEventsInput, fn func(m *models.Event, lastEvent bool) bool) error
// GetEventsByPkAndSk retrieves a page of Events from the database.
GetEventsByPkAndSk(ctx context.Context, input GetEventsByPkAndSkInput, fn func(m *models.Event, lastEvent bool) bool) error
// DeleteEvent deletes a Event from the database.
DeleteEvent(ctx context.Context, pk string, sk string) error
// GetEventsBySkAndData retrieves a page of Events from the database.
GetEventsBySkAndData(ctx context.Context, input GetEventsBySkAndDataInput, fn func(m *models.Event, lastEvent bool) bool) error
// ScanEventsBySkAndData runs a scan on the SkAndData index.
ScanEventsBySkAndData(ctx context.Context, input ScanEventsBySkAndDataInput, fn func(m *models.Event, lastEvent bool) bool) 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)
// ScanNoRangeThingWithCompositeAttributess runs a scan on the NoRangeThingWithCompositeAttributess table.
ScanNoRangeThingWithCompositeAttributess(ctx context.Context, input ScanNoRangeThingWithCompositeAttributessInput, fn func(m *models.NoRangeThingWithCompositeAttributes, lastNoRangeThingWithCompositeAttributes bool) bool) 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
// ScanNoRangeThingWithCompositeAttributessByNameVersionAndDate runs a scan on the NameVersionAndDate index.
ScanNoRangeThingWithCompositeAttributessByNameVersionAndDate(ctx context.Context, input ScanNoRangeThingWithCompositeAttributessByNameVersionAndDateInput, 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)
// ScanSimpleThings runs a scan on the SimpleThings table.
ScanSimpleThings(ctx context.Context, input ScanSimpleThingsInput, fn func(m *models.SimpleThing, lastSimpleThing bool) bool) 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)
// ScanTeacherSharingRules runs a scan on the TeacherSharingRules table.
ScanTeacherSharingRules(ctx context.Context, input ScanTeacherSharingRulesInput, fn func(m *models.TeacherSharingRule, lastTeacherSharingRule bool) bool) 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
// ScanTeacherSharingRulesByDistrictAndSchoolTeacherApp runs a scan on the DistrictAndSchoolTeacherApp index.
ScanTeacherSharingRulesByDistrictAndSchoolTeacherApp(ctx context.Context, input ScanTeacherSharingRulesByDistrictAndSchoolTeacherAppInput, 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)
// ScanThingsByID runs a scan on the ID index.
ScanThingsByID(ctx context.Context, input ScanThingsByIDInput, fn func(m *models.Thing, lastThing bool) bool) 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
// ScanThingsByNameAndCreatedAt runs a scan on the NameAndCreatedAt index.
ScanThingsByNameAndCreatedAt(ctx context.Context, input ScanThingsByNameAndCreatedAtInput, fn func(m *models.Thing, lastThing bool) bool) error
// GetThingsByNameAndRangeNullable retrieves a page of Things from the database.
GetThingsByNameAndRangeNullable(ctx context.Context, input GetThingsByNameAndRangeNullableInput, fn func(m *models.Thing, lastThing bool) bool) error
// ScanThingsByNameAndRangeNullable runs a scan on the NameAndRangeNullable index.
ScanThingsByNameAndRangeNullable(ctx context.Context, input ScanThingsByNameAndRangeNullableInput, fn func(m *models.Thing, lastThing bool) bool) error
// GetThingsByHashNullableAndName retrieves a page of Things from the database.
GetThingsByHashNullableAndName(ctx context.Context, input GetThingsByHashNullableAndNameInput, fn func(m *models.Thing, lastThing bool) bool) error
// SaveThingAllowingBatchWrites saves a ThingAllowingBatchWrites to the database.
SaveThingAllowingBatchWrites(ctx context.Context, m models.ThingAllowingBatchWrites) error
// SaveArrayOfThingAllowingBatchWrites batch saves all items in []ThingAllowingBatchWrites to the database.
SaveArrayOfThingAllowingBatchWrites(ctx context.Context, ms []models.ThingAllowingBatchWrites) error
// DeleteArrayOfThingAllowingBatchWrites batch deletes all items in []ThingAllowingBatchWrites in the database.
DeleteArrayOfThingAllowingBatchWrites(ctx context.Context, ms []models.ThingAllowingBatchWrites) error
// GetThingAllowingBatchWrites retrieves a ThingAllowingBatchWrites from the database.
GetThingAllowingBatchWrites(ctx context.Context, name string, version int64) (*models.ThingAllowingBatchWrites, error)
// ScanThingAllowingBatchWritess runs a scan on the ThingAllowingBatchWritess table.
ScanThingAllowingBatchWritess(ctx context.Context, input ScanThingAllowingBatchWritessInput, fn func(m *models.ThingAllowingBatchWrites, lastThingAllowingBatchWrites bool) bool) error
// GetThingAllowingBatchWritessByNameAndVersion retrieves a page of ThingAllowingBatchWritess from the database.
GetThingAllowingBatchWritessByNameAndVersion(ctx context.Context, input GetThingAllowingBatchWritessByNameAndVersionInput, fn func(m *models.ThingAllowingBatchWrites, lastThingAllowingBatchWrites bool) bool) error
// DeleteThingAllowingBatchWrites deletes a ThingAllowingBatchWrites from the database.
DeleteThingAllowingBatchWrites(ctx context.Context, name string, version int64) error
// SaveThingAllowingBatchWritesWithCompositeAttributes saves a ThingAllowingBatchWritesWithCompositeAttributes to the database.
SaveThingAllowingBatchWritesWithCompositeAttributes(ctx context.Context, m models.ThingAllowingBatchWritesWithCompositeAttributes) error
// SaveArrayOfThingAllowingBatchWritesWithCompositeAttributes batch saves all items in []ThingAllowingBatchWritesWithCompositeAttributes to the database.
SaveArrayOfThingAllowingBatchWritesWithCompositeAttributes(ctx context.Context, ms []models.ThingAllowingBatchWritesWithCompositeAttributes) error
// DeleteArrayOfThingAllowingBatchWritesWithCompositeAttributes batch deletes all items in []ThingAllowingBatchWritesWithCompositeAttributes in the database.
DeleteArrayOfThingAllowingBatchWritesWithCompositeAttributes(ctx context.Context, ms []models.ThingAllowingBatchWritesWithCompositeAttributes) error
// GetThingAllowingBatchWritesWithCompositeAttributes retrieves a ThingAllowingBatchWritesWithCompositeAttributes from the database.
GetThingAllowingBatchWritesWithCompositeAttributes(ctx context.Context, name string, id string, date strfmt.DateTime) (*models.ThingAllowingBatchWritesWithCompositeAttributes, error)
// ScanThingAllowingBatchWritesWithCompositeAttributess runs a scan on the ThingAllowingBatchWritesWithCompositeAttributess table.
ScanThingAllowingBatchWritesWithCompositeAttributess(ctx context.Context, input ScanThingAllowingBatchWritesWithCompositeAttributessInput, fn func(m *models.ThingAllowingBatchWritesWithCompositeAttributes, lastThingAllowingBatchWritesWithCompositeAttributes bool) bool) error
// GetThingAllowingBatchWritesWithCompositeAttributessByNameIDAndDate retrieves a page of ThingAllowingBatchWritesWithCompositeAttributess from the database.
GetThingAllowingBatchWritesWithCompositeAttributessByNameIDAndDate(ctx context.Context, input GetThingAllowingBatchWritesWithCompositeAttributessByNameIDAndDateInput, fn func(m *models.ThingAllowingBatchWritesWithCompositeAttributes, lastThingAllowingBatchWritesWithCompositeAttributes bool) bool) error
// DeleteThingAllowingBatchWritesWithCompositeAttributes deletes a ThingAllowingBatchWritesWithCompositeAttributes from the database.
DeleteThingAllowingBatchWritesWithCompositeAttributes(ctx context.Context, name string, id string, date strfmt.DateTime) error
// SaveThingWithAdditionalAttributes saves a ThingWithAdditionalAttributes to the database.
SaveThingWithAdditionalAttributes(ctx context.Context, m models.ThingWithAdditionalAttributes) error
// GetThingWithAdditionalAttributes retrieves a ThingWithAdditionalAttributes from the database.
GetThingWithAdditionalAttributes(ctx context.Context, name string, version int64) (*models.ThingWithAdditionalAttributes, error)
// ScanThingWithAdditionalAttributess runs a scan on the ThingWithAdditionalAttributess table.
ScanThingWithAdditionalAttributess(ctx context.Context, input ScanThingWithAdditionalAttributessInput, fn func(m *models.ThingWithAdditionalAttributes, lastThingWithAdditionalAttributes bool) bool) error
// GetThingWithAdditionalAttributessByNameAndVersion retrieves a page of ThingWithAdditionalAttributess from the database.
GetThingWithAdditionalAttributessByNameAndVersion(ctx context.Context, input GetThingWithAdditionalAttributessByNameAndVersionInput, fn func(m *models.ThingWithAdditionalAttributes, lastThingWithAdditionalAttributes bool) bool) error
// DeleteThingWithAdditionalAttributes deletes a ThingWithAdditionalAttributes from the database.
DeleteThingWithAdditionalAttributes(ctx context.Context, name string, version int64) error
// GetThingWithAdditionalAttributesByID retrieves a ThingWithAdditionalAttributes from the database.
GetThingWithAdditionalAttributesByID(ctx context.Context, id string) (*models.ThingWithAdditionalAttributes, error)
// ScanThingWithAdditionalAttributessByID runs a scan on the ID index.
ScanThingWithAdditionalAttributessByID(ctx context.Context, input ScanThingWithAdditionalAttributessByIDInput, fn func(m *models.ThingWithAdditionalAttributes, lastThingWithAdditionalAttributes bool) bool) error
// GetThingWithAdditionalAttributessByNameAndCreatedAt retrieves a page of ThingWithAdditionalAttributess from the database.
GetThingWithAdditionalAttributessByNameAndCreatedAt(ctx context.Context, input GetThingWithAdditionalAttributessByNameAndCreatedAtInput, fn func(m *models.ThingWithAdditionalAttributes, lastThingWithAdditionalAttributes bool) bool) error
// ScanThingWithAdditionalAttributessByNameAndCreatedAt runs a scan on the NameAndCreatedAt index.
ScanThingWithAdditionalAttributessByNameAndCreatedAt(ctx context.Context, input ScanThingWithAdditionalAttributessByNameAndCreatedAtInput, fn func(m *models.ThingWithAdditionalAttributes, lastThingWithAdditionalAttributes bool) bool) error
// GetThingWithAdditionalAttributessByNameAndRangeNullable retrieves a page of ThingWithAdditionalAttributess from the database.
GetThingWithAdditionalAttributessByNameAndRangeNullable(ctx context.Context, input GetThingWithAdditionalAttributessByNameAndRangeNullableInput, fn func(m *models.ThingWithAdditionalAttributes, lastThingWithAdditionalAttributes bool) bool) error
// ScanThingWithAdditionalAttributessByNameAndRangeNullable runs a scan on the NameAndRangeNullable index.
ScanThingWithAdditionalAttributessByNameAndRangeNullable(ctx context.Context, input ScanThingWithAdditionalAttributessByNameAndRangeNullableInput, fn func(m *models.ThingWithAdditionalAttributes, lastThingWithAdditionalAttributes bool) bool) error
// GetThingWithAdditionalAttributessByHashNullableAndName retrieves a page of ThingWithAdditionalAttributess from the database.
GetThingWithAdditionalAttributessByHashNullableAndName(ctx context.Context, input GetThingWithAdditionalAttributessByHashNullableAndNameInput, fn func(m *models.ThingWithAdditionalAttributes, lastThingWithAdditionalAttributes 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)
// ScanThingWithCompositeAttributess runs a scan on the ThingWithCompositeAttributess table.
ScanThingWithCompositeAttributess(ctx context.Context, input ScanThingWithCompositeAttributessInput, fn func(m *models.ThingWithCompositeAttributes, lastThingWithCompositeAttributes bool) bool) 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
// ScanThingWithCompositeAttributessByNameVersionAndDate runs a scan on the NameVersionAndDate index.
ScanThingWithCompositeAttributessByNameVersionAndDate(ctx context.Context, input ScanThingWithCompositeAttributessByNameVersionAndDateInput, 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)
// ScanThingWithCompositeEnumAttributess runs a scan on the ThingWithCompositeEnumAttributess table.
ScanThingWithCompositeEnumAttributess(ctx context.Context, input ScanThingWithCompositeEnumAttributessInput, fn func(m *models.ThingWithCompositeEnumAttributes, lastThingWithCompositeEnumAttributes bool) bool) 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)
// ScanThingWithDateRanges runs a scan on the ThingWithDateRanges table.
ScanThingWithDateRanges(ctx context.Context, input ScanThingWithDateRangesInput, fn func(m *models.ThingWithDateRange, lastThingWithDateRange bool) bool) 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)
// ScanThingWithDateTimeComposites runs a scan on the ThingWithDateTimeComposites table.
ScanThingWithDateTimeComposites(ctx context.Context, input ScanThingWithDateTimeCompositesInput, fn func(m *models.ThingWithDateTimeComposite, lastThingWithDateTimeComposite bool) bool) 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
// SaveThingWithEnumHashKey saves a ThingWithEnumHashKey to the database.
SaveThingWithEnumHashKey(ctx context.Context, m models.ThingWithEnumHashKey) error
// GetThingWithEnumHashKey retrieves a ThingWithEnumHashKey from the database.
GetThingWithEnumHashKey(ctx context.Context, branch models.Branch, date strfmt.DateTime) (*models.ThingWithEnumHashKey, error)
// ScanThingWithEnumHashKeys runs a scan on the ThingWithEnumHashKeys table.
ScanThingWithEnumHashKeys(ctx context.Context, input ScanThingWithEnumHashKeysInput, fn func(m *models.ThingWithEnumHashKey, lastThingWithEnumHashKey bool) bool) error
// GetThingWithEnumHashKeysByBranchAndDate retrieves a page of ThingWithEnumHashKeys from the database.
GetThingWithEnumHashKeysByBranchAndDate(ctx context.Context, input GetThingWithEnumHashKeysByBranchAndDateInput, fn func(m *models.ThingWithEnumHashKey, lastThingWithEnumHashKey bool) bool) error
// DeleteThingWithEnumHashKey deletes a ThingWithEnumHashKey from the database.
DeleteThingWithEnumHashKey(ctx context.Context, branch models.Branch, date strfmt.DateTime) error
// GetThingWithEnumHashKeysByBranchAndDate2 retrieves a page of ThingWithEnumHashKeys from the database.
GetThingWithEnumHashKeysByBranchAndDate2(ctx context.Context, input GetThingWithEnumHashKeysByBranchAndDate2Input, fn func(m *models.ThingWithEnumHashKey, lastThingWithEnumHashKey bool) bool) error
// ScanThingWithEnumHashKeysByBranchAndDate2 runs a scan on the BranchAndDate2 index.
ScanThingWithEnumHashKeysByBranchAndDate2(ctx context.Context, input ScanThingWithEnumHashKeysByBranchAndDate2Input, fn func(m *models.ThingWithEnumHashKey, lastThingWithEnumHashKey bool) bool) 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)
// ScanThingWithMatchingKeyss runs a scan on the ThingWithMatchingKeyss table.
ScanThingWithMatchingKeyss(ctx context.Context, input ScanThingWithMatchingKeyssInput, fn func(m *models.ThingWithMatchingKeys, lastThingWithMatchingKeys bool) bool) 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
// ScanThingWithMatchingKeyssByAssocTypeIDAndCreatedBear runs a scan on the AssocTypeIDAndCreatedBear index.
ScanThingWithMatchingKeyssByAssocTypeIDAndCreatedBear(ctx context.Context, input ScanThingWithMatchingKeyssByAssocTypeIDAndCreatedBearInput, fn func(m *models.ThingWithMatchingKeys, lastThingWithMatchingKeys bool) bool) error
// SaveThingWithMultiUseCompositeAttribute saves a ThingWithMultiUseCompositeAttribute to the database.
SaveThingWithMultiUseCompositeAttribute(ctx context.Context, m models.ThingWithMultiUseCompositeAttribute) error
// GetThingWithMultiUseCompositeAttribute retrieves a ThingWithMultiUseCompositeAttribute from the database.
GetThingWithMultiUseCompositeAttribute(ctx context.Context, one string) (*models.ThingWithMultiUseCompositeAttribute, error)
// ScanThingWithMultiUseCompositeAttributes runs a scan on the ThingWithMultiUseCompositeAttributes table.
ScanThingWithMultiUseCompositeAttributes(ctx context.Context, input ScanThingWithMultiUseCompositeAttributesInput, fn func(m *models.ThingWithMultiUseCompositeAttribute, lastThingWithMultiUseCompositeAttribute bool) bool) error
// DeleteThingWithMultiUseCompositeAttribute deletes a ThingWithMultiUseCompositeAttribute from the database.
DeleteThingWithMultiUseCompositeAttribute(ctx context.Context, one string) error
// GetThingWithMultiUseCompositeAttributesByThreeAndOneTwo retrieves a page of ThingWithMultiUseCompositeAttributes from the database.
GetThingWithMultiUseCompositeAttributesByThreeAndOneTwo(ctx context.Context, input GetThingWithMultiUseCompositeAttributesByThreeAndOneTwoInput, fn func(m *models.ThingWithMultiUseCompositeAttribute, lastThingWithMultiUseCompositeAttribute bool) bool) error
// ScanThingWithMultiUseCompositeAttributesByThreeAndOneTwo runs a scan on the ThreeAndOneTwo index.
ScanThingWithMultiUseCompositeAttributesByThreeAndOneTwo(ctx context.Context, input ScanThingWithMultiUseCompositeAttributesByThreeAndOneTwoInput, fn func(m *models.ThingWithMultiUseCompositeAttribute, lastThingWithMultiUseCompositeAttribute bool) bool) error
// GetThingWithMultiUseCompositeAttributesByFourAndOneTwo retrieves a page of ThingWithMultiUseCompositeAttributes from the database.
GetThingWithMultiUseCompositeAttributesByFourAndOneTwo(ctx context.Context, input GetThingWithMultiUseCompositeAttributesByFourAndOneTwoInput, fn func(m *models.ThingWithMultiUseCompositeAttribute, lastThingWithMultiUseCompositeAttribute bool) bool) error
// ScanThingWithMultiUseCompositeAttributesByFourAndOneTwo runs a scan on the FourAndOneTwo index.
ScanThingWithMultiUseCompositeAttributesByFourAndOneTwo(ctx context.Context, input ScanThingWithMultiUseCompositeAttributesByFourAndOneTwoInput, fn func(m *models.ThingWithMultiUseCompositeAttribute, lastThingWithMultiUseCompositeAttribute bool) bool) error
// SaveThingWithRequiredCompositePropertiesAndKeysOnly saves a ThingWithRequiredCompositePropertiesAndKeysOnly to the database.
SaveThingWithRequiredCompositePropertiesAndKeysOnly(ctx context.Context, m models.ThingWithRequiredCompositePropertiesAndKeysOnly) error
// GetThingWithRequiredCompositePropertiesAndKeysOnly retrieves a ThingWithRequiredCompositePropertiesAndKeysOnly from the database.
GetThingWithRequiredCompositePropertiesAndKeysOnly(ctx context.Context, propertyThree string) (*models.ThingWithRequiredCompositePropertiesAndKeysOnly, error)
// ScanThingWithRequiredCompositePropertiesAndKeysOnlys runs a scan on the ThingWithRequiredCompositePropertiesAndKeysOnlys table.
ScanThingWithRequiredCompositePropertiesAndKeysOnlys(ctx context.Context, input ScanThingWithRequiredCompositePropertiesAndKeysOnlysInput, fn func(m *models.ThingWithRequiredCompositePropertiesAndKeysOnly, lastThingWithRequiredCompositePropertiesAndKeysOnly bool) bool) error
// DeleteThingWithRequiredCompositePropertiesAndKeysOnly deletes a ThingWithRequiredCompositePropertiesAndKeysOnly from the database.
DeleteThingWithRequiredCompositePropertiesAndKeysOnly(ctx context.Context, propertyThree string) error
// GetThingWithRequiredCompositePropertiesAndKeysOnlysByPropertyOneAndTwoAndPropertyThree retrieves a page of ThingWithRequiredCompositePropertiesAndKeysOnlys from the database.
GetThingWithRequiredCompositePropertiesAndKeysOnlysByPropertyOneAndTwoAndPropertyThree(ctx context.Context, input GetThingWithRequiredCompositePropertiesAndKeysOnlysByPropertyOneAndTwoAndPropertyThreeInput, fn func(m *models.ThingWithRequiredCompositePropertiesAndKeysOnly, lastThingWithRequiredCompositePropertiesAndKeysOnly bool) bool) error
// ScanThingWithRequiredCompositePropertiesAndKeysOnlysByPropertyOneAndTwoAndPropertyThree runs a scan on the PropertyOneAndTwoAndPropertyThree index.
ScanThingWithRequiredCompositePropertiesAndKeysOnlysByPropertyOneAndTwoAndPropertyThree(ctx context.Context, input ScanThingWithRequiredCompositePropertiesAndKeysOnlysByPropertyOneAndTwoAndPropertyThreeInput, fn func(m *models.ThingWithRequiredCompositePropertiesAndKeysOnly, lastThingWithRequiredCompositePropertiesAndKeysOnly 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)
// ScanThingWithRequiredFieldss runs a scan on the ThingWithRequiredFieldss table.
ScanThingWithRequiredFieldss(ctx context.Context, input ScanThingWithRequiredFieldssInput, fn func(m *models.ThingWithRequiredFields, lastThingWithRequiredFields bool) bool) 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)
// ScanThingWithRequiredFields2s runs a scan on the ThingWithRequiredFields2s table.
ScanThingWithRequiredFields2s(ctx context.Context, input ScanThingWithRequiredFields2sInput, fn func(m *models.ThingWithRequiredFields2, lastThingWithRequiredFields2 bool) bool) 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 }
// ScanDeploymentsInput is the input to the ScanDeployments method.
type ScanDeploymentsInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.Deployment
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// DeploymentByEnvAppAndVersionFilterableAttribute represents the fields we can apply filters to for queries on this index
type DeploymentByEnvAppAndVersionFilterableAttribute string
const DeploymentDate DeploymentByEnvAppAndVersionFilterableAttribute = "date"
// DeploymentByEnvAppAndVersionFilterValues represents a filter on a particular field to be included in the query
type DeploymentByEnvAppAndVersionFilterValues struct {
// AttributeName is the attibute we are attempting to apply the filter to
AttributeName DeploymentByEnvAppAndVersionFilterableAttribute
// AttributeValues is an optional parameter to be used when we want to compare the attibute to a single value or multiple values
AttributeValues []interface{}
}
// 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
// FilterValues is an optional array of filters to apply on various table attributes
FilterValues []DeploymentByEnvAppAndVersionFilterValues
// FilterExpression is the filter expression to be applied to our fitlered attributes
// when referencing an attribute use #ATTRIBUTE_NAME
// ex: if the attribute is called "created_at" in its wag definition use #CREATED_AT
// when referencing one of the given values use :{attribute_name}_value0, :{attribute_name}_value1, etc.
// ex: if the attribute is called "created_at" in its wag definition use :created_at_value0, created_at_value1, etc.
// see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html#Query.KeyConditionExpressions
// for guidance on building expressions
FilterExpression string
}
// 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"
}
// ScanDeploymentsByEnvAppAndDateInput is the input to the ScanDeploymentsByEnvAppAndDate method.
type ScanDeploymentsByEnvAppAndDateInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.Deployment
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// 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"
}
// ScanDeploymentsByVersionInput is the input to the ScanDeploymentsByVersion method.
type ScanDeploymentsByVersionInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.Deployment
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// ScanEventsInput is the input to the ScanEvents method.
type ScanEventsInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.Event
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// EventByPkAndSkFilterableAttribute represents the fields we can apply filters to for queries on this index
type EventByPkAndSkFilterableAttribute string
const EventData EventByPkAndSkFilterableAttribute = "data"
// EventByPkAndSkFilterValues represents a filter on a particular field to be included in the query
type EventByPkAndSkFilterValues struct {
// AttributeName is the attibute we are attempting to apply the filter to
AttributeName EventByPkAndSkFilterableAttribute
// AttributeValues is an optional parameter to be used when we want to compare the attibute to a single value or multiple values
AttributeValues []interface{}
}
// GetEventsByPkAndSkInput is the query input to GetEventsByPkAndSk.
type GetEventsByPkAndSkInput struct {
// Pk is required
Pk string
SkStartingAt *string
// StartingAfter is a required specification of an exclusive starting point.
StartingAfter *models.Event
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
// FilterValues is an optional array of filters to apply on various table attributes
FilterValues []EventByPkAndSkFilterValues
// FilterExpression is the filter expression to be applied to our fitlered attributes
// when referencing an attribute use #ATTRIBUTE_NAME
// ex: if the attribute is called "created_at" in its wag definition use #CREATED_AT
// when referencing one of the given values use :{attribute_name}_value0, :{attribute_name}_value1, etc.
// ex: if the attribute is called "created_at" in its wag definition use :created_at_value0, created_at_value1, etc.
// see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html#Query.KeyConditionExpressions
// for guidance on building expressions
FilterExpression string
}
// ErrEventNotFound is returned when the database fails to find a Event.
type ErrEventNotFound struct {
Pk string
Sk string
}
var _ error = ErrEventNotFound{}
// Error returns a description of the error.
func (e ErrEventNotFound) Error() string {
return "could not find Event"
}
// GetEventsBySkAndDataInput is the query input to GetEventsBySkAndData.
type GetEventsBySkAndDataInput struct {
// Sk is required
Sk string
DataStartingAt []byte
StartingAfter *models.Event
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrEventBySkAndDataNotFound is returned when the database fails to find a Event.
type ErrEventBySkAndDataNotFound struct {
Sk string
Data []byte
}
var _ error = ErrEventBySkAndDataNotFound{}
// Error returns a description of the error.
func (e ErrEventBySkAndDataNotFound) Error() string {
return "could not find Event"
}
// ScanEventsBySkAndDataInput is the input to the ScanEventsBySkAndData method.
type ScanEventsBySkAndDataInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.Event
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// ScanNoRangeThingWithCompositeAttributessInput is the input to the ScanNoRangeThingWithCompositeAttributess method.
type ScanNoRangeThingWithCompositeAttributessInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.NoRangeThingWithCompositeAttributes
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// 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"
}
// ScanNoRangeThingWithCompositeAttributessByNameVersionAndDateInput is the input to the ScanNoRangeThingWithCompositeAttributessByNameVersionAndDate method.
type ScanNoRangeThingWithCompositeAttributessByNameVersionAndDateInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.NoRangeThingWithCompositeAttributes
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// 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"
}
// ScanSimpleThingsInput is the input to the ScanSimpleThings method.
type ScanSimpleThingsInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.SimpleThing
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// 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"
}
// ScanTeacherSharingRulesInput is the input to the ScanTeacherSharingRules method.
type ScanTeacherSharingRulesInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.TeacherSharingRule
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// TeacherSharingRuleByTeacherAndSchoolAppFilterableAttribute represents the fields we can apply filters to for queries on this index
type TeacherSharingRuleByTeacherAndSchoolAppFilterableAttribute string
const TeacherSharingRuleDistrict TeacherSharingRuleByTeacherAndSchoolAppFilterableAttribute = "district"
// TeacherSharingRuleByTeacherAndSchoolAppFilterValues represents a filter on a particular field to be included in the query
type TeacherSharingRuleByTeacherAndSchoolAppFilterValues struct {
// AttributeName is the attibute we are attempting to apply the filter to
AttributeName TeacherSharingRuleByTeacherAndSchoolAppFilterableAttribute
// AttributeValues is an optional parameter to be used when we want to compare the attibute to a single value or multiple values
AttributeValues []interface{}
}
// 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
// FilterValues is an optional array of filters to apply on various table attributes
FilterValues []TeacherSharingRuleByTeacherAndSchoolAppFilterValues
// FilterExpression is the filter expression to be applied to our fitlered attributes
// when referencing an attribute use #ATTRIBUTE_NAME
// ex: if the attribute is called "created_at" in its wag definition use #CREATED_AT
// when referencing one of the given values use :{attribute_name}_value0, :{attribute_name}_value1, etc.
// ex: if the attribute is called "created_at" in its wag definition use :created_at_value0, created_at_value1, etc.
// see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html#Query.KeyConditionExpressions
// for guidance on building expressions
FilterExpression 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
}
// 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"
}
// ScanTeacherSharingRulesByDistrictAndSchoolTeacherAppInput is the input to the ScanTeacherSharingRulesByDistrictAndSchoolTeacherApp method.
type ScanTeacherSharingRulesByDistrictAndSchoolTeacherAppInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.TeacherSharingRule
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// SchoolApp struct.
type SchoolApp struct {
School string
App string
}
// SchoolTeacherApp struct.
type SchoolTeacherApp struct {
School string
Teacher string
App string
}
// 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
// Limit is an optional limit of how many items to evaluate.
Limit *int64
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// ThingByNameAndVersionFilterableAttribute represents the fields we can apply filters to for queries on this index
type ThingByNameAndVersionFilterableAttribute string
const ThingCreatedAt ThingByNameAndVersionFilterableAttribute = "createdAt"
const ThingHashNullable ThingByNameAndVersionFilterableAttribute = "hashNullable"
const ThingID ThingByNameAndVersionFilterableAttribute = "id"
const ThingRangeNullable ThingByNameAndVersionFilterableAttribute = "rangeNullable"
// ThingByNameAndVersionFilterValues represents a filter on a particular field to be included in the query
type ThingByNameAndVersionFilterValues struct {
// AttributeName is the attibute we are attempting to apply the filter to
AttributeName ThingByNameAndVersionFilterableAttribute
// AttributeValues is an optional parameter to be used when we want to compare the attibute to a single value or multiple values
AttributeValues []interface{}
}
// 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
// FilterValues is an optional array of filters to apply on various table attributes
FilterValues []ThingByNameAndVersionFilterValues
// FilterExpression is the filter expression to be applied to our fitlered attributes
// when referencing an attribute use #ATTRIBUTE_NAME
// ex: if the attribute is called "created_at" in its wag definition use #CREATED_AT
// when referencing one of the given values use :{attribute_name}_value0, :{attribute_name}_value1, etc.
// ex: if the attribute is called "created_at" in its wag definition use :created_at_value0, created_at_value1, etc.
// see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html#Query.KeyConditionExpressions
// for guidance on building expressions
FilterExpression string
}
// 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"
}
// ScanThingsByIDInput is the input to the ScanThingsByID method.
type ScanThingsByIDInput 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
// Limit is an optional limit of how many items to evaluate.
Limit *int64
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// 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"
}
// ScanThingsByNameAndCreatedAtInput is the input to the ScanThingsByNameAndCreatedAt method.
type ScanThingsByNameAndCreatedAtInput 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
// Limit is an optional limit of how many items to evaluate.
Limit *int64
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// GetThingsByNameAndRangeNullableInput is the query input to GetThingsByNameAndRangeNullable.
type GetThingsByNameAndRangeNullableInput struct {
// Name is required
Name string
RangeNullableStartingAt *strfmt.DateTime
StartingAfter *models.Thing
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrThingByNameAndRangeNullableNotFound is returned when the database fails to find a Thing.
type ErrThingByNameAndRangeNullableNotFound struct {
Name string
RangeNullable strfmt.DateTime
}
var _ error = ErrThingByNameAndRangeNullableNotFound{}
// Error returns a description of the error.
func (e ErrThingByNameAndRangeNullableNotFound) Error() string {
return "could not find Thing"
}
// ScanThingsByNameAndRangeNullableInput is the input to the ScanThingsByNameAndRangeNullable method.
type ScanThingsByNameAndRangeNullableInput 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
// Limit is an optional limit of how many items to evaluate.
Limit *int64
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// GetThingsByHashNullableAndNameInput is the query input to GetThingsByHashNullableAndName.
type GetThingsByHashNullableAndNameInput struct {
// HashNullable is required
HashNullable string
NameStartingAt *string
StartingAfter *models.Thing
Descending bool
// Limit is an optional limit of how many items to evaluate.
Limit *int64
}
// ErrThingByHashNullableAndNameNotFound is returned when the database fails to find a Thing.
type ErrThingByHashNullableAndNameNotFound struct {
HashNullable string
Name string
}
var _ error = ErrThingByHashNullableAndNameNotFound{}
// Error returns a description of the error.
func (e ErrThingByHashNullableAndNameNotFound) 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"
}
// ScanThingAllowingBatchWritessInput is the input to the ScanThingAllowingBatchWritess method.
type ScanThingAllowingBatchWritessInput struct {
// StartingAfter is an optional specification of an (exclusive) starting point.
StartingAfter *models.ThingAllowingBatchWrites
// 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
// Limiter is an optional limit on how quickly items are scanned.
Limiter *rate.Limiter
}
// GetThingAllowingBatchWritessByNameAndVersionInput is the query input to GetThingAllowingBatchWritessByNameAndVersion.
type GetThingAllowingBatchWritessByNameAndVersionInput struct {