snapctl 0.38.2__tar.gz → 0.38.4__tar.gz
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 snapctl might be problematic. Click here for more details.
- {snapctl-0.38.2 → snapctl-0.38.4}/PKG-INFO +2 -92
- {snapctl-0.38.2 → snapctl-0.38.4}/README.md +1 -91
- {snapctl-0.38.2 → snapctl-0.38.4}/pyproject.toml +1 -1
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/commands/snapend.py +10 -10
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/config/constants.py +1 -1
- {snapctl-0.38.2 → snapctl-0.38.4}/LICENSE +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/__init__.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/__main__.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/commands/__init__.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/commands/byogs.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/commands/byosnap.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/commands/game.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/commands/generate.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/config/__init__.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/config/endpoints.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/config/hashes.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/main.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/types/__init__.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/types/definitions.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/utils/__init__.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/utils/echo.py +0 -0
- {snapctl-0.38.2 → snapctl-0.38.4}/snapctl/utils/helper.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snapctl
|
|
3
|
-
Version: 0.38.
|
|
3
|
+
Version: 0.38.4
|
|
4
4
|
Summary: Snapser CLI Tool
|
|
5
5
|
Author: Ajinkya Apte
|
|
6
6
|
Author-email: aj@snapser.com
|
|
@@ -288,7 +288,7 @@ Publish a new version for your Snap. Only after your Snap version is published,
|
|
|
288
288
|
to use your snap in your Snapend. This command should be run after `push` or `publish-image` commands.
|
|
289
289
|
|
|
290
290
|
IMPORTANT: You need to have $byosnapProfile to run this command. BYOSnap profile is a JSON configuration
|
|
291
|
-
of your BYOSnap for the development, staging and production environments.
|
|
291
|
+
of your BYOSnap for the development, staging and production environments. You can generate a base version of this file using the `snapctl generate profile --category byosnap --out-path <output_path>` command.
|
|
292
292
|
|
|
293
293
|
```
|
|
294
294
|
# Help for the byosnap command
|
|
@@ -621,93 +621,3 @@ snapctl snapend state $snapend_id
|
|
|
621
621
|
| 81 | Generate profile error |
|
|
622
622
|
| 82 | Generate credentials error |
|
|
623
623
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
## CLI Return Codes
|
|
627
|
-
|
|
628
|
-
| Error Code | Description |
|
|
629
|
-
|------------|----------------------------------------------------------|
|
|
630
|
-
| 0 | Operation completed successfully |
|
|
631
|
-
| 1 | General error |
|
|
632
|
-
| 2 | Input error |
|
|
633
|
-
|
|
634
|
-
### Configuration Errors
|
|
635
|
-
|
|
636
|
-
| Error Code | Description |
|
|
637
|
-
|------------|----------------------------------------------------------|
|
|
638
|
-
| 10 | Configuration incorrect |
|
|
639
|
-
| 11 | Configuration error |
|
|
640
|
-
| 12 | Dependency missing |
|
|
641
|
-
|
|
642
|
-
### BYOGS Errors
|
|
643
|
-
|
|
644
|
-
| Error Code | Description |
|
|
645
|
-
|------------|----------------------------------------------------------|
|
|
646
|
-
| 20 | Generic BYOGS error |
|
|
647
|
-
| 21 | BYOGS dependency missing |
|
|
648
|
-
| 22 | BYOGS ECR login error |
|
|
649
|
-
| 23 | BYOGS build error |
|
|
650
|
-
| 24 | BYOGS tag error |
|
|
651
|
-
| 25 | BYOGS publish error |
|
|
652
|
-
| 26 | BYOGS publish permission error |
|
|
653
|
-
| 27 | BYOGS publish duplicate tag error |
|
|
654
|
-
|
|
655
|
-
### BYOSNAP Errors
|
|
656
|
-
|
|
657
|
-
| Error Code | Description |
|
|
658
|
-
|------------|----------------------------------------------------------|
|
|
659
|
-
| 30 | Generic BYOSNAP error |
|
|
660
|
-
| 31 | BYOSNAP dependency missing |
|
|
661
|
-
| 32 | BYOSNAP ECR login error |
|
|
662
|
-
| 33 | BYOSNAP build error |
|
|
663
|
-
| 34 | BYOSNAP tag error |
|
|
664
|
-
| 35 | BYOSNAP publish image error |
|
|
665
|
-
| 36 | BYOSNAP publish image permission error |
|
|
666
|
-
| 37 | BYOSNAP publish image duplicate tag error |
|
|
667
|
-
| 38 | BYOSNAP create error |
|
|
668
|
-
| 39 | BYOSNAP create permission error |
|
|
669
|
-
| 40 | BYOSNAP create duplicate name error |
|
|
670
|
-
| 41 | BYOSNAP publish version error |
|
|
671
|
-
| 42 | BYOSNAP publish version permission error |
|
|
672
|
-
| 43 | BYOSNAP publish version duplicate version error |
|
|
673
|
-
| 44 | BYOSNAP publish version duplicate tag error |
|
|
674
|
-
|
|
675
|
-
### Game Errors
|
|
676
|
-
|
|
677
|
-
| Error Code | Description |
|
|
678
|
-
|------------|----------------------------------------------------------|
|
|
679
|
-
| 50 | Generic game error |
|
|
680
|
-
| 51 | Game create error |
|
|
681
|
-
| 52 | Game create permission error |
|
|
682
|
-
| 53 | Game create duplicate name error |
|
|
683
|
-
| 54 | Game enumerate error |
|
|
684
|
-
|
|
685
|
-
### Snapend Errors
|
|
686
|
-
|
|
687
|
-
| Error Code | Description |
|
|
688
|
-
|------------|----------------------------------------------------------|
|
|
689
|
-
| 60 | Generic snapend error |
|
|
690
|
-
| 61 | Snapend enumerate error |
|
|
691
|
-
| 62 | Snapend clone error |
|
|
692
|
-
| 63 | Snapend clone server error |
|
|
693
|
-
| 64 | Snapend clone timeout error |
|
|
694
|
-
| 65 | Snapend apply error |
|
|
695
|
-
| 66 | Snapend apply server error |
|
|
696
|
-
| 67 | Snapend apply timeout error |
|
|
697
|
-
| 68 | Snapend promote error |
|
|
698
|
-
| 69 | Snapend promote server error |
|
|
699
|
-
| 70 | Snapend promote timeout error |
|
|
700
|
-
| 71 | Snapend download error |
|
|
701
|
-
| 72 | Snapend update error |
|
|
702
|
-
| 73 | Snapend update server error |
|
|
703
|
-
| 74 | Snapend update timeout error |
|
|
704
|
-
| 75 | Snapend state error |
|
|
705
|
-
|
|
706
|
-
### Generate Errors
|
|
707
|
-
|
|
708
|
-
| Error Code | Description |
|
|
709
|
-
|------------|----------------------------------------------------------|
|
|
710
|
-
| 80 | Generic generate error |
|
|
711
|
-
| 81 | Generate profile error |
|
|
712
|
-
| 82 | Generate credentials error |
|
|
713
|
-
|
|
@@ -269,7 +269,7 @@ Publish a new version for your Snap. Only after your Snap version is published,
|
|
|
269
269
|
to use your snap in your Snapend. This command should be run after `push` or `publish-image` commands.
|
|
270
270
|
|
|
271
271
|
IMPORTANT: You need to have $byosnapProfile to run this command. BYOSnap profile is a JSON configuration
|
|
272
|
-
of your BYOSnap for the development, staging and production environments.
|
|
272
|
+
of your BYOSnap for the development, staging and production environments. You can generate a base version of this file using the `snapctl generate profile --category byosnap --out-path <output_path>` command.
|
|
273
273
|
|
|
274
274
|
```
|
|
275
275
|
# Help for the byosnap command
|
|
@@ -601,93 +601,3 @@ snapctl snapend state $snapend_id
|
|
|
601
601
|
| 80 | Generic generate error |
|
|
602
602
|
| 81 | Generate profile error |
|
|
603
603
|
| 82 | Generate credentials error |
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
## CLI Return Codes
|
|
608
|
-
|
|
609
|
-
| Error Code | Description |
|
|
610
|
-
|------------|----------------------------------------------------------|
|
|
611
|
-
| 0 | Operation completed successfully |
|
|
612
|
-
| 1 | General error |
|
|
613
|
-
| 2 | Input error |
|
|
614
|
-
|
|
615
|
-
### Configuration Errors
|
|
616
|
-
|
|
617
|
-
| Error Code | Description |
|
|
618
|
-
|------------|----------------------------------------------------------|
|
|
619
|
-
| 10 | Configuration incorrect |
|
|
620
|
-
| 11 | Configuration error |
|
|
621
|
-
| 12 | Dependency missing |
|
|
622
|
-
|
|
623
|
-
### BYOGS Errors
|
|
624
|
-
|
|
625
|
-
| Error Code | Description |
|
|
626
|
-
|------------|----------------------------------------------------------|
|
|
627
|
-
| 20 | Generic BYOGS error |
|
|
628
|
-
| 21 | BYOGS dependency missing |
|
|
629
|
-
| 22 | BYOGS ECR login error |
|
|
630
|
-
| 23 | BYOGS build error |
|
|
631
|
-
| 24 | BYOGS tag error |
|
|
632
|
-
| 25 | BYOGS publish error |
|
|
633
|
-
| 26 | BYOGS publish permission error |
|
|
634
|
-
| 27 | BYOGS publish duplicate tag error |
|
|
635
|
-
|
|
636
|
-
### BYOSNAP Errors
|
|
637
|
-
|
|
638
|
-
| Error Code | Description |
|
|
639
|
-
|------------|----------------------------------------------------------|
|
|
640
|
-
| 30 | Generic BYOSNAP error |
|
|
641
|
-
| 31 | BYOSNAP dependency missing |
|
|
642
|
-
| 32 | BYOSNAP ECR login error |
|
|
643
|
-
| 33 | BYOSNAP build error |
|
|
644
|
-
| 34 | BYOSNAP tag error |
|
|
645
|
-
| 35 | BYOSNAP publish image error |
|
|
646
|
-
| 36 | BYOSNAP publish image permission error |
|
|
647
|
-
| 37 | BYOSNAP publish image duplicate tag error |
|
|
648
|
-
| 38 | BYOSNAP create error |
|
|
649
|
-
| 39 | BYOSNAP create permission error |
|
|
650
|
-
| 40 | BYOSNAP create duplicate name error |
|
|
651
|
-
| 41 | BYOSNAP publish version error |
|
|
652
|
-
| 42 | BYOSNAP publish version permission error |
|
|
653
|
-
| 43 | BYOSNAP publish version duplicate version error |
|
|
654
|
-
| 44 | BYOSNAP publish version duplicate tag error |
|
|
655
|
-
|
|
656
|
-
### Game Errors
|
|
657
|
-
|
|
658
|
-
| Error Code | Description |
|
|
659
|
-
|------------|----------------------------------------------------------|
|
|
660
|
-
| 50 | Generic game error |
|
|
661
|
-
| 51 | Game create error |
|
|
662
|
-
| 52 | Game create permission error |
|
|
663
|
-
| 53 | Game create duplicate name error |
|
|
664
|
-
| 54 | Game enumerate error |
|
|
665
|
-
|
|
666
|
-
### Snapend Errors
|
|
667
|
-
|
|
668
|
-
| Error Code | Description |
|
|
669
|
-
|------------|----------------------------------------------------------|
|
|
670
|
-
| 60 | Generic snapend error |
|
|
671
|
-
| 61 | Snapend enumerate error |
|
|
672
|
-
| 62 | Snapend clone error |
|
|
673
|
-
| 63 | Snapend clone server error |
|
|
674
|
-
| 64 | Snapend clone timeout error |
|
|
675
|
-
| 65 | Snapend apply error |
|
|
676
|
-
| 66 | Snapend apply server error |
|
|
677
|
-
| 67 | Snapend apply timeout error |
|
|
678
|
-
| 68 | Snapend promote error |
|
|
679
|
-
| 69 | Snapend promote server error |
|
|
680
|
-
| 70 | Snapend promote timeout error |
|
|
681
|
-
| 71 | Snapend download error |
|
|
682
|
-
| 72 | Snapend update error |
|
|
683
|
-
| 73 | Snapend update server error |
|
|
684
|
-
| 74 | Snapend update timeout error |
|
|
685
|
-
| 75 | Snapend state error |
|
|
686
|
-
|
|
687
|
-
### Generate Errors
|
|
688
|
-
|
|
689
|
-
| Error Code | Description |
|
|
690
|
-
|------------|----------------------------------------------------------|
|
|
691
|
-
| 80 | Generic generate error |
|
|
692
|
-
| 81 | Generate profile error |
|
|
693
|
-
| 82 | Generate credentials error |
|
|
@@ -270,7 +270,7 @@ class Snapend:
|
|
|
270
270
|
SNAPCTL_INPUT_ERROR)
|
|
271
271
|
if self.env.upper() not in Snapend.ENV_TYPES:
|
|
272
272
|
snapctl_error(
|
|
273
|
-
"Invalid environment. Valid environments are "
|
|
273
|
+
"Invalid environment. Valid environments are " +
|
|
274
274
|
f"{', '.join(Snapend.ENV_TYPES)}.",
|
|
275
275
|
SNAPCTL_INPUT_ERROR
|
|
276
276
|
)
|
|
@@ -279,8 +279,8 @@ class Snapend:
|
|
|
279
279
|
"Missing required parameter: manifest_path", SNAPCTL_INPUT_ERROR)
|
|
280
280
|
if not os.path.isfile(self.manifest_path):
|
|
281
281
|
snapctl_error(
|
|
282
|
-
f"Invalid path {
|
|
283
|
-
|
|
282
|
+
f"Invalid path {self.manifest_path}. " +
|
|
283
|
+
"Please enter a valid path to the manifest file",
|
|
284
284
|
SNAPCTL_INPUT_ERROR
|
|
285
285
|
)
|
|
286
286
|
elif self.subcommand == 'apply':
|
|
@@ -290,8 +290,8 @@ class Snapend:
|
|
|
290
290
|
raise typer.Exit(code=SNAPCTL_INPUT_ERROR)
|
|
291
291
|
if not os.path.isfile(self.manifest_path):
|
|
292
292
|
snapctl_error(
|
|
293
|
-
f"Invalid path {
|
|
294
|
-
|
|
293
|
+
f"Invalid path {self.manifest_path}. " +
|
|
294
|
+
"Please enter a valid path to the manifest file",
|
|
295
295
|
SNAPCTL_INPUT_ERROR
|
|
296
296
|
)
|
|
297
297
|
if not self.manifest_file_name:
|
|
@@ -307,7 +307,7 @@ class Snapend:
|
|
|
307
307
|
"Missing required parameter: category", SNAPCTL_INPUT_ERROR)
|
|
308
308
|
if self.category not in Snapend.DOWNLOAD_CATEGORY:
|
|
309
309
|
snapctl_error(
|
|
310
|
-
"Invalid SDK category. Valid categories are "
|
|
310
|
+
"Invalid SDK category. Valid categories are " +
|
|
311
311
|
f"{', '.join(Snapend.DOWNLOAD_CATEGORY)}.",
|
|
312
312
|
SNAPCTL_INPUT_ERROR
|
|
313
313
|
)
|
|
@@ -317,14 +317,14 @@ class Snapend:
|
|
|
317
317
|
# Check the Protos category
|
|
318
318
|
if self.category == 'protos' and self.protos_category not in Snapend.PROTOS_CATEGORY:
|
|
319
319
|
snapctl_error(
|
|
320
|
-
"Invalid Protos category. Valid categories are "
|
|
320
|
+
"Invalid Protos category. Valid categories are " +
|
|
321
321
|
f"{', '.join(Snapend.PROTOS_CATEGORY)}.",
|
|
322
322
|
SNAPCTL_INPUT_ERROR
|
|
323
323
|
)
|
|
324
324
|
# Check the auth type
|
|
325
325
|
if self.category == 'server-sdk' and self.auth_type not in Snapend.AUTH_TYPES:
|
|
326
326
|
snapctl_error(
|
|
327
|
-
"Invalid auth type. Valid auth types are "
|
|
327
|
+
"Invalid auth type. Valid auth types are " +
|
|
328
328
|
f"{', '.join(Snapend.AUTH_TYPES)}.",
|
|
329
329
|
SNAPCTL_INPUT_ERROR
|
|
330
330
|
)
|
|
@@ -334,7 +334,7 @@ class Snapend:
|
|
|
334
334
|
SNAPCTL_INPUT_ERROR)
|
|
335
335
|
if self.out_path and not os.path.isdir(f"{self.out_path}"):
|
|
336
336
|
snapctl_error(
|
|
337
|
-
f"Invalid path {self.out_path}. "
|
|
337
|
+
f"Invalid path {self.out_path}. " +
|
|
338
338
|
"Please enter a valid path to save your output file",
|
|
339
339
|
SNAPCTL_INPUT_ERROR
|
|
340
340
|
)
|
|
@@ -416,7 +416,7 @@ class Snapend:
|
|
|
416
416
|
response = res.json()
|
|
417
417
|
if 'cluster' not in response or 'id' not in response['cluster']:
|
|
418
418
|
snapctl_error(
|
|
419
|
-
'Server Error. Unable to get a Snapend ID. '
|
|
419
|
+
'Server Error. Unable to get a Snapend ID. ' +
|
|
420
420
|
'Please try again in sometime.',
|
|
421
421
|
SNAPCTL_SNAPEND_CLONE_SERVER_ERROR,
|
|
422
422
|
progress
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|