-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate checksum config check and workflow
- Loading branch information
Tianyi Wang
committed
Sep 29, 2024
1 parent
b93f439
commit 72c3ba6
Showing
40 changed files
with
236 additions
and
575 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,26 @@ | ||
package aws | ||
|
||
// RequestChecksumCalculation controls request checksum calculation workflow | ||
type RequestChecksumCalculation string | ||
type RequestChecksumCalculation int | ||
|
||
const ( | ||
// RequestChecksumCalculationWhenSupported indicates request checksum should be calculated if modeled | ||
RequestChecksumCalculationWhenSupported RequestChecksumCalculation = "whenSupported" | ||
// RequestChecksumCalculationWhenSupported indicates request checksum should be calculated if | ||
// client operation model has request checksum trait | ||
RequestChecksumCalculationWhenSupported RequestChecksumCalculation = 1 | ||
|
||
// RequestChecksumCalculationWhenRequired indicates request checksum should be calculated | ||
// if modeled and user set an algorithm | ||
RequestChecksumCalculationWhenRequired = "whenRequired" | ||
RequestChecksumCalculationWhenRequired = 2 | ||
) | ||
|
||
// ResponseChecksumValidation controls response checksum validation workflow | ||
type ResponseChecksumValidation string | ||
type ResponseChecksumValidation int | ||
|
||
const ( | ||
// ResponseChecksumValidationWhenSupported indicates response checksum should be validated if modeled | ||
ResponseChecksumValidationWhenSupported ResponseChecksumValidation = "whenSupported" | ||
ResponseChecksumValidationWhenSupported ResponseChecksumValidation = 1 | ||
|
||
// ResponseChecksumValidationWhenRequired indicates response checksum should be validated if modeled | ||
// and user enable that in vlidation mode cfg | ||
ResponseChecksumValidationWhenRequired = "whenRequired" | ||
) | ||
|
||
// RequireChecksum indicates if a checksum needs calculated/validated for a request/response | ||
type RequireChecksum string | ||
|
||
const ( | ||
// RequireChecksumTrue indicates checksum should be calculated/validated | ||
RequireChecksumTrue RequireChecksum = "true" | ||
|
||
// RequireChecksumFalse indicates checksum should not be calculated/validated | ||
RequireChecksumFalse RequireChecksum = "false" | ||
|
||
// RequireChecksumPending indicates further check is needed to decide | ||
RequireChecksumPending RequireChecksum = "pending" | ||
ResponseChecksumValidationWhenRequired = 2 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.