c2cciutils 1.8.0.dev63__py3-none-any.whl → 1.8.0.dev68__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of c2cciutils might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  """Automatically generated file from a JSON schema."""
2
2
 
3
- from typing import Any, Literal, TypedDict, Union
3
+ from typing import Any, TypedDict
4
4
 
5
5
 
6
6
  class Configuration(TypedDict, total=False):
@@ -17,32 +17,6 @@ class Configuration(TypedDict, total=False):
17
17
  The print versions configuration
18
18
  """
19
19
 
20
- publish: "Publish"
21
- """
22
- Publish.
23
-
24
- The publishing configurations
25
-
26
- default:
27
- docker:
28
- images: <auto-detected>
29
- helm:
30
- folders: <auto-detected>
31
- versions:
32
- - version_tag
33
- pypi:
34
- packages: <auto-detected>
35
- versions:
36
- - version_tag
37
- """
38
-
39
- version: "Version"
40
- """
41
- Version.
42
-
43
- The version configurations
44
- """
45
-
46
20
  k8s: "K8SConfiguration"
47
21
  """
48
22
  K8s configuration.
@@ -51,37 +25,11 @@ class Configuration(TypedDict, total=False):
51
25
  {}
52
26
  """
53
27
 
54
- dpkg: "Dpkg"
55
- """
56
- dpkg.
57
-
58
- The configuration use t manage the dpkg packages
59
- """
60
-
61
28
 
62
29
  DB_CONFIGURATION_DEFAULT: dict[str, Any] = {}
63
30
  """ Default value of the field path 'K8s configuration db' """
64
31
 
65
32
 
66
- DISPATCH_CONFIG_DEFAULT: dict[str, Any] = {}
67
- """ Default value of the field path 'Publish Docker config dispatch oneof0' """
68
-
69
-
70
- DOCKER_DISPATCH_EVENT_TYPE_DEFAULT = "image-update"
71
- """ Default value of the field path 'dispatch config event-type' """
72
-
73
-
74
- DOCKER_DISPATCH_REPOSITORY_DEFAULT = "camptocamp/argocd-gs-gmf-apps"
75
- """ Default value of the field path 'dispatch config repository' """
76
-
77
-
78
- DOCKER_REPOSITORY_DEFAULT = {
79
- "github": {"server": "ghcr.io", "versions": ["version_tag", "version_branch", "rebuild"]},
80
- "dockerhub": {},
81
- }
82
- """ Default value of the field path 'Publish Docker config repository' """
83
-
84
-
85
33
  # | DB configuration.
86
34
  # |
87
35
  # | Database configuration
@@ -105,54 +53,6 @@ DbConfiguration = TypedDict(
105
53
  )
106
54
 
107
55
 
108
- # | dispatch config.
109
- # |
110
- # | Send a dispatch event to an other repository
111
- # |
112
- # | default:
113
- # | {}
114
- DispatchConfig = TypedDict(
115
- "DispatchConfig",
116
- {
117
- # | Docker dispatch repository.
118
- # |
119
- # | The repository name to be triggered
120
- # |
121
- # | default: camptocamp/argocd-gs-gmf-apps
122
- "repository": str,
123
- # | Docker dispatch event type.
124
- # |
125
- # | The event type to be triggered
126
- # |
127
- # | default: image-update
128
- "event-type": str,
129
- },
130
- total=False,
131
- )
132
-
133
-
134
- class Dpkg(TypedDict, total=False):
135
- """
136
- dpkg.
137
-
138
- The configuration use t manage the dpkg packages
139
- """
140
-
141
- packages_mapping: dict[str, str]
142
- """
143
- dpkg packages mapping.
144
-
145
- The mapping of source package found in the image to package present in repology.org
146
- """
147
-
148
- ignored_packages: list[str]
149
- """
150
- dpkg ignored packages.
151
-
152
- The list of packages that should be ignored
153
- """
154
-
155
-
156
56
  # | K3d configuration.
157
57
  # |
158
58
  # | default:
@@ -238,62 +138,6 @@ PRINT_VERSIONS_VERSIONS_DEFAULT = [
238
138
  """ Default value of the field path 'Print versions versions' """
239
139
 
240
140
 
241
- PUBLISH_DEFAULT = {
242
- "pypi": {"versions": ["version_tag"], "packages": "<auto-detected>"},
243
- "docker": {"images": "<auto-detected>"},
244
- "helm": {"versions": ["version_tag"], "folders": "<auto-detected>"},
245
- }
246
- """ Default value of the field path 'configuration publish' """
247
-
248
-
249
- PUBLISH_DOCKER_IMAGE_GROUP_DEFAULT = "default"
250
- """ Default value of the field path 'Publish Docker image group' """
251
-
252
-
253
- PUBLISH_DOCKER_IMAGE_TAGS_DEFAULT = ["{version}"]
254
- """ Default value of the field path 'Publish Docker image tags' """
255
-
256
-
257
- PUBLISH_DOCKER_LATEST_DEFAULT = True
258
- """ Default value of the field path 'Publish Docker config latest' """
259
-
260
-
261
- PUBLISH_DOCKER_REPOSITORY_VERSIONS_DEFAULT = ["version_tag", "version_branch", "rebuild", "feature_branch"]
262
- """ Default value of the field path 'Publish Docker repository versions' """
263
-
264
-
265
- PUBLISH_DOCKER_SNYK_MONITOR_ARGS_DEFAULT = ["--app-vulns"]
266
- """ Default value of the field path 'Publish Docker config snyk monitor_args' """
267
-
268
-
269
- PUBLISH_DOCKER_SNYK_TEST_ARGS_DEFAULT = ["--app-vulns", "--severity-threshold=critical"]
270
- """ Default value of the field path 'Publish Docker config snyk test_args' """
271
-
272
-
273
- PUBLISH_GOOGLE_CALENDAR_CONFIG_DEFAULT: dict[str, Any] = {}
274
- """ Default value of the field path 'Publish Google calendar oneof0' """
275
-
276
-
277
- PUBLISH_GOOGLE_CALENDAR_DEFAULT: dict[str, Any] = {}
278
- """ Default value of the field path 'publish_google_calendar' """
279
-
280
-
281
- PUBLISH_GOOGLE_CALENDAR_ON_DEFAULT = ["version_branch", "version_tag", "rebuild"]
282
- """ Default value of the field path 'Publish Google calendar config on' """
283
-
284
-
285
- PUBLISH_PIP_PACKAGE_GROUP_DEFAULT = "default"
286
- """ Default value of the field path 'publish pypi package group' """
287
-
288
-
289
- PUBLISH_PYPI_CONFIG_DEFAULT: dict[str, Any] = {}
290
- """ Default value of the field path 'publish pypi oneof0' """
291
-
292
-
293
- PUBLISH_PYPI_DEFAULT: dict[str, Any] = {}
294
- """ Default value of the field path 'publish_pypi' """
295
-
296
-
297
141
  class PrintVersions(TypedDict, total=False):
298
142
  """
299
143
  Print versions.
@@ -351,355 +195,6 @@ class PrintVersions(TypedDict, total=False):
351
195
  """
352
196
 
353
197
 
354
- class Publish(TypedDict, total=False):
355
- """
356
- Publish.
357
-
358
- The publishing configurations
359
-
360
- default:
361
- docker:
362
- images: <auto-detected>
363
- helm:
364
- folders: <auto-detected>
365
- versions:
366
- - version_tag
367
- pypi:
368
- packages: <auto-detected>
369
- versions:
370
- - version_tag
371
- """
372
-
373
- docker: "PublishDocker"
374
- """
375
- Publish Docker.
376
-
377
- The configuration used to publish on Docker
378
-
379
- Aggregation type: oneOf
380
- Subtype: "PublishDockerConfig"
381
- """
382
-
383
- pypi: "PublishPypi"
384
- """
385
- publish pypi.
386
-
387
- Configuration to publish on pypi
388
-
389
- default:
390
- {}
391
-
392
- Aggregation type: oneOf
393
- Subtype: "PublishPypiConfig"
394
- """
395
-
396
- helm: "PublishHelm"
397
- """
398
- publish helm.
399
-
400
- Configuration to publish Helm charts on GitHub release
401
-
402
- Aggregation type: oneOf
403
- Subtype: "PublishHelmConfig"
404
- """
405
-
406
- google_calendar: "PublishGoogleCalendar"
407
- """
408
- Publish Google calendar.
409
-
410
- The configuration to publish on Google Calendar
411
-
412
- default:
413
- {}
414
-
415
- Aggregation type: oneOf
416
- Subtype: "PublishGoogleCalendarConfig"
417
- """
418
-
419
-
420
- PublishDocker = Union["PublishDockerConfig", Literal[False]]
421
- """
422
- Publish Docker.
423
-
424
- The configuration used to publish on Docker
425
-
426
- Aggregation type: oneOf
427
- Subtype: "PublishDockerConfig"
428
- """
429
-
430
-
431
- class PublishDockerConfig(TypedDict, total=False):
432
- """
433
- Publish Docker config.
434
-
435
- The configuration used to publish on Docker
436
- """
437
-
438
- latest: bool
439
- """
440
- Publish Docker latest.
441
-
442
- Publish the latest version on tag latest
443
-
444
- default: True
445
- """
446
-
447
- images: list["PublishDockerImage"]
448
- """ List of images to be published """
449
-
450
- repository: dict[str, "PublishDockerRepository"]
451
- """
452
- Docker repository.
453
-
454
- The repository where we should publish the images
455
-
456
- default:
457
- dockerhub: {}
458
- github:
459
- server: ghcr.io
460
- versions:
461
- - version_tag
462
- - version_branch
463
- - rebuild
464
- """
465
-
466
- dispatch: Union["DispatchConfig", "_PublishDockerConfigDispatchOneof1"]
467
- """
468
- Send a dispatch event to an other repository
469
-
470
- default:
471
- {}
472
-
473
- Aggregation type: oneOf
474
- Subtype: "DispatchConfig"
475
- """
476
-
477
- snyk: "_PublishDockerConfigSnyk"
478
- """ Checks the published images with Snyk """
479
-
480
-
481
- class PublishDockerImage(TypedDict, total=False):
482
- """Publish Docker image."""
483
-
484
- group: str
485
- """
486
- Publish Docker image group.
487
-
488
- The image is in the group, should be used with the --group option of c2cciutils-publish script
489
-
490
- default: default
491
- """
492
-
493
- name: str
494
- """ The image name """
495
-
496
- tags: list[str]
497
- """
498
- publish docker image tags.
499
-
500
- The tag name, will be formatted with the version=<the version>, the image with version=latest should be present when we call the c2cciutils-publish script
501
-
502
- default:
503
- - '{version}'
504
- """
505
-
506
-
507
- class PublishDockerRepository(TypedDict, total=False):
508
- """Publish Docker repository."""
509
-
510
- server: str
511
- """ The server URL """
512
-
513
- versions: list[str]
514
- """
515
- Publish Docker repository versions.
516
-
517
- The kind or version that should be published, tag, branch or value of the --version argument of the c2cciutils-publish script
518
-
519
- default:
520
- - version_tag
521
- - version_branch
522
- - rebuild
523
- - feature_branch
524
- """
525
-
526
-
527
- PublishGoogleCalendar = Union["PublishGoogleCalendarConfig", "_PublishGoogleCalendarOneof1"]
528
- """
529
- Publish Google calendar.
530
-
531
- The configuration to publish on Google Calendar
532
-
533
- default:
534
- {}
535
-
536
- Aggregation type: oneOf
537
- Subtype: "PublishGoogleCalendarConfig"
538
- """
539
-
540
-
541
- class PublishGoogleCalendarConfig(TypedDict, total=False):
542
- """
543
- Publish Google calendar config.
544
-
545
- The configuration to publish on Google Calendar
546
-
547
- default:
548
- {}
549
- """
550
-
551
- on: list[str]
552
- """
553
- Publish Google calendar on.
554
-
555
- default:
556
- - version_branch
557
- - version_tag
558
- - rebuild
559
- """
560
-
561
-
562
- PublishHelm = Union["PublishHelmConfig", Literal[False]]
563
- """
564
- publish helm.
565
-
566
- Configuration to publish Helm charts on GitHub release
567
-
568
- Aggregation type: oneOf
569
- Subtype: "PublishHelmConfig"
570
- """
571
-
572
-
573
- class PublishHelmConfig(TypedDict, total=False):
574
- """
575
- publish helm config.
576
-
577
- Configuration to publish on Helm charts on GitHub release
578
- """
579
-
580
- folders: list[str]
581
- """ The folders that will be published """
582
-
583
- versions: list[str]
584
- """ The kind or version that should be published, tag, branch or value of the --version argument of the c2cciutils-publish script """
585
-
586
-
587
- PublishPypi = Union["PublishPypiConfig", "_PublishPypiOneof1"]
588
- """
589
- publish pypi.
590
-
591
- Configuration to publish on pypi
592
-
593
- default:
594
- {}
595
-
596
- Aggregation type: oneOf
597
- Subtype: "PublishPypiConfig"
598
- """
599
-
600
-
601
- class PublishPypiConfig(TypedDict, total=False):
602
- """
603
- publish pypi config.
604
-
605
- Configuration to publish on pypi
606
-
607
- default:
608
- {}
609
- """
610
-
611
- packages: list["PublishPypiPackage"]
612
- """ The configuration of packages that will be published """
613
-
614
- versions: list[str]
615
- """ The kind or version that should be published, tag, branch or value of the --version argument of the c2cciutils-publish script """
616
-
617
-
618
- class PublishPypiPackage(TypedDict, total=False):
619
- """
620
- publish pypi package.
621
-
622
- The configuration of package that will be published
623
- """
624
-
625
- group: str
626
- """
627
- Publish pip package group.
628
-
629
- The image is in the group, should be used with the --group option of c2cciutils-publish script
630
-
631
- default: default
632
- """
633
-
634
- path: str
635
- """ The path of the pypi package """
636
-
637
- build_command: list[str]
638
- """ The command used to do the build """
639
-
640
-
641
- class Version(TypedDict, total=False):
642
- """
643
- Version.
644
-
645
- The version configurations
646
- """
647
-
648
- branch_to_version_re: "VersionTransform"
649
- """
650
- Version transform.
651
-
652
- A version transformer definition
653
- """
654
-
655
- tag_to_version_re: "VersionTransform"
656
- """
657
- Version transform.
658
-
659
- A version transformer definition
660
- """
661
-
662
-
663
- VersionTransform = list["_VersionTransformItem"]
664
- """
665
- Version transform.
666
-
667
- A version transformer definition
668
- """
669
-
670
-
671
- _PUBLISH_DOCKER_CONFIG_DISPATCH_DEFAULT: dict[str, Any] = {}
672
- """ Default value of the field path 'Publish Docker config dispatch' """
673
-
674
-
675
- _PUBLISH_DOCKER_CONFIG_DISPATCH_ONEOF1_DEFAULT: dict[str, Any] = {}
676
- """ Default value of the field path 'Publish Docker config dispatch oneof1' """
677
-
678
-
679
- _PUBLISH_DOCKER_SNYK_MONITOR_ARGS_ONEOF0_DEFAULT = ["--app-vulns"]
680
- """ Default value of the field path 'Publish Docker Snyk monitor args oneof0' """
681
-
682
-
683
- _PUBLISH_DOCKER_SNYK_MONITOR_ARGS_ONEOF1_DEFAULT = ["--app-vulns"]
684
- """ Default value of the field path 'Publish Docker Snyk monitor args oneof1' """
685
-
686
-
687
- _PUBLISH_DOCKER_SNYK_TEST_ARGS_ONEOF0_DEFAULT = ["--app-vulns", "--severity-threshold=critical"]
688
- """ Default value of the field path 'Publish Docker Snyk test args oneof0' """
689
-
690
-
691
- _PUBLISH_DOCKER_SNYK_TEST_ARGS_ONEOF1_DEFAULT = ["--app-vulns", "--severity-threshold=critical"]
692
- """ Default value of the field path 'Publish Docker Snyk test args oneof1' """
693
-
694
-
695
- _PUBLISH_GOOGLE_CALENDAR_ONEOF1_DEFAULT: dict[str, Any] = {}
696
- """ Default value of the field path 'Publish Google calendar oneof1' """
697
-
698
-
699
- _PUBLISH_PYPI_ONEOF1_DEFAULT: dict[str, Any] = {}
700
- """ Default value of the field path 'publish pypi oneof1' """
701
-
702
-
703
198
  class _PrintVersionsVersionsItem(TypedDict, total=False):
704
199
  cmd: list[str]
705
200
  """ The command that should be used """
@@ -709,95 +204,3 @@ class _PrintVersionsVersionsItem(TypedDict, total=False):
709
204
 
710
205
  prefix: str
711
206
  """ Prefix added when we print the version """
712
-
713
-
714
- _PublishDockerConfigDispatchOneof1 = Literal[False]
715
- """
716
- default:
717
- {}
718
- """
719
-
720
-
721
- class _PublishDockerConfigSnyk(TypedDict, total=False):
722
- """Checks the published images with Snyk."""
723
-
724
- monitor_args: Union["_PublishDockerSnykMonitorArgsOneof0", "_PublishDockerSnykMonitorArgsOneof1"]
725
- """
726
- Publish Docker Snyk monitor args.
727
-
728
- The arguments to pass to the Snyk container monitor command
729
-
730
- default:
731
- - --app-vulns
732
-
733
- Aggregation type: oneOf
734
- """
735
-
736
- test_args: Union["_PublishDockerSnykTestArgsOneof0", "_PublishDockerSnykTestArgsOneof1"]
737
- """
738
- Publish Docker Snyk test args.
739
-
740
- The arguments to pass to the Snyk container test command
741
-
742
- default:
743
- - --app-vulns
744
- - --severity-threshold=critical
745
-
746
- Aggregation type: oneOf
747
- """
748
-
749
-
750
- _PublishDockerSnykMonitorArgsOneof0 = list[str]
751
- """
752
- default:
753
- - --app-vulns
754
- """
755
-
756
-
757
- _PublishDockerSnykMonitorArgsOneof1 = Literal[False]
758
- """
759
- default:
760
- - --app-vulns
761
- """
762
-
763
-
764
- _PublishDockerSnykTestArgsOneof0 = list[str]
765
- """
766
- default:
767
- - --app-vulns
768
- - --severity-threshold=critical
769
- """
770
-
771
-
772
- _PublishDockerSnykTestArgsOneof1 = Literal[False]
773
- """
774
- default:
775
- - --app-vulns
776
- - --severity-threshold=critical
777
- """
778
-
779
-
780
- _PublishGoogleCalendarOneof1 = Literal[False]
781
- """
782
- default:
783
- {}
784
- """
785
-
786
-
787
- _PublishPypiOneof1 = Literal[False]
788
- """
789
- default:
790
- {}
791
- """
792
-
793
-
794
- _VersionTransformItem = TypedDict(
795
- "_VersionTransformItem",
796
- {
797
- # | The from regular expression
798
- "from": str,
799
- # | The expand regular expression: https://docs.python.org/3/library/re.html#re.Match.expand
800
- "to": str,
801
- },
802
- total=False,
803
- )