mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Update vendored deps, including AWS SDK, openpgp, ftp, ...
This commit is contained in:
+5040
-447
File diff suppressed because it is too large
Load Diff
+76
@@ -72,10 +72,22 @@ type CloudFrontAPI interface {
|
||||
CreateDistributionWithTagsWithContext(aws.Context, *cloudfront.CreateDistributionWithTagsInput, ...request.Option) (*cloudfront.CreateDistributionWithTagsOutput, error)
|
||||
CreateDistributionWithTagsRequest(*cloudfront.CreateDistributionWithTagsInput) (*request.Request, *cloudfront.CreateDistributionWithTagsOutput)
|
||||
|
||||
CreateFieldLevelEncryptionConfig(*cloudfront.CreateFieldLevelEncryptionConfigInput) (*cloudfront.CreateFieldLevelEncryptionConfigOutput, error)
|
||||
CreateFieldLevelEncryptionConfigWithContext(aws.Context, *cloudfront.CreateFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.CreateFieldLevelEncryptionConfigOutput, error)
|
||||
CreateFieldLevelEncryptionConfigRequest(*cloudfront.CreateFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.CreateFieldLevelEncryptionConfigOutput)
|
||||
|
||||
CreateFieldLevelEncryptionProfile(*cloudfront.CreateFieldLevelEncryptionProfileInput) (*cloudfront.CreateFieldLevelEncryptionProfileOutput, error)
|
||||
CreateFieldLevelEncryptionProfileWithContext(aws.Context, *cloudfront.CreateFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.CreateFieldLevelEncryptionProfileOutput, error)
|
||||
CreateFieldLevelEncryptionProfileRequest(*cloudfront.CreateFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.CreateFieldLevelEncryptionProfileOutput)
|
||||
|
||||
CreateInvalidation(*cloudfront.CreateInvalidationInput) (*cloudfront.CreateInvalidationOutput, error)
|
||||
CreateInvalidationWithContext(aws.Context, *cloudfront.CreateInvalidationInput, ...request.Option) (*cloudfront.CreateInvalidationOutput, error)
|
||||
CreateInvalidationRequest(*cloudfront.CreateInvalidationInput) (*request.Request, *cloudfront.CreateInvalidationOutput)
|
||||
|
||||
CreatePublicKey(*cloudfront.CreatePublicKeyInput) (*cloudfront.CreatePublicKeyOutput, error)
|
||||
CreatePublicKeyWithContext(aws.Context, *cloudfront.CreatePublicKeyInput, ...request.Option) (*cloudfront.CreatePublicKeyOutput, error)
|
||||
CreatePublicKeyRequest(*cloudfront.CreatePublicKeyInput) (*request.Request, *cloudfront.CreatePublicKeyOutput)
|
||||
|
||||
CreateStreamingDistribution(*cloudfront.CreateStreamingDistributionInput) (*cloudfront.CreateStreamingDistributionOutput, error)
|
||||
CreateStreamingDistributionWithContext(aws.Context, *cloudfront.CreateStreamingDistributionInput, ...request.Option) (*cloudfront.CreateStreamingDistributionOutput, error)
|
||||
CreateStreamingDistributionRequest(*cloudfront.CreateStreamingDistributionInput) (*request.Request, *cloudfront.CreateStreamingDistributionOutput)
|
||||
@@ -92,6 +104,22 @@ type CloudFrontAPI interface {
|
||||
DeleteDistributionWithContext(aws.Context, *cloudfront.DeleteDistributionInput, ...request.Option) (*cloudfront.DeleteDistributionOutput, error)
|
||||
DeleteDistributionRequest(*cloudfront.DeleteDistributionInput) (*request.Request, *cloudfront.DeleteDistributionOutput)
|
||||
|
||||
DeleteFieldLevelEncryptionConfig(*cloudfront.DeleteFieldLevelEncryptionConfigInput) (*cloudfront.DeleteFieldLevelEncryptionConfigOutput, error)
|
||||
DeleteFieldLevelEncryptionConfigWithContext(aws.Context, *cloudfront.DeleteFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.DeleteFieldLevelEncryptionConfigOutput, error)
|
||||
DeleteFieldLevelEncryptionConfigRequest(*cloudfront.DeleteFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.DeleteFieldLevelEncryptionConfigOutput)
|
||||
|
||||
DeleteFieldLevelEncryptionProfile(*cloudfront.DeleteFieldLevelEncryptionProfileInput) (*cloudfront.DeleteFieldLevelEncryptionProfileOutput, error)
|
||||
DeleteFieldLevelEncryptionProfileWithContext(aws.Context, *cloudfront.DeleteFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.DeleteFieldLevelEncryptionProfileOutput, error)
|
||||
DeleteFieldLevelEncryptionProfileRequest(*cloudfront.DeleteFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.DeleteFieldLevelEncryptionProfileOutput)
|
||||
|
||||
DeletePublicKey(*cloudfront.DeletePublicKeyInput) (*cloudfront.DeletePublicKeyOutput, error)
|
||||
DeletePublicKeyWithContext(aws.Context, *cloudfront.DeletePublicKeyInput, ...request.Option) (*cloudfront.DeletePublicKeyOutput, error)
|
||||
DeletePublicKeyRequest(*cloudfront.DeletePublicKeyInput) (*request.Request, *cloudfront.DeletePublicKeyOutput)
|
||||
|
||||
DeleteServiceLinkedRole(*cloudfront.DeleteServiceLinkedRoleInput) (*cloudfront.DeleteServiceLinkedRoleOutput, error)
|
||||
DeleteServiceLinkedRoleWithContext(aws.Context, *cloudfront.DeleteServiceLinkedRoleInput, ...request.Option) (*cloudfront.DeleteServiceLinkedRoleOutput, error)
|
||||
DeleteServiceLinkedRoleRequest(*cloudfront.DeleteServiceLinkedRoleInput) (*request.Request, *cloudfront.DeleteServiceLinkedRoleOutput)
|
||||
|
||||
DeleteStreamingDistribution(*cloudfront.DeleteStreamingDistributionInput) (*cloudfront.DeleteStreamingDistributionOutput, error)
|
||||
DeleteStreamingDistributionWithContext(aws.Context, *cloudfront.DeleteStreamingDistributionInput, ...request.Option) (*cloudfront.DeleteStreamingDistributionOutput, error)
|
||||
DeleteStreamingDistributionRequest(*cloudfront.DeleteStreamingDistributionInput) (*request.Request, *cloudfront.DeleteStreamingDistributionOutput)
|
||||
@@ -112,10 +140,34 @@ type CloudFrontAPI interface {
|
||||
GetDistributionConfigWithContext(aws.Context, *cloudfront.GetDistributionConfigInput, ...request.Option) (*cloudfront.GetDistributionConfigOutput, error)
|
||||
GetDistributionConfigRequest(*cloudfront.GetDistributionConfigInput) (*request.Request, *cloudfront.GetDistributionConfigOutput)
|
||||
|
||||
GetFieldLevelEncryption(*cloudfront.GetFieldLevelEncryptionInput) (*cloudfront.GetFieldLevelEncryptionOutput, error)
|
||||
GetFieldLevelEncryptionWithContext(aws.Context, *cloudfront.GetFieldLevelEncryptionInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionOutput, error)
|
||||
GetFieldLevelEncryptionRequest(*cloudfront.GetFieldLevelEncryptionInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionOutput)
|
||||
|
||||
GetFieldLevelEncryptionConfig(*cloudfront.GetFieldLevelEncryptionConfigInput) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error)
|
||||
GetFieldLevelEncryptionConfigWithContext(aws.Context, *cloudfront.GetFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error)
|
||||
GetFieldLevelEncryptionConfigRequest(*cloudfront.GetFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionConfigOutput)
|
||||
|
||||
GetFieldLevelEncryptionProfile(*cloudfront.GetFieldLevelEncryptionProfileInput) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error)
|
||||
GetFieldLevelEncryptionProfileWithContext(aws.Context, *cloudfront.GetFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error)
|
||||
GetFieldLevelEncryptionProfileRequest(*cloudfront.GetFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileOutput)
|
||||
|
||||
GetFieldLevelEncryptionProfileConfig(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error)
|
||||
GetFieldLevelEncryptionProfileConfigWithContext(aws.Context, *cloudfront.GetFieldLevelEncryptionProfileConfigInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error)
|
||||
GetFieldLevelEncryptionProfileConfigRequest(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileConfigOutput)
|
||||
|
||||
GetInvalidation(*cloudfront.GetInvalidationInput) (*cloudfront.GetInvalidationOutput, error)
|
||||
GetInvalidationWithContext(aws.Context, *cloudfront.GetInvalidationInput, ...request.Option) (*cloudfront.GetInvalidationOutput, error)
|
||||
GetInvalidationRequest(*cloudfront.GetInvalidationInput) (*request.Request, *cloudfront.GetInvalidationOutput)
|
||||
|
||||
GetPublicKey(*cloudfront.GetPublicKeyInput) (*cloudfront.GetPublicKeyOutput, error)
|
||||
GetPublicKeyWithContext(aws.Context, *cloudfront.GetPublicKeyInput, ...request.Option) (*cloudfront.GetPublicKeyOutput, error)
|
||||
GetPublicKeyRequest(*cloudfront.GetPublicKeyInput) (*request.Request, *cloudfront.GetPublicKeyOutput)
|
||||
|
||||
GetPublicKeyConfig(*cloudfront.GetPublicKeyConfigInput) (*cloudfront.GetPublicKeyConfigOutput, error)
|
||||
GetPublicKeyConfigWithContext(aws.Context, *cloudfront.GetPublicKeyConfigInput, ...request.Option) (*cloudfront.GetPublicKeyConfigOutput, error)
|
||||
GetPublicKeyConfigRequest(*cloudfront.GetPublicKeyConfigInput) (*request.Request, *cloudfront.GetPublicKeyConfigOutput)
|
||||
|
||||
GetStreamingDistribution(*cloudfront.GetStreamingDistributionInput) (*cloudfront.GetStreamingDistributionOutput, error)
|
||||
GetStreamingDistributionWithContext(aws.Context, *cloudfront.GetStreamingDistributionInput, ...request.Option) (*cloudfront.GetStreamingDistributionOutput, error)
|
||||
GetStreamingDistributionRequest(*cloudfront.GetStreamingDistributionInput) (*request.Request, *cloudfront.GetStreamingDistributionOutput)
|
||||
@@ -142,6 +194,14 @@ type CloudFrontAPI interface {
|
||||
ListDistributionsByWebACLIdWithContext(aws.Context, *cloudfront.ListDistributionsByWebACLIdInput, ...request.Option) (*cloudfront.ListDistributionsByWebACLIdOutput, error)
|
||||
ListDistributionsByWebACLIdRequest(*cloudfront.ListDistributionsByWebACLIdInput) (*request.Request, *cloudfront.ListDistributionsByWebACLIdOutput)
|
||||
|
||||
ListFieldLevelEncryptionConfigs(*cloudfront.ListFieldLevelEncryptionConfigsInput) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error)
|
||||
ListFieldLevelEncryptionConfigsWithContext(aws.Context, *cloudfront.ListFieldLevelEncryptionConfigsInput, ...request.Option) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error)
|
||||
ListFieldLevelEncryptionConfigsRequest(*cloudfront.ListFieldLevelEncryptionConfigsInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionConfigsOutput)
|
||||
|
||||
ListFieldLevelEncryptionProfiles(*cloudfront.ListFieldLevelEncryptionProfilesInput) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error)
|
||||
ListFieldLevelEncryptionProfilesWithContext(aws.Context, *cloudfront.ListFieldLevelEncryptionProfilesInput, ...request.Option) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error)
|
||||
ListFieldLevelEncryptionProfilesRequest(*cloudfront.ListFieldLevelEncryptionProfilesInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionProfilesOutput)
|
||||
|
||||
ListInvalidations(*cloudfront.ListInvalidationsInput) (*cloudfront.ListInvalidationsOutput, error)
|
||||
ListInvalidationsWithContext(aws.Context, *cloudfront.ListInvalidationsInput, ...request.Option) (*cloudfront.ListInvalidationsOutput, error)
|
||||
ListInvalidationsRequest(*cloudfront.ListInvalidationsInput) (*request.Request, *cloudfront.ListInvalidationsOutput)
|
||||
@@ -149,6 +209,10 @@ type CloudFrontAPI interface {
|
||||
ListInvalidationsPages(*cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool) error
|
||||
ListInvalidationsPagesWithContext(aws.Context, *cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListPublicKeys(*cloudfront.ListPublicKeysInput) (*cloudfront.ListPublicKeysOutput, error)
|
||||
ListPublicKeysWithContext(aws.Context, *cloudfront.ListPublicKeysInput, ...request.Option) (*cloudfront.ListPublicKeysOutput, error)
|
||||
ListPublicKeysRequest(*cloudfront.ListPublicKeysInput) (*request.Request, *cloudfront.ListPublicKeysOutput)
|
||||
|
||||
ListStreamingDistributions(*cloudfront.ListStreamingDistributionsInput) (*cloudfront.ListStreamingDistributionsOutput, error)
|
||||
ListStreamingDistributionsWithContext(aws.Context, *cloudfront.ListStreamingDistributionsInput, ...request.Option) (*cloudfront.ListStreamingDistributionsOutput, error)
|
||||
ListStreamingDistributionsRequest(*cloudfront.ListStreamingDistributionsInput) (*request.Request, *cloudfront.ListStreamingDistributionsOutput)
|
||||
@@ -176,6 +240,18 @@ type CloudFrontAPI interface {
|
||||
UpdateDistributionWithContext(aws.Context, *cloudfront.UpdateDistributionInput, ...request.Option) (*cloudfront.UpdateDistributionOutput, error)
|
||||
UpdateDistributionRequest(*cloudfront.UpdateDistributionInput) (*request.Request, *cloudfront.UpdateDistributionOutput)
|
||||
|
||||
UpdateFieldLevelEncryptionConfig(*cloudfront.UpdateFieldLevelEncryptionConfigInput) (*cloudfront.UpdateFieldLevelEncryptionConfigOutput, error)
|
||||
UpdateFieldLevelEncryptionConfigWithContext(aws.Context, *cloudfront.UpdateFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.UpdateFieldLevelEncryptionConfigOutput, error)
|
||||
UpdateFieldLevelEncryptionConfigRequest(*cloudfront.UpdateFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.UpdateFieldLevelEncryptionConfigOutput)
|
||||
|
||||
UpdateFieldLevelEncryptionProfile(*cloudfront.UpdateFieldLevelEncryptionProfileInput) (*cloudfront.UpdateFieldLevelEncryptionProfileOutput, error)
|
||||
UpdateFieldLevelEncryptionProfileWithContext(aws.Context, *cloudfront.UpdateFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.UpdateFieldLevelEncryptionProfileOutput, error)
|
||||
UpdateFieldLevelEncryptionProfileRequest(*cloudfront.UpdateFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.UpdateFieldLevelEncryptionProfileOutput)
|
||||
|
||||
UpdatePublicKey(*cloudfront.UpdatePublicKeyInput) (*cloudfront.UpdatePublicKeyOutput, error)
|
||||
UpdatePublicKeyWithContext(aws.Context, *cloudfront.UpdatePublicKeyInput, ...request.Option) (*cloudfront.UpdatePublicKeyOutput, error)
|
||||
UpdatePublicKeyRequest(*cloudfront.UpdatePublicKeyInput) (*request.Request, *cloudfront.UpdatePublicKeyOutput)
|
||||
|
||||
UpdateStreamingDistribution(*cloudfront.UpdateStreamingDistributionInput) (*cloudfront.UpdateStreamingDistributionOutput, error)
|
||||
UpdateStreamingDistributionWithContext(aws.Context, *cloudfront.UpdateStreamingDistributionInput, ...request.Option) (*cloudfront.UpdateStreamingDistributionOutput, error)
|
||||
UpdateStreamingDistributionRequest(*cloudfront.UpdateStreamingDistributionInput) (*request.Request, *cloudfront.UpdateStreamingDistributionOutput)
|
||||
|
||||
+5
-5
@@ -4,18 +4,18 @@
|
||||
// requests to Amazon CloudFront.
|
||||
//
|
||||
// This is the Amazon CloudFront API Reference. This guide is for developers
|
||||
// who need detailed information about the CloudFront API actions, data types,
|
||||
// and errors. For detailed information about CloudFront features and their
|
||||
// associated API calls, see the Amazon CloudFront Developer Guide.
|
||||
// who need detailed information about CloudFront API actions, data types, and
|
||||
// errors. For detailed information about CloudFront features, see the Amazon
|
||||
// CloudFront Developer Guide.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25 for more information on this service.
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30 for more information on this service.
|
||||
//
|
||||
// See cloudfront package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfront/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon CloudFront with the SDK use the New function to create
|
||||
// To contact Amazon CloudFront with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
|
||||
+140
-2
@@ -18,6 +18,12 @@ const (
|
||||
// "CNAMEAlreadyExists".
|
||||
ErrCodeCNAMEAlreadyExists = "CNAMEAlreadyExists"
|
||||
|
||||
// ErrCodeCannotChangeImmutablePublicKeyFields for service response error code
|
||||
// "CannotChangeImmutablePublicKeyFields".
|
||||
//
|
||||
// You can't change the value of a public key.
|
||||
ErrCodeCannotChangeImmutablePublicKeyFields = "CannotChangeImmutablePublicKeyFields"
|
||||
|
||||
// ErrCodeDistributionAlreadyExists for service response error code
|
||||
// "DistributionAlreadyExists".
|
||||
//
|
||||
@@ -29,6 +35,43 @@ const (
|
||||
// "DistributionNotDisabled".
|
||||
ErrCodeDistributionNotDisabled = "DistributionNotDisabled"
|
||||
|
||||
// ErrCodeFieldLevelEncryptionConfigAlreadyExists for service response error code
|
||||
// "FieldLevelEncryptionConfigAlreadyExists".
|
||||
//
|
||||
// The specified configuration for field-level encryption already exists.
|
||||
ErrCodeFieldLevelEncryptionConfigAlreadyExists = "FieldLevelEncryptionConfigAlreadyExists"
|
||||
|
||||
// ErrCodeFieldLevelEncryptionConfigInUse for service response error code
|
||||
// "FieldLevelEncryptionConfigInUse".
|
||||
//
|
||||
// The specified configuration for field-level encryption is in use.
|
||||
ErrCodeFieldLevelEncryptionConfigInUse = "FieldLevelEncryptionConfigInUse"
|
||||
|
||||
// ErrCodeFieldLevelEncryptionProfileAlreadyExists for service response error code
|
||||
// "FieldLevelEncryptionProfileAlreadyExists".
|
||||
//
|
||||
// The specified profile for field-level encryption already exists.
|
||||
ErrCodeFieldLevelEncryptionProfileAlreadyExists = "FieldLevelEncryptionProfileAlreadyExists"
|
||||
|
||||
// ErrCodeFieldLevelEncryptionProfileInUse for service response error code
|
||||
// "FieldLevelEncryptionProfileInUse".
|
||||
//
|
||||
// The specified profile for field-level encryption is in use.
|
||||
ErrCodeFieldLevelEncryptionProfileInUse = "FieldLevelEncryptionProfileInUse"
|
||||
|
||||
// ErrCodeFieldLevelEncryptionProfileSizeExceeded for service response error code
|
||||
// "FieldLevelEncryptionProfileSizeExceeded".
|
||||
//
|
||||
// The maximum size of a profile for field-level encryption was exceeded.
|
||||
ErrCodeFieldLevelEncryptionProfileSizeExceeded = "FieldLevelEncryptionProfileSizeExceeded"
|
||||
|
||||
// ErrCodeIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior for service response error code
|
||||
// "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior".
|
||||
//
|
||||
// The specified configuration for field-level encryption can't be associated
|
||||
// with the specified cache behavior.
|
||||
ErrCodeIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior = "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"
|
||||
|
||||
// ErrCodeIllegalUpdate for service response error code
|
||||
// "IllegalUpdate".
|
||||
//
|
||||
@@ -38,7 +81,7 @@ const (
|
||||
// ErrCodeInconsistentQuantities for service response error code
|
||||
// "InconsistentQuantities".
|
||||
//
|
||||
// The value of Quantity and the size of Items do not match.
|
||||
// The value of Quantity and the size of Items don't match.
|
||||
ErrCodeInconsistentQuantities = "InconsistentQuantities"
|
||||
|
||||
// ErrCodeInvalidArgument for service response error code
|
||||
@@ -180,6 +223,18 @@ const (
|
||||
// The specified distribution does not exist.
|
||||
ErrCodeNoSuchDistribution = "NoSuchDistribution"
|
||||
|
||||
// ErrCodeNoSuchFieldLevelEncryptionConfig for service response error code
|
||||
// "NoSuchFieldLevelEncryptionConfig".
|
||||
//
|
||||
// The specified configuration for field-level encryption doesn't exist.
|
||||
ErrCodeNoSuchFieldLevelEncryptionConfig = "NoSuchFieldLevelEncryptionConfig"
|
||||
|
||||
// ErrCodeNoSuchFieldLevelEncryptionProfile for service response error code
|
||||
// "NoSuchFieldLevelEncryptionProfile".
|
||||
//
|
||||
// The specified profile for field-level encryption doesn't exist.
|
||||
ErrCodeNoSuchFieldLevelEncryptionProfile = "NoSuchFieldLevelEncryptionProfile"
|
||||
|
||||
// ErrCodeNoSuchInvalidation for service response error code
|
||||
// "NoSuchInvalidation".
|
||||
//
|
||||
@@ -192,6 +247,12 @@ const (
|
||||
// No origin exists with the specified Origin Id.
|
||||
ErrCodeNoSuchOrigin = "NoSuchOrigin"
|
||||
|
||||
// ErrCodeNoSuchPublicKey for service response error code
|
||||
// "NoSuchPublicKey".
|
||||
//
|
||||
// The specified public key doesn't exist.
|
||||
ErrCodeNoSuchPublicKey = "NoSuchPublicKey"
|
||||
|
||||
// ErrCodeNoSuchResource for service response error code
|
||||
// "NoSuchResource".
|
||||
ErrCodeNoSuchResource = "NoSuchResource"
|
||||
@@ -222,6 +283,28 @@ const (
|
||||
// to false.
|
||||
ErrCodePreconditionFailed = "PreconditionFailed"
|
||||
|
||||
// ErrCodePublicKeyAlreadyExists for service response error code
|
||||
// "PublicKeyAlreadyExists".
|
||||
//
|
||||
// The specified public key already exists.
|
||||
ErrCodePublicKeyAlreadyExists = "PublicKeyAlreadyExists"
|
||||
|
||||
// ErrCodePublicKeyInUse for service response error code
|
||||
// "PublicKeyInUse".
|
||||
//
|
||||
// The specified public key is in use.
|
||||
ErrCodePublicKeyInUse = "PublicKeyInUse"
|
||||
|
||||
// ErrCodeQueryArgProfileEmpty for service response error code
|
||||
// "QueryArgProfileEmpty".
|
||||
//
|
||||
// No profile specified for the field-level encryption query argument.
|
||||
ErrCodeQueryArgProfileEmpty = "QueryArgProfileEmpty"
|
||||
|
||||
// ErrCodeResourceInUse for service response error code
|
||||
// "ResourceInUse".
|
||||
ErrCodeResourceInUse = "ResourceInUse"
|
||||
|
||||
// ErrCodeStreamingDistributionAlreadyExists for service response error code
|
||||
// "StreamingDistributionAlreadyExists".
|
||||
ErrCodeStreamingDistributionAlreadyExists = "StreamingDistributionAlreadyExists"
|
||||
@@ -269,6 +352,13 @@ const (
|
||||
// allowed.
|
||||
ErrCodeTooManyDistributions = "TooManyDistributions"
|
||||
|
||||
// ErrCodeTooManyDistributionsAssociatedToFieldLevelEncryptionConfig for service response error code
|
||||
// "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig".
|
||||
//
|
||||
// The maximum number of distributions have been associated with the specified
|
||||
// configuration for field-level encryption.
|
||||
ErrCodeTooManyDistributionsAssociatedToFieldLevelEncryptionConfig = "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"
|
||||
|
||||
// ErrCodeTooManyDistributionsWithLambdaAssociations for service response error code
|
||||
// "TooManyDistributionsWithLambdaAssociations".
|
||||
//
|
||||
@@ -276,6 +366,47 @@ const (
|
||||
// Lambda function associations per owner to be exceeded.
|
||||
ErrCodeTooManyDistributionsWithLambdaAssociations = "TooManyDistributionsWithLambdaAssociations"
|
||||
|
||||
// ErrCodeTooManyFieldLevelEncryptionConfigs for service response error code
|
||||
// "TooManyFieldLevelEncryptionConfigs".
|
||||
//
|
||||
// The maximum number of configurations for field-level encryption have been
|
||||
// created.
|
||||
ErrCodeTooManyFieldLevelEncryptionConfigs = "TooManyFieldLevelEncryptionConfigs"
|
||||
|
||||
// ErrCodeTooManyFieldLevelEncryptionContentTypeProfiles for service response error code
|
||||
// "TooManyFieldLevelEncryptionContentTypeProfiles".
|
||||
//
|
||||
// The maximum number of content type profiles for field-level encryption have
|
||||
// been created.
|
||||
ErrCodeTooManyFieldLevelEncryptionContentTypeProfiles = "TooManyFieldLevelEncryptionContentTypeProfiles"
|
||||
|
||||
// ErrCodeTooManyFieldLevelEncryptionEncryptionEntities for service response error code
|
||||
// "TooManyFieldLevelEncryptionEncryptionEntities".
|
||||
//
|
||||
// The maximum number of encryption entities for field-level encryption have
|
||||
// been created.
|
||||
ErrCodeTooManyFieldLevelEncryptionEncryptionEntities = "TooManyFieldLevelEncryptionEncryptionEntities"
|
||||
|
||||
// ErrCodeTooManyFieldLevelEncryptionFieldPatterns for service response error code
|
||||
// "TooManyFieldLevelEncryptionFieldPatterns".
|
||||
//
|
||||
// The maximum number of field patterns for field-level encryption have been
|
||||
// created.
|
||||
ErrCodeTooManyFieldLevelEncryptionFieldPatterns = "TooManyFieldLevelEncryptionFieldPatterns"
|
||||
|
||||
// ErrCodeTooManyFieldLevelEncryptionProfiles for service response error code
|
||||
// "TooManyFieldLevelEncryptionProfiles".
|
||||
//
|
||||
// The maximum number of profiles for field-level encryption have been created.
|
||||
ErrCodeTooManyFieldLevelEncryptionProfiles = "TooManyFieldLevelEncryptionProfiles"
|
||||
|
||||
// ErrCodeTooManyFieldLevelEncryptionQueryArgProfiles for service response error code
|
||||
// "TooManyFieldLevelEncryptionQueryArgProfiles".
|
||||
//
|
||||
// The maximum number of query arg profiles for field-level encryption have
|
||||
// been created.
|
||||
ErrCodeTooManyFieldLevelEncryptionQueryArgProfiles = "TooManyFieldLevelEncryptionQueryArgProfiles"
|
||||
|
||||
// ErrCodeTooManyHeadersInForwardedValues for service response error code
|
||||
// "TooManyHeadersInForwardedValues".
|
||||
ErrCodeTooManyHeadersInForwardedValues = "TooManyHeadersInForwardedValues"
|
||||
@@ -304,6 +435,13 @@ const (
|
||||
// You cannot create more origins for the distribution.
|
||||
ErrCodeTooManyOrigins = "TooManyOrigins"
|
||||
|
||||
// ErrCodeTooManyPublicKeys for service response error code
|
||||
// "TooManyPublicKeys".
|
||||
//
|
||||
// The maximum number of public keys for field-level encryption have been created.
|
||||
// To create a new public key, delete one of the existing keys.
|
||||
ErrCodeTooManyPublicKeys = "TooManyPublicKeys"
|
||||
|
||||
// ErrCodeTooManyQueryStringParameters for service response error code
|
||||
// "TooManyQueryStringParameters".
|
||||
ErrCodeTooManyQueryStringParameters = "TooManyQueryStringParameters"
|
||||
@@ -328,6 +466,6 @@ const (
|
||||
// ErrCodeTrustedSignerDoesNotExist for service response error code
|
||||
// "TrustedSignerDoesNotExist".
|
||||
//
|
||||
// One or more of your trusted signers do not exist.
|
||||
// One or more of your trusted signers don't exist.
|
||||
ErrCodeTrustedSignerDoesNotExist = "TrustedSignerDoesNotExist"
|
||||
)
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-03-25",
|
||||
APIVersion: "2017-10-30",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
|
||||
+60
-22
@@ -4,8 +4,6 @@ import (
|
||||
"crypto/rsa"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestNewCookieSigner(t *testing.T) {
|
||||
@@ -15,26 +13,42 @@ func TestNewCookieSigner(t *testing.T) {
|
||||
}
|
||||
|
||||
signer := NewCookieSigner("keyID", privKey)
|
||||
assert.Equal(t, "keyID", signer.keyID)
|
||||
assert.Equal(t, privKey, signer.privKey)
|
||||
if e, a := "keyID", signer.keyID; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := privKey, signer.privKey; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSignCookie(t *testing.T) {
|
||||
privKey, err := rsa.GenerateKey(randReader, 1024)
|
||||
assert.NoError(t, err)
|
||||
if err != nil {
|
||||
t.Errorf("expect no error, got %v", err)
|
||||
}
|
||||
|
||||
signer := NewCookieSigner("keyID", privKey)
|
||||
cookies, err := signer.Sign("http*://*", time.Now().Add(1*time.Hour))
|
||||
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, CookiePolicyName, cookies[0].Name)
|
||||
assert.Equal(t, CookieSignatureName, cookies[1].Name)
|
||||
assert.Equal(t, CookieKeyIDName, cookies[2].Name)
|
||||
if err != nil {
|
||||
t.Errorf("expect no error, got %v", err)
|
||||
}
|
||||
if e, a := CookiePolicyName, cookies[0].Name; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := CookieSignatureName, cookies[1].Name; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := CookieKeyIDName, cookies[2].Name; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSignCookie_WithPolicy(t *testing.T) {
|
||||
privKey, err := rsa.GenerateKey(randReader, 1024)
|
||||
assert.NoError(t, err)
|
||||
if err != nil {
|
||||
t.Errorf("expect no error, got %v", err)
|
||||
}
|
||||
|
||||
p := &Policy{
|
||||
Statements: []Statement{
|
||||
@@ -50,15 +64,25 @@ func TestSignCookie_WithPolicy(t *testing.T) {
|
||||
signer := NewCookieSigner("keyID", privKey)
|
||||
cookies, err := signer.SignWithPolicy(p)
|
||||
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, CookiePolicyName, cookies[0].Name)
|
||||
assert.Equal(t, CookieSignatureName, cookies[1].Name)
|
||||
assert.Equal(t, CookieKeyIDName, cookies[2].Name)
|
||||
if err != nil {
|
||||
t.Errorf("expect no error, got %v", err)
|
||||
}
|
||||
if e, a := CookiePolicyName, cookies[0].Name; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := CookieSignatureName, cookies[1].Name; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := CookieKeyIDName, cookies[2].Name; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSignCookie_WithCookieOptions(t *testing.T) {
|
||||
privKey, err := rsa.GenerateKey(randReader, 1024)
|
||||
assert.NoError(t, err)
|
||||
if err != nil {
|
||||
t.Errorf("expect no error, got %v", err)
|
||||
}
|
||||
|
||||
expires := time.Now().Add(1 * time.Hour)
|
||||
|
||||
@@ -70,14 +94,28 @@ func TestSignCookie_WithCookieOptions(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, CookiePolicyName, cookies[0].Name)
|
||||
assert.Equal(t, CookieSignatureName, cookies[1].Name)
|
||||
assert.Equal(t, CookieKeyIDName, cookies[2].Name)
|
||||
if err != nil {
|
||||
t.Errorf("expect no error, got %v", err)
|
||||
}
|
||||
if e, a := CookiePolicyName, cookies[0].Name; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := CookieSignatureName, cookies[1].Name; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := CookieKeyIDName, cookies[2].Name; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
|
||||
for _, c := range cookies {
|
||||
assert.Equal(t, "/", c.Path)
|
||||
assert.Equal(t, ".example.com", c.Domain)
|
||||
assert.True(t, c.Secure)
|
||||
if e, a := "/", c.Path; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := ".example.com", c.Domain; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if !c.Secure {
|
||||
t.Errorf("expect to be true")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user