- // tag of the error XML response for a corresponding GetObject call. Cannot
- // be used with a successful StatusCode header or when the transformed object
- // is provided in the body. All error codes from S3 are sentence-cased. The
- // regular expression (regex) value is "^[A-Z][a-zA-Z]+$".
- ErrorCode *string `location:"header" locationName:"x-amz-fwd-error-code" type:"string"`
-
- // Contains a generic description of the error condition. Returned in the
- // tag of the error XML response for a corresponding GetObject call. Cannot
- // be used with a successful StatusCode header or when the transformed object
- // is provided in body.
- ErrorMessage *string `location:"header" locationName:"x-amz-fwd-error-message" type:"string"`
-
- // If the object expiration is configured (see PUT Bucket lifecycle), the response
- // includes this header. It includes the expiry-date and rule-id key-value pairs
- // that provide the object expiration information. The value of the rule-id
- // is URL-encoded.
- Expiration *string `location:"header" locationName:"x-amz-fwd-header-x-amz-expiration" type:"string"`
-
- // The date and time at which the object is no longer cacheable.
- Expires *time.Time `location:"header" locationName:"x-amz-fwd-header-Expires" type:"timestamp"`
-
- // The date and time that the object was last modified.
- LastModified *time.Time `location:"header" locationName:"x-amz-fwd-header-Last-Modified" type:"timestamp"`
-
- // A map of metadata to store with the object in S3.
- Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
-
- // Set to the number of metadata entries not returned in x-amz-meta headers.
- // This can happen if you create metadata using an API like SOAP that supports
- // more flexible metadata than the REST API. For example, using SOAP, you can
- // create metadata whose values are not legal HTTP headers.
- MissingMeta *int64 `location:"header" locationName:"x-amz-fwd-header-x-amz-missing-meta" type:"integer"`
-
- // Indicates whether an object stored in Amazon S3 has an active legal hold.
- ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-fwd-header-x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`
-
- // Indicates whether an object stored in Amazon S3 has Object Lock enabled.
- // For more information about S3 Object Lock, see Object Lock (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html).
- ObjectLockMode *string `location:"header" locationName:"x-amz-fwd-header-x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`
-
- // The date and time when Object Lock is configured to expire.
- ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-fwd-header-x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
-
- // The count of parts this object has.
- PartsCount *int64 `location:"header" locationName:"x-amz-fwd-header-x-amz-mp-parts-count" type:"integer"`
-
- // Indicates if request involves bucket that is either a source or destination
- // in a Replication rule. For more information about S3 Replication, see Replication
- // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html).
- ReplicationStatus *string `location:"header" locationName:"x-amz-fwd-header-x-amz-replication-status" type:"string" enum:"ReplicationStatus"`
-
- // If present, indicates that the requester was successfully charged for the
- // request.
- RequestCharged *string `location:"header" locationName:"x-amz-fwd-header-x-amz-request-charged" type:"string" enum:"RequestCharged"`
-
- // Route prefix to the HTTP URL generated.
- //
- // RequestRoute is a required field
- RequestRoute *string `location:"header" locationName:"x-amz-request-route" type:"string" required:"true"`
-
- // A single use encrypted token that maps WriteGetObjectResponse to the end
- // user GetObject request.
- //
- // RequestToken is a required field
- RequestToken *string `location:"header" locationName:"x-amz-request-token" type:"string" required:"true"`
-
- // Provides information about object restoration operation and expiration time
- // of the restored object copy.
- Restore *string `location:"header" locationName:"x-amz-fwd-header-x-amz-restore" type:"string"`
-
- // Encryption algorithm used if server-side encryption with a customer-provided
- // encryption key was specified for object stored in Amazon S3.
- SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm" type:"string"`
-
- // 128-bit MD5 digest of customer-provided encryption key used in Amazon S3
- // to encrypt data stored in S3. For more information, see Protecting data using
- // server-side encryption with customer-provided encryption keys (SSE-C) (https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html).
- SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5" type:"string"`
-
- // If present, specifies the ID of the Amazon Web Services Key Management Service
- // (Amazon Web Services KMS) symmetric encryption customer managed key that
- // was used for stored in Amazon S3 object.
- //
- // SSEKMSKeyId is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by WriteGetObjectResponseInput's
- // String and GoString methods.
- SSEKMSKeyId *string `location:"header" locationName:"x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
-
- // The server-side encryption algorithm used when storing requested object in
- // Amazon S3 (for example, AES256, aws:kms).
- ServerSideEncryption *string `location:"header" locationName:"x-amz-fwd-header-x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
-
- // The integer status code for an HTTP response of a corresponding GetObject
- // request. The following is a list of status codes.
- //
- // * 200 - OK
- //
- // * 206 - Partial Content
- //
- // * 304 - Not Modified
- //
- // * 400 - Bad Request
- //
- // * 401 - Unauthorized
- //
- // * 403 - Forbidden
- //
- // * 404 - Not Found
- //
- // * 405 - Method Not Allowed
- //
- // * 409 - Conflict
- //
- // * 411 - Length Required
- //
- // * 412 - Precondition Failed
- //
- // * 416 - Range Not Satisfiable
- //
- // * 500 - Internal Server Error
- //
- // * 503 - Service Unavailable
- StatusCode *int64 `location:"header" locationName:"x-amz-fwd-status" type:"integer"`
-
- // Provides storage class information of the object. Amazon S3 returns this
- // header for all objects except for S3 Standard storage class objects.
- //
- // For more information, see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html).
- StorageClass *string `location:"header" locationName:"x-amz-fwd-header-x-amz-storage-class" type:"string" enum:"StorageClass"`
-
- // The number of tags, if any, on the object.
- TagCount *int64 `location:"header" locationName:"x-amz-fwd-header-x-amz-tagging-count" type:"integer"`
-
- // An ID used to reference a specific version of the object.
- VersionId *string `location:"header" locationName:"x-amz-fwd-header-x-amz-version-id" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s WriteGetObjectResponseInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s WriteGetObjectResponseInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *WriteGetObjectResponseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "WriteGetObjectResponseInput"}
- if s.RequestRoute == nil {
- invalidParams.Add(request.NewErrParamRequired("RequestRoute"))
- }
- if s.RequestRoute != nil && len(*s.RequestRoute) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RequestRoute", 1))
- }
- if s.RequestToken == nil {
- invalidParams.Add(request.NewErrParamRequired("RequestToken"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAcceptRanges sets the AcceptRanges field's value.
-func (s *WriteGetObjectResponseInput) SetAcceptRanges(v string) *WriteGetObjectResponseInput {
- s.AcceptRanges = &v
- return s
-}
-
-// SetBody sets the Body field's value.
-func (s *WriteGetObjectResponseInput) SetBody(v io.ReadSeeker) *WriteGetObjectResponseInput {
- s.Body = v
- return s
-}
-
-// SetBucketKeyEnabled sets the BucketKeyEnabled field's value.
-func (s *WriteGetObjectResponseInput) SetBucketKeyEnabled(v bool) *WriteGetObjectResponseInput {
- s.BucketKeyEnabled = &v
- return s
-}
-
-// SetCacheControl sets the CacheControl field's value.
-func (s *WriteGetObjectResponseInput) SetCacheControl(v string) *WriteGetObjectResponseInput {
- s.CacheControl = &v
- return s
-}
-
-// SetChecksumCRC32 sets the ChecksumCRC32 field's value.
-func (s *WriteGetObjectResponseInput) SetChecksumCRC32(v string) *WriteGetObjectResponseInput {
- s.ChecksumCRC32 = &v
- return s
-}
-
-// SetChecksumCRC32C sets the ChecksumCRC32C field's value.
-func (s *WriteGetObjectResponseInput) SetChecksumCRC32C(v string) *WriteGetObjectResponseInput {
- s.ChecksumCRC32C = &v
- return s
-}
-
-// SetChecksumSHA1 sets the ChecksumSHA1 field's value.
-func (s *WriteGetObjectResponseInput) SetChecksumSHA1(v string) *WriteGetObjectResponseInput {
- s.ChecksumSHA1 = &v
- return s
-}
-
-// SetChecksumSHA256 sets the ChecksumSHA256 field's value.
-func (s *WriteGetObjectResponseInput) SetChecksumSHA256(v string) *WriteGetObjectResponseInput {
- s.ChecksumSHA256 = &v
- return s
-}
-
-// SetContentDisposition sets the ContentDisposition field's value.
-func (s *WriteGetObjectResponseInput) SetContentDisposition(v string) *WriteGetObjectResponseInput {
- s.ContentDisposition = &v
- return s
-}
-
-// SetContentEncoding sets the ContentEncoding field's value.
-func (s *WriteGetObjectResponseInput) SetContentEncoding(v string) *WriteGetObjectResponseInput {
- s.ContentEncoding = &v
- return s
-}
-
-// SetContentLanguage sets the ContentLanguage field's value.
-func (s *WriteGetObjectResponseInput) SetContentLanguage(v string) *WriteGetObjectResponseInput {
- s.ContentLanguage = &v
- return s
-}
-
-// SetContentLength sets the ContentLength field's value.
-func (s *WriteGetObjectResponseInput) SetContentLength(v int64) *WriteGetObjectResponseInput {
- s.ContentLength = &v
- return s
-}
-
-// SetContentRange sets the ContentRange field's value.
-func (s *WriteGetObjectResponseInput) SetContentRange(v string) *WriteGetObjectResponseInput {
- s.ContentRange = &v
- return s
-}
-
-// SetContentType sets the ContentType field's value.
-func (s *WriteGetObjectResponseInput) SetContentType(v string) *WriteGetObjectResponseInput {
- s.ContentType = &v
- return s
-}
-
-// SetDeleteMarker sets the DeleteMarker field's value.
-func (s *WriteGetObjectResponseInput) SetDeleteMarker(v bool) *WriteGetObjectResponseInput {
- s.DeleteMarker = &v
- return s
-}
-
-// SetETag sets the ETag field's value.
-func (s *WriteGetObjectResponseInput) SetETag(v string) *WriteGetObjectResponseInput {
- s.ETag = &v
- return s
-}
-
-// SetErrorCode sets the ErrorCode field's value.
-func (s *WriteGetObjectResponseInput) SetErrorCode(v string) *WriteGetObjectResponseInput {
- s.ErrorCode = &v
- return s
-}
-
-// SetErrorMessage sets the ErrorMessage field's value.
-func (s *WriteGetObjectResponseInput) SetErrorMessage(v string) *WriteGetObjectResponseInput {
- s.ErrorMessage = &v
- return s
-}
-
-// SetExpiration sets the Expiration field's value.
-func (s *WriteGetObjectResponseInput) SetExpiration(v string) *WriteGetObjectResponseInput {
- s.Expiration = &v
- return s
-}
-
-// SetExpires sets the Expires field's value.
-func (s *WriteGetObjectResponseInput) SetExpires(v time.Time) *WriteGetObjectResponseInput {
- s.Expires = &v
- return s
-}
-
-// SetLastModified sets the LastModified field's value.
-func (s *WriteGetObjectResponseInput) SetLastModified(v time.Time) *WriteGetObjectResponseInput {
- s.LastModified = &v
- return s
-}
-
-// SetMetadata sets the Metadata field's value.
-func (s *WriteGetObjectResponseInput) SetMetadata(v map[string]*string) *WriteGetObjectResponseInput {
- s.Metadata = v
- return s
-}
-
-// SetMissingMeta sets the MissingMeta field's value.
-func (s *WriteGetObjectResponseInput) SetMissingMeta(v int64) *WriteGetObjectResponseInput {
- s.MissingMeta = &v
- return s
-}
-
-// SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.
-func (s *WriteGetObjectResponseInput) SetObjectLockLegalHoldStatus(v string) *WriteGetObjectResponseInput {
- s.ObjectLockLegalHoldStatus = &v
- return s
-}
-
-// SetObjectLockMode sets the ObjectLockMode field's value.
-func (s *WriteGetObjectResponseInput) SetObjectLockMode(v string) *WriteGetObjectResponseInput {
- s.ObjectLockMode = &v
- return s
-}
-
-// SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.
-func (s *WriteGetObjectResponseInput) SetObjectLockRetainUntilDate(v time.Time) *WriteGetObjectResponseInput {
- s.ObjectLockRetainUntilDate = &v
- return s
-}
-
-// SetPartsCount sets the PartsCount field's value.
-func (s *WriteGetObjectResponseInput) SetPartsCount(v int64) *WriteGetObjectResponseInput {
- s.PartsCount = &v
- return s
-}
-
-// SetReplicationStatus sets the ReplicationStatus field's value.
-func (s *WriteGetObjectResponseInput) SetReplicationStatus(v string) *WriteGetObjectResponseInput {
- s.ReplicationStatus = &v
- return s
-}
-
-// SetRequestCharged sets the RequestCharged field's value.
-func (s *WriteGetObjectResponseInput) SetRequestCharged(v string) *WriteGetObjectResponseInput {
- s.RequestCharged = &v
- return s
-}
-
-// SetRequestRoute sets the RequestRoute field's value.
-func (s *WriteGetObjectResponseInput) SetRequestRoute(v string) *WriteGetObjectResponseInput {
- s.RequestRoute = &v
- return s
-}
-
-// SetRequestToken sets the RequestToken field's value.
-func (s *WriteGetObjectResponseInput) SetRequestToken(v string) *WriteGetObjectResponseInput {
- s.RequestToken = &v
- return s
-}
-
-// SetRestore sets the Restore field's value.
-func (s *WriteGetObjectResponseInput) SetRestore(v string) *WriteGetObjectResponseInput {
- s.Restore = &v
- return s
-}
-
-// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
-func (s *WriteGetObjectResponseInput) SetSSECustomerAlgorithm(v string) *WriteGetObjectResponseInput {
- s.SSECustomerAlgorithm = &v
- return s
-}
-
-// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
-func (s *WriteGetObjectResponseInput) SetSSECustomerKeyMD5(v string) *WriteGetObjectResponseInput {
- s.SSECustomerKeyMD5 = &v
- return s
-}
-
-// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
-func (s *WriteGetObjectResponseInput) SetSSEKMSKeyId(v string) *WriteGetObjectResponseInput {
- s.SSEKMSKeyId = &v
- return s
-}
-
-// SetServerSideEncryption sets the ServerSideEncryption field's value.
-func (s *WriteGetObjectResponseInput) SetServerSideEncryption(v string) *WriteGetObjectResponseInput {
- s.ServerSideEncryption = &v
- return s
-}
-
-// SetStatusCode sets the StatusCode field's value.
-func (s *WriteGetObjectResponseInput) SetStatusCode(v int64) *WriteGetObjectResponseInput {
- s.StatusCode = &v
- return s
-}
-
-// SetStorageClass sets the StorageClass field's value.
-func (s *WriteGetObjectResponseInput) SetStorageClass(v string) *WriteGetObjectResponseInput {
- s.StorageClass = &v
- return s
-}
-
-// SetTagCount sets the TagCount field's value.
-func (s *WriteGetObjectResponseInput) SetTagCount(v int64) *WriteGetObjectResponseInput {
- s.TagCount = &v
- return s
-}
-
-// SetVersionId sets the VersionId field's value.
-func (s *WriteGetObjectResponseInput) SetVersionId(v string) *WriteGetObjectResponseInput {
- s.VersionId = &v
- return s
-}
-
-func (s *WriteGetObjectResponseInput) hostLabels() map[string]string {
- return map[string]string{
- "RequestRoute": aws.StringValue(s.RequestRoute),
- }
-}
-
-type WriteGetObjectResponseOutput struct {
- _ struct{} `type:"structure"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s WriteGetObjectResponseOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s WriteGetObjectResponseOutput) GoString() string {
- return s.String()
-}
-
-const (
- // AnalyticsS3ExportFileFormatCsv is a AnalyticsS3ExportFileFormat enum value
- AnalyticsS3ExportFileFormatCsv = "CSV"
-)
-
-// AnalyticsS3ExportFileFormat_Values returns all elements of the AnalyticsS3ExportFileFormat enum
-func AnalyticsS3ExportFileFormat_Values() []string {
- return []string{
- AnalyticsS3ExportFileFormatCsv,
- }
-}
-
-const (
- // ArchiveStatusArchiveAccess is a ArchiveStatus enum value
- ArchiveStatusArchiveAccess = "ARCHIVE_ACCESS"
-
- // ArchiveStatusDeepArchiveAccess is a ArchiveStatus enum value
- ArchiveStatusDeepArchiveAccess = "DEEP_ARCHIVE_ACCESS"
-)
-
-// ArchiveStatus_Values returns all elements of the ArchiveStatus enum
-func ArchiveStatus_Values() []string {
- return []string{
- ArchiveStatusArchiveAccess,
- ArchiveStatusDeepArchiveAccess,
- }
-}
-
-const (
- // BucketAccelerateStatusEnabled is a BucketAccelerateStatus enum value
- BucketAccelerateStatusEnabled = "Enabled"
-
- // BucketAccelerateStatusSuspended is a BucketAccelerateStatus enum value
- BucketAccelerateStatusSuspended = "Suspended"
-)
-
-// BucketAccelerateStatus_Values returns all elements of the BucketAccelerateStatus enum
-func BucketAccelerateStatus_Values() []string {
- return []string{
- BucketAccelerateStatusEnabled,
- BucketAccelerateStatusSuspended,
- }
-}
-
-const (
- // BucketCannedACLPrivate is a BucketCannedACL enum value
- BucketCannedACLPrivate = "private"
-
- // BucketCannedACLPublicRead is a BucketCannedACL enum value
- BucketCannedACLPublicRead = "public-read"
-
- // BucketCannedACLPublicReadWrite is a BucketCannedACL enum value
- BucketCannedACLPublicReadWrite = "public-read-write"
-
- // BucketCannedACLAuthenticatedRead is a BucketCannedACL enum value
- BucketCannedACLAuthenticatedRead = "authenticated-read"
-)
-
-// BucketCannedACL_Values returns all elements of the BucketCannedACL enum
-func BucketCannedACL_Values() []string {
- return []string{
- BucketCannedACLPrivate,
- BucketCannedACLPublicRead,
- BucketCannedACLPublicReadWrite,
- BucketCannedACLAuthenticatedRead,
- }
-}
-
-const (
- // BucketLocationConstraintAfSouth1 is a BucketLocationConstraint enum value
- BucketLocationConstraintAfSouth1 = "af-south-1"
-
- // BucketLocationConstraintApEast1 is a BucketLocationConstraint enum value
- BucketLocationConstraintApEast1 = "ap-east-1"
-
- // BucketLocationConstraintApNortheast1 is a BucketLocationConstraint enum value
- BucketLocationConstraintApNortheast1 = "ap-northeast-1"
-
- // BucketLocationConstraintApNortheast2 is a BucketLocationConstraint enum value
- BucketLocationConstraintApNortheast2 = "ap-northeast-2"
-
- // BucketLocationConstraintApNortheast3 is a BucketLocationConstraint enum value
- BucketLocationConstraintApNortheast3 = "ap-northeast-3"
-
- // BucketLocationConstraintApSouth1 is a BucketLocationConstraint enum value
- BucketLocationConstraintApSouth1 = "ap-south-1"
-
- // BucketLocationConstraintApSoutheast1 is a BucketLocationConstraint enum value
- BucketLocationConstraintApSoutheast1 = "ap-southeast-1"
-
- // BucketLocationConstraintApSoutheast2 is a BucketLocationConstraint enum value
- BucketLocationConstraintApSoutheast2 = "ap-southeast-2"
-
- // BucketLocationConstraintApSoutheast3 is a BucketLocationConstraint enum value
- BucketLocationConstraintApSoutheast3 = "ap-southeast-3"
-
- // BucketLocationConstraintCaCentral1 is a BucketLocationConstraint enum value
- BucketLocationConstraintCaCentral1 = "ca-central-1"
-
- // BucketLocationConstraintCnNorth1 is a BucketLocationConstraint enum value
- BucketLocationConstraintCnNorth1 = "cn-north-1"
-
- // BucketLocationConstraintCnNorthwest1 is a BucketLocationConstraint enum value
- BucketLocationConstraintCnNorthwest1 = "cn-northwest-1"
-
- // BucketLocationConstraintEu is a BucketLocationConstraint enum value
- BucketLocationConstraintEu = "EU"
-
- // BucketLocationConstraintEuCentral1 is a BucketLocationConstraint enum value
- BucketLocationConstraintEuCentral1 = "eu-central-1"
-
- // BucketLocationConstraintEuNorth1 is a BucketLocationConstraint enum value
- BucketLocationConstraintEuNorth1 = "eu-north-1"
-
- // BucketLocationConstraintEuSouth1 is a BucketLocationConstraint enum value
- BucketLocationConstraintEuSouth1 = "eu-south-1"
-
- // BucketLocationConstraintEuWest1 is a BucketLocationConstraint enum value
- BucketLocationConstraintEuWest1 = "eu-west-1"
-
- // BucketLocationConstraintEuWest2 is a BucketLocationConstraint enum value
- BucketLocationConstraintEuWest2 = "eu-west-2"
-
- // BucketLocationConstraintEuWest3 is a BucketLocationConstraint enum value
- BucketLocationConstraintEuWest3 = "eu-west-3"
-
- // BucketLocationConstraintMeSouth1 is a BucketLocationConstraint enum value
- BucketLocationConstraintMeSouth1 = "me-south-1"
-
- // BucketLocationConstraintSaEast1 is a BucketLocationConstraint enum value
- BucketLocationConstraintSaEast1 = "sa-east-1"
-
- // BucketLocationConstraintUsEast2 is a BucketLocationConstraint enum value
- BucketLocationConstraintUsEast2 = "us-east-2"
-
- // BucketLocationConstraintUsGovEast1 is a BucketLocationConstraint enum value
- BucketLocationConstraintUsGovEast1 = "us-gov-east-1"
-
- // BucketLocationConstraintUsGovWest1 is a BucketLocationConstraint enum value
- BucketLocationConstraintUsGovWest1 = "us-gov-west-1"
-
- // BucketLocationConstraintUsWest1 is a BucketLocationConstraint enum value
- BucketLocationConstraintUsWest1 = "us-west-1"
-
- // BucketLocationConstraintUsWest2 is a BucketLocationConstraint enum value
- BucketLocationConstraintUsWest2 = "us-west-2"
-)
-
-// BucketLocationConstraint_Values returns all elements of the BucketLocationConstraint enum
-func BucketLocationConstraint_Values() []string {
- return []string{
- BucketLocationConstraintAfSouth1,
- BucketLocationConstraintApEast1,
- BucketLocationConstraintApNortheast1,
- BucketLocationConstraintApNortheast2,
- BucketLocationConstraintApNortheast3,
- BucketLocationConstraintApSouth1,
- BucketLocationConstraintApSoutheast1,
- BucketLocationConstraintApSoutheast2,
- BucketLocationConstraintApSoutheast3,
- BucketLocationConstraintCaCentral1,
- BucketLocationConstraintCnNorth1,
- BucketLocationConstraintCnNorthwest1,
- BucketLocationConstraintEu,
- BucketLocationConstraintEuCentral1,
- BucketLocationConstraintEuNorth1,
- BucketLocationConstraintEuSouth1,
- BucketLocationConstraintEuWest1,
- BucketLocationConstraintEuWest2,
- BucketLocationConstraintEuWest3,
- BucketLocationConstraintMeSouth1,
- BucketLocationConstraintSaEast1,
- BucketLocationConstraintUsEast2,
- BucketLocationConstraintUsGovEast1,
- BucketLocationConstraintUsGovWest1,
- BucketLocationConstraintUsWest1,
- BucketLocationConstraintUsWest2,
- }
-}
-
-const (
- // BucketLogsPermissionFullControl is a BucketLogsPermission enum value
- BucketLogsPermissionFullControl = "FULL_CONTROL"
-
- // BucketLogsPermissionRead is a BucketLogsPermission enum value
- BucketLogsPermissionRead = "READ"
-
- // BucketLogsPermissionWrite is a BucketLogsPermission enum value
- BucketLogsPermissionWrite = "WRITE"
-)
-
-// BucketLogsPermission_Values returns all elements of the BucketLogsPermission enum
-func BucketLogsPermission_Values() []string {
- return []string{
- BucketLogsPermissionFullControl,
- BucketLogsPermissionRead,
- BucketLogsPermissionWrite,
- }
-}
-
-const (
- // BucketVersioningStatusEnabled is a BucketVersioningStatus enum value
- BucketVersioningStatusEnabled = "Enabled"
-
- // BucketVersioningStatusSuspended is a BucketVersioningStatus enum value
- BucketVersioningStatusSuspended = "Suspended"
-)
-
-// BucketVersioningStatus_Values returns all elements of the BucketVersioningStatus enum
-func BucketVersioningStatus_Values() []string {
- return []string{
- BucketVersioningStatusEnabled,
- BucketVersioningStatusSuspended,
- }
-}
-
-const (
- // ChecksumAlgorithmCrc32 is a ChecksumAlgorithm enum value
- ChecksumAlgorithmCrc32 = "CRC32"
-
- // ChecksumAlgorithmCrc32c is a ChecksumAlgorithm enum value
- ChecksumAlgorithmCrc32c = "CRC32C"
-
- // ChecksumAlgorithmSha1 is a ChecksumAlgorithm enum value
- ChecksumAlgorithmSha1 = "SHA1"
-
- // ChecksumAlgorithmSha256 is a ChecksumAlgorithm enum value
- ChecksumAlgorithmSha256 = "SHA256"
-)
-
-// ChecksumAlgorithm_Values returns all elements of the ChecksumAlgorithm enum
-func ChecksumAlgorithm_Values() []string {
- return []string{
- ChecksumAlgorithmCrc32,
- ChecksumAlgorithmCrc32c,
- ChecksumAlgorithmSha1,
- ChecksumAlgorithmSha256,
- }
-}
-
-const (
- // ChecksumModeEnabled is a ChecksumMode enum value
- ChecksumModeEnabled = "ENABLED"
-)
-
-// ChecksumMode_Values returns all elements of the ChecksumMode enum
-func ChecksumMode_Values() []string {
- return []string{
- ChecksumModeEnabled,
- }
-}
-
-const (
- // CompressionTypeNone is a CompressionType enum value
- CompressionTypeNone = "NONE"
-
- // CompressionTypeGzip is a CompressionType enum value
- CompressionTypeGzip = "GZIP"
-
- // CompressionTypeBzip2 is a CompressionType enum value
- CompressionTypeBzip2 = "BZIP2"
-)
-
-// CompressionType_Values returns all elements of the CompressionType enum
-func CompressionType_Values() []string {
- return []string{
- CompressionTypeNone,
- CompressionTypeGzip,
- CompressionTypeBzip2,
- }
-}
-
-const (
- // DeleteMarkerReplicationStatusEnabled is a DeleteMarkerReplicationStatus enum value
- DeleteMarkerReplicationStatusEnabled = "Enabled"
-
- // DeleteMarkerReplicationStatusDisabled is a DeleteMarkerReplicationStatus enum value
- DeleteMarkerReplicationStatusDisabled = "Disabled"
-)
-
-// DeleteMarkerReplicationStatus_Values returns all elements of the DeleteMarkerReplicationStatus enum
-func DeleteMarkerReplicationStatus_Values() []string {
- return []string{
- DeleteMarkerReplicationStatusEnabled,
- DeleteMarkerReplicationStatusDisabled,
- }
-}
-
-// Requests Amazon S3 to encode the object keys in the response and specifies
-// the encoding method to use. An object key can contain any Unicode character;
-// however, the XML 1.0 parser cannot parse some characters, such as characters
-// with an ASCII value from 0 to 10. For characters that are not supported in
-// XML 1.0, you can add this parameter to request that Amazon S3 encode the
-// keys in the response.
-const (
- // EncodingTypeUrl is a EncodingType enum value
- EncodingTypeUrl = "url"
-)
-
-// EncodingType_Values returns all elements of the EncodingType enum
-func EncodingType_Values() []string {
- return []string{
- EncodingTypeUrl,
- }
-}
-
-// The bucket event for which to send notifications.
-const (
- // EventS3ReducedRedundancyLostObject is a Event enum value
- EventS3ReducedRedundancyLostObject = "s3:ReducedRedundancyLostObject"
-
- // EventS3ObjectCreated is a Event enum value
- EventS3ObjectCreated = "s3:ObjectCreated:*"
-
- // EventS3ObjectCreatedPut is a Event enum value
- EventS3ObjectCreatedPut = "s3:ObjectCreated:Put"
-
- // EventS3ObjectCreatedPost is a Event enum value
- EventS3ObjectCreatedPost = "s3:ObjectCreated:Post"
-
- // EventS3ObjectCreatedCopy is a Event enum value
- EventS3ObjectCreatedCopy = "s3:ObjectCreated:Copy"
-
- // EventS3ObjectCreatedCompleteMultipartUpload is a Event enum value
- EventS3ObjectCreatedCompleteMultipartUpload = "s3:ObjectCreated:CompleteMultipartUpload"
-
- // EventS3ObjectRemoved is a Event enum value
- EventS3ObjectRemoved = "s3:ObjectRemoved:*"
-
- // EventS3ObjectRemovedDelete is a Event enum value
- EventS3ObjectRemovedDelete = "s3:ObjectRemoved:Delete"
-
- // EventS3ObjectRemovedDeleteMarkerCreated is a Event enum value
- EventS3ObjectRemovedDeleteMarkerCreated = "s3:ObjectRemoved:DeleteMarkerCreated"
-
- // EventS3ObjectRestore is a Event enum value
- EventS3ObjectRestore = "s3:ObjectRestore:*"
-
- // EventS3ObjectRestorePost is a Event enum value
- EventS3ObjectRestorePost = "s3:ObjectRestore:Post"
-
- // EventS3ObjectRestoreCompleted is a Event enum value
- EventS3ObjectRestoreCompleted = "s3:ObjectRestore:Completed"
-
- // EventS3Replication is a Event enum value
- EventS3Replication = "s3:Replication:*"
-
- // EventS3ReplicationOperationFailedReplication is a Event enum value
- EventS3ReplicationOperationFailedReplication = "s3:Replication:OperationFailedReplication"
-
- // EventS3ReplicationOperationNotTracked is a Event enum value
- EventS3ReplicationOperationNotTracked = "s3:Replication:OperationNotTracked"
-
- // EventS3ReplicationOperationMissedThreshold is a Event enum value
- EventS3ReplicationOperationMissedThreshold = "s3:Replication:OperationMissedThreshold"
-
- // EventS3ReplicationOperationReplicatedAfterThreshold is a Event enum value
- EventS3ReplicationOperationReplicatedAfterThreshold = "s3:Replication:OperationReplicatedAfterThreshold"
-
- // EventS3ObjectRestoreDelete is a Event enum value
- EventS3ObjectRestoreDelete = "s3:ObjectRestore:Delete"
-
- // EventS3LifecycleTransition is a Event enum value
- EventS3LifecycleTransition = "s3:LifecycleTransition"
-
- // EventS3IntelligentTiering is a Event enum value
- EventS3IntelligentTiering = "s3:IntelligentTiering"
-
- // EventS3ObjectAclPut is a Event enum value
- EventS3ObjectAclPut = "s3:ObjectAcl:Put"
-
- // EventS3LifecycleExpiration is a Event enum value
- EventS3LifecycleExpiration = "s3:LifecycleExpiration:*"
-
- // EventS3LifecycleExpirationDelete is a Event enum value
- EventS3LifecycleExpirationDelete = "s3:LifecycleExpiration:Delete"
-
- // EventS3LifecycleExpirationDeleteMarkerCreated is a Event enum value
- EventS3LifecycleExpirationDeleteMarkerCreated = "s3:LifecycleExpiration:DeleteMarkerCreated"
-
- // EventS3ObjectTagging is a Event enum value
- EventS3ObjectTagging = "s3:ObjectTagging:*"
-
- // EventS3ObjectTaggingPut is a Event enum value
- EventS3ObjectTaggingPut = "s3:ObjectTagging:Put"
-
- // EventS3ObjectTaggingDelete is a Event enum value
- EventS3ObjectTaggingDelete = "s3:ObjectTagging:Delete"
-)
-
-// Event_Values returns all elements of the Event enum
-func Event_Values() []string {
- return []string{
- EventS3ReducedRedundancyLostObject,
- EventS3ObjectCreated,
- EventS3ObjectCreatedPut,
- EventS3ObjectCreatedPost,
- EventS3ObjectCreatedCopy,
- EventS3ObjectCreatedCompleteMultipartUpload,
- EventS3ObjectRemoved,
- EventS3ObjectRemovedDelete,
- EventS3ObjectRemovedDeleteMarkerCreated,
- EventS3ObjectRestore,
- EventS3ObjectRestorePost,
- EventS3ObjectRestoreCompleted,
- EventS3Replication,
- EventS3ReplicationOperationFailedReplication,
- EventS3ReplicationOperationNotTracked,
- EventS3ReplicationOperationMissedThreshold,
- EventS3ReplicationOperationReplicatedAfterThreshold,
- EventS3ObjectRestoreDelete,
- EventS3LifecycleTransition,
- EventS3IntelligentTiering,
- EventS3ObjectAclPut,
- EventS3LifecycleExpiration,
- EventS3LifecycleExpirationDelete,
- EventS3LifecycleExpirationDeleteMarkerCreated,
- EventS3ObjectTagging,
- EventS3ObjectTaggingPut,
- EventS3ObjectTaggingDelete,
- }
-}
-
-const (
- // ExistingObjectReplicationStatusEnabled is a ExistingObjectReplicationStatus enum value
- ExistingObjectReplicationStatusEnabled = "Enabled"
-
- // ExistingObjectReplicationStatusDisabled is a ExistingObjectReplicationStatus enum value
- ExistingObjectReplicationStatusDisabled = "Disabled"
-)
-
-// ExistingObjectReplicationStatus_Values returns all elements of the ExistingObjectReplicationStatus enum
-func ExistingObjectReplicationStatus_Values() []string {
- return []string{
- ExistingObjectReplicationStatusEnabled,
- ExistingObjectReplicationStatusDisabled,
- }
-}
-
-const (
- // ExpirationStatusEnabled is a ExpirationStatus enum value
- ExpirationStatusEnabled = "Enabled"
-
- // ExpirationStatusDisabled is a ExpirationStatus enum value
- ExpirationStatusDisabled = "Disabled"
-)
-
-// ExpirationStatus_Values returns all elements of the ExpirationStatus enum
-func ExpirationStatus_Values() []string {
- return []string{
- ExpirationStatusEnabled,
- ExpirationStatusDisabled,
- }
-}
-
-const (
- // ExpressionTypeSql is a ExpressionType enum value
- ExpressionTypeSql = "SQL"
-)
-
-// ExpressionType_Values returns all elements of the ExpressionType enum
-func ExpressionType_Values() []string {
- return []string{
- ExpressionTypeSql,
- }
-}
-
-const (
- // FileHeaderInfoUse is a FileHeaderInfo enum value
- FileHeaderInfoUse = "USE"
-
- // FileHeaderInfoIgnore is a FileHeaderInfo enum value
- FileHeaderInfoIgnore = "IGNORE"
-
- // FileHeaderInfoNone is a FileHeaderInfo enum value
- FileHeaderInfoNone = "NONE"
-)
-
-// FileHeaderInfo_Values returns all elements of the FileHeaderInfo enum
-func FileHeaderInfo_Values() []string {
- return []string{
- FileHeaderInfoUse,
- FileHeaderInfoIgnore,
- FileHeaderInfoNone,
- }
-}
-
-const (
- // FilterRuleNamePrefix is a FilterRuleName enum value
- FilterRuleNamePrefix = "prefix"
-
- // FilterRuleNameSuffix is a FilterRuleName enum value
- FilterRuleNameSuffix = "suffix"
-)
-
-// FilterRuleName_Values returns all elements of the FilterRuleName enum
-func FilterRuleName_Values() []string {
- return []string{
- FilterRuleNamePrefix,
- FilterRuleNameSuffix,
- }
-}
-
-const (
- // IntelligentTieringAccessTierArchiveAccess is a IntelligentTieringAccessTier enum value
- IntelligentTieringAccessTierArchiveAccess = "ARCHIVE_ACCESS"
-
- // IntelligentTieringAccessTierDeepArchiveAccess is a IntelligentTieringAccessTier enum value
- IntelligentTieringAccessTierDeepArchiveAccess = "DEEP_ARCHIVE_ACCESS"
-)
-
-// IntelligentTieringAccessTier_Values returns all elements of the IntelligentTieringAccessTier enum
-func IntelligentTieringAccessTier_Values() []string {
- return []string{
- IntelligentTieringAccessTierArchiveAccess,
- IntelligentTieringAccessTierDeepArchiveAccess,
- }
-}
-
-const (
- // IntelligentTieringStatusEnabled is a IntelligentTieringStatus enum value
- IntelligentTieringStatusEnabled = "Enabled"
-
- // IntelligentTieringStatusDisabled is a IntelligentTieringStatus enum value
- IntelligentTieringStatusDisabled = "Disabled"
-)
-
-// IntelligentTieringStatus_Values returns all elements of the IntelligentTieringStatus enum
-func IntelligentTieringStatus_Values() []string {
- return []string{
- IntelligentTieringStatusEnabled,
- IntelligentTieringStatusDisabled,
- }
-}
-
-const (
- // InventoryFormatCsv is a InventoryFormat enum value
- InventoryFormatCsv = "CSV"
-
- // InventoryFormatOrc is a InventoryFormat enum value
- InventoryFormatOrc = "ORC"
-
- // InventoryFormatParquet is a InventoryFormat enum value
- InventoryFormatParquet = "Parquet"
-)
-
-// InventoryFormat_Values returns all elements of the InventoryFormat enum
-func InventoryFormat_Values() []string {
- return []string{
- InventoryFormatCsv,
- InventoryFormatOrc,
- InventoryFormatParquet,
- }
-}
-
-const (
- // InventoryFrequencyDaily is a InventoryFrequency enum value
- InventoryFrequencyDaily = "Daily"
-
- // InventoryFrequencyWeekly is a InventoryFrequency enum value
- InventoryFrequencyWeekly = "Weekly"
-)
-
-// InventoryFrequency_Values returns all elements of the InventoryFrequency enum
-func InventoryFrequency_Values() []string {
- return []string{
- InventoryFrequencyDaily,
- InventoryFrequencyWeekly,
- }
-}
-
-const (
- // InventoryIncludedObjectVersionsAll is a InventoryIncludedObjectVersions enum value
- InventoryIncludedObjectVersionsAll = "All"
-
- // InventoryIncludedObjectVersionsCurrent is a InventoryIncludedObjectVersions enum value
- InventoryIncludedObjectVersionsCurrent = "Current"
-)
-
-// InventoryIncludedObjectVersions_Values returns all elements of the InventoryIncludedObjectVersions enum
-func InventoryIncludedObjectVersions_Values() []string {
- return []string{
- InventoryIncludedObjectVersionsAll,
- InventoryIncludedObjectVersionsCurrent,
- }
-}
-
-const (
- // InventoryOptionalFieldSize is a InventoryOptionalField enum value
- InventoryOptionalFieldSize = "Size"
-
- // InventoryOptionalFieldLastModifiedDate is a InventoryOptionalField enum value
- InventoryOptionalFieldLastModifiedDate = "LastModifiedDate"
-
- // InventoryOptionalFieldStorageClass is a InventoryOptionalField enum value
- InventoryOptionalFieldStorageClass = "StorageClass"
-
- // InventoryOptionalFieldEtag is a InventoryOptionalField enum value
- InventoryOptionalFieldEtag = "ETag"
-
- // InventoryOptionalFieldIsMultipartUploaded is a InventoryOptionalField enum value
- InventoryOptionalFieldIsMultipartUploaded = "IsMultipartUploaded"
-
- // InventoryOptionalFieldReplicationStatus is a InventoryOptionalField enum value
- InventoryOptionalFieldReplicationStatus = "ReplicationStatus"
-
- // InventoryOptionalFieldEncryptionStatus is a InventoryOptionalField enum value
- InventoryOptionalFieldEncryptionStatus = "EncryptionStatus"
-
- // InventoryOptionalFieldObjectLockRetainUntilDate is a InventoryOptionalField enum value
- InventoryOptionalFieldObjectLockRetainUntilDate = "ObjectLockRetainUntilDate"
-
- // InventoryOptionalFieldObjectLockMode is a InventoryOptionalField enum value
- InventoryOptionalFieldObjectLockMode = "ObjectLockMode"
-
- // InventoryOptionalFieldObjectLockLegalHoldStatus is a InventoryOptionalField enum value
- InventoryOptionalFieldObjectLockLegalHoldStatus = "ObjectLockLegalHoldStatus"
-
- // InventoryOptionalFieldIntelligentTieringAccessTier is a InventoryOptionalField enum value
- InventoryOptionalFieldIntelligentTieringAccessTier = "IntelligentTieringAccessTier"
-
- // InventoryOptionalFieldBucketKeyStatus is a InventoryOptionalField enum value
- InventoryOptionalFieldBucketKeyStatus = "BucketKeyStatus"
-
- // InventoryOptionalFieldChecksumAlgorithm is a InventoryOptionalField enum value
- InventoryOptionalFieldChecksumAlgorithm = "ChecksumAlgorithm"
-)
-
-// InventoryOptionalField_Values returns all elements of the InventoryOptionalField enum
-func InventoryOptionalField_Values() []string {
- return []string{
- InventoryOptionalFieldSize,
- InventoryOptionalFieldLastModifiedDate,
- InventoryOptionalFieldStorageClass,
- InventoryOptionalFieldEtag,
- InventoryOptionalFieldIsMultipartUploaded,
- InventoryOptionalFieldReplicationStatus,
- InventoryOptionalFieldEncryptionStatus,
- InventoryOptionalFieldObjectLockRetainUntilDate,
- InventoryOptionalFieldObjectLockMode,
- InventoryOptionalFieldObjectLockLegalHoldStatus,
- InventoryOptionalFieldIntelligentTieringAccessTier,
- InventoryOptionalFieldBucketKeyStatus,
- InventoryOptionalFieldChecksumAlgorithm,
- }
-}
-
-const (
- // JSONTypeDocument is a JSONType enum value
- JSONTypeDocument = "DOCUMENT"
-
- // JSONTypeLines is a JSONType enum value
- JSONTypeLines = "LINES"
-)
-
-// JSONType_Values returns all elements of the JSONType enum
-func JSONType_Values() []string {
- return []string{
- JSONTypeDocument,
- JSONTypeLines,
- }
-}
-
-const (
- // MFADeleteEnabled is a MFADelete enum value
- MFADeleteEnabled = "Enabled"
-
- // MFADeleteDisabled is a MFADelete enum value
- MFADeleteDisabled = "Disabled"
-)
-
-// MFADelete_Values returns all elements of the MFADelete enum
-func MFADelete_Values() []string {
- return []string{
- MFADeleteEnabled,
- MFADeleteDisabled,
- }
-}
-
-const (
- // MFADeleteStatusEnabled is a MFADeleteStatus enum value
- MFADeleteStatusEnabled = "Enabled"
-
- // MFADeleteStatusDisabled is a MFADeleteStatus enum value
- MFADeleteStatusDisabled = "Disabled"
-)
-
-// MFADeleteStatus_Values returns all elements of the MFADeleteStatus enum
-func MFADeleteStatus_Values() []string {
- return []string{
- MFADeleteStatusEnabled,
- MFADeleteStatusDisabled,
- }
-}
-
-const (
- // MetadataDirectiveCopy is a MetadataDirective enum value
- MetadataDirectiveCopy = "COPY"
-
- // MetadataDirectiveReplace is a MetadataDirective enum value
- MetadataDirectiveReplace = "REPLACE"
-)
-
-// MetadataDirective_Values returns all elements of the MetadataDirective enum
-func MetadataDirective_Values() []string {
- return []string{
- MetadataDirectiveCopy,
- MetadataDirectiveReplace,
- }
-}
-
-const (
- // MetricsStatusEnabled is a MetricsStatus enum value
- MetricsStatusEnabled = "Enabled"
-
- // MetricsStatusDisabled is a MetricsStatus enum value
- MetricsStatusDisabled = "Disabled"
-)
-
-// MetricsStatus_Values returns all elements of the MetricsStatus enum
-func MetricsStatus_Values() []string {
- return []string{
- MetricsStatusEnabled,
- MetricsStatusDisabled,
- }
-}
-
-const (
- // ObjectAttributesEtag is a ObjectAttributes enum value
- ObjectAttributesEtag = "ETag"
-
- // ObjectAttributesChecksum is a ObjectAttributes enum value
- ObjectAttributesChecksum = "Checksum"
-
- // ObjectAttributesObjectParts is a ObjectAttributes enum value
- ObjectAttributesObjectParts = "ObjectParts"
-
- // ObjectAttributesStorageClass is a ObjectAttributes enum value
- ObjectAttributesStorageClass = "StorageClass"
-
- // ObjectAttributesObjectSize is a ObjectAttributes enum value
- ObjectAttributesObjectSize = "ObjectSize"
-)
-
-// ObjectAttributes_Values returns all elements of the ObjectAttributes enum
-func ObjectAttributes_Values() []string {
- return []string{
- ObjectAttributesEtag,
- ObjectAttributesChecksum,
- ObjectAttributesObjectParts,
- ObjectAttributesStorageClass,
- ObjectAttributesObjectSize,
- }
-}
-
-const (
- // ObjectCannedACLPrivate is a ObjectCannedACL enum value
- ObjectCannedACLPrivate = "private"
-
- // ObjectCannedACLPublicRead is a ObjectCannedACL enum value
- ObjectCannedACLPublicRead = "public-read"
-
- // ObjectCannedACLPublicReadWrite is a ObjectCannedACL enum value
- ObjectCannedACLPublicReadWrite = "public-read-write"
-
- // ObjectCannedACLAuthenticatedRead is a ObjectCannedACL enum value
- ObjectCannedACLAuthenticatedRead = "authenticated-read"
-
- // ObjectCannedACLAwsExecRead is a ObjectCannedACL enum value
- ObjectCannedACLAwsExecRead = "aws-exec-read"
-
- // ObjectCannedACLBucketOwnerRead is a ObjectCannedACL enum value
- ObjectCannedACLBucketOwnerRead = "bucket-owner-read"
-
- // ObjectCannedACLBucketOwnerFullControl is a ObjectCannedACL enum value
- ObjectCannedACLBucketOwnerFullControl = "bucket-owner-full-control"
-)
-
-// ObjectCannedACL_Values returns all elements of the ObjectCannedACL enum
-func ObjectCannedACL_Values() []string {
- return []string{
- ObjectCannedACLPrivate,
- ObjectCannedACLPublicRead,
- ObjectCannedACLPublicReadWrite,
- ObjectCannedACLAuthenticatedRead,
- ObjectCannedACLAwsExecRead,
- ObjectCannedACLBucketOwnerRead,
- ObjectCannedACLBucketOwnerFullControl,
- }
-}
-
-const (
- // ObjectLockEnabledEnabled is a ObjectLockEnabled enum value
- ObjectLockEnabledEnabled = "Enabled"
-)
-
-// ObjectLockEnabled_Values returns all elements of the ObjectLockEnabled enum
-func ObjectLockEnabled_Values() []string {
- return []string{
- ObjectLockEnabledEnabled,
- }
-}
-
-const (
- // ObjectLockLegalHoldStatusOn is a ObjectLockLegalHoldStatus enum value
- ObjectLockLegalHoldStatusOn = "ON"
-
- // ObjectLockLegalHoldStatusOff is a ObjectLockLegalHoldStatus enum value
- ObjectLockLegalHoldStatusOff = "OFF"
-)
-
-// ObjectLockLegalHoldStatus_Values returns all elements of the ObjectLockLegalHoldStatus enum
-func ObjectLockLegalHoldStatus_Values() []string {
- return []string{
- ObjectLockLegalHoldStatusOn,
- ObjectLockLegalHoldStatusOff,
- }
-}
-
-const (
- // ObjectLockModeGovernance is a ObjectLockMode enum value
- ObjectLockModeGovernance = "GOVERNANCE"
-
- // ObjectLockModeCompliance is a ObjectLockMode enum value
- ObjectLockModeCompliance = "COMPLIANCE"
-)
-
-// ObjectLockMode_Values returns all elements of the ObjectLockMode enum
-func ObjectLockMode_Values() []string {
- return []string{
- ObjectLockModeGovernance,
- ObjectLockModeCompliance,
- }
-}
-
-const (
- // ObjectLockRetentionModeGovernance is a ObjectLockRetentionMode enum value
- ObjectLockRetentionModeGovernance = "GOVERNANCE"
-
- // ObjectLockRetentionModeCompliance is a ObjectLockRetentionMode enum value
- ObjectLockRetentionModeCompliance = "COMPLIANCE"
-)
-
-// ObjectLockRetentionMode_Values returns all elements of the ObjectLockRetentionMode enum
-func ObjectLockRetentionMode_Values() []string {
- return []string{
- ObjectLockRetentionModeGovernance,
- ObjectLockRetentionModeCompliance,
- }
-}
-
-// The container element for object ownership for a bucket's ownership controls.
-//
-// BucketOwnerPreferred - Objects uploaded to the bucket change ownership to
-// the bucket owner if the objects are uploaded with the bucket-owner-full-control
-// canned ACL.
-//
-// ObjectWriter - The uploading account will own the object if the object is
-// uploaded with the bucket-owner-full-control canned ACL.
-//
-// BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer
-// affect permissions. The bucket owner automatically owns and has full control
-// over every object in the bucket. The bucket only accepts PUT requests that
-// don't specify an ACL or bucket owner full control ACLs, such as the bucket-owner-full-control
-// canned ACL or an equivalent form of this ACL expressed in the XML format.
-const (
- // ObjectOwnershipBucketOwnerPreferred is a ObjectOwnership enum value
- ObjectOwnershipBucketOwnerPreferred = "BucketOwnerPreferred"
-
- // ObjectOwnershipObjectWriter is a ObjectOwnership enum value
- ObjectOwnershipObjectWriter = "ObjectWriter"
-
- // ObjectOwnershipBucketOwnerEnforced is a ObjectOwnership enum value
- ObjectOwnershipBucketOwnerEnforced = "BucketOwnerEnforced"
-)
-
-// ObjectOwnership_Values returns all elements of the ObjectOwnership enum
-func ObjectOwnership_Values() []string {
- return []string{
- ObjectOwnershipBucketOwnerPreferred,
- ObjectOwnershipObjectWriter,
- ObjectOwnershipBucketOwnerEnforced,
- }
-}
-
-const (
- // ObjectStorageClassStandard is a ObjectStorageClass enum value
- ObjectStorageClassStandard = "STANDARD"
-
- // ObjectStorageClassReducedRedundancy is a ObjectStorageClass enum value
- ObjectStorageClassReducedRedundancy = "REDUCED_REDUNDANCY"
-
- // ObjectStorageClassGlacier is a ObjectStorageClass enum value
- ObjectStorageClassGlacier = "GLACIER"
-
- // ObjectStorageClassStandardIa is a ObjectStorageClass enum value
- ObjectStorageClassStandardIa = "STANDARD_IA"
-
- // ObjectStorageClassOnezoneIa is a ObjectStorageClass enum value
- ObjectStorageClassOnezoneIa = "ONEZONE_IA"
-
- // ObjectStorageClassIntelligentTiering is a ObjectStorageClass enum value
- ObjectStorageClassIntelligentTiering = "INTELLIGENT_TIERING"
-
- // ObjectStorageClassDeepArchive is a ObjectStorageClass enum value
- ObjectStorageClassDeepArchive = "DEEP_ARCHIVE"
-
- // ObjectStorageClassOutposts is a ObjectStorageClass enum value
- ObjectStorageClassOutposts = "OUTPOSTS"
-
- // ObjectStorageClassGlacierIr is a ObjectStorageClass enum value
- ObjectStorageClassGlacierIr = "GLACIER_IR"
-
- // ObjectStorageClassSnow is a ObjectStorageClass enum value
- ObjectStorageClassSnow = "SNOW"
-)
-
-// ObjectStorageClass_Values returns all elements of the ObjectStorageClass enum
-func ObjectStorageClass_Values() []string {
- return []string{
- ObjectStorageClassStandard,
- ObjectStorageClassReducedRedundancy,
- ObjectStorageClassGlacier,
- ObjectStorageClassStandardIa,
- ObjectStorageClassOnezoneIa,
- ObjectStorageClassIntelligentTiering,
- ObjectStorageClassDeepArchive,
- ObjectStorageClassOutposts,
- ObjectStorageClassGlacierIr,
- ObjectStorageClassSnow,
- }
-}
-
-const (
- // ObjectVersionStorageClassStandard is a ObjectVersionStorageClass enum value
- ObjectVersionStorageClassStandard = "STANDARD"
-)
-
-// ObjectVersionStorageClass_Values returns all elements of the ObjectVersionStorageClass enum
-func ObjectVersionStorageClass_Values() []string {
- return []string{
- ObjectVersionStorageClassStandard,
- }
-}
-
-const (
- // OptionalObjectAttributesRestoreStatus is a OptionalObjectAttributes enum value
- OptionalObjectAttributesRestoreStatus = "RestoreStatus"
-)
-
-// OptionalObjectAttributes_Values returns all elements of the OptionalObjectAttributes enum
-func OptionalObjectAttributes_Values() []string {
- return []string{
- OptionalObjectAttributesRestoreStatus,
- }
-}
-
-const (
- // OwnerOverrideDestination is a OwnerOverride enum value
- OwnerOverrideDestination = "Destination"
-)
-
-// OwnerOverride_Values returns all elements of the OwnerOverride enum
-func OwnerOverride_Values() []string {
- return []string{
- OwnerOverrideDestination,
- }
-}
-
-const (
- // PayerRequester is a Payer enum value
- PayerRequester = "Requester"
-
- // PayerBucketOwner is a Payer enum value
- PayerBucketOwner = "BucketOwner"
-)
-
-// Payer_Values returns all elements of the Payer enum
-func Payer_Values() []string {
- return []string{
- PayerRequester,
- PayerBucketOwner,
- }
-}
-
-const (
- // PermissionFullControl is a Permission enum value
- PermissionFullControl = "FULL_CONTROL"
-
- // PermissionWrite is a Permission enum value
- PermissionWrite = "WRITE"
-
- // PermissionWriteAcp is a Permission enum value
- PermissionWriteAcp = "WRITE_ACP"
-
- // PermissionRead is a Permission enum value
- PermissionRead = "READ"
-
- // PermissionReadAcp is a Permission enum value
- PermissionReadAcp = "READ_ACP"
-)
-
-// Permission_Values returns all elements of the Permission enum
-func Permission_Values() []string {
- return []string{
- PermissionFullControl,
- PermissionWrite,
- PermissionWriteAcp,
- PermissionRead,
- PermissionReadAcp,
- }
-}
-
-const (
- // ProtocolHttp is a Protocol enum value
- ProtocolHttp = "http"
-
- // ProtocolHttps is a Protocol enum value
- ProtocolHttps = "https"
-)
-
-// Protocol_Values returns all elements of the Protocol enum
-func Protocol_Values() []string {
- return []string{
- ProtocolHttp,
- ProtocolHttps,
- }
-}
-
-const (
- // QuoteFieldsAlways is a QuoteFields enum value
- QuoteFieldsAlways = "ALWAYS"
-
- // QuoteFieldsAsneeded is a QuoteFields enum value
- QuoteFieldsAsneeded = "ASNEEDED"
-)
-
-// QuoteFields_Values returns all elements of the QuoteFields enum
-func QuoteFields_Values() []string {
- return []string{
- QuoteFieldsAlways,
- QuoteFieldsAsneeded,
- }
-}
-
-const (
- // ReplicaModificationsStatusEnabled is a ReplicaModificationsStatus enum value
- ReplicaModificationsStatusEnabled = "Enabled"
-
- // ReplicaModificationsStatusDisabled is a ReplicaModificationsStatus enum value
- ReplicaModificationsStatusDisabled = "Disabled"
-)
-
-// ReplicaModificationsStatus_Values returns all elements of the ReplicaModificationsStatus enum
-func ReplicaModificationsStatus_Values() []string {
- return []string{
- ReplicaModificationsStatusEnabled,
- ReplicaModificationsStatusDisabled,
- }
-}
-
-const (
- // ReplicationRuleStatusEnabled is a ReplicationRuleStatus enum value
- ReplicationRuleStatusEnabled = "Enabled"
-
- // ReplicationRuleStatusDisabled is a ReplicationRuleStatus enum value
- ReplicationRuleStatusDisabled = "Disabled"
-)
-
-// ReplicationRuleStatus_Values returns all elements of the ReplicationRuleStatus enum
-func ReplicationRuleStatus_Values() []string {
- return []string{
- ReplicationRuleStatusEnabled,
- ReplicationRuleStatusDisabled,
- }
-}
-
-const (
- // ReplicationStatusComplete is a ReplicationStatus enum value
- ReplicationStatusComplete = "COMPLETE"
-
- // ReplicationStatusPending is a ReplicationStatus enum value
- ReplicationStatusPending = "PENDING"
-
- // ReplicationStatusFailed is a ReplicationStatus enum value
- ReplicationStatusFailed = "FAILED"
-
- // ReplicationStatusReplica is a ReplicationStatus enum value
- ReplicationStatusReplica = "REPLICA"
-)
-
-// ReplicationStatus_Values returns all elements of the ReplicationStatus enum
-func ReplicationStatus_Values() []string {
- return []string{
- ReplicationStatusComplete,
- ReplicationStatusPending,
- ReplicationStatusFailed,
- ReplicationStatusReplica,
- }
-}
-
-const (
- // ReplicationTimeStatusEnabled is a ReplicationTimeStatus enum value
- ReplicationTimeStatusEnabled = "Enabled"
-
- // ReplicationTimeStatusDisabled is a ReplicationTimeStatus enum value
- ReplicationTimeStatusDisabled = "Disabled"
-)
-
-// ReplicationTimeStatus_Values returns all elements of the ReplicationTimeStatus enum
-func ReplicationTimeStatus_Values() []string {
- return []string{
- ReplicationTimeStatusEnabled,
- ReplicationTimeStatusDisabled,
- }
-}
-
-// If present, indicates that the requester was successfully charged for the
-// request.
-const (
- // RequestChargedRequester is a RequestCharged enum value
- RequestChargedRequester = "requester"
-)
-
-// RequestCharged_Values returns all elements of the RequestCharged enum
-func RequestCharged_Values() []string {
- return []string{
- RequestChargedRequester,
- }
-}
-
-// Confirms that the requester knows that they will be charged for the request.
-// Bucket owners need not specify this parameter in their requests. For information
-// about downloading objects from Requester Pays buckets, see Downloading Objects
-// in Requester Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
-// in the Amazon S3 User Guide.
-const (
- // RequestPayerRequester is a RequestPayer enum value
- RequestPayerRequester = "requester"
-)
-
-// RequestPayer_Values returns all elements of the RequestPayer enum
-func RequestPayer_Values() []string {
- return []string{
- RequestPayerRequester,
- }
-}
-
-const (
- // RestoreRequestTypeSelect is a RestoreRequestType enum value
- RestoreRequestTypeSelect = "SELECT"
-)
-
-// RestoreRequestType_Values returns all elements of the RestoreRequestType enum
-func RestoreRequestType_Values() []string {
- return []string{
- RestoreRequestTypeSelect,
- }
-}
-
-const (
- // ServerSideEncryptionAes256 is a ServerSideEncryption enum value
- ServerSideEncryptionAes256 = "AES256"
-
- // ServerSideEncryptionAwsKms is a ServerSideEncryption enum value
- ServerSideEncryptionAwsKms = "aws:kms"
-
- // ServerSideEncryptionAwsKmsDsse is a ServerSideEncryption enum value
- ServerSideEncryptionAwsKmsDsse = "aws:kms:dsse"
-)
-
-// ServerSideEncryption_Values returns all elements of the ServerSideEncryption enum
-func ServerSideEncryption_Values() []string {
- return []string{
- ServerSideEncryptionAes256,
- ServerSideEncryptionAwsKms,
- ServerSideEncryptionAwsKmsDsse,
- }
-}
-
-const (
- // SseKmsEncryptedObjectsStatusEnabled is a SseKmsEncryptedObjectsStatus enum value
- SseKmsEncryptedObjectsStatusEnabled = "Enabled"
-
- // SseKmsEncryptedObjectsStatusDisabled is a SseKmsEncryptedObjectsStatus enum value
- SseKmsEncryptedObjectsStatusDisabled = "Disabled"
-)
-
-// SseKmsEncryptedObjectsStatus_Values returns all elements of the SseKmsEncryptedObjectsStatus enum
-func SseKmsEncryptedObjectsStatus_Values() []string {
- return []string{
- SseKmsEncryptedObjectsStatusEnabled,
- SseKmsEncryptedObjectsStatusDisabled,
- }
-}
-
-const (
- // StorageClassStandard is a StorageClass enum value
- StorageClassStandard = "STANDARD"
-
- // StorageClassReducedRedundancy is a StorageClass enum value
- StorageClassReducedRedundancy = "REDUCED_REDUNDANCY"
-
- // StorageClassStandardIa is a StorageClass enum value
- StorageClassStandardIa = "STANDARD_IA"
-
- // StorageClassOnezoneIa is a StorageClass enum value
- StorageClassOnezoneIa = "ONEZONE_IA"
-
- // StorageClassIntelligentTiering is a StorageClass enum value
- StorageClassIntelligentTiering = "INTELLIGENT_TIERING"
-
- // StorageClassGlacier is a StorageClass enum value
- StorageClassGlacier = "GLACIER"
-
- // StorageClassDeepArchive is a StorageClass enum value
- StorageClassDeepArchive = "DEEP_ARCHIVE"
-
- // StorageClassOutposts is a StorageClass enum value
- StorageClassOutposts = "OUTPOSTS"
-
- // StorageClassGlacierIr is a StorageClass enum value
- StorageClassGlacierIr = "GLACIER_IR"
-
- // StorageClassSnow is a StorageClass enum value
- StorageClassSnow = "SNOW"
-)
-
-// StorageClass_Values returns all elements of the StorageClass enum
-func StorageClass_Values() []string {
- return []string{
- StorageClassStandard,
- StorageClassReducedRedundancy,
- StorageClassStandardIa,
- StorageClassOnezoneIa,
- StorageClassIntelligentTiering,
- StorageClassGlacier,
- StorageClassDeepArchive,
- StorageClassOutposts,
- StorageClassGlacierIr,
- StorageClassSnow,
- }
-}
-
-const (
- // StorageClassAnalysisSchemaVersionV1 is a StorageClassAnalysisSchemaVersion enum value
- StorageClassAnalysisSchemaVersionV1 = "V_1"
-)
-
-// StorageClassAnalysisSchemaVersion_Values returns all elements of the StorageClassAnalysisSchemaVersion enum
-func StorageClassAnalysisSchemaVersion_Values() []string {
- return []string{
- StorageClassAnalysisSchemaVersionV1,
- }
-}
-
-const (
- // TaggingDirectiveCopy is a TaggingDirective enum value
- TaggingDirectiveCopy = "COPY"
-
- // TaggingDirectiveReplace is a TaggingDirective enum value
- TaggingDirectiveReplace = "REPLACE"
-)
-
-// TaggingDirective_Values returns all elements of the TaggingDirective enum
-func TaggingDirective_Values() []string {
- return []string{
- TaggingDirectiveCopy,
- TaggingDirectiveReplace,
- }
-}
-
-const (
- // TierStandard is a Tier enum value
- TierStandard = "Standard"
-
- // TierBulk is a Tier enum value
- TierBulk = "Bulk"
-
- // TierExpedited is a Tier enum value
- TierExpedited = "Expedited"
-)
-
-// Tier_Values returns all elements of the Tier enum
-func Tier_Values() []string {
- return []string{
- TierStandard,
- TierBulk,
- TierExpedited,
- }
-}
-
-const (
- // TransitionStorageClassGlacier is a TransitionStorageClass enum value
- TransitionStorageClassGlacier = "GLACIER"
-
- // TransitionStorageClassStandardIa is a TransitionStorageClass enum value
- TransitionStorageClassStandardIa = "STANDARD_IA"
-
- // TransitionStorageClassOnezoneIa is a TransitionStorageClass enum value
- TransitionStorageClassOnezoneIa = "ONEZONE_IA"
-
- // TransitionStorageClassIntelligentTiering is a TransitionStorageClass enum value
- TransitionStorageClassIntelligentTiering = "INTELLIGENT_TIERING"
-
- // TransitionStorageClassDeepArchive is a TransitionStorageClass enum value
- TransitionStorageClassDeepArchive = "DEEP_ARCHIVE"
-
- // TransitionStorageClassGlacierIr is a TransitionStorageClass enum value
- TransitionStorageClassGlacierIr = "GLACIER_IR"
-)
-
-// TransitionStorageClass_Values returns all elements of the TransitionStorageClass enum
-func TransitionStorageClass_Values() []string {
- return []string{
- TransitionStorageClassGlacier,
- TransitionStorageClassStandardIa,
- TransitionStorageClassOnezoneIa,
- TransitionStorageClassIntelligentTiering,
- TransitionStorageClassDeepArchive,
- TransitionStorageClassGlacierIr,
- }
-}
-
-const (
- // TypeCanonicalUser is a Type enum value
- TypeCanonicalUser = "CanonicalUser"
-
- // TypeAmazonCustomerByEmail is a Type enum value
- TypeAmazonCustomerByEmail = "AmazonCustomerByEmail"
-
- // TypeGroup is a Type enum value
- TypeGroup = "Group"
-)
-
-// Type_Values returns all elements of the Type enum
-func Type_Values() []string {
- return []string{
- TypeCanonicalUser,
- TypeAmazonCustomerByEmail,
- TypeGroup,
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/body_hash.go b/vendor/github.com/aws/aws-sdk-go/service/s3/body_hash.go
deleted file mode 100644
index 407f06b6e..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/body_hash.go
+++ /dev/null
@@ -1,202 +0,0 @@
-package s3
-
-import (
- "bytes"
- "crypto/md5"
- "crypto/sha256"
- "encoding/base64"
- "encoding/hex"
- "fmt"
- "hash"
- "io"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/request"
-)
-
-const (
- contentMD5Header = "Content-Md5"
- contentSha256Header = "X-Amz-Content-Sha256"
- amzTeHeader = "X-Amz-Te"
- amzTxEncodingHeader = "X-Amz-Transfer-Encoding"
-
- appendMD5TxEncoding = "append-md5"
-)
-
-// computeBodyHashes will add Content MD5 and Content Sha256 hashes to the
-// request. If the body is not seekable or S3DisableContentMD5Validation set
-// this handler will be ignored.
-func computeBodyHashes(r *request.Request) {
- if aws.BoolValue(r.Config.S3DisableContentMD5Validation) {
- return
- }
- if r.IsPresigned() {
- return
- }
- if r.Error != nil || !aws.IsReaderSeekable(r.Body) {
- return
- }
-
- var md5Hash, sha256Hash hash.Hash
- hashers := make([]io.Writer, 0, 2)
-
- // Determine upfront which hashes can be set without overriding user
- // provide header data.
- if v := r.HTTPRequest.Header.Get(contentMD5Header); len(v) == 0 {
- md5Hash = md5.New()
- hashers = append(hashers, md5Hash)
- }
-
- if v := r.HTTPRequest.Header.Get(contentSha256Header); len(v) == 0 {
- sha256Hash = sha256.New()
- hashers = append(hashers, sha256Hash)
- }
-
- // Create the destination writer based on the hashes that are not already
- // provided by the user.
- var dst io.Writer
- switch len(hashers) {
- case 0:
- return
- case 1:
- dst = hashers[0]
- default:
- dst = io.MultiWriter(hashers...)
- }
-
- if _, err := aws.CopySeekableBody(dst, r.Body); err != nil {
- r.Error = awserr.New("BodyHashError", "failed to compute body hashes", err)
- return
- }
-
- // For the hashes created, set the associated headers that the user did not
- // already provide.
- if md5Hash != nil {
- sum := make([]byte, md5.Size)
- encoded := make([]byte, md5Base64EncLen)
-
- base64.StdEncoding.Encode(encoded, md5Hash.Sum(sum[0:0]))
- r.HTTPRequest.Header[contentMD5Header] = []string{string(encoded)}
- }
-
- if sha256Hash != nil {
- encoded := make([]byte, sha256HexEncLen)
- sum := make([]byte, sha256.Size)
-
- hex.Encode(encoded, sha256Hash.Sum(sum[0:0]))
- r.HTTPRequest.Header[contentSha256Header] = []string{string(encoded)}
- }
-}
-
-const (
- md5Base64EncLen = (md5.Size + 2) / 3 * 4 // base64.StdEncoding.EncodedLen
- sha256HexEncLen = sha256.Size * 2 // hex.EncodedLen
-)
-
-// Adds the x-amz-te: append_md5 header to the request. This requests the service
-// responds with a trailing MD5 checksum.
-//
-// Will not ask for append MD5 if disabled, the request is presigned or,
-// or the API operation does not support content MD5 validation.
-func askForTxEncodingAppendMD5(r *request.Request) {
- if aws.BoolValue(r.Config.S3DisableContentMD5Validation) {
- return
- }
- if r.IsPresigned() {
- return
- }
- r.HTTPRequest.Header.Set(amzTeHeader, appendMD5TxEncoding)
-}
-
-func useMD5ValidationReader(r *request.Request) {
- if r.Error != nil {
- return
- }
-
- if v := r.HTTPResponse.Header.Get(amzTxEncodingHeader); v != appendMD5TxEncoding {
- return
- }
-
- var bodyReader *io.ReadCloser
- var contentLen int64
- switch tv := r.Data.(type) {
- case *GetObjectOutput:
- bodyReader = &tv.Body
- contentLen = aws.Int64Value(tv.ContentLength)
- // Update ContentLength hiden the trailing MD5 checksum.
- tv.ContentLength = aws.Int64(contentLen - md5.Size)
- tv.ContentRange = aws.String(r.HTTPResponse.Header.Get("X-Amz-Content-Range"))
- default:
- r.Error = awserr.New("ChecksumValidationError",
- fmt.Sprintf("%s: %s header received on unsupported API, %s",
- amzTxEncodingHeader, appendMD5TxEncoding, r.Operation.Name,
- ), nil)
- return
- }
-
- if contentLen < md5.Size {
- r.Error = awserr.New("ChecksumValidationError",
- fmt.Sprintf("invalid Content-Length %d for %s %s",
- contentLen, appendMD5TxEncoding, amzTxEncodingHeader,
- ), nil)
- return
- }
-
- // Wrap and swap the response body reader with the validation reader.
- *bodyReader = newMD5ValidationReader(*bodyReader, contentLen-md5.Size)
-}
-
-type md5ValidationReader struct {
- rawReader io.ReadCloser
- payload io.Reader
- hash hash.Hash
-
- payloadLen int64
- read int64
-}
-
-func newMD5ValidationReader(reader io.ReadCloser, payloadLen int64) *md5ValidationReader {
- h := md5.New()
- return &md5ValidationReader{
- rawReader: reader,
- payload: io.TeeReader(&io.LimitedReader{R: reader, N: payloadLen}, h),
- hash: h,
- payloadLen: payloadLen,
- }
-}
-
-func (v *md5ValidationReader) Read(p []byte) (n int, err error) {
- n, err = v.payload.Read(p)
- if err != nil && err != io.EOF {
- return n, err
- }
-
- v.read += int64(n)
-
- if err == io.EOF {
- if v.read != v.payloadLen {
- return n, io.ErrUnexpectedEOF
- }
- expectSum := make([]byte, md5.Size)
- actualSum := make([]byte, md5.Size)
- if _, sumReadErr := io.ReadFull(v.rawReader, expectSum); sumReadErr != nil {
- return n, sumReadErr
- }
- actualSum = v.hash.Sum(actualSum[0:0])
- if !bytes.Equal(expectSum, actualSum) {
- return n, awserr.New("InvalidChecksum",
- fmt.Sprintf("expected MD5 checksum %s, got %s",
- hex.EncodeToString(expectSum),
- hex.EncodeToString(actualSum),
- ),
- nil)
- }
- }
-
- return n, err
-}
-
-func (v *md5ValidationReader) Close() error {
- return v.rawReader.Close()
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location.go b/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location.go
deleted file mode 100644
index 20828387e..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location.go
+++ /dev/null
@@ -1,107 +0,0 @@
-package s3
-
-import (
- "io/ioutil"
- "regexp"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
-)
-
-var reBucketLocation = regexp.MustCompile(`>([^<>]+)<\/Location`)
-
-// NormalizeBucketLocation is a utility function which will update the
-// passed in value to always be a region ID. Generally this would be used
-// with GetBucketLocation API operation.
-//
-// Replaces empty string with "us-east-1", and "EU" with "eu-west-1".
-//
-// See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html
-// for more information on the values that can be returned.
-func NormalizeBucketLocation(loc string) string {
- switch loc {
- case "":
- loc = "us-east-1"
- case "EU":
- loc = "eu-west-1"
- }
-
- return loc
-}
-
-// NormalizeBucketLocationHandler is a request handler which will update the
-// GetBucketLocation's result LocationConstraint value to always be a region ID.
-//
-// Replaces empty string with "us-east-1", and "EU" with "eu-west-1".
-//
-// See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html
-// for more information on the values that can be returned.
-//
-// req, result := svc.GetBucketLocationRequest(&s3.GetBucketLocationInput{
-// Bucket: aws.String(bucket),
-// })
-// req.Handlers.Unmarshal.PushBackNamed(NormalizeBucketLocationHandler)
-// err := req.Send()
-var NormalizeBucketLocationHandler = request.NamedHandler{
- Name: "awssdk.s3.NormalizeBucketLocation",
- Fn: func(req *request.Request) {
- if req.Error != nil {
- return
- }
-
- out := req.Data.(*GetBucketLocationOutput)
- loc := NormalizeBucketLocation(aws.StringValue(out.LocationConstraint))
- out.LocationConstraint = aws.String(loc)
- },
-}
-
-// WithNormalizeBucketLocation is a request option which will update the
-// GetBucketLocation's result LocationConstraint value to always be a region ID.
-//
-// Replaces empty string with "us-east-1", and "EU" with "eu-west-1".
-//
-// See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html
-// for more information on the values that can be returned.
-//
-// result, err := svc.GetBucketLocationWithContext(ctx,
-// &s3.GetBucketLocationInput{
-// Bucket: aws.String(bucket),
-// },
-// s3.WithNormalizeBucketLocation,
-// )
-func WithNormalizeBucketLocation(r *request.Request) {
- r.Handlers.Unmarshal.PushBackNamed(NormalizeBucketLocationHandler)
-}
-
-func buildGetBucketLocation(r *request.Request) {
- if r.DataFilled() {
- out := r.Data.(*GetBucketLocationOutput)
- b, err := ioutil.ReadAll(r.HTTPResponse.Body)
- if err != nil {
- r.Error = awserr.New(request.ErrCodeSerialization,
- "failed reading response body", err)
- return
- }
-
- match := reBucketLocation.FindSubmatch(b)
- if len(match) > 1 {
- loc := string(match[1])
- out.LocationConstraint = aws.String(loc)
- }
- }
-}
-
-func populateLocationConstraint(r *request.Request) {
- if r.ParamsFilled() && aws.StringValue(r.Config.Region) != "us-east-1" {
- in := r.Params.(*CreateBucketInput)
- if in.CreateBucketConfiguration == nil {
- r.Params = awsutil.CopyOf(r.Params)
- in = r.Params.(*CreateBucketInput)
- in.CreateBucketConfiguration = &CreateBucketConfiguration{
- LocationConstraint: r.Config.Region,
- }
- }
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go
deleted file mode 100644
index 229606b70..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go
+++ /dev/null
@@ -1,89 +0,0 @@
-package s3
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/endpoints"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/internal/s3shared/arn"
- "github.com/aws/aws-sdk-go/internal/s3shared/s3err"
-)
-
-func init() {
- initClient = defaultInitClientFn
- initRequest = defaultInitRequestFn
-}
-
-func defaultInitClientFn(c *client.Client) {
- if c.Config.UseDualStackEndpoint == endpoints.DualStackEndpointStateUnset {
- if aws.BoolValue(c.Config.UseDualStack) {
- c.Config.UseDualStackEndpoint = endpoints.DualStackEndpointStateEnabled
- } else {
- c.Config.UseDualStackEndpoint = endpoints.DualStackEndpointStateDisabled
- }
- }
-
- // Support building custom endpoints based on config
- c.Handlers.Build.PushFront(endpointHandler)
-
- // Require SSL when using SSE keys
- c.Handlers.Validate.PushBack(validateSSERequiresSSL)
- c.Handlers.Build.PushBack(computeSSEKeyMD5)
- c.Handlers.Build.PushBack(computeCopySourceSSEKeyMD5)
-
- // S3 uses custom error unmarshaling logic
- c.Handlers.UnmarshalError.Clear()
- c.Handlers.UnmarshalError.PushBack(unmarshalError)
- c.Handlers.UnmarshalError.PushBackNamed(s3err.RequestFailureWrapperHandler())
-}
-
-func defaultInitRequestFn(r *request.Request) {
- // Add request handlers for specific platforms.
- // e.g. 100-continue support for PUT requests using Go 1.6
- platformRequestHandlers(r)
-
- switch r.Operation.Name {
- case opGetBucketLocation:
- // GetBucketLocation has custom parsing logic
- r.Handlers.Unmarshal.PushFront(buildGetBucketLocation)
- case opCreateBucket:
- // Auto-populate LocationConstraint with current region
- r.Handlers.Validate.PushFront(populateLocationConstraint)
- case opCopyObject, opUploadPartCopy, opCompleteMultipartUpload:
- r.Handlers.Unmarshal.PushFront(copyMultipartStatusOKUnmarshalError)
- r.Handlers.Unmarshal.PushBackNamed(s3err.RequestFailureWrapperHandler())
- case opPutObject, opUploadPart:
- r.Handlers.Build.PushBack(computeBodyHashes)
- // Disabled until #1837 root issue is resolved.
- // case opGetObject:
- // r.Handlers.Build.PushBack(askForTxEncodingAppendMD5)
- // r.Handlers.Unmarshal.PushBack(useMD5ValidationReader)
- case opWriteGetObjectResponse:
- r.Handlers.Build.PushFront(buildWriteGetObjectResponseEndpoint)
- }
-}
-
-// bucketGetter is an accessor interface to grab the "Bucket" field from
-// an S3 type.
-type bucketGetter interface {
- getBucket() string
-}
-
-// sseCustomerKeyGetter is an accessor interface to grab the "SSECustomerKey"
-// field from an S3 type.
-type sseCustomerKeyGetter interface {
- getSSECustomerKey() string
-}
-
-// copySourceSSECustomerKeyGetter is an accessor interface to grab the
-// "CopySourceSSECustomerKey" field from an S3 type.
-type copySourceSSECustomerKeyGetter interface {
- getCopySourceSSECustomerKey() string
-}
-
-// endpointARNGetter is an accessor interface to grab the
-// the field corresponding to an endpoint ARN input.
-type endpointARNGetter interface {
- getEndpointARN() (arn.Resource, error)
- hasEndpointARN() bool
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/doc.go b/vendor/github.com/aws/aws-sdk-go/service/s3/doc.go
deleted file mode 100644
index c148f757e..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/doc.go
+++ /dev/null
@@ -1,26 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-// Package s3 provides the client and types for making API
-// requests to Amazon Simple Storage Service.
-//
-// See https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01 for more information on this service.
-//
-// See s3 package documentation for more information.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/s3/
-//
-// # Using the Client
-//
-// To contact Amazon Simple Storage Service 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.
-//
-// See the SDK's documentation for more information on how to use the SDK.
-// https://docs.aws.amazon.com/sdk-for-go/api/
-//
-// See aws.Config documentation for more information on configuring SDK clients.
-// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
-//
-// See the Amazon Simple Storage Service client S3 for more
-// information on creating client for this service.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/s3/#New
-package s3
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/doc_custom.go b/vendor/github.com/aws/aws-sdk-go/service/s3/doc_custom.go
deleted file mode 100644
index 2e8244f8f..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/doc_custom.go
+++ /dev/null
@@ -1,109 +0,0 @@
-// Upload Managers
-//
-// The s3manager package's Uploader provides concurrent upload of content to S3
-// by taking advantage of S3's Multipart APIs. The Uploader also supports both
-// io.Reader for streaming uploads, and will also take advantage of io.ReadSeeker
-// for optimizations if the Body satisfies that type. Once the Uploader instance
-// is created you can call Upload concurrently from multiple goroutines safely.
-//
-// // The session the S3 Uploader will use
-// sess := session.Must(session.NewSession())
-//
-// // Create an uploader with the session and default options
-// uploader := s3manager.NewUploader(sess)
-//
-// f, err := os.Open(filename)
-// if err != nil {
-// return fmt.Errorf("failed to open file %q, %v", filename, err)
-// }
-//
-// // Upload the file to S3.
-// result, err := uploader.Upload(&s3manager.UploadInput{
-// Bucket: aws.String(myBucket),
-// Key: aws.String(myString),
-// Body: f,
-// })
-// if err != nil {
-// return fmt.Errorf("failed to upload file, %v", err)
-// }
-// fmt.Printf("file uploaded to, %s\n", aws.StringValue(result.Location))
-//
-// See the s3manager package's Uploader type documentation for more information.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/s3/s3manager/#Uploader
-//
-// # Download Manager
-//
-// The s3manager package's Downloader provides concurrently downloading of Objects
-// from S3. The Downloader will write S3 Object content with an io.WriterAt.
-// Once the Downloader instance is created you can call Download concurrently from
-// multiple goroutines safely.
-//
-// // The session the S3 Downloader will use
-// sess := session.Must(session.NewSession())
-//
-// // Create a downloader with the session and default options
-// downloader := s3manager.NewDownloader(sess)
-//
-// // Create a file to write the S3 Object contents to.
-// f, err := os.Create(filename)
-// if err != nil {
-// return fmt.Errorf("failed to create file %q, %v", filename, err)
-// }
-//
-// // Write the contents of S3 Object to the file
-// n, err := downloader.Download(f, &s3.GetObjectInput{
-// Bucket: aws.String(myBucket),
-// Key: aws.String(myString),
-// })
-// if err != nil {
-// return fmt.Errorf("failed to download file, %v", err)
-// }
-// fmt.Printf("file downloaded, %d bytes\n", n)
-//
-// See the s3manager package's Downloader type documentation for more information.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/s3/s3manager/#Downloader
-//
-// # Automatic URI cleaning
-//
-// Interacting with objects whose keys contain adjacent slashes (e.g. bucketname/foo//bar/objectname)
-// requires setting DisableRestProtocolURICleaning to true in the aws.Config struct
-// used by the service client.
-//
-// svc := s3.New(sess, &aws.Config{
-// DisableRestProtocolURICleaning: aws.Bool(true),
-// })
-// out, err := svc.GetObject(&s3.GetObjectInput {
-// Bucket: aws.String("bucketname"),
-// Key: aws.String("//foo//bar//moo"),
-// })
-//
-// # Get Bucket Region
-//
-// GetBucketRegion will attempt to get the region for a bucket using a region
-// hint to determine which AWS partition to perform the query on. Use this utility
-// to determine the region a bucket is in.
-//
-// sess := session.Must(session.NewSession())
-//
-// bucket := "my-bucket"
-// region, err := s3manager.GetBucketRegion(ctx, sess, bucket, "us-west-2")
-// if err != nil {
-// if aerr, ok := err.(awserr.Error); ok && aerr.Code() == "NotFound" {
-// fmt.Fprintf(os.Stderr, "unable to find bucket %s's region not found\n", bucket)
-// }
-// return err
-// }
-// fmt.Printf("Bucket %s is in %s region\n", bucket, region)
-//
-// See the s3manager package's GetBucketRegion function documentation for more information
-// https://docs.aws.amazon.com/sdk-for-go/api/service/s3/s3manager/#GetBucketRegion
-//
-// # S3 Crypto Client
-//
-// The s3crypto package provides the tools to upload and download encrypted
-// content from S3. The Encryption and Decryption clients can be used concurrently
-// once the client is created.
-//
-// See the s3crypto package documentation for more information.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/s3/s3crypto/
-package s3
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint.go b/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint.go
deleted file mode 100644
index 71b438692..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint.go
+++ /dev/null
@@ -1,298 +0,0 @@
-package s3
-
-import (
- "fmt"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/endpoints"
- "net/url"
- "strings"
-
- "github.com/aws/aws-sdk-go/aws"
- awsarn "github.com/aws/aws-sdk-go/aws/arn"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/internal/s3shared"
- "github.com/aws/aws-sdk-go/internal/s3shared/arn"
-)
-
-const (
- s3Namespace = "s3"
- s3AccessPointNamespace = "s3-accesspoint"
- s3ObjectsLambdaNamespace = "s3-object-lambda"
- s3OutpostsNamespace = "s3-outposts"
-)
-
-// Used by shapes with members decorated as endpoint ARN.
-func parseEndpointARN(v string) (arn.Resource, error) {
- return arn.ParseResource(v, accessPointResourceParser)
-}
-
-func accessPointResourceParser(a awsarn.ARN) (arn.Resource, error) {
- resParts := arn.SplitResource(a.Resource)
- switch resParts[0] {
- case "accesspoint":
- switch a.Service {
- case s3Namespace:
- return arn.ParseAccessPointResource(a, resParts[1:])
- case s3ObjectsLambdaNamespace:
- return parseS3ObjectLambdaAccessPointResource(a, resParts)
- default:
- return arn.AccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: fmt.Sprintf("service is not %s or %s", s3Namespace, s3ObjectsLambdaNamespace)}
- }
- case "outpost":
- if a.Service != "s3-outposts" {
- return arn.OutpostAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: "service is not s3-outposts"}
- }
- return parseOutpostAccessPointResource(a, resParts[1:])
- default:
- return nil, arn.InvalidARNError{ARN: a, Reason: "unknown resource type"}
- }
-}
-
-// parseOutpostAccessPointResource attempts to parse the ARNs resource as an
-// outpost access-point resource.
-//
-// Supported Outpost AccessPoint ARN format:
-// - ARN format: arn:{partition}:s3-outposts:{region}:{accountId}:outpost/{outpostId}/accesspoint/{accesspointName}
-// - example: arn:aws:s3-outposts:us-west-2:012345678901:outpost/op-1234567890123456/accesspoint/myaccesspoint
-func parseOutpostAccessPointResource(a awsarn.ARN, resParts []string) (arn.OutpostAccessPointARN, error) {
- // outpost accesspoint arn is only valid if service is s3-outposts
- if a.Service != "s3-outposts" {
- return arn.OutpostAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: "service is not s3-outposts"}
- }
-
- if len(resParts) == 0 {
- return arn.OutpostAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: "outpost resource-id not set"}
- }
-
- if len(resParts) < 3 {
- return arn.OutpostAccessPointARN{}, arn.InvalidARNError{
- ARN: a, Reason: "access-point resource not set in Outpost ARN",
- }
- }
-
- resID := strings.TrimSpace(resParts[0])
- if len(resID) == 0 {
- return arn.OutpostAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: "outpost resource-id not set"}
- }
-
- var outpostAccessPointARN = arn.OutpostAccessPointARN{}
- switch resParts[1] {
- case "accesspoint":
- accessPointARN, err := arn.ParseAccessPointResource(a, resParts[2:])
- if err != nil {
- return arn.OutpostAccessPointARN{}, err
- }
- // set access-point arn
- outpostAccessPointARN.AccessPointARN = accessPointARN
- default:
- return arn.OutpostAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: "access-point resource not set in Outpost ARN"}
- }
-
- // set outpost id
- outpostAccessPointARN.OutpostID = resID
- return outpostAccessPointARN, nil
-}
-
-func parseS3ObjectLambdaAccessPointResource(a awsarn.ARN, resParts []string) (arn.S3ObjectLambdaAccessPointARN, error) {
- if a.Service != s3ObjectsLambdaNamespace {
- return arn.S3ObjectLambdaAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: fmt.Sprintf("service is not %s", s3ObjectsLambdaNamespace)}
- }
-
- accessPointARN, err := arn.ParseAccessPointResource(a, resParts[1:])
- if err != nil {
- return arn.S3ObjectLambdaAccessPointARN{}, err
- }
-
- if len(accessPointARN.Region) == 0 {
- return arn.S3ObjectLambdaAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: fmt.Sprintf("%s region not set", s3ObjectsLambdaNamespace)}
- }
-
- return arn.S3ObjectLambdaAccessPointARN{
- AccessPointARN: accessPointARN,
- }, nil
-}
-
-func endpointHandler(req *request.Request) {
- endpoint, ok := req.Params.(endpointARNGetter)
- if !ok || !endpoint.hasEndpointARN() {
- updateBucketEndpointFromParams(req)
- return
- }
-
- resource, err := endpoint.getEndpointARN()
- if err != nil {
- req.Error = s3shared.NewInvalidARNError(nil, err)
- return
- }
-
- resReq := s3shared.ResourceRequest{
- Resource: resource,
- Request: req,
- }
-
- if len(resReq.Request.ClientInfo.PartitionID) != 0 && resReq.IsCrossPartition() {
- req.Error = s3shared.NewClientPartitionMismatchError(resource,
- req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
- return
- }
-
- if !resReq.AllowCrossRegion() && resReq.IsCrossRegion() {
- req.Error = s3shared.NewClientRegionMismatchError(resource,
- req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
- return
- }
-
- switch tv := resource.(type) {
- case arn.AccessPointARN:
- err = updateRequestAccessPointEndpoint(req, tv)
- if err != nil {
- req.Error = err
- }
- case arn.S3ObjectLambdaAccessPointARN:
- err = updateRequestS3ObjectLambdaAccessPointEndpoint(req, tv)
- if err != nil {
- req.Error = err
- }
- case arn.OutpostAccessPointARN:
- // outposts does not support FIPS regions
- if req.Config.UseFIPSEndpoint == endpoints.FIPSEndpointStateEnabled {
- req.Error = s3shared.NewFIPSConfigurationError(resource, req.ClientInfo.PartitionID,
- aws.StringValue(req.Config.Region), nil)
- return
- }
-
- err = updateRequestOutpostAccessPointEndpoint(req, tv)
- if err != nil {
- req.Error = err
- }
- default:
- req.Error = s3shared.NewInvalidARNError(resource, nil)
- }
-}
-
-func updateBucketEndpointFromParams(r *request.Request) {
- bucket, ok := bucketNameFromReqParams(r.Params)
- if !ok {
- // Ignore operation requests if the bucket name was not provided
- // if this is an input validation error the validation handler
- // will report it.
- return
- }
- updateEndpointForS3Config(r, bucket)
-}
-
-func updateRequestAccessPointEndpoint(req *request.Request, accessPoint arn.AccessPointARN) error {
- // Accelerate not supported
- if aws.BoolValue(req.Config.S3UseAccelerate) {
- return s3shared.NewClientConfiguredForAccelerateError(accessPoint,
- req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
- }
-
- // Ignore the disable host prefix for access points
- req.Config.DisableEndpointHostPrefix = aws.Bool(false)
-
- if err := accessPointEndpointBuilder(accessPoint).build(req); err != nil {
- return err
- }
-
- removeBucketFromPath(req.HTTPRequest.URL)
-
- return nil
-}
-
-func updateRequestS3ObjectLambdaAccessPointEndpoint(req *request.Request, accessPoint arn.S3ObjectLambdaAccessPointARN) error {
- // DualStack not supported
- if isUseDualStackEndpoint(req) {
- return s3shared.NewClientConfiguredForDualStackError(accessPoint,
- req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
- }
-
- // Accelerate not supported
- if aws.BoolValue(req.Config.S3UseAccelerate) {
- return s3shared.NewClientConfiguredForAccelerateError(accessPoint,
- req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
- }
-
- // Ignore the disable host prefix for access points
- req.Config.DisableEndpointHostPrefix = aws.Bool(false)
-
- if err := s3ObjectLambdaAccessPointEndpointBuilder(accessPoint).build(req); err != nil {
- return err
- }
-
- removeBucketFromPath(req.HTTPRequest.URL)
-
- return nil
-}
-
-func updateRequestOutpostAccessPointEndpoint(req *request.Request, accessPoint arn.OutpostAccessPointARN) error {
- // Accelerate not supported
- if aws.BoolValue(req.Config.S3UseAccelerate) {
- return s3shared.NewClientConfiguredForAccelerateError(accessPoint,
- req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
- }
-
- // Dualstack not supported
- if isUseDualStackEndpoint(req) {
- return s3shared.NewClientConfiguredForDualStackError(accessPoint,
- req.ClientInfo.PartitionID, aws.StringValue(req.Config.Region), nil)
- }
-
- // Ignore the disable host prefix for access points
- req.Config.DisableEndpointHostPrefix = aws.Bool(false)
-
- if err := outpostAccessPointEndpointBuilder(accessPoint).build(req); err != nil {
- return err
- }
-
- removeBucketFromPath(req.HTTPRequest.URL)
- return nil
-}
-
-func removeBucketFromPath(u *url.URL) {
- u.Path = strings.Replace(u.Path, "/{Bucket}", "", -1)
- if u.Path == "" {
- u.Path = "/"
- }
-}
-
-func buildWriteGetObjectResponseEndpoint(req *request.Request) {
- // DualStack not supported
- if isUseDualStackEndpoint(req) {
- req.Error = awserr.New("ConfigurationError", "client configured for dualstack but not supported for operation", nil)
- return
- }
-
- // Accelerate not supported
- if aws.BoolValue(req.Config.S3UseAccelerate) {
- req.Error = awserr.New("ConfigurationError", "client configured for accelerate but not supported for operation", nil)
- return
- }
-
- signingName := s3ObjectsLambdaNamespace
- signingRegion := req.ClientInfo.SigningRegion
-
- if !hasCustomEndpoint(req) {
- endpoint, err := resolveRegionalEndpoint(req, aws.StringValue(req.Config.Region), req.ClientInfo.ResolvedRegion, EndpointsID)
- if err != nil {
- req.Error = awserr.New(request.ErrCodeSerialization, "failed to resolve endpoint", err)
- return
- }
- signingRegion = endpoint.SigningRegion
-
- if err = updateRequestEndpoint(req, endpoint.URL); err != nil {
- req.Error = err
- return
- }
- updateS3HostPrefixForS3ObjectLambda(req)
- }
-
- redirectSigner(req, signingName, signingRegion)
-}
-
-func isUseDualStackEndpoint(req *request.Request) bool {
- if req.Config.UseDualStackEndpoint != endpoints.DualStackEndpointStateUnset {
- return req.Config.UseDualStackEndpoint == endpoints.DualStackEndpointStateEnabled
- }
- return aws.BoolValue(req.Config.UseDualStack)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint_builder.go b/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint_builder.go
deleted file mode 100644
index 7ae18ef54..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/endpoint_builder.go
+++ /dev/null
@@ -1,239 +0,0 @@
-package s3
-
-import (
- "net/url"
- "strings"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/endpoints"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/internal/s3shared"
- "github.com/aws/aws-sdk-go/internal/s3shared/arn"
- "github.com/aws/aws-sdk-go/private/protocol"
-)
-
-const (
- accessPointPrefixLabel = "accesspoint"
- accountIDPrefixLabel = "accountID"
- accessPointPrefixTemplate = "{" + accessPointPrefixLabel + "}-{" + accountIDPrefixLabel + "}."
-
- outpostPrefixLabel = "outpost"
- outpostAccessPointPrefixTemplate = accessPointPrefixTemplate + "{" + outpostPrefixLabel + "}."
-)
-
-// hasCustomEndpoint returns true if endpoint is a custom endpoint
-func hasCustomEndpoint(r *request.Request) bool {
- return len(aws.StringValue(r.Config.Endpoint)) > 0
-}
-
-// accessPointEndpointBuilder represents the endpoint builder for access point arn
-type accessPointEndpointBuilder arn.AccessPointARN
-
-// build builds the endpoint for corresponding access point arn
-//
-// For building an endpoint from access point arn, format used is:
-// - Access point endpoint format : {accesspointName}-{accountId}.s3-accesspoint.{region}.{dnsSuffix}
-// - example : myaccesspoint-012345678901.s3-accesspoint.us-west-2.amazonaws.com
-//
-// Access Point Endpoint requests are signed using "s3" as signing name.
-func (a accessPointEndpointBuilder) build(req *request.Request) error {
- resolveService := arn.AccessPointARN(a).Service
- resolveRegion := arn.AccessPointARN(a).Region
-
- endpoint, err := resolveRegionalEndpoint(req, resolveRegion, "", resolveService)
- if err != nil {
- return s3shared.NewFailedToResolveEndpointError(arn.AccessPointARN(a),
- req.ClientInfo.PartitionID, resolveRegion, err)
- }
-
- endpoint.URL = endpoints.AddScheme(endpoint.URL, aws.BoolValue(req.Config.DisableSSL))
-
- if !hasCustomEndpoint(req) {
- if err = updateRequestEndpoint(req, endpoint.URL); err != nil {
- return err
- }
-
- // dual stack provided by endpoint resolver
- updateS3HostForS3AccessPoint(req)
- }
-
- protocol.HostPrefixBuilder{
- Prefix: accessPointPrefixTemplate,
- LabelsFn: a.hostPrefixLabelValues,
- }.Build(req)
-
- // signer redirection
- redirectSigner(req, endpoint.SigningName, endpoint.SigningRegion)
-
- err = protocol.ValidateEndpointHost(req.Operation.Name, req.HTTPRequest.URL.Host)
- if err != nil {
- return s3shared.NewInvalidARNError(arn.AccessPointARN(a), err)
- }
-
- return nil
-}
-
-func (a accessPointEndpointBuilder) hostPrefixLabelValues() map[string]string {
- return map[string]string{
- accessPointPrefixLabel: arn.AccessPointARN(a).AccessPointName,
- accountIDPrefixLabel: arn.AccessPointARN(a).AccountID,
- }
-}
-
-// s3ObjectLambdaAccessPointEndpointBuilder represents the endpoint builder for an s3 object lambda access point arn
-type s3ObjectLambdaAccessPointEndpointBuilder arn.S3ObjectLambdaAccessPointARN
-
-// build builds the endpoint for corresponding access point arn
-//
-// For building an endpoint from access point arn, format used is:
-// - Access point endpoint format : {accesspointName}-{accountId}.s3-object-lambda.{region}.{dnsSuffix}
-// - example : myaccesspoint-012345678901.s3-object-lambda.us-west-2.amazonaws.com
-//
-// Access Point Endpoint requests are signed using "s3-object-lambda" as signing name.
-func (a s3ObjectLambdaAccessPointEndpointBuilder) build(req *request.Request) error {
- resolveRegion := arn.S3ObjectLambdaAccessPointARN(a).Region
-
- endpoint, err := resolveRegionalEndpoint(req, resolveRegion, "", EndpointsID)
- if err != nil {
- return s3shared.NewFailedToResolveEndpointError(arn.S3ObjectLambdaAccessPointARN(a),
- req.ClientInfo.PartitionID, resolveRegion, err)
- }
-
- endpoint.URL = endpoints.AddScheme(endpoint.URL, aws.BoolValue(req.Config.DisableSSL))
-
- endpoint.SigningName = s3ObjectsLambdaNamespace
-
- if !hasCustomEndpoint(req) {
- if err = updateRequestEndpoint(req, endpoint.URL); err != nil {
- return err
- }
-
- updateS3HostPrefixForS3ObjectLambda(req)
- }
-
- protocol.HostPrefixBuilder{
- Prefix: accessPointPrefixTemplate,
- LabelsFn: a.hostPrefixLabelValues,
- }.Build(req)
-
- // signer redirection
- redirectSigner(req, endpoint.SigningName, endpoint.SigningRegion)
-
- err = protocol.ValidateEndpointHost(req.Operation.Name, req.HTTPRequest.URL.Host)
- if err != nil {
- return s3shared.NewInvalidARNError(arn.S3ObjectLambdaAccessPointARN(a), err)
- }
-
- return nil
-}
-
-func (a s3ObjectLambdaAccessPointEndpointBuilder) hostPrefixLabelValues() map[string]string {
- return map[string]string{
- accessPointPrefixLabel: arn.S3ObjectLambdaAccessPointARN(a).AccessPointName,
- accountIDPrefixLabel: arn.S3ObjectLambdaAccessPointARN(a).AccountID,
- }
-}
-
-// outpostAccessPointEndpointBuilder represents the Endpoint builder for outpost access point arn.
-type outpostAccessPointEndpointBuilder arn.OutpostAccessPointARN
-
-// build builds an endpoint corresponding to the outpost access point arn.
-//
-// For building an endpoint from outpost access point arn, format used is:
-// - Outpost access point endpoint format : {accesspointName}-{accountId}.{outpostId}.s3-outposts.{region}.{dnsSuffix}
-// - example : myaccesspoint-012345678901.op-01234567890123456.s3-outposts.us-west-2.amazonaws.com
-//
-// Outpost AccessPoint Endpoint request are signed using "s3-outposts" as signing name.
-func (o outpostAccessPointEndpointBuilder) build(req *request.Request) error {
- resolveRegion := o.Region
- resolveService := o.Service
-
- endpointsID := resolveService
- if resolveService == s3OutpostsNamespace {
- endpointsID = "s3"
- }
-
- endpoint, err := resolveRegionalEndpoint(req, resolveRegion, "", endpointsID)
- if err != nil {
- return s3shared.NewFailedToResolveEndpointError(o,
- req.ClientInfo.PartitionID, resolveRegion, err)
- }
-
- endpoint.URL = endpoints.AddScheme(endpoint.URL, aws.BoolValue(req.Config.DisableSSL))
-
- if !hasCustomEndpoint(req) {
- if err = updateRequestEndpoint(req, endpoint.URL); err != nil {
- return err
- }
- updateHostPrefix(req, endpointsID, resolveService)
- }
-
- protocol.HostPrefixBuilder{
- Prefix: outpostAccessPointPrefixTemplate,
- LabelsFn: o.hostPrefixLabelValues,
- }.Build(req)
-
- // set the signing region, name to resolved names from ARN
- redirectSigner(req, resolveService, resolveRegion)
-
- err = protocol.ValidateEndpointHost(req.Operation.Name, req.HTTPRequest.URL.Host)
- if err != nil {
- return s3shared.NewInvalidARNError(o, err)
- }
-
- return nil
-}
-
-func (o outpostAccessPointEndpointBuilder) hostPrefixLabelValues() map[string]string {
- return map[string]string{
- accessPointPrefixLabel: o.AccessPointName,
- accountIDPrefixLabel: o.AccountID,
- outpostPrefixLabel: o.OutpostID,
- }
-}
-
-func resolveRegionalEndpoint(r *request.Request, region, resolvedRegion, endpointsID string) (endpoints.ResolvedEndpoint, error) {
- return r.Config.EndpointResolver.EndpointFor(endpointsID, region, func(opts *endpoints.Options) {
- opts.DisableSSL = aws.BoolValue(r.Config.DisableSSL)
- opts.UseDualStack = aws.BoolValue(r.Config.UseDualStack)
- opts.UseDualStackEndpoint = r.Config.UseDualStackEndpoint
- opts.UseFIPSEndpoint = r.Config.UseFIPSEndpoint
- opts.S3UsEast1RegionalEndpoint = endpoints.RegionalS3UsEast1Endpoint
- opts.ResolvedRegion = resolvedRegion
- opts.Logger = r.Config.Logger
- opts.LogDeprecated = r.Config.LogLevel.Matches(aws.LogDebugWithDeprecated)
- })
-}
-
-func updateRequestEndpoint(r *request.Request, endpoint string) (err error) {
- r.HTTPRequest.URL, err = url.Parse(endpoint + r.Operation.HTTPPath)
- if err != nil {
- return awserr.New(request.ErrCodeSerialization,
- "failed to parse endpoint URL", err)
- }
-
- return nil
-}
-
-// redirectSigner sets signing name, signing region for a request
-func redirectSigner(req *request.Request, signingName string, signingRegion string) {
- req.ClientInfo.SigningName = signingName
- req.ClientInfo.SigningRegion = signingRegion
-}
-
-func updateS3HostForS3AccessPoint(req *request.Request) {
- updateHostPrefix(req, "s3", s3AccessPointNamespace)
-}
-
-func updateS3HostPrefixForS3ObjectLambda(req *request.Request) {
- updateHostPrefix(req, "s3", s3ObjectsLambdaNamespace)
-}
-
-func updateHostPrefix(req *request.Request, oldEndpointPrefix, newEndpointPrefix string) {
- host := req.HTTPRequest.URL.Host
- if strings.HasPrefix(host, oldEndpointPrefix) {
- // replace service hostlabel oldEndpointPrefix to newEndpointPrefix
- req.HTTPRequest.URL.Host = newEndpointPrefix + host[len(oldEndpointPrefix):]
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go b/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go
deleted file mode 100644
index cd6a2e8ae..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go
+++ /dev/null
@@ -1,60 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package s3
-
-const (
-
- // ErrCodeBucketAlreadyExists for service response error code
- // "BucketAlreadyExists".
- //
- // The requested bucket name is not available. The bucket namespace is shared
- // by all users of the system. Select a different name and try again.
- ErrCodeBucketAlreadyExists = "BucketAlreadyExists"
-
- // ErrCodeBucketAlreadyOwnedByYou for service response error code
- // "BucketAlreadyOwnedByYou".
- //
- // The bucket you tried to create already exists, and you own it. Amazon S3
- // returns this error in all Amazon Web Services Regions except in the North
- // Virginia Region. For legacy compatibility, if you re-create an existing bucket
- // that you already own in the North Virginia Region, Amazon S3 returns 200
- // OK and resets the bucket access control lists (ACLs).
- ErrCodeBucketAlreadyOwnedByYou = "BucketAlreadyOwnedByYou"
-
- // ErrCodeInvalidObjectState for service response error code
- // "InvalidObjectState".
- //
- // Object is archived and inaccessible until restored.
- ErrCodeInvalidObjectState = "InvalidObjectState"
-
- // ErrCodeNoSuchBucket for service response error code
- // "NoSuchBucket".
- //
- // The specified bucket does not exist.
- ErrCodeNoSuchBucket = "NoSuchBucket"
-
- // ErrCodeNoSuchKey for service response error code
- // "NoSuchKey".
- //
- // The specified key does not exist.
- ErrCodeNoSuchKey = "NoSuchKey"
-
- // ErrCodeNoSuchUpload for service response error code
- // "NoSuchUpload".
- //
- // The specified multipart upload does not exist.
- ErrCodeNoSuchUpload = "NoSuchUpload"
-
- // ErrCodeObjectAlreadyInActiveTierError for service response error code
- // "ObjectAlreadyInActiveTierError".
- //
- // This action is not allowed against this storage tier.
- ErrCodeObjectAlreadyInActiveTierError = "ObjectAlreadyInActiveTierError"
-
- // ErrCodeObjectNotInActiveTierError for service response error code
- // "ObjectNotInActiveTierError".
- //
- // The source object of the COPY action is not in the active tier and is only
- // stored in Amazon S3 Glacier.
- ErrCodeObjectNotInActiveTierError = "ObjectNotInActiveTierError"
-)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go
deleted file mode 100644
index 81cdec1ae..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go
+++ /dev/null
@@ -1,136 +0,0 @@
-package s3
-
-import (
- "fmt"
- "net/url"
- "regexp"
- "strings"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// an operationBlacklist is a list of operation names that should a
-// request handler should not be executed with.
-type operationBlacklist []string
-
-// Continue will return true of the Request's operation name is not
-// in the blacklist. False otherwise.
-func (b operationBlacklist) Continue(r *request.Request) bool {
- for i := 0; i < len(b); i++ {
- if b[i] == r.Operation.Name {
- return false
- }
- }
- return true
-}
-
-var accelerateOpBlacklist = operationBlacklist{
- opListBuckets, opCreateBucket, opDeleteBucket,
-}
-
-// Automatically add the bucket name to the endpoint domain
-// if possible. This style of bucket is valid for all bucket names which are
-// DNS compatible and do not contain "."
-func updateEndpointForS3Config(r *request.Request, bucketName string) {
- forceHostStyle := aws.BoolValue(r.Config.S3ForcePathStyle)
- accelerate := aws.BoolValue(r.Config.S3UseAccelerate)
-
- if accelerate && accelerateOpBlacklist.Continue(r) {
- if forceHostStyle {
- if r.Config.Logger != nil {
- r.Config.Logger.Log("ERROR: aws.Config.S3UseAccelerate is not compatible with aws.Config.S3ForcePathStyle, ignoring S3ForcePathStyle.")
- }
- }
- updateEndpointForAccelerate(r, bucketName)
- } else if !forceHostStyle && r.Operation.Name != opGetBucketLocation {
- updateEndpointForHostStyle(r, bucketName)
- }
-}
-
-func updateEndpointForHostStyle(r *request.Request, bucketName string) {
- if !hostCompatibleBucketName(r.HTTPRequest.URL, bucketName) {
- // bucket name must be valid to put into the host
- return
- }
-
- moveBucketToHost(r.HTTPRequest.URL, bucketName)
-}
-
-var (
- accelElem = []byte("s3-accelerate.dualstack.")
-)
-
-func updateEndpointForAccelerate(r *request.Request, bucketName string) {
- if !hostCompatibleBucketName(r.HTTPRequest.URL, bucketName) {
- r.Error = awserr.New("InvalidParameterException",
- fmt.Sprintf("bucket name %s is not compatible with S3 Accelerate", bucketName),
- nil)
- return
- }
-
- parts := strings.Split(r.HTTPRequest.URL.Host, ".")
- if len(parts) < 3 {
- r.Error = awserr.New("InvalidParameterExecption",
- fmt.Sprintf("unable to update endpoint host for S3 accelerate, hostname invalid, %s",
- r.HTTPRequest.URL.Host), nil)
- return
- }
-
- if parts[0] == "s3" || strings.HasPrefix(parts[0], "s3-") {
- parts[0] = "s3-accelerate"
- }
- for i := 1; i+1 < len(parts); i++ {
- if parts[i] == aws.StringValue(r.Config.Region) {
- parts = append(parts[:i], parts[i+1:]...)
- break
- }
- }
-
- r.HTTPRequest.URL.Host = strings.Join(parts, ".")
-
- moveBucketToHost(r.HTTPRequest.URL, bucketName)
-}
-
-// Attempts to retrieve the bucket name from the request input parameters.
-// If no bucket is found, or the field is empty "", false will be returned.
-func bucketNameFromReqParams(params interface{}) (string, bool) {
- if iface, ok := params.(bucketGetter); ok {
- b := iface.getBucket()
- return b, len(b) > 0
- }
-
- return "", false
-}
-
-// hostCompatibleBucketName returns true if the request should
-// put the bucket in the host. This is false if S3ForcePathStyle is
-// explicitly set or if the bucket is not DNS compatible.
-func hostCompatibleBucketName(u *url.URL, bucket string) bool {
- // Bucket might be DNS compatible but dots in the hostname will fail
- // certificate validation, so do not use host-style.
- if u.Scheme == "https" && strings.Contains(bucket, ".") {
- return false
- }
-
- // if the bucket is DNS compatible
- return dnsCompatibleBucketName(bucket)
-}
-
-var reDomain = regexp.MustCompile(`^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$`)
-var reIPAddress = regexp.MustCompile(`^(\d+\.){3}\d+$`)
-
-// dnsCompatibleBucketName returns true if the bucket name is DNS compatible.
-// Buckets created outside of the classic region MUST be DNS compatible.
-func dnsCompatibleBucketName(bucket string) bool {
- return reDomain.MatchString(bucket) &&
- !reIPAddress.MatchString(bucket) &&
- !strings.Contains(bucket, "..")
-}
-
-// moveBucketToHost moves the bucket name from the URI path to URL host.
-func moveBucketToHost(u *url.URL, bucket string) {
- u.Host = bucket + "." + u.Host
- removeBucketFromPath(u)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go b/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go
deleted file mode 100644
index 308b7d473..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go
+++ /dev/null
@@ -1,9 +0,0 @@
-//go:build !go1.6
-// +build !go1.6
-
-package s3
-
-import "github.com/aws/aws-sdk-go/aws/request"
-
-func platformRequestHandlers(r *request.Request) {
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go b/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go
deleted file mode 100644
index 70feffab7..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go
+++ /dev/null
@@ -1,29 +0,0 @@
-//go:build go1.6
-// +build go1.6
-
-package s3
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/request"
-)
-
-func platformRequestHandlers(r *request.Request) {
- if r.Operation.HTTPMethod == "PUT" {
- // 100-Continue should only be used on put requests.
- r.Handlers.Sign.PushBack(add100Continue)
- }
-}
-
-func add100Continue(r *request.Request) {
- if aws.BoolValue(r.Config.S3Disable100Continue) {
- return
- }
- if r.HTTPRequest.ContentLength < 1024*1024*2 {
- // Ignore requests smaller than 2MB. This helps prevent delaying
- // requests unnecessarily.
- return
- }
-
- r.HTTPRequest.Header.Set("Expect", "100-continue")
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go
deleted file mode 100644
index 6d679a299..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go
+++ /dev/null
@@ -1,479 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-// Package s3iface provides an interface to enable mocking the Amazon Simple Storage Service service client
-// for testing your code.
-//
-// It is important to note that this interface will have breaking changes
-// when the service model is updated and adds new API operations, paginators,
-// and waiters.
-package s3iface
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/service/s3"
-)
-
-// S3API provides an interface to enable mocking the
-// s3.S3 service client's API operation,
-// paginators, and waiters. This make unit testing your code that calls out
-// to the SDK's service client's calls easier.
-//
-// The best way to use this interface is so the SDK's service client's calls
-// can be stubbed out for unit testing your code with the SDK without needing
-// to inject custom request handlers into the SDK's request pipeline.
-//
-// // myFunc uses an SDK service client to make a request to
-// // Amazon Simple Storage Service.
-// func myFunc(svc s3iface.S3API) bool {
-// // Make svc.AbortMultipartUpload request
-// }
-//
-// func main() {
-// sess := session.New()
-// svc := s3.New(sess)
-//
-// myFunc(svc)
-// }
-//
-// In your _test.go file:
-//
-// // Define a mock struct to be used in your unit tests of myFunc.
-// type mockS3Client struct {
-// s3iface.S3API
-// }
-// func (m *mockS3Client) AbortMultipartUpload(input *s3.AbortMultipartUploadInput) (*s3.AbortMultipartUploadOutput, error) {
-// // mock response/functionality
-// }
-//
-// func TestMyFunc(t *testing.T) {
-// // Setup Test
-// mockSvc := &mockS3Client{}
-//
-// myfunc(mockSvc)
-//
-// // Verify myFunc's functionality
-// }
-//
-// It is important to note that this interface will have breaking changes
-// when the service model is updated and adds new API operations, paginators,
-// and waiters. Its suggested to use the pattern above for testing, or using
-// tooling to generate mocks to satisfy the interfaces.
-type S3API interface {
- AbortMultipartUpload(*s3.AbortMultipartUploadInput) (*s3.AbortMultipartUploadOutput, error)
- AbortMultipartUploadWithContext(aws.Context, *s3.AbortMultipartUploadInput, ...request.Option) (*s3.AbortMultipartUploadOutput, error)
- AbortMultipartUploadRequest(*s3.AbortMultipartUploadInput) (*request.Request, *s3.AbortMultipartUploadOutput)
-
- CompleteMultipartUpload(*s3.CompleteMultipartUploadInput) (*s3.CompleteMultipartUploadOutput, error)
- CompleteMultipartUploadWithContext(aws.Context, *s3.CompleteMultipartUploadInput, ...request.Option) (*s3.CompleteMultipartUploadOutput, error)
- CompleteMultipartUploadRequest(*s3.CompleteMultipartUploadInput) (*request.Request, *s3.CompleteMultipartUploadOutput)
-
- CopyObject(*s3.CopyObjectInput) (*s3.CopyObjectOutput, error)
- CopyObjectWithContext(aws.Context, *s3.CopyObjectInput, ...request.Option) (*s3.CopyObjectOutput, error)
- CopyObjectRequest(*s3.CopyObjectInput) (*request.Request, *s3.CopyObjectOutput)
-
- CreateBucket(*s3.CreateBucketInput) (*s3.CreateBucketOutput, error)
- CreateBucketWithContext(aws.Context, *s3.CreateBucketInput, ...request.Option) (*s3.CreateBucketOutput, error)
- CreateBucketRequest(*s3.CreateBucketInput) (*request.Request, *s3.CreateBucketOutput)
-
- CreateMultipartUpload(*s3.CreateMultipartUploadInput) (*s3.CreateMultipartUploadOutput, error)
- CreateMultipartUploadWithContext(aws.Context, *s3.CreateMultipartUploadInput, ...request.Option) (*s3.CreateMultipartUploadOutput, error)
- CreateMultipartUploadRequest(*s3.CreateMultipartUploadInput) (*request.Request, *s3.CreateMultipartUploadOutput)
-
- DeleteBucket(*s3.DeleteBucketInput) (*s3.DeleteBucketOutput, error)
- DeleteBucketWithContext(aws.Context, *s3.DeleteBucketInput, ...request.Option) (*s3.DeleteBucketOutput, error)
- DeleteBucketRequest(*s3.DeleteBucketInput) (*request.Request, *s3.DeleteBucketOutput)
-
- DeleteBucketAnalyticsConfiguration(*s3.DeleteBucketAnalyticsConfigurationInput) (*s3.DeleteBucketAnalyticsConfigurationOutput, error)
- DeleteBucketAnalyticsConfigurationWithContext(aws.Context, *s3.DeleteBucketAnalyticsConfigurationInput, ...request.Option) (*s3.DeleteBucketAnalyticsConfigurationOutput, error)
- DeleteBucketAnalyticsConfigurationRequest(*s3.DeleteBucketAnalyticsConfigurationInput) (*request.Request, *s3.DeleteBucketAnalyticsConfigurationOutput)
-
- DeleteBucketCors(*s3.DeleteBucketCorsInput) (*s3.DeleteBucketCorsOutput, error)
- DeleteBucketCorsWithContext(aws.Context, *s3.DeleteBucketCorsInput, ...request.Option) (*s3.DeleteBucketCorsOutput, error)
- DeleteBucketCorsRequest(*s3.DeleteBucketCorsInput) (*request.Request, *s3.DeleteBucketCorsOutput)
-
- DeleteBucketEncryption(*s3.DeleteBucketEncryptionInput) (*s3.DeleteBucketEncryptionOutput, error)
- DeleteBucketEncryptionWithContext(aws.Context, *s3.DeleteBucketEncryptionInput, ...request.Option) (*s3.DeleteBucketEncryptionOutput, error)
- DeleteBucketEncryptionRequest(*s3.DeleteBucketEncryptionInput) (*request.Request, *s3.DeleteBucketEncryptionOutput)
-
- DeleteBucketIntelligentTieringConfiguration(*s3.DeleteBucketIntelligentTieringConfigurationInput) (*s3.DeleteBucketIntelligentTieringConfigurationOutput, error)
- DeleteBucketIntelligentTieringConfigurationWithContext(aws.Context, *s3.DeleteBucketIntelligentTieringConfigurationInput, ...request.Option) (*s3.DeleteBucketIntelligentTieringConfigurationOutput, error)
- DeleteBucketIntelligentTieringConfigurationRequest(*s3.DeleteBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.DeleteBucketIntelligentTieringConfigurationOutput)
-
- DeleteBucketInventoryConfiguration(*s3.DeleteBucketInventoryConfigurationInput) (*s3.DeleteBucketInventoryConfigurationOutput, error)
- DeleteBucketInventoryConfigurationWithContext(aws.Context, *s3.DeleteBucketInventoryConfigurationInput, ...request.Option) (*s3.DeleteBucketInventoryConfigurationOutput, error)
- DeleteBucketInventoryConfigurationRequest(*s3.DeleteBucketInventoryConfigurationInput) (*request.Request, *s3.DeleteBucketInventoryConfigurationOutput)
-
- DeleteBucketLifecycle(*s3.DeleteBucketLifecycleInput) (*s3.DeleteBucketLifecycleOutput, error)
- DeleteBucketLifecycleWithContext(aws.Context, *s3.DeleteBucketLifecycleInput, ...request.Option) (*s3.DeleteBucketLifecycleOutput, error)
- DeleteBucketLifecycleRequest(*s3.DeleteBucketLifecycleInput) (*request.Request, *s3.DeleteBucketLifecycleOutput)
-
- DeleteBucketMetricsConfiguration(*s3.DeleteBucketMetricsConfigurationInput) (*s3.DeleteBucketMetricsConfigurationOutput, error)
- DeleteBucketMetricsConfigurationWithContext(aws.Context, *s3.DeleteBucketMetricsConfigurationInput, ...request.Option) (*s3.DeleteBucketMetricsConfigurationOutput, error)
- DeleteBucketMetricsConfigurationRequest(*s3.DeleteBucketMetricsConfigurationInput) (*request.Request, *s3.DeleteBucketMetricsConfigurationOutput)
-
- DeleteBucketOwnershipControls(*s3.DeleteBucketOwnershipControlsInput) (*s3.DeleteBucketOwnershipControlsOutput, error)
- DeleteBucketOwnershipControlsWithContext(aws.Context, *s3.DeleteBucketOwnershipControlsInput, ...request.Option) (*s3.DeleteBucketOwnershipControlsOutput, error)
- DeleteBucketOwnershipControlsRequest(*s3.DeleteBucketOwnershipControlsInput) (*request.Request, *s3.DeleteBucketOwnershipControlsOutput)
-
- DeleteBucketPolicy(*s3.DeleteBucketPolicyInput) (*s3.DeleteBucketPolicyOutput, error)
- DeleteBucketPolicyWithContext(aws.Context, *s3.DeleteBucketPolicyInput, ...request.Option) (*s3.DeleteBucketPolicyOutput, error)
- DeleteBucketPolicyRequest(*s3.DeleteBucketPolicyInput) (*request.Request, *s3.DeleteBucketPolicyOutput)
-
- DeleteBucketReplication(*s3.DeleteBucketReplicationInput) (*s3.DeleteBucketReplicationOutput, error)
- DeleteBucketReplicationWithContext(aws.Context, *s3.DeleteBucketReplicationInput, ...request.Option) (*s3.DeleteBucketReplicationOutput, error)
- DeleteBucketReplicationRequest(*s3.DeleteBucketReplicationInput) (*request.Request, *s3.DeleteBucketReplicationOutput)
-
- DeleteBucketTagging(*s3.DeleteBucketTaggingInput) (*s3.DeleteBucketTaggingOutput, error)
- DeleteBucketTaggingWithContext(aws.Context, *s3.DeleteBucketTaggingInput, ...request.Option) (*s3.DeleteBucketTaggingOutput, error)
- DeleteBucketTaggingRequest(*s3.DeleteBucketTaggingInput) (*request.Request, *s3.DeleteBucketTaggingOutput)
-
- DeleteBucketWebsite(*s3.DeleteBucketWebsiteInput) (*s3.DeleteBucketWebsiteOutput, error)
- DeleteBucketWebsiteWithContext(aws.Context, *s3.DeleteBucketWebsiteInput, ...request.Option) (*s3.DeleteBucketWebsiteOutput, error)
- DeleteBucketWebsiteRequest(*s3.DeleteBucketWebsiteInput) (*request.Request, *s3.DeleteBucketWebsiteOutput)
-
- DeleteObject(*s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
- DeleteObjectWithContext(aws.Context, *s3.DeleteObjectInput, ...request.Option) (*s3.DeleteObjectOutput, error)
- DeleteObjectRequest(*s3.DeleteObjectInput) (*request.Request, *s3.DeleteObjectOutput)
-
- DeleteObjectTagging(*s3.DeleteObjectTaggingInput) (*s3.DeleteObjectTaggingOutput, error)
- DeleteObjectTaggingWithContext(aws.Context, *s3.DeleteObjectTaggingInput, ...request.Option) (*s3.DeleteObjectTaggingOutput, error)
- DeleteObjectTaggingRequest(*s3.DeleteObjectTaggingInput) (*request.Request, *s3.DeleteObjectTaggingOutput)
-
- DeleteObjects(*s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error)
- DeleteObjectsWithContext(aws.Context, *s3.DeleteObjectsInput, ...request.Option) (*s3.DeleteObjectsOutput, error)
- DeleteObjectsRequest(*s3.DeleteObjectsInput) (*request.Request, *s3.DeleteObjectsOutput)
-
- DeletePublicAccessBlock(*s3.DeletePublicAccessBlockInput) (*s3.DeletePublicAccessBlockOutput, error)
- DeletePublicAccessBlockWithContext(aws.Context, *s3.DeletePublicAccessBlockInput, ...request.Option) (*s3.DeletePublicAccessBlockOutput, error)
- DeletePublicAccessBlockRequest(*s3.DeletePublicAccessBlockInput) (*request.Request, *s3.DeletePublicAccessBlockOutput)
-
- GetBucketAccelerateConfiguration(*s3.GetBucketAccelerateConfigurationInput) (*s3.GetBucketAccelerateConfigurationOutput, error)
- GetBucketAccelerateConfigurationWithContext(aws.Context, *s3.GetBucketAccelerateConfigurationInput, ...request.Option) (*s3.GetBucketAccelerateConfigurationOutput, error)
- GetBucketAccelerateConfigurationRequest(*s3.GetBucketAccelerateConfigurationInput) (*request.Request, *s3.GetBucketAccelerateConfigurationOutput)
-
- GetBucketAcl(*s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error)
- GetBucketAclWithContext(aws.Context, *s3.GetBucketAclInput, ...request.Option) (*s3.GetBucketAclOutput, error)
- GetBucketAclRequest(*s3.GetBucketAclInput) (*request.Request, *s3.GetBucketAclOutput)
-
- GetBucketAnalyticsConfiguration(*s3.GetBucketAnalyticsConfigurationInput) (*s3.GetBucketAnalyticsConfigurationOutput, error)
- GetBucketAnalyticsConfigurationWithContext(aws.Context, *s3.GetBucketAnalyticsConfigurationInput, ...request.Option) (*s3.GetBucketAnalyticsConfigurationOutput, error)
- GetBucketAnalyticsConfigurationRequest(*s3.GetBucketAnalyticsConfigurationInput) (*request.Request, *s3.GetBucketAnalyticsConfigurationOutput)
-
- GetBucketCors(*s3.GetBucketCorsInput) (*s3.GetBucketCorsOutput, error)
- GetBucketCorsWithContext(aws.Context, *s3.GetBucketCorsInput, ...request.Option) (*s3.GetBucketCorsOutput, error)
- GetBucketCorsRequest(*s3.GetBucketCorsInput) (*request.Request, *s3.GetBucketCorsOutput)
-
- GetBucketEncryption(*s3.GetBucketEncryptionInput) (*s3.GetBucketEncryptionOutput, error)
- GetBucketEncryptionWithContext(aws.Context, *s3.GetBucketEncryptionInput, ...request.Option) (*s3.GetBucketEncryptionOutput, error)
- GetBucketEncryptionRequest(*s3.GetBucketEncryptionInput) (*request.Request, *s3.GetBucketEncryptionOutput)
-
- GetBucketIntelligentTieringConfiguration(*s3.GetBucketIntelligentTieringConfigurationInput) (*s3.GetBucketIntelligentTieringConfigurationOutput, error)
- GetBucketIntelligentTieringConfigurationWithContext(aws.Context, *s3.GetBucketIntelligentTieringConfigurationInput, ...request.Option) (*s3.GetBucketIntelligentTieringConfigurationOutput, error)
- GetBucketIntelligentTieringConfigurationRequest(*s3.GetBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.GetBucketIntelligentTieringConfigurationOutput)
-
- GetBucketInventoryConfiguration(*s3.GetBucketInventoryConfigurationInput) (*s3.GetBucketInventoryConfigurationOutput, error)
- GetBucketInventoryConfigurationWithContext(aws.Context, *s3.GetBucketInventoryConfigurationInput, ...request.Option) (*s3.GetBucketInventoryConfigurationOutput, error)
- GetBucketInventoryConfigurationRequest(*s3.GetBucketInventoryConfigurationInput) (*request.Request, *s3.GetBucketInventoryConfigurationOutput)
-
- GetBucketLifecycle(*s3.GetBucketLifecycleInput) (*s3.GetBucketLifecycleOutput, error)
- GetBucketLifecycleWithContext(aws.Context, *s3.GetBucketLifecycleInput, ...request.Option) (*s3.GetBucketLifecycleOutput, error)
- GetBucketLifecycleRequest(*s3.GetBucketLifecycleInput) (*request.Request, *s3.GetBucketLifecycleOutput)
-
- GetBucketLifecycleConfiguration(*s3.GetBucketLifecycleConfigurationInput) (*s3.GetBucketLifecycleConfigurationOutput, error)
- GetBucketLifecycleConfigurationWithContext(aws.Context, *s3.GetBucketLifecycleConfigurationInput, ...request.Option) (*s3.GetBucketLifecycleConfigurationOutput, error)
- GetBucketLifecycleConfigurationRequest(*s3.GetBucketLifecycleConfigurationInput) (*request.Request, *s3.GetBucketLifecycleConfigurationOutput)
-
- GetBucketLocation(*s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error)
- GetBucketLocationWithContext(aws.Context, *s3.GetBucketLocationInput, ...request.Option) (*s3.GetBucketLocationOutput, error)
- GetBucketLocationRequest(*s3.GetBucketLocationInput) (*request.Request, *s3.GetBucketLocationOutput)
-
- GetBucketLogging(*s3.GetBucketLoggingInput) (*s3.GetBucketLoggingOutput, error)
- GetBucketLoggingWithContext(aws.Context, *s3.GetBucketLoggingInput, ...request.Option) (*s3.GetBucketLoggingOutput, error)
- GetBucketLoggingRequest(*s3.GetBucketLoggingInput) (*request.Request, *s3.GetBucketLoggingOutput)
-
- GetBucketMetricsConfiguration(*s3.GetBucketMetricsConfigurationInput) (*s3.GetBucketMetricsConfigurationOutput, error)
- GetBucketMetricsConfigurationWithContext(aws.Context, *s3.GetBucketMetricsConfigurationInput, ...request.Option) (*s3.GetBucketMetricsConfigurationOutput, error)
- GetBucketMetricsConfigurationRequest(*s3.GetBucketMetricsConfigurationInput) (*request.Request, *s3.GetBucketMetricsConfigurationOutput)
-
- GetBucketNotification(*s3.GetBucketNotificationConfigurationRequest) (*s3.NotificationConfigurationDeprecated, error)
- GetBucketNotificationWithContext(aws.Context, *s3.GetBucketNotificationConfigurationRequest, ...request.Option) (*s3.NotificationConfigurationDeprecated, error)
- GetBucketNotificationRequest(*s3.GetBucketNotificationConfigurationRequest) (*request.Request, *s3.NotificationConfigurationDeprecated)
-
- GetBucketNotificationConfiguration(*s3.GetBucketNotificationConfigurationRequest) (*s3.NotificationConfiguration, error)
- GetBucketNotificationConfigurationWithContext(aws.Context, *s3.GetBucketNotificationConfigurationRequest, ...request.Option) (*s3.NotificationConfiguration, error)
- GetBucketNotificationConfigurationRequest(*s3.GetBucketNotificationConfigurationRequest) (*request.Request, *s3.NotificationConfiguration)
-
- GetBucketOwnershipControls(*s3.GetBucketOwnershipControlsInput) (*s3.GetBucketOwnershipControlsOutput, error)
- GetBucketOwnershipControlsWithContext(aws.Context, *s3.GetBucketOwnershipControlsInput, ...request.Option) (*s3.GetBucketOwnershipControlsOutput, error)
- GetBucketOwnershipControlsRequest(*s3.GetBucketOwnershipControlsInput) (*request.Request, *s3.GetBucketOwnershipControlsOutput)
-
- GetBucketPolicy(*s3.GetBucketPolicyInput) (*s3.GetBucketPolicyOutput, error)
- GetBucketPolicyWithContext(aws.Context, *s3.GetBucketPolicyInput, ...request.Option) (*s3.GetBucketPolicyOutput, error)
- GetBucketPolicyRequest(*s3.GetBucketPolicyInput) (*request.Request, *s3.GetBucketPolicyOutput)
-
- GetBucketPolicyStatus(*s3.GetBucketPolicyStatusInput) (*s3.GetBucketPolicyStatusOutput, error)
- GetBucketPolicyStatusWithContext(aws.Context, *s3.GetBucketPolicyStatusInput, ...request.Option) (*s3.GetBucketPolicyStatusOutput, error)
- GetBucketPolicyStatusRequest(*s3.GetBucketPolicyStatusInput) (*request.Request, *s3.GetBucketPolicyStatusOutput)
-
- GetBucketReplication(*s3.GetBucketReplicationInput) (*s3.GetBucketReplicationOutput, error)
- GetBucketReplicationWithContext(aws.Context, *s3.GetBucketReplicationInput, ...request.Option) (*s3.GetBucketReplicationOutput, error)
- GetBucketReplicationRequest(*s3.GetBucketReplicationInput) (*request.Request, *s3.GetBucketReplicationOutput)
-
- GetBucketRequestPayment(*s3.GetBucketRequestPaymentInput) (*s3.GetBucketRequestPaymentOutput, error)
- GetBucketRequestPaymentWithContext(aws.Context, *s3.GetBucketRequestPaymentInput, ...request.Option) (*s3.GetBucketRequestPaymentOutput, error)
- GetBucketRequestPaymentRequest(*s3.GetBucketRequestPaymentInput) (*request.Request, *s3.GetBucketRequestPaymentOutput)
-
- GetBucketTagging(*s3.GetBucketTaggingInput) (*s3.GetBucketTaggingOutput, error)
- GetBucketTaggingWithContext(aws.Context, *s3.GetBucketTaggingInput, ...request.Option) (*s3.GetBucketTaggingOutput, error)
- GetBucketTaggingRequest(*s3.GetBucketTaggingInput) (*request.Request, *s3.GetBucketTaggingOutput)
-
- GetBucketVersioning(*s3.GetBucketVersioningInput) (*s3.GetBucketVersioningOutput, error)
- GetBucketVersioningWithContext(aws.Context, *s3.GetBucketVersioningInput, ...request.Option) (*s3.GetBucketVersioningOutput, error)
- GetBucketVersioningRequest(*s3.GetBucketVersioningInput) (*request.Request, *s3.GetBucketVersioningOutput)
-
- GetBucketWebsite(*s3.GetBucketWebsiteInput) (*s3.GetBucketWebsiteOutput, error)
- GetBucketWebsiteWithContext(aws.Context, *s3.GetBucketWebsiteInput, ...request.Option) (*s3.GetBucketWebsiteOutput, error)
- GetBucketWebsiteRequest(*s3.GetBucketWebsiteInput) (*request.Request, *s3.GetBucketWebsiteOutput)
-
- GetObject(*s3.GetObjectInput) (*s3.GetObjectOutput, error)
- GetObjectWithContext(aws.Context, *s3.GetObjectInput, ...request.Option) (*s3.GetObjectOutput, error)
- GetObjectRequest(*s3.GetObjectInput) (*request.Request, *s3.GetObjectOutput)
-
- GetObjectAcl(*s3.GetObjectAclInput) (*s3.GetObjectAclOutput, error)
- GetObjectAclWithContext(aws.Context, *s3.GetObjectAclInput, ...request.Option) (*s3.GetObjectAclOutput, error)
- GetObjectAclRequest(*s3.GetObjectAclInput) (*request.Request, *s3.GetObjectAclOutput)
-
- GetObjectAttributes(*s3.GetObjectAttributesInput) (*s3.GetObjectAttributesOutput, error)
- GetObjectAttributesWithContext(aws.Context, *s3.GetObjectAttributesInput, ...request.Option) (*s3.GetObjectAttributesOutput, error)
- GetObjectAttributesRequest(*s3.GetObjectAttributesInput) (*request.Request, *s3.GetObjectAttributesOutput)
-
- GetObjectLegalHold(*s3.GetObjectLegalHoldInput) (*s3.GetObjectLegalHoldOutput, error)
- GetObjectLegalHoldWithContext(aws.Context, *s3.GetObjectLegalHoldInput, ...request.Option) (*s3.GetObjectLegalHoldOutput, error)
- GetObjectLegalHoldRequest(*s3.GetObjectLegalHoldInput) (*request.Request, *s3.GetObjectLegalHoldOutput)
-
- GetObjectLockConfiguration(*s3.GetObjectLockConfigurationInput) (*s3.GetObjectLockConfigurationOutput, error)
- GetObjectLockConfigurationWithContext(aws.Context, *s3.GetObjectLockConfigurationInput, ...request.Option) (*s3.GetObjectLockConfigurationOutput, error)
- GetObjectLockConfigurationRequest(*s3.GetObjectLockConfigurationInput) (*request.Request, *s3.GetObjectLockConfigurationOutput)
-
- GetObjectRetention(*s3.GetObjectRetentionInput) (*s3.GetObjectRetentionOutput, error)
- GetObjectRetentionWithContext(aws.Context, *s3.GetObjectRetentionInput, ...request.Option) (*s3.GetObjectRetentionOutput, error)
- GetObjectRetentionRequest(*s3.GetObjectRetentionInput) (*request.Request, *s3.GetObjectRetentionOutput)
-
- GetObjectTagging(*s3.GetObjectTaggingInput) (*s3.GetObjectTaggingOutput, error)
- GetObjectTaggingWithContext(aws.Context, *s3.GetObjectTaggingInput, ...request.Option) (*s3.GetObjectTaggingOutput, error)
- GetObjectTaggingRequest(*s3.GetObjectTaggingInput) (*request.Request, *s3.GetObjectTaggingOutput)
-
- GetObjectTorrent(*s3.GetObjectTorrentInput) (*s3.GetObjectTorrentOutput, error)
- GetObjectTorrentWithContext(aws.Context, *s3.GetObjectTorrentInput, ...request.Option) (*s3.GetObjectTorrentOutput, error)
- GetObjectTorrentRequest(*s3.GetObjectTorrentInput) (*request.Request, *s3.GetObjectTorrentOutput)
-
- GetPublicAccessBlock(*s3.GetPublicAccessBlockInput) (*s3.GetPublicAccessBlockOutput, error)
- GetPublicAccessBlockWithContext(aws.Context, *s3.GetPublicAccessBlockInput, ...request.Option) (*s3.GetPublicAccessBlockOutput, error)
- GetPublicAccessBlockRequest(*s3.GetPublicAccessBlockInput) (*request.Request, *s3.GetPublicAccessBlockOutput)
-
- HeadBucket(*s3.HeadBucketInput) (*s3.HeadBucketOutput, error)
- HeadBucketWithContext(aws.Context, *s3.HeadBucketInput, ...request.Option) (*s3.HeadBucketOutput, error)
- HeadBucketRequest(*s3.HeadBucketInput) (*request.Request, *s3.HeadBucketOutput)
-
- HeadObject(*s3.HeadObjectInput) (*s3.HeadObjectOutput, error)
- HeadObjectWithContext(aws.Context, *s3.HeadObjectInput, ...request.Option) (*s3.HeadObjectOutput, error)
- HeadObjectRequest(*s3.HeadObjectInput) (*request.Request, *s3.HeadObjectOutput)
-
- ListBucketAnalyticsConfigurations(*s3.ListBucketAnalyticsConfigurationsInput) (*s3.ListBucketAnalyticsConfigurationsOutput, error)
- ListBucketAnalyticsConfigurationsWithContext(aws.Context, *s3.ListBucketAnalyticsConfigurationsInput, ...request.Option) (*s3.ListBucketAnalyticsConfigurationsOutput, error)
- ListBucketAnalyticsConfigurationsRequest(*s3.ListBucketAnalyticsConfigurationsInput) (*request.Request, *s3.ListBucketAnalyticsConfigurationsOutput)
-
- ListBucketIntelligentTieringConfigurations(*s3.ListBucketIntelligentTieringConfigurationsInput) (*s3.ListBucketIntelligentTieringConfigurationsOutput, error)
- ListBucketIntelligentTieringConfigurationsWithContext(aws.Context, *s3.ListBucketIntelligentTieringConfigurationsInput, ...request.Option) (*s3.ListBucketIntelligentTieringConfigurationsOutput, error)
- ListBucketIntelligentTieringConfigurationsRequest(*s3.ListBucketIntelligentTieringConfigurationsInput) (*request.Request, *s3.ListBucketIntelligentTieringConfigurationsOutput)
-
- ListBucketInventoryConfigurations(*s3.ListBucketInventoryConfigurationsInput) (*s3.ListBucketInventoryConfigurationsOutput, error)
- ListBucketInventoryConfigurationsWithContext(aws.Context, *s3.ListBucketInventoryConfigurationsInput, ...request.Option) (*s3.ListBucketInventoryConfigurationsOutput, error)
- ListBucketInventoryConfigurationsRequest(*s3.ListBucketInventoryConfigurationsInput) (*request.Request, *s3.ListBucketInventoryConfigurationsOutput)
-
- ListBucketMetricsConfigurations(*s3.ListBucketMetricsConfigurationsInput) (*s3.ListBucketMetricsConfigurationsOutput, error)
- ListBucketMetricsConfigurationsWithContext(aws.Context, *s3.ListBucketMetricsConfigurationsInput, ...request.Option) (*s3.ListBucketMetricsConfigurationsOutput, error)
- ListBucketMetricsConfigurationsRequest(*s3.ListBucketMetricsConfigurationsInput) (*request.Request, *s3.ListBucketMetricsConfigurationsOutput)
-
- ListBuckets(*s3.ListBucketsInput) (*s3.ListBucketsOutput, error)
- ListBucketsWithContext(aws.Context, *s3.ListBucketsInput, ...request.Option) (*s3.ListBucketsOutput, error)
- ListBucketsRequest(*s3.ListBucketsInput) (*request.Request, *s3.ListBucketsOutput)
-
- ListMultipartUploads(*s3.ListMultipartUploadsInput) (*s3.ListMultipartUploadsOutput, error)
- ListMultipartUploadsWithContext(aws.Context, *s3.ListMultipartUploadsInput, ...request.Option) (*s3.ListMultipartUploadsOutput, error)
- ListMultipartUploadsRequest(*s3.ListMultipartUploadsInput) (*request.Request, *s3.ListMultipartUploadsOutput)
-
- ListMultipartUploadsPages(*s3.ListMultipartUploadsInput, func(*s3.ListMultipartUploadsOutput, bool) bool) error
- ListMultipartUploadsPagesWithContext(aws.Context, *s3.ListMultipartUploadsInput, func(*s3.ListMultipartUploadsOutput, bool) bool, ...request.Option) error
-
- ListObjectVersions(*s3.ListObjectVersionsInput) (*s3.ListObjectVersionsOutput, error)
- ListObjectVersionsWithContext(aws.Context, *s3.ListObjectVersionsInput, ...request.Option) (*s3.ListObjectVersionsOutput, error)
- ListObjectVersionsRequest(*s3.ListObjectVersionsInput) (*request.Request, *s3.ListObjectVersionsOutput)
-
- ListObjectVersionsPages(*s3.ListObjectVersionsInput, func(*s3.ListObjectVersionsOutput, bool) bool) error
- ListObjectVersionsPagesWithContext(aws.Context, *s3.ListObjectVersionsInput, func(*s3.ListObjectVersionsOutput, bool) bool, ...request.Option) error
-
- ListObjects(*s3.ListObjectsInput) (*s3.ListObjectsOutput, error)
- ListObjectsWithContext(aws.Context, *s3.ListObjectsInput, ...request.Option) (*s3.ListObjectsOutput, error)
- ListObjectsRequest(*s3.ListObjectsInput) (*request.Request, *s3.ListObjectsOutput)
-
- ListObjectsPages(*s3.ListObjectsInput, func(*s3.ListObjectsOutput, bool) bool) error
- ListObjectsPagesWithContext(aws.Context, *s3.ListObjectsInput, func(*s3.ListObjectsOutput, bool) bool, ...request.Option) error
-
- ListObjectsV2(*s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)
- ListObjectsV2WithContext(aws.Context, *s3.ListObjectsV2Input, ...request.Option) (*s3.ListObjectsV2Output, error)
- ListObjectsV2Request(*s3.ListObjectsV2Input) (*request.Request, *s3.ListObjectsV2Output)
-
- ListObjectsV2Pages(*s3.ListObjectsV2Input, func(*s3.ListObjectsV2Output, bool) bool) error
- ListObjectsV2PagesWithContext(aws.Context, *s3.ListObjectsV2Input, func(*s3.ListObjectsV2Output, bool) bool, ...request.Option) error
-
- ListParts(*s3.ListPartsInput) (*s3.ListPartsOutput, error)
- ListPartsWithContext(aws.Context, *s3.ListPartsInput, ...request.Option) (*s3.ListPartsOutput, error)
- ListPartsRequest(*s3.ListPartsInput) (*request.Request, *s3.ListPartsOutput)
-
- ListPartsPages(*s3.ListPartsInput, func(*s3.ListPartsOutput, bool) bool) error
- ListPartsPagesWithContext(aws.Context, *s3.ListPartsInput, func(*s3.ListPartsOutput, bool) bool, ...request.Option) error
-
- PutBucketAccelerateConfiguration(*s3.PutBucketAccelerateConfigurationInput) (*s3.PutBucketAccelerateConfigurationOutput, error)
- PutBucketAccelerateConfigurationWithContext(aws.Context, *s3.PutBucketAccelerateConfigurationInput, ...request.Option) (*s3.PutBucketAccelerateConfigurationOutput, error)
- PutBucketAccelerateConfigurationRequest(*s3.PutBucketAccelerateConfigurationInput) (*request.Request, *s3.PutBucketAccelerateConfigurationOutput)
-
- PutBucketAcl(*s3.PutBucketAclInput) (*s3.PutBucketAclOutput, error)
- PutBucketAclWithContext(aws.Context, *s3.PutBucketAclInput, ...request.Option) (*s3.PutBucketAclOutput, error)
- PutBucketAclRequest(*s3.PutBucketAclInput) (*request.Request, *s3.PutBucketAclOutput)
-
- PutBucketAnalyticsConfiguration(*s3.PutBucketAnalyticsConfigurationInput) (*s3.PutBucketAnalyticsConfigurationOutput, error)
- PutBucketAnalyticsConfigurationWithContext(aws.Context, *s3.PutBucketAnalyticsConfigurationInput, ...request.Option) (*s3.PutBucketAnalyticsConfigurationOutput, error)
- PutBucketAnalyticsConfigurationRequest(*s3.PutBucketAnalyticsConfigurationInput) (*request.Request, *s3.PutBucketAnalyticsConfigurationOutput)
-
- PutBucketCors(*s3.PutBucketCorsInput) (*s3.PutBucketCorsOutput, error)
- PutBucketCorsWithContext(aws.Context, *s3.PutBucketCorsInput, ...request.Option) (*s3.PutBucketCorsOutput, error)
- PutBucketCorsRequest(*s3.PutBucketCorsInput) (*request.Request, *s3.PutBucketCorsOutput)
-
- PutBucketEncryption(*s3.PutBucketEncryptionInput) (*s3.PutBucketEncryptionOutput, error)
- PutBucketEncryptionWithContext(aws.Context, *s3.PutBucketEncryptionInput, ...request.Option) (*s3.PutBucketEncryptionOutput, error)
- PutBucketEncryptionRequest(*s3.PutBucketEncryptionInput) (*request.Request, *s3.PutBucketEncryptionOutput)
-
- PutBucketIntelligentTieringConfiguration(*s3.PutBucketIntelligentTieringConfigurationInput) (*s3.PutBucketIntelligentTieringConfigurationOutput, error)
- PutBucketIntelligentTieringConfigurationWithContext(aws.Context, *s3.PutBucketIntelligentTieringConfigurationInput, ...request.Option) (*s3.PutBucketIntelligentTieringConfigurationOutput, error)
- PutBucketIntelligentTieringConfigurationRequest(*s3.PutBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.PutBucketIntelligentTieringConfigurationOutput)
-
- PutBucketInventoryConfiguration(*s3.PutBucketInventoryConfigurationInput) (*s3.PutBucketInventoryConfigurationOutput, error)
- PutBucketInventoryConfigurationWithContext(aws.Context, *s3.PutBucketInventoryConfigurationInput, ...request.Option) (*s3.PutBucketInventoryConfigurationOutput, error)
- PutBucketInventoryConfigurationRequest(*s3.PutBucketInventoryConfigurationInput) (*request.Request, *s3.PutBucketInventoryConfigurationOutput)
-
- PutBucketLifecycle(*s3.PutBucketLifecycleInput) (*s3.PutBucketLifecycleOutput, error)
- PutBucketLifecycleWithContext(aws.Context, *s3.PutBucketLifecycleInput, ...request.Option) (*s3.PutBucketLifecycleOutput, error)
- PutBucketLifecycleRequest(*s3.PutBucketLifecycleInput) (*request.Request, *s3.PutBucketLifecycleOutput)
-
- PutBucketLifecycleConfiguration(*s3.PutBucketLifecycleConfigurationInput) (*s3.PutBucketLifecycleConfigurationOutput, error)
- PutBucketLifecycleConfigurationWithContext(aws.Context, *s3.PutBucketLifecycleConfigurationInput, ...request.Option) (*s3.PutBucketLifecycleConfigurationOutput, error)
- PutBucketLifecycleConfigurationRequest(*s3.PutBucketLifecycleConfigurationInput) (*request.Request, *s3.PutBucketLifecycleConfigurationOutput)
-
- PutBucketLogging(*s3.PutBucketLoggingInput) (*s3.PutBucketLoggingOutput, error)
- PutBucketLoggingWithContext(aws.Context, *s3.PutBucketLoggingInput, ...request.Option) (*s3.PutBucketLoggingOutput, error)
- PutBucketLoggingRequest(*s3.PutBucketLoggingInput) (*request.Request, *s3.PutBucketLoggingOutput)
-
- PutBucketMetricsConfiguration(*s3.PutBucketMetricsConfigurationInput) (*s3.PutBucketMetricsConfigurationOutput, error)
- PutBucketMetricsConfigurationWithContext(aws.Context, *s3.PutBucketMetricsConfigurationInput, ...request.Option) (*s3.PutBucketMetricsConfigurationOutput, error)
- PutBucketMetricsConfigurationRequest(*s3.PutBucketMetricsConfigurationInput) (*request.Request, *s3.PutBucketMetricsConfigurationOutput)
-
- PutBucketNotification(*s3.PutBucketNotificationInput) (*s3.PutBucketNotificationOutput, error)
- PutBucketNotificationWithContext(aws.Context, *s3.PutBucketNotificationInput, ...request.Option) (*s3.PutBucketNotificationOutput, error)
- PutBucketNotificationRequest(*s3.PutBucketNotificationInput) (*request.Request, *s3.PutBucketNotificationOutput)
-
- PutBucketNotificationConfiguration(*s3.PutBucketNotificationConfigurationInput) (*s3.PutBucketNotificationConfigurationOutput, error)
- PutBucketNotificationConfigurationWithContext(aws.Context, *s3.PutBucketNotificationConfigurationInput, ...request.Option) (*s3.PutBucketNotificationConfigurationOutput, error)
- PutBucketNotificationConfigurationRequest(*s3.PutBucketNotificationConfigurationInput) (*request.Request, *s3.PutBucketNotificationConfigurationOutput)
-
- PutBucketOwnershipControls(*s3.PutBucketOwnershipControlsInput) (*s3.PutBucketOwnershipControlsOutput, error)
- PutBucketOwnershipControlsWithContext(aws.Context, *s3.PutBucketOwnershipControlsInput, ...request.Option) (*s3.PutBucketOwnershipControlsOutput, error)
- PutBucketOwnershipControlsRequest(*s3.PutBucketOwnershipControlsInput) (*request.Request, *s3.PutBucketOwnershipControlsOutput)
-
- PutBucketPolicy(*s3.PutBucketPolicyInput) (*s3.PutBucketPolicyOutput, error)
- PutBucketPolicyWithContext(aws.Context, *s3.PutBucketPolicyInput, ...request.Option) (*s3.PutBucketPolicyOutput, error)
- PutBucketPolicyRequest(*s3.PutBucketPolicyInput) (*request.Request, *s3.PutBucketPolicyOutput)
-
- PutBucketReplication(*s3.PutBucketReplicationInput) (*s3.PutBucketReplicationOutput, error)
- PutBucketReplicationWithContext(aws.Context, *s3.PutBucketReplicationInput, ...request.Option) (*s3.PutBucketReplicationOutput, error)
- PutBucketReplicationRequest(*s3.PutBucketReplicationInput) (*request.Request, *s3.PutBucketReplicationOutput)
-
- PutBucketRequestPayment(*s3.PutBucketRequestPaymentInput) (*s3.PutBucketRequestPaymentOutput, error)
- PutBucketRequestPaymentWithContext(aws.Context, *s3.PutBucketRequestPaymentInput, ...request.Option) (*s3.PutBucketRequestPaymentOutput, error)
- PutBucketRequestPaymentRequest(*s3.PutBucketRequestPaymentInput) (*request.Request, *s3.PutBucketRequestPaymentOutput)
-
- PutBucketTagging(*s3.PutBucketTaggingInput) (*s3.PutBucketTaggingOutput, error)
- PutBucketTaggingWithContext(aws.Context, *s3.PutBucketTaggingInput, ...request.Option) (*s3.PutBucketTaggingOutput, error)
- PutBucketTaggingRequest(*s3.PutBucketTaggingInput) (*request.Request, *s3.PutBucketTaggingOutput)
-
- PutBucketVersioning(*s3.PutBucketVersioningInput) (*s3.PutBucketVersioningOutput, error)
- PutBucketVersioningWithContext(aws.Context, *s3.PutBucketVersioningInput, ...request.Option) (*s3.PutBucketVersioningOutput, error)
- PutBucketVersioningRequest(*s3.PutBucketVersioningInput) (*request.Request, *s3.PutBucketVersioningOutput)
-
- PutBucketWebsite(*s3.PutBucketWebsiteInput) (*s3.PutBucketWebsiteOutput, error)
- PutBucketWebsiteWithContext(aws.Context, *s3.PutBucketWebsiteInput, ...request.Option) (*s3.PutBucketWebsiteOutput, error)
- PutBucketWebsiteRequest(*s3.PutBucketWebsiteInput) (*request.Request, *s3.PutBucketWebsiteOutput)
-
- PutObject(*s3.PutObjectInput) (*s3.PutObjectOutput, error)
- PutObjectWithContext(aws.Context, *s3.PutObjectInput, ...request.Option) (*s3.PutObjectOutput, error)
- PutObjectRequest(*s3.PutObjectInput) (*request.Request, *s3.PutObjectOutput)
-
- PutObjectAcl(*s3.PutObjectAclInput) (*s3.PutObjectAclOutput, error)
- PutObjectAclWithContext(aws.Context, *s3.PutObjectAclInput, ...request.Option) (*s3.PutObjectAclOutput, error)
- PutObjectAclRequest(*s3.PutObjectAclInput) (*request.Request, *s3.PutObjectAclOutput)
-
- PutObjectLegalHold(*s3.PutObjectLegalHoldInput) (*s3.PutObjectLegalHoldOutput, error)
- PutObjectLegalHoldWithContext(aws.Context, *s3.PutObjectLegalHoldInput, ...request.Option) (*s3.PutObjectLegalHoldOutput, error)
- PutObjectLegalHoldRequest(*s3.PutObjectLegalHoldInput) (*request.Request, *s3.PutObjectLegalHoldOutput)
-
- PutObjectLockConfiguration(*s3.PutObjectLockConfigurationInput) (*s3.PutObjectLockConfigurationOutput, error)
- PutObjectLockConfigurationWithContext(aws.Context, *s3.PutObjectLockConfigurationInput, ...request.Option) (*s3.PutObjectLockConfigurationOutput, error)
- PutObjectLockConfigurationRequest(*s3.PutObjectLockConfigurationInput) (*request.Request, *s3.PutObjectLockConfigurationOutput)
-
- PutObjectRetention(*s3.PutObjectRetentionInput) (*s3.PutObjectRetentionOutput, error)
- PutObjectRetentionWithContext(aws.Context, *s3.PutObjectRetentionInput, ...request.Option) (*s3.PutObjectRetentionOutput, error)
- PutObjectRetentionRequest(*s3.PutObjectRetentionInput) (*request.Request, *s3.PutObjectRetentionOutput)
-
- PutObjectTagging(*s3.PutObjectTaggingInput) (*s3.PutObjectTaggingOutput, error)
- PutObjectTaggingWithContext(aws.Context, *s3.PutObjectTaggingInput, ...request.Option) (*s3.PutObjectTaggingOutput, error)
- PutObjectTaggingRequest(*s3.PutObjectTaggingInput) (*request.Request, *s3.PutObjectTaggingOutput)
-
- PutPublicAccessBlock(*s3.PutPublicAccessBlockInput) (*s3.PutPublicAccessBlockOutput, error)
- PutPublicAccessBlockWithContext(aws.Context, *s3.PutPublicAccessBlockInput, ...request.Option) (*s3.PutPublicAccessBlockOutput, error)
- PutPublicAccessBlockRequest(*s3.PutPublicAccessBlockInput) (*request.Request, *s3.PutPublicAccessBlockOutput)
-
- RestoreObject(*s3.RestoreObjectInput) (*s3.RestoreObjectOutput, error)
- RestoreObjectWithContext(aws.Context, *s3.RestoreObjectInput, ...request.Option) (*s3.RestoreObjectOutput, error)
- RestoreObjectRequest(*s3.RestoreObjectInput) (*request.Request, *s3.RestoreObjectOutput)
-
- SelectObjectContent(*s3.SelectObjectContentInput) (*s3.SelectObjectContentOutput, error)
- SelectObjectContentWithContext(aws.Context, *s3.SelectObjectContentInput, ...request.Option) (*s3.SelectObjectContentOutput, error)
- SelectObjectContentRequest(*s3.SelectObjectContentInput) (*request.Request, *s3.SelectObjectContentOutput)
-
- UploadPart(*s3.UploadPartInput) (*s3.UploadPartOutput, error)
- UploadPartWithContext(aws.Context, *s3.UploadPartInput, ...request.Option) (*s3.UploadPartOutput, error)
- UploadPartRequest(*s3.UploadPartInput) (*request.Request, *s3.UploadPartOutput)
-
- UploadPartCopy(*s3.UploadPartCopyInput) (*s3.UploadPartCopyOutput, error)
- UploadPartCopyWithContext(aws.Context, *s3.UploadPartCopyInput, ...request.Option) (*s3.UploadPartCopyOutput, error)
- UploadPartCopyRequest(*s3.UploadPartCopyInput) (*request.Request, *s3.UploadPartCopyOutput)
-
- WriteGetObjectResponse(*s3.WriteGetObjectResponseInput) (*s3.WriteGetObjectResponseOutput, error)
- WriteGetObjectResponseWithContext(aws.Context, *s3.WriteGetObjectResponseInput, ...request.Option) (*s3.WriteGetObjectResponseOutput, error)
- WriteGetObjectResponseRequest(*s3.WriteGetObjectResponseInput) (*request.Request, *s3.WriteGetObjectResponseOutput)
-
- WaitUntilBucketExists(*s3.HeadBucketInput) error
- WaitUntilBucketExistsWithContext(aws.Context, *s3.HeadBucketInput, ...request.WaiterOption) error
-
- WaitUntilBucketNotExists(*s3.HeadBucketInput) error
- WaitUntilBucketNotExistsWithContext(aws.Context, *s3.HeadBucketInput, ...request.WaiterOption) error
-
- WaitUntilObjectExists(*s3.HeadObjectInput) error
- WaitUntilObjectExistsWithContext(aws.Context, *s3.HeadObjectInput, ...request.WaiterOption) error
-
- WaitUntilObjectNotExists(*s3.HeadObjectInput) error
- WaitUntilObjectNotExistsWithContext(aws.Context, *s3.HeadObjectInput, ...request.WaiterOption) error
-}
-
-var _ S3API = (*s3.S3)(nil)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/arn.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/arn.go
deleted file mode 100644
index f0a7f9bfc..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/arn.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package s3manager
-
-import (
- "fmt"
- "github.com/aws/aws-sdk-go/aws/arn"
-)
-
-func validateSupportedARNType(bucket string) error {
- if !arn.IsARN(bucket) {
- return nil
- }
-
- parsedARN, err := arn.Parse(bucket)
- if err != nil {
- return err
- }
-
- if parsedARN.Service == "s3-object-lambda" {
- return fmt.Errorf("manager does not support s3-object-lambda service ARNs")
- }
-
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/batch.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/batch.go
deleted file mode 100644
index 0804bca65..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/batch.go
+++ /dev/null
@@ -1,532 +0,0 @@
-package s3manager
-
-import (
- "bytes"
- "fmt"
- "io"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/aws/aws-sdk-go/service/s3/s3iface"
-)
-
-const (
- // DefaultBatchSize is the batch size we initialize when constructing a batch delete client.
- // This value is used when calling DeleteObjects. This represents how many objects to delete
- // per DeleteObjects call.
- DefaultBatchSize = 100
-)
-
-// BatchError will contain the key and bucket of the object that failed to
-// either upload or download.
-type BatchError struct {
- Errors Errors
- code string
- message string
-}
-
-// Errors is a typed alias for a slice of errors to satisfy the error
-// interface.
-type Errors []Error
-
-func (errs Errors) Error() string {
- buf := bytes.NewBuffer(nil)
- for i, err := range errs {
- buf.WriteString(err.Error())
- if i+1 < len(errs) {
- buf.WriteString("\n")
- }
- }
- return buf.String()
-}
-
-// Error will contain the original error, bucket, and key of the operation that failed
-// during batch operations.
-type Error struct {
- OrigErr error
- Bucket *string
- Key *string
-}
-
-func newError(err error, bucket, key *string) Error {
- return Error{
- err,
- bucket,
- key,
- }
-}
-
-func (err *Error) Error() string {
- origErr := ""
- if err.OrigErr != nil {
- origErr = ":\n" + err.OrigErr.Error()
- }
- return fmt.Sprintf("failed to perform batch operation on %q to %q%s",
- aws.StringValue(err.Key),
- aws.StringValue(err.Bucket),
- origErr,
- )
-}
-
-// NewBatchError will return a BatchError that satisfies the awserr.Error interface.
-func NewBatchError(code, message string, err []Error) awserr.Error {
- return &BatchError{
- Errors: err,
- code: code,
- message: message,
- }
-}
-
-// Code will return the code associated with the batch error.
-func (err *BatchError) Code() string {
- return err.code
-}
-
-// Message will return the message associated with the batch error.
-func (err *BatchError) Message() string {
- return err.message
-}
-
-func (err *BatchError) Error() string {
- return awserr.SprintError(err.Code(), err.Message(), "", err.Errors)
-}
-
-// OrigErr will return the original error. Which, in this case, will always be nil
-// for batched operations.
-func (err *BatchError) OrigErr() error {
- return err.Errors
-}
-
-// BatchDeleteIterator is an interface that uses the scanner pattern to
-// iterate through what needs to be deleted.
-type BatchDeleteIterator interface {
- Next() bool
- Err() error
- DeleteObject() BatchDeleteObject
-}
-
-// DeleteListIterator is an alternative iterator for the BatchDelete client. This will
-// iterate through a list of objects and delete the objects.
-//
-// Example:
-//
-// iter := &s3manager.DeleteListIterator{
-// Client: svc,
-// Input: &s3.ListObjectsInput{
-// Bucket: aws.String("bucket"),
-// MaxKeys: aws.Int64(5),
-// },
-// Paginator: request.Pagination{
-// NewRequest: func() (*request.Request, error) {
-// var inCpy *ListObjectsInput
-// if input != nil {
-// tmp := *input
-// inCpy = &tmp
-// }
-// req, _ := c.ListObjectsRequest(inCpy)
-// return req, nil
-// },
-// },
-// }
-//
-// batcher := s3manager.NewBatchDeleteWithClient(svc)
-// if err := batcher.Delete(aws.BackgroundContext(), iter); err != nil {
-// return err
-// }
-type DeleteListIterator struct {
- Bucket *string
- Paginator request.Pagination
- objects []*s3.Object
-}
-
-// NewDeleteListIterator will return a new DeleteListIterator.
-func NewDeleteListIterator(svc s3iface.S3API, input *s3.ListObjectsInput, opts ...func(*DeleteListIterator)) BatchDeleteIterator {
- iter := &DeleteListIterator{
- Bucket: input.Bucket,
- Paginator: request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *s3.ListObjectsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := svc.ListObjectsRequest(inCpy)
- return req, nil
- },
- },
- }
-
- for _, opt := range opts {
- opt(iter)
- }
- return iter
-}
-
-// Next will use the S3API client to iterate through a list of objects.
-func (iter *DeleteListIterator) Next() bool {
- if len(iter.objects) > 0 {
- iter.objects = iter.objects[1:]
- }
-
- if len(iter.objects) == 0 && iter.Paginator.Next() {
- iter.objects = iter.Paginator.Page().(*s3.ListObjectsOutput).Contents
- }
-
- return len(iter.objects) > 0
-}
-
-// Err will return the last known error from Next.
-func (iter *DeleteListIterator) Err() error {
- return iter.Paginator.Err()
-}
-
-// DeleteObject will return the current object to be deleted.
-func (iter *DeleteListIterator) DeleteObject() BatchDeleteObject {
- return BatchDeleteObject{
- Object: &s3.DeleteObjectInput{
- Bucket: iter.Bucket,
- Key: iter.objects[0].Key,
- },
- }
-}
-
-// BatchDelete will use the s3 package's service client to perform a batch
-// delete.
-type BatchDelete struct {
- Client s3iface.S3API
- BatchSize int
-}
-
-// NewBatchDeleteWithClient will return a new delete client that can delete a batched amount of
-// objects.
-//
-// Example:
-//
-// batcher := s3manager.NewBatchDeleteWithClient(client, size)
-//
-// objects := []BatchDeleteObject{
-// {
-// Object: &s3.DeleteObjectInput {
-// Key: aws.String("key"),
-// Bucket: aws.String("bucket"),
-// },
-// },
-// }
-//
-// if err := batcher.Delete(aws.BackgroundContext(), &s3manager.DeleteObjectsIterator{
-// Objects: objects,
-// }); err != nil {
-// return err
-// }
-func NewBatchDeleteWithClient(client s3iface.S3API, options ...func(*BatchDelete)) *BatchDelete {
- svc := &BatchDelete{
- Client: client,
- BatchSize: DefaultBatchSize,
- }
-
- for _, opt := range options {
- opt(svc)
- }
-
- return svc
-}
-
-// NewBatchDelete will return a new delete client that can delete a batched amount of
-// objects.
-//
-// Example:
-//
-// batcher := s3manager.NewBatchDelete(sess, size)
-//
-// objects := []BatchDeleteObject{
-// {
-// Object: &s3.DeleteObjectInput {
-// Key: aws.String("key"),
-// Bucket: aws.String("bucket"),
-// },
-// },
-// }
-//
-// if err := batcher.Delete(aws.BackgroundContext(), &s3manager.DeleteObjectsIterator{
-// Objects: objects,
-// }); err != nil {
-// return err
-// }
-func NewBatchDelete(c client.ConfigProvider, options ...func(*BatchDelete)) *BatchDelete {
- client := s3.New(c)
- return NewBatchDeleteWithClient(client, options...)
-}
-
-// BatchDeleteObject is a wrapper object for calling the batch delete operation.
-type BatchDeleteObject struct {
- Object *s3.DeleteObjectInput
- // After will run after each iteration during the batch process. This function will
- // be executed whether or not the request was successful.
- After func() error
-}
-
-// DeleteObjectsIterator is an interface that uses the scanner pattern to iterate
-// through a series of objects to be deleted.
-type DeleteObjectsIterator struct {
- Objects []BatchDeleteObject
- index int
- inc bool
-}
-
-// Next will increment the default iterator's index and ensure that there
-// is another object to iterator to.
-func (iter *DeleteObjectsIterator) Next() bool {
- if iter.inc {
- iter.index++
- } else {
- iter.inc = true
- }
- return iter.index < len(iter.Objects)
-}
-
-// Err will return an error. Since this is just used to satisfy the BatchDeleteIterator interface
-// this will only return nil.
-func (iter *DeleteObjectsIterator) Err() error {
- return nil
-}
-
-// DeleteObject will return the BatchDeleteObject at the current batched index.
-func (iter *DeleteObjectsIterator) DeleteObject() BatchDeleteObject {
- object := iter.Objects[iter.index]
- return object
-}
-
-// Delete will use the iterator to queue up objects that need to be deleted.
-// Once the batch size is met, this will call the deleteBatch function.
-func (d *BatchDelete) Delete(ctx aws.Context, iter BatchDeleteIterator) error {
- var errs []Error
- objects := []BatchDeleteObject{}
- var input *s3.DeleteObjectsInput
-
- for iter.Next() {
- o := iter.DeleteObject()
-
- if input == nil {
- input = initDeleteObjectsInput(o.Object)
- }
-
- parity := hasParity(input, o)
- if parity {
- input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{
- Key: o.Object.Key,
- VersionId: o.Object.VersionId,
- })
- objects = append(objects, o)
- }
-
- if len(input.Delete.Objects) == d.BatchSize || !parity {
- if err := deleteBatch(ctx, d, input, objects); err != nil {
- errs = append(errs, err...)
- }
-
- objects = objects[:0]
- input = nil
-
- if !parity {
- objects = append(objects, o)
- input = initDeleteObjectsInput(o.Object)
- input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{
- Key: o.Object.Key,
- VersionId: o.Object.VersionId,
- })
- }
- }
- }
-
- // iter.Next() could return false (above) plus populate iter.Err()
- if iter.Err() != nil {
- errs = append(errs, newError(iter.Err(), nil, nil))
- }
-
- if input != nil && len(input.Delete.Objects) > 0 {
- if err := deleteBatch(ctx, d, input, objects); err != nil {
- errs = append(errs, err...)
- }
- }
-
- if len(errs) > 0 {
- return NewBatchError("BatchedDeleteIncomplete", "some objects have failed to be deleted.", errs)
- }
- return nil
-}
-
-func initDeleteObjectsInput(o *s3.DeleteObjectInput) *s3.DeleteObjectsInput {
- return &s3.DeleteObjectsInput{
- Bucket: o.Bucket,
- MFA: o.MFA,
- RequestPayer: o.RequestPayer,
- Delete: &s3.Delete{},
- }
-}
-
-const (
- // ErrDeleteBatchFailCode represents an error code which will be returned
- // only when DeleteObjects.Errors has an error that does not contain a code.
- ErrDeleteBatchFailCode = "DeleteBatchError"
- errDefaultDeleteBatchMessage = "failed to delete"
-)
-
-// deleteBatch will delete a batch of items in the objects parameters.
-func deleteBatch(ctx aws.Context, d *BatchDelete, input *s3.DeleteObjectsInput, objects []BatchDeleteObject) []Error {
- errs := []Error{}
-
- if result, err := d.Client.DeleteObjectsWithContext(ctx, input); err != nil {
- for i := 0; i < len(input.Delete.Objects); i++ {
- errs = append(errs, newError(err, input.Bucket, input.Delete.Objects[i].Key))
- }
- } else if len(result.Errors) > 0 {
- for i := 0; i < len(result.Errors); i++ {
- code := ErrDeleteBatchFailCode
- msg := errDefaultDeleteBatchMessage
- if result.Errors[i].Message != nil {
- msg = *result.Errors[i].Message
- }
- if result.Errors[i].Code != nil {
- code = *result.Errors[i].Code
- }
-
- errs = append(errs, newError(awserr.New(code, msg, err), input.Bucket, result.Errors[i].Key))
- }
- }
- for _, object := range objects {
- if object.After == nil {
- continue
- }
- if err := object.After(); err != nil {
- errs = append(errs, newError(err, object.Object.Bucket, object.Object.Key))
- }
- }
-
- return errs
-}
-
-func hasParity(o1 *s3.DeleteObjectsInput, o2 BatchDeleteObject) bool {
- if o1.Bucket != nil && o2.Object.Bucket != nil {
- if *o1.Bucket != *o2.Object.Bucket {
- return false
- }
- } else if o1.Bucket != o2.Object.Bucket {
- return false
- }
-
- if o1.MFA != nil && o2.Object.MFA != nil {
- if *o1.MFA != *o2.Object.MFA {
- return false
- }
- } else if o1.MFA != o2.Object.MFA {
- return false
- }
-
- if o1.RequestPayer != nil && o2.Object.RequestPayer != nil {
- if *o1.RequestPayer != *o2.Object.RequestPayer {
- return false
- }
- } else if o1.RequestPayer != o2.Object.RequestPayer {
- return false
- }
-
- return true
-}
-
-// BatchDownloadIterator is an interface that uses the scanner pattern to iterate
-// through a series of objects to be downloaded.
-type BatchDownloadIterator interface {
- Next() bool
- Err() error
- DownloadObject() BatchDownloadObject
-}
-
-// BatchDownloadObject contains all necessary information to run a batch operation once.
-type BatchDownloadObject struct {
- Object *s3.GetObjectInput
- Writer io.WriterAt
- // After will run after each iteration during the batch process. This function will
- // be executed whether or not the request was successful.
- After func() error
-}
-
-// DownloadObjectsIterator implements the BatchDownloadIterator interface and allows for batched
-// download of objects.
-type DownloadObjectsIterator struct {
- Objects []BatchDownloadObject
- index int
- inc bool
-}
-
-// Next will increment the default iterator's index and ensure that there
-// is another object to iterator to.
-func (batcher *DownloadObjectsIterator) Next() bool {
- if batcher.inc {
- batcher.index++
- } else {
- batcher.inc = true
- }
- return batcher.index < len(batcher.Objects)
-}
-
-// DownloadObject will return the BatchDownloadObject at the current batched index.
-func (batcher *DownloadObjectsIterator) DownloadObject() BatchDownloadObject {
- object := batcher.Objects[batcher.index]
- return object
-}
-
-// Err will return an error. Since this is just used to satisfy the BatchDeleteIterator interface
-// this will only return nil.
-func (batcher *DownloadObjectsIterator) Err() error {
- return nil
-}
-
-// BatchUploadIterator is an interface that uses the scanner pattern to
-// iterate through what needs to be uploaded.
-type BatchUploadIterator interface {
- Next() bool
- Err() error
- UploadObject() BatchUploadObject
-}
-
-// UploadObjectsIterator implements the BatchUploadIterator interface and allows for batched
-// upload of objects.
-type UploadObjectsIterator struct {
- Objects []BatchUploadObject
- index int
- inc bool
-}
-
-// Next will increment the default iterator's index and ensure that there
-// is another object to iterator to.
-func (batcher *UploadObjectsIterator) Next() bool {
- if batcher.inc {
- batcher.index++
- } else {
- batcher.inc = true
- }
- return batcher.index < len(batcher.Objects)
-}
-
-// Err will return an error. Since this is just used to satisfy the BatchUploadIterator interface
-// this will only return nil.
-func (batcher *UploadObjectsIterator) Err() error {
- return nil
-}
-
-// UploadObject will return the BatchUploadObject at the current batched index.
-func (batcher *UploadObjectsIterator) UploadObject() BatchUploadObject {
- object := batcher.Objects[batcher.index]
- return object
-}
-
-// BatchUploadObject contains all necessary information to run a batch operation once.
-type BatchUploadObject struct {
- Object *UploadInput
- // After will run after each iteration during the batch process. This function will
- // be executed whether or not the request was successful.
- After func() error
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/bucket_region.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/bucket_region.go
deleted file mode 100644
index 569474c28..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/bucket_region.go
+++ /dev/null
@@ -1,159 +0,0 @@
-package s3manager
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/corehandlers"
- "github.com/aws/aws-sdk-go/aws/credentials"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/aws/aws-sdk-go/service/s3/s3iface"
-)
-
-// GetBucketRegion will attempt to get the region for a bucket using the
-// regionHint to determine which AWS partition to perform the query on.
-//
-// The request will not be signed, and will not use your AWS credentials.
-//
-// A "NotFound" error code will be returned if the bucket does not exist in the
-// AWS partition the regionHint belongs to. If the regionHint parameter is an
-// empty string GetBucketRegion will fallback to the ConfigProvider's region
-// config. If the regionHint is empty, and the ConfigProvider does not have a
-// region value, an error will be returned..
-//
-// For example to get the region of a bucket which exists in "eu-central-1"
-// you could provide a region hint of "us-west-2".
-//
-// sess := session.Must(session.NewSession())
-//
-// bucket := "my-bucket"
-// region, err := s3manager.GetBucketRegion(ctx, sess, bucket, "us-west-2")
-// if err != nil {
-// if aerr, ok := err.(awserr.Error); ok && aerr.Code() == "NotFound" {
-// fmt.Fprintf(os.Stderr, "unable to find bucket %s's region not found\n", bucket)
-// }
-// return err
-// }
-// fmt.Printf("Bucket %s is in %s region\n", bucket, region)
-//
-// By default the request will be made to the Amazon S3 endpoint using the Path
-// style addressing.
-//
-// s3.us-west-2.amazonaws.com/bucketname
-//
-// This is not compatible with Amazon S3's FIPS endpoints. To override this
-// behavior to use Virtual Host style addressing, provide a functional option
-// that will set the Request's Config.S3ForcePathStyle to aws.Bool(false).
-//
-// region, err := s3manager.GetBucketRegion(ctx, sess, "bucketname", "us-west-2", func(r *request.Request) {
-// r.S3ForcePathStyle = aws.Bool(false)
-// })
-//
-// To configure the GetBucketRegion to make a request via the Amazon
-// S3 FIPS endpoints directly when a FIPS region name is not available, (e.g.
-// fips-us-gov-west-1) set the Config.Endpoint on the Session, or client the
-// utility is called with. The hint region will be ignored if an endpoint URL
-// is configured on the session or client.
-//
-// sess, err := session.NewSession(&aws.Config{
-// Endpoint: aws.String("https://s3-fips.us-west-2.amazonaws.com"),
-// })
-//
-// region, err := s3manager.GetBucketRegion(context.Background(), sess, "bucketname", "")
-func GetBucketRegion(ctx aws.Context, c client.ConfigProvider, bucket, regionHint string, opts ...request.Option) (string, error) {
- var cfg aws.Config
- if len(regionHint) != 0 {
- cfg.Region = aws.String(regionHint)
- }
- svc := s3.New(c, &cfg)
- return GetBucketRegionWithClient(ctx, svc, bucket, opts...)
-}
-
-const bucketRegionHeader = "X-Amz-Bucket-Region"
-
-// GetBucketRegionWithClient is the same as GetBucketRegion with the exception
-// that it takes a S3 service client instead of a Session. The regionHint is
-// derived from the region the S3 service client was created in.
-//
-// By default the request will be made to the Amazon S3 endpoint using the Path
-// style addressing.
-//
-// s3.us-west-2.amazonaws.com/bucketname
-//
-// This is not compatible with Amazon S3's FIPS endpoints. To override this
-// behavior to use Virtual Host style addressing, provide a functional option
-// that will set the Request's Config.S3ForcePathStyle to aws.Bool(false).
-//
-// region, err := s3manager.GetBucketRegionWithClient(ctx, client, "bucketname", func(r *request.Request) {
-// r.S3ForcePathStyle = aws.Bool(false)
-// })
-//
-// To configure the GetBucketRegion to make a request via the Amazon
-// S3 FIPS endpoints directly when a FIPS region name is not available, (e.g.
-// fips-us-gov-west-1) set the Config.Endpoint on the Session, or client the
-// utility is called with. The hint region will be ignored if an endpoint URL
-// is configured on the session or client.
-//
-// region, err := s3manager.GetBucketRegionWithClient(context.Background(),
-// s3.New(sess, &aws.Config{
-// Endpoint: aws.String("https://s3-fips.us-west-2.amazonaws.com"),
-// }),
-// "bucketname")
-//
-// See GetBucketRegion for more information.
-func GetBucketRegionWithClient(ctx aws.Context, svc s3iface.S3API, bucket string, opts ...request.Option) (string, error) {
- req, _ := svc.HeadBucketRequest(&s3.HeadBucketInput{
- Bucket: aws.String(bucket),
- })
- req.Config.S3ForcePathStyle = aws.Bool(true)
-
- req.Config.Credentials = credentials.AnonymousCredentials
- req.SetContext(ctx)
-
- // Disable HTTP redirects to prevent an invalid 301 from eating the response
- // because Go's HTTP client will fail, and drop the response if an 301 is
- // received without a location header. S3 will return a 301 without the
- // location header for HeadObject API calls.
- req.DisableFollowRedirects = true
-
- var bucketRegion string
- req.Handlers.Send.PushBack(func(r *request.Request) {
- bucketRegion = r.HTTPResponse.Header.Get(bucketRegionHeader)
- if len(bucketRegion) == 0 {
- return
- }
- r.HTTPResponse.StatusCode = 200
- r.HTTPResponse.Status = "OK"
- r.Error = nil
- })
- // Replace the endpoint validation handler to not require a region if an
- // endpoint URL was specified. Since these requests are not authenticated,
- // requiring a region is not needed when an endpoint URL is provided.
- req.Handlers.Validate.Swap(
- corehandlers.ValidateEndpointHandler.Name,
- request.NamedHandler{
- Name: "validateEndpointWithoutRegion",
- Fn: validateEndpointWithoutRegion,
- },
- )
-
- req.ApplyOptions(opts...)
-
- if err := req.Send(); err != nil {
- return "", err
- }
-
- bucketRegion = s3.NormalizeBucketLocation(bucketRegion)
-
- return bucketRegion, nil
-}
-
-func validateEndpointWithoutRegion(r *request.Request) {
- // Check if the caller provided an explicit URL instead of one derived by
- // the SDK's endpoint resolver. For GetBucketRegion, with an explicit
- // endpoint URL, a region is not needed. If no endpoint URL is provided,
- // fallback the SDK's standard endpoint validation handler.
- if len(aws.StringValue(r.Config.Endpoint)) == 0 {
- corehandlers.ValidateEndpointHandler.Fn(r)
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/buffered_read_seeker.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/buffered_read_seeker.go
deleted file mode 100644
index f1d9e85c7..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/buffered_read_seeker.go
+++ /dev/null
@@ -1,81 +0,0 @@
-package s3manager
-
-import (
- "io"
-
- "github.com/aws/aws-sdk-go/internal/sdkio"
-)
-
-// BufferedReadSeeker is buffered io.ReadSeeker
-type BufferedReadSeeker struct {
- r io.ReadSeeker
- buffer []byte
- readIdx, writeIdx int
-}
-
-// NewBufferedReadSeeker returns a new BufferedReadSeeker
-// if len(b) == 0 then the buffer will be initialized to 64 KiB.
-func NewBufferedReadSeeker(r io.ReadSeeker, b []byte) *BufferedReadSeeker {
- if len(b) == 0 {
- b = make([]byte, 64*1024)
- }
- return &BufferedReadSeeker{r: r, buffer: b}
-}
-
-func (b *BufferedReadSeeker) reset(r io.ReadSeeker) {
- b.r = r
- b.readIdx, b.writeIdx = 0, 0
-}
-
-// Read will read up len(p) bytes into p and will return
-// the number of bytes read and any error that occurred.
-// If the len(p) > the buffer size then a single read request
-// will be issued to the underlying io.ReadSeeker for len(p) bytes.
-// A Read request will at most perform a single Read to the underlying
-// io.ReadSeeker, and may return < len(p) if serviced from the buffer.
-func (b *BufferedReadSeeker) Read(p []byte) (n int, err error) {
- if len(p) == 0 {
- return n, err
- }
-
- if b.readIdx == b.writeIdx {
- if len(p) >= len(b.buffer) {
- n, err = b.r.Read(p)
- return n, err
- }
- b.readIdx, b.writeIdx = 0, 0
-
- n, err = b.r.Read(b.buffer)
- if n == 0 {
- return n, err
- }
-
- b.writeIdx += n
- }
-
- n = copy(p, b.buffer[b.readIdx:b.writeIdx])
- b.readIdx += n
-
- return n, err
-}
-
-// Seek will position then underlying io.ReadSeeker to the given offset
-// and will clear the buffer.
-func (b *BufferedReadSeeker) Seek(offset int64, whence int) (int64, error) {
- n, err := b.r.Seek(offset, whence)
-
- b.reset(b.r)
-
- return n, err
-}
-
-// ReadAt will read up to len(p) bytes at the given file offset.
-// This will result in the buffer being cleared.
-func (b *BufferedReadSeeker) ReadAt(p []byte, off int64) (int, error) {
- _, err := b.Seek(off, sdkio.SeekStart)
- if err != nil {
- return 0, err
- }
-
- return b.Read(p)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_read_seeker_write_to.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_read_seeker_write_to.go
deleted file mode 100644
index e013be27e..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_read_seeker_write_to.go
+++ /dev/null
@@ -1,8 +0,0 @@
-//go:build !windows
-// +build !windows
-
-package s3manager
-
-func defaultUploadBufferProvider() ReadSeekerWriteToProvider {
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_read_seeker_write_to_windows.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_read_seeker_write_to_windows.go
deleted file mode 100644
index 687082c30..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_read_seeker_write_to_windows.go
+++ /dev/null
@@ -1,5 +0,0 @@
-package s3manager
-
-func defaultUploadBufferProvider() ReadSeekerWriteToProvider {
- return NewBufferedReadSeekerWriteToPool(1024 * 1024)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_writer_read_from.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_writer_read_from.go
deleted file mode 100644
index 5583c30a4..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_writer_read_from.go
+++ /dev/null
@@ -1,8 +0,0 @@
-//go:build !windows
-// +build !windows
-
-package s3manager
-
-func defaultDownloadBufferProvider() WriterReadFromProvider {
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_writer_read_from_windows.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_writer_read_from_windows.go
deleted file mode 100644
index 7e9d9579f..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/default_writer_read_from_windows.go
+++ /dev/null
@@ -1,5 +0,0 @@
-package s3manager
-
-func defaultDownloadBufferProvider() WriterReadFromProvider {
- return NewPooledBufferedWriterReadFromProvider(1024 * 1024)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/doc.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/doc.go
deleted file mode 100644
index 229c0d63b..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/doc.go
+++ /dev/null
@@ -1,3 +0,0 @@
-// Package s3manager provides utilities to upload and download objects from
-// S3 concurrently. Helpful for when working with large objects.
-package s3manager
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go
deleted file mode 100644
index 37eb7dd52..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go
+++ /dev/null
@@ -1,608 +0,0 @@
-package s3manager
-
-import (
- "fmt"
- "io"
- "net/http"
- "strconv"
- "strings"
- "sync"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/aws/aws-sdk-go/service/s3/s3iface"
-)
-
-// DefaultDownloadPartSize is the default range of bytes to get at a time when
-// using Download().
-const DefaultDownloadPartSize = 1024 * 1024 * 5
-
-// DefaultDownloadConcurrency is the default number of goroutines to spin up
-// when using Download().
-const DefaultDownloadConcurrency = 5
-
-type errReadingBody struct {
- err error
-}
-
-func (e *errReadingBody) Error() string {
- return fmt.Sprintf("failed to read part body: %v", e.err)
-}
-
-func (e *errReadingBody) Unwrap() error {
- return e.err
-}
-
-// The Downloader structure that calls Download(). It is safe to call Download()
-// on this structure for multiple objects and across concurrent goroutines.
-// Mutating the Downloader's properties is not safe to be done concurrently.
-type Downloader struct {
- // The size (in bytes) to request from S3 for each part.
- // The minimum allowed part size is 5MB, and if this value is set to zero,
- // the DefaultDownloadPartSize value will be used.
- //
- // PartSize is ignored if the Range input parameter is provided.
- PartSize int64
-
- // The number of goroutines to spin up in parallel when sending parts.
- // If this is set to zero, the DefaultDownloadConcurrency value will be used.
- //
- // Concurrency of 1 will download the parts sequentially.
- //
- // Concurrency is ignored if the Range input parameter is provided.
- Concurrency int
-
- // An S3 client to use when performing downloads.
- S3 s3iface.S3API
-
- // List of request options that will be passed down to individual API
- // operation requests made by the downloader.
- RequestOptions []request.Option
-
- // Defines the buffer strategy used when downloading a part.
- //
- // If a WriterReadFromProvider is given the Download manager
- // will pass the io.WriterAt of the Download request to the provider
- // and will use the returned WriterReadFrom from the provider as the
- // destination writer when copying from http response body.
- BufferProvider WriterReadFromProvider
-}
-
-// WithDownloaderRequestOptions appends to the Downloader's API request options.
-func WithDownloaderRequestOptions(opts ...request.Option) func(*Downloader) {
- return func(d *Downloader) {
- d.RequestOptions = append(d.RequestOptions, opts...)
- }
-}
-
-// NewDownloader creates a new Downloader instance to downloads objects from
-// S3 in concurrent chunks. Pass in additional functional options to customize
-// the downloader behavior. Requires a client.ConfigProvider in order to create
-// a S3 service client. The session.Session satisfies the client.ConfigProvider
-// interface.
-//
-// Example:
-//
-// // The session the S3 Downloader will use
-// sess := session.Must(session.NewSession())
-//
-// // Create a downloader with the session and default options
-// downloader := s3manager.NewDownloader(sess)
-//
-// // Create a downloader with the session and custom options
-// downloader := s3manager.NewDownloader(sess, func(d *s3manager.Downloader) {
-// d.PartSize = 64 * 1024 * 1024 // 64MB per part
-// })
-func NewDownloader(c client.ConfigProvider, options ...func(*Downloader)) *Downloader {
- return newDownloader(s3.New(c), options...)
-}
-
-func newDownloader(client s3iface.S3API, options ...func(*Downloader)) *Downloader {
- d := &Downloader{
- S3: client,
- PartSize: DefaultDownloadPartSize,
- Concurrency: DefaultDownloadConcurrency,
- BufferProvider: defaultDownloadBufferProvider(),
- }
- for _, option := range options {
- option(d)
- }
-
- return d
-}
-
-// NewDownloaderWithClient creates a new Downloader instance to downloads
-// objects from S3 in concurrent chunks. Pass in additional functional
-// options to customize the downloader behavior. Requires a S3 service client
-// to make S3 API calls.
-//
-// Example:
-//
-// // The session the S3 Downloader will use
-// sess := session.Must(session.NewSession())
-//
-// // The S3 client the S3 Downloader will use
-// s3Svc := s3.New(sess)
-//
-// // Create a downloader with the s3 client and default options
-// downloader := s3manager.NewDownloaderWithClient(s3Svc)
-//
-// // Create a downloader with the s3 client and custom options
-// downloader := s3manager.NewDownloaderWithClient(s3Svc, func(d *s3manager.Downloader) {
-// d.PartSize = 64 * 1024 * 1024 // 64MB per part
-// })
-func NewDownloaderWithClient(svc s3iface.S3API, options ...func(*Downloader)) *Downloader {
- return newDownloader(svc, options...)
-}
-
-type maxRetrier interface {
- MaxRetries() int
-}
-
-// Download downloads an object in S3 and writes the payload into w using
-// concurrent GET requests. The n int64 returned is the size of the object downloaded
-// in bytes.
-//
-// Additional functional options can be provided to configure the individual
-// download. These options are copies of the Downloader instance Download is called from.
-// Modifying the options will not impact the original Downloader instance.
-//
-// It is safe to call this method concurrently across goroutines.
-//
-// The w io.WriterAt can be satisfied by an os.File to do multipart concurrent
-// downloads, or in memory []byte wrapper using aws.WriteAtBuffer.
-//
-// Specifying a Downloader.Concurrency of 1 will cause the Downloader to
-// download the parts from S3 sequentially.
-//
-// If the GetObjectInput's Range value is provided that will cause the downloader
-// to perform a single GetObjectInput request for that object's range. This will
-// caused the part size, and concurrency configurations to be ignored.
-func (d Downloader) Download(w io.WriterAt, input *s3.GetObjectInput, options ...func(*Downloader)) (n int64, err error) {
- return d.DownloadWithContext(aws.BackgroundContext(), w, input, options...)
-}
-
-// DownloadWithContext downloads an object in S3 and writes the payload into w
-// using concurrent GET requests. The n int64 returned is the size of the object downloaded
-// in bytes.
-//
-// DownloadWithContext is the same as Download with the additional support for
-// Context input parameters. The Context must not be nil. A nil Context will
-// cause a panic. Use the Context to add deadlining, timeouts, etc. The
-// DownloadWithContext may create sub-contexts for individual underlying
-// requests.
-//
-// Additional functional options can be provided to configure the individual
-// download. These options are copies of the Downloader instance Download is
-// called from. Modifying the options will not impact the original Downloader
-// instance. Use the WithDownloaderRequestOptions helper function to pass in request
-// options that will be applied to all API operations made with this downloader.
-//
-// The w io.WriterAt can be satisfied by an os.File to do multipart concurrent
-// downloads, or in memory []byte wrapper using aws.WriteAtBuffer.
-//
-// Specifying a Downloader.Concurrency of 1 will cause the Downloader to
-// download the parts from S3 sequentially.
-//
-// It is safe to call this method concurrently across goroutines.
-//
-// If the GetObjectInput's Range value is provided that will cause the downloader
-// to perform a single GetObjectInput request for that object's range. This will
-// caused the part size, and concurrency configurations to be ignored.
-func (d Downloader) DownloadWithContext(ctx aws.Context, w io.WriterAt, input *s3.GetObjectInput, options ...func(*Downloader)) (n int64, err error) {
- if err := validateSupportedARNType(aws.StringValue(input.Bucket)); err != nil {
- return 0, err
- }
-
- impl := downloader{w: w, in: input, cfg: d, ctx: ctx}
-
- for _, option := range options {
- option(&impl.cfg)
- }
- impl.cfg.RequestOptions = append(impl.cfg.RequestOptions, request.WithAppendUserAgent("S3Manager"))
-
- if s, ok := d.S3.(maxRetrier); ok {
- impl.partBodyMaxRetries = s.MaxRetries()
- }
-
- impl.totalBytes = -1
- if impl.cfg.Concurrency == 0 {
- impl.cfg.Concurrency = DefaultDownloadConcurrency
- }
-
- if impl.cfg.PartSize == 0 {
- impl.cfg.PartSize = DefaultDownloadPartSize
- }
-
- return impl.download()
-}
-
-// DownloadWithIterator will download a batched amount of objects in S3 and writes them
-// to the io.WriterAt specificed in the iterator.
-//
-// Example:
-//
-// svc := s3manager.NewDownloader(session)
-//
-// fooFile, err := os.Open("/tmp/foo.file")
-// if err != nil {
-// return err
-// }
-//
-// barFile, err := os.Open("/tmp/bar.file")
-// if err != nil {
-// return err
-// }
-//
-// objects := []s3manager.BatchDownloadObject {
-// {
-// Object: &s3.GetObjectInput {
-// Bucket: aws.String("bucket"),
-// Key: aws.String("foo"),
-// },
-// Writer: fooFile,
-// },
-// {
-// Object: &s3.GetObjectInput {
-// Bucket: aws.String("bucket"),
-// Key: aws.String("bar"),
-// },
-// Writer: barFile,
-// },
-// }
-//
-// iter := &s3manager.DownloadObjectsIterator{Objects: objects}
-// if err := svc.DownloadWithIterator(aws.BackgroundContext(), iter); err != nil {
-// return err
-// }
-func (d Downloader) DownloadWithIterator(ctx aws.Context, iter BatchDownloadIterator, opts ...func(*Downloader)) error {
- var errs []Error
- for iter.Next() {
- object := iter.DownloadObject()
- if _, err := d.DownloadWithContext(ctx, object.Writer, object.Object, opts...); err != nil {
- errs = append(errs, newError(err, object.Object.Bucket, object.Object.Key))
- }
-
- if object.After == nil {
- continue
- }
-
- if err := object.After(); err != nil {
- errs = append(errs, newError(err, object.Object.Bucket, object.Object.Key))
- }
- }
-
- if len(errs) > 0 {
- return NewBatchError("BatchedDownloadIncomplete", "some objects have failed to download.", errs)
- }
- return nil
-}
-
-// downloader is the implementation structure used internally by Downloader.
-type downloader struct {
- ctx aws.Context
- cfg Downloader
-
- in *s3.GetObjectInput
- w io.WriterAt
-
- wg sync.WaitGroup
- m sync.Mutex
-
- pos int64
- totalBytes int64
- written int64
- err error
-
- partBodyMaxRetries int
-}
-
-// download performs the implementation of the object download across ranged
-// GETs.
-func (d *downloader) download() (n int64, err error) {
- // If range is specified fall back to single download of that range
- // this enables the functionality of ranged gets with the downloader but
- // at the cost of no multipart downloads.
- if rng := aws.StringValue(d.in.Range); len(rng) > 0 {
- d.downloadRange(rng)
- return d.written, d.err
- }
-
- // Spin off first worker to check additional header information
- d.getChunk()
-
- if total := d.getTotalBytes(); total >= 0 {
- // Spin up workers
- ch := make(chan dlchunk, d.cfg.Concurrency)
-
- for i := 0; i < d.cfg.Concurrency; i++ {
- d.wg.Add(1)
- go d.downloadPart(ch)
- }
-
- // Assign work
- for d.getErr() == nil {
- if d.pos >= total {
- break // We're finished queuing chunks
- }
-
- // Queue the next range of bytes to read.
- ch <- dlchunk{w: d.w, start: d.pos, size: d.cfg.PartSize}
- d.pos += d.cfg.PartSize
- }
-
- // Wait for completion
- close(ch)
- d.wg.Wait()
- } else {
- // Checking if we read anything new
- for d.err == nil {
- d.getChunk()
- }
-
- // We expect a 416 error letting us know we are done downloading the
- // total bytes. Since we do not know the content's length, this will
- // keep grabbing chunks of data until the range of bytes specified in
- // the request is out of range of the content. Once, this happens, a
- // 416 should occur.
- e, ok := d.err.(awserr.RequestFailure)
- if ok && e.StatusCode() == http.StatusRequestedRangeNotSatisfiable {
- d.err = nil
- }
- }
-
- // Return error
- return d.written, d.err
-}
-
-// downloadPart is an individual goroutine worker reading from the ch channel
-// and performing a GetObject request on the data with a given byte range.
-//
-// If this is the first worker, this operation also resolves the total number
-// of bytes to be read so that the worker manager knows when it is finished.
-func (d *downloader) downloadPart(ch chan dlchunk) {
- defer d.wg.Done()
- for {
- chunk, ok := <-ch
- if !ok {
- break
- }
- if d.getErr() != nil {
- // Drain the channel if there is an error, to prevent deadlocking
- // of download producer.
- continue
- }
-
- if err := d.downloadChunk(chunk); err != nil {
- d.setErr(err)
- }
- }
-}
-
-// getChunk grabs a chunk of data from the body.
-// Not thread safe. Should only used when grabbing data on a single thread.
-func (d *downloader) getChunk() {
- if d.getErr() != nil {
- return
- }
-
- chunk := dlchunk{w: d.w, start: d.pos, size: d.cfg.PartSize}
- d.pos += d.cfg.PartSize
-
- if err := d.downloadChunk(chunk); err != nil {
- d.setErr(err)
- }
-}
-
-// downloadRange downloads an Object given the passed in Byte-Range value.
-// The chunk used down download the range will be configured for that range.
-func (d *downloader) downloadRange(rng string) {
- if d.getErr() != nil {
- return
- }
-
- chunk := dlchunk{w: d.w, start: d.pos}
- // Ranges specified will short circuit the multipart download
- chunk.withRange = rng
-
- if err := d.downloadChunk(chunk); err != nil {
- d.setErr(err)
- }
-
- // Update the position based on the amount of data received.
- d.pos = d.written
-}
-
-// downloadChunk downloads the chunk from s3
-func (d *downloader) downloadChunk(chunk dlchunk) error {
- in := &s3.GetObjectInput{}
- awsutil.Copy(in, d.in)
-
- // Get the next byte range of data
- in.Range = aws.String(chunk.ByteRange())
-
- var n int64
- var err error
- for retry := 0; retry <= d.partBodyMaxRetries; retry++ {
- n, err = d.tryDownloadChunk(in, &chunk)
- if err == nil {
- break
- }
- // Check if the returned error is an errReadingBody.
- // If err is errReadingBody this indicates that an error
- // occurred while copying the http response body.
- // If this occurs we unwrap the err to set the underlying error
- // and attempt any remaining retries.
- if bodyErr, ok := err.(*errReadingBody); ok {
- err = bodyErr.Unwrap()
- } else {
- return err
- }
-
- chunk.cur = 0
- logMessage(d.cfg.S3, aws.LogDebugWithRequestRetries,
- fmt.Sprintf("DEBUG: object part body download interrupted %s, err, %v, retrying attempt %d",
- aws.StringValue(in.Key), err, retry))
- }
-
- d.incrWritten(n)
-
- return err
-}
-
-func (d *downloader) tryDownloadChunk(in *s3.GetObjectInput, w io.Writer) (int64, error) {
- cleanup := func() {}
- if d.cfg.BufferProvider != nil {
- w, cleanup = d.cfg.BufferProvider.GetReadFrom(w)
- }
- defer cleanup()
-
- resp, err := d.cfg.S3.GetObjectWithContext(d.ctx, in, d.cfg.RequestOptions...)
- if err != nil {
- return 0, err
- }
- d.setTotalBytes(resp) // Set total if not yet set.
-
- var src io.Reader = resp.Body
- if d.cfg.BufferProvider != nil {
- src = &suppressWriterAt{suppressed: src}
- }
- n, err := io.Copy(w, src)
- resp.Body.Close()
- if err != nil {
- return n, &errReadingBody{err: err}
- }
-
- return n, nil
-}
-
-func logMessage(svc s3iface.S3API, level aws.LogLevelType, msg string) {
- s, ok := svc.(*s3.S3)
- if !ok {
- return
- }
-
- if s.Config.Logger == nil {
- return
- }
-
- if s.Config.LogLevel.Matches(level) {
- s.Config.Logger.Log(msg)
- }
-}
-
-// getTotalBytes is a thread-safe getter for retrieving the total byte status.
-func (d *downloader) getTotalBytes() int64 {
- d.m.Lock()
- defer d.m.Unlock()
-
- return d.totalBytes
-}
-
-// setTotalBytes is a thread-safe setter for setting the total byte status.
-// Will extract the object's total bytes from the Content-Range if the file
-// will be chunked, or Content-Length. Content-Length is used when the response
-// does not include a Content-Range. Meaning the object was not chunked. This
-// occurs when the full file fits within the PartSize directive.
-func (d *downloader) setTotalBytes(resp *s3.GetObjectOutput) {
- d.m.Lock()
- defer d.m.Unlock()
-
- if d.totalBytes >= 0 {
- return
- }
-
- if resp.ContentRange == nil {
- // ContentRange is nil when the full file contents is provided, and
- // is not chunked. Use ContentLength instead.
- if resp.ContentLength != nil {
- d.totalBytes = *resp.ContentLength
- return
- }
- } else {
- parts := strings.Split(*resp.ContentRange, "/")
-
- total := int64(-1)
- var err error
- // Checking for whether or not a numbered total exists
- // If one does not exist, we will assume the total to be -1, undefined,
- // and sequentially download each chunk until hitting a 416 error
- totalStr := parts[len(parts)-1]
- if totalStr != "*" {
- total, err = strconv.ParseInt(totalStr, 10, 64)
- if err != nil {
- d.err = err
- return
- }
- }
-
- d.totalBytes = total
- }
-}
-
-func (d *downloader) incrWritten(n int64) {
- d.m.Lock()
- defer d.m.Unlock()
-
- d.written += n
-}
-
-// getErr is a thread-safe getter for the error object
-func (d *downloader) getErr() error {
- d.m.Lock()
- defer d.m.Unlock()
-
- return d.err
-}
-
-// setErr is a thread-safe setter for the error object
-func (d *downloader) setErr(e error) {
- d.m.Lock()
- defer d.m.Unlock()
-
- d.err = e
-}
-
-// dlchunk represents a single chunk of data to write by the worker routine.
-// This structure also implements an io.SectionReader style interface for
-// io.WriterAt, effectively making it an io.SectionWriter (which does not
-// exist).
-type dlchunk struct {
- w io.WriterAt
- start int64
- size int64
- cur int64
-
- // specifies the byte range the chunk should be downloaded with.
- withRange string
-}
-
-// Write wraps io.WriterAt for the dlchunk, writing from the dlchunk's start
-// position to its end (or EOF).
-//
-// If a range is specified on the dlchunk the size will be ignored when writing.
-// as the total size may not of be known ahead of time.
-func (c *dlchunk) Write(p []byte) (n int, err error) {
- if c.cur >= c.size && len(c.withRange) == 0 {
- return 0, io.EOF
- }
-
- n, err = c.w.WriteAt(p, c.start+c.cur)
- c.cur += int64(n)
-
- return
-}
-
-// ByteRange returns a HTTP Byte-Range header value that should be used by the
-// client to request the chunk's range.
-func (c *dlchunk) ByteRange() string {
- if len(c.withRange) != 0 {
- return c.withRange
- }
-
- return fmt.Sprintf("bytes=%d-%d", c.start, c.start+c.size-1)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/pool.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/pool.go
deleted file mode 100644
index f6f27fc48..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/pool.go
+++ /dev/null
@@ -1,252 +0,0 @@
-package s3manager
-
-import (
- "fmt"
- "sync"
-
- "github.com/aws/aws-sdk-go/aws"
-)
-
-type byteSlicePool interface {
- Get(aws.Context) (*[]byte, error)
- Put(*[]byte)
- ModifyCapacity(int)
- SliceSize() int64
- Close()
-}
-
-type maxSlicePool struct {
- // allocator is defined as a function pointer to allow
- // for test cases to instrument custom tracers when allocations
- // occur.
- allocator sliceAllocator
-
- slices chan *[]byte
- allocations chan struct{}
- capacityChange chan struct{}
-
- max int
- sliceSize int64
-
- mtx sync.RWMutex
-}
-
-func newMaxSlicePool(sliceSize int64) *maxSlicePool {
- p := &maxSlicePool{sliceSize: sliceSize}
- p.allocator = p.newSlice
-
- return p
-}
-
-var errZeroCapacity = fmt.Errorf("get called on zero capacity pool")
-
-func (p *maxSlicePool) Get(ctx aws.Context) (*[]byte, error) {
- // check if context is canceled before attempting to get a slice
- // this ensures priority is given to the cancel case first
- select {
- case <-ctx.Done():
- return nil, ctx.Err()
- default:
- }
-
- p.mtx.RLock()
-
- for {
- select {
- case bs, ok := <-p.slices:
- p.mtx.RUnlock()
- if !ok {
- // attempt to get on a zero capacity pool
- return nil, errZeroCapacity
- }
- return bs, nil
- case <-ctx.Done():
- p.mtx.RUnlock()
- return nil, ctx.Err()
- default:
- // pass
- }
-
- select {
- case _, ok := <-p.allocations:
- p.mtx.RUnlock()
- if !ok {
- // attempt to get on a zero capacity pool
- return nil, errZeroCapacity
- }
- return p.allocator(), nil
- case <-ctx.Done():
- p.mtx.RUnlock()
- return nil, ctx.Err()
- default:
- // In the event that there are no slices or allocations available
- // This prevents some deadlock situations that can occur around sync.RWMutex
- // When a lock request occurs on ModifyCapacity, no new readers are allowed to acquire a read lock.
- // By releasing the read lock here and waiting for a notification, we prevent a deadlock situation where
- // Get could hold the read lock indefinitely waiting for capacity, ModifyCapacity is waiting for a write lock,
- // and a Put is blocked trying to get a read-lock which is blocked by ModifyCapacity.
-
- // Short-circuit if the pool capacity is zero.
- if p.max == 0 {
- p.mtx.RUnlock()
- return nil, errZeroCapacity
- }
-
- // Since we will be releasing the read-lock we need to take the reference to the channel.
- // Since channels are references we will still get notified if slices are added, or if
- // the channel is closed due to a capacity modification. This specifically avoids a data race condition
- // where ModifyCapacity both closes a channel and initializes a new one while we don't have a read-lock.
- c := p.capacityChange
-
- p.mtx.RUnlock()
-
- select {
- case _ = <-c:
- p.mtx.RLock()
- case <-ctx.Done():
- return nil, ctx.Err()
- }
- }
- }
-}
-
-func (p *maxSlicePool) Put(bs *[]byte) {
- p.mtx.RLock()
- defer p.mtx.RUnlock()
-
- if p.max == 0 {
- return
- }
-
- select {
- case p.slices <- bs:
- p.notifyCapacity()
- default:
- // If the new channel when attempting to add the slice then we drop the slice.
- // The logic here is to prevent a deadlock situation if channel is already at max capacity.
- // Allows us to reap allocations that are returned and are no longer needed.
- }
-}
-
-func (p *maxSlicePool) ModifyCapacity(delta int) {
- if delta == 0 {
- return
- }
-
- p.mtx.Lock()
- defer p.mtx.Unlock()
-
- p.max += delta
-
- if p.max == 0 {
- p.empty()
- return
- }
-
- if p.capacityChange != nil {
- close(p.capacityChange)
- }
- p.capacityChange = make(chan struct{}, p.max)
-
- origAllocations := p.allocations
- p.allocations = make(chan struct{}, p.max)
-
- newAllocs := len(origAllocations) + delta
- for i := 0; i < newAllocs; i++ {
- p.allocations <- struct{}{}
- }
-
- if origAllocations != nil {
- close(origAllocations)
- }
-
- origSlices := p.slices
- p.slices = make(chan *[]byte, p.max)
- if origSlices == nil {
- return
- }
-
- close(origSlices)
- for bs := range origSlices {
- select {
- case p.slices <- bs:
- default:
- // If the new channel blocks while adding slices from the old channel
- // then we drop the slice. The logic here is to prevent a deadlock situation
- // if the new channel has a smaller capacity then the old.
- }
- }
-}
-
-func (p *maxSlicePool) notifyCapacity() {
- select {
- case p.capacityChange <- struct{}{}:
- default:
- // This *shouldn't* happen as the channel is both buffered to the max pool capacity size and is resized
- // on capacity modifications. This is just a safety to ensure that a blocking situation can't occur.
- }
-}
-
-func (p *maxSlicePool) SliceSize() int64 {
- return p.sliceSize
-}
-
-func (p *maxSlicePool) Close() {
- p.mtx.Lock()
- defer p.mtx.Unlock()
- p.empty()
-}
-
-func (p *maxSlicePool) empty() {
- p.max = 0
-
- if p.capacityChange != nil {
- close(p.capacityChange)
- p.capacityChange = nil
- }
-
- if p.allocations != nil {
- close(p.allocations)
- for range p.allocations {
- // drain channel
- }
- p.allocations = nil
- }
-
- if p.slices != nil {
- close(p.slices)
- for range p.slices {
- // drain channel
- }
- p.slices = nil
- }
-}
-
-func (p *maxSlicePool) newSlice() *[]byte {
- bs := make([]byte, p.sliceSize)
- return &bs
-}
-
-type returnCapacityPoolCloser struct {
- byteSlicePool
- returnCapacity int
-}
-
-func (n *returnCapacityPoolCloser) ModifyCapacity(delta int) {
- if delta > 0 {
- n.returnCapacity = -1 * delta
- }
- n.byteSlicePool.ModifyCapacity(delta)
-}
-
-func (n *returnCapacityPoolCloser) Close() {
- if n.returnCapacity < 0 {
- n.byteSlicePool.ModifyCapacity(n.returnCapacity)
- }
-}
-
-type sliceAllocator func() *[]byte
-
-var newByteSlicePool = func(sliceSize int64) byteSlicePool {
- return newMaxSlicePool(sliceSize)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/read_seeker_write_to.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/read_seeker_write_to.go
deleted file mode 100644
index f62e1a45e..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/read_seeker_write_to.go
+++ /dev/null
@@ -1,65 +0,0 @@
-package s3manager
-
-import (
- "io"
- "sync"
-)
-
-// ReadSeekerWriteTo defines an interface implementing io.WriteTo and io.ReadSeeker
-type ReadSeekerWriteTo interface {
- io.ReadSeeker
- io.WriterTo
-}
-
-// BufferedReadSeekerWriteTo wraps a BufferedReadSeeker with an io.WriteAt
-// implementation.
-type BufferedReadSeekerWriteTo struct {
- *BufferedReadSeeker
-}
-
-// WriteTo writes to the given io.Writer from BufferedReadSeeker until there's no more data to write or
-// an error occurs. Returns the number of bytes written and any error encountered during the write.
-func (b *BufferedReadSeekerWriteTo) WriteTo(writer io.Writer) (int64, error) {
- return io.Copy(writer, b.BufferedReadSeeker)
-}
-
-// ReadSeekerWriteToProvider provides an implementation of io.WriteTo for an io.ReadSeeker
-type ReadSeekerWriteToProvider interface {
- GetWriteTo(seeker io.ReadSeeker) (r ReadSeekerWriteTo, cleanup func())
-}
-
-// BufferedReadSeekerWriteToPool uses a sync.Pool to create and reuse
-// []byte slices for buffering parts in memory
-type BufferedReadSeekerWriteToPool struct {
- pool sync.Pool
-}
-
-// NewBufferedReadSeekerWriteToPool will return a new BufferedReadSeekerWriteToPool that will create
-// a pool of reusable buffers . If size is less then < 64 KiB then the buffer
-// will default to 64 KiB. Reason: io.Copy from writers or readers that don't support io.WriteTo or io.ReadFrom
-// respectively will default to copying 32 KiB.
-func NewBufferedReadSeekerWriteToPool(size int) *BufferedReadSeekerWriteToPool {
- if size < 65536 {
- size = 65536
- }
-
- return &BufferedReadSeekerWriteToPool{
- pool: sync.Pool{New: func() interface{} {
- return make([]byte, size)
- }},
- }
-}
-
-// GetWriteTo will wrap the provided io.ReadSeeker with a BufferedReadSeekerWriteTo.
-// The provided cleanup must be called after operations have been completed on the
-// returned io.ReadSeekerWriteTo in order to signal the return of resources to the pool.
-func (p *BufferedReadSeekerWriteToPool) GetWriteTo(seeker io.ReadSeeker) (r ReadSeekerWriteTo, cleanup func()) {
- buffer := p.pool.Get().([]byte)
-
- r = &BufferedReadSeekerWriteTo{BufferedReadSeeker: NewBufferedReadSeeker(seeker, buffer)}
- cleanup = func() {
- p.pool.Put(buffer)
- }
-
- return r, cleanup
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/s3manageriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/s3manageriface/interface.go
deleted file mode 100644
index 11c5697f3..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/s3manageriface/interface.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Package s3manageriface provides an interface for the s3manager package
-package s3manageriface
-
-import (
- "io"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/aws/aws-sdk-go/service/s3/s3manager"
-)
-
-var _ DownloaderAPI = (*s3manager.Downloader)(nil)
-
-// DownloaderAPI is the interface type for s3manager.Downloader.
-type DownloaderAPI interface {
- Download(io.WriterAt, *s3.GetObjectInput, ...func(*s3manager.Downloader)) (int64, error)
- DownloadWithContext(aws.Context, io.WriterAt, *s3.GetObjectInput, ...func(*s3manager.Downloader)) (int64, error)
-}
-
-// DownloadWithIterator is the interface type for the contained method of the same name.
-type DownloadWithIterator interface {
- DownloadWithIterator(aws.Context, s3manager.BatchDownloadIterator, ...func(*s3manager.Downloader)) error
-}
-
-var _ UploaderAPI = (*s3manager.Uploader)(nil)
-var _ UploadWithIterator = (*s3manager.Uploader)(nil)
-
-// UploaderAPI is the interface type for s3manager.Uploader.
-type UploaderAPI interface {
- Upload(*s3manager.UploadInput, ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error)
- UploadWithContext(aws.Context, *s3manager.UploadInput, ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error)
-}
-
-// UploadWithIterator is the interface for uploading objects to S3 using the S3
-// upload manager.
-type UploadWithIterator interface {
- UploadWithIterator(aws.Context, s3manager.BatchUploadIterator, ...func(*s3manager.Uploader)) error
-}
-
-var _ BatchDelete = (*s3manager.BatchDelete)(nil)
-
-// BatchDelete is the interface type for batch deleting objects from S3 using
-// the S3 manager. (separated for user to compose).
-type BatchDelete interface {
- Delete(aws.Context, s3manager.BatchDeleteIterator) error
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go
deleted file mode 100644
index da243a302..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go
+++ /dev/null
@@ -1,797 +0,0 @@
-package s3manager
-
-import (
- "bytes"
- "fmt"
- "io"
- "sort"
- "sync"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/credentials"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/aws/aws-sdk-go/service/s3/s3iface"
-)
-
-// MaxUploadParts is the maximum allowed number of parts in a multi-part upload
-// on Amazon S3.
-const MaxUploadParts = 10000
-
-// MinUploadPartSize is the minimum allowed part size when uploading a part to
-// Amazon S3.
-const MinUploadPartSize int64 = 1024 * 1024 * 5
-
-// DefaultUploadPartSize is the default part size to buffer chunks of a
-// payload into.
-const DefaultUploadPartSize = MinUploadPartSize
-
-// DefaultUploadConcurrency is the default number of goroutines to spin up when
-// using Upload().
-const DefaultUploadConcurrency = 5
-
-// A MultiUploadFailure wraps a failed S3 multipart upload. An error returned
-// will satisfy this interface when a multi part upload failed to upload all
-// chucks to S3. In the case of a failure the UploadID is needed to operate on
-// the chunks, if any, which were uploaded.
-//
-// Example:
-//
-// u := s3manager.NewUploader(opts)
-// output, err := u.upload(input)
-// if err != nil {
-// if multierr, ok := err.(s3manager.MultiUploadFailure); ok {
-// // Process error and its associated uploadID
-// fmt.Println("Error:", multierr.Code(), multierr.Message(), multierr.UploadID())
-// } else {
-// // Process error generically
-// fmt.Println("Error:", err.Error())
-// }
-// }
-type MultiUploadFailure interface {
- awserr.Error
-
- // Returns the upload id for the S3 multipart upload that failed.
- UploadID() string
-}
-
-// So that the Error interface type can be included as an anonymous field
-// in the multiUploadError struct and not conflict with the error.Error() method.
-type awsError awserr.Error
-
-// A multiUploadError wraps the upload ID of a failed s3 multipart upload.
-// Composed of BaseError for code, message, and original error
-//
-// Should be used for an error that occurred failing a S3 multipart upload,
-// and a upload ID is available. If an uploadID is not available a more relevant
-type multiUploadError struct {
- awsError
-
- // ID for multipart upload which failed.
- uploadID string
-}
-
-// Error returns the string representation of the error.
-//
-// # See apierr.BaseError ErrorWithExtra for output format
-//
-// Satisfies the error interface.
-func (m multiUploadError) Error() string {
- extra := fmt.Sprintf("upload id: %s", m.uploadID)
- return awserr.SprintError(m.Code(), m.Message(), extra, m.OrigErr())
-}
-
-// String returns the string representation of the error.
-// Alias for Error to satisfy the stringer interface.
-func (m multiUploadError) String() string {
- return m.Error()
-}
-
-// UploadID returns the id of the S3 upload which failed.
-func (m multiUploadError) UploadID() string {
- return m.uploadID
-}
-
-// UploadOutput represents a response from the Upload() call.
-type UploadOutput struct {
- // The URL where the object was uploaded to.
- Location string
-
- // The version of the object that was uploaded. Will only be populated if
- // the S3 Bucket is versioned. If the bucket is not versioned this field
- // will not be set.
- VersionID *string
-
- // The ID for a multipart upload to S3. In the case of an error the error
- // can be cast to the MultiUploadFailure interface to extract the upload ID.
- UploadID string
-
- // Entity tag of the object.
- ETag *string
-}
-
-// WithUploaderRequestOptions appends to the Uploader's API request options.
-func WithUploaderRequestOptions(opts ...request.Option) func(*Uploader) {
- return func(u *Uploader) {
- u.RequestOptions = append(u.RequestOptions, opts...)
- }
-}
-
-// The Uploader structure that calls Upload(). It is safe to call Upload()
-// on this structure for multiple objects and across concurrent goroutines.
-// Mutating the Uploader's properties is not safe to be done concurrently.
-//
-// The ContentMD5 member for pre-computed MD5 checksums will be ignored for
-// multipart uploads. Objects that will be uploaded in a single part, the
-// ContentMD5 will be used.
-//
-// The Checksum members for pre-computed checksums will be ignored for
-// multipart uploads. Objects that will be uploaded in a single part, will
-// include the checksum member in the request.
-type Uploader struct {
- // The buffer size (in bytes) to use when buffering data into chunks and
- // sending them as parts to S3. The minimum allowed part size is 5MB, and
- // if this value is set to zero, the DefaultUploadPartSize value will be used.
- PartSize int64
-
- // The number of goroutines to spin up in parallel per call to Upload when
- // sending parts. If this is set to zero, the DefaultUploadConcurrency value
- // will be used.
- //
- // The concurrency pool is not shared between calls to Upload.
- Concurrency int
-
- // Setting this value to true will cause the SDK to avoid calling
- // AbortMultipartUpload on a failure, leaving all successfully uploaded
- // parts on S3 for manual recovery.
- //
- // Note that storing parts of an incomplete multipart upload counts towards
- // space usage on S3 and will add additional costs if not cleaned up.
- LeavePartsOnError bool
-
- // MaxUploadParts is the max number of parts which will be uploaded to S3.
- // Will be used to calculate the partsize of the object to be uploaded.
- // E.g: 5GB file, with MaxUploadParts set to 100, will upload the file
- // as 100, 50MB parts. With a limited of s3.MaxUploadParts (10,000 parts).
- //
- // MaxUploadParts must not be used to limit the total number of bytes uploaded.
- // Use a type like to io.LimitReader (https://golang.org/pkg/io/#LimitedReader)
- // instead. An io.LimitReader is helpful when uploading an unbounded reader
- // to S3, and you know its maximum size. Otherwise the reader's io.EOF returned
- // error must be used to signal end of stream.
- //
- // Defaults to package const's MaxUploadParts value.
- MaxUploadParts int
-
- // The client to use when uploading to S3.
- S3 s3iface.S3API
-
- // List of request options that will be passed down to individual API
- // operation requests made by the uploader.
- RequestOptions []request.Option
-
- // Defines the buffer strategy used when uploading a part
- BufferProvider ReadSeekerWriteToProvider
-
- // partPool allows for the re-usage of streaming payload part buffers between upload calls
- partPool byteSlicePool
-}
-
-// NewUploader creates a new Uploader instance to upload objects to S3. Pass In
-// additional functional options to customize the uploader's behavior. Requires a
-// client.ConfigProvider in order to create a S3 service client. The session.Session
-// satisfies the client.ConfigProvider interface.
-//
-// Example:
-//
-// // The session the S3 Uploader will use
-// sess := session.Must(session.NewSession())
-//
-// // Create an uploader with the session and default options
-// uploader := s3manager.NewUploader(sess)
-//
-// // Create an uploader with the session and custom options
-// uploader := s3manager.NewUploader(session, func(u *s3manager.Uploader) {
-// u.PartSize = 64 * 1024 * 1024 // 64MB per part
-// })
-func NewUploader(c client.ConfigProvider, options ...func(*Uploader)) *Uploader {
- return newUploader(s3.New(c), options...)
-}
-
-func newUploader(client s3iface.S3API, options ...func(*Uploader)) *Uploader {
- u := &Uploader{
- S3: client,
- PartSize: DefaultUploadPartSize,
- Concurrency: DefaultUploadConcurrency,
- LeavePartsOnError: false,
- MaxUploadParts: MaxUploadParts,
- BufferProvider: defaultUploadBufferProvider(),
- }
-
- for _, option := range options {
- option(u)
- }
-
- u.partPool = newByteSlicePool(u.PartSize)
-
- return u
-}
-
-// NewUploaderWithClient creates a new Uploader instance to upload objects to S3. Pass in
-// additional functional options to customize the uploader's behavior. Requires
-// a S3 service client to make S3 API calls.
-//
-// Example:
-//
-// // The session the S3 Uploader will use
-// sess := session.Must(session.NewSession())
-//
-// // S3 service client the Upload manager will use.
-// s3Svc := s3.New(sess)
-//
-// // Create an uploader with S3 client and default options
-// uploader := s3manager.NewUploaderWithClient(s3Svc)
-//
-// // Create an uploader with S3 client and custom options
-// uploader := s3manager.NewUploaderWithClient(s3Svc, func(u *s3manager.Uploader) {
-// u.PartSize = 64 * 1024 * 1024 // 64MB per part
-// })
-func NewUploaderWithClient(svc s3iface.S3API, options ...func(*Uploader)) *Uploader {
- return newUploader(svc, options...)
-}
-
-// Upload uploads an object to S3, intelligently buffering large files into
-// smaller chunks and sending them in parallel across multiple goroutines. You
-// can configure the buffer size and concurrency through the Uploader's parameters.
-//
-// Additional functional options can be provided to configure the individual
-// upload. These options are copies of the Uploader instance Upload is called from.
-// Modifying the options will not impact the original Uploader instance.
-//
-// Use the WithUploaderRequestOptions helper function to pass in request
-// options that will be applied to all API operations made with this uploader.
-//
-// It is safe to call this method concurrently across goroutines.
-//
-// Example:
-//
-// // Upload input parameters
-// upParams := &s3manager.UploadInput{
-// Bucket: &bucketName,
-// Key: &keyName,
-// Body: file,
-// }
-//
-// // Perform an upload.
-// result, err := uploader.Upload(upParams)
-//
-// // Perform upload with options different than the those in the Uploader.
-// result, err := uploader.Upload(upParams, func(u *s3manager.Uploader) {
-// u.PartSize = 10 * 1024 * 1024 // 10MB part size
-// u.LeavePartsOnError = true // Don't delete the parts if the upload fails.
-// })
-func (u Uploader) Upload(input *UploadInput, options ...func(*Uploader)) (*UploadOutput, error) {
- return u.UploadWithContext(aws.BackgroundContext(), input, options...)
-}
-
-// UploadWithContext uploads an object to S3, intelligently buffering large
-// files into smaller chunks and sending them in parallel across multiple
-// goroutines. You can configure the buffer size and concurrency through the
-// Uploader's parameters.
-//
-// UploadWithContext is the same as Upload with the additional support for
-// Context input parameters. The Context must not be nil. A nil Context will
-// cause a panic. Use the context to add deadlining, timeouts, etc. The
-// UploadWithContext may create sub-contexts for individual underlying requests.
-//
-// Additional functional options can be provided to configure the individual
-// upload. These options are copies of the Uploader instance Upload is called from.
-// Modifying the options will not impact the original Uploader instance.
-//
-// Use the WithUploaderRequestOptions helper function to pass in request
-// options that will be applied to all API operations made with this uploader.
-//
-// It is safe to call this method concurrently across goroutines.
-func (u Uploader) UploadWithContext(ctx aws.Context, input *UploadInput, opts ...func(*Uploader)) (*UploadOutput, error) {
- i := uploader{in: input, cfg: u, ctx: ctx}
-
- for _, opt := range opts {
- opt(&i.cfg)
- }
-
- i.cfg.RequestOptions = append(i.cfg.RequestOptions, request.WithAppendUserAgent("S3Manager"))
-
- return i.upload()
-}
-
-// UploadWithIterator will upload a batched amount of objects to S3. This operation uses
-// the iterator pattern to know which object to upload next. Since this is an interface this
-// allows for custom defined functionality.
-//
-// Example:
-//
-// svc:= s3manager.NewUploader(sess)
-//
-// objects := []BatchUploadObject{
-// {
-// Object: &s3manager.UploadInput {
-// Key: aws.String("key"),
-// Bucket: aws.String("bucket"),
-// },
-// },
-// }
-//
-// iter := &s3manager.UploadObjectsIterator{Objects: objects}
-// if err := svc.UploadWithIterator(aws.BackgroundContext(), iter); err != nil {
-// return err
-// }
-func (u Uploader) UploadWithIterator(ctx aws.Context, iter BatchUploadIterator, opts ...func(*Uploader)) error {
- var errs []Error
- for iter.Next() {
- object := iter.UploadObject()
- if _, err := u.UploadWithContext(ctx, object.Object, opts...); err != nil {
- s3Err := Error{
- OrigErr: err,
- Bucket: object.Object.Bucket,
- Key: object.Object.Key,
- }
-
- errs = append(errs, s3Err)
- }
-
- if object.After == nil {
- continue
- }
-
- if err := object.After(); err != nil {
- s3Err := Error{
- OrigErr: err,
- Bucket: object.Object.Bucket,
- Key: object.Object.Key,
- }
-
- errs = append(errs, s3Err)
- }
- }
-
- if len(errs) > 0 {
- return NewBatchError("BatchedUploadIncomplete", "some objects have failed to upload.", errs)
- }
- return nil
-}
-
-// internal structure to manage an upload to S3.
-type uploader struct {
- ctx aws.Context
- cfg Uploader
-
- in *UploadInput
-
- readerPos int64 // current reader position
- totalSize int64 // set to -1 if the size is not known
-}
-
-// internal logic for deciding whether to upload a single part or use a
-// multipart upload.
-func (u *uploader) upload() (*UploadOutput, error) {
- if err := u.init(); err != nil {
- return nil, awserr.New("ReadRequestBody", "unable to initialize upload", err)
- }
- defer u.cfg.partPool.Close()
-
- if u.cfg.PartSize < MinUploadPartSize {
- msg := fmt.Sprintf("part size must be at least %d bytes", MinUploadPartSize)
- return nil, awserr.New("ConfigError", msg, nil)
- }
-
- // Do one read to determine if we have more than one part
- reader, _, cleanup, err := u.nextReader()
- if err == io.EOF { // single part
- return u.singlePart(reader, cleanup)
- } else if err != nil {
- cleanup()
- return nil, awserr.New("ReadRequestBody", "read upload data failed", err)
- }
-
- mu := multiuploader{uploader: u}
- return mu.upload(reader, cleanup)
-}
-
-// init will initialize all default options.
-func (u *uploader) init() error {
- if err := validateSupportedARNType(aws.StringValue(u.in.Bucket)); err != nil {
- return err
- }
-
- if u.cfg.Concurrency == 0 {
- u.cfg.Concurrency = DefaultUploadConcurrency
- }
- if u.cfg.PartSize == 0 {
- u.cfg.PartSize = DefaultUploadPartSize
- }
- if u.cfg.MaxUploadParts == 0 {
- u.cfg.MaxUploadParts = MaxUploadParts
- }
-
- // Try to get the total size for some optimizations
- if err := u.initSize(); err != nil {
- return err
- }
-
- // If PartSize was changed or partPool was never setup then we need to allocated a new pool
- // so that we return []byte slices of the correct size
- poolCap := u.cfg.Concurrency + 1
- if u.cfg.partPool == nil || u.cfg.partPool.SliceSize() != u.cfg.PartSize {
- u.cfg.partPool = newByteSlicePool(u.cfg.PartSize)
- u.cfg.partPool.ModifyCapacity(poolCap)
- } else {
- u.cfg.partPool = &returnCapacityPoolCloser{byteSlicePool: u.cfg.partPool}
- u.cfg.partPool.ModifyCapacity(poolCap)
- }
-
- return nil
-}
-
-// initSize tries to detect the total stream size, setting u.totalSize. If
-// the size is not known, totalSize is set to -1.
-func (u *uploader) initSize() error {
- u.totalSize = -1
-
- switch r := u.in.Body.(type) {
- case io.Seeker:
- n, err := aws.SeekerLen(r)
- if err != nil {
- return err
- }
- u.totalSize = n
-
- // Try to adjust partSize if it is too small and account for
- // integer division truncation.
- if u.totalSize/u.cfg.PartSize >= int64(u.cfg.MaxUploadParts) {
- // Add one to the part size to account for remainders
- // during the size calculation. e.g odd number of bytes.
- u.cfg.PartSize = (u.totalSize / int64(u.cfg.MaxUploadParts)) + 1
- }
- }
-
- return nil
-}
-
-// nextReader returns a seekable reader representing the next packet of data.
-// This operation increases the shared u.readerPos counter, but note that it
-// does not need to be wrapped in a mutex because nextReader is only called
-// from the main thread.
-func (u *uploader) nextReader() (io.ReadSeeker, int, func(), error) {
- switch r := u.in.Body.(type) {
- case readerAtSeeker:
- var err error
-
- n := u.cfg.PartSize
- if u.totalSize >= 0 {
- bytesLeft := u.totalSize - u.readerPos
-
- if bytesLeft <= u.cfg.PartSize {
- err = io.EOF
- n = bytesLeft
- }
- }
-
- var (
- reader io.ReadSeeker
- cleanup func()
- )
-
- reader = io.NewSectionReader(r, u.readerPos, n)
- if u.cfg.BufferProvider != nil {
- reader, cleanup = u.cfg.BufferProvider.GetWriteTo(reader)
- } else {
- cleanup = func() {}
- }
-
- u.readerPos += n
-
- return reader, int(n), cleanup, err
-
- default:
- part, err := u.cfg.partPool.Get(u.ctx)
- if err != nil {
- return nil, 0, func() {}, err
- }
-
- n, err := readFillBuf(r, *part)
- u.readerPos += int64(n)
-
- cleanup := func() {
- u.cfg.partPool.Put(part)
- }
-
- return bytes.NewReader((*part)[0:n]), n, cleanup, err
- }
-}
-
-func readFillBuf(r io.Reader, b []byte) (offset int, err error) {
- for offset < len(b) && err == nil {
- var n int
- n, err = r.Read(b[offset:])
- offset += n
- }
-
- return offset, err
-}
-
-// singlePart contains upload logic for uploading a single chunk via
-// a regular PutObject request. Multipart requests require at least two
-// parts, or at least 5MB of data.
-func (u *uploader) singlePart(r io.ReadSeeker, cleanup func()) (*UploadOutput, error) {
- defer cleanup()
-
- params := &s3.PutObjectInput{}
- awsutil.Copy(params, u.in)
- params.Body = r
-
- // Need to use request form because URL generated in request is
- // used in return.
- req, out := u.cfg.S3.PutObjectRequest(params)
- req.SetContext(u.ctx)
- req.ApplyOptions(u.cfg.RequestOptions...)
- if err := req.Send(); err != nil {
- return nil, err
- }
-
- url := req.HTTPRequest.URL.String()
- return &UploadOutput{
- Location: url,
- VersionID: out.VersionId,
- ETag: out.ETag,
- }, nil
-}
-
-// internal structure to manage a specific multipart upload to S3.
-type multiuploader struct {
- *uploader
- wg sync.WaitGroup
- m sync.Mutex
- err error
- uploadID string
- parts completedParts
-}
-
-// keeps track of a single chunk of data being sent to S3.
-type chunk struct {
- buf io.ReadSeeker
- num int64
- cleanup func()
-}
-
-// completedParts is a wrapper to make parts sortable by their part number,
-// since S3 required this list to be sent in sorted order.
-type completedParts []*s3.CompletedPart
-
-func (a completedParts) Len() int { return len(a) }
-func (a completedParts) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
-func (a completedParts) Less(i, j int) bool { return *a[i].PartNumber < *a[j].PartNumber }
-
-// upload will perform a multipart upload using the firstBuf buffer containing
-// the first chunk of data.
-func (u *multiuploader) upload(firstBuf io.ReadSeeker, cleanup func()) (*UploadOutput, error) {
- params := &s3.CreateMultipartUploadInput{}
- awsutil.Copy(params, u.in)
-
- // Create the multipart
- resp, err := u.cfg.S3.CreateMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...)
- if err != nil {
- cleanup()
- return nil, err
- }
- u.uploadID = *resp.UploadId
-
- // Create the workers
- ch := make(chan chunk, u.cfg.Concurrency)
- for i := 0; i < u.cfg.Concurrency; i++ {
- u.wg.Add(1)
- go u.readChunk(ch)
- }
-
- // Send part 1 to the workers
- var num int64 = 1
- ch <- chunk{buf: firstBuf, num: num, cleanup: cleanup}
-
- // Read and queue the rest of the parts
- for u.geterr() == nil && err == nil {
- var (
- reader io.ReadSeeker
- nextChunkLen int
- ok bool
- )
-
- reader, nextChunkLen, cleanup, err = u.nextReader()
- ok, err = u.shouldContinue(num, nextChunkLen, err)
- if !ok {
- cleanup()
- if err != nil {
- u.seterr(err)
- }
- break
- }
-
- num++
-
- ch <- chunk{buf: reader, num: num, cleanup: cleanup}
- }
-
- // Close the channel, wait for workers, and complete upload
- close(ch)
- u.wg.Wait()
- complete := u.complete()
-
- if err := u.geterr(); err != nil {
- return nil, &multiUploadError{
- awsError: awserr.New(
- "MultipartUpload",
- "upload multipart failed",
- err),
- uploadID: u.uploadID,
- }
- }
-
- // Create a presigned URL of the S3 Get Object in order to have parity with
- // single part upload.
- getReq, _ := u.cfg.S3.GetObjectRequest(&s3.GetObjectInput{
- Bucket: u.in.Bucket,
- Key: u.in.Key,
- })
- getReq.Config.Credentials = credentials.AnonymousCredentials
- getReq.SetContext(u.ctx)
- uploadLocation, _, _ := getReq.PresignRequest(1)
-
- return &UploadOutput{
- Location: uploadLocation,
- VersionID: complete.VersionId,
- UploadID: u.uploadID,
- ETag: complete.ETag,
- }, nil
-}
-
-func (u *multiuploader) shouldContinue(part int64, nextChunkLen int, err error) (bool, error) {
- if err != nil && err != io.EOF {
- return false, awserr.New("ReadRequestBody", "read multipart upload data failed", err)
- }
-
- if nextChunkLen == 0 {
- // No need to upload empty part, if file was empty to start
- // with empty single part would of been created and never
- // started multipart upload.
- return false, nil
- }
-
- part++
- // This upload exceeded maximum number of supported parts, error now.
- if part > int64(u.cfg.MaxUploadParts) || part > int64(MaxUploadParts) {
- var msg string
- if part > int64(u.cfg.MaxUploadParts) {
- msg = fmt.Sprintf("exceeded total allowed configured MaxUploadParts (%d). Adjust PartSize to fit in this limit",
- u.cfg.MaxUploadParts)
- } else {
- msg = fmt.Sprintf("exceeded total allowed S3 limit MaxUploadParts (%d). Adjust PartSize to fit in this limit",
- MaxUploadParts)
- }
- return false, awserr.New("TotalPartsExceeded", msg, nil)
- }
-
- return true, err
-}
-
-// readChunk runs in worker goroutines to pull chunks off of the ch channel
-// and send() them as UploadPart requests.
-func (u *multiuploader) readChunk(ch chan chunk) {
- defer u.wg.Done()
- for {
- data, ok := <-ch
-
- if !ok {
- break
- }
-
- if u.geterr() == nil {
- if err := u.send(data); err != nil {
- u.seterr(err)
- }
- }
-
- data.cleanup()
- }
-}
-
-// send performs an UploadPart request and keeps track of the completed
-// part information.
-func (u *multiuploader) send(c chunk) error {
- params := &s3.UploadPartInput{
- Bucket: u.in.Bucket,
- Key: u.in.Key,
- Body: c.buf,
- UploadId: &u.uploadID,
- SSECustomerAlgorithm: u.in.SSECustomerAlgorithm,
- SSECustomerKey: u.in.SSECustomerKey,
- PartNumber: &c.num,
- }
-
- resp, err := u.cfg.S3.UploadPartWithContext(u.ctx, params, u.cfg.RequestOptions...)
- if err != nil {
- return err
- }
-
- n := c.num
- completed := &s3.CompletedPart{ETag: resp.ETag, PartNumber: &n}
-
- u.m.Lock()
- u.parts = append(u.parts, completed)
- u.m.Unlock()
-
- return nil
-}
-
-// geterr is a thread-safe getter for the error object
-func (u *multiuploader) geterr() error {
- u.m.Lock()
- defer u.m.Unlock()
-
- return u.err
-}
-
-// seterr is a thread-safe setter for the error object
-func (u *multiuploader) seterr(e error) {
- u.m.Lock()
- defer u.m.Unlock()
-
- u.err = e
-}
-
-// fail will abort the multipart unless LeavePartsOnError is set to true.
-func (u *multiuploader) fail() {
- if u.cfg.LeavePartsOnError {
- return
- }
-
- params := &s3.AbortMultipartUploadInput{
- Bucket: u.in.Bucket,
- Key: u.in.Key,
- UploadId: &u.uploadID,
- }
- _, err := u.cfg.S3.AbortMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...)
- if err != nil {
- logMessage(u.cfg.S3, aws.LogDebug, fmt.Sprintf("failed to abort multipart upload, %v", err))
- }
-}
-
-// complete successfully completes a multipart upload and returns the response.
-func (u *multiuploader) complete() *s3.CompleteMultipartUploadOutput {
- if u.geterr() != nil {
- u.fail()
- return nil
- }
-
- // Parts must be sorted in PartNumber order.
- sort.Sort(u.parts)
-
- params := &s3.CompleteMultipartUploadInput{
- Bucket: u.in.Bucket,
- Key: u.in.Key,
- UploadId: &u.uploadID,
- MultipartUpload: &s3.CompletedMultipartUpload{Parts: u.parts},
- }
- resp, err := u.cfg.S3.CompleteMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...)
- if err != nil {
- u.seterr(err)
- u.fail()
- }
-
- return resp
-}
-
-type readerAtSeeker interface {
- io.ReaderAt
- io.ReadSeeker
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_input.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_input.go
deleted file mode 100644
index 008633498..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_input.go
+++ /dev/null
@@ -1,264 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package s3manager
-
-import (
- "io"
- "time"
-)
-
-// UploadInput provides the input parameters for uploading a stream or buffer
-// to an object in an Amazon S3 bucket. This type is similar to the s3
-// package's PutObjectInput with the exception that the Body member is an
-// io.Reader instead of an io.ReadSeeker.
-//
-// The ContentMD5 member for pre-computed MD5 checksums will be ignored for
-// multipart uploads. Objects that will be uploaded in a single part, the
-// ContentMD5 will be used.
-//
-// The Checksum members for pre-computed checksums will be ignored for
-// multipart uploads. Objects that will be uploaded in a single part, will
-// include the checksum member in the request.
-type UploadInput struct {
- _ struct{} `locationName:"PutObjectRequest" type:"structure" payload:"Body"`
-
- // The canned ACL to apply to the object. For more information, see Canned ACL
- // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
- //
- // This action is not supported by Amazon S3 on Outposts.
- ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
-
- // The readable body payload to send to S3.
- Body io.Reader
-
- // The bucket name to which the PUT action was initiated.
- //
- // When using this action with an access point, you must direct requests to
- // the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
- // When using this action with an access point through the Amazon Web Services
- // SDKs, you provide the access point ARN in place of the bucket name. For more
- // information about access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html)
- // in the Amazon S3 User Guide.
- //
- // When you use this action with Amazon S3 on Outposts, you must direct requests
- // to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form
- // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When
- // you use this action with S3 on Outposts through the Amazon Web Services SDKs,
- // you provide the Outposts access point ARN in place of the bucket name. For
- // more information about S3 on Outposts ARNs, see What is S3 on Outposts? (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html)
- // in the Amazon S3 User Guide.
- //
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
-
- // Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption
- // with server-side encryption using Key Management Service (KMS) keys (SSE-KMS).
- // Setting this header to true causes Amazon S3 to use an S3 Bucket Key for
- // object encryption with SSE-KMS.
- //
- // Specifying this header with a PUT action doesn’t affect bucket-level settings
- // for S3 Bucket Key.
- BucketKeyEnabled *bool `location:"header" locationName:"x-amz-server-side-encryption-bucket-key-enabled" type:"boolean"`
-
- // Can be used to specify caching behavior along the request/reply chain. For
- // more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
- // (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9).
- CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
-
- // Indicates the algorithm used to create the checksum for the object when using
- // the SDK. This header will not provide any additional functionality if not
- // using the SDK. When sending this header, there must be a corresponding x-amz-checksum
- // or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with
- // the HTTP status code 400 Bad Request. For more information, see Checking
- // object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
- // in the Amazon S3 User Guide.
- //
- // If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
- // parameter.
- //
- // The AWS SDK for Go v1 does not support automatic computing request payload
- // checksum. This feature is available in the AWS SDK for Go v2. If a value
- // is specified for this parameter, the matching algorithm's checksum member
- // must be populated with the algorithm's checksum of the request payload.
- ChecksumAlgorithm *string `location:"header" locationName:"x-amz-sdk-checksum-algorithm" type:"string" enum:"ChecksumAlgorithm"`
-
- // This header can be used as a data integrity check to verify that the data
- // received is the same data that was originally sent. This header specifies
- // the base64-encoded, 32-bit CRC32 checksum of the object. For more information,
- // see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
- // in the Amazon S3 User Guide.
- ChecksumCRC32 *string `location:"header" locationName:"x-amz-checksum-crc32" type:"string"`
-
- // This header can be used as a data integrity check to verify that the data
- // received is the same data that was originally sent. This header specifies
- // the base64-encoded, 32-bit CRC32C checksum of the object. For more information,
- // see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
- // in the Amazon S3 User Guide.
- ChecksumCRC32C *string `location:"header" locationName:"x-amz-checksum-crc32c" type:"string"`
-
- // This header can be used as a data integrity check to verify that the data
- // received is the same data that was originally sent. This header specifies
- // the base64-encoded, 160-bit SHA-1 digest of the object. For more information,
- // see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
- // in the Amazon S3 User Guide.
- ChecksumSHA1 *string `location:"header" locationName:"x-amz-checksum-sha1" type:"string"`
-
- // This header can be used as a data integrity check to verify that the data
- // received is the same data that was originally sent. This header specifies
- // the base64-encoded, 256-bit SHA-256 digest of the object. For more information,
- // see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
- // in the Amazon S3 User Guide.
- ChecksumSHA256 *string `location:"header" locationName:"x-amz-checksum-sha256" type:"string"`
-
- // Specifies presentational information for the object. For more information,
- // see https://www.rfc-editor.org/rfc/rfc6266#section-4 (https://www.rfc-editor.org/rfc/rfc6266#section-4).
- ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
-
- // Specifies what content encodings have been applied to the object and thus
- // what decoding mechanisms must be applied to obtain the media-type referenced
- // by the Content-Type header field. For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#field.content-encoding
- // (https://www.rfc-editor.org/rfc/rfc9110.html#field.content-encoding).
- ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
-
- // The language the content is in.
- ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
-
- // The base64-encoded 128-bit MD5 digest of the message (without the headers)
- // according to RFC 1864. This header can be used as a message integrity check
- // to verify that the data is the same data that was originally sent. Although
- // it is optional, we recommend using the Content-MD5 mechanism as an end-to-end
- // integrity check. For more information about REST request authentication,
- // see REST Authentication (https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html).
- //
- // If the ContentMD5 is provided for a multipart upload, it will be ignored.
- // Objects that will be uploaded in a single part, the ContentMD5 will be used.
- ContentMD5 *string `location:"header" locationName:"Content-MD5" type:"string"`
-
- // A standard MIME type describing the format of the contents. For more information,
- // see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type (https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type).
- ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
-
- // The account ID of the expected bucket owner. If the bucket is owned by a
- // different account, the request fails with the HTTP status code 403 Forbidden
- // (access denied).
- ExpectedBucketOwner *string `location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`
-
- // The date and time at which the object is no longer cacheable. For more information,
- // see https://www.rfc-editor.org/rfc/rfc7234#section-5.3 (https://www.rfc-editor.org/rfc/rfc7234#section-5.3).
- Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"`
-
- // Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
- //
- // This action is not supported by Amazon S3 on Outposts.
- GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
-
- // Allows grantee to read the object data and its metadata.
- //
- // This action is not supported by Amazon S3 on Outposts.
- GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
-
- // Allows grantee to read the object ACL.
- //
- // This action is not supported by Amazon S3 on Outposts.
- GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
-
- // Allows grantee to write the ACL for the applicable object.
- //
- // This action is not supported by Amazon S3 on Outposts.
- GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
-
- // Object key for which the PUT action was initiated.
- //
- // Key is a required field
- Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
-
- // A map of metadata to store with the object in S3.
- Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
-
- // Specifies whether a legal hold will be applied to this object. For more information
- // about S3 Object Lock, see Object Lock (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).
- ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`
-
- // The Object Lock mode that you want to apply to this object.
- ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`
-
- // The date and time when you want this object's Object Lock to expire. Must
- // be formatted as a timestamp parameter.
- ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
-
- // Confirms that the requester knows that they will be charged for the request.
- // Bucket owners need not specify this parameter in their requests. For information
- // about downloading objects from Requester Pays buckets, see Downloading Objects
- // in Requester Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
- // in the Amazon S3 User Guide.
- RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
-
- // Specifies the algorithm to use to when encrypting the object (for example,
- // AES256).
- SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
-
- // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
- // data. This value is used to store the object and then it is discarded; Amazon
- // S3 does not store the encryption key. The key must be appropriate for use
- // with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm
- // header.
- SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`
-
- // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
- // Amazon S3 uses this header for a message integrity check to ensure that the
- // encryption key was transmitted without error.
- SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
-
- // Specifies the Amazon Web Services KMS Encryption Context to use for object
- // encryption. The value of this header is a base64-encoded UTF-8 string holding
- // JSON with the encryption context key-value pairs. This value is stored as
- // object metadata and automatically gets passed on to Amazon Web Services KMS
- // for future GetObject or CopyObject operations on this object.
- SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"`
-
- // If x-amz-server-side-encryption has a valid value of aws:kms or aws:kms:dsse,
- // this header specifies the ID of the Key Management Service (KMS) symmetric
- // encryption customer managed key that was used for the object. If you specify
- // x-amz-server-side-encryption:aws:kms or x-amz-server-side-encryption:aws:kms:dsse,
- // but do not providex-amz-server-side-encryption-aws-kms-key-id, Amazon S3
- // uses the Amazon Web Services managed key (aws/s3) to protect the data. If
- // the KMS key does not exist in the same account that's issuing the command,
- // you must use the full ARN and not just the ID.
- SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`
-
- // The server-side encryption algorithm used when storing this object in Amazon
- // S3 (for example, AES256, aws:kms, aws:kms:dsse).
- ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
-
- // By default, Amazon S3 uses the STANDARD Storage Class to store newly created
- // objects. The STANDARD storage class provides high durability and high availability.
- // Depending on performance needs, you can specify a different Storage Class.
- // Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For more information,
- // see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html)
- // in the Amazon S3 User Guide.
- StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
-
- // The tag-set for the object. The tag-set must be encoded as URL Query parameters.
- // (For example, "Key1=Value1")
- Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"`
-
- // If the bucket is configured as a website, redirects requests for this object
- // to another object in the same bucket or to an external URL. Amazon S3 stores
- // the value of this header in the object metadata. For information about object
- // metadata, see Object Key and Metadata (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html).
- //
- // In the following example, the request header sets the redirect to an object
- // (anotherPage.html) in the same bucket:
- //
- // x-amz-website-redirect-location: /anotherPage.html
- //
- // In the following example, the request header sets the object redirect to
- // another website:
- //
- // x-amz-website-redirect-location: http://www.example.com/
- //
- // For more information about website hosting in Amazon S3, see Hosting Websites
- // on Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html)
- // and How to Configure Website Page Redirects (https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html).
- WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/writer_read_from.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/writer_read_from.go
deleted file mode 100644
index a74a02d93..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/writer_read_from.go
+++ /dev/null
@@ -1,83 +0,0 @@
-package s3manager
-
-import (
- "bufio"
- "io"
- "sync"
-
- "github.com/aws/aws-sdk-go/internal/sdkio"
-)
-
-// WriterReadFrom defines an interface implementing io.Writer and io.ReaderFrom
-type WriterReadFrom interface {
- io.Writer
- io.ReaderFrom
-}
-
-// WriterReadFromProvider provides an implementation of io.ReadFrom for the given io.Writer
-type WriterReadFromProvider interface {
- GetReadFrom(writer io.Writer) (w WriterReadFrom, cleanup func())
-}
-
-type bufferedWriter interface {
- WriterReadFrom
- Flush() error
- Reset(io.Writer)
-}
-
-type bufferedReadFrom struct {
- bufferedWriter
-}
-
-func (b *bufferedReadFrom) ReadFrom(r io.Reader) (int64, error) {
- n, err := b.bufferedWriter.ReadFrom(r)
- if flushErr := b.Flush(); flushErr != nil && err == nil {
- err = flushErr
- }
- return n, err
-}
-
-// PooledBufferedReadFromProvider is a WriterReadFromProvider that uses a sync.Pool
-// to manage allocation and reuse of *bufio.Writer structures.
-type PooledBufferedReadFromProvider struct {
- pool sync.Pool
-}
-
-// NewPooledBufferedWriterReadFromProvider returns a new PooledBufferedReadFromProvider
-// Size is used to control the size of the underlying *bufio.Writer created for
-// calls to GetReadFrom.
-func NewPooledBufferedWriterReadFromProvider(size int) *PooledBufferedReadFromProvider {
- if size < int(32*sdkio.KibiByte) {
- size = int(64 * sdkio.KibiByte)
- }
-
- return &PooledBufferedReadFromProvider{
- pool: sync.Pool{
- New: func() interface{} {
- return &bufferedReadFrom{bufferedWriter: bufio.NewWriterSize(nil, size)}
- },
- },
- }
-}
-
-// GetReadFrom takes an io.Writer and wraps it with a type which satisfies the WriterReadFrom
-// interface/ Additionally a cleanup function is provided which must be called after usage of the WriterReadFrom
-// has been completed in order to allow the reuse of the *bufio.Writer
-func (p *PooledBufferedReadFromProvider) GetReadFrom(writer io.Writer) (r WriterReadFrom, cleanup func()) {
- buffer := p.pool.Get().(*bufferedReadFrom)
- buffer.Reset(writer)
- r = buffer
- cleanup = func() {
- buffer.Reset(nil) // Reset to nil writer to release reference
- p.pool.Put(buffer)
- }
- return r, cleanup
-}
-
-type suppressWriterAt struct {
- suppressed io.Reader
-}
-
-func (s *suppressWriterAt) Read(p []byte) (n int, err error) {
- return s.suppressed.Read(p)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go b/vendor/github.com/aws/aws-sdk-go/service/s3/service.go
deleted file mode 100644
index 3e75d0e94..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package s3
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/client/metadata"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/aws/signer/v4"
- "github.com/aws/aws-sdk-go/private/protocol/restxml"
-)
-
-// S3 provides the API operation methods for making requests to
-// Amazon Simple Storage Service. See this package's package overview docs
-// for details on the service.
-//
-// S3 methods are safe to use concurrently. It is not safe to
-// modify mutate any of the struct's properties though.
-type S3 struct {
- *client.Client
-}
-
-// Used for custom client initialization logic
-var initClient func(*client.Client)
-
-// Used for custom request initialization logic
-var initRequest func(*request.Request)
-
-// Service information constants
-const (
- ServiceName = "s3" // Name of service.
- EndpointsID = ServiceName // ID to lookup a service endpoint with.
- ServiceID = "S3" // ServiceID is a unique identifier of a specific service.
-)
-
-// New creates a new instance of the S3 client with a session.
-// If additional configuration is needed for the client instance use the optional
-// aws.Config parameter to add your extra config.
-//
-// Example:
-//
-// mySession := session.Must(session.NewSession())
-//
-// // Create a S3 client from just a session.
-// svc := s3.New(mySession)
-//
-// // Create a S3 client with additional configuration
-// svc := s3.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
-func New(p client.ConfigProvider, cfgs ...*aws.Config) *S3 {
- c := p.ClientConfig(EndpointsID, cfgs...)
- if c.SigningNameDerived || len(c.SigningName) == 0 {
- c.SigningName = "s3"
- }
- return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion)
-}
-
-// newClient creates, initializes and returns a new service client instance.
-func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *S3 {
- svc := &S3{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: ServiceName,
- ServiceID: ServiceID,
- SigningName: signingName,
- SigningRegion: signingRegion,
- PartitionID: partitionID,
- Endpoint: endpoint,
- APIVersion: "2006-03-01",
- ResolvedRegion: resolvedRegion,
- },
- handlers,
- ),
- }
-
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.BuildNamedHandler(v4.SignRequestHandler.Name, func(s *v4.Signer) {
- s.DisableURIPathEscaping = true
- }))
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
-
- svc.Handlers.BuildStream.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.UnmarshalStream.PushBackNamed(restxml.UnmarshalHandler)
-
- // Run custom client initialization if present
- if initClient != nil {
- initClient(svc.Client)
- }
-
- return svc
-}
-
-// newRequest creates a new request for a S3 operation and runs any
-// custom request initialization.
-func (c *S3) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
-
- // Run custom request initialization if present
- if initRequest != nil {
- initRequest(req)
- }
-
- return req
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/sse.go b/vendor/github.com/aws/aws-sdk-go/service/s3/sse.go
deleted file mode 100644
index 57a0bd92c..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/sse.go
+++ /dev/null
@@ -1,84 +0,0 @@
-package s3
-
-import (
- "crypto/md5"
- "encoding/base64"
- "net/http"
-
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/request"
-)
-
-var errSSERequiresSSL = awserr.New("ConfigError", "cannot send SSE keys over HTTP.", nil)
-
-func validateSSERequiresSSL(r *request.Request) {
- if r.HTTPRequest.URL.Scheme == "https" {
- return
- }
-
- if iface, ok := r.Params.(sseCustomerKeyGetter); ok {
- if len(iface.getSSECustomerKey()) > 0 {
- r.Error = errSSERequiresSSL
- return
- }
- }
-
- if iface, ok := r.Params.(copySourceSSECustomerKeyGetter); ok {
- if len(iface.getCopySourceSSECustomerKey()) > 0 {
- r.Error = errSSERequiresSSL
- return
- }
- }
-}
-
-const (
- sseKeyHeader = "x-amz-server-side-encryption-customer-key"
- sseKeyMD5Header = sseKeyHeader + "-md5"
-)
-
-func computeSSEKeyMD5(r *request.Request) {
- var key string
- if g, ok := r.Params.(sseCustomerKeyGetter); ok {
- key = g.getSSECustomerKey()
- }
-
- computeKeyMD5(sseKeyHeader, sseKeyMD5Header, key, r.HTTPRequest)
-}
-
-const (
- copySrcSSEKeyHeader = "x-amz-copy-source-server-side-encryption-customer-key"
- copySrcSSEKeyMD5Header = copySrcSSEKeyHeader + "-md5"
-)
-
-func computeCopySourceSSEKeyMD5(r *request.Request) {
- var key string
- if g, ok := r.Params.(copySourceSSECustomerKeyGetter); ok {
- key = g.getCopySourceSSECustomerKey()
- }
-
- computeKeyMD5(copySrcSSEKeyHeader, copySrcSSEKeyMD5Header, key, r.HTTPRequest)
-}
-
-func computeKeyMD5(keyHeader, keyMD5Header, key string, r *http.Request) {
- if len(key) == 0 {
- // Backwards compatiablity where user just set the header value instead
- // of using the API parameter, or setting the header value for an
- // operation without the parameters modeled.
- key = r.Header.Get(keyHeader)
- if len(key) == 0 {
- return
- }
-
- // In backwards compatible, the header's value is not base64 encoded,
- // and needs to be encoded and updated by the SDK's customizations.
- b64Key := base64.StdEncoding.EncodeToString([]byte(key))
- r.Header.Set(keyHeader, b64Key)
- }
-
- // Only update Key's MD5 if not already set.
- if len(r.Header.Get(keyMD5Header)) == 0 {
- sum := md5.Sum([]byte(key))
- keyMD5 := base64.StdEncoding.EncodeToString(sum[:])
- r.Header.Set(keyMD5Header, keyMD5)
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go
deleted file mode 100644
index 096adc091..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package s3
-
-import (
- "bytes"
- "io"
- "io/ioutil"
- "net/http"
-
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/internal/sdkio"
-)
-
-func copyMultipartStatusOKUnmarshalError(r *request.Request) {
- b, err := ioutil.ReadAll(r.HTTPResponse.Body)
- r.HTTPResponse.Body.Close()
- if err != nil {
- r.Error = awserr.NewRequestFailure(
- awserr.New(request.ErrCodeSerialization, "unable to read response body", err),
- r.HTTPResponse.StatusCode,
- r.RequestID,
- )
- // Note, some middleware later in the stack like restxml.Unmarshal expect a valid, non-closed Body
- // even in case of an error, so we replace it with an empty Reader.
- r.HTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(nil))
- return
- }
-
- body := bytes.NewReader(b)
- r.HTTPResponse.Body = ioutil.NopCloser(body)
- defer body.Seek(0, sdkio.SeekStart)
-
- unmarshalError(r)
- if err, ok := r.Error.(awserr.Error); ok && err != nil {
- if err.Code() == request.ErrCodeSerialization &&
- err.OrigErr() != io.EOF {
- r.Error = nil
- return
- }
- // if empty payload
- if err.OrigErr() == io.EOF {
- r.HTTPResponse.StatusCode = http.StatusInternalServerError
- } else {
- r.HTTPResponse.StatusCode = http.StatusServiceUnavailable
- }
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go
deleted file mode 100644
index 6eecf6691..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go
+++ /dev/null
@@ -1,114 +0,0 @@
-package s3
-
-import (
- "bytes"
- "encoding/xml"
- "fmt"
- "io"
- "io/ioutil"
- "net/http"
- "strings"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
-)
-
-type xmlErrorResponse struct {
- XMLName xml.Name `xml:"Error"`
- Code string `xml:"Code"`
- Message string `xml:"Message"`
-}
-
-func unmarshalError(r *request.Request) {
- defer r.HTTPResponse.Body.Close()
- defer io.Copy(ioutil.Discard, r.HTTPResponse.Body)
-
- // Bucket exists in a different region, and request needs
- // to be made to the correct region.
- if r.HTTPResponse.StatusCode == http.StatusMovedPermanently {
- msg := fmt.Sprintf(
- "incorrect region, the bucket is not in '%s' region at endpoint '%s'",
- aws.StringValue(r.Config.Region),
- aws.StringValue(r.Config.Endpoint),
- )
- if v := r.HTTPResponse.Header.Get("x-amz-bucket-region"); len(v) != 0 {
- msg += fmt.Sprintf(", bucket is in '%s' region", v)
- }
- r.Error = awserr.NewRequestFailure(
- awserr.New("BucketRegionError", msg, nil),
- r.HTTPResponse.StatusCode,
- r.RequestID,
- )
- return
- }
-
- // Attempt to parse error from body if it is known
- var errResp xmlErrorResponse
- var err error
- if r.HTTPResponse.StatusCode >= 200 && r.HTTPResponse.StatusCode < 300 {
- err = s3unmarshalXMLError(&errResp, r.HTTPResponse.Body)
- } else {
- err = xmlutil.UnmarshalXMLError(&errResp, r.HTTPResponse.Body)
- }
-
- if err != nil {
- var errorMsg string
- if err == io.EOF {
- errorMsg = "empty response payload"
- } else {
- errorMsg = "failed to unmarshal error message"
- }
-
- r.Error = awserr.NewRequestFailure(
- awserr.New(request.ErrCodeSerialization,
- errorMsg, err),
- r.HTTPResponse.StatusCode,
- r.RequestID,
- )
- return
- }
-
- // Fallback to status code converted to message if still no error code
- if len(errResp.Code) == 0 {
- statusText := http.StatusText(r.HTTPResponse.StatusCode)
- errResp.Code = strings.Replace(statusText, " ", "", -1)
- errResp.Message = statusText
- }
-
- r.Error = awserr.NewRequestFailure(
- awserr.New(errResp.Code, errResp.Message, err),
- r.HTTPResponse.StatusCode,
- r.RequestID,
- )
-}
-
-// A RequestFailure provides access to the S3 Request ID and Host ID values
-// returned from API operation errors. Getting the error as a string will
-// return the formated error with the same information as awserr.RequestFailure,
-// while also adding the HostID value from the response.
-type RequestFailure interface {
- awserr.RequestFailure
-
- // Host ID is the S3 Host ID needed for debug, and contacting support
- HostID() string
-}
-
-// s3unmarshalXMLError is s3 specific xml error unmarshaler
-// for 200 OK errors and response payloads.
-// This function differs from the xmlUtil.UnmarshalXMLError
-// func. It does not ignore the EOF error and passes it up.
-// Related to bug fix for `s3 200 OK response with empty payload`
-func s3unmarshalXMLError(v interface{}, stream io.Reader) error {
- var errBuf bytes.Buffer
- body := io.TeeReader(stream, &errBuf)
-
- err := xml.NewDecoder(body).Decode(v)
- if err != nil && err != io.EOF {
- return awserr.NewUnmarshalError(err,
- "failed to unmarshal error message", errBuf.Bytes())
- }
-
- return err
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go
deleted file mode 100644
index 2596c694b..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go
+++ /dev/null
@@ -1,214 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package s3
-
-import (
- "time"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// WaitUntilBucketExists uses the Amazon S3 API operation
-// HeadBucket to wait for a condition to be met before returning.
-// If the condition is not met within the max attempt window, an error will
-// be returned.
-func (c *S3) WaitUntilBucketExists(input *HeadBucketInput) error {
- return c.WaitUntilBucketExistsWithContext(aws.BackgroundContext(), input)
-}
-
-// WaitUntilBucketExistsWithContext is an extended version of WaitUntilBucketExists.
-// With the support for passing in a context and options to configure the
-// Waiter and the underlying request options.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *S3) WaitUntilBucketExistsWithContext(ctx aws.Context, input *HeadBucketInput, opts ...request.WaiterOption) error {
- w := request.Waiter{
- Name: "WaitUntilBucketExists",
- MaxAttempts: 20,
- Delay: request.ConstantWaiterDelay(5 * time.Second),
- Acceptors: []request.WaiterAcceptor{
- {
- State: request.SuccessWaiterState,
- Matcher: request.StatusWaiterMatch,
- Expected: 200,
- },
- {
- State: request.SuccessWaiterState,
- Matcher: request.StatusWaiterMatch,
- Expected: 301,
- },
- {
- State: request.SuccessWaiterState,
- Matcher: request.StatusWaiterMatch,
- Expected: 403,
- },
- {
- State: request.RetryWaiterState,
- Matcher: request.StatusWaiterMatch,
- Expected: 404,
- },
- },
- Logger: c.Config.Logger,
- NewRequest: func(opts []request.Option) (*request.Request, error) {
- var inCpy *HeadBucketInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.HeadBucketRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- w.ApplyOptions(opts...)
-
- return w.WaitWithContext(ctx)
-}
-
-// WaitUntilBucketNotExists uses the Amazon S3 API operation
-// HeadBucket to wait for a condition to be met before returning.
-// If the condition is not met within the max attempt window, an error will
-// be returned.
-func (c *S3) WaitUntilBucketNotExists(input *HeadBucketInput) error {
- return c.WaitUntilBucketNotExistsWithContext(aws.BackgroundContext(), input)
-}
-
-// WaitUntilBucketNotExistsWithContext is an extended version of WaitUntilBucketNotExists.
-// With the support for passing in a context and options to configure the
-// Waiter and the underlying request options.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *S3) WaitUntilBucketNotExistsWithContext(ctx aws.Context, input *HeadBucketInput, opts ...request.WaiterOption) error {
- w := request.Waiter{
- Name: "WaitUntilBucketNotExists",
- MaxAttempts: 20,
- Delay: request.ConstantWaiterDelay(5 * time.Second),
- Acceptors: []request.WaiterAcceptor{
- {
- State: request.SuccessWaiterState,
- Matcher: request.StatusWaiterMatch,
- Expected: 404,
- },
- },
- Logger: c.Config.Logger,
- NewRequest: func(opts []request.Option) (*request.Request, error) {
- var inCpy *HeadBucketInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.HeadBucketRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- w.ApplyOptions(opts...)
-
- return w.WaitWithContext(ctx)
-}
-
-// WaitUntilObjectExists uses the Amazon S3 API operation
-// HeadObject to wait for a condition to be met before returning.
-// If the condition is not met within the max attempt window, an error will
-// be returned.
-func (c *S3) WaitUntilObjectExists(input *HeadObjectInput) error {
- return c.WaitUntilObjectExistsWithContext(aws.BackgroundContext(), input)
-}
-
-// WaitUntilObjectExistsWithContext is an extended version of WaitUntilObjectExists.
-// With the support for passing in a context and options to configure the
-// Waiter and the underlying request options.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *S3) WaitUntilObjectExistsWithContext(ctx aws.Context, input *HeadObjectInput, opts ...request.WaiterOption) error {
- w := request.Waiter{
- Name: "WaitUntilObjectExists",
- MaxAttempts: 20,
- Delay: request.ConstantWaiterDelay(5 * time.Second),
- Acceptors: []request.WaiterAcceptor{
- {
- State: request.SuccessWaiterState,
- Matcher: request.StatusWaiterMatch,
- Expected: 200,
- },
- {
- State: request.RetryWaiterState,
- Matcher: request.StatusWaiterMatch,
- Expected: 404,
- },
- },
- Logger: c.Config.Logger,
- NewRequest: func(opts []request.Option) (*request.Request, error) {
- var inCpy *HeadObjectInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.HeadObjectRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- w.ApplyOptions(opts...)
-
- return w.WaitWithContext(ctx)
-}
-
-// WaitUntilObjectNotExists uses the Amazon S3 API operation
-// HeadObject to wait for a condition to be met before returning.
-// If the condition is not met within the max attempt window, an error will
-// be returned.
-func (c *S3) WaitUntilObjectNotExists(input *HeadObjectInput) error {
- return c.WaitUntilObjectNotExistsWithContext(aws.BackgroundContext(), input)
-}
-
-// WaitUntilObjectNotExistsWithContext is an extended version of WaitUntilObjectNotExists.
-// With the support for passing in a context and options to configure the
-// Waiter and the underlying request options.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *S3) WaitUntilObjectNotExistsWithContext(ctx aws.Context, input *HeadObjectInput, opts ...request.WaiterOption) error {
- w := request.Waiter{
- Name: "WaitUntilObjectNotExists",
- MaxAttempts: 20,
- Delay: request.ConstantWaiterDelay(5 * time.Second),
- Acceptors: []request.WaiterAcceptor{
- {
- State: request.SuccessWaiterState,
- Matcher: request.StatusWaiterMatch,
- Expected: 404,
- },
- },
- Logger: c.Config.Logger,
- NewRequest: func(opts []request.Option) (*request.Request, error) {
- var inCpy *HeadObjectInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.HeadObjectRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- w.ApplyOptions(opts...)
-
- return w.WaitWithContext(ctx)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sso/api.go b/vendor/github.com/aws/aws-sdk-go/service/sso/api.go
deleted file mode 100644
index b8f590f71..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sso/api.go
+++ /dev/null
@@ -1,1367 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package sso
-
-import (
- "fmt"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/credentials"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/restjson"
-)
-
-const opGetRoleCredentials = "GetRoleCredentials"
-
-// GetRoleCredentialsRequest generates a "aws/request.Request" representing the
-// client's request for the GetRoleCredentials operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See GetRoleCredentials for more information on using the GetRoleCredentials
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the GetRoleCredentialsRequest method.
-// req, resp := client.GetRoleCredentialsRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentials
-func (c *SSO) GetRoleCredentialsRequest(input *GetRoleCredentialsInput) (req *request.Request, output *GetRoleCredentialsOutput) {
- op := &request.Operation{
- Name: opGetRoleCredentials,
- HTTPMethod: "GET",
- HTTPPath: "/federation/credentials",
- }
-
- if input == nil {
- input = &GetRoleCredentialsInput{}
- }
-
- output = &GetRoleCredentialsOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
-}
-
-// GetRoleCredentials API operation for AWS Single Sign-On.
-//
-// Returns the STS short-term credentials for a given role name that is assigned
-// to the user.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Single Sign-On's
-// API operation GetRoleCredentials for usage and error information.
-//
-// Returned Error Types:
-//
-// - InvalidRequestException
-// Indicates that a problem occurred with the input to the request. For example,
-// a required parameter might be missing or out of range.
-//
-// - UnauthorizedException
-// Indicates that the request is not authorized. This can happen due to an invalid
-// access token in the request.
-//
-// - TooManyRequestsException
-// Indicates that the request is being made too frequently and is more than
-// what the server can handle.
-//
-// - ResourceNotFoundException
-// The specified resource doesn't exist.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentials
-func (c *SSO) GetRoleCredentials(input *GetRoleCredentialsInput) (*GetRoleCredentialsOutput, error) {
- req, out := c.GetRoleCredentialsRequest(input)
- return out, req.Send()
-}
-
-// GetRoleCredentialsWithContext is the same as GetRoleCredentials with the addition of
-// the ability to pass a context and additional request options.
-//
-// See GetRoleCredentials for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *SSO) GetRoleCredentialsWithContext(ctx aws.Context, input *GetRoleCredentialsInput, opts ...request.Option) (*GetRoleCredentialsOutput, error) {
- req, out := c.GetRoleCredentialsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opListAccountRoles = "ListAccountRoles"
-
-// ListAccountRolesRequest generates a "aws/request.Request" representing the
-// client's request for the ListAccountRoles operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See ListAccountRoles for more information on using the ListAccountRoles
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the ListAccountRolesRequest method.
-// req, resp := client.ListAccountRolesRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRoles
-func (c *SSO) ListAccountRolesRequest(input *ListAccountRolesInput) (req *request.Request, output *ListAccountRolesOutput) {
- op := &request.Operation{
- Name: opListAccountRoles,
- HTTPMethod: "GET",
- HTTPPath: "/assignment/roles",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
-
- if input == nil {
- input = &ListAccountRolesInput{}
- }
-
- output = &ListAccountRolesOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
-}
-
-// ListAccountRoles API operation for AWS Single Sign-On.
-//
-// Lists all roles that are assigned to the user for a given AWS account.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Single Sign-On's
-// API operation ListAccountRoles for usage and error information.
-//
-// Returned Error Types:
-//
-// - InvalidRequestException
-// Indicates that a problem occurred with the input to the request. For example,
-// a required parameter might be missing or out of range.
-//
-// - UnauthorizedException
-// Indicates that the request is not authorized. This can happen due to an invalid
-// access token in the request.
-//
-// - TooManyRequestsException
-// Indicates that the request is being made too frequently and is more than
-// what the server can handle.
-//
-// - ResourceNotFoundException
-// The specified resource doesn't exist.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRoles
-func (c *SSO) ListAccountRoles(input *ListAccountRolesInput) (*ListAccountRolesOutput, error) {
- req, out := c.ListAccountRolesRequest(input)
- return out, req.Send()
-}
-
-// ListAccountRolesWithContext is the same as ListAccountRoles with the addition of
-// the ability to pass a context and additional request options.
-//
-// See ListAccountRoles for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *SSO) ListAccountRolesWithContext(ctx aws.Context, input *ListAccountRolesInput, opts ...request.Option) (*ListAccountRolesOutput, error) {
- req, out := c.ListAccountRolesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-// ListAccountRolesPages iterates over the pages of a ListAccountRoles operation,
-// calling the "fn" function with the response data for each page. To stop
-// iterating, return false from the fn function.
-//
-// See ListAccountRoles method for more information on how to use this operation.
-//
-// Note: This operation can generate multiple requests to a service.
-//
-// // Example iterating over at most 3 pages of a ListAccountRoles operation.
-// pageNum := 0
-// err := client.ListAccountRolesPages(params,
-// func(page *sso.ListAccountRolesOutput, lastPage bool) bool {
-// pageNum++
-// fmt.Println(page)
-// return pageNum <= 3
-// })
-func (c *SSO) ListAccountRolesPages(input *ListAccountRolesInput, fn func(*ListAccountRolesOutput, bool) bool) error {
- return c.ListAccountRolesPagesWithContext(aws.BackgroundContext(), input, fn)
-}
-
-// ListAccountRolesPagesWithContext same as ListAccountRolesPages except
-// it takes a Context and allows setting request options on the pages.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *SSO) ListAccountRolesPagesWithContext(ctx aws.Context, input *ListAccountRolesInput, fn func(*ListAccountRolesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListAccountRolesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListAccountRolesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
-
- for p.Next() {
- if !fn(p.Page().(*ListAccountRolesOutput), !p.HasNextPage()) {
- break
- }
- }
-
- return p.Err()
-}
-
-const opListAccounts = "ListAccounts"
-
-// ListAccountsRequest generates a "aws/request.Request" representing the
-// client's request for the ListAccounts operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See ListAccounts for more information on using the ListAccounts
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the ListAccountsRequest method.
-// req, resp := client.ListAccountsRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccounts
-func (c *SSO) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput) {
- op := &request.Operation{
- Name: opListAccounts,
- HTTPMethod: "GET",
- HTTPPath: "/assignment/accounts",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
-
- if input == nil {
- input = &ListAccountsInput{}
- }
-
- output = &ListAccountsOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
-}
-
-// ListAccounts API operation for AWS Single Sign-On.
-//
-// Lists all AWS accounts assigned to the user. These AWS accounts are assigned
-// by the administrator of the account. For more information, see Assign User
-// Access (https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers)
-// in the IAM Identity Center User Guide. This operation returns a paginated
-// response.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Single Sign-On's
-// API operation ListAccounts for usage and error information.
-//
-// Returned Error Types:
-//
-// - InvalidRequestException
-// Indicates that a problem occurred with the input to the request. For example,
-// a required parameter might be missing or out of range.
-//
-// - UnauthorizedException
-// Indicates that the request is not authorized. This can happen due to an invalid
-// access token in the request.
-//
-// - TooManyRequestsException
-// Indicates that the request is being made too frequently and is more than
-// what the server can handle.
-//
-// - ResourceNotFoundException
-// The specified resource doesn't exist.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccounts
-func (c *SSO) ListAccounts(input *ListAccountsInput) (*ListAccountsOutput, error) {
- req, out := c.ListAccountsRequest(input)
- return out, req.Send()
-}
-
-// ListAccountsWithContext is the same as ListAccounts with the addition of
-// the ability to pass a context and additional request options.
-//
-// See ListAccounts for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *SSO) ListAccountsWithContext(ctx aws.Context, input *ListAccountsInput, opts ...request.Option) (*ListAccountsOutput, error) {
- req, out := c.ListAccountsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-// ListAccountsPages iterates over the pages of a ListAccounts operation,
-// calling the "fn" function with the response data for each page. To stop
-// iterating, return false from the fn function.
-//
-// See ListAccounts method for more information on how to use this operation.
-//
-// Note: This operation can generate multiple requests to a service.
-//
-// // Example iterating over at most 3 pages of a ListAccounts operation.
-// pageNum := 0
-// err := client.ListAccountsPages(params,
-// func(page *sso.ListAccountsOutput, lastPage bool) bool {
-// pageNum++
-// fmt.Println(page)
-// return pageNum <= 3
-// })
-func (c *SSO) ListAccountsPages(input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool) error {
- return c.ListAccountsPagesWithContext(aws.BackgroundContext(), input, fn)
-}
-
-// ListAccountsPagesWithContext same as ListAccountsPages except
-// it takes a Context and allows setting request options on the pages.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *SSO) ListAccountsPagesWithContext(ctx aws.Context, input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListAccountsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListAccountsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
-
- for p.Next() {
- if !fn(p.Page().(*ListAccountsOutput), !p.HasNextPage()) {
- break
- }
- }
-
- return p.Err()
-}
-
-const opLogout = "Logout"
-
-// LogoutRequest generates a "aws/request.Request" representing the
-// client's request for the Logout operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See Logout for more information on using the Logout
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the LogoutRequest method.
-// req, resp := client.LogoutRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/Logout
-func (c *SSO) LogoutRequest(input *LogoutInput) (req *request.Request, output *LogoutOutput) {
- op := &request.Operation{
- Name: opLogout,
- HTTPMethod: "POST",
- HTTPPath: "/logout",
- }
-
- if input == nil {
- input = &LogoutInput{}
- }
-
- output = &LogoutOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
-}
-
-// Logout API operation for AWS Single Sign-On.
-//
-// Removes the locally stored SSO tokens from the client-side cache and sends
-// an API call to the IAM Identity Center service to invalidate the corresponding
-// server-side IAM Identity Center sign in session.
-//
-// If a user uses IAM Identity Center to access the AWS CLI, the user’s IAM
-// Identity Center sign in session is used to obtain an IAM session, as specified
-// in the corresponding IAM Identity Center permission set. More specifically,
-// IAM Identity Center assumes an IAM role in the target account on behalf of
-// the user, and the corresponding temporary AWS credentials are returned to
-// the client.
-//
-// After user logout, any existing IAM role sessions that were created by using
-// IAM Identity Center permission sets continue based on the duration configured
-// in the permission set. For more information, see User authentications (https://docs.aws.amazon.com/singlesignon/latest/userguide/authconcept.html)
-// in the IAM Identity Center User Guide.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Single Sign-On's
-// API operation Logout for usage and error information.
-//
-// Returned Error Types:
-//
-// - InvalidRequestException
-// Indicates that a problem occurred with the input to the request. For example,
-// a required parameter might be missing or out of range.
-//
-// - UnauthorizedException
-// Indicates that the request is not authorized. This can happen due to an invalid
-// access token in the request.
-//
-// - TooManyRequestsException
-// Indicates that the request is being made too frequently and is more than
-// what the server can handle.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/Logout
-func (c *SSO) Logout(input *LogoutInput) (*LogoutOutput, error) {
- req, out := c.LogoutRequest(input)
- return out, req.Send()
-}
-
-// LogoutWithContext is the same as Logout with the addition of
-// the ability to pass a context and additional request options.
-//
-// See Logout for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *SSO) LogoutWithContext(ctx aws.Context, input *LogoutInput, opts ...request.Option) (*LogoutOutput, error) {
- req, out := c.LogoutRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-// Provides information about your AWS account.
-type AccountInfo struct {
- _ struct{} `type:"structure"`
-
- // The identifier of the AWS account that is assigned to the user.
- AccountId *string `locationName:"accountId" type:"string"`
-
- // The display name of the AWS account that is assigned to the user.
- AccountName *string `locationName:"accountName" type:"string"`
-
- // The email address of the AWS account that is assigned to the user.
- EmailAddress *string `locationName:"emailAddress" min:"1" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AccountInfo) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AccountInfo) GoString() string {
- return s.String()
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *AccountInfo) SetAccountId(v string) *AccountInfo {
- s.AccountId = &v
- return s
-}
-
-// SetAccountName sets the AccountName field's value.
-func (s *AccountInfo) SetAccountName(v string) *AccountInfo {
- s.AccountName = &v
- return s
-}
-
-// SetEmailAddress sets the EmailAddress field's value.
-func (s *AccountInfo) SetEmailAddress(v string) *AccountInfo {
- s.EmailAddress = &v
- return s
-}
-
-type GetRoleCredentialsInput struct {
- _ struct{} `type:"structure" nopayload:"true"`
-
- // The token issued by the CreateToken API call. For more information, see CreateToken
- // (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html)
- // in the IAM Identity Center OIDC API Reference Guide.
- //
- // AccessToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by GetRoleCredentialsInput's
- // String and GoString methods.
- //
- // AccessToken is a required field
- AccessToken *string `location:"header" locationName:"x-amz-sso_bearer_token" type:"string" required:"true" sensitive:"true"`
-
- // The identifier for the AWS account that is assigned to the user.
- //
- // AccountId is a required field
- AccountId *string `location:"querystring" locationName:"account_id" type:"string" required:"true"`
-
- // The friendly name of the role that is assigned to the user.
- //
- // RoleName is a required field
- RoleName *string `location:"querystring" locationName:"role_name" type:"string" required:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetRoleCredentialsInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetRoleCredentialsInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetRoleCredentialsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetRoleCredentialsInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.RoleName == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleName"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccessToken sets the AccessToken field's value.
-func (s *GetRoleCredentialsInput) SetAccessToken(v string) *GetRoleCredentialsInput {
- s.AccessToken = &v
- return s
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *GetRoleCredentialsInput) SetAccountId(v string) *GetRoleCredentialsInput {
- s.AccountId = &v
- return s
-}
-
-// SetRoleName sets the RoleName field's value.
-func (s *GetRoleCredentialsInput) SetRoleName(v string) *GetRoleCredentialsInput {
- s.RoleName = &v
- return s
-}
-
-type GetRoleCredentialsOutput struct {
- _ struct{} `type:"structure"`
-
- // The credentials for the role that is assigned to the user.
- RoleCredentials *RoleCredentials `locationName:"roleCredentials" type:"structure"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetRoleCredentialsOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetRoleCredentialsOutput) GoString() string {
- return s.String()
-}
-
-// SetRoleCredentials sets the RoleCredentials field's value.
-func (s *GetRoleCredentialsOutput) SetRoleCredentials(v *RoleCredentials) *GetRoleCredentialsOutput {
- s.RoleCredentials = v
- return s
-}
-
-// Indicates that a problem occurred with the input to the request. For example,
-// a required parameter might be missing or out of range.
-type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidRequestException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidRequestException) GoString() string {
- return s.String()
-}
-
-func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
- return &InvalidRequestException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *InvalidRequestException) Code() string {
- return "InvalidRequestException"
-}
-
-// Message returns the exception's message.
-func (s *InvalidRequestException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *InvalidRequestException) OrigErr() error {
- return nil
-}
-
-func (s *InvalidRequestException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *InvalidRequestException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *InvalidRequestException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-type ListAccountRolesInput struct {
- _ struct{} `type:"structure" nopayload:"true"`
-
- // The token issued by the CreateToken API call. For more information, see CreateToken
- // (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html)
- // in the IAM Identity Center OIDC API Reference Guide.
- //
- // AccessToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by ListAccountRolesInput's
- // String and GoString methods.
- //
- // AccessToken is a required field
- AccessToken *string `location:"header" locationName:"x-amz-sso_bearer_token" type:"string" required:"true" sensitive:"true"`
-
- // The identifier for the AWS account that is assigned to the user.
- //
- // AccountId is a required field
- AccountId *string `location:"querystring" locationName:"account_id" type:"string" required:"true"`
-
- // The number of items that clients can request per page.
- MaxResults *int64 `location:"querystring" locationName:"max_result" min:"1" type:"integer"`
-
- // The page token from the previous response output when you request subsequent
- // pages.
- NextToken *string `location:"querystring" locationName:"next_token" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ListAccountRolesInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ListAccountRolesInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListAccountRolesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAccountRolesInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccessToken sets the AccessToken field's value.
-func (s *ListAccountRolesInput) SetAccessToken(v string) *ListAccountRolesInput {
- s.AccessToken = &v
- return s
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *ListAccountRolesInput) SetAccountId(v string) *ListAccountRolesInput {
- s.AccountId = &v
- return s
-}
-
-// SetMaxResults sets the MaxResults field's value.
-func (s *ListAccountRolesInput) SetMaxResults(v int64) *ListAccountRolesInput {
- s.MaxResults = &v
- return s
-}
-
-// SetNextToken sets the NextToken field's value.
-func (s *ListAccountRolesInput) SetNextToken(v string) *ListAccountRolesInput {
- s.NextToken = &v
- return s
-}
-
-type ListAccountRolesOutput struct {
- _ struct{} `type:"structure"`
-
- // The page token client that is used to retrieve the list of accounts.
- NextToken *string `locationName:"nextToken" type:"string"`
-
- // A paginated response with the list of roles and the next token if more results
- // are available.
- RoleList []*RoleInfo `locationName:"roleList" type:"list"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ListAccountRolesOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ListAccountRolesOutput) GoString() string {
- return s.String()
-}
-
-// SetNextToken sets the NextToken field's value.
-func (s *ListAccountRolesOutput) SetNextToken(v string) *ListAccountRolesOutput {
- s.NextToken = &v
- return s
-}
-
-// SetRoleList sets the RoleList field's value.
-func (s *ListAccountRolesOutput) SetRoleList(v []*RoleInfo) *ListAccountRolesOutput {
- s.RoleList = v
- return s
-}
-
-type ListAccountsInput struct {
- _ struct{} `type:"structure" nopayload:"true"`
-
- // The token issued by the CreateToken API call. For more information, see CreateToken
- // (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html)
- // in the IAM Identity Center OIDC API Reference Guide.
- //
- // AccessToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by ListAccountsInput's
- // String and GoString methods.
- //
- // AccessToken is a required field
- AccessToken *string `location:"header" locationName:"x-amz-sso_bearer_token" type:"string" required:"true" sensitive:"true"`
-
- // This is the number of items clients can request per page.
- MaxResults *int64 `location:"querystring" locationName:"max_result" min:"1" type:"integer"`
-
- // (Optional) When requesting subsequent pages, this is the page token from
- // the previous response output.
- NextToken *string `location:"querystring" locationName:"next_token" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ListAccountsInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ListAccountsInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListAccountsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAccountsInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccessToken sets the AccessToken field's value.
-func (s *ListAccountsInput) SetAccessToken(v string) *ListAccountsInput {
- s.AccessToken = &v
- return s
-}
-
-// SetMaxResults sets the MaxResults field's value.
-func (s *ListAccountsInput) SetMaxResults(v int64) *ListAccountsInput {
- s.MaxResults = &v
- return s
-}
-
-// SetNextToken sets the NextToken field's value.
-func (s *ListAccountsInput) SetNextToken(v string) *ListAccountsInput {
- s.NextToken = &v
- return s
-}
-
-type ListAccountsOutput struct {
- _ struct{} `type:"structure"`
-
- // A paginated response with the list of account information and the next token
- // if more results are available.
- AccountList []*AccountInfo `locationName:"accountList" type:"list"`
-
- // The page token client that is used to retrieve the list of accounts.
- NextToken *string `locationName:"nextToken" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ListAccountsOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ListAccountsOutput) GoString() string {
- return s.String()
-}
-
-// SetAccountList sets the AccountList field's value.
-func (s *ListAccountsOutput) SetAccountList(v []*AccountInfo) *ListAccountsOutput {
- s.AccountList = v
- return s
-}
-
-// SetNextToken sets the NextToken field's value.
-func (s *ListAccountsOutput) SetNextToken(v string) *ListAccountsOutput {
- s.NextToken = &v
- return s
-}
-
-type LogoutInput struct {
- _ struct{} `type:"structure" nopayload:"true"`
-
- // The token issued by the CreateToken API call. For more information, see CreateToken
- // (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html)
- // in the IAM Identity Center OIDC API Reference Guide.
- //
- // AccessToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by LogoutInput's
- // String and GoString methods.
- //
- // AccessToken is a required field
- AccessToken *string `location:"header" locationName:"x-amz-sso_bearer_token" type:"string" required:"true" sensitive:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s LogoutInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s LogoutInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *LogoutInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LogoutInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccessToken sets the AccessToken field's value.
-func (s *LogoutInput) SetAccessToken(v string) *LogoutInput {
- s.AccessToken = &v
- return s
-}
-
-type LogoutOutput struct {
- _ struct{} `type:"structure"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s LogoutOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s LogoutOutput) GoString() string {
- return s.String()
-}
-
-// The specified resource doesn't exist.
-type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ResourceNotFoundException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ResourceNotFoundException) GoString() string {
- return s.String()
-}
-
-func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
- return &ResourceNotFoundException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *ResourceNotFoundException) Code() string {
- return "ResourceNotFoundException"
-}
-
-// Message returns the exception's message.
-func (s *ResourceNotFoundException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *ResourceNotFoundException) OrigErr() error {
- return nil
-}
-
-func (s *ResourceNotFoundException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *ResourceNotFoundException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *ResourceNotFoundException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Provides information about the role credentials that are assigned to the
-// user.
-type RoleCredentials struct {
- _ struct{} `type:"structure"`
-
- // The identifier used for the temporary security credentials. For more information,
- // see Using Temporary Security Credentials to Request Access to AWS Resources
- // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html)
- // in the AWS IAM User Guide.
- AccessKeyId *string `locationName:"accessKeyId" type:"string"`
-
- // The date on which temporary security credentials expire.
- Expiration *int64 `locationName:"expiration" type:"long"`
-
- // The key that is used to sign the request. For more information, see Using
- // Temporary Security Credentials to Request Access to AWS Resources (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html)
- // in the AWS IAM User Guide.
- //
- // SecretAccessKey is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by RoleCredentials's
- // String and GoString methods.
- SecretAccessKey *string `locationName:"secretAccessKey" type:"string" sensitive:"true"`
-
- // The token used for temporary credentials. For more information, see Using
- // Temporary Security Credentials to Request Access to AWS Resources (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html)
- // in the AWS IAM User Guide.
- //
- // SessionToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by RoleCredentials's
- // String and GoString methods.
- SessionToken *string `locationName:"sessionToken" type:"string" sensitive:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s RoleCredentials) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s RoleCredentials) GoString() string {
- return s.String()
-}
-
-// SetAccessKeyId sets the AccessKeyId field's value.
-func (s *RoleCredentials) SetAccessKeyId(v string) *RoleCredentials {
- s.AccessKeyId = &v
- return s
-}
-
-// SetExpiration sets the Expiration field's value.
-func (s *RoleCredentials) SetExpiration(v int64) *RoleCredentials {
- s.Expiration = &v
- return s
-}
-
-// SetSecretAccessKey sets the SecretAccessKey field's value.
-func (s *RoleCredentials) SetSecretAccessKey(v string) *RoleCredentials {
- s.SecretAccessKey = &v
- return s
-}
-
-// SetSessionToken sets the SessionToken field's value.
-func (s *RoleCredentials) SetSessionToken(v string) *RoleCredentials {
- s.SessionToken = &v
- return s
-}
-
-// Provides information about the role that is assigned to the user.
-type RoleInfo struct {
- _ struct{} `type:"structure"`
-
- // The identifier of the AWS account assigned to the user.
- AccountId *string `locationName:"accountId" type:"string"`
-
- // The friendly name of the role that is assigned to the user.
- RoleName *string `locationName:"roleName" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s RoleInfo) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s RoleInfo) GoString() string {
- return s.String()
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *RoleInfo) SetAccountId(v string) *RoleInfo {
- s.AccountId = &v
- return s
-}
-
-// SetRoleName sets the RoleName field's value.
-func (s *RoleInfo) SetRoleName(v string) *RoleInfo {
- s.RoleName = &v
- return s
-}
-
-// Indicates that the request is being made too frequently and is more than
-// what the server can handle.
-type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s TooManyRequestsException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s TooManyRequestsException) GoString() string {
- return s.String()
-}
-
-func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
- return &TooManyRequestsException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *TooManyRequestsException) Code() string {
- return "TooManyRequestsException"
-}
-
-// Message returns the exception's message.
-func (s *TooManyRequestsException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *TooManyRequestsException) OrigErr() error {
- return nil
-}
-
-func (s *TooManyRequestsException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *TooManyRequestsException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *TooManyRequestsException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Indicates that the request is not authorized. This can happen due to an invalid
-// access token in the request.
-type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s UnauthorizedException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s UnauthorizedException) GoString() string {
- return s.String()
-}
-
-func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
- return &UnauthorizedException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *UnauthorizedException) Code() string {
- return "UnauthorizedException"
-}
-
-// Message returns the exception's message.
-func (s *UnauthorizedException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *UnauthorizedException) OrigErr() error {
- return nil
-}
-
-func (s *UnauthorizedException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *UnauthorizedException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *UnauthorizedException) RequestID() string {
- return s.RespMetadata.RequestID
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sso/doc.go b/vendor/github.com/aws/aws-sdk-go/service/sso/doc.go
deleted file mode 100644
index 15e61a322..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sso/doc.go
+++ /dev/null
@@ -1,45 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-// Package sso provides the client and types for making API
-// requests to AWS Single Sign-On.
-//
-// AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web
-// service that makes it easy for you to assign user access to IAM Identity
-// Center resources such as the AWS access portal. Users can get AWS account
-// applications and roles assigned to them and get federated into the application.
-//
-// Although AWS Single Sign-On was renamed, the sso and identitystore API namespaces
-// will continue to retain their original name for backward compatibility purposes.
-// For more information, see IAM Identity Center rename (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed).
-//
-// This reference guide describes the IAM Identity Center Portal operations
-// that you can call programatically and includes detailed information on data
-// types and errors.
-//
-// AWS provides SDKs that consist of libraries and sample code for various programming
-// languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs
-// provide a convenient way to create programmatic access to IAM Identity Center
-// and other AWS services. For more information about the AWS SDKs, including
-// how to download and install them, see Tools for Amazon Web Services (http://aws.amazon.com/tools/).
-//
-// See https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10 for more information on this service.
-//
-// See sso package documentation for more information.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/sso/
-//
-// # Using the Client
-//
-// To contact AWS Single Sign-On 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.
-//
-// See the SDK's documentation for more information on how to use the SDK.
-// https://docs.aws.amazon.com/sdk-for-go/api/
-//
-// See aws.Config documentation for more information on configuring SDK clients.
-// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
-//
-// See the AWS Single Sign-On client SSO for more
-// information on creating client for this service.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/sso/#New
-package sso
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sso/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sso/errors.go
deleted file mode 100644
index 77a6792e3..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sso/errors.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package sso
-
-import (
- "github.com/aws/aws-sdk-go/private/protocol"
-)
-
-const (
-
- // ErrCodeInvalidRequestException for service response error code
- // "InvalidRequestException".
- //
- // Indicates that a problem occurred with the input to the request. For example,
- // a required parameter might be missing or out of range.
- ErrCodeInvalidRequestException = "InvalidRequestException"
-
- // ErrCodeResourceNotFoundException for service response error code
- // "ResourceNotFoundException".
- //
- // The specified resource doesn't exist.
- ErrCodeResourceNotFoundException = "ResourceNotFoundException"
-
- // ErrCodeTooManyRequestsException for service response error code
- // "TooManyRequestsException".
- //
- // Indicates that the request is being made too frequently and is more than
- // what the server can handle.
- ErrCodeTooManyRequestsException = "TooManyRequestsException"
-
- // ErrCodeUnauthorizedException for service response error code
- // "UnauthorizedException".
- //
- // Indicates that the request is not authorized. This can happen due to an invalid
- // access token in the request.
- ErrCodeUnauthorizedException = "UnauthorizedException"
-)
-
-var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
- "InvalidRequestException": newErrorInvalidRequestException,
- "ResourceNotFoundException": newErrorResourceNotFoundException,
- "TooManyRequestsException": newErrorTooManyRequestsException,
- "UnauthorizedException": newErrorUnauthorizedException,
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sso/service.go b/vendor/github.com/aws/aws-sdk-go/service/sso/service.go
deleted file mode 100644
index 7094cfe41..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sso/service.go
+++ /dev/null
@@ -1,106 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package sso
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/client/metadata"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/aws/signer/v4"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/restjson"
-)
-
-// SSO provides the API operation methods for making requests to
-// AWS Single Sign-On. See this package's package overview docs
-// for details on the service.
-//
-// SSO methods are safe to use concurrently. It is not safe to
-// modify mutate any of the struct's properties though.
-type SSO struct {
- *client.Client
-}
-
-// Used for custom client initialization logic
-var initClient func(*client.Client)
-
-// Used for custom request initialization logic
-var initRequest func(*request.Request)
-
-// Service information constants
-const (
- ServiceName = "SSO" // Name of service.
- EndpointsID = "portal.sso" // ID to lookup a service endpoint with.
- ServiceID = "SSO" // ServiceID is a unique identifier of a specific service.
-)
-
-// New creates a new instance of the SSO client with a session.
-// If additional configuration is needed for the client instance use the optional
-// aws.Config parameter to add your extra config.
-//
-// Example:
-//
-// mySession := session.Must(session.NewSession())
-//
-// // Create a SSO client from just a session.
-// svc := sso.New(mySession)
-//
-// // Create a SSO client with additional configuration
-// svc := sso.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
-func New(p client.ConfigProvider, cfgs ...*aws.Config) *SSO {
- c := p.ClientConfig(EndpointsID, cfgs...)
- if c.SigningNameDerived || len(c.SigningName) == 0 {
- c.SigningName = "awsssoportal"
- }
- return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion)
-}
-
-// newClient creates, initializes and returns a new service client instance.
-func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *SSO {
- svc := &SSO{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: ServiceName,
- ServiceID: ServiceID,
- SigningName: signingName,
- SigningRegion: signingRegion,
- PartitionID: partitionID,
- Endpoint: endpoint,
- APIVersion: "2019-06-10",
- ResolvedRegion: resolvedRegion,
- },
- handlers,
- ),
- }
-
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(
- protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
- )
-
- // Run custom client initialization if present
- if initClient != nil {
- initClient(svc.Client)
- }
-
- return svc
-}
-
-// newRequest creates a new request for a SSO operation and runs any
-// custom request initialization.
-func (c *SSO) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
-
- // Run custom request initialization if present
- if initRequest != nil {
- initRequest(req)
- }
-
- return req
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sso/ssoiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sso/ssoiface/interface.go
deleted file mode 100644
index 818cab7cd..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sso/ssoiface/interface.go
+++ /dev/null
@@ -1,86 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-// Package ssoiface provides an interface to enable mocking the AWS Single Sign-On service client
-// for testing your code.
-//
-// It is important to note that this interface will have breaking changes
-// when the service model is updated and adds new API operations, paginators,
-// and waiters.
-package ssoiface
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/service/sso"
-)
-
-// SSOAPI provides an interface to enable mocking the
-// sso.SSO service client's API operation,
-// paginators, and waiters. This make unit testing your code that calls out
-// to the SDK's service client's calls easier.
-//
-// The best way to use this interface is so the SDK's service client's calls
-// can be stubbed out for unit testing your code with the SDK without needing
-// to inject custom request handlers into the SDK's request pipeline.
-//
-// // myFunc uses an SDK service client to make a request to
-// // AWS Single Sign-On.
-// func myFunc(svc ssoiface.SSOAPI) bool {
-// // Make svc.GetRoleCredentials request
-// }
-//
-// func main() {
-// sess := session.New()
-// svc := sso.New(sess)
-//
-// myFunc(svc)
-// }
-//
-// In your _test.go file:
-//
-// // Define a mock struct to be used in your unit tests of myFunc.
-// type mockSSOClient struct {
-// ssoiface.SSOAPI
-// }
-// func (m *mockSSOClient) GetRoleCredentials(input *sso.GetRoleCredentialsInput) (*sso.GetRoleCredentialsOutput, error) {
-// // mock response/functionality
-// }
-//
-// func TestMyFunc(t *testing.T) {
-// // Setup Test
-// mockSvc := &mockSSOClient{}
-//
-// myfunc(mockSvc)
-//
-// // Verify myFunc's functionality
-// }
-//
-// It is important to note that this interface will have breaking changes
-// when the service model is updated and adds new API operations, paginators,
-// and waiters. Its suggested to use the pattern above for testing, or using
-// tooling to generate mocks to satisfy the interfaces.
-type SSOAPI interface {
- GetRoleCredentials(*sso.GetRoleCredentialsInput) (*sso.GetRoleCredentialsOutput, error)
- GetRoleCredentialsWithContext(aws.Context, *sso.GetRoleCredentialsInput, ...request.Option) (*sso.GetRoleCredentialsOutput, error)
- GetRoleCredentialsRequest(*sso.GetRoleCredentialsInput) (*request.Request, *sso.GetRoleCredentialsOutput)
-
- ListAccountRoles(*sso.ListAccountRolesInput) (*sso.ListAccountRolesOutput, error)
- ListAccountRolesWithContext(aws.Context, *sso.ListAccountRolesInput, ...request.Option) (*sso.ListAccountRolesOutput, error)
- ListAccountRolesRequest(*sso.ListAccountRolesInput) (*request.Request, *sso.ListAccountRolesOutput)
-
- ListAccountRolesPages(*sso.ListAccountRolesInput, func(*sso.ListAccountRolesOutput, bool) bool) error
- ListAccountRolesPagesWithContext(aws.Context, *sso.ListAccountRolesInput, func(*sso.ListAccountRolesOutput, bool) bool, ...request.Option) error
-
- ListAccounts(*sso.ListAccountsInput) (*sso.ListAccountsOutput, error)
- ListAccountsWithContext(aws.Context, *sso.ListAccountsInput, ...request.Option) (*sso.ListAccountsOutput, error)
- ListAccountsRequest(*sso.ListAccountsInput) (*request.Request, *sso.ListAccountsOutput)
-
- ListAccountsPages(*sso.ListAccountsInput, func(*sso.ListAccountsOutput, bool) bool) error
- ListAccountsPagesWithContext(aws.Context, *sso.ListAccountsInput, func(*sso.ListAccountsOutput, bool) bool, ...request.Option) error
-
- Logout(*sso.LogoutInput) (*sso.LogoutOutput, error)
- LogoutWithContext(aws.Context, *sso.LogoutInput, ...request.Option) (*sso.LogoutOutput, error)
- LogoutRequest(*sso.LogoutInput) (*request.Request, *sso.LogoutOutput)
-}
-
-var _ SSOAPI = (*sso.SSO)(nil)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssooidc/api.go b/vendor/github.com/aws/aws-sdk-go/service/ssooidc/api.go
deleted file mode 100644
index c743913c5..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/ssooidc/api.go
+++ /dev/null
@@ -1,1682 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package ssooidc
-
-import (
- "fmt"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/credentials"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
-)
-
-const opCreateToken = "CreateToken"
-
-// CreateTokenRequest generates a "aws/request.Request" representing the
-// client's request for the CreateToken operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See CreateToken for more information on using the CreateToken
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the CreateTokenRequest method.
-// req, resp := client.CreateTokenRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateToken
-func (c *SSOOIDC) CreateTokenRequest(input *CreateTokenInput) (req *request.Request, output *CreateTokenOutput) {
- op := &request.Operation{
- Name: opCreateToken,
- HTTPMethod: "POST",
- HTTPPath: "/token",
- }
-
- if input == nil {
- input = &CreateTokenInput{}
- }
-
- output = &CreateTokenOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
-}
-
-// CreateToken API operation for AWS SSO OIDC.
-//
-// Creates and returns an access token for the authorized client. The access
-// token issued will be used to fetch short-term credentials for the assigned
-// roles in the AWS account.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS SSO OIDC's
-// API operation CreateToken for usage and error information.
-//
-// Returned Error Types:
-//
-// - InvalidRequestException
-// Indicates that something is wrong with the input to the request. For example,
-// a required parameter might be missing or out of range.
-//
-// - InvalidClientException
-// Indicates that the clientId or clientSecret in the request is invalid. For
-// example, this can occur when a client sends an incorrect clientId or an expired
-// clientSecret.
-//
-// - InvalidGrantException
-// Indicates that a request contains an invalid grant. This can occur if a client
-// makes a CreateToken request with an invalid grant type.
-//
-// - UnauthorizedClientException
-// Indicates that the client is not currently authorized to make the request.
-// This can happen when a clientId is not issued for a public client.
-//
-// - UnsupportedGrantTypeException
-// Indicates that the grant type in the request is not supported by the service.
-//
-// - InvalidScopeException
-// Indicates that the scope provided in the request is invalid.
-//
-// - AuthorizationPendingException
-// Indicates that a request to authorize a client with an access user session
-// token is pending.
-//
-// - SlowDownException
-// Indicates that the client is making the request too frequently and is more
-// than the service can handle.
-//
-// - AccessDeniedException
-// You do not have sufficient access to perform this action.
-//
-// - ExpiredTokenException
-// Indicates that the token issued by the service is expired and is no longer
-// valid.
-//
-// - InternalServerException
-// Indicates that an error from the service occurred while trying to process
-// a request.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateToken
-func (c *SSOOIDC) CreateToken(input *CreateTokenInput) (*CreateTokenOutput, error) {
- req, out := c.CreateTokenRequest(input)
- return out, req.Send()
-}
-
-// CreateTokenWithContext is the same as CreateToken with the addition of
-// the ability to pass a context and additional request options.
-//
-// See CreateToken for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *SSOOIDC) CreateTokenWithContext(ctx aws.Context, input *CreateTokenInput, opts ...request.Option) (*CreateTokenOutput, error) {
- req, out := c.CreateTokenRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opRegisterClient = "RegisterClient"
-
-// RegisterClientRequest generates a "aws/request.Request" representing the
-// client's request for the RegisterClient operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See RegisterClient for more information on using the RegisterClient
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the RegisterClientRequest method.
-// req, resp := client.RegisterClientRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/RegisterClient
-func (c *SSOOIDC) RegisterClientRequest(input *RegisterClientInput) (req *request.Request, output *RegisterClientOutput) {
- op := &request.Operation{
- Name: opRegisterClient,
- HTTPMethod: "POST",
- HTTPPath: "/client/register",
- }
-
- if input == nil {
- input = &RegisterClientInput{}
- }
-
- output = &RegisterClientOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
-}
-
-// RegisterClient API operation for AWS SSO OIDC.
-//
-// Registers a client with IAM Identity Center. This allows clients to initiate
-// device authorization. The output should be persisted for reuse through many
-// authentication requests.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS SSO OIDC's
-// API operation RegisterClient for usage and error information.
-//
-// Returned Error Types:
-//
-// - InvalidRequestException
-// Indicates that something is wrong with the input to the request. For example,
-// a required parameter might be missing or out of range.
-//
-// - InvalidScopeException
-// Indicates that the scope provided in the request is invalid.
-//
-// - InvalidClientMetadataException
-// Indicates that the client information sent in the request during registration
-// is invalid.
-//
-// - InternalServerException
-// Indicates that an error from the service occurred while trying to process
-// a request.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/RegisterClient
-func (c *SSOOIDC) RegisterClient(input *RegisterClientInput) (*RegisterClientOutput, error) {
- req, out := c.RegisterClientRequest(input)
- return out, req.Send()
-}
-
-// RegisterClientWithContext is the same as RegisterClient with the addition of
-// the ability to pass a context and additional request options.
-//
-// See RegisterClient for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *SSOOIDC) RegisterClientWithContext(ctx aws.Context, input *RegisterClientInput, opts ...request.Option) (*RegisterClientOutput, error) {
- req, out := c.RegisterClientRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opStartDeviceAuthorization = "StartDeviceAuthorization"
-
-// StartDeviceAuthorizationRequest generates a "aws/request.Request" representing the
-// client's request for the StartDeviceAuthorization operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See StartDeviceAuthorization for more information on using the StartDeviceAuthorization
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the StartDeviceAuthorizationRequest method.
-// req, resp := client.StartDeviceAuthorizationRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/StartDeviceAuthorization
-func (c *SSOOIDC) StartDeviceAuthorizationRequest(input *StartDeviceAuthorizationInput) (req *request.Request, output *StartDeviceAuthorizationOutput) {
- op := &request.Operation{
- Name: opStartDeviceAuthorization,
- HTTPMethod: "POST",
- HTTPPath: "/device_authorization",
- }
-
- if input == nil {
- input = &StartDeviceAuthorizationInput{}
- }
-
- output = &StartDeviceAuthorizationOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
-}
-
-// StartDeviceAuthorization API operation for AWS SSO OIDC.
-//
-// Initiates device authorization by requesting a pair of verification codes
-// from the authorization service.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS SSO OIDC's
-// API operation StartDeviceAuthorization for usage and error information.
-//
-// Returned Error Types:
-//
-// - InvalidRequestException
-// Indicates that something is wrong with the input to the request. For example,
-// a required parameter might be missing or out of range.
-//
-// - InvalidClientException
-// Indicates that the clientId or clientSecret in the request is invalid. For
-// example, this can occur when a client sends an incorrect clientId or an expired
-// clientSecret.
-//
-// - UnauthorizedClientException
-// Indicates that the client is not currently authorized to make the request.
-// This can happen when a clientId is not issued for a public client.
-//
-// - SlowDownException
-// Indicates that the client is making the request too frequently and is more
-// than the service can handle.
-//
-// - InternalServerException
-// Indicates that an error from the service occurred while trying to process
-// a request.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/StartDeviceAuthorization
-func (c *SSOOIDC) StartDeviceAuthorization(input *StartDeviceAuthorizationInput) (*StartDeviceAuthorizationOutput, error) {
- req, out := c.StartDeviceAuthorizationRequest(input)
- return out, req.Send()
-}
-
-// StartDeviceAuthorizationWithContext is the same as StartDeviceAuthorization with the addition of
-// the ability to pass a context and additional request options.
-//
-// See StartDeviceAuthorization for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *SSOOIDC) StartDeviceAuthorizationWithContext(ctx aws.Context, input *StartDeviceAuthorizationInput, opts ...request.Option) (*StartDeviceAuthorizationOutput, error) {
- req, out := c.StartDeviceAuthorizationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-// You do not have sufficient access to perform this action.
-type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AccessDeniedException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AccessDeniedException) GoString() string {
- return s.String()
-}
-
-func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
- return &AccessDeniedException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *AccessDeniedException) Code() string {
- return "AccessDeniedException"
-}
-
-// Message returns the exception's message.
-func (s *AccessDeniedException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *AccessDeniedException) OrigErr() error {
- return nil
-}
-
-func (s *AccessDeniedException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *AccessDeniedException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *AccessDeniedException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Indicates that a request to authorize a client with an access user session
-// token is pending.
-type AuthorizationPendingException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AuthorizationPendingException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AuthorizationPendingException) GoString() string {
- return s.String()
-}
-
-func newErrorAuthorizationPendingException(v protocol.ResponseMetadata) error {
- return &AuthorizationPendingException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *AuthorizationPendingException) Code() string {
- return "AuthorizationPendingException"
-}
-
-// Message returns the exception's message.
-func (s *AuthorizationPendingException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *AuthorizationPendingException) OrigErr() error {
- return nil
-}
-
-func (s *AuthorizationPendingException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *AuthorizationPendingException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *AuthorizationPendingException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-type CreateTokenInput struct {
- _ struct{} `type:"structure"`
-
- // The unique identifier string for each client. This value should come from
- // the persisted result of the RegisterClient API.
- //
- // ClientId is a required field
- ClientId *string `locationName:"clientId" type:"string" required:"true"`
-
- // A secret string generated for the client. This value should come from the
- // persisted result of the RegisterClient API.
- //
- // ClientSecret is a required field
- ClientSecret *string `locationName:"clientSecret" type:"string" required:"true"`
-
- // The authorization code received from the authorization service. This parameter
- // is required to perform an authorization grant request to get access to a
- // token.
- Code *string `locationName:"code" type:"string"`
-
- // Used only when calling this API for the device code grant type. This short-term
- // code is used to identify this authentication attempt. This should come from
- // an in-memory reference to the result of the StartDeviceAuthorization API.
- DeviceCode *string `locationName:"deviceCode" type:"string"`
-
- // Supports grant types for the authorization code, refresh token, and device
- // code request. For device code requests, specify the following value:
- //
- // urn:ietf:params:oauth:grant-type:device_code
- //
- // For information about how to obtain the device code, see the StartDeviceAuthorization
- // topic.
- //
- // GrantType is a required field
- GrantType *string `locationName:"grantType" type:"string" required:"true"`
-
- // The location of the application that will receive the authorization code.
- // Users authorize the service to send the request to this location.
- RedirectUri *string `locationName:"redirectUri" type:"string"`
-
- // Currently, refreshToken is not yet implemented and is not supported. For
- // more information about the features and limitations of the current IAM Identity
- // Center OIDC implementation, see Considerations for Using this Guide in the
- // IAM Identity Center OIDC API Reference (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html).
- //
- // The token used to obtain an access token in the event that the access token
- // is invalid or expired.
- RefreshToken *string `locationName:"refreshToken" type:"string"`
-
- // The list of scopes that is defined by the client. Upon authorization, this
- // list is used to restrict permissions when granting an access token.
- Scope []*string `locationName:"scope" type:"list"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s CreateTokenInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s CreateTokenInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateTokenInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTokenInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientSecret == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientSecret"))
- }
- if s.GrantType == nil {
- invalidParams.Add(request.NewErrParamRequired("GrantType"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetClientId sets the ClientId field's value.
-func (s *CreateTokenInput) SetClientId(v string) *CreateTokenInput {
- s.ClientId = &v
- return s
-}
-
-// SetClientSecret sets the ClientSecret field's value.
-func (s *CreateTokenInput) SetClientSecret(v string) *CreateTokenInput {
- s.ClientSecret = &v
- return s
-}
-
-// SetCode sets the Code field's value.
-func (s *CreateTokenInput) SetCode(v string) *CreateTokenInput {
- s.Code = &v
- return s
-}
-
-// SetDeviceCode sets the DeviceCode field's value.
-func (s *CreateTokenInput) SetDeviceCode(v string) *CreateTokenInput {
- s.DeviceCode = &v
- return s
-}
-
-// SetGrantType sets the GrantType field's value.
-func (s *CreateTokenInput) SetGrantType(v string) *CreateTokenInput {
- s.GrantType = &v
- return s
-}
-
-// SetRedirectUri sets the RedirectUri field's value.
-func (s *CreateTokenInput) SetRedirectUri(v string) *CreateTokenInput {
- s.RedirectUri = &v
- return s
-}
-
-// SetRefreshToken sets the RefreshToken field's value.
-func (s *CreateTokenInput) SetRefreshToken(v string) *CreateTokenInput {
- s.RefreshToken = &v
- return s
-}
-
-// SetScope sets the Scope field's value.
-func (s *CreateTokenInput) SetScope(v []*string) *CreateTokenInput {
- s.Scope = v
- return s
-}
-
-type CreateTokenOutput struct {
- _ struct{} `type:"structure"`
-
- // An opaque token to access IAM Identity Center resources assigned to a user.
- AccessToken *string `locationName:"accessToken" type:"string"`
-
- // Indicates the time in seconds when an access token will expire.
- ExpiresIn *int64 `locationName:"expiresIn" type:"integer"`
-
- // Currently, idToken is not yet implemented and is not supported. For more
- // information about the features and limitations of the current IAM Identity
- // Center OIDC implementation, see Considerations for Using this Guide in the
- // IAM Identity Center OIDC API Reference (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html).
- //
- // The identifier of the user that associated with the access token, if present.
- IdToken *string `locationName:"idToken" type:"string"`
-
- // Currently, refreshToken is not yet implemented and is not supported. For
- // more information about the features and limitations of the current IAM Identity
- // Center OIDC implementation, see Considerations for Using this Guide in the
- // IAM Identity Center OIDC API Reference (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html).
- //
- // A token that, if present, can be used to refresh a previously issued access
- // token that might have expired.
- RefreshToken *string `locationName:"refreshToken" type:"string"`
-
- // Used to notify the client that the returned token is an access token. The
- // supported type is BearerToken.
- TokenType *string `locationName:"tokenType" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s CreateTokenOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s CreateTokenOutput) GoString() string {
- return s.String()
-}
-
-// SetAccessToken sets the AccessToken field's value.
-func (s *CreateTokenOutput) SetAccessToken(v string) *CreateTokenOutput {
- s.AccessToken = &v
- return s
-}
-
-// SetExpiresIn sets the ExpiresIn field's value.
-func (s *CreateTokenOutput) SetExpiresIn(v int64) *CreateTokenOutput {
- s.ExpiresIn = &v
- return s
-}
-
-// SetIdToken sets the IdToken field's value.
-func (s *CreateTokenOutput) SetIdToken(v string) *CreateTokenOutput {
- s.IdToken = &v
- return s
-}
-
-// SetRefreshToken sets the RefreshToken field's value.
-func (s *CreateTokenOutput) SetRefreshToken(v string) *CreateTokenOutput {
- s.RefreshToken = &v
- return s
-}
-
-// SetTokenType sets the TokenType field's value.
-func (s *CreateTokenOutput) SetTokenType(v string) *CreateTokenOutput {
- s.TokenType = &v
- return s
-}
-
-// Indicates that the token issued by the service is expired and is no longer
-// valid.
-type ExpiredTokenException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ExpiredTokenException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ExpiredTokenException) GoString() string {
- return s.String()
-}
-
-func newErrorExpiredTokenException(v protocol.ResponseMetadata) error {
- return &ExpiredTokenException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *ExpiredTokenException) Code() string {
- return "ExpiredTokenException"
-}
-
-// Message returns the exception's message.
-func (s *ExpiredTokenException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *ExpiredTokenException) OrigErr() error {
- return nil
-}
-
-func (s *ExpiredTokenException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *ExpiredTokenException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *ExpiredTokenException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Indicates that an error from the service occurred while trying to process
-// a request.
-type InternalServerException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InternalServerException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InternalServerException) GoString() string {
- return s.String()
-}
-
-func newErrorInternalServerException(v protocol.ResponseMetadata) error {
- return &InternalServerException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *InternalServerException) Code() string {
- return "InternalServerException"
-}
-
-// Message returns the exception's message.
-func (s *InternalServerException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *InternalServerException) OrigErr() error {
- return nil
-}
-
-func (s *InternalServerException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *InternalServerException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *InternalServerException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Indicates that the clientId or clientSecret in the request is invalid. For
-// example, this can occur when a client sends an incorrect clientId or an expired
-// clientSecret.
-type InvalidClientException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidClientException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidClientException) GoString() string {
- return s.String()
-}
-
-func newErrorInvalidClientException(v protocol.ResponseMetadata) error {
- return &InvalidClientException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *InvalidClientException) Code() string {
- return "InvalidClientException"
-}
-
-// Message returns the exception's message.
-func (s *InvalidClientException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *InvalidClientException) OrigErr() error {
- return nil
-}
-
-func (s *InvalidClientException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *InvalidClientException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *InvalidClientException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Indicates that the client information sent in the request during registration
-// is invalid.
-type InvalidClientMetadataException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidClientMetadataException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidClientMetadataException) GoString() string {
- return s.String()
-}
-
-func newErrorInvalidClientMetadataException(v protocol.ResponseMetadata) error {
- return &InvalidClientMetadataException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *InvalidClientMetadataException) Code() string {
- return "InvalidClientMetadataException"
-}
-
-// Message returns the exception's message.
-func (s *InvalidClientMetadataException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *InvalidClientMetadataException) OrigErr() error {
- return nil
-}
-
-func (s *InvalidClientMetadataException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *InvalidClientMetadataException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *InvalidClientMetadataException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Indicates that a request contains an invalid grant. This can occur if a client
-// makes a CreateToken request with an invalid grant type.
-type InvalidGrantException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidGrantException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidGrantException) GoString() string {
- return s.String()
-}
-
-func newErrorInvalidGrantException(v protocol.ResponseMetadata) error {
- return &InvalidGrantException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *InvalidGrantException) Code() string {
- return "InvalidGrantException"
-}
-
-// Message returns the exception's message.
-func (s *InvalidGrantException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *InvalidGrantException) OrigErr() error {
- return nil
-}
-
-func (s *InvalidGrantException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *InvalidGrantException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *InvalidGrantException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Indicates that something is wrong with the input to the request. For example,
-// a required parameter might be missing or out of range.
-type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidRequestException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidRequestException) GoString() string {
- return s.String()
-}
-
-func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
- return &InvalidRequestException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *InvalidRequestException) Code() string {
- return "InvalidRequestException"
-}
-
-// Message returns the exception's message.
-func (s *InvalidRequestException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *InvalidRequestException) OrigErr() error {
- return nil
-}
-
-func (s *InvalidRequestException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *InvalidRequestException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *InvalidRequestException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Indicates that the scope provided in the request is invalid.
-type InvalidScopeException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidScopeException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s InvalidScopeException) GoString() string {
- return s.String()
-}
-
-func newErrorInvalidScopeException(v protocol.ResponseMetadata) error {
- return &InvalidScopeException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *InvalidScopeException) Code() string {
- return "InvalidScopeException"
-}
-
-// Message returns the exception's message.
-func (s *InvalidScopeException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *InvalidScopeException) OrigErr() error {
- return nil
-}
-
-func (s *InvalidScopeException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *InvalidScopeException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *InvalidScopeException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-type RegisterClientInput struct {
- _ struct{} `type:"structure"`
-
- // The friendly name of the client.
- //
- // ClientName is a required field
- ClientName *string `locationName:"clientName" type:"string" required:"true"`
-
- // The type of client. The service supports only public as a client type. Anything
- // other than public will be rejected by the service.
- //
- // ClientType is a required field
- ClientType *string `locationName:"clientType" type:"string" required:"true"`
-
- // The list of scopes that are defined by the client. Upon authorization, this
- // list is used to restrict permissions when granting an access token.
- Scopes []*string `locationName:"scopes" type:"list"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s RegisterClientInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s RegisterClientInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *RegisterClientInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegisterClientInput"}
- if s.ClientName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientName"))
- }
- if s.ClientType == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientType"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetClientName sets the ClientName field's value.
-func (s *RegisterClientInput) SetClientName(v string) *RegisterClientInput {
- s.ClientName = &v
- return s
-}
-
-// SetClientType sets the ClientType field's value.
-func (s *RegisterClientInput) SetClientType(v string) *RegisterClientInput {
- s.ClientType = &v
- return s
-}
-
-// SetScopes sets the Scopes field's value.
-func (s *RegisterClientInput) SetScopes(v []*string) *RegisterClientInput {
- s.Scopes = v
- return s
-}
-
-type RegisterClientOutput struct {
- _ struct{} `type:"structure"`
-
- // The endpoint where the client can request authorization.
- AuthorizationEndpoint *string `locationName:"authorizationEndpoint" type:"string"`
-
- // The unique identifier string for each client. This client uses this identifier
- // to get authenticated by the service in subsequent calls.
- ClientId *string `locationName:"clientId" type:"string"`
-
- // Indicates the time at which the clientId and clientSecret were issued.
- ClientIdIssuedAt *int64 `locationName:"clientIdIssuedAt" type:"long"`
-
- // A secret string generated for the client. The client will use this string
- // to get authenticated by the service in subsequent calls.
- ClientSecret *string `locationName:"clientSecret" type:"string"`
-
- // Indicates the time at which the clientId and clientSecret will become invalid.
- ClientSecretExpiresAt *int64 `locationName:"clientSecretExpiresAt" type:"long"`
-
- // The endpoint where the client can get an access token.
- TokenEndpoint *string `locationName:"tokenEndpoint" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s RegisterClientOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s RegisterClientOutput) GoString() string {
- return s.String()
-}
-
-// SetAuthorizationEndpoint sets the AuthorizationEndpoint field's value.
-func (s *RegisterClientOutput) SetAuthorizationEndpoint(v string) *RegisterClientOutput {
- s.AuthorizationEndpoint = &v
- return s
-}
-
-// SetClientId sets the ClientId field's value.
-func (s *RegisterClientOutput) SetClientId(v string) *RegisterClientOutput {
- s.ClientId = &v
- return s
-}
-
-// SetClientIdIssuedAt sets the ClientIdIssuedAt field's value.
-func (s *RegisterClientOutput) SetClientIdIssuedAt(v int64) *RegisterClientOutput {
- s.ClientIdIssuedAt = &v
- return s
-}
-
-// SetClientSecret sets the ClientSecret field's value.
-func (s *RegisterClientOutput) SetClientSecret(v string) *RegisterClientOutput {
- s.ClientSecret = &v
- return s
-}
-
-// SetClientSecretExpiresAt sets the ClientSecretExpiresAt field's value.
-func (s *RegisterClientOutput) SetClientSecretExpiresAt(v int64) *RegisterClientOutput {
- s.ClientSecretExpiresAt = &v
- return s
-}
-
-// SetTokenEndpoint sets the TokenEndpoint field's value.
-func (s *RegisterClientOutput) SetTokenEndpoint(v string) *RegisterClientOutput {
- s.TokenEndpoint = &v
- return s
-}
-
-// Indicates that the client is making the request too frequently and is more
-// than the service can handle.
-type SlowDownException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s SlowDownException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s SlowDownException) GoString() string {
- return s.String()
-}
-
-func newErrorSlowDownException(v protocol.ResponseMetadata) error {
- return &SlowDownException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *SlowDownException) Code() string {
- return "SlowDownException"
-}
-
-// Message returns the exception's message.
-func (s *SlowDownException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *SlowDownException) OrigErr() error {
- return nil
-}
-
-func (s *SlowDownException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *SlowDownException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *SlowDownException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-type StartDeviceAuthorizationInput struct {
- _ struct{} `type:"structure"`
-
- // The unique identifier string for the client that is registered with IAM Identity
- // Center. This value should come from the persisted result of the RegisterClient
- // API operation.
- //
- // ClientId is a required field
- ClientId *string `locationName:"clientId" type:"string" required:"true"`
-
- // A secret string that is generated for the client. This value should come
- // from the persisted result of the RegisterClient API operation.
- //
- // ClientSecret is a required field
- ClientSecret *string `locationName:"clientSecret" type:"string" required:"true"`
-
- // The URL for the AWS access portal. For more information, see Using the AWS
- // access portal (https://docs.aws.amazon.com/singlesignon/latest/userguide/using-the-portal.html)
- // in the IAM Identity Center User Guide.
- //
- // StartUrl is a required field
- StartUrl *string `locationName:"startUrl" type:"string" required:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s StartDeviceAuthorizationInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s StartDeviceAuthorizationInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *StartDeviceAuthorizationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartDeviceAuthorizationInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientSecret == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientSecret"))
- }
- if s.StartUrl == nil {
- invalidParams.Add(request.NewErrParamRequired("StartUrl"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetClientId sets the ClientId field's value.
-func (s *StartDeviceAuthorizationInput) SetClientId(v string) *StartDeviceAuthorizationInput {
- s.ClientId = &v
- return s
-}
-
-// SetClientSecret sets the ClientSecret field's value.
-func (s *StartDeviceAuthorizationInput) SetClientSecret(v string) *StartDeviceAuthorizationInput {
- s.ClientSecret = &v
- return s
-}
-
-// SetStartUrl sets the StartUrl field's value.
-func (s *StartDeviceAuthorizationInput) SetStartUrl(v string) *StartDeviceAuthorizationInput {
- s.StartUrl = &v
- return s
-}
-
-type StartDeviceAuthorizationOutput struct {
- _ struct{} `type:"structure"`
-
- // The short-lived code that is used by the device when polling for a session
- // token.
- DeviceCode *string `locationName:"deviceCode" type:"string"`
-
- // Indicates the number of seconds in which the verification code will become
- // invalid.
- ExpiresIn *int64 `locationName:"expiresIn" type:"integer"`
-
- // Indicates the number of seconds the client must wait between attempts when
- // polling for a session.
- Interval *int64 `locationName:"interval" type:"integer"`
-
- // A one-time user verification code. This is needed to authorize an in-use
- // device.
- UserCode *string `locationName:"userCode" type:"string"`
-
- // The URI of the verification page that takes the userCode to authorize the
- // device.
- VerificationUri *string `locationName:"verificationUri" type:"string"`
-
- // An alternate URL that the client can use to automatically launch a browser.
- // This process skips the manual step in which the user visits the verification
- // page and enters their code.
- VerificationUriComplete *string `locationName:"verificationUriComplete" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s StartDeviceAuthorizationOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s StartDeviceAuthorizationOutput) GoString() string {
- return s.String()
-}
-
-// SetDeviceCode sets the DeviceCode field's value.
-func (s *StartDeviceAuthorizationOutput) SetDeviceCode(v string) *StartDeviceAuthorizationOutput {
- s.DeviceCode = &v
- return s
-}
-
-// SetExpiresIn sets the ExpiresIn field's value.
-func (s *StartDeviceAuthorizationOutput) SetExpiresIn(v int64) *StartDeviceAuthorizationOutput {
- s.ExpiresIn = &v
- return s
-}
-
-// SetInterval sets the Interval field's value.
-func (s *StartDeviceAuthorizationOutput) SetInterval(v int64) *StartDeviceAuthorizationOutput {
- s.Interval = &v
- return s
-}
-
-// SetUserCode sets the UserCode field's value.
-func (s *StartDeviceAuthorizationOutput) SetUserCode(v string) *StartDeviceAuthorizationOutput {
- s.UserCode = &v
- return s
-}
-
-// SetVerificationUri sets the VerificationUri field's value.
-func (s *StartDeviceAuthorizationOutput) SetVerificationUri(v string) *StartDeviceAuthorizationOutput {
- s.VerificationUri = &v
- return s
-}
-
-// SetVerificationUriComplete sets the VerificationUriComplete field's value.
-func (s *StartDeviceAuthorizationOutput) SetVerificationUriComplete(v string) *StartDeviceAuthorizationOutput {
- s.VerificationUriComplete = &v
- return s
-}
-
-// Indicates that the client is not currently authorized to make the request.
-// This can happen when a clientId is not issued for a public client.
-type UnauthorizedClientException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s UnauthorizedClientException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s UnauthorizedClientException) GoString() string {
- return s.String()
-}
-
-func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error {
- return &UnauthorizedClientException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *UnauthorizedClientException) Code() string {
- return "UnauthorizedClientException"
-}
-
-// Message returns the exception's message.
-func (s *UnauthorizedClientException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *UnauthorizedClientException) OrigErr() error {
- return nil
-}
-
-func (s *UnauthorizedClientException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *UnauthorizedClientException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *UnauthorizedClientException) RequestID() string {
- return s.RespMetadata.RequestID
-}
-
-// Indicates that the grant type in the request is not supported by the service.
-type UnsupportedGrantTypeException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
-
- Error_ *string `locationName:"error" type:"string"`
-
- Error_description *string `locationName:"error_description" type:"string"`
-
- Message_ *string `locationName:"message" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s UnsupportedGrantTypeException) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s UnsupportedGrantTypeException) GoString() string {
- return s.String()
-}
-
-func newErrorUnsupportedGrantTypeException(v protocol.ResponseMetadata) error {
- return &UnsupportedGrantTypeException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *UnsupportedGrantTypeException) Code() string {
- return "UnsupportedGrantTypeException"
-}
-
-// Message returns the exception's message.
-func (s *UnsupportedGrantTypeException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
-
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *UnsupportedGrantTypeException) OrigErr() error {
- return nil
-}
-
-func (s *UnsupportedGrantTypeException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *UnsupportedGrantTypeException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *UnsupportedGrantTypeException) RequestID() string {
- return s.RespMetadata.RequestID
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssooidc/doc.go b/vendor/github.com/aws/aws-sdk-go/service/ssooidc/doc.go
deleted file mode 100644
index 8b5ee6019..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/ssooidc/doc.go
+++ /dev/null
@@ -1,66 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-// Package ssooidc provides the client and types for making API
-// requests to AWS SSO OIDC.
-//
-// AWS IAM Identity Center (successor to AWS Single Sign-On) OpenID Connect
-// (OIDC) is a web service that enables a client (such as AWS CLI or a native
-// application) to register with IAM Identity Center. The service also enables
-// the client to fetch the user’s access token upon successful authentication
-// and authorization with IAM Identity Center.
-//
-// Although AWS Single Sign-On was renamed, the sso and identitystore API namespaces
-// will continue to retain their original name for backward compatibility purposes.
-// For more information, see IAM Identity Center rename (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed).
-//
-// # Considerations for Using This Guide
-//
-// Before you begin using this guide, we recommend that you first review the
-// following important information about how the IAM Identity Center OIDC service
-// works.
-//
-// - The IAM Identity Center OIDC service currently implements only the portions
-// of the OAuth 2.0 Device Authorization Grant standard (https://tools.ietf.org/html/rfc8628
-// (https://tools.ietf.org/html/rfc8628)) that are necessary to enable single
-// sign-on authentication with the AWS CLI. Support for other OIDC flows
-// frequently needed for native applications, such as Authorization Code
-// Flow (+ PKCE), will be addressed in future releases.
-//
-// - The service emits only OIDC access tokens, such that obtaining a new
-// token (For example, token refresh) requires explicit user re-authentication.
-//
-// - The access tokens provided by this service grant access to all AWS account
-// entitlements assigned to an IAM Identity Center user, not just a particular
-// application.
-//
-// - The documentation in this guide does not describe the mechanism to convert
-// the access token into AWS Auth (“sigv4”) credentials for use with
-// IAM-protected AWS service endpoints. For more information, see GetRoleCredentials
-// (https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference/API_GetRoleCredentials.html)
-// in the IAM Identity Center Portal API Reference Guide.
-//
-// For general information about IAM Identity Center, see What is IAM Identity
-// Center? (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html)
-// in the IAM Identity Center User Guide.
-//
-// See https://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10 for more information on this service.
-//
-// See ssooidc package documentation for more information.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/ssooidc/
-//
-// # Using the Client
-//
-// To contact AWS SSO OIDC 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.
-//
-// See the SDK's documentation for more information on how to use the SDK.
-// https://docs.aws.amazon.com/sdk-for-go/api/
-//
-// See aws.Config documentation for more information on configuring SDK clients.
-// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
-//
-// See the AWS SSO OIDC client SSOOIDC for more
-// information on creating client for this service.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/ssooidc/#New
-package ssooidc
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssooidc/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ssooidc/errors.go
deleted file mode 100644
index 698377012..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/ssooidc/errors.go
+++ /dev/null
@@ -1,107 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package ssooidc
-
-import (
- "github.com/aws/aws-sdk-go/private/protocol"
-)
-
-const (
-
- // ErrCodeAccessDeniedException for service response error code
- // "AccessDeniedException".
- //
- // You do not have sufficient access to perform this action.
- ErrCodeAccessDeniedException = "AccessDeniedException"
-
- // ErrCodeAuthorizationPendingException for service response error code
- // "AuthorizationPendingException".
- //
- // Indicates that a request to authorize a client with an access user session
- // token is pending.
- ErrCodeAuthorizationPendingException = "AuthorizationPendingException"
-
- // ErrCodeExpiredTokenException for service response error code
- // "ExpiredTokenException".
- //
- // Indicates that the token issued by the service is expired and is no longer
- // valid.
- ErrCodeExpiredTokenException = "ExpiredTokenException"
-
- // ErrCodeInternalServerException for service response error code
- // "InternalServerException".
- //
- // Indicates that an error from the service occurred while trying to process
- // a request.
- ErrCodeInternalServerException = "InternalServerException"
-
- // ErrCodeInvalidClientException for service response error code
- // "InvalidClientException".
- //
- // Indicates that the clientId or clientSecret in the request is invalid. For
- // example, this can occur when a client sends an incorrect clientId or an expired
- // clientSecret.
- ErrCodeInvalidClientException = "InvalidClientException"
-
- // ErrCodeInvalidClientMetadataException for service response error code
- // "InvalidClientMetadataException".
- //
- // Indicates that the client information sent in the request during registration
- // is invalid.
- ErrCodeInvalidClientMetadataException = "InvalidClientMetadataException"
-
- // ErrCodeInvalidGrantException for service response error code
- // "InvalidGrantException".
- //
- // Indicates that a request contains an invalid grant. This can occur if a client
- // makes a CreateToken request with an invalid grant type.
- ErrCodeInvalidGrantException = "InvalidGrantException"
-
- // ErrCodeInvalidRequestException for service response error code
- // "InvalidRequestException".
- //
- // Indicates that something is wrong with the input to the request. For example,
- // a required parameter might be missing or out of range.
- ErrCodeInvalidRequestException = "InvalidRequestException"
-
- // ErrCodeInvalidScopeException for service response error code
- // "InvalidScopeException".
- //
- // Indicates that the scope provided in the request is invalid.
- ErrCodeInvalidScopeException = "InvalidScopeException"
-
- // ErrCodeSlowDownException for service response error code
- // "SlowDownException".
- //
- // Indicates that the client is making the request too frequently and is more
- // than the service can handle.
- ErrCodeSlowDownException = "SlowDownException"
-
- // ErrCodeUnauthorizedClientException for service response error code
- // "UnauthorizedClientException".
- //
- // Indicates that the client is not currently authorized to make the request.
- // This can happen when a clientId is not issued for a public client.
- ErrCodeUnauthorizedClientException = "UnauthorizedClientException"
-
- // ErrCodeUnsupportedGrantTypeException for service response error code
- // "UnsupportedGrantTypeException".
- //
- // Indicates that the grant type in the request is not supported by the service.
- ErrCodeUnsupportedGrantTypeException = "UnsupportedGrantTypeException"
-)
-
-var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
- "AccessDeniedException": newErrorAccessDeniedException,
- "AuthorizationPendingException": newErrorAuthorizationPendingException,
- "ExpiredTokenException": newErrorExpiredTokenException,
- "InternalServerException": newErrorInternalServerException,
- "InvalidClientException": newErrorInvalidClientException,
- "InvalidClientMetadataException": newErrorInvalidClientMetadataException,
- "InvalidGrantException": newErrorInvalidGrantException,
- "InvalidRequestException": newErrorInvalidRequestException,
- "InvalidScopeException": newErrorInvalidScopeException,
- "SlowDownException": newErrorSlowDownException,
- "UnauthorizedClientException": newErrorUnauthorizedClientException,
- "UnsupportedGrantTypeException": newErrorUnsupportedGrantTypeException,
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssooidc/service.go b/vendor/github.com/aws/aws-sdk-go/service/ssooidc/service.go
deleted file mode 100644
index 969f33c37..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/ssooidc/service.go
+++ /dev/null
@@ -1,106 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package ssooidc
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/client/metadata"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/aws/signer/v4"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/restjson"
-)
-
-// SSOOIDC provides the API operation methods for making requests to
-// AWS SSO OIDC. See this package's package overview docs
-// for details on the service.
-//
-// SSOOIDC methods are safe to use concurrently. It is not safe to
-// modify mutate any of the struct's properties though.
-type SSOOIDC struct {
- *client.Client
-}
-
-// Used for custom client initialization logic
-var initClient func(*client.Client)
-
-// Used for custom request initialization logic
-var initRequest func(*request.Request)
-
-// Service information constants
-const (
- ServiceName = "SSO OIDC" // Name of service.
- EndpointsID = "oidc" // ID to lookup a service endpoint with.
- ServiceID = "SSO OIDC" // ServiceID is a unique identifier of a specific service.
-)
-
-// New creates a new instance of the SSOOIDC client with a session.
-// If additional configuration is needed for the client instance use the optional
-// aws.Config parameter to add your extra config.
-//
-// Example:
-//
-// mySession := session.Must(session.NewSession())
-//
-// // Create a SSOOIDC client from just a session.
-// svc := ssooidc.New(mySession)
-//
-// // Create a SSOOIDC client with additional configuration
-// svc := ssooidc.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
-func New(p client.ConfigProvider, cfgs ...*aws.Config) *SSOOIDC {
- c := p.ClientConfig(EndpointsID, cfgs...)
- if c.SigningNameDerived || len(c.SigningName) == 0 {
- c.SigningName = "awsssooidc"
- }
- return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion)
-}
-
-// newClient creates, initializes and returns a new service client instance.
-func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *SSOOIDC {
- svc := &SSOOIDC{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: ServiceName,
- ServiceID: ServiceID,
- SigningName: signingName,
- SigningRegion: signingRegion,
- PartitionID: partitionID,
- Endpoint: endpoint,
- APIVersion: "2019-06-10",
- ResolvedRegion: resolvedRegion,
- },
- handlers,
- ),
- }
-
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(
- protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
- )
-
- // Run custom client initialization if present
- if initClient != nil {
- initClient(svc.Client)
- }
-
- return svc
-}
-
-// newRequest creates a new request for a SSOOIDC operation and runs any
-// custom request initialization.
-func (c *SSOOIDC) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
-
- // Run custom request initialization if present
- if initRequest != nil {
- initRequest(req)
- }
-
- return req
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go
deleted file mode 100644
index 7ac6b93f4..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go
+++ /dev/null
@@ -1,3464 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package sts
-
-import (
- "fmt"
- "time"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/credentials"
- "github.com/aws/aws-sdk-go/aws/request"
-)
-
-const opAssumeRole = "AssumeRole"
-
-// AssumeRoleRequest generates a "aws/request.Request" representing the
-// client's request for the AssumeRole operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See AssumeRole for more information on using the AssumeRole
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the AssumeRoleRequest method.
-// req, resp := client.AssumeRoleRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRole
-func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, output *AssumeRoleOutput) {
- op := &request.Operation{
- Name: opAssumeRole,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &AssumeRoleInput{}
- }
-
- output = &AssumeRoleOutput{}
- req = c.newRequest(op, input, output)
- return
-}
-
-// AssumeRole API operation for AWS Security Token Service.
-//
-// Returns a set of temporary security credentials that you can use to access
-// Amazon Web Services resources. These temporary credentials consist of an
-// access key ID, a secret access key, and a security token. Typically, you
-// use AssumeRole within your account or for cross-account access. For a comparison
-// of AssumeRole with other API operations that produce temporary credentials,
-// see Requesting Temporary Security Credentials (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)
-// and Comparing the Amazon Web Services STS API operations (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)
-// in the IAM User Guide.
-//
-// # Permissions
-//
-// The temporary security credentials created by AssumeRole can be used to make
-// API calls to any Amazon Web Services service with the following exception:
-// You cannot call the Amazon Web Services STS GetFederationToken or GetSessionToken
-// API operations.
-//
-// (Optional) You can pass inline or managed session policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
-// to this operation. You can pass a single JSON policy document to use as an
-// inline session policy. You can also specify up to 10 managed policy Amazon
-// Resource Names (ARNs) to use as managed session policies. The plaintext that
-// you use for both inline and managed session policies can't exceed 2,048 characters.
-// Passing policies to this operation returns new temporary credentials. The
-// resulting session's permissions are the intersection of the role's identity-based
-// policy and the session policies. You can use the role's temporary credentials
-// in subsequent Amazon Web Services API calls to access resources in the account
-// that owns the role. You cannot use session policies to grant more permissions
-// than those allowed by the identity-based policy of the role that is being
-// assumed. For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
-// in the IAM User Guide.
-//
-// When you create a role, you create two policies: a role trust policy that
-// specifies who can assume the role, and a permissions policy that specifies
-// what can be done with the role. You specify the trusted principal that is
-// allowed to assume the role in the role trust policy.
-//
-// To assume a role from a different account, your Amazon Web Services account
-// must be trusted by the role. The trust relationship is defined in the role's
-// trust policy when the role is created. That trust policy states which accounts
-// are allowed to delegate that access to users in the account.
-//
-// A user who wants to access a role in a different account must also have permissions
-// that are delegated from the account administrator. The administrator must
-// attach a policy that allows the user to call AssumeRole for the ARN of the
-// role in the other account.
-//
-// To allow a user to assume a role in the same account, you can do either of
-// the following:
-//
-// - Attach a policy to the user that allows the user to call AssumeRole
-// (as long as the role's trust policy trusts the account).
-//
-// - Add the user as a principal directly in the role's trust policy.
-//
-// You can do either because the role’s trust policy acts as an IAM resource-based
-// policy. When a resource-based policy grants access to a principal in the
-// same account, no additional identity-based policy is required. For more information
-// about trust policies and resource-based policies, see IAM Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html)
-// in the IAM User Guide.
-//
-// # Tags
-//
-// (Optional) You can pass tag key-value pairs to your session. These tags are
-// called session tags. For more information about session tags, see Passing
-// Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
-// in the IAM User Guide.
-//
-// An administrator must grant you the permissions necessary to pass session
-// tags. The administrator can also create granular permissions to allow you
-// to pass only specific session tags. For more information, see Tutorial: Using
-// Tags for Attribute-Based Access Control (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html)
-// in the IAM User Guide.
-//
-// You can set the session tags as transitive. Transitive tags persist during
-// role chaining. For more information, see Chaining Roles with Session Tags
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining)
-// in the IAM User Guide.
-//
-// # Using MFA with AssumeRole
-//
-// (Optional) You can include multi-factor authentication (MFA) information
-// when you call AssumeRole. This is useful for cross-account scenarios to ensure
-// that the user that assumes the role has been authenticated with an Amazon
-// Web Services MFA device. In that scenario, the trust policy of the role being
-// assumed includes a condition that tests for MFA authentication. If the caller
-// does not include valid MFA information, the request to assume the role is
-// denied. The condition in a trust policy that tests for MFA authentication
-// might look like the following example.
-//
-// "Condition": {"Bool": {"aws:MultiFactorAuthPresent": true}}
-//
-// For more information, see Configuring MFA-Protected API Access (https://docs.aws.amazon.com/IAM/latest/UserGuide/MFAProtectedAPI.html)
-// in the IAM User Guide guide.
-//
-// To use MFA with AssumeRole, you pass values for the SerialNumber and TokenCode
-// parameters. The SerialNumber value identifies the user's hardware or virtual
-// MFA device. The TokenCode is the time-based one-time password (TOTP) that
-// the MFA device produces.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Security Token Service's
-// API operation AssumeRole for usage and error information.
-//
-// Returned Error Codes:
-//
-// - ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument"
-// The request was rejected because the policy document was malformed. The error
-// message describes the specific error.
-//
-// - ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge"
-// The request was rejected because the total packed size of the session policies
-// and session tags combined was too large. An Amazon Web Services conversion
-// compresses the session policy document, session policy ARNs, and session
-// tags into a packed binary format that has a separate limit. The error message
-// indicates by percentage how close the policies and tags are to the upper
-// size limit. For more information, see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
-// in the IAM User Guide.
-//
-// You could receive this error even though you meet other defined session policy
-// and session tag limits. For more information, see IAM and STS Entity Character
-// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length)
-// in the IAM User Guide.
-//
-// - ErrCodeRegionDisabledException "RegionDisabledException"
-// STS is not activated in the requested region for the account that is being
-// asked to generate credentials. The account administrator must use the IAM
-// console to activate STS in that region. For more information, see Activating
-// and Deactivating Amazon Web Services STS in an Amazon Web Services Region
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
-// in the IAM User Guide.
-//
-// - ErrCodeExpiredTokenException "ExpiredTokenException"
-// The web identity token that was passed is expired or is not valid. Get a
-// new identity token from the identity provider and then retry the request.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRole
-func (c *STS) AssumeRole(input *AssumeRoleInput) (*AssumeRoleOutput, error) {
- req, out := c.AssumeRoleRequest(input)
- return out, req.Send()
-}
-
-// AssumeRoleWithContext is the same as AssumeRole with the addition of
-// the ability to pass a context and additional request options.
-//
-// See AssumeRole for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *STS) AssumeRoleWithContext(ctx aws.Context, input *AssumeRoleInput, opts ...request.Option) (*AssumeRoleOutput, error) {
- req, out := c.AssumeRoleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opAssumeRoleWithSAML = "AssumeRoleWithSAML"
-
-// AssumeRoleWithSAMLRequest generates a "aws/request.Request" representing the
-// client's request for the AssumeRoleWithSAML operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See AssumeRoleWithSAML for more information on using the AssumeRoleWithSAML
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the AssumeRoleWithSAMLRequest method.
-// req, resp := client.AssumeRoleWithSAMLRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAML
-func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *request.Request, output *AssumeRoleWithSAMLOutput) {
- op := &request.Operation{
- Name: opAssumeRoleWithSAML,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &AssumeRoleWithSAMLInput{}
- }
-
- output = &AssumeRoleWithSAMLOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
-}
-
-// AssumeRoleWithSAML API operation for AWS Security Token Service.
-//
-// Returns a set of temporary security credentials for users who have been authenticated
-// via a SAML authentication response. This operation provides a mechanism for
-// tying an enterprise identity store or directory to role-based Amazon Web
-// Services access without user-specific credentials or configuration. For a
-// comparison of AssumeRoleWithSAML with the other API operations that produce
-// temporary credentials, see Requesting Temporary Security Credentials (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)
-// and Comparing the Amazon Web Services STS API operations (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)
-// in the IAM User Guide.
-//
-// The temporary security credentials returned by this operation consist of
-// an access key ID, a secret access key, and a security token. Applications
-// can use these temporary security credentials to sign calls to Amazon Web
-// Services services.
-//
-// # Session Duration
-//
-// By default, the temporary security credentials created by AssumeRoleWithSAML
-// last for one hour. However, you can use the optional DurationSeconds parameter
-// to specify the duration of your session. Your role session lasts for the
-// duration that you specify, or until the time specified in the SAML authentication
-// response's SessionNotOnOrAfter value, whichever is shorter. You can provide
-// a DurationSeconds value from 900 seconds (15 minutes) up to the maximum session
-// duration setting for the role. This setting can have a value from 1 hour
-// to 12 hours. To learn how to view the maximum value for your role, see View
-// the Maximum Session Duration Setting for a Role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session)
-// in the IAM User Guide. The maximum session duration limit applies when you
-// use the AssumeRole* API operations or the assume-role* CLI commands. However
-// the limit does not apply when you use those operations to create a console
-// URL. For more information, see Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html)
-// in the IAM User Guide.
-//
-// Role chaining (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-role-chaining)
-// limits your CLI or Amazon Web Services API role session to a maximum of one
-// hour. When you use the AssumeRole API operation to assume a role, you can
-// specify the duration of your role session with the DurationSeconds parameter.
-// You can specify a parameter value of up to 43200 seconds (12 hours), depending
-// on the maximum session duration setting for your role. However, if you assume
-// a role using role chaining and provide a DurationSeconds parameter value
-// greater than one hour, the operation fails.
-//
-// # Permissions
-//
-// The temporary security credentials created by AssumeRoleWithSAML can be used
-// to make API calls to any Amazon Web Services service with the following exception:
-// you cannot call the STS GetFederationToken or GetSessionToken API operations.
-//
-// (Optional) You can pass inline or managed session policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
-// to this operation. You can pass a single JSON policy document to use as an
-// inline session policy. You can also specify up to 10 managed policy Amazon
-// Resource Names (ARNs) to use as managed session policies. The plaintext that
-// you use for both inline and managed session policies can't exceed 2,048 characters.
-// Passing policies to this operation returns new temporary credentials. The
-// resulting session's permissions are the intersection of the role's identity-based
-// policy and the session policies. You can use the role's temporary credentials
-// in subsequent Amazon Web Services API calls to access resources in the account
-// that owns the role. You cannot use session policies to grant more permissions
-// than those allowed by the identity-based policy of the role that is being
-// assumed. For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
-// in the IAM User Guide.
-//
-// Calling AssumeRoleWithSAML does not require the use of Amazon Web Services
-// security credentials. The identity of the caller is validated by using keys
-// in the metadata document that is uploaded for the SAML provider entity for
-// your identity provider.
-//
-// Calling AssumeRoleWithSAML can result in an entry in your CloudTrail logs.
-// The entry includes the value in the NameID element of the SAML assertion.
-// We recommend that you use a NameIDType that is not associated with any personally
-// identifiable information (PII). For example, you could instead use the persistent
-// identifier (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent).
-//
-// # Tags
-//
-// (Optional) You can configure your IdP to pass attributes into your SAML assertion
-// as session tags. Each session tag consists of a key name and an associated
-// value. For more information about session tags, see Passing Session Tags
-// in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
-// in the IAM User Guide.
-//
-// You can pass up to 50 session tags. The plaintext session tag keys can’t
-// exceed 128 characters and the values can’t exceed 256 characters. For these
-// and additional limits, see IAM and STS Character Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
-// in the IAM User Guide.
-//
-// An Amazon Web Services conversion compresses the passed inline session policy,
-// managed policy ARNs, and session tags into a packed binary format that has
-// a separate limit. Your request can fail for this limit even if your plaintext
-// meets the other requirements. The PackedPolicySize response element indicates
-// by percentage how close the policies and tags for your request are to the
-// upper size limit.
-//
-// You can pass a session tag with the same key as a tag that is attached to
-// the role. When you do, session tags override the role's tags with the same
-// key.
-//
-// An administrator must grant you the permissions necessary to pass session
-// tags. The administrator can also create granular permissions to allow you
-// to pass only specific session tags. For more information, see Tutorial: Using
-// Tags for Attribute-Based Access Control (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html)
-// in the IAM User Guide.
-//
-// You can set the session tags as transitive. Transitive tags persist during
-// role chaining. For more information, see Chaining Roles with Session Tags
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining)
-// in the IAM User Guide.
-//
-// # SAML Configuration
-//
-// Before your application can call AssumeRoleWithSAML, you must configure your
-// SAML identity provider (IdP) to issue the claims required by Amazon Web Services.
-// Additionally, you must use Identity and Access Management (IAM) to create
-// a SAML provider entity in your Amazon Web Services account that represents
-// your identity provider. You must also create an IAM role that specifies this
-// SAML provider in its trust policy.
-//
-// For more information, see the following resources:
-//
-// - About SAML 2.0-based Federation (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html)
-// in the IAM User Guide.
-//
-// - Creating SAML Identity Providers (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html)
-// in the IAM User Guide.
-//
-// - Configuring a Relying Party and Claims (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html)
-// in the IAM User Guide.
-//
-// - Creating a Role for SAML 2.0 Federation (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html)
-// in the IAM User Guide.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Security Token Service's
-// API operation AssumeRoleWithSAML for usage and error information.
-//
-// Returned Error Codes:
-//
-// - ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument"
-// The request was rejected because the policy document was malformed. The error
-// message describes the specific error.
-//
-// - ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge"
-// The request was rejected because the total packed size of the session policies
-// and session tags combined was too large. An Amazon Web Services conversion
-// compresses the session policy document, session policy ARNs, and session
-// tags into a packed binary format that has a separate limit. The error message
-// indicates by percentage how close the policies and tags are to the upper
-// size limit. For more information, see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
-// in the IAM User Guide.
-//
-// You could receive this error even though you meet other defined session policy
-// and session tag limits. For more information, see IAM and STS Entity Character
-// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length)
-// in the IAM User Guide.
-//
-// - ErrCodeIDPRejectedClaimException "IDPRejectedClaim"
-// The identity provider (IdP) reported that authentication failed. This might
-// be because the claim is invalid.
-//
-// If this error is returned for the AssumeRoleWithWebIdentity operation, it
-// can also mean that the claim has expired or has been explicitly revoked.
-//
-// - ErrCodeInvalidIdentityTokenException "InvalidIdentityToken"
-// The web identity token that was passed could not be validated by Amazon Web
-// Services. Get a new identity token from the identity provider and then retry
-// the request.
-//
-// - ErrCodeExpiredTokenException "ExpiredTokenException"
-// The web identity token that was passed is expired or is not valid. Get a
-// new identity token from the identity provider and then retry the request.
-//
-// - ErrCodeRegionDisabledException "RegionDisabledException"
-// STS is not activated in the requested region for the account that is being
-// asked to generate credentials. The account administrator must use the IAM
-// console to activate STS in that region. For more information, see Activating
-// and Deactivating Amazon Web Services STS in an Amazon Web Services Region
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
-// in the IAM User Guide.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAML
-func (c *STS) AssumeRoleWithSAML(input *AssumeRoleWithSAMLInput) (*AssumeRoleWithSAMLOutput, error) {
- req, out := c.AssumeRoleWithSAMLRequest(input)
- return out, req.Send()
-}
-
-// AssumeRoleWithSAMLWithContext is the same as AssumeRoleWithSAML with the addition of
-// the ability to pass a context and additional request options.
-//
-// See AssumeRoleWithSAML for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *STS) AssumeRoleWithSAMLWithContext(ctx aws.Context, input *AssumeRoleWithSAMLInput, opts ...request.Option) (*AssumeRoleWithSAMLOutput, error) {
- req, out := c.AssumeRoleWithSAMLRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opAssumeRoleWithWebIdentity = "AssumeRoleWithWebIdentity"
-
-// AssumeRoleWithWebIdentityRequest generates a "aws/request.Request" representing the
-// client's request for the AssumeRoleWithWebIdentity operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See AssumeRoleWithWebIdentity for more information on using the AssumeRoleWithWebIdentity
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the AssumeRoleWithWebIdentityRequest method.
-// req, resp := client.AssumeRoleWithWebIdentityRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentity
-func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityInput) (req *request.Request, output *AssumeRoleWithWebIdentityOutput) {
- op := &request.Operation{
- Name: opAssumeRoleWithWebIdentity,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &AssumeRoleWithWebIdentityInput{}
- }
-
- output = &AssumeRoleWithWebIdentityOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
-}
-
-// AssumeRoleWithWebIdentity API operation for AWS Security Token Service.
-//
-// Returns a set of temporary security credentials for users who have been authenticated
-// in a mobile or web application with a web identity provider. Example providers
-// include the OAuth 2.0 providers Login with Amazon and Facebook, or any OpenID
-// Connect-compatible identity provider such as Google or Amazon Cognito federated
-// identities (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html).
-//
-// For mobile applications, we recommend that you use Amazon Cognito. You can
-// use Amazon Cognito with the Amazon Web Services SDK for iOS Developer Guide
-// (http://aws.amazon.com/sdkforios/) and the Amazon Web Services SDK for Android
-// Developer Guide (http://aws.amazon.com/sdkforandroid/) to uniquely identify
-// a user. You can also supply the user with a consistent identity throughout
-// the lifetime of an application.
-//
-// To learn more about Amazon Cognito, see Amazon Cognito identity pools (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html)
-// in Amazon Cognito Developer Guide.
-//
-// Calling AssumeRoleWithWebIdentity does not require the use of Amazon Web
-// Services security credentials. Therefore, you can distribute an application
-// (for example, on mobile devices) that requests temporary security credentials
-// without including long-term Amazon Web Services credentials in the application.
-// You also don't need to deploy server-based proxy services that use long-term
-// Amazon Web Services credentials. Instead, the identity of the caller is validated
-// by using a token from the web identity provider. For a comparison of AssumeRoleWithWebIdentity
-// with the other API operations that produce temporary credentials, see Requesting
-// Temporary Security Credentials (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)
-// and Comparing the Amazon Web Services STS API operations (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)
-// in the IAM User Guide.
-//
-// The temporary security credentials returned by this API consist of an access
-// key ID, a secret access key, and a security token. Applications can use these
-// temporary security credentials to sign calls to Amazon Web Services service
-// API operations.
-//
-// # Session Duration
-//
-// By default, the temporary security credentials created by AssumeRoleWithWebIdentity
-// last for one hour. However, you can use the optional DurationSeconds parameter
-// to specify the duration of your session. You can provide a value from 900
-// seconds (15 minutes) up to the maximum session duration setting for the role.
-// This setting can have a value from 1 hour to 12 hours. To learn how to view
-// the maximum value for your role, see View the Maximum Session Duration Setting
-// for a Role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session)
-// in the IAM User Guide. The maximum session duration limit applies when you
-// use the AssumeRole* API operations or the assume-role* CLI commands. However
-// the limit does not apply when you use those operations to create a console
-// URL. For more information, see Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html)
-// in the IAM User Guide.
-//
-// # Permissions
-//
-// The temporary security credentials created by AssumeRoleWithWebIdentity can
-// be used to make API calls to any Amazon Web Services service with the following
-// exception: you cannot call the STS GetFederationToken or GetSessionToken
-// API operations.
-//
-// (Optional) You can pass inline or managed session policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
-// to this operation. You can pass a single JSON policy document to use as an
-// inline session policy. You can also specify up to 10 managed policy Amazon
-// Resource Names (ARNs) to use as managed session policies. The plaintext that
-// you use for both inline and managed session policies can't exceed 2,048 characters.
-// Passing policies to this operation returns new temporary credentials. The
-// resulting session's permissions are the intersection of the role's identity-based
-// policy and the session policies. You can use the role's temporary credentials
-// in subsequent Amazon Web Services API calls to access resources in the account
-// that owns the role. You cannot use session policies to grant more permissions
-// than those allowed by the identity-based policy of the role that is being
-// assumed. For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
-// in the IAM User Guide.
-//
-// # Tags
-//
-// (Optional) You can configure your IdP to pass attributes into your web identity
-// token as session tags. Each session tag consists of a key name and an associated
-// value. For more information about session tags, see Passing Session Tags
-// in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
-// in the IAM User Guide.
-//
-// You can pass up to 50 session tags. The plaintext session tag keys can’t
-// exceed 128 characters and the values can’t exceed 256 characters. For these
-// and additional limits, see IAM and STS Character Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
-// in the IAM User Guide.
-//
-// An Amazon Web Services conversion compresses the passed inline session policy,
-// managed policy ARNs, and session tags into a packed binary format that has
-// a separate limit. Your request can fail for this limit even if your plaintext
-// meets the other requirements. The PackedPolicySize response element indicates
-// by percentage how close the policies and tags for your request are to the
-// upper size limit.
-//
-// You can pass a session tag with the same key as a tag that is attached to
-// the role. When you do, the session tag overrides the role tag with the same
-// key.
-//
-// An administrator must grant you the permissions necessary to pass session
-// tags. The administrator can also create granular permissions to allow you
-// to pass only specific session tags. For more information, see Tutorial: Using
-// Tags for Attribute-Based Access Control (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html)
-// in the IAM User Guide.
-//
-// You can set the session tags as transitive. Transitive tags persist during
-// role chaining. For more information, see Chaining Roles with Session Tags
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining)
-// in the IAM User Guide.
-//
-// # Identities
-//
-// Before your application can call AssumeRoleWithWebIdentity, you must have
-// an identity token from a supported identity provider and create a role that
-// the application can assume. The role that your application assumes must trust
-// the identity provider that is associated with the identity token. In other
-// words, the identity provider must be specified in the role's trust policy.
-//
-// Calling AssumeRoleWithWebIdentity can result in an entry in your CloudTrail
-// logs. The entry includes the Subject (http://openid.net/specs/openid-connect-core-1_0.html#Claims)
-// of the provided web identity token. We recommend that you avoid using any
-// personally identifiable information (PII) in this field. For example, you
-// could instead use a GUID or a pairwise identifier, as suggested in the OIDC
-// specification (http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes).
-//
-// For more information about how to use web identity federation and the AssumeRoleWithWebIdentity
-// API, see the following resources:
-//
-// - Using Web Identity Federation API Operations for Mobile Apps (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual.html)
-// and Federation Through a Web-based Identity Provider (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity).
-//
-// - Web Identity Federation Playground (https://aws.amazon.com/blogs/aws/the-aws-web-identity-federation-playground/).
-// Walk through the process of authenticating through Login with Amazon,
-// Facebook, or Google, getting temporary security credentials, and then
-// using those credentials to make a request to Amazon Web Services.
-//
-// - Amazon Web Services SDK for iOS Developer Guide (http://aws.amazon.com/sdkforios/)
-// and Amazon Web Services SDK for Android Developer Guide (http://aws.amazon.com/sdkforandroid/).
-// These toolkits contain sample apps that show how to invoke the identity
-// providers. The toolkits then show how to use the information from these
-// providers to get and use temporary security credentials.
-//
-// - Web Identity Federation with Mobile Applications (http://aws.amazon.com/articles/web-identity-federation-with-mobile-applications).
-// This article discusses web identity federation and shows an example of
-// how to use web identity federation to get access to content in Amazon
-// S3.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Security Token Service's
-// API operation AssumeRoleWithWebIdentity for usage and error information.
-//
-// Returned Error Codes:
-//
-// - ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument"
-// The request was rejected because the policy document was malformed. The error
-// message describes the specific error.
-//
-// - ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge"
-// The request was rejected because the total packed size of the session policies
-// and session tags combined was too large. An Amazon Web Services conversion
-// compresses the session policy document, session policy ARNs, and session
-// tags into a packed binary format that has a separate limit. The error message
-// indicates by percentage how close the policies and tags are to the upper
-// size limit. For more information, see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
-// in the IAM User Guide.
-//
-// You could receive this error even though you meet other defined session policy
-// and session tag limits. For more information, see IAM and STS Entity Character
-// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length)
-// in the IAM User Guide.
-//
-// - ErrCodeIDPRejectedClaimException "IDPRejectedClaim"
-// The identity provider (IdP) reported that authentication failed. This might
-// be because the claim is invalid.
-//
-// If this error is returned for the AssumeRoleWithWebIdentity operation, it
-// can also mean that the claim has expired or has been explicitly revoked.
-//
-// - ErrCodeIDPCommunicationErrorException "IDPCommunicationError"
-// The request could not be fulfilled because the identity provider (IDP) that
-// was asked to verify the incoming identity token could not be reached. This
-// is often a transient error caused by network conditions. Retry the request
-// a limited number of times so that you don't exceed the request rate. If the
-// error persists, the identity provider might be down or not responding.
-//
-// - ErrCodeInvalidIdentityTokenException "InvalidIdentityToken"
-// The web identity token that was passed could not be validated by Amazon Web
-// Services. Get a new identity token from the identity provider and then retry
-// the request.
-//
-// - ErrCodeExpiredTokenException "ExpiredTokenException"
-// The web identity token that was passed is expired or is not valid. Get a
-// new identity token from the identity provider and then retry the request.
-//
-// - ErrCodeRegionDisabledException "RegionDisabledException"
-// STS is not activated in the requested region for the account that is being
-// asked to generate credentials. The account administrator must use the IAM
-// console to activate STS in that region. For more information, see Activating
-// and Deactivating Amazon Web Services STS in an Amazon Web Services Region
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
-// in the IAM User Guide.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentity
-func (c *STS) AssumeRoleWithWebIdentity(input *AssumeRoleWithWebIdentityInput) (*AssumeRoleWithWebIdentityOutput, error) {
- req, out := c.AssumeRoleWithWebIdentityRequest(input)
- return out, req.Send()
-}
-
-// AssumeRoleWithWebIdentityWithContext is the same as AssumeRoleWithWebIdentity with the addition of
-// the ability to pass a context and additional request options.
-//
-// See AssumeRoleWithWebIdentity for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *STS) AssumeRoleWithWebIdentityWithContext(ctx aws.Context, input *AssumeRoleWithWebIdentityInput, opts ...request.Option) (*AssumeRoleWithWebIdentityOutput, error) {
- req, out := c.AssumeRoleWithWebIdentityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opDecodeAuthorizationMessage = "DecodeAuthorizationMessage"
-
-// DecodeAuthorizationMessageRequest generates a "aws/request.Request" representing the
-// client's request for the DecodeAuthorizationMessage operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See DecodeAuthorizationMessage for more information on using the DecodeAuthorizationMessage
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the DecodeAuthorizationMessageRequest method.
-// req, resp := client.DecodeAuthorizationMessageRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessage
-func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessageInput) (req *request.Request, output *DecodeAuthorizationMessageOutput) {
- op := &request.Operation{
- Name: opDecodeAuthorizationMessage,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &DecodeAuthorizationMessageInput{}
- }
-
- output = &DecodeAuthorizationMessageOutput{}
- req = c.newRequest(op, input, output)
- return
-}
-
-// DecodeAuthorizationMessage API operation for AWS Security Token Service.
-//
-// Decodes additional information about the authorization status of a request
-// from an encoded message returned in response to an Amazon Web Services request.
-//
-// For example, if a user is not authorized to perform an operation that he
-// or she has requested, the request returns a Client.UnauthorizedOperation
-// response (an HTTP 403 response). Some Amazon Web Services operations additionally
-// return an encoded message that can provide details about this authorization
-// failure.
-//
-// Only certain Amazon Web Services operations return an encoded authorization
-// message. The documentation for an individual operation indicates whether
-// that operation returns an encoded message in addition to returning an HTTP
-// code.
-//
-// The message is encoded because the details of the authorization status can
-// contain privileged information that the user who requested the operation
-// should not see. To decode an authorization status message, a user must be
-// granted permissions through an IAM policy (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html)
-// to request the DecodeAuthorizationMessage (sts:DecodeAuthorizationMessage)
-// action.
-//
-// The decoded message includes the following type of information:
-//
-// - Whether the request was denied due to an explicit deny or due to the
-// absence of an explicit allow. For more information, see Determining Whether
-// a Request is Allowed or Denied (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-denyallow)
-// in the IAM User Guide.
-//
-// - The principal who made the request.
-//
-// - The requested action.
-//
-// - The requested resource.
-//
-// - The values of condition keys in the context of the user's request.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Security Token Service's
-// API operation DecodeAuthorizationMessage for usage and error information.
-//
-// Returned Error Codes:
-// - ErrCodeInvalidAuthorizationMessageException "InvalidAuthorizationMessageException"
-// The error returned if the message passed to DecodeAuthorizationMessage was
-// invalid. This can happen if the token contains invalid characters, such as
-// linebreaks.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessage
-func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput) (*DecodeAuthorizationMessageOutput, error) {
- req, out := c.DecodeAuthorizationMessageRequest(input)
- return out, req.Send()
-}
-
-// DecodeAuthorizationMessageWithContext is the same as DecodeAuthorizationMessage with the addition of
-// the ability to pass a context and additional request options.
-//
-// See DecodeAuthorizationMessage for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *STS) DecodeAuthorizationMessageWithContext(ctx aws.Context, input *DecodeAuthorizationMessageInput, opts ...request.Option) (*DecodeAuthorizationMessageOutput, error) {
- req, out := c.DecodeAuthorizationMessageRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opGetAccessKeyInfo = "GetAccessKeyInfo"
-
-// GetAccessKeyInfoRequest generates a "aws/request.Request" representing the
-// client's request for the GetAccessKeyInfo operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See GetAccessKeyInfo for more information on using the GetAccessKeyInfo
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the GetAccessKeyInfoRequest method.
-// req, resp := client.GetAccessKeyInfoRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetAccessKeyInfo
-func (c *STS) GetAccessKeyInfoRequest(input *GetAccessKeyInfoInput) (req *request.Request, output *GetAccessKeyInfoOutput) {
- op := &request.Operation{
- Name: opGetAccessKeyInfo,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &GetAccessKeyInfoInput{}
- }
-
- output = &GetAccessKeyInfoOutput{}
- req = c.newRequest(op, input, output)
- return
-}
-
-// GetAccessKeyInfo API operation for AWS Security Token Service.
-//
-// Returns the account identifier for the specified access key ID.
-//
-// Access keys consist of two parts: an access key ID (for example, AKIAIOSFODNN7EXAMPLE)
-// and a secret access key (for example, wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY).
-// For more information about access keys, see Managing Access Keys for IAM
-// Users (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html)
-// in the IAM User Guide.
-//
-// When you pass an access key ID to this operation, it returns the ID of the
-// Amazon Web Services account to which the keys belong. Access key IDs beginning
-// with AKIA are long-term credentials for an IAM user or the Amazon Web Services
-// account root user. Access key IDs beginning with ASIA are temporary credentials
-// that are created using STS operations. If the account in the response belongs
-// to you, you can sign in as the root user and review your root user access
-// keys. Then, you can pull a credentials report (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html)
-// to learn which IAM user owns the keys. To learn who requested the temporary
-// credentials for an ASIA access key, view the STS events in your CloudTrail
-// logs (https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html)
-// in the IAM User Guide.
-//
-// This operation does not indicate the state of the access key. The key might
-// be active, inactive, or deleted. Active keys might not have permissions to
-// perform an operation. Providing a deleted access key might return an error
-// that the key doesn't exist.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Security Token Service's
-// API operation GetAccessKeyInfo for usage and error information.
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetAccessKeyInfo
-func (c *STS) GetAccessKeyInfo(input *GetAccessKeyInfoInput) (*GetAccessKeyInfoOutput, error) {
- req, out := c.GetAccessKeyInfoRequest(input)
- return out, req.Send()
-}
-
-// GetAccessKeyInfoWithContext is the same as GetAccessKeyInfo with the addition of
-// the ability to pass a context and additional request options.
-//
-// See GetAccessKeyInfo for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *STS) GetAccessKeyInfoWithContext(ctx aws.Context, input *GetAccessKeyInfoInput, opts ...request.Option) (*GetAccessKeyInfoOutput, error) {
- req, out := c.GetAccessKeyInfoRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opGetCallerIdentity = "GetCallerIdentity"
-
-// GetCallerIdentityRequest generates a "aws/request.Request" representing the
-// client's request for the GetCallerIdentity operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See GetCallerIdentity for more information on using the GetCallerIdentity
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the GetCallerIdentityRequest method.
-// req, resp := client.GetCallerIdentityRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentity
-func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *request.Request, output *GetCallerIdentityOutput) {
- op := &request.Operation{
- Name: opGetCallerIdentity,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &GetCallerIdentityInput{}
- }
-
- output = &GetCallerIdentityOutput{}
- req = c.newRequest(op, input, output)
- return
-}
-
-// GetCallerIdentity API operation for AWS Security Token Service.
-//
-// Returns details about the IAM user or role whose credentials are used to
-// call the operation.
-//
-// No permissions are required to perform this operation. If an administrator
-// attaches a policy to your identity that explicitly denies access to the sts:GetCallerIdentity
-// action, you can still perform this operation. Permissions are not required
-// because the same information is returned when access is denied. To view an
-// example response, see I Am Not Authorized to Perform: iam:DeleteVirtualMFADevice
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_access-denied-delete-mfa)
-// in the IAM User Guide.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Security Token Service's
-// API operation GetCallerIdentity for usage and error information.
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentity
-func (c *STS) GetCallerIdentity(input *GetCallerIdentityInput) (*GetCallerIdentityOutput, error) {
- req, out := c.GetCallerIdentityRequest(input)
- return out, req.Send()
-}
-
-// GetCallerIdentityWithContext is the same as GetCallerIdentity with the addition of
-// the ability to pass a context and additional request options.
-//
-// See GetCallerIdentity for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *STS) GetCallerIdentityWithContext(ctx aws.Context, input *GetCallerIdentityInput, opts ...request.Option) (*GetCallerIdentityOutput, error) {
- req, out := c.GetCallerIdentityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opGetFederationToken = "GetFederationToken"
-
-// GetFederationTokenRequest generates a "aws/request.Request" representing the
-// client's request for the GetFederationToken operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See GetFederationToken for more information on using the GetFederationToken
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the GetFederationTokenRequest method.
-// req, resp := client.GetFederationTokenRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationToken
-func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *request.Request, output *GetFederationTokenOutput) {
- op := &request.Operation{
- Name: opGetFederationToken,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &GetFederationTokenInput{}
- }
-
- output = &GetFederationTokenOutput{}
- req = c.newRequest(op, input, output)
- return
-}
-
-// GetFederationToken API operation for AWS Security Token Service.
-//
-// Returns a set of temporary security credentials (consisting of an access
-// key ID, a secret access key, and a security token) for a user. A typical
-// use is in a proxy application that gets temporary security credentials on
-// behalf of distributed applications inside a corporate network.
-//
-// You must call the GetFederationToken operation using the long-term security
-// credentials of an IAM user. As a result, this call is appropriate in contexts
-// where those credentials can be safeguarded, usually in a server-based application.
-// For a comparison of GetFederationToken with the other API operations that
-// produce temporary credentials, see Requesting Temporary Security Credentials
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)
-// and Comparing the Amazon Web Services STS API operations (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)
-// in the IAM User Guide.
-//
-// Although it is possible to call GetFederationToken using the security credentials
-// of an Amazon Web Services account root user rather than an IAM user that
-// you create for the purpose of a proxy application, we do not recommend it.
-// For more information, see Safeguard your root user credentials and don't
-// use them for everyday tasks (https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#lock-away-credentials)
-// in the IAM User Guide.
-//
-// You can create a mobile-based or browser-based app that can authenticate
-// users using a web identity provider like Login with Amazon, Facebook, Google,
-// or an OpenID Connect-compatible identity provider. In this case, we recommend
-// that you use Amazon Cognito (http://aws.amazon.com/cognito/) or AssumeRoleWithWebIdentity.
-// For more information, see Federation Through a Web-based Identity Provider
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity)
-// in the IAM User Guide.
-//
-// # Session duration
-//
-// The temporary credentials are valid for the specified duration, from 900
-// seconds (15 minutes) up to a maximum of 129,600 seconds (36 hours). The default
-// session duration is 43,200 seconds (12 hours). Temporary credentials obtained
-// by using the root user credentials have a maximum duration of 3,600 seconds
-// (1 hour).
-//
-// # Permissions
-//
-// You can use the temporary credentials created by GetFederationToken in any
-// Amazon Web Services service with the following exceptions:
-//
-// - You cannot call any IAM operations using the CLI or the Amazon Web Services
-// API. This limitation does not apply to console sessions.
-//
-// - You cannot call any STS operations except GetCallerIdentity.
-//
-// You can use temporary credentials for single sign-on (SSO) to the console.
-//
-// You must pass an inline or managed session policy (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
-// to this operation. You can pass a single JSON policy document to use as an
-// inline session policy. You can also specify up to 10 managed policy Amazon
-// Resource Names (ARNs) to use as managed session policies. The plaintext that
-// you use for both inline and managed session policies can't exceed 2,048 characters.
-//
-// Though the session policy parameters are optional, if you do not pass a policy,
-// then the resulting federated user session has no permissions. When you pass
-// session policies, the session permissions are the intersection of the IAM
-// user policies and the session policies that you pass. This gives you a way
-// to further restrict the permissions for a federated user. You cannot use
-// session policies to grant more permissions than those that are defined in
-// the permissions policy of the IAM user. For more information, see Session
-// Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
-// in the IAM User Guide. For information about using GetFederationToken to
-// create temporary security credentials, see GetFederationToken—Federation
-// Through a Custom Identity Broker (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getfederationtoken).
-//
-// You can use the credentials to access a resource that has a resource-based
-// policy. If that policy specifically references the federated user session
-// in the Principal element of the policy, the session has the permissions allowed
-// by the policy. These permissions are granted in addition to the permissions
-// granted by the session policies.
-//
-// # Tags
-//
-// (Optional) You can pass tag key-value pairs to your session. These are called
-// session tags. For more information about session tags, see Passing Session
-// Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
-// in the IAM User Guide.
-//
-// You can create a mobile-based or browser-based app that can authenticate
-// users using a web identity provider like Login with Amazon, Facebook, Google,
-// or an OpenID Connect-compatible identity provider. In this case, we recommend
-// that you use Amazon Cognito (http://aws.amazon.com/cognito/) or AssumeRoleWithWebIdentity.
-// For more information, see Federation Through a Web-based Identity Provider
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity)
-// in the IAM User Guide.
-//
-// An administrator must grant you the permissions necessary to pass session
-// tags. The administrator can also create granular permissions to allow you
-// to pass only specific session tags. For more information, see Tutorial: Using
-// Tags for Attribute-Based Access Control (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html)
-// in the IAM User Guide.
-//
-// Tag key–value pairs are not case sensitive, but case is preserved. This
-// means that you cannot have separate Department and department tag keys. Assume
-// that the user that you are federating has the Department=Marketing tag and
-// you pass the department=engineering session tag. Department and department
-// are not saved as separate tags, and the session tag passed in the request
-// takes precedence over the user tag.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Security Token Service's
-// API operation GetFederationToken for usage and error information.
-//
-// Returned Error Codes:
-//
-// - ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument"
-// The request was rejected because the policy document was malformed. The error
-// message describes the specific error.
-//
-// - ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge"
-// The request was rejected because the total packed size of the session policies
-// and session tags combined was too large. An Amazon Web Services conversion
-// compresses the session policy document, session policy ARNs, and session
-// tags into a packed binary format that has a separate limit. The error message
-// indicates by percentage how close the policies and tags are to the upper
-// size limit. For more information, see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
-// in the IAM User Guide.
-//
-// You could receive this error even though you meet other defined session policy
-// and session tag limits. For more information, see IAM and STS Entity Character
-// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length)
-// in the IAM User Guide.
-//
-// - ErrCodeRegionDisabledException "RegionDisabledException"
-// STS is not activated in the requested region for the account that is being
-// asked to generate credentials. The account administrator must use the IAM
-// console to activate STS in that region. For more information, see Activating
-// and Deactivating Amazon Web Services STS in an Amazon Web Services Region
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
-// in the IAM User Guide.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationToken
-func (c *STS) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) {
- req, out := c.GetFederationTokenRequest(input)
- return out, req.Send()
-}
-
-// GetFederationTokenWithContext is the same as GetFederationToken with the addition of
-// the ability to pass a context and additional request options.
-//
-// See GetFederationToken for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *STS) GetFederationTokenWithContext(ctx aws.Context, input *GetFederationTokenInput, opts ...request.Option) (*GetFederationTokenOutput, error) {
- req, out := c.GetFederationTokenRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-const opGetSessionToken = "GetSessionToken"
-
-// GetSessionTokenRequest generates a "aws/request.Request" representing the
-// client's request for the GetSessionToken operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See GetSessionToken for more information on using the GetSessionToken
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-// // Example sending a request using the GetSessionTokenRequest method.
-// req, resp := client.GetSessionTokenRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionToken
-func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request.Request, output *GetSessionTokenOutput) {
- op := &request.Operation{
- Name: opGetSessionToken,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &GetSessionTokenInput{}
- }
-
- output = &GetSessionTokenOutput{}
- req = c.newRequest(op, input, output)
- return
-}
-
-// GetSessionToken API operation for AWS Security Token Service.
-//
-// Returns a set of temporary credentials for an Amazon Web Services account
-// or IAM user. The credentials consist of an access key ID, a secret access
-// key, and a security token. Typically, you use GetSessionToken if you want
-// to use MFA to protect programmatic calls to specific Amazon Web Services
-// API operations like Amazon EC2 StopInstances.
-//
-// MFA-enabled IAM users must call GetSessionToken and submit an MFA code that
-// is associated with their MFA device. Using the temporary security credentials
-// that the call returns, IAM users can then make programmatic calls to API
-// operations that require MFA authentication. An incorrect MFA code causes
-// the API to return an access denied error. For a comparison of GetSessionToken
-// with the other API operations that produce temporary credentials, see Requesting
-// Temporary Security Credentials (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)
-// and Comparing the Amazon Web Services STS API operations (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)
-// in the IAM User Guide.
-//
-// No permissions are required for users to perform this operation. The purpose
-// of the sts:GetSessionToken operation is to authenticate the user using MFA.
-// You cannot use policies to control authentication operations. For more information,
-// see Permissions for GetSessionToken (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getsessiontoken.html)
-// in the IAM User Guide.
-//
-// # Session Duration
-//
-// The GetSessionToken operation must be called by using the long-term Amazon
-// Web Services security credentials of an IAM user. Credentials that are created
-// by IAM users are valid for the duration that you specify. This duration can
-// range from 900 seconds (15 minutes) up to a maximum of 129,600 seconds (36
-// hours), with a default of 43,200 seconds (12 hours). Credentials based on
-// account credentials can range from 900 seconds (15 minutes) up to 3,600 seconds
-// (1 hour), with a default of 1 hour.
-//
-// # Permissions
-//
-// The temporary security credentials created by GetSessionToken can be used
-// to make API calls to any Amazon Web Services service with the following exceptions:
-//
-// - You cannot call any IAM API operations unless MFA authentication information
-// is included in the request.
-//
-// - You cannot call any STS API except AssumeRole or GetCallerIdentity.
-//
-// The credentials that GetSessionToken returns are based on permissions associated
-// with the IAM user whose credentials were used to call the operation. The
-// temporary credentials have the same permissions as the IAM user.
-//
-// Although it is possible to call GetSessionToken using the security credentials
-// of an Amazon Web Services account root user rather than an IAM user, we do
-// not recommend it. If GetSessionToken is called using root user credentials,
-// the temporary credentials have root user permissions. For more information,
-// see Safeguard your root user credentials and don't use them for everyday
-// tasks (https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#lock-away-credentials)
-// in the IAM User Guide
-//
-// For more information about using GetSessionToken to create temporary credentials,
-// see Temporary Credentials for Users in Untrusted Environments (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getsessiontoken)
-// in the IAM User Guide.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for AWS Security Token Service's
-// API operation GetSessionToken for usage and error information.
-//
-// Returned Error Codes:
-// - ErrCodeRegionDisabledException "RegionDisabledException"
-// STS is not activated in the requested region for the account that is being
-// asked to generate credentials. The account administrator must use the IAM
-// console to activate STS in that region. For more information, see Activating
-// and Deactivating Amazon Web Services STS in an Amazon Web Services Region
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
-// in the IAM User Guide.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionToken
-func (c *STS) GetSessionToken(input *GetSessionTokenInput) (*GetSessionTokenOutput, error) {
- req, out := c.GetSessionTokenRequest(input)
- return out, req.Send()
-}
-
-// GetSessionTokenWithContext is the same as GetSessionToken with the addition of
-// the ability to pass a context and additional request options.
-//
-// See GetSessionToken for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *STS) GetSessionTokenWithContext(ctx aws.Context, input *GetSessionTokenInput, opts ...request.Option) (*GetSessionTokenOutput, error) {
- req, out := c.GetSessionTokenRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
-type AssumeRoleInput struct {
- _ struct{} `type:"structure"`
-
- // The duration, in seconds, of the role session. The value specified can range
- // from 900 seconds (15 minutes) up to the maximum session duration set for
- // the role. The maximum session duration setting can have a value from 1 hour
- // to 12 hours. If you specify a value higher than this setting or the administrator
- // setting (whichever is lower), the operation fails. For example, if you specify
- // a session duration of 12 hours, but your administrator set the maximum session
- // duration to 6 hours, your operation fails.
- //
- // Role chaining limits your Amazon Web Services CLI or Amazon Web Services
- // API role session to a maximum of one hour. When you use the AssumeRole API
- // operation to assume a role, you can specify the duration of your role session
- // with the DurationSeconds parameter. You can specify a parameter value of
- // up to 43200 seconds (12 hours), depending on the maximum session duration
- // setting for your role. However, if you assume a role using role chaining
- // and provide a DurationSeconds parameter value greater than one hour, the
- // operation fails. To learn how to view the maximum value for your role, see
- // View the Maximum Session Duration Setting for a Role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session)
- // in the IAM User Guide.
- //
- // By default, the value is set to 3600 seconds.
- //
- // The DurationSeconds parameter is separate from the duration of a console
- // session that you might request using the returned credentials. The request
- // to the federation endpoint for a console sign-in token takes a SessionDuration
- // parameter that specifies the maximum length of the console session. For more
- // information, see Creating a URL that Enables Federated Users to Access the
- // Amazon Web Services Management Console (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html)
- // in the IAM User Guide.
- DurationSeconds *int64 `min:"900" type:"integer"`
-
- // A unique identifier that might be required when you assume a role in another
- // account. If the administrator of the account to which the role belongs provided
- // you with an external ID, then provide that value in the ExternalId parameter.
- // This value can be any string, such as a passphrase or account number. A cross-account
- // role is usually set up to trust everyone in an account. Therefore, the administrator
- // of the trusting account might send an external ID to the administrator of
- // the trusted account. That way, only someone with the ID can assume the role,
- // rather than everyone in the account. For more information about the external
- // ID, see How to Use an External ID When Granting Access to Your Amazon Web
- // Services Resources to a Third Party (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html)
- // in the IAM User Guide.
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@:/-
- ExternalId *string `min:"2" type:"string"`
-
- // An IAM policy in JSON format that you want to use as an inline session policy.
- //
- // This parameter is optional. Passing policies to this operation returns new
- // temporary credentials. The resulting session's permissions are the intersection
- // of the role's identity-based policy and the session policies. You can use
- // the role's temporary credentials in subsequent Amazon Web Services API calls
- // to access resources in the account that owns the role. You cannot use session
- // policies to grant more permissions than those allowed by the identity-based
- // policy of the role that is being assumed. For more information, see Session
- // Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // in the IAM User Guide.
- //
- // The plaintext that you use for both inline and managed session policies can't
- // exceed 2,048 characters. The JSON policy characters can be any ASCII character
- // from the space character to the end of the valid character list (\u0020 through
- // \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage
- // return (\u000D) characters.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- Policy *string `min:"1" type:"string"`
-
- // The Amazon Resource Names (ARNs) of the IAM managed policies that you want
- // to use as managed session policies. The policies must exist in the same account
- // as the role.
- //
- // This parameter is optional. You can provide up to 10 managed policy ARNs.
- // However, the plaintext that you use for both inline and managed session policies
- // can't exceed 2,048 characters. For more information about ARNs, see Amazon
- // Resource Names (ARNs) and Amazon Web Services Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
- // in the Amazon Web Services General Reference.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- //
- // Passing policies to this operation returns new temporary credentials. The
- // resulting session's permissions are the intersection of the role's identity-based
- // policy and the session policies. You can use the role's temporary credentials
- // in subsequent Amazon Web Services API calls to access resources in the account
- // that owns the role. You cannot use session policies to grant more permissions
- // than those allowed by the identity-based policy of the role that is being
- // assumed. For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // in the IAM User Guide.
- PolicyArns []*PolicyDescriptorType `type:"list"`
-
- // The Amazon Resource Name (ARN) of the role to assume.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
-
- // An identifier for the assumed role session.
- //
- // Use the role session name to uniquely identify a session when the same role
- // is assumed by different principals or for different reasons. In cross-account
- // scenarios, the role session name is visible to, and can be logged by the
- // account that owns the role. The role session name is also used in the ARN
- // of the assumed role principal. This means that subsequent cross-account API
- // requests that use the temporary security credentials will expose the role
- // session name to the external account in their CloudTrail logs.
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@-
- //
- // RoleSessionName is a required field
- RoleSessionName *string `min:"2" type:"string" required:"true"`
-
- // The identification number of the MFA device that is associated with the user
- // who is making the AssumeRole call. Specify this value if the trust policy
- // of the role being assumed includes a condition that requires MFA authentication.
- // The value is either the serial number for a hardware device (such as GAHT12345678)
- // or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@-
- SerialNumber *string `min:"9" type:"string"`
-
- // The source identity specified by the principal that is calling the AssumeRole
- // operation.
- //
- // You can require users to specify a source identity when they assume a role.
- // You do this by using the sts:SourceIdentity condition key in a role trust
- // policy. You can use source identity information in CloudTrail logs to determine
- // who took actions with a role. You can use the aws:SourceIdentity condition
- // key to further control access to Amazon Web Services resources based on the
- // value of source identity. For more information about using source identity,
- // see Monitor and control actions taken with assumed roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html)
- // in the IAM User Guide.
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@-. You cannot
- // use a value that begins with the text aws:. This prefix is reserved for Amazon
- // Web Services internal use.
- SourceIdentity *string `min:"2" type:"string"`
-
- // A list of session tags that you want to pass. Each session tag consists of
- // a key name and an associated value. For more information about session tags,
- // see Tagging Amazon Web Services STS Sessions (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
- // in the IAM User Guide.
- //
- // This parameter is optional. You can pass up to 50 session tags. The plaintext
- // session tag keys can’t exceed 128 characters, and the values can’t exceed
- // 256 characters. For these and additional limits, see IAM and STS Character
- // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
- // in the IAM User Guide.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- //
- // You can pass a session tag with the same key as a tag that is already attached
- // to the role. When you do, session tags override a role tag with the same
- // key.
- //
- // Tag key–value pairs are not case sensitive, but case is preserved. This
- // means that you cannot have separate Department and department tag keys. Assume
- // that the role has the Department=Marketing tag and you pass the department=engineering
- // session tag. Department and department are not saved as separate tags, and
- // the session tag passed in the request takes precedence over the role tag.
- //
- // Additionally, if you used temporary credentials to perform this operation,
- // the new session inherits any transitive session tags from the calling session.
- // If you pass a session tag with the same key as an inherited tag, the operation
- // fails. To view the inherited tags for a session, see the CloudTrail logs.
- // For more information, see Viewing Session Tags in CloudTrail (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_ctlogs)
- // in the IAM User Guide.
- Tags []*Tag `type:"list"`
-
- // The value provided by the MFA device, if the trust policy of the role being
- // assumed requires MFA. (In other words, if the policy includes a condition
- // that tests for MFA). If the role being assumed requires MFA and if the TokenCode
- // value is missing or expired, the AssumeRole call returns an "access denied"
- // error.
- //
- // The format for this parameter, as described by its regex pattern, is a sequence
- // of six numeric digits.
- TokenCode *string `min:"6" type:"string"`
-
- // A list of keys for session tags that you want to set as transitive. If you
- // set a tag key as transitive, the corresponding key and value passes to subsequent
- // sessions in a role chain. For more information, see Chaining Roles with Session
- // Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining)
- // in the IAM User Guide.
- //
- // This parameter is optional. When you set session tags as transitive, the
- // session policy and session tags packed binary limit is not affected.
- //
- // If you choose not to specify a transitive tag key, then no tags are passed
- // from this session to any subsequent sessions.
- TransitiveTagKeys []*string `type:"list"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *AssumeRoleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssumeRoleInput"}
- if s.DurationSeconds != nil && *s.DurationSeconds < 900 {
- invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))
- }
- if s.ExternalId != nil && len(*s.ExternalId) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("ExternalId", 2))
- }
- if s.Policy != nil && len(*s.Policy) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Policy", 1))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.RoleSessionName == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleSessionName"))
- }
- if s.RoleSessionName != nil && len(*s.RoleSessionName) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("RoleSessionName", 2))
- }
- if s.SerialNumber != nil && len(*s.SerialNumber) < 9 {
- invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9))
- }
- if s.SourceIdentity != nil && len(*s.SourceIdentity) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("SourceIdentity", 2))
- }
- if s.TokenCode != nil && len(*s.TokenCode) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("TokenCode", 6))
- }
- if s.PolicyArns != nil {
- for i, v := range s.PolicyArns {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PolicyArns", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetDurationSeconds sets the DurationSeconds field's value.
-func (s *AssumeRoleInput) SetDurationSeconds(v int64) *AssumeRoleInput {
- s.DurationSeconds = &v
- return s
-}
-
-// SetExternalId sets the ExternalId field's value.
-func (s *AssumeRoleInput) SetExternalId(v string) *AssumeRoleInput {
- s.ExternalId = &v
- return s
-}
-
-// SetPolicy sets the Policy field's value.
-func (s *AssumeRoleInput) SetPolicy(v string) *AssumeRoleInput {
- s.Policy = &v
- return s
-}
-
-// SetPolicyArns sets the PolicyArns field's value.
-func (s *AssumeRoleInput) SetPolicyArns(v []*PolicyDescriptorType) *AssumeRoleInput {
- s.PolicyArns = v
- return s
-}
-
-// SetRoleArn sets the RoleArn field's value.
-func (s *AssumeRoleInput) SetRoleArn(v string) *AssumeRoleInput {
- s.RoleArn = &v
- return s
-}
-
-// SetRoleSessionName sets the RoleSessionName field's value.
-func (s *AssumeRoleInput) SetRoleSessionName(v string) *AssumeRoleInput {
- s.RoleSessionName = &v
- return s
-}
-
-// SetSerialNumber sets the SerialNumber field's value.
-func (s *AssumeRoleInput) SetSerialNumber(v string) *AssumeRoleInput {
- s.SerialNumber = &v
- return s
-}
-
-// SetSourceIdentity sets the SourceIdentity field's value.
-func (s *AssumeRoleInput) SetSourceIdentity(v string) *AssumeRoleInput {
- s.SourceIdentity = &v
- return s
-}
-
-// SetTags sets the Tags field's value.
-func (s *AssumeRoleInput) SetTags(v []*Tag) *AssumeRoleInput {
- s.Tags = v
- return s
-}
-
-// SetTokenCode sets the TokenCode field's value.
-func (s *AssumeRoleInput) SetTokenCode(v string) *AssumeRoleInput {
- s.TokenCode = &v
- return s
-}
-
-// SetTransitiveTagKeys sets the TransitiveTagKeys field's value.
-func (s *AssumeRoleInput) SetTransitiveTagKeys(v []*string) *AssumeRoleInput {
- s.TransitiveTagKeys = v
- return s
-}
-
-// Contains the response to a successful AssumeRole request, including temporary
-// Amazon Web Services credentials that can be used to make Amazon Web Services
-// requests.
-type AssumeRoleOutput struct {
- _ struct{} `type:"structure"`
-
- // The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers
- // that you can use to refer to the resulting temporary security credentials.
- // For example, you can reference these credentials as a principal in a resource-based
- // policy by using the ARN or assumed role ID. The ARN and ID include the RoleSessionName
- // that you specified when you called AssumeRole.
- AssumedRoleUser *AssumedRoleUser `type:"structure"`
-
- // The temporary security credentials, which include an access key ID, a secret
- // access key, and a security (or session) token.
- //
- // The size of the security token that STS API operations return is not fixed.
- // We strongly recommend that you make no assumptions about the maximum size.
- Credentials *Credentials `type:"structure"`
-
- // A percentage value that indicates the packed size of the session policies
- // and session tags combined passed in the request. The request fails if the
- // packed size is greater than 100 percent, which means the policies and tags
- // exceeded the allowed space.
- PackedPolicySize *int64 `type:"integer"`
-
- // The source identity specified by the principal that is calling the AssumeRole
- // operation.
- //
- // You can require users to specify a source identity when they assume a role.
- // You do this by using the sts:SourceIdentity condition key in a role trust
- // policy. You can use source identity information in CloudTrail logs to determine
- // who took actions with a role. You can use the aws:SourceIdentity condition
- // key to further control access to Amazon Web Services resources based on the
- // value of source identity. For more information about using source identity,
- // see Monitor and control actions taken with assumed roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html)
- // in the IAM User Guide.
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@-
- SourceIdentity *string `min:"2" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleOutput) GoString() string {
- return s.String()
-}
-
-// SetAssumedRoleUser sets the AssumedRoleUser field's value.
-func (s *AssumeRoleOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleOutput {
- s.AssumedRoleUser = v
- return s
-}
-
-// SetCredentials sets the Credentials field's value.
-func (s *AssumeRoleOutput) SetCredentials(v *Credentials) *AssumeRoleOutput {
- s.Credentials = v
- return s
-}
-
-// SetPackedPolicySize sets the PackedPolicySize field's value.
-func (s *AssumeRoleOutput) SetPackedPolicySize(v int64) *AssumeRoleOutput {
- s.PackedPolicySize = &v
- return s
-}
-
-// SetSourceIdentity sets the SourceIdentity field's value.
-func (s *AssumeRoleOutput) SetSourceIdentity(v string) *AssumeRoleOutput {
- s.SourceIdentity = &v
- return s
-}
-
-type AssumeRoleWithSAMLInput struct {
- _ struct{} `type:"structure"`
-
- // The duration, in seconds, of the role session. Your role session lasts for
- // the duration that you specify for the DurationSeconds parameter, or until
- // the time specified in the SAML authentication response's SessionNotOnOrAfter
- // value, whichever is shorter. You can provide a DurationSeconds value from
- // 900 seconds (15 minutes) up to the maximum session duration setting for the
- // role. This setting can have a value from 1 hour to 12 hours. If you specify
- // a value higher than this setting, the operation fails. For example, if you
- // specify a session duration of 12 hours, but your administrator set the maximum
- // session duration to 6 hours, your operation fails. To learn how to view the
- // maximum value for your role, see View the Maximum Session Duration Setting
- // for a Role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session)
- // in the IAM User Guide.
- //
- // By default, the value is set to 3600 seconds.
- //
- // The DurationSeconds parameter is separate from the duration of a console
- // session that you might request using the returned credentials. The request
- // to the federation endpoint for a console sign-in token takes a SessionDuration
- // parameter that specifies the maximum length of the console session. For more
- // information, see Creating a URL that Enables Federated Users to Access the
- // Amazon Web Services Management Console (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html)
- // in the IAM User Guide.
- DurationSeconds *int64 `min:"900" type:"integer"`
-
- // An IAM policy in JSON format that you want to use as an inline session policy.
- //
- // This parameter is optional. Passing policies to this operation returns new
- // temporary credentials. The resulting session's permissions are the intersection
- // of the role's identity-based policy and the session policies. You can use
- // the role's temporary credentials in subsequent Amazon Web Services API calls
- // to access resources in the account that owns the role. You cannot use session
- // policies to grant more permissions than those allowed by the identity-based
- // policy of the role that is being assumed. For more information, see Session
- // Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // in the IAM User Guide.
- //
- // The plaintext that you use for both inline and managed session policies can't
- // exceed 2,048 characters. The JSON policy characters can be any ASCII character
- // from the space character to the end of the valid character list (\u0020 through
- // \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage
- // return (\u000D) characters.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- Policy *string `min:"1" type:"string"`
-
- // The Amazon Resource Names (ARNs) of the IAM managed policies that you want
- // to use as managed session policies. The policies must exist in the same account
- // as the role.
- //
- // This parameter is optional. You can provide up to 10 managed policy ARNs.
- // However, the plaintext that you use for both inline and managed session policies
- // can't exceed 2,048 characters. For more information about ARNs, see Amazon
- // Resource Names (ARNs) and Amazon Web Services Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
- // in the Amazon Web Services General Reference.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- //
- // Passing policies to this operation returns new temporary credentials. The
- // resulting session's permissions are the intersection of the role's identity-based
- // policy and the session policies. You can use the role's temporary credentials
- // in subsequent Amazon Web Services API calls to access resources in the account
- // that owns the role. You cannot use session policies to grant more permissions
- // than those allowed by the identity-based policy of the role that is being
- // assumed. For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // in the IAM User Guide.
- PolicyArns []*PolicyDescriptorType `type:"list"`
-
- // The Amazon Resource Name (ARN) of the SAML provider in IAM that describes
- // the IdP.
- //
- // PrincipalArn is a required field
- PrincipalArn *string `min:"20" type:"string" required:"true"`
-
- // The Amazon Resource Name (ARN) of the role that the caller is assuming.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
-
- // The base64 encoded SAML authentication response provided by the IdP.
- //
- // For more information, see Configuring a Relying Party and Adding Claims (https://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html)
- // in the IAM User Guide.
- //
- // SAMLAssertion is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by AssumeRoleWithSAMLInput's
- // String and GoString methods.
- //
- // SAMLAssertion is a required field
- SAMLAssertion *string `min:"4" type:"string" required:"true" sensitive:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleWithSAMLInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleWithSAMLInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *AssumeRoleWithSAMLInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssumeRoleWithSAMLInput"}
- if s.DurationSeconds != nil && *s.DurationSeconds < 900 {
- invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))
- }
- if s.Policy != nil && len(*s.Policy) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Policy", 1))
- }
- if s.PrincipalArn == nil {
- invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
- }
- if s.PrincipalArn != nil && len(*s.PrincipalArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("PrincipalArn", 20))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.SAMLAssertion == nil {
- invalidParams.Add(request.NewErrParamRequired("SAMLAssertion"))
- }
- if s.SAMLAssertion != nil && len(*s.SAMLAssertion) < 4 {
- invalidParams.Add(request.NewErrParamMinLen("SAMLAssertion", 4))
- }
- if s.PolicyArns != nil {
- for i, v := range s.PolicyArns {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PolicyArns", i), err.(request.ErrInvalidParams))
- }
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetDurationSeconds sets the DurationSeconds field's value.
-func (s *AssumeRoleWithSAMLInput) SetDurationSeconds(v int64) *AssumeRoleWithSAMLInput {
- s.DurationSeconds = &v
- return s
-}
-
-// SetPolicy sets the Policy field's value.
-func (s *AssumeRoleWithSAMLInput) SetPolicy(v string) *AssumeRoleWithSAMLInput {
- s.Policy = &v
- return s
-}
-
-// SetPolicyArns sets the PolicyArns field's value.
-func (s *AssumeRoleWithSAMLInput) SetPolicyArns(v []*PolicyDescriptorType) *AssumeRoleWithSAMLInput {
- s.PolicyArns = v
- return s
-}
-
-// SetPrincipalArn sets the PrincipalArn field's value.
-func (s *AssumeRoleWithSAMLInput) SetPrincipalArn(v string) *AssumeRoleWithSAMLInput {
- s.PrincipalArn = &v
- return s
-}
-
-// SetRoleArn sets the RoleArn field's value.
-func (s *AssumeRoleWithSAMLInput) SetRoleArn(v string) *AssumeRoleWithSAMLInput {
- s.RoleArn = &v
- return s
-}
-
-// SetSAMLAssertion sets the SAMLAssertion field's value.
-func (s *AssumeRoleWithSAMLInput) SetSAMLAssertion(v string) *AssumeRoleWithSAMLInput {
- s.SAMLAssertion = &v
- return s
-}
-
-// Contains the response to a successful AssumeRoleWithSAML request, including
-// temporary Amazon Web Services credentials that can be used to make Amazon
-// Web Services requests.
-type AssumeRoleWithSAMLOutput struct {
- _ struct{} `type:"structure"`
-
- // The identifiers for the temporary security credentials that the operation
- // returns.
- AssumedRoleUser *AssumedRoleUser `type:"structure"`
-
- // The value of the Recipient attribute of the SubjectConfirmationData element
- // of the SAML assertion.
- Audience *string `type:"string"`
-
- // The temporary security credentials, which include an access key ID, a secret
- // access key, and a security (or session) token.
- //
- // The size of the security token that STS API operations return is not fixed.
- // We strongly recommend that you make no assumptions about the maximum size.
- Credentials *Credentials `type:"structure"`
-
- // The value of the Issuer element of the SAML assertion.
- Issuer *string `type:"string"`
-
- // A hash value based on the concatenation of the following:
- //
- // * The Issuer response value.
- //
- // * The Amazon Web Services account ID.
- //
- // * The friendly name (the last part of the ARN) of the SAML provider in
- // IAM.
- //
- // The combination of NameQualifier and Subject can be used to uniquely identify
- // a user.
- //
- // The following pseudocode shows how the hash value is calculated:
- //
- // BASE64 ( SHA1 ( "https://example.com/saml" + "123456789012" + "/MySAMLIdP"
- // ) )
- NameQualifier *string `type:"string"`
-
- // A percentage value that indicates the packed size of the session policies
- // and session tags combined passed in the request. The request fails if the
- // packed size is greater than 100 percent, which means the policies and tags
- // exceeded the allowed space.
- PackedPolicySize *int64 `type:"integer"`
-
- // The value in the SourceIdentity attribute in the SAML assertion.
- //
- // You can require users to set a source identity value when they assume a role.
- // You do this by using the sts:SourceIdentity condition key in a role trust
- // policy. That way, actions that are taken with the role are associated with
- // that user. After the source identity is set, the value cannot be changed.
- // It is present in the request for all actions that are taken by the role and
- // persists across chained role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts#iam-term-role-chaining)
- // sessions. You can configure your SAML identity provider to use an attribute
- // associated with your users, like user name or email, as the source identity
- // when calling AssumeRoleWithSAML. You do this by adding an attribute to the
- // SAML assertion. For more information about using source identity, see Monitor
- // and control actions taken with assumed roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html)
- // in the IAM User Guide.
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@-
- SourceIdentity *string `min:"2" type:"string"`
-
- // The value of the NameID element in the Subject element of the SAML assertion.
- Subject *string `type:"string"`
-
- // The format of the name ID, as defined by the Format attribute in the NameID
- // element of the SAML assertion. Typical examples of the format are transient
- // or persistent.
- //
- // If the format includes the prefix urn:oasis:names:tc:SAML:2.0:nameid-format,
- // that prefix is removed. For example, urn:oasis:names:tc:SAML:2.0:nameid-format:transient
- // is returned as transient. If the format includes any other prefix, the format
- // is returned with no modifications.
- SubjectType *string `type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleWithSAMLOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleWithSAMLOutput) GoString() string {
- return s.String()
-}
-
-// SetAssumedRoleUser sets the AssumedRoleUser field's value.
-func (s *AssumeRoleWithSAMLOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithSAMLOutput {
- s.AssumedRoleUser = v
- return s
-}
-
-// SetAudience sets the Audience field's value.
-func (s *AssumeRoleWithSAMLOutput) SetAudience(v string) *AssumeRoleWithSAMLOutput {
- s.Audience = &v
- return s
-}
-
-// SetCredentials sets the Credentials field's value.
-func (s *AssumeRoleWithSAMLOutput) SetCredentials(v *Credentials) *AssumeRoleWithSAMLOutput {
- s.Credentials = v
- return s
-}
-
-// SetIssuer sets the Issuer field's value.
-func (s *AssumeRoleWithSAMLOutput) SetIssuer(v string) *AssumeRoleWithSAMLOutput {
- s.Issuer = &v
- return s
-}
-
-// SetNameQualifier sets the NameQualifier field's value.
-func (s *AssumeRoleWithSAMLOutput) SetNameQualifier(v string) *AssumeRoleWithSAMLOutput {
- s.NameQualifier = &v
- return s
-}
-
-// SetPackedPolicySize sets the PackedPolicySize field's value.
-func (s *AssumeRoleWithSAMLOutput) SetPackedPolicySize(v int64) *AssumeRoleWithSAMLOutput {
- s.PackedPolicySize = &v
- return s
-}
-
-// SetSourceIdentity sets the SourceIdentity field's value.
-func (s *AssumeRoleWithSAMLOutput) SetSourceIdentity(v string) *AssumeRoleWithSAMLOutput {
- s.SourceIdentity = &v
- return s
-}
-
-// SetSubject sets the Subject field's value.
-func (s *AssumeRoleWithSAMLOutput) SetSubject(v string) *AssumeRoleWithSAMLOutput {
- s.Subject = &v
- return s
-}
-
-// SetSubjectType sets the SubjectType field's value.
-func (s *AssumeRoleWithSAMLOutput) SetSubjectType(v string) *AssumeRoleWithSAMLOutput {
- s.SubjectType = &v
- return s
-}
-
-type AssumeRoleWithWebIdentityInput struct {
- _ struct{} `type:"structure"`
-
- // The duration, in seconds, of the role session. The value can range from 900
- // seconds (15 minutes) up to the maximum session duration setting for the role.
- // This setting can have a value from 1 hour to 12 hours. If you specify a value
- // higher than this setting, the operation fails. For example, if you specify
- // a session duration of 12 hours, but your administrator set the maximum session
- // duration to 6 hours, your operation fails. To learn how to view the maximum
- // value for your role, see View the Maximum Session Duration Setting for a
- // Role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session)
- // in the IAM User Guide.
- //
- // By default, the value is set to 3600 seconds.
- //
- // The DurationSeconds parameter is separate from the duration of a console
- // session that you might request using the returned credentials. The request
- // to the federation endpoint for a console sign-in token takes a SessionDuration
- // parameter that specifies the maximum length of the console session. For more
- // information, see Creating a URL that Enables Federated Users to Access the
- // Amazon Web Services Management Console (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html)
- // in the IAM User Guide.
- DurationSeconds *int64 `min:"900" type:"integer"`
-
- // An IAM policy in JSON format that you want to use as an inline session policy.
- //
- // This parameter is optional. Passing policies to this operation returns new
- // temporary credentials. The resulting session's permissions are the intersection
- // of the role's identity-based policy and the session policies. You can use
- // the role's temporary credentials in subsequent Amazon Web Services API calls
- // to access resources in the account that owns the role. You cannot use session
- // policies to grant more permissions than those allowed by the identity-based
- // policy of the role that is being assumed. For more information, see Session
- // Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // in the IAM User Guide.
- //
- // The plaintext that you use for both inline and managed session policies can't
- // exceed 2,048 characters. The JSON policy characters can be any ASCII character
- // from the space character to the end of the valid character list (\u0020 through
- // \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage
- // return (\u000D) characters.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- Policy *string `min:"1" type:"string"`
-
- // The Amazon Resource Names (ARNs) of the IAM managed policies that you want
- // to use as managed session policies. The policies must exist in the same account
- // as the role.
- //
- // This parameter is optional. You can provide up to 10 managed policy ARNs.
- // However, the plaintext that you use for both inline and managed session policies
- // can't exceed 2,048 characters. For more information about ARNs, see Amazon
- // Resource Names (ARNs) and Amazon Web Services Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
- // in the Amazon Web Services General Reference.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- //
- // Passing policies to this operation returns new temporary credentials. The
- // resulting session's permissions are the intersection of the role's identity-based
- // policy and the session policies. You can use the role's temporary credentials
- // in subsequent Amazon Web Services API calls to access resources in the account
- // that owns the role. You cannot use session policies to grant more permissions
- // than those allowed by the identity-based policy of the role that is being
- // assumed. For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // in the IAM User Guide.
- PolicyArns []*PolicyDescriptorType `type:"list"`
-
- // The fully qualified host component of the domain name of the OAuth 2.0 identity
- // provider. Do not specify this value for an OpenID Connect identity provider.
- //
- // Currently www.amazon.com and graph.facebook.com are the only supported identity
- // providers for OAuth 2.0 access tokens. Do not include URL schemes and port
- // numbers.
- //
- // Do not specify this value for OpenID Connect ID tokens.
- ProviderId *string `min:"4" type:"string"`
-
- // The Amazon Resource Name (ARN) of the role that the caller is assuming.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
-
- // An identifier for the assumed role session. Typically, you pass the name
- // or identifier that is associated with the user who is using your application.
- // That way, the temporary security credentials that your application will use
- // are associated with that user. This session name is included as part of the
- // ARN and assumed role ID in the AssumedRoleUser response element.
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@-
- //
- // RoleSessionName is a required field
- RoleSessionName *string `min:"2" type:"string" required:"true"`
-
- // The OAuth 2.0 access token or OpenID Connect ID token that is provided by
- // the identity provider. Your application must get this token by authenticating
- // the user who is using your application with a web identity provider before
- // the application makes an AssumeRoleWithWebIdentity call.
- //
- // WebIdentityToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by AssumeRoleWithWebIdentityInput's
- // String and GoString methods.
- //
- // WebIdentityToken is a required field
- WebIdentityToken *string `min:"4" type:"string" required:"true" sensitive:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleWithWebIdentityInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleWithWebIdentityInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *AssumeRoleWithWebIdentityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssumeRoleWithWebIdentityInput"}
- if s.DurationSeconds != nil && *s.DurationSeconds < 900 {
- invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))
- }
- if s.Policy != nil && len(*s.Policy) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Policy", 1))
- }
- if s.ProviderId != nil && len(*s.ProviderId) < 4 {
- invalidParams.Add(request.NewErrParamMinLen("ProviderId", 4))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.RoleSessionName == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleSessionName"))
- }
- if s.RoleSessionName != nil && len(*s.RoleSessionName) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("RoleSessionName", 2))
- }
- if s.WebIdentityToken == nil {
- invalidParams.Add(request.NewErrParamRequired("WebIdentityToken"))
- }
- if s.WebIdentityToken != nil && len(*s.WebIdentityToken) < 4 {
- invalidParams.Add(request.NewErrParamMinLen("WebIdentityToken", 4))
- }
- if s.PolicyArns != nil {
- for i, v := range s.PolicyArns {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PolicyArns", i), err.(request.ErrInvalidParams))
- }
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetDurationSeconds sets the DurationSeconds field's value.
-func (s *AssumeRoleWithWebIdentityInput) SetDurationSeconds(v int64) *AssumeRoleWithWebIdentityInput {
- s.DurationSeconds = &v
- return s
-}
-
-// SetPolicy sets the Policy field's value.
-func (s *AssumeRoleWithWebIdentityInput) SetPolicy(v string) *AssumeRoleWithWebIdentityInput {
- s.Policy = &v
- return s
-}
-
-// SetPolicyArns sets the PolicyArns field's value.
-func (s *AssumeRoleWithWebIdentityInput) SetPolicyArns(v []*PolicyDescriptorType) *AssumeRoleWithWebIdentityInput {
- s.PolicyArns = v
- return s
-}
-
-// SetProviderId sets the ProviderId field's value.
-func (s *AssumeRoleWithWebIdentityInput) SetProviderId(v string) *AssumeRoleWithWebIdentityInput {
- s.ProviderId = &v
- return s
-}
-
-// SetRoleArn sets the RoleArn field's value.
-func (s *AssumeRoleWithWebIdentityInput) SetRoleArn(v string) *AssumeRoleWithWebIdentityInput {
- s.RoleArn = &v
- return s
-}
-
-// SetRoleSessionName sets the RoleSessionName field's value.
-func (s *AssumeRoleWithWebIdentityInput) SetRoleSessionName(v string) *AssumeRoleWithWebIdentityInput {
- s.RoleSessionName = &v
- return s
-}
-
-// SetWebIdentityToken sets the WebIdentityToken field's value.
-func (s *AssumeRoleWithWebIdentityInput) SetWebIdentityToken(v string) *AssumeRoleWithWebIdentityInput {
- s.WebIdentityToken = &v
- return s
-}
-
-// Contains the response to a successful AssumeRoleWithWebIdentity request,
-// including temporary Amazon Web Services credentials that can be used to make
-// Amazon Web Services requests.
-type AssumeRoleWithWebIdentityOutput struct {
- _ struct{} `type:"structure"`
-
- // The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers
- // that you can use to refer to the resulting temporary security credentials.
- // For example, you can reference these credentials as a principal in a resource-based
- // policy by using the ARN or assumed role ID. The ARN and ID include the RoleSessionName
- // that you specified when you called AssumeRole.
- AssumedRoleUser *AssumedRoleUser `type:"structure"`
-
- // The intended audience (also known as client ID) of the web identity token.
- // This is traditionally the client identifier issued to the application that
- // requested the web identity token.
- Audience *string `type:"string"`
-
- // The temporary security credentials, which include an access key ID, a secret
- // access key, and a security token.
- //
- // The size of the security token that STS API operations return is not fixed.
- // We strongly recommend that you make no assumptions about the maximum size.
- Credentials *Credentials `type:"structure"`
-
- // A percentage value that indicates the packed size of the session policies
- // and session tags combined passed in the request. The request fails if the
- // packed size is greater than 100 percent, which means the policies and tags
- // exceeded the allowed space.
- PackedPolicySize *int64 `type:"integer"`
-
- // The issuing authority of the web identity token presented. For OpenID Connect
- // ID tokens, this contains the value of the iss field. For OAuth 2.0 access
- // tokens, this contains the value of the ProviderId parameter that was passed
- // in the AssumeRoleWithWebIdentity request.
- Provider *string `type:"string"`
-
- // The value of the source identity that is returned in the JSON web token (JWT)
- // from the identity provider.
- //
- // You can require users to set a source identity value when they assume a role.
- // You do this by using the sts:SourceIdentity condition key in a role trust
- // policy. That way, actions that are taken with the role are associated with
- // that user. After the source identity is set, the value cannot be changed.
- // It is present in the request for all actions that are taken by the role and
- // persists across chained role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts#iam-term-role-chaining)
- // sessions. You can configure your identity provider to use an attribute associated
- // with your users, like user name or email, as the source identity when calling
- // AssumeRoleWithWebIdentity. You do this by adding a claim to the JSON web
- // token. To learn more about OIDC tokens and claims, see Using Tokens with
- // User Pools (https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html)
- // in the Amazon Cognito Developer Guide. For more information about using source
- // identity, see Monitor and control actions taken with assumed roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html)
- // in the IAM User Guide.
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@-
- SourceIdentity *string `min:"2" type:"string"`
-
- // The unique user identifier that is returned by the identity provider. This
- // identifier is associated with the WebIdentityToken that was submitted with
- // the AssumeRoleWithWebIdentity call. The identifier is typically unique to
- // the user and the application that acquired the WebIdentityToken (pairwise
- // identifier). For OpenID Connect ID tokens, this field contains the value
- // returned by the identity provider as the token's sub (Subject) claim.
- SubjectFromWebIdentityToken *string `min:"6" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleWithWebIdentityOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumeRoleWithWebIdentityOutput) GoString() string {
- return s.String()
-}
-
-// SetAssumedRoleUser sets the AssumedRoleUser field's value.
-func (s *AssumeRoleWithWebIdentityOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithWebIdentityOutput {
- s.AssumedRoleUser = v
- return s
-}
-
-// SetAudience sets the Audience field's value.
-func (s *AssumeRoleWithWebIdentityOutput) SetAudience(v string) *AssumeRoleWithWebIdentityOutput {
- s.Audience = &v
- return s
-}
-
-// SetCredentials sets the Credentials field's value.
-func (s *AssumeRoleWithWebIdentityOutput) SetCredentials(v *Credentials) *AssumeRoleWithWebIdentityOutput {
- s.Credentials = v
- return s
-}
-
-// SetPackedPolicySize sets the PackedPolicySize field's value.
-func (s *AssumeRoleWithWebIdentityOutput) SetPackedPolicySize(v int64) *AssumeRoleWithWebIdentityOutput {
- s.PackedPolicySize = &v
- return s
-}
-
-// SetProvider sets the Provider field's value.
-func (s *AssumeRoleWithWebIdentityOutput) SetProvider(v string) *AssumeRoleWithWebIdentityOutput {
- s.Provider = &v
- return s
-}
-
-// SetSourceIdentity sets the SourceIdentity field's value.
-func (s *AssumeRoleWithWebIdentityOutput) SetSourceIdentity(v string) *AssumeRoleWithWebIdentityOutput {
- s.SourceIdentity = &v
- return s
-}
-
-// SetSubjectFromWebIdentityToken sets the SubjectFromWebIdentityToken field's value.
-func (s *AssumeRoleWithWebIdentityOutput) SetSubjectFromWebIdentityToken(v string) *AssumeRoleWithWebIdentityOutput {
- s.SubjectFromWebIdentityToken = &v
- return s
-}
-
-// The identifiers for the temporary security credentials that the operation
-// returns.
-type AssumedRoleUser struct {
- _ struct{} `type:"structure"`
-
- // The ARN of the temporary security credentials that are returned from the
- // AssumeRole action. For more information about ARNs and how to use them in
- // policies, see IAM Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
- // in the IAM User Guide.
- //
- // Arn is a required field
- Arn *string `min:"20" type:"string" required:"true"`
-
- // A unique identifier that contains the role ID and the role session name of
- // the role that is being assumed. The role ID is generated by Amazon Web Services
- // when the role is created.
- //
- // AssumedRoleId is a required field
- AssumedRoleId *string `min:"2" type:"string" required:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumedRoleUser) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AssumedRoleUser) GoString() string {
- return s.String()
-}
-
-// SetArn sets the Arn field's value.
-func (s *AssumedRoleUser) SetArn(v string) *AssumedRoleUser {
- s.Arn = &v
- return s
-}
-
-// SetAssumedRoleId sets the AssumedRoleId field's value.
-func (s *AssumedRoleUser) SetAssumedRoleId(v string) *AssumedRoleUser {
- s.AssumedRoleId = &v
- return s
-}
-
-// Amazon Web Services credentials for API authentication.
-type Credentials struct {
- _ struct{} `type:"structure"`
-
- // The access key ID that identifies the temporary security credentials.
- //
- // AccessKeyId is a required field
- AccessKeyId *string `min:"16" type:"string" required:"true"`
-
- // The date on which the current credentials expire.
- //
- // Expiration is a required field
- Expiration *time.Time `type:"timestamp" required:"true"`
-
- // The secret access key that can be used to sign requests.
- //
- // SecretAccessKey is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by Credentials's
- // String and GoString methods.
- //
- // SecretAccessKey is a required field
- SecretAccessKey *string `type:"string" required:"true" sensitive:"true"`
-
- // The token that users must pass to the service API to use the temporary credentials.
- //
- // SessionToken is a required field
- SessionToken *string `type:"string" required:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s Credentials) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s Credentials) GoString() string {
- return s.String()
-}
-
-// SetAccessKeyId sets the AccessKeyId field's value.
-func (s *Credentials) SetAccessKeyId(v string) *Credentials {
- s.AccessKeyId = &v
- return s
-}
-
-// SetExpiration sets the Expiration field's value.
-func (s *Credentials) SetExpiration(v time.Time) *Credentials {
- s.Expiration = &v
- return s
-}
-
-// SetSecretAccessKey sets the SecretAccessKey field's value.
-func (s *Credentials) SetSecretAccessKey(v string) *Credentials {
- s.SecretAccessKey = &v
- return s
-}
-
-// SetSessionToken sets the SessionToken field's value.
-func (s *Credentials) SetSessionToken(v string) *Credentials {
- s.SessionToken = &v
- return s
-}
-
-type DecodeAuthorizationMessageInput struct {
- _ struct{} `type:"structure"`
-
- // The encoded message that was returned with the response.
- //
- // EncodedMessage is a required field
- EncodedMessage *string `min:"1" type:"string" required:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DecodeAuthorizationMessageInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DecodeAuthorizationMessageInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DecodeAuthorizationMessageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DecodeAuthorizationMessageInput"}
- if s.EncodedMessage == nil {
- invalidParams.Add(request.NewErrParamRequired("EncodedMessage"))
- }
- if s.EncodedMessage != nil && len(*s.EncodedMessage) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("EncodedMessage", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetEncodedMessage sets the EncodedMessage field's value.
-func (s *DecodeAuthorizationMessageInput) SetEncodedMessage(v string) *DecodeAuthorizationMessageInput {
- s.EncodedMessage = &v
- return s
-}
-
-// A document that contains additional information about the authorization status
-// of a request from an encoded message that is returned in response to an Amazon
-// Web Services request.
-type DecodeAuthorizationMessageOutput struct {
- _ struct{} `type:"structure"`
-
- // The API returns a response with the decoded message.
- DecodedMessage *string `type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DecodeAuthorizationMessageOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DecodeAuthorizationMessageOutput) GoString() string {
- return s.String()
-}
-
-// SetDecodedMessage sets the DecodedMessage field's value.
-func (s *DecodeAuthorizationMessageOutput) SetDecodedMessage(v string) *DecodeAuthorizationMessageOutput {
- s.DecodedMessage = &v
- return s
-}
-
-// Identifiers for the federated user that is associated with the credentials.
-type FederatedUser struct {
- _ struct{} `type:"structure"`
-
- // The ARN that specifies the federated user that is associated with the credentials.
- // For more information about ARNs and how to use them in policies, see IAM
- // Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
- // in the IAM User Guide.
- //
- // Arn is a required field
- Arn *string `min:"20" type:"string" required:"true"`
-
- // The string that identifies the federated user associated with the credentials,
- // similar to the unique ID of an IAM user.
- //
- // FederatedUserId is a required field
- FederatedUserId *string `min:"2" type:"string" required:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s FederatedUser) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s FederatedUser) GoString() string {
- return s.String()
-}
-
-// SetArn sets the Arn field's value.
-func (s *FederatedUser) SetArn(v string) *FederatedUser {
- s.Arn = &v
- return s
-}
-
-// SetFederatedUserId sets the FederatedUserId field's value.
-func (s *FederatedUser) SetFederatedUserId(v string) *FederatedUser {
- s.FederatedUserId = &v
- return s
-}
-
-type GetAccessKeyInfoInput struct {
- _ struct{} `type:"structure"`
-
- // The identifier of an access key.
- //
- // This parameter allows (through its regex pattern) a string of characters
- // that can consist of any upper- or lowercase letter or digit.
- //
- // AccessKeyId is a required field
- AccessKeyId *string `min:"16" type:"string" required:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetAccessKeyInfoInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetAccessKeyInfoInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetAccessKeyInfoInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAccessKeyInfoInput"}
- if s.AccessKeyId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessKeyId"))
- }
- if s.AccessKeyId != nil && len(*s.AccessKeyId) < 16 {
- invalidParams.Add(request.NewErrParamMinLen("AccessKeyId", 16))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccessKeyId sets the AccessKeyId field's value.
-func (s *GetAccessKeyInfoInput) SetAccessKeyId(v string) *GetAccessKeyInfoInput {
- s.AccessKeyId = &v
- return s
-}
-
-type GetAccessKeyInfoOutput struct {
- _ struct{} `type:"structure"`
-
- // The number used to identify the Amazon Web Services account.
- Account *string `type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetAccessKeyInfoOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetAccessKeyInfoOutput) GoString() string {
- return s.String()
-}
-
-// SetAccount sets the Account field's value.
-func (s *GetAccessKeyInfoOutput) SetAccount(v string) *GetAccessKeyInfoOutput {
- s.Account = &v
- return s
-}
-
-type GetCallerIdentityInput struct {
- _ struct{} `type:"structure"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetCallerIdentityInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetCallerIdentityInput) GoString() string {
- return s.String()
-}
-
-// Contains the response to a successful GetCallerIdentity request, including
-// information about the entity making the request.
-type GetCallerIdentityOutput struct {
- _ struct{} `type:"structure"`
-
- // The Amazon Web Services account ID number of the account that owns or contains
- // the calling entity.
- Account *string `type:"string"`
-
- // The Amazon Web Services ARN associated with the calling entity.
- Arn *string `min:"20" type:"string"`
-
- // The unique identifier of the calling entity. The exact value depends on the
- // type of entity that is making the call. The values returned are those listed
- // in the aws:userid column in the Principal table (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable)
- // found on the Policy Variables reference page in the IAM User Guide.
- UserId *string `type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetCallerIdentityOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetCallerIdentityOutput) GoString() string {
- return s.String()
-}
-
-// SetAccount sets the Account field's value.
-func (s *GetCallerIdentityOutput) SetAccount(v string) *GetCallerIdentityOutput {
- s.Account = &v
- return s
-}
-
-// SetArn sets the Arn field's value.
-func (s *GetCallerIdentityOutput) SetArn(v string) *GetCallerIdentityOutput {
- s.Arn = &v
- return s
-}
-
-// SetUserId sets the UserId field's value.
-func (s *GetCallerIdentityOutput) SetUserId(v string) *GetCallerIdentityOutput {
- s.UserId = &v
- return s
-}
-
-type GetFederationTokenInput struct {
- _ struct{} `type:"structure"`
-
- // The duration, in seconds, that the session should last. Acceptable durations
- // for federation sessions range from 900 seconds (15 minutes) to 129,600 seconds
- // (36 hours), with 43,200 seconds (12 hours) as the default. Sessions obtained
- // using root user credentials are restricted to a maximum of 3,600 seconds
- // (one hour). If the specified duration is longer than one hour, the session
- // obtained by using root user credentials defaults to one hour.
- DurationSeconds *int64 `min:"900" type:"integer"`
-
- // The name of the federated user. The name is used as an identifier for the
- // temporary security credentials (such as Bob). For example, you can reference
- // the federated user name in a resource-based policy, such as in an Amazon
- // S3 bucket policy.
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@-
- //
- // Name is a required field
- Name *string `min:"2" type:"string" required:"true"`
-
- // An IAM policy in JSON format that you want to use as an inline session policy.
- //
- // You must pass an inline or managed session policy (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // to this operation. You can pass a single JSON policy document to use as an
- // inline session policy. You can also specify up to 10 managed policy Amazon
- // Resource Names (ARNs) to use as managed session policies.
- //
- // This parameter is optional. However, if you do not pass any session policies,
- // then the resulting federated user session has no permissions.
- //
- // When you pass session policies, the session permissions are the intersection
- // of the IAM user policies and the session policies that you pass. This gives
- // you a way to further restrict the permissions for a federated user. You cannot
- // use session policies to grant more permissions than those that are defined
- // in the permissions policy of the IAM user. For more information, see Session
- // Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // in the IAM User Guide.
- //
- // The resulting credentials can be used to access a resource that has a resource-based
- // policy. If that policy specifically references the federated user session
- // in the Principal element of the policy, the session has the permissions allowed
- // by the policy. These permissions are granted in addition to the permissions
- // that are granted by the session policies.
- //
- // The plaintext that you use for both inline and managed session policies can't
- // exceed 2,048 characters. The JSON policy characters can be any ASCII character
- // from the space character to the end of the valid character list (\u0020 through
- // \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage
- // return (\u000D) characters.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- Policy *string `min:"1" type:"string"`
-
- // The Amazon Resource Names (ARNs) of the IAM managed policies that you want
- // to use as a managed session policy. The policies must exist in the same account
- // as the IAM user that is requesting federated access.
- //
- // You must pass an inline or managed session policy (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // to this operation. You can pass a single JSON policy document to use as an
- // inline session policy. You can also specify up to 10 managed policy Amazon
- // Resource Names (ARNs) to use as managed session policies. The plaintext that
- // you use for both inline and managed session policies can't exceed 2,048 characters.
- // You can provide up to 10 managed policy ARNs. For more information about
- // ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces
- // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
- // in the Amazon Web Services General Reference.
- //
- // This parameter is optional. However, if you do not pass any session policies,
- // then the resulting federated user session has no permissions.
- //
- // When you pass session policies, the session permissions are the intersection
- // of the IAM user policies and the session policies that you pass. This gives
- // you a way to further restrict the permissions for a federated user. You cannot
- // use session policies to grant more permissions than those that are defined
- // in the permissions policy of the IAM user. For more information, see Session
- // Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // in the IAM User Guide.
- //
- // The resulting credentials can be used to access a resource that has a resource-based
- // policy. If that policy specifically references the federated user session
- // in the Principal element of the policy, the session has the permissions allowed
- // by the policy. These permissions are granted in addition to the permissions
- // that are granted by the session policies.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- PolicyArns []*PolicyDescriptorType `type:"list"`
-
- // A list of session tags. Each session tag consists of a key name and an associated
- // value. For more information about session tags, see Passing Session Tags
- // in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
- // in the IAM User Guide.
- //
- // This parameter is optional. You can pass up to 50 session tags. The plaintext
- // session tag keys can’t exceed 128 characters and the values can’t exceed
- // 256 characters. For these and additional limits, see IAM and STS Character
- // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
- // in the IAM User Guide.
- //
- // An Amazon Web Services conversion compresses the passed inline session policy,
- // managed policy ARNs, and session tags into a packed binary format that has
- // a separate limit. Your request can fail for this limit even if your plaintext
- // meets the other requirements. The PackedPolicySize response element indicates
- // by percentage how close the policies and tags for your request are to the
- // upper size limit.
- //
- // You can pass a session tag with the same key as a tag that is already attached
- // to the user you are federating. When you do, session tags override a user
- // tag with the same key.
- //
- // Tag key–value pairs are not case sensitive, but case is preserved. This
- // means that you cannot have separate Department and department tag keys. Assume
- // that the role has the Department=Marketing tag and you pass the department=engineering
- // session tag. Department and department are not saved as separate tags, and
- // the session tag passed in the request takes precedence over the role tag.
- Tags []*Tag `type:"list"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetFederationTokenInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetFederationTokenInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetFederationTokenInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetFederationTokenInput"}
- if s.DurationSeconds != nil && *s.DurationSeconds < 900 {
- invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 2))
- }
- if s.Policy != nil && len(*s.Policy) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Policy", 1))
- }
- if s.PolicyArns != nil {
- for i, v := range s.PolicyArns {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PolicyArns", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetDurationSeconds sets the DurationSeconds field's value.
-func (s *GetFederationTokenInput) SetDurationSeconds(v int64) *GetFederationTokenInput {
- s.DurationSeconds = &v
- return s
-}
-
-// SetName sets the Name field's value.
-func (s *GetFederationTokenInput) SetName(v string) *GetFederationTokenInput {
- s.Name = &v
- return s
-}
-
-// SetPolicy sets the Policy field's value.
-func (s *GetFederationTokenInput) SetPolicy(v string) *GetFederationTokenInput {
- s.Policy = &v
- return s
-}
-
-// SetPolicyArns sets the PolicyArns field's value.
-func (s *GetFederationTokenInput) SetPolicyArns(v []*PolicyDescriptorType) *GetFederationTokenInput {
- s.PolicyArns = v
- return s
-}
-
-// SetTags sets the Tags field's value.
-func (s *GetFederationTokenInput) SetTags(v []*Tag) *GetFederationTokenInput {
- s.Tags = v
- return s
-}
-
-// Contains the response to a successful GetFederationToken request, including
-// temporary Amazon Web Services credentials that can be used to make Amazon
-// Web Services requests.
-type GetFederationTokenOutput struct {
- _ struct{} `type:"structure"`
-
- // The temporary security credentials, which include an access key ID, a secret
- // access key, and a security (or session) token.
- //
- // The size of the security token that STS API operations return is not fixed.
- // We strongly recommend that you make no assumptions about the maximum size.
- Credentials *Credentials `type:"structure"`
-
- // Identifiers for the federated user associated with the credentials (such
- // as arn:aws:sts::123456789012:federated-user/Bob or 123456789012:Bob). You
- // can use the federated user's ARN in your resource-based policies, such as
- // an Amazon S3 bucket policy.
- FederatedUser *FederatedUser `type:"structure"`
-
- // A percentage value that indicates the packed size of the session policies
- // and session tags combined passed in the request. The request fails if the
- // packed size is greater than 100 percent, which means the policies and tags
- // exceeded the allowed space.
- PackedPolicySize *int64 `type:"integer"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetFederationTokenOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetFederationTokenOutput) GoString() string {
- return s.String()
-}
-
-// SetCredentials sets the Credentials field's value.
-func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput {
- s.Credentials = v
- return s
-}
-
-// SetFederatedUser sets the FederatedUser field's value.
-func (s *GetFederationTokenOutput) SetFederatedUser(v *FederatedUser) *GetFederationTokenOutput {
- s.FederatedUser = v
- return s
-}
-
-// SetPackedPolicySize sets the PackedPolicySize field's value.
-func (s *GetFederationTokenOutput) SetPackedPolicySize(v int64) *GetFederationTokenOutput {
- s.PackedPolicySize = &v
- return s
-}
-
-type GetSessionTokenInput struct {
- _ struct{} `type:"structure"`
-
- // The duration, in seconds, that the credentials should remain valid. Acceptable
- // durations for IAM user sessions range from 900 seconds (15 minutes) to 129,600
- // seconds (36 hours), with 43,200 seconds (12 hours) as the default. Sessions
- // for Amazon Web Services account owners are restricted to a maximum of 3,600
- // seconds (one hour). If the duration is longer than one hour, the session
- // for Amazon Web Services account owners defaults to one hour.
- DurationSeconds *int64 `min:"900" type:"integer"`
-
- // The identification number of the MFA device that is associated with the IAM
- // user who is making the GetSessionToken call. Specify this value if the IAM
- // user has a policy that requires MFA authentication. The value is either the
- // serial number for a hardware device (such as GAHT12345678) or an Amazon Resource
- // Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).
- // You can find the device for an IAM user by going to the Amazon Web Services
- // Management Console and viewing the user's security credentials.
- //
- // The regex used to validate this parameter is a string of characters consisting
- // of upper- and lower-case alphanumeric characters with no spaces. You can
- // also include underscores or any of the following characters: =,.@:/-
- SerialNumber *string `min:"9" type:"string"`
-
- // The value provided by the MFA device, if MFA is required. If any policy requires
- // the IAM user to submit an MFA code, specify this value. If MFA authentication
- // is required, the user must provide a code when requesting a set of temporary
- // security credentials. A user who fails to provide the code receives an "access
- // denied" response when requesting resources that require MFA authentication.
- //
- // The format for this parameter, as described by its regex pattern, is a sequence
- // of six numeric digits.
- TokenCode *string `min:"6" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetSessionTokenInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetSessionTokenInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetSessionTokenInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetSessionTokenInput"}
- if s.DurationSeconds != nil && *s.DurationSeconds < 900 {
- invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))
- }
- if s.SerialNumber != nil && len(*s.SerialNumber) < 9 {
- invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9))
- }
- if s.TokenCode != nil && len(*s.TokenCode) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("TokenCode", 6))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetDurationSeconds sets the DurationSeconds field's value.
-func (s *GetSessionTokenInput) SetDurationSeconds(v int64) *GetSessionTokenInput {
- s.DurationSeconds = &v
- return s
-}
-
-// SetSerialNumber sets the SerialNumber field's value.
-func (s *GetSessionTokenInput) SetSerialNumber(v string) *GetSessionTokenInput {
- s.SerialNumber = &v
- return s
-}
-
-// SetTokenCode sets the TokenCode field's value.
-func (s *GetSessionTokenInput) SetTokenCode(v string) *GetSessionTokenInput {
- s.TokenCode = &v
- return s
-}
-
-// Contains the response to a successful GetSessionToken request, including
-// temporary Amazon Web Services credentials that can be used to make Amazon
-// Web Services requests.
-type GetSessionTokenOutput struct {
- _ struct{} `type:"structure"`
-
- // The temporary security credentials, which include an access key ID, a secret
- // access key, and a security (or session) token.
- //
- // The size of the security token that STS API operations return is not fixed.
- // We strongly recommend that you make no assumptions about the maximum size.
- Credentials *Credentials `type:"structure"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetSessionTokenOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetSessionTokenOutput) GoString() string {
- return s.String()
-}
-
-// SetCredentials sets the Credentials field's value.
-func (s *GetSessionTokenOutput) SetCredentials(v *Credentials) *GetSessionTokenOutput {
- s.Credentials = v
- return s
-}
-
-// A reference to the IAM managed policy that is passed as a session policy
-// for a role session or a federated user session.
-type PolicyDescriptorType struct {
- _ struct{} `type:"structure"`
-
- // The Amazon Resource Name (ARN) of the IAM managed policy to use as a session
- // policy for the role. For more information about ARNs, see Amazon Resource
- // Names (ARNs) and Amazon Web Services Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
- // in the Amazon Web Services General Reference.
- Arn *string `locationName:"arn" min:"20" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PolicyDescriptorType) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PolicyDescriptorType) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *PolicyDescriptorType) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PolicyDescriptorType"}
- if s.Arn != nil && len(*s.Arn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("Arn", 20))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetArn sets the Arn field's value.
-func (s *PolicyDescriptorType) SetArn(v string) *PolicyDescriptorType {
- s.Arn = &v
- return s
-}
-
-// You can pass custom key-value pair attributes when you assume a role or federate
-// a user. These are called session tags. You can then use the session tags
-// to control access to resources. For more information, see Tagging Amazon
-// Web Services STS Sessions (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
-// in the IAM User Guide.
-type Tag struct {
- _ struct{} `type:"structure"`
-
- // The key for a session tag.
- //
- // You can pass up to 50 session tags. The plain text session tag keys can’t
- // exceed 128 characters. For these and additional limits, see IAM and STS Character
- // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
- // in the IAM User Guide.
- //
- // Key is a required field
- Key *string `min:"1" type:"string" required:"true"`
-
- // The value for a session tag.
- //
- // You can pass up to 50 session tags. The plain text session tag values can’t
- // exceed 256 characters. For these and additional limits, see IAM and STS Character
- // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
- // in the IAM User Guide.
- //
- // Value is a required field
- Value *string `type:"string" required:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s Tag) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s Tag) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *Tag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Tag"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetKey sets the Key field's value.
-func (s *Tag) SetKey(v string) *Tag {
- s.Key = &v
- return s
-}
-
-// SetValue sets the Value field's value.
-func (s *Tag) SetValue(v string) *Tag {
- s.Value = &v
- return s
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/sts/customizations.go
deleted file mode 100644
index d5307fcaa..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sts/customizations.go
+++ /dev/null
@@ -1,11 +0,0 @@
-package sts
-
-import "github.com/aws/aws-sdk-go/aws/request"
-
-func init() {
- initRequest = customizeRequest
-}
-
-func customizeRequest(r *request.Request) {
- r.RetryErrorCodes = append(r.RetryErrorCodes, ErrCodeIDPCommunicationErrorException)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/doc.go b/vendor/github.com/aws/aws-sdk-go/service/sts/doc.go
deleted file mode 100644
index ea1d9eb0c..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sts/doc.go
+++ /dev/null
@@ -1,31 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-// Package sts provides the client and types for making API
-// requests to AWS Security Token Service.
-//
-// Security Token Service (STS) enables you to request temporary, limited-privilege
-// credentials for users. This guide provides descriptions of the STS API. For
-// more information about using this service, see Temporary Security Credentials
-// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html).
-//
-// See https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15 for more information on this service.
-//
-// See sts package documentation for more information.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/sts/
-//
-// # Using the Client
-//
-// To contact AWS Security Token Service 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.
-//
-// See the SDK's documentation for more information on how to use the SDK.
-// https://docs.aws.amazon.com/sdk-for-go/api/
-//
-// See aws.Config documentation for more information on configuring SDK clients.
-// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
-//
-// See the AWS Security Token Service client STS for more
-// information on creating client for this service.
-// https://docs.aws.amazon.com/sdk-for-go/api/service/sts/#New
-package sts
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go
deleted file mode 100644
index b680bbd5d..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go
+++ /dev/null
@@ -1,84 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package sts
-
-const (
-
- // ErrCodeExpiredTokenException for service response error code
- // "ExpiredTokenException".
- //
- // The web identity token that was passed is expired or is not valid. Get a
- // new identity token from the identity provider and then retry the request.
- ErrCodeExpiredTokenException = "ExpiredTokenException"
-
- // ErrCodeIDPCommunicationErrorException for service response error code
- // "IDPCommunicationError".
- //
- // The request could not be fulfilled because the identity provider (IDP) that
- // was asked to verify the incoming identity token could not be reached. This
- // is often a transient error caused by network conditions. Retry the request
- // a limited number of times so that you don't exceed the request rate. If the
- // error persists, the identity provider might be down or not responding.
- ErrCodeIDPCommunicationErrorException = "IDPCommunicationError"
-
- // ErrCodeIDPRejectedClaimException for service response error code
- // "IDPRejectedClaim".
- //
- // The identity provider (IdP) reported that authentication failed. This might
- // be because the claim is invalid.
- //
- // If this error is returned for the AssumeRoleWithWebIdentity operation, it
- // can also mean that the claim has expired or has been explicitly revoked.
- ErrCodeIDPRejectedClaimException = "IDPRejectedClaim"
-
- // ErrCodeInvalidAuthorizationMessageException for service response error code
- // "InvalidAuthorizationMessageException".
- //
- // The error returned if the message passed to DecodeAuthorizationMessage was
- // invalid. This can happen if the token contains invalid characters, such as
- // linebreaks.
- ErrCodeInvalidAuthorizationMessageException = "InvalidAuthorizationMessageException"
-
- // ErrCodeInvalidIdentityTokenException for service response error code
- // "InvalidIdentityToken".
- //
- // The web identity token that was passed could not be validated by Amazon Web
- // Services. Get a new identity token from the identity provider and then retry
- // the request.
- ErrCodeInvalidIdentityTokenException = "InvalidIdentityToken"
-
- // ErrCodeMalformedPolicyDocumentException for service response error code
- // "MalformedPolicyDocument".
- //
- // The request was rejected because the policy document was malformed. The error
- // message describes the specific error.
- ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocument"
-
- // ErrCodePackedPolicyTooLargeException for service response error code
- // "PackedPolicyTooLarge".
- //
- // The request was rejected because the total packed size of the session policies
- // and session tags combined was too large. An Amazon Web Services conversion
- // compresses the session policy document, session policy ARNs, and session
- // tags into a packed binary format that has a separate limit. The error message
- // indicates by percentage how close the policies and tags are to the upper
- // size limit. For more information, see Passing Session Tags in STS (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)
- // in the IAM User Guide.
- //
- // You could receive this error even though you meet other defined session policy
- // and session tag limits. For more information, see IAM and STS Entity Character
- // Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length)
- // in the IAM User Guide.
- ErrCodePackedPolicyTooLargeException = "PackedPolicyTooLarge"
-
- // ErrCodeRegionDisabledException for service response error code
- // "RegionDisabledException".
- //
- // STS is not activated in the requested region for the account that is being
- // asked to generate credentials. The account administrator must use the IAM
- // console to activate STS in that region. For more information, see Activating
- // and Deactivating Amazon Web Services STS in an Amazon Web Services Region
- // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
- // in the IAM User Guide.
- ErrCodeRegionDisabledException = "RegionDisabledException"
-)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go
deleted file mode 100644
index 12327d053..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go
+++ /dev/null
@@ -1,104 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-package sts
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/client/metadata"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/aws/signer/v4"
- "github.com/aws/aws-sdk-go/private/protocol/query"
-)
-
-// STS provides the API operation methods for making requests to
-// AWS Security Token Service. See this package's package overview docs
-// for details on the service.
-//
-// STS methods are safe to use concurrently. It is not safe to
-// modify mutate any of the struct's properties though.
-type STS struct {
- *client.Client
-}
-
-// Used for custom client initialization logic
-var initClient func(*client.Client)
-
-// Used for custom request initialization logic
-var initRequest func(*request.Request)
-
-// Service information constants
-const (
- ServiceName = "sts" // Name of service.
- EndpointsID = ServiceName // ID to lookup a service endpoint with.
- ServiceID = "STS" // ServiceID is a unique identifier of a specific service.
-)
-
-// New creates a new instance of the STS client with a session.
-// If additional configuration is needed for the client instance use the optional
-// aws.Config parameter to add your extra config.
-//
-// Example:
-//
-// mySession := session.Must(session.NewSession())
-//
-// // Create a STS client from just a session.
-// svc := sts.New(mySession)
-//
-// // Create a STS client with additional configuration
-// svc := sts.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
-func New(p client.ConfigProvider, cfgs ...*aws.Config) *STS {
- c := p.ClientConfig(EndpointsID, cfgs...)
- if c.SigningNameDerived || len(c.SigningName) == 0 {
- c.SigningName = EndpointsID
- // No Fallback
- }
- return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion)
-}
-
-// newClient creates, initializes and returns a new service client instance.
-func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *STS {
- svc := &STS{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: ServiceName,
- ServiceID: ServiceID,
- SigningName: signingName,
- SigningRegion: signingRegion,
- PartitionID: partitionID,
- Endpoint: endpoint,
- APIVersion: "2011-06-15",
- ResolvedRegion: resolvedRegion,
- },
- handlers,
- ),
- }
-
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(query.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
-
- // Run custom client initialization if present
- if initClient != nil {
- initClient(svc.Client)
- }
-
- return svc
-}
-
-// newRequest creates a new request for a STS operation and runs any
-// custom request initialization.
-func (c *STS) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
-
- // Run custom request initialization if present
- if initRequest != nil {
- initRequest(req)
- }
-
- return req
-}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go
deleted file mode 100644
index bf06b2e7d..000000000
--- a/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go
+++ /dev/null
@@ -1,96 +0,0 @@
-// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
-
-// Package stsiface provides an interface to enable mocking the AWS Security Token Service service client
-// for testing your code.
-//
-// It is important to note that this interface will have breaking changes
-// when the service model is updated and adds new API operations, paginators,
-// and waiters.
-package stsiface
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/service/sts"
-)
-
-// STSAPI provides an interface to enable mocking the
-// sts.STS service client's API operation,
-// paginators, and waiters. This make unit testing your code that calls out
-// to the SDK's service client's calls easier.
-//
-// The best way to use this interface is so the SDK's service client's calls
-// can be stubbed out for unit testing your code with the SDK without needing
-// to inject custom request handlers into the SDK's request pipeline.
-//
-// // myFunc uses an SDK service client to make a request to
-// // AWS Security Token Service.
-// func myFunc(svc stsiface.STSAPI) bool {
-// // Make svc.AssumeRole request
-// }
-//
-// func main() {
-// sess := session.New()
-// svc := sts.New(sess)
-//
-// myFunc(svc)
-// }
-//
-// In your _test.go file:
-//
-// // Define a mock struct to be used in your unit tests of myFunc.
-// type mockSTSClient struct {
-// stsiface.STSAPI
-// }
-// func (m *mockSTSClient) AssumeRole(input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error) {
-// // mock response/functionality
-// }
-//
-// func TestMyFunc(t *testing.T) {
-// // Setup Test
-// mockSvc := &mockSTSClient{}
-//
-// myfunc(mockSvc)
-//
-// // Verify myFunc's functionality
-// }
-//
-// It is important to note that this interface will have breaking changes
-// when the service model is updated and adds new API operations, paginators,
-// and waiters. Its suggested to use the pattern above for testing, or using
-// tooling to generate mocks to satisfy the interfaces.
-type STSAPI interface {
- AssumeRole(*sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error)
- AssumeRoleWithContext(aws.Context, *sts.AssumeRoleInput, ...request.Option) (*sts.AssumeRoleOutput, error)
- AssumeRoleRequest(*sts.AssumeRoleInput) (*request.Request, *sts.AssumeRoleOutput)
-
- AssumeRoleWithSAML(*sts.AssumeRoleWithSAMLInput) (*sts.AssumeRoleWithSAMLOutput, error)
- AssumeRoleWithSAMLWithContext(aws.Context, *sts.AssumeRoleWithSAMLInput, ...request.Option) (*sts.AssumeRoleWithSAMLOutput, error)
- AssumeRoleWithSAMLRequest(*sts.AssumeRoleWithSAMLInput) (*request.Request, *sts.AssumeRoleWithSAMLOutput)
-
- AssumeRoleWithWebIdentity(*sts.AssumeRoleWithWebIdentityInput) (*sts.AssumeRoleWithWebIdentityOutput, error)
- AssumeRoleWithWebIdentityWithContext(aws.Context, *sts.AssumeRoleWithWebIdentityInput, ...request.Option) (*sts.AssumeRoleWithWebIdentityOutput, error)
- AssumeRoleWithWebIdentityRequest(*sts.AssumeRoleWithWebIdentityInput) (*request.Request, *sts.AssumeRoleWithWebIdentityOutput)
-
- DecodeAuthorizationMessage(*sts.DecodeAuthorizationMessageInput) (*sts.DecodeAuthorizationMessageOutput, error)
- DecodeAuthorizationMessageWithContext(aws.Context, *sts.DecodeAuthorizationMessageInput, ...request.Option) (*sts.DecodeAuthorizationMessageOutput, error)
- DecodeAuthorizationMessageRequest(*sts.DecodeAuthorizationMessageInput) (*request.Request, *sts.DecodeAuthorizationMessageOutput)
-
- GetAccessKeyInfo(*sts.GetAccessKeyInfoInput) (*sts.GetAccessKeyInfoOutput, error)
- GetAccessKeyInfoWithContext(aws.Context, *sts.GetAccessKeyInfoInput, ...request.Option) (*sts.GetAccessKeyInfoOutput, error)
- GetAccessKeyInfoRequest(*sts.GetAccessKeyInfoInput) (*request.Request, *sts.GetAccessKeyInfoOutput)
-
- GetCallerIdentity(*sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error)
- GetCallerIdentityWithContext(aws.Context, *sts.GetCallerIdentityInput, ...request.Option) (*sts.GetCallerIdentityOutput, error)
- GetCallerIdentityRequest(*sts.GetCallerIdentityInput) (*request.Request, *sts.GetCallerIdentityOutput)
-
- GetFederationToken(*sts.GetFederationTokenInput) (*sts.GetFederationTokenOutput, error)
- GetFederationTokenWithContext(aws.Context, *sts.GetFederationTokenInput, ...request.Option) (*sts.GetFederationTokenOutput, error)
- GetFederationTokenRequest(*sts.GetFederationTokenInput) (*request.Request, *sts.GetFederationTokenOutput)
-
- GetSessionToken(*sts.GetSessionTokenInput) (*sts.GetSessionTokenOutput, error)
- GetSessionTokenWithContext(aws.Context, *sts.GetSessionTokenInput, ...request.Option) (*sts.GetSessionTokenOutput, error)
- GetSessionTokenRequest(*sts.GetSessionTokenInput) (*request.Request, *sts.GetSessionTokenOutput)
-}
-
-var _ STSAPI = (*sts.STS)(nil)
diff --git a/vendor/github.com/cheggaaa/pb/v3/LICENSE b/vendor/github.com/cheggaaa/pb/v3/LICENSE
deleted file mode 100644
index 511970333..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/LICENSE
+++ /dev/null
@@ -1,12 +0,0 @@
-Copyright (c) 2012-2015, Sergey Cherepanov
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/vendor/github.com/cheggaaa/pb/v3/element.go b/vendor/github.com/cheggaaa/pb/v3/element.go
deleted file mode 100644
index 3882550d3..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/element.go
+++ /dev/null
@@ -1,330 +0,0 @@
-package pb
-
-import (
- "bytes"
- "fmt"
- "math"
- "strings"
- "sync"
- "time"
-)
-
-const (
- adElPlaceholder = "%_ad_el_%"
- adElPlaceholderLen = len(adElPlaceholder)
-)
-
-var (
- defaultBarEls = [5]string{"[", "-", ">", "_", "]"}
-)
-
-// Element is an interface for bar elements
-type Element interface {
- ProgressElement(state *State, args ...string) string
-}
-
-// ElementFunc type implements Element interface and created for simplify elements
-type ElementFunc func(state *State, args ...string) string
-
-// ProgressElement just call self func
-func (e ElementFunc) ProgressElement(state *State, args ...string) string {
- return e(state, args...)
-}
-
-var elementsM sync.Mutex
-
-var elements = map[string]Element{
- "percent": ElementPercent,
- "counters": ElementCounters,
- "bar": adaptiveWrap(ElementBar),
- "speed": ElementSpeed,
- "rtime": ElementRemainingTime,
- "etime": ElementElapsedTime,
- "string": ElementString,
- "cycle": ElementCycle,
-}
-
-// RegisterElement give you a chance to use custom elements
-func RegisterElement(name string, el Element, adaptive bool) {
- if adaptive {
- el = adaptiveWrap(el)
- }
- elementsM.Lock()
- elements[name] = el
- elementsM.Unlock()
-}
-
-type argsHelper []string
-
-func (args argsHelper) getOr(n int, value string) string {
- if len(args) > n {
- return args[n]
- }
- return value
-}
-
-func (args argsHelper) getNotEmptyOr(n int, value string) (v string) {
- if v = args.getOr(n, value); v == "" {
- return value
- }
- return
-}
-
-func adaptiveWrap(el Element) Element {
- return ElementFunc(func(state *State, args ...string) string {
- state.recalc = append(state.recalc, ElementFunc(func(s *State, _ ...string) (result string) {
- s.adaptive = true
- result = el.ProgressElement(s, args...)
- s.adaptive = false
- return
- }))
- return adElPlaceholder
- })
-}
-
-// ElementPercent shows current percent of progress.
-// Optionally can take one or two string arguments.
-// First string will be used as value for format float64, default is "%.02f%%".
-// Second string will be used when percent can't be calculated, default is "?%"
-// In template use as follows: {{percent .}} or {{percent . "%.03f%%"}} or {{percent . "%.03f%%" "?"}}
-var ElementPercent ElementFunc = func(state *State, args ...string) string {
- argsh := argsHelper(args)
- if state.Total() > 0 {
- return fmt.Sprintf(
- argsh.getNotEmptyOr(0, "%.02f%%"),
- float64(state.Value())/(float64(state.Total())/float64(100)),
- )
- }
- return argsh.getOr(1, "?%")
-}
-
-// ElementCounters shows current and total values.
-// Optionally can take one or two string arguments.
-// First string will be used as format value when Total is present (>0). Default is "%s / %s"
-// Second string will be used when total <= 0. Default is "%[1]s"
-// In template use as follows: {{counters .}} or {{counters . "%s/%s"}} or {{counters . "%s/%s" "%s/?"}}
-var ElementCounters ElementFunc = func(state *State, args ...string) string {
- var f string
- if state.Total() > 0 {
- f = argsHelper(args).getNotEmptyOr(0, "%s / %s")
- } else {
- f = argsHelper(args).getNotEmptyOr(1, "%[1]s")
- }
- return fmt.Sprintf(f, state.Format(state.Value()), state.Format(state.Total()))
-}
-
-type elementKey int
-
-const (
- barObj elementKey = iota
- speedObj
- cycleObj
-)
-
-type bar struct {
- eb [5][]byte // elements in bytes
- cc [5]int // cell counts
- buf *bytes.Buffer
-}
-
-func (p *bar) write(state *State, eln, width int) int {
- repeat := width / p.cc[eln]
- remainder := width % p.cc[eln]
- for i := 0; i < repeat; i++ {
- p.buf.Write(p.eb[eln])
- }
- if remainder > 0 {
- StripStringToBuffer(string(p.eb[eln]), remainder, p.buf)
- }
- return width
-}
-
-func getProgressObj(state *State, args ...string) (p *bar) {
- var ok bool
- if p, ok = state.Get(barObj).(*bar); !ok {
- p = &bar{
- buf: bytes.NewBuffer(nil),
- }
- state.Set(barObj, p)
- }
- argsH := argsHelper(args)
- for i := range p.eb {
- arg := argsH.getNotEmptyOr(i, defaultBarEls[i])
- if string(p.eb[i]) != arg {
- p.cc[i] = CellCount(arg)
- p.eb[i] = []byte(arg)
- if p.cc[i] == 0 {
- p.cc[i] = 1
- p.eb[i] = []byte(" ")
- }
- }
- }
- return
-}
-
-// ElementBar make progress bar view [-->__]
-// Optionally can take up to 5 string arguments. Defaults is "[", "-", ">", "_", "]"
-// In template use as follows: {{bar . }} or {{bar . "<" "oOo" "|" "~" ">"}}
-// Color args: {{bar . (red "[") (green "-") ...
-var ElementBar ElementFunc = func(state *State, args ...string) string {
- // init
- var p = getProgressObj(state, args...)
-
- total, value := state.Total(), state.Value()
- if total < 0 {
- total = -total
- }
- if value < 0 {
- value = -value
- }
-
- // check for overflow
- if total != 0 && value > total {
- total = value
- }
-
- p.buf.Reset()
-
- var widthLeft = state.AdaptiveElWidth()
- if widthLeft <= 0 || !state.IsAdaptiveWidth() {
- widthLeft = 30
- }
-
- // write left border
- if p.cc[0] < widthLeft {
- widthLeft -= p.write(state, 0, p.cc[0])
- } else {
- p.write(state, 0, widthLeft)
- return p.buf.String()
- }
-
- // check right border size
- if p.cc[4] < widthLeft {
- // write later
- widthLeft -= p.cc[4]
- } else {
- p.write(state, 4, widthLeft)
- return p.buf.String()
- }
-
- var curCount int
-
- if total > 0 {
- // calculate count of currenct space
- curCount = int(math.Ceil((float64(value) / float64(total)) * float64(widthLeft)))
- }
-
- // write bar
- if total == value && state.IsFinished() {
- widthLeft -= p.write(state, 1, curCount)
- } else if toWrite := curCount - p.cc[2]; toWrite > 0 {
- widthLeft -= p.write(state, 1, toWrite)
- widthLeft -= p.write(state, 2, p.cc[2])
- } else if curCount > 0 {
- widthLeft -= p.write(state, 2, curCount)
- }
- if widthLeft > 0 {
- widthLeft -= p.write(state, 3, widthLeft)
- }
- // write right border
- p.write(state, 4, p.cc[4])
- // cut result and return string
- return p.buf.String()
-}
-
-func elapsedTime(state *State) string {
- elapsed := state.Time().Sub(state.StartTime())
- var precision time.Duration
- var ok bool
- if precision, ok = state.Get(TimeRound).(time.Duration); !ok {
- // default behavior: round to nearest .1s when elapsed < 10s
- //
- // we compare with 9.95s as opposed to 10s to avoid an annoying
- // interaction with the fixed precision display code below,
- // where 9.9s would be rounded to 10s but printed as 10.0s, and
- // then 10.0s would be rounded to 10s and printed as 10s
- if elapsed < 9950*time.Millisecond {
- precision = 100 * time.Millisecond
- } else {
- precision = time.Second
- }
- }
- rounded := elapsed.Round(precision)
- if precision < time.Second && rounded >= time.Second {
- // special handling to ensure string is shown with the given
- // precision, with trailing zeros after the decimal point if
- // necessary
- reference := (2*time.Second - time.Nanosecond).Truncate(precision).String()
- // reference looks like "1.9[...]9s", telling us how many
- // decimal digits we need
- neededDecimals := len(reference) - 3
- s := rounded.String()
- dotIndex := strings.LastIndex(s, ".")
- if dotIndex != -1 {
- // s has the form "[stuff].[decimals]s"
- decimals := len(s) - dotIndex - 2
- extraZeros := neededDecimals - decimals
- return fmt.Sprintf("%s%ss", s[:len(s)-1], strings.Repeat("0", extraZeros))
- } else {
- // s has the form "[stuff]s"
- return fmt.Sprintf("%s.%ss", s[:len(s)-1], strings.Repeat("0", neededDecimals))
- }
- } else {
- return rounded.String()
- }
-}
-
-// ElementRemainingTime calculates remaining time based on speed (EWMA)
-// Optionally can take one or two string arguments.
-// First string will be used as value for format time duration string, default is "%s".
-// Second string will be used when bar finished and value indicates elapsed time, default is "%s"
-// Third string will be used when value not available, default is "?"
-// In template use as follows: {{rtime .}} or {{rtime . "%s remain"}} or {{rtime . "%s remain" "%s total" "???"}}
-var ElementRemainingTime ElementFunc = func(state *State, args ...string) string {
- if state.IsFinished() {
- return fmt.Sprintf(argsHelper(args).getOr(1, "%s"), elapsedTime(state))
- }
- sp := getSpeedObj(state).value(state)
- if sp > 0 {
- remain := float64(state.Total() - state.Value())
- remainDur := time.Duration(remain/sp) * time.Second
- return fmt.Sprintf(argsHelper(args).getOr(0, "%s"), remainDur)
- }
- return argsHelper(args).getOr(2, "?")
-}
-
-// ElementElapsedTime shows elapsed time
-// Optionally can take one argument - it's format for time string.
-// In template use as follows: {{etime .}} or {{etime . "%s elapsed"}}
-var ElementElapsedTime ElementFunc = func(state *State, args ...string) string {
- return fmt.Sprintf(argsHelper(args).getOr(0, "%s"), elapsedTime(state))
-}
-
-// ElementString get value from bar by given key and print them
-// bar.Set("myKey", "string to print")
-// In template use as follows: {{string . "myKey"}}
-var ElementString ElementFunc = func(state *State, args ...string) string {
- if len(args) == 0 {
- return ""
- }
- v := state.Get(args[0])
- if v == nil {
- return ""
- }
- return fmt.Sprint(v)
-}
-
-// ElementCycle return next argument for every call
-// In template use as follows: {{cycle . "1" "2" "3"}}
-// Or mix width other elements: {{ bar . "" "" (cycle . "↖" "↗" "↘" "↙" )}}
-var ElementCycle ElementFunc = func(state *State, args ...string) string {
- if len(args) == 0 {
- return ""
- }
- n, _ := state.Get(cycleObj).(int)
- if n >= len(args) {
- n = 0
- }
- state.Set(cycleObj, n+1)
- return args[n]
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/io.go b/vendor/github.com/cheggaaa/pb/v3/io.go
deleted file mode 100644
index 6ad5abc24..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/io.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package pb
-
-import (
- "io"
-)
-
-// Reader it's a wrapper for given reader, but with progress handle
-type Reader struct {
- io.Reader
- bar *ProgressBar
-}
-
-// Read reads bytes from wrapped reader and add amount of bytes to progress bar
-func (r *Reader) Read(p []byte) (n int, err error) {
- n, err = r.Reader.Read(p)
- r.bar.Add(n)
- return
-}
-
-// Close the wrapped reader when it implements io.Closer
-func (r *Reader) Close() (err error) {
- r.bar.Finish()
- if closer, ok := r.Reader.(io.Closer); ok {
- return closer.Close()
- }
- return
-}
-
-// Writer it's a wrapper for given writer, but with progress handle
-type Writer struct {
- io.Writer
- bar *ProgressBar
-}
-
-// Write writes bytes to wrapped writer and add amount of bytes to progress bar
-func (r *Writer) Write(p []byte) (n int, err error) {
- n, err = r.Writer.Write(p)
- r.bar.Add(n)
- return
-}
-
-// Close the wrapped reader when it implements io.Closer
-func (r *Writer) Close() (err error) {
- r.bar.Finish()
- if closer, ok := r.Writer.(io.Closer); ok {
- return closer.Close()
- }
- return
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/pb.go b/vendor/github.com/cheggaaa/pb/v3/pb.go
deleted file mode 100644
index 76440e172..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/pb.go
+++ /dev/null
@@ -1,595 +0,0 @@
-package pb
-
-import (
- "bytes"
- "fmt"
- "io"
- "os"
- "strconv"
- "strings"
- "sync"
- "sync/atomic"
- "text/template"
- "time"
-
- "github.com/fatih/color"
-
- "github.com/mattn/go-colorable"
- "github.com/mattn/go-isatty"
-
- "github.com/cheggaaa/pb/v3/termutil"
-)
-
-// Version of ProgressBar library
-const Version = "3.0.8"
-
-type key int
-
-const (
- // Bytes means we're working with byte sizes. Numbers will print as Kb, Mb, etc
- // bar.Set(pb.Bytes, true)
- Bytes key = 1 << iota
-
- // Use SI bytes prefix names (kB, MB, etc) instead of IEC prefix names (KiB, MiB, etc)
- SIBytesPrefix
-
- // Terminal means we're will print to terminal and can use ascii sequences
- // Also we're will try to use terminal width
- Terminal
-
- // Static means progress bar will not update automaticly
- Static
-
- // ReturnSymbol - by default in terminal mode it's '\r'
- ReturnSymbol
-
- // Color by default is true when output is tty, but you can set to false for disabling colors
- Color
-
- // Hide the progress bar when finished, rather than leaving it up. By default it's false.
- CleanOnFinish
-
- // Round elapsed time to this precision. Defaults to time.Second.
- TimeRound
-)
-
-const (
- defaultBarWidth = 100
- defaultRefreshRate = time.Millisecond * 200
-)
-
-// New creates new ProgressBar object
-func New(total int) *ProgressBar {
- return New64(int64(total))
-}
-
-// New64 creates new ProgressBar object using int64 as total
-func New64(total int64) *ProgressBar {
- pb := new(ProgressBar)
- return pb.SetTotal(total)
-}
-
-// StartNew starts new ProgressBar with Default template
-func StartNew(total int) *ProgressBar {
- return New(total).Start()
-}
-
-// Start64 starts new ProgressBar with Default template. Using int64 as total.
-func Start64(total int64) *ProgressBar {
- return New64(total).Start()
-}
-
-var (
- terminalWidth = termutil.TerminalWidth
- isTerminal = isatty.IsTerminal
- isCygwinTerminal = isatty.IsCygwinTerminal
-)
-
-// ProgressBar is the main object of bar
-type ProgressBar struct {
- current, total int64
- width int
- maxWidth int
- mu sync.RWMutex
- rm sync.Mutex
- vars map[interface{}]interface{}
- elements map[string]Element
- output io.Writer
- coutput io.Writer
- nocoutput io.Writer
- startTime time.Time
- refreshRate time.Duration
- tmpl *template.Template
- state *State
- buf *bytes.Buffer
- ticker *time.Ticker
- finish chan struct{}
- finished bool
- configured bool
- err error
-}
-
-func (pb *ProgressBar) configure() {
- if pb.configured {
- return
- }
- pb.configured = true
-
- if pb.vars == nil {
- pb.vars = make(map[interface{}]interface{})
- }
- if pb.output == nil {
- pb.output = os.Stderr
- }
-
- if pb.tmpl == nil {
- pb.tmpl, pb.err = getTemplate(string(Default))
- if pb.err != nil {
- return
- }
- }
- if pb.vars[Terminal] == nil {
- if f, ok := pb.output.(*os.File); ok {
- if isTerminal(f.Fd()) || isCygwinTerminal(f.Fd()) {
- pb.vars[Terminal] = true
- }
- }
- }
- if pb.vars[ReturnSymbol] == nil {
- if tm, ok := pb.vars[Terminal].(bool); ok && tm {
- pb.vars[ReturnSymbol] = "\r"
- }
- }
- if pb.vars[Color] == nil {
- if tm, ok := pb.vars[Terminal].(bool); ok && tm {
- pb.vars[Color] = true
- }
- }
- if pb.refreshRate == 0 {
- pb.refreshRate = defaultRefreshRate
- }
- if pb.vars[CleanOnFinish] == nil {
- pb.vars[CleanOnFinish] = false
- }
- if f, ok := pb.output.(*os.File); ok {
- pb.coutput = colorable.NewColorable(f)
- } else {
- pb.coutput = pb.output
- }
- pb.nocoutput = colorable.NewNonColorable(pb.output)
-}
-
-// Start starts the bar
-func (pb *ProgressBar) Start() *ProgressBar {
- pb.mu.Lock()
- defer pb.mu.Unlock()
- if pb.finish != nil {
- return pb
- }
- pb.configure()
- pb.finished = false
- pb.state = nil
- pb.startTime = time.Now()
- if st, ok := pb.vars[Static].(bool); ok && st {
- return pb
- }
- pb.finish = make(chan struct{})
- pb.ticker = time.NewTicker(pb.refreshRate)
- go pb.writer(pb.finish)
- return pb
-}
-
-func (pb *ProgressBar) writer(finish chan struct{}) {
- for {
- select {
- case <-pb.ticker.C:
- pb.write(false)
- case <-finish:
- pb.ticker.Stop()
- pb.write(true)
- finish <- struct{}{}
- return
- }
- }
-}
-
-// Write performs write to the output
-func (pb *ProgressBar) Write() *ProgressBar {
- pb.mu.RLock()
- finished := pb.finished
- pb.mu.RUnlock()
- pb.write(finished)
- return pb
-}
-
-func (pb *ProgressBar) write(finish bool) {
- result, width := pb.render()
- if pb.Err() != nil {
- return
- }
- if pb.GetBool(Terminal) {
- if r := (width - CellCount(result)); r > 0 {
- result += strings.Repeat(" ", r)
- }
- }
- if ret, ok := pb.Get(ReturnSymbol).(string); ok {
- result = ret + result
- if finish && ret == "\r" {
- if pb.GetBool(CleanOnFinish) {
- // "Wipe out" progress bar by overwriting one line with blanks
- result = "\r" + color.New(color.Reset).Sprintf(strings.Repeat(" ", width)) + "\r"
- } else {
- result += "\n"
- }
- }
- }
- if pb.GetBool(Color) {
- pb.coutput.Write([]byte(result))
- } else {
- pb.nocoutput.Write([]byte(result))
- }
-}
-
-// Total return current total bar value
-func (pb *ProgressBar) Total() int64 {
- return atomic.LoadInt64(&pb.total)
-}
-
-// SetTotal sets the total bar value
-func (pb *ProgressBar) SetTotal(value int64) *ProgressBar {
- atomic.StoreInt64(&pb.total, value)
- return pb
-}
-
-// AddTotal adds to the total bar value
-func (pb *ProgressBar) AddTotal(value int64) *ProgressBar {
- atomic.AddInt64(&pb.total, value)
- return pb
-}
-
-// SetCurrent sets the current bar value
-func (pb *ProgressBar) SetCurrent(value int64) *ProgressBar {
- atomic.StoreInt64(&pb.current, value)
- return pb
-}
-
-// Current return current bar value
-func (pb *ProgressBar) Current() int64 {
- return atomic.LoadInt64(&pb.current)
-}
-
-// Add adding given int64 value to bar value
-func (pb *ProgressBar) Add64(value int64) *ProgressBar {
- atomic.AddInt64(&pb.current, value)
- return pb
-}
-
-// Add adding given int value to bar value
-func (pb *ProgressBar) Add(value int) *ProgressBar {
- return pb.Add64(int64(value))
-}
-
-// Increment atomically increments the progress
-func (pb *ProgressBar) Increment() *ProgressBar {
- return pb.Add64(1)
-}
-
-// Set sets any value by any key
-func (pb *ProgressBar) Set(key, value interface{}) *ProgressBar {
- pb.mu.Lock()
- defer pb.mu.Unlock()
- if pb.vars == nil {
- pb.vars = make(map[interface{}]interface{})
- }
- pb.vars[key] = value
- return pb
-}
-
-// Get return value by key
-func (pb *ProgressBar) Get(key interface{}) interface{} {
- pb.mu.RLock()
- defer pb.mu.RUnlock()
- if pb.vars == nil {
- return nil
- }
- return pb.vars[key]
-}
-
-// GetBool return value by key and try to convert there to boolean
-// If value doesn't set or not boolean - return false
-func (pb *ProgressBar) GetBool(key interface{}) bool {
- if v, ok := pb.Get(key).(bool); ok {
- return v
- }
- return false
-}
-
-// SetWidth sets the bar width
-// When given value <= 0 would be using the terminal width (if possible) or default value.
-func (pb *ProgressBar) SetWidth(width int) *ProgressBar {
- pb.mu.Lock()
- pb.width = width
- pb.mu.Unlock()
- return pb
-}
-
-// SetMaxWidth sets the bar maximum width
-// When given value <= 0 would be using the terminal width (if possible) or default value.
-func (pb *ProgressBar) SetMaxWidth(maxWidth int) *ProgressBar {
- pb.mu.Lock()
- pb.maxWidth = maxWidth
- pb.mu.Unlock()
- return pb
-}
-
-// Width return the bar width
-// It's current terminal width or settled over 'SetWidth' value.
-func (pb *ProgressBar) Width() (width int) {
- defer func() {
- if r := recover(); r != nil {
- width = defaultBarWidth
- }
- }()
- pb.mu.RLock()
- width = pb.width
- maxWidth := pb.maxWidth
- pb.mu.RUnlock()
- if width <= 0 {
- var err error
- if width, err = terminalWidth(); err != nil {
- return defaultBarWidth
- }
- }
- if maxWidth > 0 && width > maxWidth {
- width = maxWidth
- }
- return
-}
-
-func (pb *ProgressBar) SetRefreshRate(dur time.Duration) *ProgressBar {
- pb.mu.Lock()
- if dur > 0 {
- pb.refreshRate = dur
- }
- pb.mu.Unlock()
- return pb
-}
-
-// SetWriter sets the io.Writer. Bar will write in this writer
-// By default this is os.Stderr
-func (pb *ProgressBar) SetWriter(w io.Writer) *ProgressBar {
- pb.mu.Lock()
- pb.output = w
- pb.configured = false
- pb.configure()
- pb.mu.Unlock()
- return pb
-}
-
-// StartTime return the time when bar started
-func (pb *ProgressBar) StartTime() time.Time {
- pb.mu.RLock()
- defer pb.mu.RUnlock()
- return pb.startTime
-}
-
-// Format convert int64 to string according to the current settings
-func (pb *ProgressBar) Format(v int64) string {
- if pb.GetBool(Bytes) {
- return formatBytes(v, pb.GetBool(SIBytesPrefix))
- }
- return strconv.FormatInt(v, 10)
-}
-
-// Finish stops the bar
-func (pb *ProgressBar) Finish() *ProgressBar {
- pb.mu.Lock()
- if pb.finished {
- pb.mu.Unlock()
- return pb
- }
- finishChan := pb.finish
- pb.finished = true
- pb.mu.Unlock()
- if finishChan != nil {
- finishChan <- struct{}{}
- <-finishChan
- pb.mu.Lock()
- pb.finish = nil
- pb.mu.Unlock()
- }
- return pb
-}
-
-// IsStarted indicates progress bar state
-func (pb *ProgressBar) IsStarted() bool {
- pb.mu.RLock()
- defer pb.mu.RUnlock()
- return pb.finish != nil
-}
-
-// IsFinished indicates progress bar is finished
-func (pb *ProgressBar) IsFinished() bool {
- pb.mu.RLock()
- defer pb.mu.RUnlock()
- return pb.finished
-}
-
-// SetTemplateString sets ProgressBar tempate string and parse it
-func (pb *ProgressBar) SetTemplateString(tmpl string) *ProgressBar {
- pb.mu.Lock()
- defer pb.mu.Unlock()
- pb.tmpl, pb.err = getTemplate(tmpl)
- return pb
-}
-
-// SetTemplateString sets ProgressBarTempate and parse it
-func (pb *ProgressBar) SetTemplate(tmpl ProgressBarTemplate) *ProgressBar {
- return pb.SetTemplateString(string(tmpl))
-}
-
-// NewProxyReader creates a wrapper for given reader, but with progress handle
-// Takes io.Reader or io.ReadCloser
-// Also, it automatically switches progress bar to handle units as bytes
-func (pb *ProgressBar) NewProxyReader(r io.Reader) *Reader {
- pb.Set(Bytes, true)
- return &Reader{r, pb}
-}
-
-// NewProxyWriter creates a wrapper for given writer, but with progress handle
-// Takes io.Writer or io.WriteCloser
-// Also, it automatically switches progress bar to handle units as bytes
-func (pb *ProgressBar) NewProxyWriter(r io.Writer) *Writer {
- pb.Set(Bytes, true)
- return &Writer{r, pb}
-}
-
-func (pb *ProgressBar) render() (result string, width int) {
- defer func() {
- if r := recover(); r != nil {
- pb.SetErr(fmt.Errorf("render panic: %v", r))
- }
- }()
- pb.rm.Lock()
- defer pb.rm.Unlock()
- pb.mu.Lock()
- pb.configure()
- if pb.state == nil {
- pb.state = &State{ProgressBar: pb}
- pb.buf = bytes.NewBuffer(nil)
- }
- if pb.startTime.IsZero() {
- pb.startTime = time.Now()
- }
- pb.state.id++
- pb.state.finished = pb.finished
- pb.state.time = time.Now()
- pb.mu.Unlock()
-
- pb.state.width = pb.Width()
- width = pb.state.width
- pb.state.total = pb.Total()
- pb.state.current = pb.Current()
- pb.buf.Reset()
-
- if e := pb.tmpl.Execute(pb.buf, pb.state); e != nil {
- pb.SetErr(e)
- return "", 0
- }
-
- result = pb.buf.String()
-
- aec := len(pb.state.recalc)
- if aec == 0 {
- // no adaptive elements
- return
- }
-
- staticWidth := CellCount(result) - (aec * adElPlaceholderLen)
-
- if pb.state.Width()-staticWidth <= 0 {
- result = strings.Replace(result, adElPlaceholder, "", -1)
- result = StripString(result, pb.state.Width())
- } else {
- pb.state.adaptiveElWidth = (width - staticWidth) / aec
- for _, el := range pb.state.recalc {
- result = strings.Replace(result, adElPlaceholder, el.ProgressElement(pb.state), 1)
- }
- }
- pb.state.recalc = pb.state.recalc[:0]
- return
-}
-
-// SetErr sets error to the ProgressBar
-// Error will be available over Err()
-func (pb *ProgressBar) SetErr(err error) *ProgressBar {
- pb.mu.Lock()
- pb.err = err
- pb.mu.Unlock()
- return pb
-}
-
-// Err return possible error
-// When all ok - will be nil
-// May contain template.Execute errors
-func (pb *ProgressBar) Err() error {
- pb.mu.RLock()
- defer pb.mu.RUnlock()
- return pb.err
-}
-
-// String return currrent string representation of ProgressBar
-func (pb *ProgressBar) String() string {
- res, _ := pb.render()
- return res
-}
-
-// ProgressElement implements Element interface
-func (pb *ProgressBar) ProgressElement(s *State, args ...string) string {
- if s.IsAdaptiveWidth() {
- pb.SetWidth(s.AdaptiveElWidth())
- }
- return pb.String()
-}
-
-// State represents the current state of bar
-// Need for bar elements
-type State struct {
- *ProgressBar
-
- id uint64
- total, current int64
- width, adaptiveElWidth int
- finished, adaptive bool
- time time.Time
-
- recalc []Element
-}
-
-// Id it's the current state identifier
-// - incremental
-// - starts with 1
-// - resets after finish/start
-func (s *State) Id() uint64 {
- return s.id
-}
-
-// Total it's bar int64 total
-func (s *State) Total() int64 {
- return s.total
-}
-
-// Value it's current value
-func (s *State) Value() int64 {
- return s.current
-}
-
-// Width of bar
-func (s *State) Width() int {
- return s.width
-}
-
-// AdaptiveElWidth - adaptive elements must return string with given cell count (when AdaptiveElWidth > 0)
-func (s *State) AdaptiveElWidth() int {
- return s.adaptiveElWidth
-}
-
-// IsAdaptiveWidth returns true when element must be shown as adaptive
-func (s *State) IsAdaptiveWidth() bool {
- return s.adaptive
-}
-
-// IsFinished return true when bar is finished
-func (s *State) IsFinished() bool {
- return s.finished
-}
-
-// IsFirst return true only in first render
-func (s *State) IsFirst() bool {
- return s.id == 1
-}
-
-// Time when state was created
-func (s *State) Time() time.Time {
- return s.time
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/pool.go b/vendor/github.com/cheggaaa/pb/v3/pool.go
deleted file mode 100644
index 69cc825b6..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/pool.go
+++ /dev/null
@@ -1,105 +0,0 @@
-// +build linux darwin freebsd netbsd openbsd solaris dragonfly windows plan9 aix
-
-package pb
-
-import (
- "io"
- "sync"
- "time"
-
- "github.com/cheggaaa/pb/v3/termutil"
-)
-
-// Create and start new pool with given bars
-// You need call pool.Stop() after work
-func StartPool(pbs ...*ProgressBar) (pool *Pool, err error) {
- pool = new(Pool)
- if err = pool.Start(); err != nil {
- return
- }
- pool.Add(pbs...)
- return
-}
-
-// NewPool initialises a pool with progress bars, but
-// doesn't start it. You need to call Start manually
-func NewPool(pbs ...*ProgressBar) (pool *Pool) {
- pool = new(Pool)
- pool.Add(pbs...)
- return
-}
-
-type Pool struct {
- Output io.Writer
- RefreshRate time.Duration
- bars []*ProgressBar
- lastBarsCount int
- shutdownCh chan struct{}
- workerCh chan struct{}
- m sync.Mutex
- finishOnce sync.Once
-}
-
-// Add progress bars.
-func (p *Pool) Add(pbs ...*ProgressBar) {
- p.m.Lock()
- defer p.m.Unlock()
- for _, bar := range pbs {
- bar.Set(Static, true)
- bar.Start()
- p.bars = append(p.bars, bar)
- }
-}
-
-func (p *Pool) Start() (err error) {
- p.RefreshRate = defaultRefreshRate
- p.shutdownCh, err = termutil.RawModeOn()
- if err != nil {
- return
- }
- p.workerCh = make(chan struct{})
- go p.writer()
- return
-}
-
-func (p *Pool) writer() {
- var first = true
- defer func() {
- if first == false {
- p.print(false)
- } else {
- p.print(true)
- p.print(false)
- }
- close(p.workerCh)
- }()
-
- for {
- select {
- case <-time.After(p.RefreshRate):
- if p.print(first) {
- p.print(false)
- return
- }
- first = false
- case <-p.shutdownCh:
- return
- }
- }
-}
-
-// Restore terminal state and close pool
-func (p *Pool) Stop() error {
- p.finishOnce.Do(func() {
- if p.shutdownCh != nil {
- close(p.shutdownCh)
- }
- })
-
- // Wait for the worker to complete
- select {
- case <-p.workerCh:
- }
-
- return termutil.RawModeOff()
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/pool_win.go b/vendor/github.com/cheggaaa/pb/v3/pool_win.go
deleted file mode 100644
index 7002e85fc..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/pool_win.go
+++ /dev/null
@@ -1,56 +0,0 @@
-//go:build windows
-// +build windows
-
-package pb
-
-import (
- "fmt"
- "log"
- "strings"
-
- "github.com/cheggaaa/pb/v3/termutil"
-)
-
-func (p *Pool) print(first bool) bool {
- p.m.Lock()
- defer p.m.Unlock()
- var out string
- if !first {
- coords, err := termutil.GetCursorPos()
- if err != nil {
- log.Panic(err)
- }
- coords.Y -= int16(p.lastBarsCount)
- if coords.Y < 0 {
- coords.Y = 0
- }
- coords.X = 0
-
- err = termutil.SetCursorPos(coords)
- if err != nil {
- log.Panic(err)
- }
- }
- cols, err := termutil.TerminalWidth()
- if err != nil {
- cols = defaultBarWidth
- }
- isFinished := true
- for _, bar := range p.bars {
- if !bar.IsFinished() {
- isFinished = false
- }
- result := bar.String()
- if r := cols - CellCount(result); r > 0 {
- result += strings.Repeat(" ", r)
- }
- out += fmt.Sprintf("\r%s\n", result)
- }
- if p.Output != nil {
- fmt.Fprint(p.Output, out)
- } else {
- fmt.Print(out)
- }
- p.lastBarsCount = len(p.bars)
- return isFinished
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/pool_x.go b/vendor/github.com/cheggaaa/pb/v3/pool_x.go
deleted file mode 100644
index cae975838..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/pool_x.go
+++ /dev/null
@@ -1,49 +0,0 @@
-//go:build linux || darwin || freebsd || netbsd || openbsd || solaris || dragonfly || plan9 || aix
-// +build linux darwin freebsd netbsd openbsd solaris dragonfly plan9 aix
-
-package pb
-
-import (
- "fmt"
- "os"
- "strings"
-
- "github.com/cheggaaa/pb/v3/termutil"
-)
-
-func (p *Pool) print(first bool) bool {
- p.m.Lock()
- defer p.m.Unlock()
- var out string
- if !first {
- out = fmt.Sprintf("\033[%dA", p.lastBarsCount)
- }
- isFinished := true
- bars := p.bars
- rows, cols, err := termutil.TerminalSize()
- if err != nil {
- cols = defaultBarWidth
- }
- if rows > 0 && len(bars) > rows {
- // we need to hide bars that overflow terminal height
- bars = bars[len(bars)-rows:]
- }
- for _, bar := range bars {
- if !bar.IsFinished() {
- isFinished = false
- }
- bar.SetWidth(cols)
- result := bar.String()
- if r := cols - CellCount(result); r > 0 {
- result += strings.Repeat(" ", r)
- }
- out += fmt.Sprintf("\r%s\n", result)
- }
- if p.Output != nil {
- fmt.Fprint(p.Output, out)
- } else {
- fmt.Fprint(os.Stderr, out)
- }
- p.lastBarsCount = len(bars)
- return isFinished
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/preset.go b/vendor/github.com/cheggaaa/pb/v3/preset.go
deleted file mode 100644
index f3ca19398..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/preset.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package pb
-
-var (
- // Full - preset with all default available elements
- // Example: 'Prefix 20/100 [-->______] 20% 1 p/s ETA 1m Suffix'
- Full ProgressBarTemplate = `{{with string . "prefix"}}{{.}} {{end}}{{counters . }} {{bar . }} {{percent . }} {{speed . }} {{rtime . "ETA %s"}}{{with string . "suffix"}} {{.}}{{end}}`
-
- // Default - preset like Full but without elapsed time
- // Example: 'Prefix 20/100 [-->______] 20% 1 p/s Suffix'
- Default ProgressBarTemplate = `{{with string . "prefix"}}{{.}} {{end}}{{counters . }} {{bar . }} {{percent . }} {{speed . }}{{with string . "suffix"}} {{.}}{{end}}`
-
- // Simple - preset without speed and any timers. Only counters, bar and percents
- // Example: 'Prefix 20/100 [-->______] 20% Suffix'
- Simple ProgressBarTemplate = `{{with string . "prefix"}}{{.}} {{end}}{{counters . }} {{bar . }} {{percent . }}{{with string . "suffix"}} {{.}}{{end}}`
-)
diff --git a/vendor/github.com/cheggaaa/pb/v3/speed.go b/vendor/github.com/cheggaaa/pb/v3/speed.go
deleted file mode 100644
index 17a6b1bfa..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/speed.go
+++ /dev/null
@@ -1,83 +0,0 @@
-package pb
-
-import (
- "fmt"
- "math"
- "time"
-
- "github.com/VividCortex/ewma"
-)
-
-var speedAddLimit = time.Second / 2
-
-type speed struct {
- ewma ewma.MovingAverage
- lastStateId uint64
- prevValue, startValue int64
- prevTime, startTime time.Time
-}
-
-func (s *speed) value(state *State) float64 {
- if s.ewma == nil {
- s.ewma = ewma.NewMovingAverage()
- }
- if state.IsFirst() || state.Id() < s.lastStateId {
- s.reset(state)
- return 0
- }
- if state.Id() == s.lastStateId {
- return s.ewma.Value()
- }
- if state.IsFinished() {
- return s.absValue(state)
- }
- dur := state.Time().Sub(s.prevTime)
- if dur < speedAddLimit {
- return s.ewma.Value()
- }
- diff := math.Abs(float64(state.Value() - s.prevValue))
- lastSpeed := diff / dur.Seconds()
- s.prevTime = state.Time()
- s.prevValue = state.Value()
- s.lastStateId = state.Id()
- s.ewma.Add(lastSpeed)
- return s.ewma.Value()
-}
-
-func (s *speed) reset(state *State) {
- s.lastStateId = state.Id()
- s.startTime = state.Time()
- s.prevTime = state.Time()
- s.startValue = state.Value()
- s.prevValue = state.Value()
- s.ewma = ewma.NewMovingAverage()
-}
-
-func (s *speed) absValue(state *State) float64 {
- if dur := state.Time().Sub(s.startTime); dur > 0 {
- return float64(state.Value()) / dur.Seconds()
- }
- return 0
-}
-
-func getSpeedObj(state *State) (s *speed) {
- if sObj, ok := state.Get(speedObj).(*speed); ok {
- return sObj
- }
- s = new(speed)
- state.Set(speedObj, s)
- return
-}
-
-// ElementSpeed calculates current speed by EWMA
-// Optionally can take one or two string arguments.
-// First string will be used as value for format speed, default is "%s p/s".
-// Second string will be used when speed not available, default is "? p/s"
-// In template use as follows: {{speed .}} or {{speed . "%s per second"}} or {{speed . "%s ps" "..."}
-var ElementSpeed ElementFunc = func(state *State, args ...string) string {
- sp := getSpeedObj(state).value(state)
- if sp == 0 {
- return argsHelper(args).getNotEmptyOr(1, "? p/s")
- }
- return fmt.Sprintf(argsHelper(args).getNotEmptyOr(0, "%s p/s"), state.Format(int64(round(sp))))
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/template.go b/vendor/github.com/cheggaaa/pb/v3/template.go
deleted file mode 100644
index 5272ac1c9..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/template.go
+++ /dev/null
@@ -1,89 +0,0 @@
-package pb
-
-import (
- "math/rand"
- "sync"
- "text/template"
-
- "github.com/fatih/color"
-)
-
-// ProgressBarTemplate that template string
-type ProgressBarTemplate string
-
-// New creates new bar from template
-func (pbt ProgressBarTemplate) New(total int) *ProgressBar {
- return New(total).SetTemplate(pbt)
-}
-
-// Start64 create and start new bar with given int64 total value
-func (pbt ProgressBarTemplate) Start64(total int64) *ProgressBar {
- return New64(total).SetTemplate(pbt).Start()
-}
-
-// Start create and start new bar with given int total value
-func (pbt ProgressBarTemplate) Start(total int) *ProgressBar {
- return pbt.Start64(int64(total))
-}
-
-var templateCacheMu sync.Mutex
-var templateCache = make(map[string]*template.Template)
-
-var defaultTemplateFuncs = template.FuncMap{
- // colors
- "black": color.New(color.FgBlack).SprintFunc(),
- "red": color.New(color.FgRed).SprintFunc(),
- "green": color.New(color.FgGreen).SprintFunc(),
- "yellow": color.New(color.FgYellow).SprintFunc(),
- "blue": color.New(color.FgBlue).SprintFunc(),
- "magenta": color.New(color.FgMagenta).SprintFunc(),
- "cyan": color.New(color.FgCyan).SprintFunc(),
- "white": color.New(color.FgWhite).SprintFunc(),
- "resetcolor": color.New(color.Reset).SprintFunc(),
- "rndcolor": rndcolor,
- "rnd": rnd,
-}
-
-func getTemplate(tmpl string) (t *template.Template, err error) {
- templateCacheMu.Lock()
- defer templateCacheMu.Unlock()
- t = templateCache[tmpl]
- if t != nil {
- // found in cache
- return
- }
- t = template.New("")
- fillTemplateFuncs(t)
- _, err = t.Parse(tmpl)
- if err != nil {
- t = nil
- return
- }
- templateCache[tmpl] = t
- return
-}
-
-func fillTemplateFuncs(t *template.Template) {
- t.Funcs(defaultTemplateFuncs)
- emf := make(template.FuncMap)
- elementsM.Lock()
- for k, v := range elements {
- element := v
- emf[k] = func(state *State, args ...string) string { return element.ProgressElement(state, args...) }
- }
- elementsM.Unlock()
- t.Funcs(emf)
- return
-}
-
-func rndcolor(s string) string {
- c := rand.Intn(int(color.FgWhite-color.FgBlack)) + int(color.FgBlack)
- return color.New(color.Attribute(c)).Sprint(s)
-}
-
-func rnd(args ...string) string {
- if len(args) == 0 {
- return ""
- }
- return args[rand.Intn(len(args))]
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/termutil/term.go b/vendor/github.com/cheggaaa/pb/v3/termutil/term.go
deleted file mode 100644
index c838d4f98..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/termutil/term.go
+++ /dev/null
@@ -1,68 +0,0 @@
-package termutil
-
-import (
- "errors"
- "os"
- "os/signal"
- "sync"
-)
-
-var echoLocked bool
-var echoLockMutex sync.Mutex
-var errLocked = errors.New("terminal locked")
-var autoTerminate = true
-
-// AutoTerminate enables or disables automatic terminate signal catching.
-// It's needed to restore the terminal state after the pool was used.
-// By default, it's enabled.
-func AutoTerminate(enable bool) {
- echoLockMutex.Lock()
- defer echoLockMutex.Unlock()
- autoTerminate = enable
-}
-
-// RawModeOn switches terminal to raw mode
-func RawModeOn() (quit chan struct{}, err error) {
- echoLockMutex.Lock()
- defer echoLockMutex.Unlock()
- if echoLocked {
- err = errLocked
- return
- }
- if err = lockEcho(); err != nil {
- return
- }
- echoLocked = true
- quit = make(chan struct{}, 1)
- go catchTerminate(quit)
- return
-}
-
-// RawModeOff restore previous terminal state
-func RawModeOff() (err error) {
- echoLockMutex.Lock()
- defer echoLockMutex.Unlock()
- if !echoLocked {
- return
- }
- if err = unlockEcho(); err != nil {
- return
- }
- echoLocked = false
- return
-}
-
-// listen exit signals and restore terminal state
-func catchTerminate(quit chan struct{}) {
- sig := make(chan os.Signal, 1)
- if autoTerminate {
- signal.Notify(sig, unlockSignals...)
- defer signal.Stop(sig)
- }
- select {
- case <-quit:
- RawModeOff()
- case <-sig:
- RawModeOff()
- }
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/termutil/term_appengine.go b/vendor/github.com/cheggaaa/pb/v3/termutil/term_appengine.go
deleted file mode 100644
index 6bc5c51a8..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/termutil/term_appengine.go
+++ /dev/null
@@ -1,12 +0,0 @@
-//go:build appengine
-// +build appengine
-
-package termutil
-
-import "errors"
-
-// terminalWidth returns width of the terminal, which is not supported
-// and should always failed on appengine classic which is a sandboxed PaaS.
-func TerminalWidth() (int, error) {
- return 0, errors.New("Not supported")
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/termutil/term_bsd.go b/vendor/github.com/cheggaaa/pb/v3/termutil/term_bsd.go
deleted file mode 100644
index e16380f91..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/termutil/term_bsd.go
+++ /dev/null
@@ -1,10 +0,0 @@
-//go:build (darwin || freebsd || netbsd || openbsd || dragonfly) && !appengine
-// +build darwin freebsd netbsd openbsd dragonfly
-// +build !appengine
-
-package termutil
-
-import "syscall"
-
-const ioctlReadTermios = syscall.TIOCGETA
-const ioctlWriteTermios = syscall.TIOCSETA
diff --git a/vendor/github.com/cheggaaa/pb/v3/termutil/term_linux.go b/vendor/github.com/cheggaaa/pb/v3/termutil/term_linux.go
deleted file mode 100644
index f4c5325bf..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/termutil/term_linux.go
+++ /dev/null
@@ -1,7 +0,0 @@
-//go:build linux && !appengine
-// +build linux,!appengine
-
-package termutil
-
-const ioctlReadTermios = 0x5401 // syscall.TCGETS
-const ioctlWriteTermios = 0x5402 // syscall.TCSETS
diff --git a/vendor/github.com/cheggaaa/pb/v3/termutil/term_nix.go b/vendor/github.com/cheggaaa/pb/v3/termutil/term_nix.go
deleted file mode 100644
index 471d5a944..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/termutil/term_nix.go
+++ /dev/null
@@ -1,9 +0,0 @@
-//go:build (linux || darwin || freebsd || netbsd || openbsd || dragonfly) && !appengine
-// +build linux darwin freebsd netbsd openbsd dragonfly
-// +build !appengine
-
-package termutil
-
-import "syscall"
-
-const sysIoctl = syscall.SYS_IOCTL
diff --git a/vendor/github.com/cheggaaa/pb/v3/termutil/term_plan9.go b/vendor/github.com/cheggaaa/pb/v3/termutil/term_plan9.go
deleted file mode 100644
index f3934c6ec..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/termutil/term_plan9.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package termutil
-
-import (
- "errors"
- "os"
- "syscall"
-)
-
-var (
- consctl *os.File
-
- // Plan 9 doesn't have syscall.SIGQUIT
- unlockSignals = []os.Signal{
- os.Interrupt, syscall.SIGTERM, syscall.SIGKILL,
- }
-)
-
-// TerminalWidth returns width of the terminal.
-func TerminalWidth() (int, error) {
- return 0, errors.New("Not supported")
-}
-
-func lockEcho() error {
- if consctl != nil {
- return errors.New("consctl already open")
- }
- var err error
- consctl, err = os.OpenFile("/dev/consctl", os.O_WRONLY, 0)
- if err != nil {
- return err
- }
- _, err = consctl.WriteString("rawon")
- if err != nil {
- consctl.Close()
- consctl = nil
- return err
- }
- return nil
-}
-
-func unlockEcho() error {
- if consctl == nil {
- return nil
- }
- if err := consctl.Close(); err != nil {
- return err
- }
- consctl = nil
- return nil
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/termutil/term_solaris.go b/vendor/github.com/cheggaaa/pb/v3/termutil/term_solaris.go
deleted file mode 100644
index 45f305535..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/termutil/term_solaris.go
+++ /dev/null
@@ -1,8 +0,0 @@
-//go:build solaris && !appengine
-// +build solaris,!appengine
-
-package termutil
-
-const ioctlReadTermios = 0x5401 // syscall.TCGETS
-const ioctlWriteTermios = 0x5402 // syscall.TCSETS
-const sysIoctl = 54
diff --git a/vendor/github.com/cheggaaa/pb/v3/termutil/term_win.go b/vendor/github.com/cheggaaa/pb/v3/termutil/term_win.go
deleted file mode 100644
index 75c7e2c39..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/termutil/term_win.go
+++ /dev/null
@@ -1,156 +0,0 @@
-//go:build windows
-// +build windows
-
-package termutil
-
-import (
- "fmt"
- "os"
- "os/exec"
- "strconv"
- "syscall"
- "unsafe"
-)
-
-var (
- tty = os.Stdin
-
- unlockSignals = []os.Signal{
- os.Interrupt, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGKILL,
- }
-)
-
-var (
- kernel32 = syscall.NewLazyDLL("kernel32.dll")
-
- // GetConsoleScreenBufferInfo retrieves information about the
- // specified console screen buffer.
- // http://msdn.microsoft.com/en-us/library/windows/desktop/ms683171(v=vs.85).aspx
- procGetConsoleScreenBufferInfo = kernel32.NewProc("GetConsoleScreenBufferInfo")
-
- // GetConsoleMode retrieves the current input mode of a console's
- // input buffer or the current output mode of a console screen buffer.
- // https://msdn.microsoft.com/en-us/library/windows/desktop/ms683167(v=vs.85).aspx
- getConsoleMode = kernel32.NewProc("GetConsoleMode")
-
- // SetConsoleMode sets the input mode of a console's input buffer
- // or the output mode of a console screen buffer.
- // https://msdn.microsoft.com/en-us/library/windows/desktop/ms686033(v=vs.85).aspx
- setConsoleMode = kernel32.NewProc("SetConsoleMode")
-
- // SetConsoleCursorPosition sets the cursor position in the
- // specified console screen buffer.
- // https://msdn.microsoft.com/en-us/library/windows/desktop/ms686025(v=vs.85).aspx
- setConsoleCursorPosition = kernel32.NewProc("SetConsoleCursorPosition")
-
- mingw = isMingw()
-)
-
-type (
- // Defines the coordinates of the upper left and lower right corners
- // of a rectangle.
- // See
- // http://msdn.microsoft.com/en-us/library/windows/desktop/ms686311(v=vs.85).aspx
- smallRect struct {
- Left, Top, Right, Bottom int16
- }
-
- // Defines the coordinates of a character cell in a console screen
- // buffer. The origin of the coordinate system (0,0) is at the top, left cell
- // of the buffer.
- // See
- // http://msdn.microsoft.com/en-us/library/windows/desktop/ms682119(v=vs.85).aspx
- coordinates struct {
- X, Y int16
- }
-
- word int16
-
- // Contains information about a console screen buffer.
- // http://msdn.microsoft.com/en-us/library/windows/desktop/ms682093(v=vs.85).aspx
- consoleScreenBufferInfo struct {
- dwSize coordinates
- dwCursorPosition coordinates
- wAttributes word
- srWindow smallRect
- dwMaximumWindowSize coordinates
- }
-)
-
-// TerminalWidth returns width of the terminal.
-func TerminalWidth() (width int, err error) {
- if mingw {
- return termWidthTPut()
- }
- return termWidthCmd()
-}
-
-func termWidthCmd() (width int, err error) {
- var info consoleScreenBufferInfo
- _, _, e := syscall.Syscall(procGetConsoleScreenBufferInfo.Addr(), 2, uintptr(syscall.Stdout), uintptr(unsafe.Pointer(&info)), 0)
- if e != 0 {
- return 0, error(e)
- }
- return int(info.dwSize.X) - 1, nil
-}
-
-func isMingw() bool {
- return os.Getenv("MINGW_PREFIX") != "" || os.Getenv("MSYSTEM") == "MINGW64"
-}
-
-func termWidthTPut() (width int, err error) {
- // TODO: maybe anybody knows a better way to get it on mintty...
- var res []byte
- cmd := exec.Command("tput", "cols")
- cmd.Stdin = os.Stdin
- if res, err = cmd.CombinedOutput(); err != nil {
- return 0, fmt.Errorf("%s: %v", string(res), err)
- }
- if len(res) > 1 {
- res = res[:len(res)-1]
- }
- return strconv.Atoi(string(res))
-}
-
-func GetCursorPos() (pos coordinates, err error) {
- var info consoleScreenBufferInfo
- _, _, e := syscall.Syscall(procGetConsoleScreenBufferInfo.Addr(), 2, uintptr(syscall.Stdout), uintptr(unsafe.Pointer(&info)), 0)
- if e != 0 {
- return info.dwCursorPosition, error(e)
- }
- return info.dwCursorPosition, nil
-}
-
-func SetCursorPos(pos coordinates) error {
- _, _, e := syscall.Syscall(setConsoleCursorPosition.Addr(), 2, uintptr(syscall.Stdout), uintptr(uint32(uint16(pos.Y))<<16|uint32(uint16(pos.X))), 0)
- if e != 0 {
- return error(e)
- }
- return nil
-}
-
-var oldState word
-
-func lockEcho() (err error) {
- if _, _, e := syscall.Syscall(getConsoleMode.Addr(), 2, uintptr(syscall.Stdout), uintptr(unsafe.Pointer(&oldState)), 0); e != 0 {
- err = fmt.Errorf("Can't get terminal settings: %v", e)
- return
- }
-
- newState := oldState
- const ENABLE_ECHO_INPUT = 0x0004
- const ENABLE_LINE_INPUT = 0x0002
- newState = newState & (^(ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT))
- if _, _, e := syscall.Syscall(setConsoleMode.Addr(), 2, uintptr(syscall.Stdout), uintptr(newState), 0); e != 0 {
- err = fmt.Errorf("Can't set terminal settings: %v", e)
- return
- }
- return
-}
-
-func unlockEcho() (err error) {
- if _, _, e := syscall.Syscall(setConsoleMode.Addr(), 2, uintptr(syscall.Stdout), uintptr(oldState), 0); e != 0 {
- err = fmt.Errorf("Can't set terminal settings")
- }
- return
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/termutil/term_x.go b/vendor/github.com/cheggaaa/pb/v3/termutil/term_x.go
deleted file mode 100644
index 4746e9b57..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/termutil/term_x.go
+++ /dev/null
@@ -1,81 +0,0 @@
-//go:build (linux || darwin || freebsd || netbsd || openbsd || solaris || dragonfly) && !appengine
-// +build linux darwin freebsd netbsd openbsd solaris dragonfly
-// +build !appengine
-
-package termutil
-
-import (
- "fmt"
- "os"
- "syscall"
- "unsafe"
-)
-
-var (
- tty *os.File
-
- unlockSignals = []os.Signal{
- os.Interrupt, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGKILL,
- }
- oldState syscall.Termios
-)
-
-type window struct {
- Row uint16
- Col uint16
- Xpixel uint16
- Ypixel uint16
-}
-
-func init() {
- var err error
- tty, err = os.Open("/dev/tty")
- if err != nil {
- tty = os.Stdin
- }
-}
-
-// TerminalWidth returns width of the terminal.
-func TerminalWidth() (int, error) {
- _, c, err := TerminalSize()
- return c, err
-}
-
-// TerminalSize returns size of the terminal.
-func TerminalSize() (rows, cols int, err error) {
- w := new(window)
- res, _, err := syscall.Syscall(sysIoctl,
- tty.Fd(),
- uintptr(syscall.TIOCGWINSZ),
- uintptr(unsafe.Pointer(w)),
- )
- if int(res) == -1 {
- return 0, 0, err
- }
- return int(w.Row), int(w.Col), nil
-}
-
-func lockEcho() error {
- fd := tty.Fd()
-
- if _, _, err := syscall.Syscall(sysIoctl, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&oldState))); err != 0 {
- return fmt.Errorf("error when puts the terminal connected to the given file descriptor: %w", err)
- }
-
- newState := oldState
- newState.Lflag &^= syscall.ECHO
- newState.Lflag |= syscall.ICANON | syscall.ISIG
- newState.Iflag |= syscall.ICRNL
- if _, _, e := syscall.Syscall(sysIoctl, fd, ioctlWriteTermios, uintptr(unsafe.Pointer(&newState))); e != 0 {
- return fmt.Errorf("error update terminal settings: %w", e)
- }
- return nil
-}
-
-func unlockEcho() error {
- fd := tty.Fd()
- if _, _, err := syscall.Syscall(sysIoctl, fd, ioctlWriteTermios, uintptr(unsafe.Pointer(&oldState))); err != 0 {
- return fmt.Errorf("error restores the terminal connected to the given file descriptor: %w", err)
- }
- return nil
-}
diff --git a/vendor/github.com/cheggaaa/pb/v3/util.go b/vendor/github.com/cheggaaa/pb/v3/util.go
deleted file mode 100644
index a392605a2..000000000
--- a/vendor/github.com/cheggaaa/pb/v3/util.go
+++ /dev/null
@@ -1,116 +0,0 @@
-package pb
-
-import (
- "bytes"
- "fmt"
- "github.com/mattn/go-runewidth"
- "math"
- "regexp"
- //"unicode/utf8"
-)
-
-const (
- _KiB = 1024
- _MiB = 1048576
- _GiB = 1073741824
- _TiB = 1099511627776
-
- _kB = 1e3
- _MB = 1e6
- _GB = 1e9
- _TB = 1e12
-)
-
-var ctrlFinder = regexp.MustCompile("\x1b\x5b[0-9;]+\x6d")
-
-func CellCount(s string) int {
- n := runewidth.StringWidth(s)
- for _, sm := range ctrlFinder.FindAllString(s, -1) {
- n -= runewidth.StringWidth(sm)
- }
- return n
-}
-
-func StripString(s string, w int) string {
- l := CellCount(s)
- if l <= w {
- return s
- }
- var buf = bytes.NewBuffer(make([]byte, 0, len(s)))
- StripStringToBuffer(s, w, buf)
- return buf.String()
-}
-
-func StripStringToBuffer(s string, w int, buf *bytes.Buffer) {
- var seqs = ctrlFinder.FindAllStringIndex(s, -1)
- var maxWidthReached bool
-mainloop:
- for i, r := range s {
- for _, seq := range seqs {
- if i >= seq[0] && i < seq[1] {
- buf.WriteRune(r)
- continue mainloop
- }
- }
- if rw := CellCount(string(r)); rw <= w && !maxWidthReached {
- w -= rw
- buf.WriteRune(r)
- } else {
- maxWidthReached = true
- }
- }
- for w > 0 {
- buf.WriteByte(' ')
- w--
- }
- return
-}
-
-func round(val float64) (newVal float64) {
- roundOn := 0.5
- places := 0
- var round float64
- pow := math.Pow(10, float64(places))
- digit := pow * val
- _, div := math.Modf(digit)
- if div >= roundOn {
- round = math.Ceil(digit)
- } else {
- round = math.Floor(digit)
- }
- newVal = round / pow
- return
-}
-
-// Convert bytes to human readable string. Like a 2 MiB, 64.2 KiB, or 2 MB, 64.2 kB
-// if useSIPrefix is set to true
-func formatBytes(i int64, useSIPrefix bool) (result string) {
- if !useSIPrefix {
- switch {
- case i >= _TiB:
- result = fmt.Sprintf("%.02f TiB", float64(i)/_TiB)
- case i >= _GiB:
- result = fmt.Sprintf("%.02f GiB", float64(i)/_GiB)
- case i >= _MiB:
- result = fmt.Sprintf("%.02f MiB", float64(i)/_MiB)
- case i >= _KiB:
- result = fmt.Sprintf("%.02f KiB", float64(i)/_KiB)
- default:
- result = fmt.Sprintf("%d B", i)
- }
- } else {
- switch {
- case i >= _TB:
- result = fmt.Sprintf("%.02f TB", float64(i)/_TB)
- case i >= _GB:
- result = fmt.Sprintf("%.02f GB", float64(i)/_GB)
- case i >= _MB:
- result = fmt.Sprintf("%.02f MB", float64(i)/_MB)
- case i >= _kB:
- result = fmt.Sprintf("%.02f kB", float64(i)/_kB)
- default:
- result = fmt.Sprintf("%d B", i)
- }
- }
- return
-}
diff --git a/vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md b/vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md
deleted file mode 100644
index 1cade6cef..000000000
--- a/vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Brian Goff
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go
deleted file mode 100644
index b48005673..000000000
--- a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package md2man
-
-import (
- "github.com/russross/blackfriday/v2"
-)
-
-// Render converts a markdown document into a roff formatted document.
-func Render(doc []byte) []byte {
- renderer := NewRoffRenderer()
-
- return blackfriday.Run(doc,
- []blackfriday.Option{blackfriday.WithRenderer(renderer),
- blackfriday.WithExtensions(renderer.GetExtensions())}...)
-}
diff --git a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go
deleted file mode 100644
index be2b34360..000000000
--- a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go
+++ /dev/null
@@ -1,336 +0,0 @@
-package md2man
-
-import (
- "fmt"
- "io"
- "os"
- "strings"
-
- "github.com/russross/blackfriday/v2"
-)
-
-// roffRenderer implements the blackfriday.Renderer interface for creating
-// roff format (manpages) from markdown text
-type roffRenderer struct {
- extensions blackfriday.Extensions
- listCounters []int
- firstHeader bool
- firstDD bool
- listDepth int
-}
-
-const (
- titleHeader = ".TH "
- topLevelHeader = "\n\n.SH "
- secondLevelHdr = "\n.SH "
- otherHeader = "\n.SS "
- crTag = "\n"
- emphTag = "\\fI"
- emphCloseTag = "\\fP"
- strongTag = "\\fB"
- strongCloseTag = "\\fP"
- breakTag = "\n.br\n"
- paraTag = "\n.PP\n"
- hruleTag = "\n.ti 0\n\\l'\\n(.lu'\n"
- linkTag = "\n\\[la]"
- linkCloseTag = "\\[ra]"
- codespanTag = "\\fB\\fC"
- codespanCloseTag = "\\fR"
- codeTag = "\n.PP\n.RS\n\n.nf\n"
- codeCloseTag = "\n.fi\n.RE\n"
- quoteTag = "\n.PP\n.RS\n"
- quoteCloseTag = "\n.RE\n"
- listTag = "\n.RS\n"
- listCloseTag = "\n.RE\n"
- dtTag = "\n.TP\n"
- dd2Tag = "\n"
- tableStart = "\n.TS\nallbox;\n"
- tableEnd = ".TE\n"
- tableCellStart = "T{\n"
- tableCellEnd = "\nT}\n"
-)
-
-// NewRoffRenderer creates a new blackfriday Renderer for generating roff documents
-// from markdown
-func NewRoffRenderer() *roffRenderer { // nolint: golint
- var extensions blackfriday.Extensions
-
- extensions |= blackfriday.NoIntraEmphasis
- extensions |= blackfriday.Tables
- extensions |= blackfriday.FencedCode
- extensions |= blackfriday.SpaceHeadings
- extensions |= blackfriday.Footnotes
- extensions |= blackfriday.Titleblock
- extensions |= blackfriday.DefinitionLists
- return &roffRenderer{
- extensions: extensions,
- }
-}
-
-// GetExtensions returns the list of extensions used by this renderer implementation
-func (r *roffRenderer) GetExtensions() blackfriday.Extensions {
- return r.extensions
-}
-
-// RenderHeader handles outputting the header at document start
-func (r *roffRenderer) RenderHeader(w io.Writer, ast *blackfriday.Node) {
- // disable hyphenation
- out(w, ".nh\n")
-}
-
-// RenderFooter handles outputting the footer at the document end; the roff
-// renderer has no footer information
-func (r *roffRenderer) RenderFooter(w io.Writer, ast *blackfriday.Node) {
-}
-
-// RenderNode is called for each node in a markdown document; based on the node
-// type the equivalent roff output is sent to the writer
-func (r *roffRenderer) RenderNode(w io.Writer, node *blackfriday.Node, entering bool) blackfriday.WalkStatus {
-
- var walkAction = blackfriday.GoToNext
-
- switch node.Type {
- case blackfriday.Text:
- escapeSpecialChars(w, node.Literal)
- case blackfriday.Softbreak:
- out(w, crTag)
- case blackfriday.Hardbreak:
- out(w, breakTag)
- case blackfriday.Emph:
- if entering {
- out(w, emphTag)
- } else {
- out(w, emphCloseTag)
- }
- case blackfriday.Strong:
- if entering {
- out(w, strongTag)
- } else {
- out(w, strongCloseTag)
- }
- case blackfriday.Link:
- if !entering {
- out(w, linkTag+string(node.LinkData.Destination)+linkCloseTag)
- }
- case blackfriday.Image:
- // ignore images
- walkAction = blackfriday.SkipChildren
- case blackfriday.Code:
- out(w, codespanTag)
- escapeSpecialChars(w, node.Literal)
- out(w, codespanCloseTag)
- case blackfriday.Document:
- break
- case blackfriday.Paragraph:
- // roff .PP markers break lists
- if r.listDepth > 0 {
- return blackfriday.GoToNext
- }
- if entering {
- out(w, paraTag)
- } else {
- out(w, crTag)
- }
- case blackfriday.BlockQuote:
- if entering {
- out(w, quoteTag)
- } else {
- out(w, quoteCloseTag)
- }
- case blackfriday.Heading:
- r.handleHeading(w, node, entering)
- case blackfriday.HorizontalRule:
- out(w, hruleTag)
- case blackfriday.List:
- r.handleList(w, node, entering)
- case blackfriday.Item:
- r.handleItem(w, node, entering)
- case blackfriday.CodeBlock:
- out(w, codeTag)
- escapeSpecialChars(w, node.Literal)
- out(w, codeCloseTag)
- case blackfriday.Table:
- r.handleTable(w, node, entering)
- case blackfriday.TableHead:
- case blackfriday.TableBody:
- case blackfriday.TableRow:
- // no action as cell entries do all the nroff formatting
- return blackfriday.GoToNext
- case blackfriday.TableCell:
- r.handleTableCell(w, node, entering)
- case blackfriday.HTMLSpan:
- // ignore other HTML tags
- default:
- fmt.Fprintln(os.Stderr, "WARNING: go-md2man does not handle node type "+node.Type.String())
- }
- return walkAction
-}
-
-func (r *roffRenderer) handleHeading(w io.Writer, node *blackfriday.Node, entering bool) {
- if entering {
- switch node.Level {
- case 1:
- if !r.firstHeader {
- out(w, titleHeader)
- r.firstHeader = true
- break
- }
- out(w, topLevelHeader)
- case 2:
- out(w, secondLevelHdr)
- default:
- out(w, otherHeader)
- }
- }
-}
-
-func (r *roffRenderer) handleList(w io.Writer, node *blackfriday.Node, entering bool) {
- openTag := listTag
- closeTag := listCloseTag
- if node.ListFlags&blackfriday.ListTypeDefinition != 0 {
- // tags for definition lists handled within Item node
- openTag = ""
- closeTag = ""
- }
- if entering {
- r.listDepth++
- if node.ListFlags&blackfriday.ListTypeOrdered != 0 {
- r.listCounters = append(r.listCounters, 1)
- }
- out(w, openTag)
- } else {
- if node.ListFlags&blackfriday.ListTypeOrdered != 0 {
- r.listCounters = r.listCounters[:len(r.listCounters)-1]
- }
- out(w, closeTag)
- r.listDepth--
- }
-}
-
-func (r *roffRenderer) handleItem(w io.Writer, node *blackfriday.Node, entering bool) {
- if entering {
- if node.ListFlags&blackfriday.ListTypeOrdered != 0 {
- out(w, fmt.Sprintf(".IP \"%3d.\" 5\n", r.listCounters[len(r.listCounters)-1]))
- r.listCounters[len(r.listCounters)-1]++
- } else if node.ListFlags&blackfriday.ListTypeTerm != 0 {
- // DT (definition term): line just before DD (see below).
- out(w, dtTag)
- r.firstDD = true
- } else if node.ListFlags&blackfriday.ListTypeDefinition != 0 {
- // DD (definition description): line that starts with ": ".
- //
- // We have to distinguish between the first DD and the
- // subsequent ones, as there should be no vertical
- // whitespace between the DT and the first DD.
- if r.firstDD {
- r.firstDD = false
- } else {
- out(w, dd2Tag)
- }
- } else {
- out(w, ".IP \\(bu 2\n")
- }
- } else {
- out(w, "\n")
- }
-}
-
-func (r *roffRenderer) handleTable(w io.Writer, node *blackfriday.Node, entering bool) {
- if entering {
- out(w, tableStart)
- // call walker to count cells (and rows?) so format section can be produced
- columns := countColumns(node)
- out(w, strings.Repeat("l ", columns)+"\n")
- out(w, strings.Repeat("l ", columns)+".\n")
- } else {
- out(w, tableEnd)
- }
-}
-
-func (r *roffRenderer) handleTableCell(w io.Writer, node *blackfriday.Node, entering bool) {
- if entering {
- var start string
- if node.Prev != nil && node.Prev.Type == blackfriday.TableCell {
- start = "\t"
- }
- if node.IsHeader {
- start += codespanTag
- } else if nodeLiteralSize(node) > 30 {
- start += tableCellStart
- }
- out(w, start)
- } else {
- var end string
- if node.IsHeader {
- end = codespanCloseTag
- } else if nodeLiteralSize(node) > 30 {
- end = tableCellEnd
- }
- if node.Next == nil && end != tableCellEnd {
- // Last cell: need to carriage return if we are at the end of the
- // header row and content isn't wrapped in a "tablecell"
- end += crTag
- }
- out(w, end)
- }
-}
-
-func nodeLiteralSize(node *blackfriday.Node) int {
- total := 0
- for n := node.FirstChild; n != nil; n = n.FirstChild {
- total += len(n.Literal)
- }
- return total
-}
-
-// because roff format requires knowing the column count before outputting any table
-// data we need to walk a table tree and count the columns
-func countColumns(node *blackfriday.Node) int {
- var columns int
-
- node.Walk(func(node *blackfriday.Node, entering bool) blackfriday.WalkStatus {
- switch node.Type {
- case blackfriday.TableRow:
- if !entering {
- return blackfriday.Terminate
- }
- case blackfriday.TableCell:
- if entering {
- columns++
- }
- default:
- }
- return blackfriday.GoToNext
- })
- return columns
-}
-
-func out(w io.Writer, output string) {
- io.WriteString(w, output) // nolint: errcheck
-}
-
-func escapeSpecialChars(w io.Writer, text []byte) {
- for i := 0; i < len(text); i++ {
- // escape initial apostrophe or period
- if len(text) >= 1 && (text[0] == '\'' || text[0] == '.') {
- out(w, "\\&")
- }
-
- // directly copy normal characters
- org := i
-
- for i < len(text) && text[i] != '\\' {
- i++
- }
- if i > org {
- w.Write(text[org:i]) // nolint: errcheck
- }
-
- // escape a character
- if i >= len(text) {
- break
- }
-
- w.Write([]byte{'\\', text[i]}) // nolint: errcheck
- }
-}
diff --git a/vendor/github.com/fatih/color/LICENSE.md b/vendor/github.com/fatih/color/LICENSE.md
deleted file mode 100644
index 25fdaf639..000000000
--- a/vendor/github.com/fatih/color/LICENSE.md
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2013 Fatih Arslan
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/fatih/color/README.md b/vendor/github.com/fatih/color/README.md
deleted file mode 100644
index be82827ca..000000000
--- a/vendor/github.com/fatih/color/README.md
+++ /dev/null
@@ -1,176 +0,0 @@
-# color [](https://github.com/fatih/color/actions) [](https://pkg.go.dev/github.com/fatih/color)
-
-Color lets you use colorized outputs in terms of [ANSI Escape
-Codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors) in Go (Golang). It
-has support for Windows too! The API can be used in several ways, pick one that
-suits you.
-
-
-
-## Install
-
-```bash
-go get github.com/fatih/color
-```
-
-## Examples
-
-### Standard colors
-
-```go
-// Print with default helper functions
-color.Cyan("Prints text in cyan.")
-
-// A newline will be appended automatically
-color.Blue("Prints %s in blue.", "text")
-
-// These are using the default foreground colors
-color.Red("We have red")
-color.Magenta("And many others ..")
-
-```
-
-### Mix and reuse colors
-
-```go
-// Create a new color object
-c := color.New(color.FgCyan).Add(color.Underline)
-c.Println("Prints cyan text with an underline.")
-
-// Or just add them to New()
-d := color.New(color.FgCyan, color.Bold)
-d.Printf("This prints bold cyan %s\n", "too!.")
-
-// Mix up foreground and background colors, create new mixes!
-red := color.New(color.FgRed)
-
-boldRed := red.Add(color.Bold)
-boldRed.Println("This will print text in bold red.")
-
-whiteBackground := red.Add(color.BgWhite)
-whiteBackground.Println("Red text with white background.")
-```
-
-### Use your own output (io.Writer)
-
-```go
-// Use your own io.Writer output
-color.New(color.FgBlue).Fprintln(myWriter, "blue color!")
-
-blue := color.New(color.FgBlue)
-blue.Fprint(writer, "This will print text in blue.")
-```
-
-### Custom print functions (PrintFunc)
-
-```go
-// Create a custom print function for convenience
-red := color.New(color.FgRed).PrintfFunc()
-red("Warning")
-red("Error: %s", err)
-
-// Mix up multiple attributes
-notice := color.New(color.Bold, color.FgGreen).PrintlnFunc()
-notice("Don't forget this...")
-```
-
-### Custom fprint functions (FprintFunc)
-
-```go
-blue := color.New(color.FgBlue).FprintfFunc()
-blue(myWriter, "important notice: %s", stars)
-
-// Mix up with multiple attributes
-success := color.New(color.Bold, color.FgGreen).FprintlnFunc()
-success(myWriter, "Don't forget this...")
-```
-
-### Insert into noncolor strings (SprintFunc)
-
-```go
-// Create SprintXxx functions to mix strings with other non-colorized strings:
-yellow := color.New(color.FgYellow).SprintFunc()
-red := color.New(color.FgRed).SprintFunc()
-fmt.Printf("This is a %s and this is %s.\n", yellow("warning"), red("error"))
-
-info := color.New(color.FgWhite, color.BgGreen).SprintFunc()
-fmt.Printf("This %s rocks!\n", info("package"))
-
-// Use helper functions
-fmt.Println("This", color.RedString("warning"), "should be not neglected.")
-fmt.Printf("%v %v\n", color.GreenString("Info:"), "an important message.")
-
-// Windows supported too! Just don't forget to change the output to color.Output
-fmt.Fprintf(color.Output, "Windows support: %s", color.GreenString("PASS"))
-```
-
-### Plug into existing code
-
-```go
-// Use handy standard colors
-color.Set(color.FgYellow)
-
-fmt.Println("Existing text will now be in yellow")
-fmt.Printf("This one %s\n", "too")
-
-color.Unset() // Don't forget to unset
-
-// You can mix up parameters
-color.Set(color.FgMagenta, color.Bold)
-defer color.Unset() // Use it in your function
-
-fmt.Println("All text will now be bold magenta.")
-```
-
-### Disable/Enable color
-
-There might be a case where you want to explicitly disable/enable color output. the
-`go-isatty` package will automatically disable color output for non-tty output streams
-(for example if the output were piped directly to `less`).
-
-The `color` package also disables color output if the [`NO_COLOR`](https://no-color.org) environment
-variable is set to a non-empty string.
-
-`Color` has support to disable/enable colors programmatically both globally and
-for single color definitions. For example suppose you have a CLI app and a
-`-no-color` bool flag. You can easily disable the color output with:
-
-```go
-var flagNoColor = flag.Bool("no-color", false, "Disable color output")
-
-if *flagNoColor {
- color.NoColor = true // disables colorized output
-}
-```
-
-It also has support for single color definitions (local). You can
-disable/enable color output on the fly:
-
-```go
-c := color.New(color.FgCyan)
-c.Println("Prints cyan text")
-
-c.DisableColor()
-c.Println("This is printed without any color")
-
-c.EnableColor()
-c.Println("This prints again cyan...")
-```
-
-## GitHub Actions
-
-To output color in GitHub Actions (or other CI systems that support ANSI colors), make sure to set `color.NoColor = false` so that it bypasses the check for non-tty output streams.
-
-## Todo
-
-* Save/Return previous values
-* Evaluate fmt.Formatter interface
-
-## Credits
-
-* [Fatih Arslan](https://github.com/fatih)
-* Windows support via @mattn: [colorable](https://github.com/mattn/go-colorable)
-
-## License
-
-The MIT License (MIT) - see [`LICENSE.md`](https://github.com/fatih/color/blob/master/LICENSE.md) for more details
diff --git a/vendor/github.com/fatih/color/color.go b/vendor/github.com/fatih/color/color.go
deleted file mode 100644
index 889f9e77b..000000000
--- a/vendor/github.com/fatih/color/color.go
+++ /dev/null
@@ -1,616 +0,0 @@
-package color
-
-import (
- "fmt"
- "io"
- "os"
- "strconv"
- "strings"
- "sync"
-
- "github.com/mattn/go-colorable"
- "github.com/mattn/go-isatty"
-)
-
-var (
- // NoColor defines if the output is colorized or not. It's dynamically set to
- // false or true based on the stdout's file descriptor referring to a terminal
- // or not. It's also set to true if the NO_COLOR environment variable is
- // set (regardless of its value). This is a global option and affects all
- // colors. For more control over each color block use the methods
- // DisableColor() individually.
- NoColor = noColorIsSet() || os.Getenv("TERM") == "dumb" ||
- (!isatty.IsTerminal(os.Stdout.Fd()) && !isatty.IsCygwinTerminal(os.Stdout.Fd()))
-
- // Output defines the standard output of the print functions. By default,
- // os.Stdout is used.
- Output = colorable.NewColorableStdout()
-
- // Error defines a color supporting writer for os.Stderr.
- Error = colorable.NewColorableStderr()
-
- // colorsCache is used to reduce the count of created Color objects and
- // allows to reuse already created objects with required Attribute.
- colorsCache = make(map[Attribute]*Color)
- colorsCacheMu sync.Mutex // protects colorsCache
-)
-
-// noColorIsSet returns true if the environment variable NO_COLOR is set to a non-empty string.
-func noColorIsSet() bool {
- return os.Getenv("NO_COLOR") != ""
-}
-
-// Color defines a custom color object which is defined by SGR parameters.
-type Color struct {
- params []Attribute
- noColor *bool
-}
-
-// Attribute defines a single SGR Code
-type Attribute int
-
-const escape = "\x1b"
-
-// Base attributes
-const (
- Reset Attribute = iota
- Bold
- Faint
- Italic
- Underline
- BlinkSlow
- BlinkRapid
- ReverseVideo
- Concealed
- CrossedOut
-)
-
-// Foreground text colors
-const (
- FgBlack Attribute = iota + 30
- FgRed
- FgGreen
- FgYellow
- FgBlue
- FgMagenta
- FgCyan
- FgWhite
-)
-
-// Foreground Hi-Intensity text colors
-const (
- FgHiBlack Attribute = iota + 90
- FgHiRed
- FgHiGreen
- FgHiYellow
- FgHiBlue
- FgHiMagenta
- FgHiCyan
- FgHiWhite
-)
-
-// Background text colors
-const (
- BgBlack Attribute = iota + 40
- BgRed
- BgGreen
- BgYellow
- BgBlue
- BgMagenta
- BgCyan
- BgWhite
-)
-
-// Background Hi-Intensity text colors
-const (
- BgHiBlack Attribute = iota + 100
- BgHiRed
- BgHiGreen
- BgHiYellow
- BgHiBlue
- BgHiMagenta
- BgHiCyan
- BgHiWhite
-)
-
-// New returns a newly created color object.
-func New(value ...Attribute) *Color {
- c := &Color{
- params: make([]Attribute, 0),
- }
-
- if noColorIsSet() {
- c.noColor = boolPtr(true)
- }
-
- c.Add(value...)
- return c
-}
-
-// Set sets the given parameters immediately. It will change the color of
-// output with the given SGR parameters until color.Unset() is called.
-func Set(p ...Attribute) *Color {
- c := New(p...)
- c.Set()
- return c
-}
-
-// Unset resets all escape attributes and clears the output. Usually should
-// be called after Set().
-func Unset() {
- if NoColor {
- return
- }
-
- fmt.Fprintf(Output, "%s[%dm", escape, Reset)
-}
-
-// Set sets the SGR sequence.
-func (c *Color) Set() *Color {
- if c.isNoColorSet() {
- return c
- }
-
- fmt.Fprint(Output, c.format())
- return c
-}
-
-func (c *Color) unset() {
- if c.isNoColorSet() {
- return
- }
-
- Unset()
-}
-
-// SetWriter is used to set the SGR sequence with the given io.Writer. This is
-// a low-level function, and users should use the higher-level functions, such
-// as color.Fprint, color.Print, etc.
-func (c *Color) SetWriter(w io.Writer) *Color {
- if c.isNoColorSet() {
- return c
- }
-
- fmt.Fprint(w, c.format())
- return c
-}
-
-// UnsetWriter resets all escape attributes and clears the output with the give
-// io.Writer. Usually should be called after SetWriter().
-func (c *Color) UnsetWriter(w io.Writer) {
- if c.isNoColorSet() {
- return
- }
-
- if NoColor {
- return
- }
-
- fmt.Fprintf(w, "%s[%dm", escape, Reset)
-}
-
-// Add is used to chain SGR parameters. Use as many as parameters to combine
-// and create custom color objects. Example: Add(color.FgRed, color.Underline).
-func (c *Color) Add(value ...Attribute) *Color {
- c.params = append(c.params, value...)
- return c
-}
-
-// Fprint formats using the default formats for its operands and writes to w.
-// Spaces are added between operands when neither is a string.
-// It returns the number of bytes written and any write error encountered.
-// On Windows, users should wrap w with colorable.NewColorable() if w is of
-// type *os.File.
-func (c *Color) Fprint(w io.Writer, a ...interface{}) (n int, err error) {
- c.SetWriter(w)
- defer c.UnsetWriter(w)
-
- return fmt.Fprint(w, a...)
-}
-
-// Print formats using the default formats for its operands and writes to
-// standard output. Spaces are added between operands when neither is a
-// string. It returns the number of bytes written and any write error
-// encountered. This is the standard fmt.Print() method wrapped with the given
-// color.
-func (c *Color) Print(a ...interface{}) (n int, err error) {
- c.Set()
- defer c.unset()
-
- return fmt.Fprint(Output, a...)
-}
-
-// Fprintf formats according to a format specifier and writes to w.
-// It returns the number of bytes written and any write error encountered.
-// On Windows, users should wrap w with colorable.NewColorable() if w is of
-// type *os.File.
-func (c *Color) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {
- c.SetWriter(w)
- defer c.UnsetWriter(w)
-
- return fmt.Fprintf(w, format, a...)
-}
-
-// Printf formats according to a format specifier and writes to standard output.
-// It returns the number of bytes written and any write error encountered.
-// This is the standard fmt.Printf() method wrapped with the given color.
-func (c *Color) Printf(format string, a ...interface{}) (n int, err error) {
- c.Set()
- defer c.unset()
-
- return fmt.Fprintf(Output, format, a...)
-}
-
-// Fprintln formats using the default formats for its operands and writes to w.
-// Spaces are always added between operands and a newline is appended.
-// On Windows, users should wrap w with colorable.NewColorable() if w is of
-// type *os.File.
-func (c *Color) Fprintln(w io.Writer, a ...interface{}) (n int, err error) {
- c.SetWriter(w)
- defer c.UnsetWriter(w)
-
- return fmt.Fprintln(w, a...)
-}
-
-// Println formats using the default formats for its operands and writes to
-// standard output. Spaces are always added between operands and a newline is
-// appended. It returns the number of bytes written and any write error
-// encountered. This is the standard fmt.Print() method wrapped with the given
-// color.
-func (c *Color) Println(a ...interface{}) (n int, err error) {
- c.Set()
- defer c.unset()
-
- return fmt.Fprintln(Output, a...)
-}
-
-// Sprint is just like Print, but returns a string instead of printing it.
-func (c *Color) Sprint(a ...interface{}) string {
- return c.wrap(fmt.Sprint(a...))
-}
-
-// Sprintln is just like Println, but returns a string instead of printing it.
-func (c *Color) Sprintln(a ...interface{}) string {
- return c.wrap(fmt.Sprintln(a...))
-}
-
-// Sprintf is just like Printf, but returns a string instead of printing it.
-func (c *Color) Sprintf(format string, a ...interface{}) string {
- return c.wrap(fmt.Sprintf(format, a...))
-}
-
-// FprintFunc returns a new function that prints the passed arguments as
-// colorized with color.Fprint().
-func (c *Color) FprintFunc() func(w io.Writer, a ...interface{}) {
- return func(w io.Writer, a ...interface{}) {
- c.Fprint(w, a...)
- }
-}
-
-// PrintFunc returns a new function that prints the passed arguments as
-// colorized with color.Print().
-func (c *Color) PrintFunc() func(a ...interface{}) {
- return func(a ...interface{}) {
- c.Print(a...)
- }
-}
-
-// FprintfFunc returns a new function that prints the passed arguments as
-// colorized with color.Fprintf().
-func (c *Color) FprintfFunc() func(w io.Writer, format string, a ...interface{}) {
- return func(w io.Writer, format string, a ...interface{}) {
- c.Fprintf(w, format, a...)
- }
-}
-
-// PrintfFunc returns a new function that prints the passed arguments as
-// colorized with color.Printf().
-func (c *Color) PrintfFunc() func(format string, a ...interface{}) {
- return func(format string, a ...interface{}) {
- c.Printf(format, a...)
- }
-}
-
-// FprintlnFunc returns a new function that prints the passed arguments as
-// colorized with color.Fprintln().
-func (c *Color) FprintlnFunc() func(w io.Writer, a ...interface{}) {
- return func(w io.Writer, a ...interface{}) {
- c.Fprintln(w, a...)
- }
-}
-
-// PrintlnFunc returns a new function that prints the passed arguments as
-// colorized with color.Println().
-func (c *Color) PrintlnFunc() func(a ...interface{}) {
- return func(a ...interface{}) {
- c.Println(a...)
- }
-}
-
-// SprintFunc returns a new function that returns colorized strings for the
-// given arguments with fmt.Sprint(). Useful to put into or mix into other
-// string. Windows users should use this in conjunction with color.Output, example:
-//
-// put := New(FgYellow).SprintFunc()
-// fmt.Fprintf(color.Output, "This is a %s", put("warning"))
-func (c *Color) SprintFunc() func(a ...interface{}) string {
- return func(a ...interface{}) string {
- return c.wrap(fmt.Sprint(a...))
- }
-}
-
-// SprintfFunc returns a new function that returns colorized strings for the
-// given arguments with fmt.Sprintf(). Useful to put into or mix into other
-// string. Windows users should use this in conjunction with color.Output.
-func (c *Color) SprintfFunc() func(format string, a ...interface{}) string {
- return func(format string, a ...interface{}) string {
- return c.wrap(fmt.Sprintf(format, a...))
- }
-}
-
-// SprintlnFunc returns a new function that returns colorized strings for the
-// given arguments with fmt.Sprintln(). Useful to put into or mix into other
-// string. Windows users should use this in conjunction with color.Output.
-func (c *Color) SprintlnFunc() func(a ...interface{}) string {
- return func(a ...interface{}) string {
- return c.wrap(fmt.Sprintln(a...))
- }
-}
-
-// sequence returns a formatted SGR sequence to be plugged into a "\x1b[...m"
-// an example output might be: "1;36" -> bold cyan
-func (c *Color) sequence() string {
- format := make([]string, len(c.params))
- for i, v := range c.params {
- format[i] = strconv.Itoa(int(v))
- }
-
- return strings.Join(format, ";")
-}
-
-// wrap wraps the s string with the colors attributes. The string is ready to
-// be printed.
-func (c *Color) wrap(s string) string {
- if c.isNoColorSet() {
- return s
- }
-
- return c.format() + s + c.unformat()
-}
-
-func (c *Color) format() string {
- return fmt.Sprintf("%s[%sm", escape, c.sequence())
-}
-
-func (c *Color) unformat() string {
- return fmt.Sprintf("%s[%dm", escape, Reset)
-}
-
-// DisableColor disables the color output. Useful to not change any existing
-// code and still being able to output. Can be used for flags like
-// "--no-color". To enable back use EnableColor() method.
-func (c *Color) DisableColor() {
- c.noColor = boolPtr(true)
-}
-
-// EnableColor enables the color output. Use it in conjunction with
-// DisableColor(). Otherwise, this method has no side effects.
-func (c *Color) EnableColor() {
- c.noColor = boolPtr(false)
-}
-
-func (c *Color) isNoColorSet() bool {
- // check first if we have user set action
- if c.noColor != nil {
- return *c.noColor
- }
-
- // if not return the global option, which is disabled by default
- return NoColor
-}
-
-// Equals returns a boolean value indicating whether two colors are equal.
-func (c *Color) Equals(c2 *Color) bool {
- if len(c.params) != len(c2.params) {
- return false
- }
-
- for _, attr := range c.params {
- if !c2.attrExists(attr) {
- return false
- }
- }
-
- return true
-}
-
-func (c *Color) attrExists(a Attribute) bool {
- for _, attr := range c.params {
- if attr == a {
- return true
- }
- }
-
- return false
-}
-
-func boolPtr(v bool) *bool {
- return &v
-}
-
-func getCachedColor(p Attribute) *Color {
- colorsCacheMu.Lock()
- defer colorsCacheMu.Unlock()
-
- c, ok := colorsCache[p]
- if !ok {
- c = New(p)
- colorsCache[p] = c
- }
-
- return c
-}
-
-func colorPrint(format string, p Attribute, a ...interface{}) {
- c := getCachedColor(p)
-
- if !strings.HasSuffix(format, "\n") {
- format += "\n"
- }
-
- if len(a) == 0 {
- c.Print(format)
- } else {
- c.Printf(format, a...)
- }
-}
-
-func colorString(format string, p Attribute, a ...interface{}) string {
- c := getCachedColor(p)
-
- if len(a) == 0 {
- return c.SprintFunc()(format)
- }
-
- return c.SprintfFunc()(format, a...)
-}
-
-// Black is a convenient helper function to print with black foreground. A
-// newline is appended to format by default.
-func Black(format string, a ...interface{}) { colorPrint(format, FgBlack, a...) }
-
-// Red is a convenient helper function to print with red foreground. A
-// newline is appended to format by default.
-func Red(format string, a ...interface{}) { colorPrint(format, FgRed, a...) }
-
-// Green is a convenient helper function to print with green foreground. A
-// newline is appended to format by default.
-func Green(format string, a ...interface{}) { colorPrint(format, FgGreen, a...) }
-
-// Yellow is a convenient helper function to print with yellow foreground.
-// A newline is appended to format by default.
-func Yellow(format string, a ...interface{}) { colorPrint(format, FgYellow, a...) }
-
-// Blue is a convenient helper function to print with blue foreground. A
-// newline is appended to format by default.
-func Blue(format string, a ...interface{}) { colorPrint(format, FgBlue, a...) }
-
-// Magenta is a convenient helper function to print with magenta foreground.
-// A newline is appended to format by default.
-func Magenta(format string, a ...interface{}) { colorPrint(format, FgMagenta, a...) }
-
-// Cyan is a convenient helper function to print with cyan foreground. A
-// newline is appended to format by default.
-func Cyan(format string, a ...interface{}) { colorPrint(format, FgCyan, a...) }
-
-// White is a convenient helper function to print with white foreground. A
-// newline is appended to format by default.
-func White(format string, a ...interface{}) { colorPrint(format, FgWhite, a...) }
-
-// BlackString is a convenient helper function to return a string with black
-// foreground.
-func BlackString(format string, a ...interface{}) string { return colorString(format, FgBlack, a...) }
-
-// RedString is a convenient helper function to return a string with red
-// foreground.
-func RedString(format string, a ...interface{}) string { return colorString(format, FgRed, a...) }
-
-// GreenString is a convenient helper function to return a string with green
-// foreground.
-func GreenString(format string, a ...interface{}) string { return colorString(format, FgGreen, a...) }
-
-// YellowString is a convenient helper function to return a string with yellow
-// foreground.
-func YellowString(format string, a ...interface{}) string { return colorString(format, FgYellow, a...) }
-
-// BlueString is a convenient helper function to return a string with blue
-// foreground.
-func BlueString(format string, a ...interface{}) string { return colorString(format, FgBlue, a...) }
-
-// MagentaString is a convenient helper function to return a string with magenta
-// foreground.
-func MagentaString(format string, a ...interface{}) string {
- return colorString(format, FgMagenta, a...)
-}
-
-// CyanString is a convenient helper function to return a string with cyan
-// foreground.
-func CyanString(format string, a ...interface{}) string { return colorString(format, FgCyan, a...) }
-
-// WhiteString is a convenient helper function to return a string with white
-// foreground.
-func WhiteString(format string, a ...interface{}) string { return colorString(format, FgWhite, a...) }
-
-// HiBlack is a convenient helper function to print with hi-intensity black foreground. A
-// newline is appended to format by default.
-func HiBlack(format string, a ...interface{}) { colorPrint(format, FgHiBlack, a...) }
-
-// HiRed is a convenient helper function to print with hi-intensity red foreground. A
-// newline is appended to format by default.
-func HiRed(format string, a ...interface{}) { colorPrint(format, FgHiRed, a...) }
-
-// HiGreen is a convenient helper function to print with hi-intensity green foreground. A
-// newline is appended to format by default.
-func HiGreen(format string, a ...interface{}) { colorPrint(format, FgHiGreen, a...) }
-
-// HiYellow is a convenient helper function to print with hi-intensity yellow foreground.
-// A newline is appended to format by default.
-func HiYellow(format string, a ...interface{}) { colorPrint(format, FgHiYellow, a...) }
-
-// HiBlue is a convenient helper function to print with hi-intensity blue foreground. A
-// newline is appended to format by default.
-func HiBlue(format string, a ...interface{}) { colorPrint(format, FgHiBlue, a...) }
-
-// HiMagenta is a convenient helper function to print with hi-intensity magenta foreground.
-// A newline is appended to format by default.
-func HiMagenta(format string, a ...interface{}) { colorPrint(format, FgHiMagenta, a...) }
-
-// HiCyan is a convenient helper function to print with hi-intensity cyan foreground. A
-// newline is appended to format by default.
-func HiCyan(format string, a ...interface{}) { colorPrint(format, FgHiCyan, a...) }
-
-// HiWhite is a convenient helper function to print with hi-intensity white foreground. A
-// newline is appended to format by default.
-func HiWhite(format string, a ...interface{}) { colorPrint(format, FgHiWhite, a...) }
-
-// HiBlackString is a convenient helper function to return a string with hi-intensity black
-// foreground.
-func HiBlackString(format string, a ...interface{}) string {
- return colorString(format, FgHiBlack, a...)
-}
-
-// HiRedString is a convenient helper function to return a string with hi-intensity red
-// foreground.
-func HiRedString(format string, a ...interface{}) string { return colorString(format, FgHiRed, a...) }
-
-// HiGreenString is a convenient helper function to return a string with hi-intensity green
-// foreground.
-func HiGreenString(format string, a ...interface{}) string {
- return colorString(format, FgHiGreen, a...)
-}
-
-// HiYellowString is a convenient helper function to return a string with hi-intensity yellow
-// foreground.
-func HiYellowString(format string, a ...interface{}) string {
- return colorString(format, FgHiYellow, a...)
-}
-
-// HiBlueString is a convenient helper function to return a string with hi-intensity blue
-// foreground.
-func HiBlueString(format string, a ...interface{}) string { return colorString(format, FgHiBlue, a...) }
-
-// HiMagentaString is a convenient helper function to return a string with hi-intensity magenta
-// foreground.
-func HiMagentaString(format string, a ...interface{}) string {
- return colorString(format, FgHiMagenta, a...)
-}
-
-// HiCyanString is a convenient helper function to return a string with hi-intensity cyan
-// foreground.
-func HiCyanString(format string, a ...interface{}) string { return colorString(format, FgHiCyan, a...) }
-
-// HiWhiteString is a convenient helper function to return a string with hi-intensity white
-// foreground.
-func HiWhiteString(format string, a ...interface{}) string {
- return colorString(format, FgHiWhite, a...)
-}
diff --git a/vendor/github.com/fatih/color/color_windows.go b/vendor/github.com/fatih/color/color_windows.go
deleted file mode 100644
index be01c558e..000000000
--- a/vendor/github.com/fatih/color/color_windows.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package color
-
-import (
- "os"
-
- "golang.org/x/sys/windows"
-)
-
-func init() {
- // Opt-in for ansi color support for current process.
- // https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#output-sequences
- var outMode uint32
- out := windows.Handle(os.Stdout.Fd())
- if err := windows.GetConsoleMode(out, &outMode); err != nil {
- return
- }
- outMode |= windows.ENABLE_PROCESSED_OUTPUT | windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING
- _ = windows.SetConsoleMode(out, outMode)
-}
diff --git a/vendor/github.com/fatih/color/doc.go b/vendor/github.com/fatih/color/doc.go
deleted file mode 100644
index 9491ad541..000000000
--- a/vendor/github.com/fatih/color/doc.go
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
-Package color is an ANSI color package to output colorized or SGR defined
-output to the standard output. The API can be used in several way, pick one
-that suits you.
-
-Use simple and default helper functions with predefined foreground colors:
-
- color.Cyan("Prints text in cyan.")
-
- // a newline will be appended automatically
- color.Blue("Prints %s in blue.", "text")
-
- // More default foreground colors..
- color.Red("We have red")
- color.Yellow("Yellow color too!")
- color.Magenta("And many others ..")
-
- // Hi-intensity colors
- color.HiGreen("Bright green color.")
- color.HiBlack("Bright black means gray..")
- color.HiWhite("Shiny white color!")
-
-However, there are times when custom color mixes are required. Below are some
-examples to create custom color objects and use the print functions of each
-separate color object.
-
- // Create a new color object
- c := color.New(color.FgCyan).Add(color.Underline)
- c.Println("Prints cyan text with an underline.")
-
- // Or just add them to New()
- d := color.New(color.FgCyan, color.Bold)
- d.Printf("This prints bold cyan %s\n", "too!.")
-
-
- // Mix up foreground and background colors, create new mixes!
- red := color.New(color.FgRed)
-
- boldRed := red.Add(color.Bold)
- boldRed.Println("This will print text in bold red.")
-
- whiteBackground := red.Add(color.BgWhite)
- whiteBackground.Println("Red text with White background.")
-
- // Use your own io.Writer output
- color.New(color.FgBlue).Fprintln(myWriter, "blue color!")
-
- blue := color.New(color.FgBlue)
- blue.Fprint(myWriter, "This will print text in blue.")
-
-You can create PrintXxx functions to simplify even more:
-
- // Create a custom print function for convenient
- red := color.New(color.FgRed).PrintfFunc()
- red("warning")
- red("error: %s", err)
-
- // Mix up multiple attributes
- notice := color.New(color.Bold, color.FgGreen).PrintlnFunc()
- notice("don't forget this...")
-
-You can also FprintXxx functions to pass your own io.Writer:
-
- blue := color.New(FgBlue).FprintfFunc()
- blue(myWriter, "important notice: %s", stars)
-
- // Mix up with multiple attributes
- success := color.New(color.Bold, color.FgGreen).FprintlnFunc()
- success(myWriter, don't forget this...")
-
-Or create SprintXxx functions to mix strings with other non-colorized strings:
-
- yellow := New(FgYellow).SprintFunc()
- red := New(FgRed).SprintFunc()
-
- fmt.Printf("this is a %s and this is %s.\n", yellow("warning"), red("error"))
-
- info := New(FgWhite, BgGreen).SprintFunc()
- fmt.Printf("this %s rocks!\n", info("package"))
-
-Windows support is enabled by default. All Print functions work as intended.
-However, only for color.SprintXXX functions, user should use fmt.FprintXXX and
-set the output to color.Output:
-
- fmt.Fprintf(color.Output, "Windows support: %s", color.GreenString("PASS"))
-
- info := New(FgWhite, BgGreen).SprintFunc()
- fmt.Fprintf(color.Output, "this %s rocks!\n", info("package"))
-
-Using with existing code is possible. Just use the Set() method to set the
-standard output to the given parameters. That way a rewrite of an existing
-code is not required.
-
- // Use handy standard colors.
- color.Set(color.FgYellow)
-
- fmt.Println("Existing text will be now in Yellow")
- fmt.Printf("This one %s\n", "too")
-
- color.Unset() // don't forget to unset
-
- // You can mix up parameters
- color.Set(color.FgMagenta, color.Bold)
- defer color.Unset() // use it in your function
-
- fmt.Println("All text will be now bold magenta.")
-
-There might be a case where you want to disable color output (for example to
-pipe the standard output of your app to somewhere else). `Color` has support to
-disable colors both globally and for single color definition. For example
-suppose you have a CLI app and a `--no-color` bool flag. You can easily disable
-the color output with:
-
- var flagNoColor = flag.Bool("no-color", false, "Disable color output")
-
- if *flagNoColor {
- color.NoColor = true // disables colorized output
- }
-
-You can also disable the color by setting the NO_COLOR environment variable to any value.
-
-It also has support for single color definitions (local). You can
-disable/enable color output on the fly:
-
- c := color.New(color.FgCyan)
- c.Println("Prints cyan text")
-
- c.DisableColor()
- c.Println("This is printed without any color")
-
- c.EnableColor()
- c.Println("This prints again cyan...")
-*/
-package color
diff --git a/vendor/github.com/google/go-cmp/LICENSE b/vendor/github.com/google/go-cmp/LICENSE
deleted file mode 100644
index 32017f8fa..000000000
--- a/vendor/github.com/google/go-cmp/LICENSE
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright (c) 2017 The Go Authors. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
- * Redistributions of source code must retain the above copyright
-notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
-copyright notice, this list of conditions and the following disclaimer
-in the documentation and/or other materials provided with the
-distribution.
- * Neither the name of Google Inc. nor the names of its
-contributors may be used to endorse or promote products derived from
-this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/google/go-cmp/cmp/cmpopts/equate.go b/vendor/github.com/google/go-cmp/cmp/cmpopts/equate.go
deleted file mode 100644
index 3d8d0cd3a..000000000
--- a/vendor/github.com/google/go-cmp/cmp/cmpopts/equate.go
+++ /dev/null
@@ -1,185 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Package cmpopts provides common options for the cmp package.
-package cmpopts
-
-import (
- "errors"
- "fmt"
- "math"
- "reflect"
- "time"
-
- "github.com/google/go-cmp/cmp"
-)
-
-func equateAlways(_, _ interface{}) bool { return true }
-
-// EquateEmpty returns a [cmp.Comparer] option that determines all maps and slices
-// with a length of zero to be equal, regardless of whether they are nil.
-//
-// EquateEmpty can be used in conjunction with [SortSlices] and [SortMaps].
-func EquateEmpty() cmp.Option {
- return cmp.FilterValues(isEmpty, cmp.Comparer(equateAlways))
-}
-
-func isEmpty(x, y interface{}) bool {
- vx, vy := reflect.ValueOf(x), reflect.ValueOf(y)
- return (x != nil && y != nil && vx.Type() == vy.Type()) &&
- (vx.Kind() == reflect.Slice || vx.Kind() == reflect.Map) &&
- (vx.Len() == 0 && vy.Len() == 0)
-}
-
-// EquateApprox returns a [cmp.Comparer] option that determines float32 or float64
-// values to be equal if they are within a relative fraction or absolute margin.
-// This option is not used when either x or y is NaN or infinite.
-//
-// The fraction determines that the difference of two values must be within the
-// smaller fraction of the two values, while the margin determines that the two
-// values must be within some absolute margin.
-// To express only a fraction or only a margin, use 0 for the other parameter.
-// The fraction and margin must be non-negative.
-//
-// The mathematical expression used is equivalent to:
-//
-// |x-y| ≤ max(fraction*min(|x|, |y|), margin)
-//
-// EquateApprox can be used in conjunction with [EquateNaNs].
-func EquateApprox(fraction, margin float64) cmp.Option {
- if margin < 0 || fraction < 0 || math.IsNaN(margin) || math.IsNaN(fraction) {
- panic("margin or fraction must be a non-negative number")
- }
- a := approximator{fraction, margin}
- return cmp.Options{
- cmp.FilterValues(areRealF64s, cmp.Comparer(a.compareF64)),
- cmp.FilterValues(areRealF32s, cmp.Comparer(a.compareF32)),
- }
-}
-
-type approximator struct{ frac, marg float64 }
-
-func areRealF64s(x, y float64) bool {
- return !math.IsNaN(x) && !math.IsNaN(y) && !math.IsInf(x, 0) && !math.IsInf(y, 0)
-}
-func areRealF32s(x, y float32) bool {
- return areRealF64s(float64(x), float64(y))
-}
-func (a approximator) compareF64(x, y float64) bool {
- relMarg := a.frac * math.Min(math.Abs(x), math.Abs(y))
- return math.Abs(x-y) <= math.Max(a.marg, relMarg)
-}
-func (a approximator) compareF32(x, y float32) bool {
- return a.compareF64(float64(x), float64(y))
-}
-
-// EquateNaNs returns a [cmp.Comparer] option that determines float32 and float64
-// NaN values to be equal.
-//
-// EquateNaNs can be used in conjunction with [EquateApprox].
-func EquateNaNs() cmp.Option {
- return cmp.Options{
- cmp.FilterValues(areNaNsF64s, cmp.Comparer(equateAlways)),
- cmp.FilterValues(areNaNsF32s, cmp.Comparer(equateAlways)),
- }
-}
-
-func areNaNsF64s(x, y float64) bool {
- return math.IsNaN(x) && math.IsNaN(y)
-}
-func areNaNsF32s(x, y float32) bool {
- return areNaNsF64s(float64(x), float64(y))
-}
-
-// EquateApproxTime returns a [cmp.Comparer] option that determines two non-zero
-// [time.Time] values to be equal if they are within some margin of one another.
-// If both times have a monotonic clock reading, then the monotonic time
-// difference will be used. The margin must be non-negative.
-func EquateApproxTime(margin time.Duration) cmp.Option {
- if margin < 0 {
- panic("margin must be a non-negative number")
- }
- a := timeApproximator{margin}
- return cmp.FilterValues(areNonZeroTimes, cmp.Comparer(a.compare))
-}
-
-func areNonZeroTimes(x, y time.Time) bool {
- return !x.IsZero() && !y.IsZero()
-}
-
-type timeApproximator struct {
- margin time.Duration
-}
-
-func (a timeApproximator) compare(x, y time.Time) bool {
- // Avoid subtracting times to avoid overflow when the
- // difference is larger than the largest representable duration.
- if x.After(y) {
- // Ensure x is always before y
- x, y = y, x
- }
- // We're within the margin if x+margin >= y.
- // Note: time.Time doesn't have AfterOrEqual method hence the negation.
- return !x.Add(a.margin).Before(y)
-}
-
-// AnyError is an error that matches any non-nil error.
-var AnyError anyError
-
-type anyError struct{}
-
-func (anyError) Error() string { return "any error" }
-func (anyError) Is(err error) bool { return err != nil }
-
-// EquateErrors returns a [cmp.Comparer] option that determines errors to be equal
-// if [errors.Is] reports them to match. The [AnyError] error can be used to
-// match any non-nil error.
-func EquateErrors() cmp.Option {
- return cmp.FilterValues(areConcreteErrors, cmp.Comparer(compareErrors))
-}
-
-// areConcreteErrors reports whether x and y are types that implement error.
-// The input types are deliberately of the interface{} type rather than the
-// error type so that we can handle situations where the current type is an
-// interface{}, but the underlying concrete types both happen to implement
-// the error interface.
-func areConcreteErrors(x, y interface{}) bool {
- _, ok1 := x.(error)
- _, ok2 := y.(error)
- return ok1 && ok2
-}
-
-func compareErrors(x, y interface{}) bool {
- xe := x.(error)
- ye := y.(error)
- return errors.Is(xe, ye) || errors.Is(ye, xe)
-}
-
-// EquateComparable returns a [cmp.Option] that determines equality
-// of comparable types by directly comparing them using the == operator in Go.
-// The types to compare are specified by passing a value of that type.
-// This option should only be used on types that are documented as being
-// safe for direct == comparison. For example, [net/netip.Addr] is documented
-// as being semantically safe to use with ==, while [time.Time] is documented
-// to discourage the use of == on time values.
-func EquateComparable(typs ...interface{}) cmp.Option {
- types := make(typesFilter)
- for _, typ := range typs {
- switch t := reflect.TypeOf(typ); {
- case !t.Comparable():
- panic(fmt.Sprintf("%T is not a comparable Go type", typ))
- case types[t]:
- panic(fmt.Sprintf("%T is already specified", typ))
- default:
- types[t] = true
- }
- }
- return cmp.FilterPath(types.filter, cmp.Comparer(equateAny))
-}
-
-type typesFilter map[reflect.Type]bool
-
-func (tf typesFilter) filter(p cmp.Path) bool { return tf[p.Last().Type()] }
-
-func equateAny(x, y interface{}) bool { return x == y }
diff --git a/vendor/github.com/google/go-cmp/cmp/cmpopts/ignore.go b/vendor/github.com/google/go-cmp/cmp/cmpopts/ignore.go
deleted file mode 100644
index fb84d11d7..000000000
--- a/vendor/github.com/google/go-cmp/cmp/cmpopts/ignore.go
+++ /dev/null
@@ -1,206 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmpopts
-
-import (
- "fmt"
- "reflect"
- "unicode"
- "unicode/utf8"
-
- "github.com/google/go-cmp/cmp"
- "github.com/google/go-cmp/cmp/internal/function"
-)
-
-// IgnoreFields returns an [cmp.Option] that ignores fields of the
-// given names on a single struct type. It respects the names of exported fields
-// that are forwarded due to struct embedding.
-// The struct type is specified by passing in a value of that type.
-//
-// The name may be a dot-delimited string (e.g., "Foo.Bar") to ignore a
-// specific sub-field that is embedded or nested within the parent struct.
-func IgnoreFields(typ interface{}, names ...string) cmp.Option {
- sf := newStructFilter(typ, names...)
- return cmp.FilterPath(sf.filter, cmp.Ignore())
-}
-
-// IgnoreTypes returns an [cmp.Option] that ignores all values assignable to
-// certain types, which are specified by passing in a value of each type.
-func IgnoreTypes(typs ...interface{}) cmp.Option {
- tf := newTypeFilter(typs...)
- return cmp.FilterPath(tf.filter, cmp.Ignore())
-}
-
-type typeFilter []reflect.Type
-
-func newTypeFilter(typs ...interface{}) (tf typeFilter) {
- for _, typ := range typs {
- t := reflect.TypeOf(typ)
- if t == nil {
- // This occurs if someone tries to pass in sync.Locker(nil)
- panic("cannot determine type; consider using IgnoreInterfaces")
- }
- tf = append(tf, t)
- }
- return tf
-}
-func (tf typeFilter) filter(p cmp.Path) bool {
- if len(p) < 1 {
- return false
- }
- t := p.Last().Type()
- for _, ti := range tf {
- if t.AssignableTo(ti) {
- return true
- }
- }
- return false
-}
-
-// IgnoreInterfaces returns an [cmp.Option] that ignores all values or references of
-// values assignable to certain interface types. These interfaces are specified
-// by passing in an anonymous struct with the interface types embedded in it.
-// For example, to ignore [sync.Locker], pass in struct{sync.Locker}{}.
-func IgnoreInterfaces(ifaces interface{}) cmp.Option {
- tf := newIfaceFilter(ifaces)
- return cmp.FilterPath(tf.filter, cmp.Ignore())
-}
-
-type ifaceFilter []reflect.Type
-
-func newIfaceFilter(ifaces interface{}) (tf ifaceFilter) {
- t := reflect.TypeOf(ifaces)
- if ifaces == nil || t.Name() != "" || t.Kind() != reflect.Struct {
- panic("input must be an anonymous struct")
- }
- for i := 0; i < t.NumField(); i++ {
- fi := t.Field(i)
- switch {
- case !fi.Anonymous:
- panic("struct cannot have named fields")
- case fi.Type.Kind() != reflect.Interface:
- panic("embedded field must be an interface type")
- case fi.Type.NumMethod() == 0:
- // This matches everything; why would you ever want this?
- panic("cannot ignore empty interface")
- default:
- tf = append(tf, fi.Type)
- }
- }
- return tf
-}
-func (tf ifaceFilter) filter(p cmp.Path) bool {
- if len(p) < 1 {
- return false
- }
- t := p.Last().Type()
- for _, ti := range tf {
- if t.AssignableTo(ti) {
- return true
- }
- if t.Kind() != reflect.Ptr && reflect.PtrTo(t).AssignableTo(ti) {
- return true
- }
- }
- return false
-}
-
-// IgnoreUnexported returns an [cmp.Option] that only ignores the immediate unexported
-// fields of a struct, including anonymous fields of unexported types.
-// In particular, unexported fields within the struct's exported fields
-// of struct types, including anonymous fields, will not be ignored unless the
-// type of the field itself is also passed to IgnoreUnexported.
-//
-// Avoid ignoring unexported fields of a type which you do not control (i.e. a
-// type from another repository), as changes to the implementation of such types
-// may change how the comparison behaves. Prefer a custom [cmp.Comparer] instead.
-func IgnoreUnexported(typs ...interface{}) cmp.Option {
- ux := newUnexportedFilter(typs...)
- return cmp.FilterPath(ux.filter, cmp.Ignore())
-}
-
-type unexportedFilter struct{ m map[reflect.Type]bool }
-
-func newUnexportedFilter(typs ...interface{}) unexportedFilter {
- ux := unexportedFilter{m: make(map[reflect.Type]bool)}
- for _, typ := range typs {
- t := reflect.TypeOf(typ)
- if t == nil || t.Kind() != reflect.Struct {
- panic(fmt.Sprintf("%T must be a non-pointer struct", typ))
- }
- ux.m[t] = true
- }
- return ux
-}
-func (xf unexportedFilter) filter(p cmp.Path) bool {
- sf, ok := p.Index(-1).(cmp.StructField)
- if !ok {
- return false
- }
- return xf.m[p.Index(-2).Type()] && !isExported(sf.Name())
-}
-
-// isExported reports whether the identifier is exported.
-func isExported(id string) bool {
- r, _ := utf8.DecodeRuneInString(id)
- return unicode.IsUpper(r)
-}
-
-// IgnoreSliceElements returns an [cmp.Option] that ignores elements of []V.
-// The discard function must be of the form "func(T) bool" which is used to
-// ignore slice elements of type V, where V is assignable to T.
-// Elements are ignored if the function reports true.
-func IgnoreSliceElements(discardFunc interface{}) cmp.Option {
- vf := reflect.ValueOf(discardFunc)
- if !function.IsType(vf.Type(), function.ValuePredicate) || vf.IsNil() {
- panic(fmt.Sprintf("invalid discard function: %T", discardFunc))
- }
- return cmp.FilterPath(func(p cmp.Path) bool {
- si, ok := p.Index(-1).(cmp.SliceIndex)
- if !ok {
- return false
- }
- if !si.Type().AssignableTo(vf.Type().In(0)) {
- return false
- }
- vx, vy := si.Values()
- if vx.IsValid() && vf.Call([]reflect.Value{vx})[0].Bool() {
- return true
- }
- if vy.IsValid() && vf.Call([]reflect.Value{vy})[0].Bool() {
- return true
- }
- return false
- }, cmp.Ignore())
-}
-
-// IgnoreMapEntries returns an [cmp.Option] that ignores entries of map[K]V.
-// The discard function must be of the form "func(T, R) bool" which is used to
-// ignore map entries of type K and V, where K and V are assignable to T and R.
-// Entries are ignored if the function reports true.
-func IgnoreMapEntries(discardFunc interface{}) cmp.Option {
- vf := reflect.ValueOf(discardFunc)
- if !function.IsType(vf.Type(), function.KeyValuePredicate) || vf.IsNil() {
- panic(fmt.Sprintf("invalid discard function: %T", discardFunc))
- }
- return cmp.FilterPath(func(p cmp.Path) bool {
- mi, ok := p.Index(-1).(cmp.MapIndex)
- if !ok {
- return false
- }
- if !mi.Key().Type().AssignableTo(vf.Type().In(0)) || !mi.Type().AssignableTo(vf.Type().In(1)) {
- return false
- }
- k := mi.Key()
- vx, vy := mi.Values()
- if vx.IsValid() && vf.Call([]reflect.Value{k, vx})[0].Bool() {
- return true
- }
- if vy.IsValid() && vf.Call([]reflect.Value{k, vy})[0].Bool() {
- return true
- }
- return false
- }, cmp.Ignore())
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/cmpopts/sort.go b/vendor/github.com/google/go-cmp/cmp/cmpopts/sort.go
deleted file mode 100644
index c6d09dae4..000000000
--- a/vendor/github.com/google/go-cmp/cmp/cmpopts/sort.go
+++ /dev/null
@@ -1,147 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmpopts
-
-import (
- "fmt"
- "reflect"
- "sort"
-
- "github.com/google/go-cmp/cmp"
- "github.com/google/go-cmp/cmp/internal/function"
-)
-
-// SortSlices returns a [cmp.Transformer] option that sorts all []V.
-// The less function must be of the form "func(T, T) bool" which is used to
-// sort any slice with element type V that is assignable to T.
-//
-// The less function must be:
-// - Deterministic: less(x, y) == less(x, y)
-// - Irreflexive: !less(x, x)
-// - Transitive: if !less(x, y) and !less(y, z), then !less(x, z)
-//
-// The less function does not have to be "total". That is, if !less(x, y) and
-// !less(y, x) for two elements x and y, their relative order is maintained.
-//
-// SortSlices can be used in conjunction with [EquateEmpty].
-func SortSlices(lessFunc interface{}) cmp.Option {
- vf := reflect.ValueOf(lessFunc)
- if !function.IsType(vf.Type(), function.Less) || vf.IsNil() {
- panic(fmt.Sprintf("invalid less function: %T", lessFunc))
- }
- ss := sliceSorter{vf.Type().In(0), vf}
- return cmp.FilterValues(ss.filter, cmp.Transformer("cmpopts.SortSlices", ss.sort))
-}
-
-type sliceSorter struct {
- in reflect.Type // T
- fnc reflect.Value // func(T, T) bool
-}
-
-func (ss sliceSorter) filter(x, y interface{}) bool {
- vx, vy := reflect.ValueOf(x), reflect.ValueOf(y)
- if !(x != nil && y != nil && vx.Type() == vy.Type()) ||
- !(vx.Kind() == reflect.Slice && vx.Type().Elem().AssignableTo(ss.in)) ||
- (vx.Len() <= 1 && vy.Len() <= 1) {
- return false
- }
- // Check whether the slices are already sorted to avoid an infinite
- // recursion cycle applying the same transform to itself.
- ok1 := sort.SliceIsSorted(x, func(i, j int) bool { return ss.less(vx, i, j) })
- ok2 := sort.SliceIsSorted(y, func(i, j int) bool { return ss.less(vy, i, j) })
- return !ok1 || !ok2
-}
-func (ss sliceSorter) sort(x interface{}) interface{} {
- src := reflect.ValueOf(x)
- dst := reflect.MakeSlice(src.Type(), src.Len(), src.Len())
- for i := 0; i < src.Len(); i++ {
- dst.Index(i).Set(src.Index(i))
- }
- sort.SliceStable(dst.Interface(), func(i, j int) bool { return ss.less(dst, i, j) })
- ss.checkSort(dst)
- return dst.Interface()
-}
-func (ss sliceSorter) checkSort(v reflect.Value) {
- start := -1 // Start of a sequence of equal elements.
- for i := 1; i < v.Len(); i++ {
- if ss.less(v, i-1, i) {
- // Check that first and last elements in v[start:i] are equal.
- if start >= 0 && (ss.less(v, start, i-1) || ss.less(v, i-1, start)) {
- panic(fmt.Sprintf("incomparable values detected: want equal elements: %v", v.Slice(start, i)))
- }
- start = -1
- } else if start == -1 {
- start = i
- }
- }
-}
-func (ss sliceSorter) less(v reflect.Value, i, j int) bool {
- vx, vy := v.Index(i), v.Index(j)
- return ss.fnc.Call([]reflect.Value{vx, vy})[0].Bool()
-}
-
-// SortMaps returns a [cmp.Transformer] option that flattens map[K]V types to be a
-// sorted []struct{K, V}. The less function must be of the form
-// "func(T, T) bool" which is used to sort any map with key K that is
-// assignable to T.
-//
-// Flattening the map into a slice has the property that [cmp.Equal] is able to
-// use [cmp.Comparer] options on K or the K.Equal method if it exists.
-//
-// The less function must be:
-// - Deterministic: less(x, y) == less(x, y)
-// - Irreflexive: !less(x, x)
-// - Transitive: if !less(x, y) and !less(y, z), then !less(x, z)
-// - Total: if x != y, then either less(x, y) or less(y, x)
-//
-// SortMaps can be used in conjunction with [EquateEmpty].
-func SortMaps(lessFunc interface{}) cmp.Option {
- vf := reflect.ValueOf(lessFunc)
- if !function.IsType(vf.Type(), function.Less) || vf.IsNil() {
- panic(fmt.Sprintf("invalid less function: %T", lessFunc))
- }
- ms := mapSorter{vf.Type().In(0), vf}
- return cmp.FilterValues(ms.filter, cmp.Transformer("cmpopts.SortMaps", ms.sort))
-}
-
-type mapSorter struct {
- in reflect.Type // T
- fnc reflect.Value // func(T, T) bool
-}
-
-func (ms mapSorter) filter(x, y interface{}) bool {
- vx, vy := reflect.ValueOf(x), reflect.ValueOf(y)
- return (x != nil && y != nil && vx.Type() == vy.Type()) &&
- (vx.Kind() == reflect.Map && vx.Type().Key().AssignableTo(ms.in)) &&
- (vx.Len() != 0 || vy.Len() != 0)
-}
-func (ms mapSorter) sort(x interface{}) interface{} {
- src := reflect.ValueOf(x)
- outType := reflect.StructOf([]reflect.StructField{
- {Name: "K", Type: src.Type().Key()},
- {Name: "V", Type: src.Type().Elem()},
- })
- dst := reflect.MakeSlice(reflect.SliceOf(outType), src.Len(), src.Len())
- for i, k := range src.MapKeys() {
- v := reflect.New(outType).Elem()
- v.Field(0).Set(k)
- v.Field(1).Set(src.MapIndex(k))
- dst.Index(i).Set(v)
- }
- sort.Slice(dst.Interface(), func(i, j int) bool { return ms.less(dst, i, j) })
- ms.checkSort(dst)
- return dst.Interface()
-}
-func (ms mapSorter) checkSort(v reflect.Value) {
- for i := 1; i < v.Len(); i++ {
- if !ms.less(v, i-1, i) {
- panic(fmt.Sprintf("partial order detected: want %v < %v", v.Index(i-1), v.Index(i)))
- }
- }
-}
-func (ms mapSorter) less(v reflect.Value, i, j int) bool {
- vx, vy := v.Index(i).Field(0), v.Index(j).Field(0)
- return ms.fnc.Call([]reflect.Value{vx, vy})[0].Bool()
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/cmpopts/struct_filter.go b/vendor/github.com/google/go-cmp/cmp/cmpopts/struct_filter.go
deleted file mode 100644
index ca11a4024..000000000
--- a/vendor/github.com/google/go-cmp/cmp/cmpopts/struct_filter.go
+++ /dev/null
@@ -1,189 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmpopts
-
-import (
- "fmt"
- "reflect"
- "strings"
-
- "github.com/google/go-cmp/cmp"
-)
-
-// filterField returns a new Option where opt is only evaluated on paths that
-// include a specific exported field on a single struct type.
-// The struct type is specified by passing in a value of that type.
-//
-// The name may be a dot-delimited string (e.g., "Foo.Bar") to select a
-// specific sub-field that is embedded or nested within the parent struct.
-func filterField(typ interface{}, name string, opt cmp.Option) cmp.Option {
- // TODO: This is currently unexported over concerns of how helper filters
- // can be composed together easily.
- // TODO: Add tests for FilterField.
-
- sf := newStructFilter(typ, name)
- return cmp.FilterPath(sf.filter, opt)
-}
-
-type structFilter struct {
- t reflect.Type // The root struct type to match on
- ft fieldTree // Tree of fields to match on
-}
-
-func newStructFilter(typ interface{}, names ...string) structFilter {
- // TODO: Perhaps allow * as a special identifier to allow ignoring any
- // number of path steps until the next field match?
- // This could be useful when a concrete struct gets transformed into
- // an anonymous struct where it is not possible to specify that by type,
- // but the transformer happens to provide guarantees about the names of
- // the transformed fields.
-
- t := reflect.TypeOf(typ)
- if t == nil || t.Kind() != reflect.Struct {
- panic(fmt.Sprintf("%T must be a non-pointer struct", typ))
- }
- var ft fieldTree
- for _, name := range names {
- cname, err := canonicalName(t, name)
- if err != nil {
- panic(fmt.Sprintf("%s: %v", strings.Join(cname, "."), err))
- }
- ft.insert(cname)
- }
- return structFilter{t, ft}
-}
-
-func (sf structFilter) filter(p cmp.Path) bool {
- for i, ps := range p {
- if ps.Type().AssignableTo(sf.t) && sf.ft.matchPrefix(p[i+1:]) {
- return true
- }
- }
- return false
-}
-
-// fieldTree represents a set of dot-separated identifiers.
-//
-// For example, inserting the following selectors:
-//
-// Foo
-// Foo.Bar.Baz
-// Foo.Buzz
-// Nuka.Cola.Quantum
-//
-// Results in a tree of the form:
-//
-// {sub: {
-// "Foo": {ok: true, sub: {
-// "Bar": {sub: {
-// "Baz": {ok: true},
-// }},
-// "Buzz": {ok: true},
-// }},
-// "Nuka": {sub: {
-// "Cola": {sub: {
-// "Quantum": {ok: true},
-// }},
-// }},
-// }}
-type fieldTree struct {
- ok bool // Whether this is a specified node
- sub map[string]fieldTree // The sub-tree of fields under this node
-}
-
-// insert inserts a sequence of field accesses into the tree.
-func (ft *fieldTree) insert(cname []string) {
- if ft.sub == nil {
- ft.sub = make(map[string]fieldTree)
- }
- if len(cname) == 0 {
- ft.ok = true
- return
- }
- sub := ft.sub[cname[0]]
- sub.insert(cname[1:])
- ft.sub[cname[0]] = sub
-}
-
-// matchPrefix reports whether any selector in the fieldTree matches
-// the start of path p.
-func (ft fieldTree) matchPrefix(p cmp.Path) bool {
- for _, ps := range p {
- switch ps := ps.(type) {
- case cmp.StructField:
- ft = ft.sub[ps.Name()]
- if ft.ok {
- return true
- }
- if len(ft.sub) == 0 {
- return false
- }
- case cmp.Indirect:
- default:
- return false
- }
- }
- return false
-}
-
-// canonicalName returns a list of identifiers where any struct field access
-// through an embedded field is expanded to include the names of the embedded
-// types themselves.
-//
-// For example, suppose field "Foo" is not directly in the parent struct,
-// but actually from an embedded struct of type "Bar". Then, the canonical name
-// of "Foo" is actually "Bar.Foo".
-//
-// Suppose field "Foo" is not directly in the parent struct, but actually
-// a field in two different embedded structs of types "Bar" and "Baz".
-// Then the selector "Foo" causes a panic since it is ambiguous which one it
-// refers to. The user must specify either "Bar.Foo" or "Baz.Foo".
-func canonicalName(t reflect.Type, sel string) ([]string, error) {
- var name string
- sel = strings.TrimPrefix(sel, ".")
- if sel == "" {
- return nil, fmt.Errorf("name must not be empty")
- }
- if i := strings.IndexByte(sel, '.'); i < 0 {
- name, sel = sel, ""
- } else {
- name, sel = sel[:i], sel[i:]
- }
-
- // Type must be a struct or pointer to struct.
- if t.Kind() == reflect.Ptr {
- t = t.Elem()
- }
- if t.Kind() != reflect.Struct {
- return nil, fmt.Errorf("%v must be a struct", t)
- }
-
- // Find the canonical name for this current field name.
- // If the field exists in an embedded struct, then it will be expanded.
- sf, _ := t.FieldByName(name)
- if !isExported(name) {
- // Avoid using reflect.Type.FieldByName for unexported fields due to
- // buggy behavior with regard to embeddeding and unexported fields.
- // See https://golang.org/issue/4876 for details.
- sf = reflect.StructField{}
- for i := 0; i < t.NumField() && sf.Name == ""; i++ {
- if t.Field(i).Name == name {
- sf = t.Field(i)
- }
- }
- }
- if sf.Name == "" {
- return []string{name}, fmt.Errorf("does not exist")
- }
- var ss []string
- for i := range sf.Index {
- ss = append(ss, t.FieldByIndex(sf.Index[:i+1]).Name)
- }
- if sel == "" {
- return ss, nil
- }
- ssPost, err := canonicalName(sf.Type, sel)
- return append(ss, ssPost...), err
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/cmpopts/xform.go b/vendor/github.com/google/go-cmp/cmp/cmpopts/xform.go
deleted file mode 100644
index 25b4bd05b..000000000
--- a/vendor/github.com/google/go-cmp/cmp/cmpopts/xform.go
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2018, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmpopts
-
-import (
- "github.com/google/go-cmp/cmp"
-)
-
-type xformFilter struct{ xform cmp.Option }
-
-func (xf xformFilter) filter(p cmp.Path) bool {
- for _, ps := range p {
- if t, ok := ps.(cmp.Transform); ok && t.Option() == xf.xform {
- return false
- }
- }
- return true
-}
-
-// AcyclicTransformer returns a [cmp.Transformer] with a filter applied that ensures
-// that the transformer cannot be recursively applied upon its own output.
-//
-// An example use case is a transformer that splits a string by lines:
-//
-// AcyclicTransformer("SplitLines", func(s string) []string{
-// return strings.Split(s, "\n")
-// })
-//
-// Had this been an unfiltered [cmp.Transformer] instead, this would result in an
-// infinite cycle converting a string to []string to [][]string and so on.
-func AcyclicTransformer(name string, xformFunc interface{}) cmp.Option {
- xf := xformFilter{cmp.Transformer(name, xformFunc)}
- return cmp.FilterPath(xf.filter, xf.xform)
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/compare.go b/vendor/github.com/google/go-cmp/cmp/compare.go
deleted file mode 100644
index 0f5b8a48c..000000000
--- a/vendor/github.com/google/go-cmp/cmp/compare.go
+++ /dev/null
@@ -1,671 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Package cmp determines equality of values.
-//
-// This package is intended to be a more powerful and safer alternative to
-// [reflect.DeepEqual] for comparing whether two values are semantically equal.
-// It is intended to only be used in tests, as performance is not a goal and
-// it may panic if it cannot compare the values. Its propensity towards
-// panicking means that its unsuitable for production environments where a
-// spurious panic may be fatal.
-//
-// The primary features of cmp are:
-//
-// - When the default behavior of equality does not suit the test's needs,
-// custom equality functions can override the equality operation.
-// For example, an equality function may report floats as equal so long as
-// they are within some tolerance of each other.
-//
-// - Types with an Equal method (e.g., [time.Time.Equal]) may use that method
-// to determine equality. This allows package authors to determine
-// the equality operation for the types that they define.
-//
-// - If no custom equality functions are used and no Equal method is defined,
-// equality is determined by recursively comparing the primitive kinds on
-// both values, much like [reflect.DeepEqual]. Unlike [reflect.DeepEqual],
-// unexported fields are not compared by default; they result in panics
-// unless suppressed by using an [Ignore] option
-// (see [github.com/google/go-cmp/cmp/cmpopts.IgnoreUnexported])
-// or explicitly compared using the [Exporter] option.
-package cmp
-
-import (
- "fmt"
- "reflect"
- "strings"
-
- "github.com/google/go-cmp/cmp/internal/diff"
- "github.com/google/go-cmp/cmp/internal/function"
- "github.com/google/go-cmp/cmp/internal/value"
-)
-
-// TODO(≥go1.18): Use any instead of interface{}.
-
-// Equal reports whether x and y are equal by recursively applying the
-// following rules in the given order to x and y and all of their sub-values:
-//
-// - Let S be the set of all [Ignore], [Transformer], and [Comparer] options that
-// remain after applying all path filters, value filters, and type filters.
-// If at least one [Ignore] exists in S, then the comparison is ignored.
-// If the number of [Transformer] and [Comparer] options in S is non-zero,
-// then Equal panics because it is ambiguous which option to use.
-// If S contains a single [Transformer], then use that to transform
-// the current values and recursively call Equal on the output values.
-// If S contains a single [Comparer], then use that to compare the current values.
-// Otherwise, evaluation proceeds to the next rule.
-//
-// - If the values have an Equal method of the form "(T) Equal(T) bool" or
-// "(T) Equal(I) bool" where T is assignable to I, then use the result of
-// x.Equal(y) even if x or y is nil. Otherwise, no such method exists and
-// evaluation proceeds to the next rule.
-//
-// - Lastly, try to compare x and y based on their basic kinds.
-// Simple kinds like booleans, integers, floats, complex numbers, strings,
-// and channels are compared using the equivalent of the == operator in Go.
-// Functions are only equal if they are both nil, otherwise they are unequal.
-//
-// Structs are equal if recursively calling Equal on all fields report equal.
-// If a struct contains unexported fields, Equal panics unless an [Ignore] option
-// (e.g., [github.com/google/go-cmp/cmp/cmpopts.IgnoreUnexported]) ignores that field
-// or the [Exporter] option explicitly permits comparing the unexported field.
-//
-// Slices are equal if they are both nil or both non-nil, where recursively
-// calling Equal on all non-ignored slice or array elements report equal.
-// Empty non-nil slices and nil slices are not equal; to equate empty slices,
-// consider using [github.com/google/go-cmp/cmp/cmpopts.EquateEmpty].
-//
-// Maps are equal if they are both nil or both non-nil, where recursively
-// calling Equal on all non-ignored map entries report equal.
-// Map keys are equal according to the == operator.
-// To use custom comparisons for map keys, consider using
-// [github.com/google/go-cmp/cmp/cmpopts.SortMaps].
-// Empty non-nil maps and nil maps are not equal; to equate empty maps,
-// consider using [github.com/google/go-cmp/cmp/cmpopts.EquateEmpty].
-//
-// Pointers and interfaces are equal if they are both nil or both non-nil,
-// where they have the same underlying concrete type and recursively
-// calling Equal on the underlying values reports equal.
-//
-// Before recursing into a pointer, slice element, or map, the current path
-// is checked to detect whether the address has already been visited.
-// If there is a cycle, then the pointed at values are considered equal
-// only if both addresses were previously visited in the same path step.
-func Equal(x, y interface{}, opts ...Option) bool {
- s := newState(opts)
- s.compareAny(rootStep(x, y))
- return s.result.Equal()
-}
-
-// Diff returns a human-readable report of the differences between two values:
-// y - x. It returns an empty string if and only if Equal returns true for the
-// same input values and options.
-//
-// The output is displayed as a literal in pseudo-Go syntax.
-// At the start of each line, a "-" prefix indicates an element removed from x,
-// a "+" prefix to indicates an element added from y, and the lack of a prefix
-// indicates an element common to both x and y. If possible, the output
-// uses fmt.Stringer.String or error.Error methods to produce more humanly
-// readable outputs. In such cases, the string is prefixed with either an
-// 's' or 'e' character, respectively, to indicate that the method was called.
-//
-// Do not depend on this output being stable. If you need the ability to
-// programmatically interpret the difference, consider using a custom Reporter.
-func Diff(x, y interface{}, opts ...Option) string {
- s := newState(opts)
-
- // Optimization: If there are no other reporters, we can optimize for the
- // common case where the result is equal (and thus no reported difference).
- // This avoids the expensive construction of a difference tree.
- if len(s.reporters) == 0 {
- s.compareAny(rootStep(x, y))
- if s.result.Equal() {
- return ""
- }
- s.result = diff.Result{} // Reset results
- }
-
- r := new(defaultReporter)
- s.reporters = append(s.reporters, reporter{r})
- s.compareAny(rootStep(x, y))
- d := r.String()
- if (d == "") != s.result.Equal() {
- panic("inconsistent difference and equality results")
- }
- return d
-}
-
-// rootStep constructs the first path step. If x and y have differing types,
-// then they are stored within an empty interface type.
-func rootStep(x, y interface{}) PathStep {
- vx := reflect.ValueOf(x)
- vy := reflect.ValueOf(y)
-
- // If the inputs are different types, auto-wrap them in an empty interface
- // so that they have the same parent type.
- var t reflect.Type
- if !vx.IsValid() || !vy.IsValid() || vx.Type() != vy.Type() {
- t = anyType
- if vx.IsValid() {
- vvx := reflect.New(t).Elem()
- vvx.Set(vx)
- vx = vvx
- }
- if vy.IsValid() {
- vvy := reflect.New(t).Elem()
- vvy.Set(vy)
- vy = vvy
- }
- } else {
- t = vx.Type()
- }
-
- return &pathStep{t, vx, vy}
-}
-
-type state struct {
- // These fields represent the "comparison state".
- // Calling statelessCompare must not result in observable changes to these.
- result diff.Result // The current result of comparison
- curPath Path // The current path in the value tree
- curPtrs pointerPath // The current set of visited pointers
- reporters []reporter // Optional reporters
-
- // recChecker checks for infinite cycles applying the same set of
- // transformers upon the output of itself.
- recChecker recChecker
-
- // dynChecker triggers pseudo-random checks for option correctness.
- // It is safe for statelessCompare to mutate this value.
- dynChecker dynChecker
-
- // These fields, once set by processOption, will not change.
- exporters []exporter // List of exporters for structs with unexported fields
- opts Options // List of all fundamental and filter options
-}
-
-func newState(opts []Option) *state {
- // Always ensure a validator option exists to validate the inputs.
- s := &state{opts: Options{validator{}}}
- s.curPtrs.Init()
- s.processOption(Options(opts))
- return s
-}
-
-func (s *state) processOption(opt Option) {
- switch opt := opt.(type) {
- case nil:
- case Options:
- for _, o := range opt {
- s.processOption(o)
- }
- case coreOption:
- type filtered interface {
- isFiltered() bool
- }
- if fopt, ok := opt.(filtered); ok && !fopt.isFiltered() {
- panic(fmt.Sprintf("cannot use an unfiltered option: %v", opt))
- }
- s.opts = append(s.opts, opt)
- case exporter:
- s.exporters = append(s.exporters, opt)
- case reporter:
- s.reporters = append(s.reporters, opt)
- default:
- panic(fmt.Sprintf("unknown option %T", opt))
- }
-}
-
-// statelessCompare compares two values and returns the result.
-// This function is stateless in that it does not alter the current result,
-// or output to any registered reporters.
-func (s *state) statelessCompare(step PathStep) diff.Result {
- // We do not save and restore curPath and curPtrs because all of the
- // compareX methods should properly push and pop from them.
- // It is an implementation bug if the contents of the paths differ from
- // when calling this function to when returning from it.
-
- oldResult, oldReporters := s.result, s.reporters
- s.result = diff.Result{} // Reset result
- s.reporters = nil // Remove reporters to avoid spurious printouts
- s.compareAny(step)
- res := s.result
- s.result, s.reporters = oldResult, oldReporters
- return res
-}
-
-func (s *state) compareAny(step PathStep) {
- // Update the path stack.
- s.curPath.push(step)
- defer s.curPath.pop()
- for _, r := range s.reporters {
- r.PushStep(step)
- defer r.PopStep()
- }
- s.recChecker.Check(s.curPath)
-
- // Cycle-detection for slice elements (see NOTE in compareSlice).
- t := step.Type()
- vx, vy := step.Values()
- if si, ok := step.(SliceIndex); ok && si.isSlice && vx.IsValid() && vy.IsValid() {
- px, py := vx.Addr(), vy.Addr()
- if eq, visited := s.curPtrs.Push(px, py); visited {
- s.report(eq, reportByCycle)
- return
- }
- defer s.curPtrs.Pop(px, py)
- }
-
- // Rule 1: Check whether an option applies on this node in the value tree.
- if s.tryOptions(t, vx, vy) {
- return
- }
-
- // Rule 2: Check whether the type has a valid Equal method.
- if s.tryMethod(t, vx, vy) {
- return
- }
-
- // Rule 3: Compare based on the underlying kind.
- switch t.Kind() {
- case reflect.Bool:
- s.report(vx.Bool() == vy.Bool(), 0)
- case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
- s.report(vx.Int() == vy.Int(), 0)
- case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
- s.report(vx.Uint() == vy.Uint(), 0)
- case reflect.Float32, reflect.Float64:
- s.report(vx.Float() == vy.Float(), 0)
- case reflect.Complex64, reflect.Complex128:
- s.report(vx.Complex() == vy.Complex(), 0)
- case reflect.String:
- s.report(vx.String() == vy.String(), 0)
- case reflect.Chan, reflect.UnsafePointer:
- s.report(vx.Pointer() == vy.Pointer(), 0)
- case reflect.Func:
- s.report(vx.IsNil() && vy.IsNil(), 0)
- case reflect.Struct:
- s.compareStruct(t, vx, vy)
- case reflect.Slice, reflect.Array:
- s.compareSlice(t, vx, vy)
- case reflect.Map:
- s.compareMap(t, vx, vy)
- case reflect.Ptr:
- s.comparePtr(t, vx, vy)
- case reflect.Interface:
- s.compareInterface(t, vx, vy)
- default:
- panic(fmt.Sprintf("%v kind not handled", t.Kind()))
- }
-}
-
-func (s *state) tryOptions(t reflect.Type, vx, vy reflect.Value) bool {
- // Evaluate all filters and apply the remaining options.
- if opt := s.opts.filter(s, t, vx, vy); opt != nil {
- opt.apply(s, vx, vy)
- return true
- }
- return false
-}
-
-func (s *state) tryMethod(t reflect.Type, vx, vy reflect.Value) bool {
- // Check if this type even has an Equal method.
- m, ok := t.MethodByName("Equal")
- if !ok || !function.IsType(m.Type, function.EqualAssignable) {
- return false
- }
-
- eq := s.callTTBFunc(m.Func, vx, vy)
- s.report(eq, reportByMethod)
- return true
-}
-
-func (s *state) callTRFunc(f, v reflect.Value, step Transform) reflect.Value {
- if !s.dynChecker.Next() {
- return f.Call([]reflect.Value{v})[0]
- }
-
- // Run the function twice and ensure that we get the same results back.
- // We run in goroutines so that the race detector (if enabled) can detect
- // unsafe mutations to the input.
- c := make(chan reflect.Value)
- go detectRaces(c, f, v)
- got := <-c
- want := f.Call([]reflect.Value{v})[0]
- if step.vx, step.vy = got, want; !s.statelessCompare(step).Equal() {
- // To avoid false-positives with non-reflexive equality operations,
- // we sanity check whether a value is equal to itself.
- if step.vx, step.vy = want, want; !s.statelessCompare(step).Equal() {
- return want
- }
- panic(fmt.Sprintf("non-deterministic function detected: %s", function.NameOf(f)))
- }
- return want
-}
-
-func (s *state) callTTBFunc(f, x, y reflect.Value) bool {
- if !s.dynChecker.Next() {
- return f.Call([]reflect.Value{x, y})[0].Bool()
- }
-
- // Swapping the input arguments is sufficient to check that
- // f is symmetric and deterministic.
- // We run in goroutines so that the race detector (if enabled) can detect
- // unsafe mutations to the input.
- c := make(chan reflect.Value)
- go detectRaces(c, f, y, x)
- got := <-c
- want := f.Call([]reflect.Value{x, y})[0].Bool()
- if !got.IsValid() || got.Bool() != want {
- panic(fmt.Sprintf("non-deterministic or non-symmetric function detected: %s", function.NameOf(f)))
- }
- return want
-}
-
-func detectRaces(c chan<- reflect.Value, f reflect.Value, vs ...reflect.Value) {
- var ret reflect.Value
- defer func() {
- recover() // Ignore panics, let the other call to f panic instead
- c <- ret
- }()
- ret = f.Call(vs)[0]
-}
-
-func (s *state) compareStruct(t reflect.Type, vx, vy reflect.Value) {
- var addr bool
- var vax, vay reflect.Value // Addressable versions of vx and vy
-
- var mayForce, mayForceInit bool
- step := StructField{&structField{}}
- for i := 0; i < t.NumField(); i++ {
- step.typ = t.Field(i).Type
- step.vx = vx.Field(i)
- step.vy = vy.Field(i)
- step.name = t.Field(i).Name
- step.idx = i
- step.unexported = !isExported(step.name)
- if step.unexported {
- if step.name == "_" {
- continue
- }
- // Defer checking of unexported fields until later to give an
- // Ignore a chance to ignore the field.
- if !vax.IsValid() || !vay.IsValid() {
- // For retrieveUnexportedField to work, the parent struct must
- // be addressable. Create a new copy of the values if
- // necessary to make them addressable.
- addr = vx.CanAddr() || vy.CanAddr()
- vax = makeAddressable(vx)
- vay = makeAddressable(vy)
- }
- if !mayForceInit {
- for _, xf := range s.exporters {
- mayForce = mayForce || xf(t)
- }
- mayForceInit = true
- }
- step.mayForce = mayForce
- step.paddr = addr
- step.pvx = vax
- step.pvy = vay
- step.field = t.Field(i)
- }
- s.compareAny(step)
- }
-}
-
-func (s *state) compareSlice(t reflect.Type, vx, vy reflect.Value) {
- isSlice := t.Kind() == reflect.Slice
- if isSlice && (vx.IsNil() || vy.IsNil()) {
- s.report(vx.IsNil() && vy.IsNil(), 0)
- return
- }
-
- // NOTE: It is incorrect to call curPtrs.Push on the slice header pointer
- // since slices represents a list of pointers, rather than a single pointer.
- // The pointer checking logic must be handled on a per-element basis
- // in compareAny.
- //
- // A slice header (see reflect.SliceHeader) in Go is a tuple of a starting
- // pointer P, a length N, and a capacity C. Supposing each slice element has
- // a memory size of M, then the slice is equivalent to the list of pointers:
- // [P+i*M for i in range(N)]
- //
- // For example, v[:0] and v[:1] are slices with the same starting pointer,
- // but they are clearly different values. Using the slice pointer alone
- // violates the assumption that equal pointers implies equal values.
-
- step := SliceIndex{&sliceIndex{pathStep: pathStep{typ: t.Elem()}, isSlice: isSlice}}
- withIndexes := func(ix, iy int) SliceIndex {
- if ix >= 0 {
- step.vx, step.xkey = vx.Index(ix), ix
- } else {
- step.vx, step.xkey = reflect.Value{}, -1
- }
- if iy >= 0 {
- step.vy, step.ykey = vy.Index(iy), iy
- } else {
- step.vy, step.ykey = reflect.Value{}, -1
- }
- return step
- }
-
- // Ignore options are able to ignore missing elements in a slice.
- // However, detecting these reliably requires an optimal differencing
- // algorithm, for which diff.Difference is not.
- //
- // Instead, we first iterate through both slices to detect which elements
- // would be ignored if standing alone. The index of non-discarded elements
- // are stored in a separate slice, which diffing is then performed on.
- var indexesX, indexesY []int
- var ignoredX, ignoredY []bool
- for ix := 0; ix < vx.Len(); ix++ {
- ignored := s.statelessCompare(withIndexes(ix, -1)).NumDiff == 0
- if !ignored {
- indexesX = append(indexesX, ix)
- }
- ignoredX = append(ignoredX, ignored)
- }
- for iy := 0; iy < vy.Len(); iy++ {
- ignored := s.statelessCompare(withIndexes(-1, iy)).NumDiff == 0
- if !ignored {
- indexesY = append(indexesY, iy)
- }
- ignoredY = append(ignoredY, ignored)
- }
-
- // Compute an edit-script for slices vx and vy (excluding ignored elements).
- edits := diff.Difference(len(indexesX), len(indexesY), func(ix, iy int) diff.Result {
- return s.statelessCompare(withIndexes(indexesX[ix], indexesY[iy]))
- })
-
- // Replay the ignore-scripts and the edit-script.
- var ix, iy int
- for ix < vx.Len() || iy < vy.Len() {
- var e diff.EditType
- switch {
- case ix < len(ignoredX) && ignoredX[ix]:
- e = diff.UniqueX
- case iy < len(ignoredY) && ignoredY[iy]:
- e = diff.UniqueY
- default:
- e, edits = edits[0], edits[1:]
- }
- switch e {
- case diff.UniqueX:
- s.compareAny(withIndexes(ix, -1))
- ix++
- case diff.UniqueY:
- s.compareAny(withIndexes(-1, iy))
- iy++
- default:
- s.compareAny(withIndexes(ix, iy))
- ix++
- iy++
- }
- }
-}
-
-func (s *state) compareMap(t reflect.Type, vx, vy reflect.Value) {
- if vx.IsNil() || vy.IsNil() {
- s.report(vx.IsNil() && vy.IsNil(), 0)
- return
- }
-
- // Cycle-detection for maps.
- if eq, visited := s.curPtrs.Push(vx, vy); visited {
- s.report(eq, reportByCycle)
- return
- }
- defer s.curPtrs.Pop(vx, vy)
-
- // We combine and sort the two map keys so that we can perform the
- // comparisons in a deterministic order.
- step := MapIndex{&mapIndex{pathStep: pathStep{typ: t.Elem()}}}
- for _, k := range value.SortKeys(append(vx.MapKeys(), vy.MapKeys()...)) {
- step.vx = vx.MapIndex(k)
- step.vy = vy.MapIndex(k)
- step.key = k
- if !step.vx.IsValid() && !step.vy.IsValid() {
- // It is possible for both vx and vy to be invalid if the
- // key contained a NaN value in it.
- //
- // Even with the ability to retrieve NaN keys in Go 1.12,
- // there still isn't a sensible way to compare the values since
- // a NaN key may map to multiple unordered values.
- // The most reasonable way to compare NaNs would be to compare the
- // set of values. However, this is impossible to do efficiently
- // since set equality is provably an O(n^2) operation given only
- // an Equal function. If we had a Less function or Hash function,
- // this could be done in O(n*log(n)) or O(n), respectively.
- //
- // Rather than adding complex logic to deal with NaNs, make it
- // the user's responsibility to compare such obscure maps.
- const help = "consider providing a Comparer to compare the map"
- panic(fmt.Sprintf("%#v has map key with NaNs\n%s", s.curPath, help))
- }
- s.compareAny(step)
- }
-}
-
-func (s *state) comparePtr(t reflect.Type, vx, vy reflect.Value) {
- if vx.IsNil() || vy.IsNil() {
- s.report(vx.IsNil() && vy.IsNil(), 0)
- return
- }
-
- // Cycle-detection for pointers.
- if eq, visited := s.curPtrs.Push(vx, vy); visited {
- s.report(eq, reportByCycle)
- return
- }
- defer s.curPtrs.Pop(vx, vy)
-
- vx, vy = vx.Elem(), vy.Elem()
- s.compareAny(Indirect{&indirect{pathStep{t.Elem(), vx, vy}}})
-}
-
-func (s *state) compareInterface(t reflect.Type, vx, vy reflect.Value) {
- if vx.IsNil() || vy.IsNil() {
- s.report(vx.IsNil() && vy.IsNil(), 0)
- return
- }
- vx, vy = vx.Elem(), vy.Elem()
- if vx.Type() != vy.Type() {
- s.report(false, 0)
- return
- }
- s.compareAny(TypeAssertion{&typeAssertion{pathStep{vx.Type(), vx, vy}}})
-}
-
-func (s *state) report(eq bool, rf resultFlags) {
- if rf&reportByIgnore == 0 {
- if eq {
- s.result.NumSame++
- rf |= reportEqual
- } else {
- s.result.NumDiff++
- rf |= reportUnequal
- }
- }
- for _, r := range s.reporters {
- r.Report(Result{flags: rf})
- }
-}
-
-// recChecker tracks the state needed to periodically perform checks that
-// user provided transformers are not stuck in an infinitely recursive cycle.
-type recChecker struct{ next int }
-
-// Check scans the Path for any recursive transformers and panics when any
-// recursive transformers are detected. Note that the presence of a
-// recursive Transformer does not necessarily imply an infinite cycle.
-// As such, this check only activates after some minimal number of path steps.
-func (rc *recChecker) Check(p Path) {
- const minLen = 1 << 16
- if rc.next == 0 {
- rc.next = minLen
- }
- if len(p) < rc.next {
- return
- }
- rc.next <<= 1
-
- // Check whether the same transformer has appeared at least twice.
- var ss []string
- m := map[Option]int{}
- for _, ps := range p {
- if t, ok := ps.(Transform); ok {
- t := t.Option()
- if m[t] == 1 { // Transformer was used exactly once before
- tf := t.(*transformer).fnc.Type()
- ss = append(ss, fmt.Sprintf("%v: %v => %v", t, tf.In(0), tf.Out(0)))
- }
- m[t]++
- }
- }
- if len(ss) > 0 {
- const warning = "recursive set of Transformers detected"
- const help = "consider using cmpopts.AcyclicTransformer"
- set := strings.Join(ss, "\n\t")
- panic(fmt.Sprintf("%s:\n\t%s\n%s", warning, set, help))
- }
-}
-
-// dynChecker tracks the state needed to periodically perform checks that
-// user provided functions are symmetric and deterministic.
-// The zero value is safe for immediate use.
-type dynChecker struct{ curr, next int }
-
-// Next increments the state and reports whether a check should be performed.
-//
-// Checks occur every Nth function call, where N is a triangular number:
-//
-// 0 1 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 171 190 ...
-//
-// See https://en.wikipedia.org/wiki/Triangular_number
-//
-// This sequence ensures that the cost of checks drops significantly as
-// the number of functions calls grows larger.
-func (dc *dynChecker) Next() bool {
- ok := dc.curr == dc.next
- if ok {
- dc.curr = 0
- dc.next++
- }
- dc.curr++
- return ok
-}
-
-// makeAddressable returns a value that is always addressable.
-// It returns the input verbatim if it is already addressable,
-// otherwise it creates a new value and returns an addressable copy.
-func makeAddressable(v reflect.Value) reflect.Value {
- if v.CanAddr() {
- return v
- }
- vc := reflect.New(v.Type()).Elem()
- vc.Set(v)
- return vc
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/export.go b/vendor/github.com/google/go-cmp/cmp/export.go
deleted file mode 100644
index 29f82fe6b..000000000
--- a/vendor/github.com/google/go-cmp/cmp/export.go
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-import (
- "reflect"
- "unsafe"
-)
-
-// retrieveUnexportedField uses unsafe to forcibly retrieve any field from
-// a struct such that the value has read-write permissions.
-//
-// The parent struct, v, must be addressable, while f must be a StructField
-// describing the field to retrieve. If addr is false,
-// then the returned value will be shallowed copied to be non-addressable.
-func retrieveUnexportedField(v reflect.Value, f reflect.StructField, addr bool) reflect.Value {
- ve := reflect.NewAt(f.Type, unsafe.Pointer(uintptr(unsafe.Pointer(v.UnsafeAddr()))+f.Offset)).Elem()
- if !addr {
- // A field is addressable if and only if the struct is addressable.
- // If the original parent value was not addressable, shallow copy the
- // value to make it non-addressable to avoid leaking an implementation
- // detail of how forcibly exporting a field works.
- if ve.Kind() == reflect.Interface && ve.IsNil() {
- return reflect.Zero(f.Type)
- }
- return reflect.ValueOf(ve.Interface()).Convert(f.Type)
- }
- return ve
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go
deleted file mode 100644
index 36062a604..000000000
--- a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build !cmp_debug
-// +build !cmp_debug
-
-package diff
-
-var debug debugger
-
-type debugger struct{}
-
-func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc {
- return f
-}
-func (debugger) Update() {}
-func (debugger) Finish() {}
diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go
deleted file mode 100644
index a3b97a1ad..000000000
--- a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go
+++ /dev/null
@@ -1,123 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build cmp_debug
-// +build cmp_debug
-
-package diff
-
-import (
- "fmt"
- "strings"
- "sync"
- "time"
-)
-
-// The algorithm can be seen running in real-time by enabling debugging:
-// go test -tags=cmp_debug -v
-//
-// Example output:
-// === RUN TestDifference/#34
-// ┌───────────────────────────────┐
-// │ \ · · · · · · · · · · · · · · │
-// │ · # · · · · · · · · · · · · · │
-// │ · \ · · · · · · · · · · · · · │
-// │ · · \ · · · · · · · · · · · · │
-// │ · · · X # · · · · · · · · · · │
-// │ · · · # \ · · · · · · · · · · │
-// │ · · · · · # # · · · · · · · · │
-// │ · · · · · # \ · · · · · · · · │
-// │ · · · · · · · \ · · · · · · · │
-// │ · · · · · · · · \ · · · · · · │
-// │ · · · · · · · · · \ · · · · · │
-// │ · · · · · · · · · · \ · · # · │
-// │ · · · · · · · · · · · \ # # · │
-// │ · · · · · · · · · · · # # # · │
-// │ · · · · · · · · · · # # # # · │
-// │ · · · · · · · · · # # # # # · │
-// │ · · · · · · · · · · · · · · \ │
-// └───────────────────────────────┘
-// [.Y..M.XY......YXYXY.|]
-//
-// The grid represents the edit-graph where the horizontal axis represents
-// list X and the vertical axis represents list Y. The start of the two lists
-// is the top-left, while the ends are the bottom-right. The '·' represents
-// an unexplored node in the graph. The '\' indicates that the two symbols
-// from list X and Y are equal. The 'X' indicates that two symbols are similar
-// (but not exactly equal) to each other. The '#' indicates that the two symbols
-// are different (and not similar). The algorithm traverses this graph trying to
-// make the paths starting in the top-left and the bottom-right connect.
-//
-// The series of '.', 'X', 'Y', and 'M' characters at the bottom represents
-// the currently established path from the forward and reverse searches,
-// separated by a '|' character.
-
-const (
- updateDelay = 100 * time.Millisecond
- finishDelay = 500 * time.Millisecond
- ansiTerminal = true // ANSI escape codes used to move terminal cursor
-)
-
-var debug debugger
-
-type debugger struct {
- sync.Mutex
- p1, p2 EditScript
- fwdPath, revPath *EditScript
- grid []byte
- lines int
-}
-
-func (dbg *debugger) Begin(nx, ny int, f EqualFunc, p1, p2 *EditScript) EqualFunc {
- dbg.Lock()
- dbg.fwdPath, dbg.revPath = p1, p2
- top := "┌─" + strings.Repeat("──", nx) + "┐\n"
- row := "│ " + strings.Repeat("· ", nx) + "│\n"
- btm := "└─" + strings.Repeat("──", nx) + "┘\n"
- dbg.grid = []byte(top + strings.Repeat(row, ny) + btm)
- dbg.lines = strings.Count(dbg.String(), "\n")
- fmt.Print(dbg)
-
- // Wrap the EqualFunc so that we can intercept each result.
- return func(ix, iy int) (r Result) {
- cell := dbg.grid[len(top)+iy*len(row):][len("│ ")+len("· ")*ix:][:len("·")]
- for i := range cell {
- cell[i] = 0 // Zero out the multiple bytes of UTF-8 middle-dot
- }
- switch r = f(ix, iy); {
- case r.Equal():
- cell[0] = '\\'
- case r.Similar():
- cell[0] = 'X'
- default:
- cell[0] = '#'
- }
- return
- }
-}
-
-func (dbg *debugger) Update() {
- dbg.print(updateDelay)
-}
-
-func (dbg *debugger) Finish() {
- dbg.print(finishDelay)
- dbg.Unlock()
-}
-
-func (dbg *debugger) String() string {
- dbg.p1, dbg.p2 = *dbg.fwdPath, dbg.p2[:0]
- for i := len(*dbg.revPath) - 1; i >= 0; i-- {
- dbg.p2 = append(dbg.p2, (*dbg.revPath)[i])
- }
- return fmt.Sprintf("%s[%v|%v]\n\n", dbg.grid, dbg.p1, dbg.p2)
-}
-
-func (dbg *debugger) print(d time.Duration) {
- if ansiTerminal {
- fmt.Printf("\x1b[%dA", dbg.lines) // Reset terminal cursor
- }
- fmt.Print(dbg)
- time.Sleep(d)
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go b/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go
deleted file mode 100644
index a248e5436..000000000
--- a/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go
+++ /dev/null
@@ -1,402 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Package diff implements an algorithm for producing edit-scripts.
-// The edit-script is a sequence of operations needed to transform one list
-// of symbols into another (or vice-versa). The edits allowed are insertions,
-// deletions, and modifications. The summation of all edits is called the
-// Levenshtein distance as this problem is well-known in computer science.
-//
-// This package prioritizes performance over accuracy. That is, the run time
-// is more important than obtaining a minimal Levenshtein distance.
-package diff
-
-import (
- "math/rand"
- "time"
-
- "github.com/google/go-cmp/cmp/internal/flags"
-)
-
-// EditType represents a single operation within an edit-script.
-type EditType uint8
-
-const (
- // Identity indicates that a symbol pair is identical in both list X and Y.
- Identity EditType = iota
- // UniqueX indicates that a symbol only exists in X and not Y.
- UniqueX
- // UniqueY indicates that a symbol only exists in Y and not X.
- UniqueY
- // Modified indicates that a symbol pair is a modification of each other.
- Modified
-)
-
-// EditScript represents the series of differences between two lists.
-type EditScript []EditType
-
-// String returns a human-readable string representing the edit-script where
-// Identity, UniqueX, UniqueY, and Modified are represented by the
-// '.', 'X', 'Y', and 'M' characters, respectively.
-func (es EditScript) String() string {
- b := make([]byte, len(es))
- for i, e := range es {
- switch e {
- case Identity:
- b[i] = '.'
- case UniqueX:
- b[i] = 'X'
- case UniqueY:
- b[i] = 'Y'
- case Modified:
- b[i] = 'M'
- default:
- panic("invalid edit-type")
- }
- }
- return string(b)
-}
-
-// stats returns a histogram of the number of each type of edit operation.
-func (es EditScript) stats() (s struct{ NI, NX, NY, NM int }) {
- for _, e := range es {
- switch e {
- case Identity:
- s.NI++
- case UniqueX:
- s.NX++
- case UniqueY:
- s.NY++
- case Modified:
- s.NM++
- default:
- panic("invalid edit-type")
- }
- }
- return
-}
-
-// Dist is the Levenshtein distance and is guaranteed to be 0 if and only if
-// lists X and Y are equal.
-func (es EditScript) Dist() int { return len(es) - es.stats().NI }
-
-// LenX is the length of the X list.
-func (es EditScript) LenX() int { return len(es) - es.stats().NY }
-
-// LenY is the length of the Y list.
-func (es EditScript) LenY() int { return len(es) - es.stats().NX }
-
-// EqualFunc reports whether the symbols at indexes ix and iy are equal.
-// When called by Difference, the index is guaranteed to be within nx and ny.
-type EqualFunc func(ix int, iy int) Result
-
-// Result is the result of comparison.
-// NumSame is the number of sub-elements that are equal.
-// NumDiff is the number of sub-elements that are not equal.
-type Result struct{ NumSame, NumDiff int }
-
-// BoolResult returns a Result that is either Equal or not Equal.
-func BoolResult(b bool) Result {
- if b {
- return Result{NumSame: 1} // Equal, Similar
- } else {
- return Result{NumDiff: 2} // Not Equal, not Similar
- }
-}
-
-// Equal indicates whether the symbols are equal. Two symbols are equal
-// if and only if NumDiff == 0. If Equal, then they are also Similar.
-func (r Result) Equal() bool { return r.NumDiff == 0 }
-
-// Similar indicates whether two symbols are similar and may be represented
-// by using the Modified type. As a special case, we consider binary comparisons
-// (i.e., those that return Result{1, 0} or Result{0, 1}) to be similar.
-//
-// The exact ratio of NumSame to NumDiff to determine similarity may change.
-func (r Result) Similar() bool {
- // Use NumSame+1 to offset NumSame so that binary comparisons are similar.
- return r.NumSame+1 >= r.NumDiff
-}
-
-var randBool = rand.New(rand.NewSource(time.Now().Unix())).Intn(2) == 0
-
-// Difference reports whether two lists of lengths nx and ny are equal
-// given the definition of equality provided as f.
-//
-// This function returns an edit-script, which is a sequence of operations
-// needed to convert one list into the other. The following invariants for
-// the edit-script are maintained:
-// - eq == (es.Dist()==0)
-// - nx == es.LenX()
-// - ny == es.LenY()
-//
-// This algorithm is not guaranteed to be an optimal solution (i.e., one that
-// produces an edit-script with a minimal Levenshtein distance). This algorithm
-// favors performance over optimality. The exact output is not guaranteed to
-// be stable and may change over time.
-func Difference(nx, ny int, f EqualFunc) (es EditScript) {
- // This algorithm is based on traversing what is known as an "edit-graph".
- // See Figure 1 from "An O(ND) Difference Algorithm and Its Variations"
- // by Eugene W. Myers. Since D can be as large as N itself, this is
- // effectively O(N^2). Unlike the algorithm from that paper, we are not
- // interested in the optimal path, but at least some "decent" path.
- //
- // For example, let X and Y be lists of symbols:
- // X = [A B C A B B A]
- // Y = [C B A B A C]
- //
- // The edit-graph can be drawn as the following:
- // A B C A B B A
- // ┌─────────────┐
- // C │_|_|\|_|_|_|_│ 0
- // B │_|\|_|_|\|\|_│ 1
- // A │\|_|_|\|_|_|\│ 2
- // B │_|\|_|_|\|\|_│ 3
- // A │\|_|_|\|_|_|\│ 4
- // C │ | |\| | | | │ 5
- // └─────────────┘ 6
- // 0 1 2 3 4 5 6 7
- //
- // List X is written along the horizontal axis, while list Y is written
- // along the vertical axis. At any point on this grid, if the symbol in
- // list X matches the corresponding symbol in list Y, then a '\' is drawn.
- // The goal of any minimal edit-script algorithm is to find a path from the
- // top-left corner to the bottom-right corner, while traveling through the
- // fewest horizontal or vertical edges.
- // A horizontal edge is equivalent to inserting a symbol from list X.
- // A vertical edge is equivalent to inserting a symbol from list Y.
- // A diagonal edge is equivalent to a matching symbol between both X and Y.
-
- // Invariants:
- // - 0 ≤ fwdPath.X ≤ (fwdFrontier.X, revFrontier.X) ≤ revPath.X ≤ nx
- // - 0 ≤ fwdPath.Y ≤ (fwdFrontier.Y, revFrontier.Y) ≤ revPath.Y ≤ ny
- //
- // In general:
- // - fwdFrontier.X < revFrontier.X
- // - fwdFrontier.Y < revFrontier.Y
- //
- // Unless, it is time for the algorithm to terminate.
- fwdPath := path{+1, point{0, 0}, make(EditScript, 0, (nx+ny)/2)}
- revPath := path{-1, point{nx, ny}, make(EditScript, 0)}
- fwdFrontier := fwdPath.point // Forward search frontier
- revFrontier := revPath.point // Reverse search frontier
-
- // Search budget bounds the cost of searching for better paths.
- // The longest sequence of non-matching symbols that can be tolerated is
- // approximately the square-root of the search budget.
- searchBudget := 4 * (nx + ny) // O(n)
-
- // Running the tests with the "cmp_debug" build tag prints a visualization
- // of the algorithm running in real-time. This is educational for
- // understanding how the algorithm works. See debug_enable.go.
- f = debug.Begin(nx, ny, f, &fwdPath.es, &revPath.es)
-
- // The algorithm below is a greedy, meet-in-the-middle algorithm for
- // computing sub-optimal edit-scripts between two lists.
- //
- // The algorithm is approximately as follows:
- // - Searching for differences switches back-and-forth between
- // a search that starts at the beginning (the top-left corner), and
- // a search that starts at the end (the bottom-right corner).
- // The goal of the search is connect with the search
- // from the opposite corner.
- // - As we search, we build a path in a greedy manner,
- // where the first match seen is added to the path (this is sub-optimal,
- // but provides a decent result in practice). When matches are found,
- // we try the next pair of symbols in the lists and follow all matches
- // as far as possible.
- // - When searching for matches, we search along a diagonal going through
- // through the "frontier" point. If no matches are found,
- // we advance the frontier towards the opposite corner.
- // - This algorithm terminates when either the X coordinates or the
- // Y coordinates of the forward and reverse frontier points ever intersect.
-
- // This algorithm is correct even if searching only in the forward direction
- // or in the reverse direction. We do both because it is commonly observed
- // that two lists commonly differ because elements were added to the front
- // or end of the other list.
- //
- // Non-deterministically start with either the forward or reverse direction
- // to introduce some deliberate instability so that we have the flexibility
- // to change this algorithm in the future.
- if flags.Deterministic || randBool {
- goto forwardSearch
- } else {
- goto reverseSearch
- }
-
-forwardSearch:
- {
- // Forward search from the beginning.
- if fwdFrontier.X >= revFrontier.X || fwdFrontier.Y >= revFrontier.Y || searchBudget == 0 {
- goto finishSearch
- }
- for stop1, stop2, i := false, false, 0; !(stop1 && stop2) && searchBudget > 0; i++ {
- // Search in a diagonal pattern for a match.
- z := zigzag(i)
- p := point{fwdFrontier.X + z, fwdFrontier.Y - z}
- switch {
- case p.X >= revPath.X || p.Y < fwdPath.Y:
- stop1 = true // Hit top-right corner
- case p.Y >= revPath.Y || p.X < fwdPath.X:
- stop2 = true // Hit bottom-left corner
- case f(p.X, p.Y).Equal():
- // Match found, so connect the path to this point.
- fwdPath.connect(p, f)
- fwdPath.append(Identity)
- // Follow sequence of matches as far as possible.
- for fwdPath.X < revPath.X && fwdPath.Y < revPath.Y {
- if !f(fwdPath.X, fwdPath.Y).Equal() {
- break
- }
- fwdPath.append(Identity)
- }
- fwdFrontier = fwdPath.point
- stop1, stop2 = true, true
- default:
- searchBudget-- // Match not found
- }
- debug.Update()
- }
- // Advance the frontier towards reverse point.
- if revPath.X-fwdFrontier.X >= revPath.Y-fwdFrontier.Y {
- fwdFrontier.X++
- } else {
- fwdFrontier.Y++
- }
- goto reverseSearch
- }
-
-reverseSearch:
- {
- // Reverse search from the end.
- if fwdFrontier.X >= revFrontier.X || fwdFrontier.Y >= revFrontier.Y || searchBudget == 0 {
- goto finishSearch
- }
- for stop1, stop2, i := false, false, 0; !(stop1 && stop2) && searchBudget > 0; i++ {
- // Search in a diagonal pattern for a match.
- z := zigzag(i)
- p := point{revFrontier.X - z, revFrontier.Y + z}
- switch {
- case fwdPath.X >= p.X || revPath.Y < p.Y:
- stop1 = true // Hit bottom-left corner
- case fwdPath.Y >= p.Y || revPath.X < p.X:
- stop2 = true // Hit top-right corner
- case f(p.X-1, p.Y-1).Equal():
- // Match found, so connect the path to this point.
- revPath.connect(p, f)
- revPath.append(Identity)
- // Follow sequence of matches as far as possible.
- for fwdPath.X < revPath.X && fwdPath.Y < revPath.Y {
- if !f(revPath.X-1, revPath.Y-1).Equal() {
- break
- }
- revPath.append(Identity)
- }
- revFrontier = revPath.point
- stop1, stop2 = true, true
- default:
- searchBudget-- // Match not found
- }
- debug.Update()
- }
- // Advance the frontier towards forward point.
- if revFrontier.X-fwdPath.X >= revFrontier.Y-fwdPath.Y {
- revFrontier.X--
- } else {
- revFrontier.Y--
- }
- goto forwardSearch
- }
-
-finishSearch:
- // Join the forward and reverse paths and then append the reverse path.
- fwdPath.connect(revPath.point, f)
- for i := len(revPath.es) - 1; i >= 0; i-- {
- t := revPath.es[i]
- revPath.es = revPath.es[:i]
- fwdPath.append(t)
- }
- debug.Finish()
- return fwdPath.es
-}
-
-type path struct {
- dir int // +1 if forward, -1 if reverse
- point // Leading point of the EditScript path
- es EditScript
-}
-
-// connect appends any necessary Identity, Modified, UniqueX, or UniqueY types
-// to the edit-script to connect p.point to dst.
-func (p *path) connect(dst point, f EqualFunc) {
- if p.dir > 0 {
- // Connect in forward direction.
- for dst.X > p.X && dst.Y > p.Y {
- switch r := f(p.X, p.Y); {
- case r.Equal():
- p.append(Identity)
- case r.Similar():
- p.append(Modified)
- case dst.X-p.X >= dst.Y-p.Y:
- p.append(UniqueX)
- default:
- p.append(UniqueY)
- }
- }
- for dst.X > p.X {
- p.append(UniqueX)
- }
- for dst.Y > p.Y {
- p.append(UniqueY)
- }
- } else {
- // Connect in reverse direction.
- for p.X > dst.X && p.Y > dst.Y {
- switch r := f(p.X-1, p.Y-1); {
- case r.Equal():
- p.append(Identity)
- case r.Similar():
- p.append(Modified)
- case p.Y-dst.Y >= p.X-dst.X:
- p.append(UniqueY)
- default:
- p.append(UniqueX)
- }
- }
- for p.X > dst.X {
- p.append(UniqueX)
- }
- for p.Y > dst.Y {
- p.append(UniqueY)
- }
- }
-}
-
-func (p *path) append(t EditType) {
- p.es = append(p.es, t)
- switch t {
- case Identity, Modified:
- p.add(p.dir, p.dir)
- case UniqueX:
- p.add(p.dir, 0)
- case UniqueY:
- p.add(0, p.dir)
- }
- debug.Update()
-}
-
-type point struct{ X, Y int }
-
-func (p *point) add(dx, dy int) { p.X += dx; p.Y += dy }
-
-// zigzag maps a consecutive sequence of integers to a zig-zag sequence.
-//
-// [0 1 2 3 4 5 ...] => [0 -1 +1 -2 +2 ...]
-func zigzag(x int) int {
- if x&1 != 0 {
- x = ^x
- }
- return x >> 1
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go b/vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go
deleted file mode 100644
index d8e459c9b..000000000
--- a/vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go
+++ /dev/null
@@ -1,9 +0,0 @@
-// Copyright 2019, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package flags
-
-// Deterministic controls whether the output of Diff should be deterministic.
-// This is only used for testing.
-var Deterministic bool
diff --git a/vendor/github.com/google/go-cmp/cmp/internal/function/func.go b/vendor/github.com/google/go-cmp/cmp/internal/function/func.go
deleted file mode 100644
index d127d4362..000000000
--- a/vendor/github.com/google/go-cmp/cmp/internal/function/func.go
+++ /dev/null
@@ -1,99 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Package function provides functionality for identifying function types.
-package function
-
-import (
- "reflect"
- "regexp"
- "runtime"
- "strings"
-)
-
-type funcType int
-
-const (
- _ funcType = iota
-
- tbFunc // func(T) bool
- ttbFunc // func(T, T) bool
- trbFunc // func(T, R) bool
- tibFunc // func(T, I) bool
- trFunc // func(T) R
-
- Equal = ttbFunc // func(T, T) bool
- EqualAssignable = tibFunc // func(T, I) bool; encapsulates func(T, T) bool
- Transformer = trFunc // func(T) R
- ValueFilter = ttbFunc // func(T, T) bool
- Less = ttbFunc // func(T, T) bool
- ValuePredicate = tbFunc // func(T) bool
- KeyValuePredicate = trbFunc // func(T, R) bool
-)
-
-var boolType = reflect.TypeOf(true)
-
-// IsType reports whether the reflect.Type is of the specified function type.
-func IsType(t reflect.Type, ft funcType) bool {
- if t == nil || t.Kind() != reflect.Func || t.IsVariadic() {
- return false
- }
- ni, no := t.NumIn(), t.NumOut()
- switch ft {
- case tbFunc: // func(T) bool
- if ni == 1 && no == 1 && t.Out(0) == boolType {
- return true
- }
- case ttbFunc: // func(T, T) bool
- if ni == 2 && no == 1 && t.In(0) == t.In(1) && t.Out(0) == boolType {
- return true
- }
- case trbFunc: // func(T, R) bool
- if ni == 2 && no == 1 && t.Out(0) == boolType {
- return true
- }
- case tibFunc: // func(T, I) bool
- if ni == 2 && no == 1 && t.In(0).AssignableTo(t.In(1)) && t.Out(0) == boolType {
- return true
- }
- case trFunc: // func(T) R
- if ni == 1 && no == 1 {
- return true
- }
- }
- return false
-}
-
-var lastIdentRx = regexp.MustCompile(`[_\p{L}][_\p{L}\p{N}]*$`)
-
-// NameOf returns the name of the function value.
-func NameOf(v reflect.Value) string {
- fnc := runtime.FuncForPC(v.Pointer())
- if fnc == nil {
- return ""
- }
- fullName := fnc.Name() // e.g., "long/path/name/mypkg.(*MyType).(long/path/name/mypkg.myMethod)-fm"
-
- // Method closures have a "-fm" suffix.
- fullName = strings.TrimSuffix(fullName, "-fm")
-
- var name string
- for len(fullName) > 0 {
- inParen := strings.HasSuffix(fullName, ")")
- fullName = strings.TrimSuffix(fullName, ")")
-
- s := lastIdentRx.FindString(fullName)
- if s == "" {
- break
- }
- name = s + "." + name
- fullName = strings.TrimSuffix(fullName, s)
-
- if i := strings.LastIndexByte(fullName, '('); inParen && i >= 0 {
- fullName = fullName[:i]
- }
- fullName = strings.TrimSuffix(fullName, ".")
- }
- return strings.TrimSuffix(name, ".")
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/name.go b/vendor/github.com/google/go-cmp/cmp/internal/value/name.go
deleted file mode 100644
index 7b498bb2c..000000000
--- a/vendor/github.com/google/go-cmp/cmp/internal/value/name.go
+++ /dev/null
@@ -1,164 +0,0 @@
-// Copyright 2020, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package value
-
-import (
- "reflect"
- "strconv"
-)
-
-var anyType = reflect.TypeOf((*interface{})(nil)).Elem()
-
-// TypeString is nearly identical to reflect.Type.String,
-// but has an additional option to specify that full type names be used.
-func TypeString(t reflect.Type, qualified bool) string {
- return string(appendTypeName(nil, t, qualified, false))
-}
-
-func appendTypeName(b []byte, t reflect.Type, qualified, elideFunc bool) []byte {
- // BUG: Go reflection provides no way to disambiguate two named types
- // of the same name and within the same package,
- // but declared within the namespace of different functions.
-
- // Use the "any" alias instead of "interface{}" for better readability.
- if t == anyType {
- return append(b, "any"...)
- }
-
- // Named type.
- if t.Name() != "" {
- if qualified && t.PkgPath() != "" {
- b = append(b, '"')
- b = append(b, t.PkgPath()...)
- b = append(b, '"')
- b = append(b, '.')
- b = append(b, t.Name()...)
- } else {
- b = append(b, t.String()...)
- }
- return b
- }
-
- // Unnamed type.
- switch k := t.Kind(); k {
- case reflect.Bool, reflect.String, reflect.UnsafePointer,
- reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
- reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr,
- reflect.Float32, reflect.Float64, reflect.Complex64, reflect.Complex128:
- b = append(b, k.String()...)
- case reflect.Chan:
- if t.ChanDir() == reflect.RecvDir {
- b = append(b, "<-"...)
- }
- b = append(b, "chan"...)
- if t.ChanDir() == reflect.SendDir {
- b = append(b, "<-"...)
- }
- b = append(b, ' ')
- b = appendTypeName(b, t.Elem(), qualified, false)
- case reflect.Func:
- if !elideFunc {
- b = append(b, "func"...)
- }
- b = append(b, '(')
- for i := 0; i < t.NumIn(); i++ {
- if i > 0 {
- b = append(b, ", "...)
- }
- if i == t.NumIn()-1 && t.IsVariadic() {
- b = append(b, "..."...)
- b = appendTypeName(b, t.In(i).Elem(), qualified, false)
- } else {
- b = appendTypeName(b, t.In(i), qualified, false)
- }
- }
- b = append(b, ')')
- switch t.NumOut() {
- case 0:
- // Do nothing
- case 1:
- b = append(b, ' ')
- b = appendTypeName(b, t.Out(0), qualified, false)
- default:
- b = append(b, " ("...)
- for i := 0; i < t.NumOut(); i++ {
- if i > 0 {
- b = append(b, ", "...)
- }
- b = appendTypeName(b, t.Out(i), qualified, false)
- }
- b = append(b, ')')
- }
- case reflect.Struct:
- b = append(b, "struct{ "...)
- for i := 0; i < t.NumField(); i++ {
- if i > 0 {
- b = append(b, "; "...)
- }
- sf := t.Field(i)
- if !sf.Anonymous {
- if qualified && sf.PkgPath != "" {
- b = append(b, '"')
- b = append(b, sf.PkgPath...)
- b = append(b, '"')
- b = append(b, '.')
- }
- b = append(b, sf.Name...)
- b = append(b, ' ')
- }
- b = appendTypeName(b, sf.Type, qualified, false)
- if sf.Tag != "" {
- b = append(b, ' ')
- b = strconv.AppendQuote(b, string(sf.Tag))
- }
- }
- if b[len(b)-1] == ' ' {
- b = b[:len(b)-1]
- } else {
- b = append(b, ' ')
- }
- b = append(b, '}')
- case reflect.Slice, reflect.Array:
- b = append(b, '[')
- if k == reflect.Array {
- b = strconv.AppendUint(b, uint64(t.Len()), 10)
- }
- b = append(b, ']')
- b = appendTypeName(b, t.Elem(), qualified, false)
- case reflect.Map:
- b = append(b, "map["...)
- b = appendTypeName(b, t.Key(), qualified, false)
- b = append(b, ']')
- b = appendTypeName(b, t.Elem(), qualified, false)
- case reflect.Ptr:
- b = append(b, '*')
- b = appendTypeName(b, t.Elem(), qualified, false)
- case reflect.Interface:
- b = append(b, "interface{ "...)
- for i := 0; i < t.NumMethod(); i++ {
- if i > 0 {
- b = append(b, "; "...)
- }
- m := t.Method(i)
- if qualified && m.PkgPath != "" {
- b = append(b, '"')
- b = append(b, m.PkgPath...)
- b = append(b, '"')
- b = append(b, '.')
- }
- b = append(b, m.Name...)
- b = appendTypeName(b, m.Type, qualified, true)
- }
- if b[len(b)-1] == ' ' {
- b = b[:len(b)-1]
- } else {
- b = append(b, ' ')
- }
- b = append(b, '}')
- default:
- panic("invalid kind: " + k.String())
- }
- return b
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer.go b/vendor/github.com/google/go-cmp/cmp/internal/value/pointer.go
deleted file mode 100644
index e5dfff69a..000000000
--- a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer.go
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2018, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package value
-
-import (
- "reflect"
- "unsafe"
-)
-
-// Pointer is an opaque typed pointer and is guaranteed to be comparable.
-type Pointer struct {
- p unsafe.Pointer
- t reflect.Type
-}
-
-// PointerOf returns a Pointer from v, which must be a
-// reflect.Ptr, reflect.Slice, or reflect.Map.
-func PointerOf(v reflect.Value) Pointer {
- // The proper representation of a pointer is unsafe.Pointer,
- // which is necessary if the GC ever uses a moving collector.
- return Pointer{unsafe.Pointer(v.Pointer()), v.Type()}
-}
-
-// IsNil reports whether the pointer is nil.
-func (p Pointer) IsNil() bool {
- return p.p == nil
-}
-
-// Uintptr returns the pointer as a uintptr.
-func (p Pointer) Uintptr() uintptr {
- return uintptr(p.p)
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/sort.go b/vendor/github.com/google/go-cmp/cmp/internal/value/sort.go
deleted file mode 100644
index 98533b036..000000000
--- a/vendor/github.com/google/go-cmp/cmp/internal/value/sort.go
+++ /dev/null
@@ -1,106 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package value
-
-import (
- "fmt"
- "math"
- "reflect"
- "sort"
-)
-
-// SortKeys sorts a list of map keys, deduplicating keys if necessary.
-// The type of each value must be comparable.
-func SortKeys(vs []reflect.Value) []reflect.Value {
- if len(vs) == 0 {
- return vs
- }
-
- // Sort the map keys.
- sort.SliceStable(vs, func(i, j int) bool { return isLess(vs[i], vs[j]) })
-
- // Deduplicate keys (fails for NaNs).
- vs2 := vs[:1]
- for _, v := range vs[1:] {
- if isLess(vs2[len(vs2)-1], v) {
- vs2 = append(vs2, v)
- }
- }
- return vs2
-}
-
-// isLess is a generic function for sorting arbitrary map keys.
-// The inputs must be of the same type and must be comparable.
-func isLess(x, y reflect.Value) bool {
- switch x.Type().Kind() {
- case reflect.Bool:
- return !x.Bool() && y.Bool()
- case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
- return x.Int() < y.Int()
- case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
- return x.Uint() < y.Uint()
- case reflect.Float32, reflect.Float64:
- // NOTE: This does not sort -0 as less than +0
- // since Go maps treat -0 and +0 as equal keys.
- fx, fy := x.Float(), y.Float()
- return fx < fy || math.IsNaN(fx) && !math.IsNaN(fy)
- case reflect.Complex64, reflect.Complex128:
- cx, cy := x.Complex(), y.Complex()
- rx, ix, ry, iy := real(cx), imag(cx), real(cy), imag(cy)
- if rx == ry || (math.IsNaN(rx) && math.IsNaN(ry)) {
- return ix < iy || math.IsNaN(ix) && !math.IsNaN(iy)
- }
- return rx < ry || math.IsNaN(rx) && !math.IsNaN(ry)
- case reflect.Ptr, reflect.UnsafePointer, reflect.Chan:
- return x.Pointer() < y.Pointer()
- case reflect.String:
- return x.String() < y.String()
- case reflect.Array:
- for i := 0; i < x.Len(); i++ {
- if isLess(x.Index(i), y.Index(i)) {
- return true
- }
- if isLess(y.Index(i), x.Index(i)) {
- return false
- }
- }
- return false
- case reflect.Struct:
- for i := 0; i < x.NumField(); i++ {
- if isLess(x.Field(i), y.Field(i)) {
- return true
- }
- if isLess(y.Field(i), x.Field(i)) {
- return false
- }
- }
- return false
- case reflect.Interface:
- vx, vy := x.Elem(), y.Elem()
- if !vx.IsValid() || !vy.IsValid() {
- return !vx.IsValid() && vy.IsValid()
- }
- tx, ty := vx.Type(), vy.Type()
- if tx == ty {
- return isLess(x.Elem(), y.Elem())
- }
- if tx.Kind() != ty.Kind() {
- return vx.Kind() < vy.Kind()
- }
- if tx.String() != ty.String() {
- return tx.String() < ty.String()
- }
- if tx.PkgPath() != ty.PkgPath() {
- return tx.PkgPath() < ty.PkgPath()
- }
- // This can happen in rare situations, so we fallback to just comparing
- // the unique pointer for a reflect.Type. This guarantees deterministic
- // ordering within a program, but it is obviously not stable.
- return reflect.ValueOf(vx.Type()).Pointer() < reflect.ValueOf(vy.Type()).Pointer()
- default:
- // Must be Func, Map, or Slice; which are not comparable.
- panic(fmt.Sprintf("%T is not comparable", x.Type()))
- }
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/options.go b/vendor/github.com/google/go-cmp/cmp/options.go
deleted file mode 100644
index 754496f3b..000000000
--- a/vendor/github.com/google/go-cmp/cmp/options.go
+++ /dev/null
@@ -1,554 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-import (
- "fmt"
- "reflect"
- "regexp"
- "strings"
-
- "github.com/google/go-cmp/cmp/internal/function"
-)
-
-// Option configures for specific behavior of [Equal] and [Diff]. In particular,
-// the fundamental Option functions ([Ignore], [Transformer], and [Comparer]),
-// configure how equality is determined.
-//
-// The fundamental options may be composed with filters ([FilterPath] and
-// [FilterValues]) to control the scope over which they are applied.
-//
-// The [github.com/google/go-cmp/cmp/cmpopts] package provides helper functions
-// for creating options that may be used with [Equal] and [Diff].
-type Option interface {
- // filter applies all filters and returns the option that remains.
- // Each option may only read s.curPath and call s.callTTBFunc.
- //
- // An Options is returned only if multiple comparers or transformers
- // can apply simultaneously and will only contain values of those types
- // or sub-Options containing values of those types.
- filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption
-}
-
-// applicableOption represents the following types:
-//
-// Fundamental: ignore | validator | *comparer | *transformer
-// Grouping: Options
-type applicableOption interface {
- Option
-
- // apply executes the option, which may mutate s or panic.
- apply(s *state, vx, vy reflect.Value)
-}
-
-// coreOption represents the following types:
-//
-// Fundamental: ignore | validator | *comparer | *transformer
-// Filters: *pathFilter | *valuesFilter
-type coreOption interface {
- Option
- isCore()
-}
-
-type core struct{}
-
-func (core) isCore() {}
-
-// Options is a list of [Option] values that also satisfies the [Option] interface.
-// Helper comparison packages may return an Options value when packing multiple
-// [Option] values into a single [Option]. When this package processes an Options,
-// it will be implicitly expanded into a flat list.
-//
-// Applying a filter on an Options is equivalent to applying that same filter
-// on all individual options held within.
-type Options []Option
-
-func (opts Options) filter(s *state, t reflect.Type, vx, vy reflect.Value) (out applicableOption) {
- for _, opt := range opts {
- switch opt := opt.filter(s, t, vx, vy); opt.(type) {
- case ignore:
- return ignore{} // Only ignore can short-circuit evaluation
- case validator:
- out = validator{} // Takes precedence over comparer or transformer
- case *comparer, *transformer, Options:
- switch out.(type) {
- case nil:
- out = opt
- case validator:
- // Keep validator
- case *comparer, *transformer, Options:
- out = Options{out, opt} // Conflicting comparers or transformers
- }
- }
- }
- return out
-}
-
-func (opts Options) apply(s *state, _, _ reflect.Value) {
- const warning = "ambiguous set of applicable options"
- const help = "consider using filters to ensure at most one Comparer or Transformer may apply"
- var ss []string
- for _, opt := range flattenOptions(nil, opts) {
- ss = append(ss, fmt.Sprint(opt))
- }
- set := strings.Join(ss, "\n\t")
- panic(fmt.Sprintf("%s at %#v:\n\t%s\n%s", warning, s.curPath, set, help))
-}
-
-func (opts Options) String() string {
- var ss []string
- for _, opt := range opts {
- ss = append(ss, fmt.Sprint(opt))
- }
- return fmt.Sprintf("Options{%s}", strings.Join(ss, ", "))
-}
-
-// FilterPath returns a new [Option] where opt is only evaluated if filter f
-// returns true for the current [Path] in the value tree.
-//
-// This filter is called even if a slice element or map entry is missing and
-// provides an opportunity to ignore such cases. The filter function must be
-// symmetric such that the filter result is identical regardless of whether the
-// missing value is from x or y.
-//
-// The option passed in may be an [Ignore], [Transformer], [Comparer], [Options], or
-// a previously filtered [Option].
-func FilterPath(f func(Path) bool, opt Option) Option {
- if f == nil {
- panic("invalid path filter function")
- }
- if opt := normalizeOption(opt); opt != nil {
- return &pathFilter{fnc: f, opt: opt}
- }
- return nil
-}
-
-type pathFilter struct {
- core
- fnc func(Path) bool
- opt Option
-}
-
-func (f pathFilter) filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption {
- if f.fnc(s.curPath) {
- return f.opt.filter(s, t, vx, vy)
- }
- return nil
-}
-
-func (f pathFilter) String() string {
- return fmt.Sprintf("FilterPath(%s, %v)", function.NameOf(reflect.ValueOf(f.fnc)), f.opt)
-}
-
-// FilterValues returns a new [Option] where opt is only evaluated if filter f,
-// which is a function of the form "func(T, T) bool", returns true for the
-// current pair of values being compared. If either value is invalid or
-// the type of the values is not assignable to T, then this filter implicitly
-// returns false.
-//
-// The filter function must be
-// symmetric (i.e., agnostic to the order of the inputs) and
-// deterministic (i.e., produces the same result when given the same inputs).
-// If T is an interface, it is possible that f is called with two values with
-// different concrete types that both implement T.
-//
-// The option passed in may be an [Ignore], [Transformer], [Comparer], [Options], or
-// a previously filtered [Option].
-func FilterValues(f interface{}, opt Option) Option {
- v := reflect.ValueOf(f)
- if !function.IsType(v.Type(), function.ValueFilter) || v.IsNil() {
- panic(fmt.Sprintf("invalid values filter function: %T", f))
- }
- if opt := normalizeOption(opt); opt != nil {
- vf := &valuesFilter{fnc: v, opt: opt}
- if ti := v.Type().In(0); ti.Kind() != reflect.Interface || ti.NumMethod() > 0 {
- vf.typ = ti
- }
- return vf
- }
- return nil
-}
-
-type valuesFilter struct {
- core
- typ reflect.Type // T
- fnc reflect.Value // func(T, T) bool
- opt Option
-}
-
-func (f valuesFilter) filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption {
- if !vx.IsValid() || !vx.CanInterface() || !vy.IsValid() || !vy.CanInterface() {
- return nil
- }
- if (f.typ == nil || t.AssignableTo(f.typ)) && s.callTTBFunc(f.fnc, vx, vy) {
- return f.opt.filter(s, t, vx, vy)
- }
- return nil
-}
-
-func (f valuesFilter) String() string {
- return fmt.Sprintf("FilterValues(%s, %v)", function.NameOf(f.fnc), f.opt)
-}
-
-// Ignore is an [Option] that causes all comparisons to be ignored.
-// This value is intended to be combined with [FilterPath] or [FilterValues].
-// It is an error to pass an unfiltered Ignore option to [Equal].
-func Ignore() Option { return ignore{} }
-
-type ignore struct{ core }
-
-func (ignore) isFiltered() bool { return false }
-func (ignore) filter(_ *state, _ reflect.Type, _, _ reflect.Value) applicableOption { return ignore{} }
-func (ignore) apply(s *state, _, _ reflect.Value) { s.report(true, reportByIgnore) }
-func (ignore) String() string { return "Ignore()" }
-
-// validator is a sentinel Option type to indicate that some options could not
-// be evaluated due to unexported fields, missing slice elements, or
-// missing map entries. Both values are validator only for unexported fields.
-type validator struct{ core }
-
-func (validator) filter(_ *state, _ reflect.Type, vx, vy reflect.Value) applicableOption {
- if !vx.IsValid() || !vy.IsValid() {
- return validator{}
- }
- if !vx.CanInterface() || !vy.CanInterface() {
- return validator{}
- }
- return nil
-}
-func (validator) apply(s *state, vx, vy reflect.Value) {
- // Implies missing slice element or map entry.
- if !vx.IsValid() || !vy.IsValid() {
- s.report(vx.IsValid() == vy.IsValid(), 0)
- return
- }
-
- // Unable to Interface implies unexported field without visibility access.
- if !vx.CanInterface() || !vy.CanInterface() {
- help := "consider using a custom Comparer; if you control the implementation of type, you can also consider using an Exporter, AllowUnexported, or cmpopts.IgnoreUnexported"
- var name string
- if t := s.curPath.Index(-2).Type(); t.Name() != "" {
- // Named type with unexported fields.
- name = fmt.Sprintf("%q.%v", t.PkgPath(), t.Name()) // e.g., "path/to/package".MyType
- if _, ok := reflect.New(t).Interface().(error); ok {
- help = "consider using cmpopts.EquateErrors to compare error values"
- } else if t.Comparable() {
- help = "consider using cmpopts.EquateComparable to compare comparable Go types"
- }
- } else {
- // Unnamed type with unexported fields. Derive PkgPath from field.
- var pkgPath string
- for i := 0; i < t.NumField() && pkgPath == ""; i++ {
- pkgPath = t.Field(i).PkgPath
- }
- name = fmt.Sprintf("%q.(%v)", pkgPath, t.String()) // e.g., "path/to/package".(struct { a int })
- }
- panic(fmt.Sprintf("cannot handle unexported field at %#v:\n\t%v\n%s", s.curPath, name, help))
- }
-
- panic("not reachable")
-}
-
-// identRx represents a valid identifier according to the Go specification.
-const identRx = `[_\p{L}][_\p{L}\p{N}]*`
-
-var identsRx = regexp.MustCompile(`^` + identRx + `(\.` + identRx + `)*$`)
-
-// Transformer returns an [Option] that applies a transformation function that
-// converts values of a certain type into that of another.
-//
-// The transformer f must be a function "func(T) R" that converts values of
-// type T to those of type R and is implicitly filtered to input values
-// assignable to T. The transformer must not mutate T in any way.
-//
-// To help prevent some cases of infinite recursive cycles applying the
-// same transform to the output of itself (e.g., in the case where the
-// input and output types are the same), an implicit filter is added such that
-// a transformer is applicable only if that exact transformer is not already
-// in the tail of the [Path] since the last non-[Transform] step.
-// For situations where the implicit filter is still insufficient,
-// consider using [github.com/google/go-cmp/cmp/cmpopts.AcyclicTransformer],
-// which adds a filter to prevent the transformer from
-// being recursively applied upon itself.
-//
-// The name is a user provided label that is used as the [Transform.Name] in the
-// transformation [PathStep] (and eventually shown in the [Diff] output).
-// The name must be a valid identifier or qualified identifier in Go syntax.
-// If empty, an arbitrary name is used.
-func Transformer(name string, f interface{}) Option {
- v := reflect.ValueOf(f)
- if !function.IsType(v.Type(), function.Transformer) || v.IsNil() {
- panic(fmt.Sprintf("invalid transformer function: %T", f))
- }
- if name == "" {
- name = function.NameOf(v)
- if !identsRx.MatchString(name) {
- name = "λ" // Lambda-symbol as placeholder name
- }
- } else if !identsRx.MatchString(name) {
- panic(fmt.Sprintf("invalid name: %q", name))
- }
- tr := &transformer{name: name, fnc: reflect.ValueOf(f)}
- if ti := v.Type().In(0); ti.Kind() != reflect.Interface || ti.NumMethod() > 0 {
- tr.typ = ti
- }
- return tr
-}
-
-type transformer struct {
- core
- name string
- typ reflect.Type // T
- fnc reflect.Value // func(T) R
-}
-
-func (tr *transformer) isFiltered() bool { return tr.typ != nil }
-
-func (tr *transformer) filter(s *state, t reflect.Type, _, _ reflect.Value) applicableOption {
- for i := len(s.curPath) - 1; i >= 0; i-- {
- if t, ok := s.curPath[i].(Transform); !ok {
- break // Hit most recent non-Transform step
- } else if tr == t.trans {
- return nil // Cannot directly use same Transform
- }
- }
- if tr.typ == nil || t.AssignableTo(tr.typ) {
- return tr
- }
- return nil
-}
-
-func (tr *transformer) apply(s *state, vx, vy reflect.Value) {
- step := Transform{&transform{pathStep{typ: tr.fnc.Type().Out(0)}, tr}}
- vvx := s.callTRFunc(tr.fnc, vx, step)
- vvy := s.callTRFunc(tr.fnc, vy, step)
- step.vx, step.vy = vvx, vvy
- s.compareAny(step)
-}
-
-func (tr transformer) String() string {
- return fmt.Sprintf("Transformer(%s, %s)", tr.name, function.NameOf(tr.fnc))
-}
-
-// Comparer returns an [Option] that determines whether two values are equal
-// to each other.
-//
-// The comparer f must be a function "func(T, T) bool" and is implicitly
-// filtered to input values assignable to T. If T is an interface, it is
-// possible that f is called with two values of different concrete types that
-// both implement T.
-//
-// The equality function must be:
-// - Symmetric: equal(x, y) == equal(y, x)
-// - Deterministic: equal(x, y) == equal(x, y)
-// - Pure: equal(x, y) does not modify x or y
-func Comparer(f interface{}) Option {
- v := reflect.ValueOf(f)
- if !function.IsType(v.Type(), function.Equal) || v.IsNil() {
- panic(fmt.Sprintf("invalid comparer function: %T", f))
- }
- cm := &comparer{fnc: v}
- if ti := v.Type().In(0); ti.Kind() != reflect.Interface || ti.NumMethod() > 0 {
- cm.typ = ti
- }
- return cm
-}
-
-type comparer struct {
- core
- typ reflect.Type // T
- fnc reflect.Value // func(T, T) bool
-}
-
-func (cm *comparer) isFiltered() bool { return cm.typ != nil }
-
-func (cm *comparer) filter(_ *state, t reflect.Type, _, _ reflect.Value) applicableOption {
- if cm.typ == nil || t.AssignableTo(cm.typ) {
- return cm
- }
- return nil
-}
-
-func (cm *comparer) apply(s *state, vx, vy reflect.Value) {
- eq := s.callTTBFunc(cm.fnc, vx, vy)
- s.report(eq, reportByFunc)
-}
-
-func (cm comparer) String() string {
- return fmt.Sprintf("Comparer(%s)", function.NameOf(cm.fnc))
-}
-
-// Exporter returns an [Option] that specifies whether [Equal] is allowed to
-// introspect into the unexported fields of certain struct types.
-//
-// Users of this option must understand that comparing on unexported fields
-// from external packages is not safe since changes in the internal
-// implementation of some external package may cause the result of [Equal]
-// to unexpectedly change. However, it may be valid to use this option on types
-// defined in an internal package where the semantic meaning of an unexported
-// field is in the control of the user.
-//
-// In many cases, a custom [Comparer] should be used instead that defines
-// equality as a function of the public API of a type rather than the underlying
-// unexported implementation.
-//
-// For example, the [reflect.Type] documentation defines equality to be determined
-// by the == operator on the interface (essentially performing a shallow pointer
-// comparison) and most attempts to compare *[regexp.Regexp] types are interested
-// in only checking that the regular expression strings are equal.
-// Both of these are accomplished using [Comparer] options:
-//
-// Comparer(func(x, y reflect.Type) bool { return x == y })
-// Comparer(func(x, y *regexp.Regexp) bool { return x.String() == y.String() })
-//
-// In other cases, the [github.com/google/go-cmp/cmp/cmpopts.IgnoreUnexported]
-// option can be used to ignore all unexported fields on specified struct types.
-func Exporter(f func(reflect.Type) bool) Option {
- return exporter(f)
-}
-
-type exporter func(reflect.Type) bool
-
-func (exporter) filter(_ *state, _ reflect.Type, _, _ reflect.Value) applicableOption {
- panic("not implemented")
-}
-
-// AllowUnexported returns an [Option] that allows [Equal] to forcibly introspect
-// unexported fields of the specified struct types.
-//
-// See [Exporter] for the proper use of this option.
-func AllowUnexported(types ...interface{}) Option {
- m := make(map[reflect.Type]bool)
- for _, typ := range types {
- t := reflect.TypeOf(typ)
- if t.Kind() != reflect.Struct {
- panic(fmt.Sprintf("invalid struct type: %T", typ))
- }
- m[t] = true
- }
- return exporter(func(t reflect.Type) bool { return m[t] })
-}
-
-// Result represents the comparison result for a single node and
-// is provided by cmp when calling Report (see [Reporter]).
-type Result struct {
- _ [0]func() // Make Result incomparable
- flags resultFlags
-}
-
-// Equal reports whether the node was determined to be equal or not.
-// As a special case, ignored nodes are considered equal.
-func (r Result) Equal() bool {
- return r.flags&(reportEqual|reportByIgnore) != 0
-}
-
-// ByIgnore reports whether the node is equal because it was ignored.
-// This never reports true if [Result.Equal] reports false.
-func (r Result) ByIgnore() bool {
- return r.flags&reportByIgnore != 0
-}
-
-// ByMethod reports whether the Equal method determined equality.
-func (r Result) ByMethod() bool {
- return r.flags&reportByMethod != 0
-}
-
-// ByFunc reports whether a [Comparer] function determined equality.
-func (r Result) ByFunc() bool {
- return r.flags&reportByFunc != 0
-}
-
-// ByCycle reports whether a reference cycle was detected.
-func (r Result) ByCycle() bool {
- return r.flags&reportByCycle != 0
-}
-
-type resultFlags uint
-
-const (
- _ resultFlags = (1 << iota) / 2
-
- reportEqual
- reportUnequal
- reportByIgnore
- reportByMethod
- reportByFunc
- reportByCycle
-)
-
-// Reporter is an [Option] that can be passed to [Equal]. When [Equal] traverses
-// the value trees, it calls PushStep as it descends into each node in the
-// tree and PopStep as it ascend out of the node. The leaves of the tree are
-// either compared (determined to be equal or not equal) or ignored and reported
-// as such by calling the Report method.
-func Reporter(r interface {
- // PushStep is called when a tree-traversal operation is performed.
- // The PathStep itself is only valid until the step is popped.
- // The PathStep.Values are valid for the duration of the entire traversal
- // and must not be mutated.
- //
- // Equal always calls PushStep at the start to provide an operation-less
- // PathStep used to report the root values.
- //
- // Within a slice, the exact set of inserted, removed, or modified elements
- // is unspecified and may change in future implementations.
- // The entries of a map are iterated through in an unspecified order.
- PushStep(PathStep)
-
- // Report is called exactly once on leaf nodes to report whether the
- // comparison identified the node as equal, unequal, or ignored.
- // A leaf node is one that is immediately preceded by and followed by
- // a pair of PushStep and PopStep calls.
- Report(Result)
-
- // PopStep ascends back up the value tree.
- // There is always a matching pop call for every push call.
- PopStep()
-}) Option {
- return reporter{r}
-}
-
-type reporter struct{ reporterIface }
-type reporterIface interface {
- PushStep(PathStep)
- Report(Result)
- PopStep()
-}
-
-func (reporter) filter(_ *state, _ reflect.Type, _, _ reflect.Value) applicableOption {
- panic("not implemented")
-}
-
-// normalizeOption normalizes the input options such that all Options groups
-// are flattened and groups with a single element are reduced to that element.
-// Only coreOptions and Options containing coreOptions are allowed.
-func normalizeOption(src Option) Option {
- switch opts := flattenOptions(nil, Options{src}); len(opts) {
- case 0:
- return nil
- case 1:
- return opts[0]
- default:
- return opts
- }
-}
-
-// flattenOptions copies all options in src to dst as a flat list.
-// Only coreOptions and Options containing coreOptions are allowed.
-func flattenOptions(dst, src Options) Options {
- for _, opt := range src {
- switch opt := opt.(type) {
- case nil:
- continue
- case Options:
- dst = flattenOptions(dst, opt)
- case coreOption:
- dst = append(dst, opt)
- default:
- panic(fmt.Sprintf("invalid option type: %T", opt))
- }
- }
- return dst
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/path.go b/vendor/github.com/google/go-cmp/cmp/path.go
deleted file mode 100644
index c3c145642..000000000
--- a/vendor/github.com/google/go-cmp/cmp/path.go
+++ /dev/null
@@ -1,390 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-import (
- "fmt"
- "reflect"
- "strings"
- "unicode"
- "unicode/utf8"
-
- "github.com/google/go-cmp/cmp/internal/value"
-)
-
-// Path is a list of [PathStep] describing the sequence of operations to get
-// from some root type to the current position in the value tree.
-// The first Path element is always an operation-less [PathStep] that exists
-// simply to identify the initial type.
-//
-// When traversing structs with embedded structs, the embedded struct will
-// always be accessed as a field before traversing the fields of the
-// embedded struct themselves. That is, an exported field from the
-// embedded struct will never be accessed directly from the parent struct.
-type Path []PathStep
-
-// PathStep is a union-type for specific operations to traverse
-// a value's tree structure. Users of this package never need to implement
-// these types as values of this type will be returned by this package.
-//
-// Implementations of this interface:
-// - [StructField]
-// - [SliceIndex]
-// - [MapIndex]
-// - [Indirect]
-// - [TypeAssertion]
-// - [Transform]
-type PathStep interface {
- String() string
-
- // Type is the resulting type after performing the path step.
- Type() reflect.Type
-
- // Values is the resulting values after performing the path step.
- // The type of each valid value is guaranteed to be identical to Type.
- //
- // In some cases, one or both may be invalid or have restrictions:
- // - For StructField, both are not interface-able if the current field
- // is unexported and the struct type is not explicitly permitted by
- // an Exporter to traverse unexported fields.
- // - For SliceIndex, one may be invalid if an element is missing from
- // either the x or y slice.
- // - For MapIndex, one may be invalid if an entry is missing from
- // either the x or y map.
- //
- // The provided values must not be mutated.
- Values() (vx, vy reflect.Value)
-}
-
-var (
- _ PathStep = StructField{}
- _ PathStep = SliceIndex{}
- _ PathStep = MapIndex{}
- _ PathStep = Indirect{}
- _ PathStep = TypeAssertion{}
- _ PathStep = Transform{}
-)
-
-func (pa *Path) push(s PathStep) {
- *pa = append(*pa, s)
-}
-
-func (pa *Path) pop() {
- *pa = (*pa)[:len(*pa)-1]
-}
-
-// Last returns the last [PathStep] in the Path.
-// If the path is empty, this returns a non-nil [PathStep]
-// that reports a nil [PathStep.Type].
-func (pa Path) Last() PathStep {
- return pa.Index(-1)
-}
-
-// Index returns the ith step in the Path and supports negative indexing.
-// A negative index starts counting from the tail of the Path such that -1
-// refers to the last step, -2 refers to the second-to-last step, and so on.
-// If index is invalid, this returns a non-nil [PathStep]
-// that reports a nil [PathStep.Type].
-func (pa Path) Index(i int) PathStep {
- if i < 0 {
- i = len(pa) + i
- }
- if i < 0 || i >= len(pa) {
- return pathStep{}
- }
- return pa[i]
-}
-
-// String returns the simplified path to a node.
-// The simplified path only contains struct field accesses.
-//
-// For example:
-//
-// MyMap.MySlices.MyField
-func (pa Path) String() string {
- var ss []string
- for _, s := range pa {
- if _, ok := s.(StructField); ok {
- ss = append(ss, s.String())
- }
- }
- return strings.TrimPrefix(strings.Join(ss, ""), ".")
-}
-
-// GoString returns the path to a specific node using Go syntax.
-//
-// For example:
-//
-// (*root.MyMap["key"].(*mypkg.MyStruct).MySlices)[2][3].MyField
-func (pa Path) GoString() string {
- var ssPre, ssPost []string
- var numIndirect int
- for i, s := range pa {
- var nextStep PathStep
- if i+1 < len(pa) {
- nextStep = pa[i+1]
- }
- switch s := s.(type) {
- case Indirect:
- numIndirect++
- pPre, pPost := "(", ")"
- switch nextStep.(type) {
- case Indirect:
- continue // Next step is indirection, so let them batch up
- case StructField:
- numIndirect-- // Automatic indirection on struct fields
- case nil:
- pPre, pPost = "", "" // Last step; no need for parenthesis
- }
- if numIndirect > 0 {
- ssPre = append(ssPre, pPre+strings.Repeat("*", numIndirect))
- ssPost = append(ssPost, pPost)
- }
- numIndirect = 0
- continue
- case Transform:
- ssPre = append(ssPre, s.trans.name+"(")
- ssPost = append(ssPost, ")")
- continue
- }
- ssPost = append(ssPost, s.String())
- }
- for i, j := 0, len(ssPre)-1; i < j; i, j = i+1, j-1 {
- ssPre[i], ssPre[j] = ssPre[j], ssPre[i]
- }
- return strings.Join(ssPre, "") + strings.Join(ssPost, "")
-}
-
-type pathStep struct {
- typ reflect.Type
- vx, vy reflect.Value
-}
-
-func (ps pathStep) Type() reflect.Type { return ps.typ }
-func (ps pathStep) Values() (vx, vy reflect.Value) { return ps.vx, ps.vy }
-func (ps pathStep) String() string {
- if ps.typ == nil {
- return ""
- }
- s := value.TypeString(ps.typ, false)
- if s == "" || strings.ContainsAny(s, "{}\n") {
- return "root" // Type too simple or complex to print
- }
- return fmt.Sprintf("{%s}", s)
-}
-
-// StructField is a [PathStep] that represents a struct field access
-// on a field called [StructField.Name].
-type StructField struct{ *structField }
-type structField struct {
- pathStep
- name string
- idx int
-
- // These fields are used for forcibly accessing an unexported field.
- // pvx, pvy, and field are only valid if unexported is true.
- unexported bool
- mayForce bool // Forcibly allow visibility
- paddr bool // Was parent addressable?
- pvx, pvy reflect.Value // Parent values (always addressable)
- field reflect.StructField // Field information
-}
-
-func (sf StructField) Type() reflect.Type { return sf.typ }
-func (sf StructField) Values() (vx, vy reflect.Value) {
- if !sf.unexported {
- return sf.vx, sf.vy // CanInterface reports true
- }
-
- // Forcibly obtain read-write access to an unexported struct field.
- if sf.mayForce {
- vx = retrieveUnexportedField(sf.pvx, sf.field, sf.paddr)
- vy = retrieveUnexportedField(sf.pvy, sf.field, sf.paddr)
- return vx, vy // CanInterface reports true
- }
- return sf.vx, sf.vy // CanInterface reports false
-}
-func (sf StructField) String() string { return fmt.Sprintf(".%s", sf.name) }
-
-// Name is the field name.
-func (sf StructField) Name() string { return sf.name }
-
-// Index is the index of the field in the parent struct type.
-// See [reflect.Type.Field].
-func (sf StructField) Index() int { return sf.idx }
-
-// SliceIndex is a [PathStep] that represents an index operation on
-// a slice or array at some index [SliceIndex.Key].
-type SliceIndex struct{ *sliceIndex }
-type sliceIndex struct {
- pathStep
- xkey, ykey int
- isSlice bool // False for reflect.Array
-}
-
-func (si SliceIndex) Type() reflect.Type { return si.typ }
-func (si SliceIndex) Values() (vx, vy reflect.Value) { return si.vx, si.vy }
-func (si SliceIndex) String() string {
- switch {
- case si.xkey == si.ykey:
- return fmt.Sprintf("[%d]", si.xkey)
- case si.ykey == -1:
- // [5->?] means "I don't know where X[5] went"
- return fmt.Sprintf("[%d->?]", si.xkey)
- case si.xkey == -1:
- // [?->3] means "I don't know where Y[3] came from"
- return fmt.Sprintf("[?->%d]", si.ykey)
- default:
- // [5->3] means "X[5] moved to Y[3]"
- return fmt.Sprintf("[%d->%d]", si.xkey, si.ykey)
- }
-}
-
-// Key is the index key; it may return -1 if in a split state
-func (si SliceIndex) Key() int {
- if si.xkey != si.ykey {
- return -1
- }
- return si.xkey
-}
-
-// SplitKeys are the indexes for indexing into slices in the
-// x and y values, respectively. These indexes may differ due to the
-// insertion or removal of an element in one of the slices, causing
-// all of the indexes to be shifted. If an index is -1, then that
-// indicates that the element does not exist in the associated slice.
-//
-// [SliceIndex.Key] is guaranteed to return -1 if and only if the indexes
-// returned by SplitKeys are not the same. SplitKeys will never return -1 for
-// both indexes.
-func (si SliceIndex) SplitKeys() (ix, iy int) { return si.xkey, si.ykey }
-
-// MapIndex is a [PathStep] that represents an index operation on a map at some index Key.
-type MapIndex struct{ *mapIndex }
-type mapIndex struct {
- pathStep
- key reflect.Value
-}
-
-func (mi MapIndex) Type() reflect.Type { return mi.typ }
-func (mi MapIndex) Values() (vx, vy reflect.Value) { return mi.vx, mi.vy }
-func (mi MapIndex) String() string { return fmt.Sprintf("[%#v]", mi.key) }
-
-// Key is the value of the map key.
-func (mi MapIndex) Key() reflect.Value { return mi.key }
-
-// Indirect is a [PathStep] that represents pointer indirection on the parent type.
-type Indirect struct{ *indirect }
-type indirect struct {
- pathStep
-}
-
-func (in Indirect) Type() reflect.Type { return in.typ }
-func (in Indirect) Values() (vx, vy reflect.Value) { return in.vx, in.vy }
-func (in Indirect) String() string { return "*" }
-
-// TypeAssertion is a [PathStep] that represents a type assertion on an interface.
-type TypeAssertion struct{ *typeAssertion }
-type typeAssertion struct {
- pathStep
-}
-
-func (ta TypeAssertion) Type() reflect.Type { return ta.typ }
-func (ta TypeAssertion) Values() (vx, vy reflect.Value) { return ta.vx, ta.vy }
-func (ta TypeAssertion) String() string { return fmt.Sprintf(".(%v)", value.TypeString(ta.typ, false)) }
-
-// Transform is a [PathStep] that represents a transformation
-// from the parent type to the current type.
-type Transform struct{ *transform }
-type transform struct {
- pathStep
- trans *transformer
-}
-
-func (tf Transform) Type() reflect.Type { return tf.typ }
-func (tf Transform) Values() (vx, vy reflect.Value) { return tf.vx, tf.vy }
-func (tf Transform) String() string { return fmt.Sprintf("%s()", tf.trans.name) }
-
-// Name is the name of the [Transformer].
-func (tf Transform) Name() string { return tf.trans.name }
-
-// Func is the function pointer to the transformer function.
-func (tf Transform) Func() reflect.Value { return tf.trans.fnc }
-
-// Option returns the originally constructed [Transformer] option.
-// The == operator can be used to detect the exact option used.
-func (tf Transform) Option() Option { return tf.trans }
-
-// pointerPath represents a dual-stack of pointers encountered when
-// recursively traversing the x and y values. This data structure supports
-// detection of cycles and determining whether the cycles are equal.
-// In Go, cycles can occur via pointers, slices, and maps.
-//
-// The pointerPath uses a map to represent a stack; where descension into a
-// pointer pushes the address onto the stack, and ascension from a pointer
-// pops the address from the stack. Thus, when traversing into a pointer from
-// reflect.Ptr, reflect.Slice element, or reflect.Map, we can detect cycles
-// by checking whether the pointer has already been visited. The cycle detection
-// uses a separate stack for the x and y values.
-//
-// If a cycle is detected we need to determine whether the two pointers
-// should be considered equal. The definition of equality chosen by Equal
-// requires two graphs to have the same structure. To determine this, both the
-// x and y values must have a cycle where the previous pointers were also
-// encountered together as a pair.
-//
-// Semantically, this is equivalent to augmenting Indirect, SliceIndex, and
-// MapIndex with pointer information for the x and y values.
-// Suppose px and py are two pointers to compare, we then search the
-// Path for whether px was ever encountered in the Path history of x, and
-// similarly so with py. If either side has a cycle, the comparison is only
-// equal if both px and py have a cycle resulting from the same PathStep.
-//
-// Using a map as a stack is more performant as we can perform cycle detection
-// in O(1) instead of O(N) where N is len(Path).
-type pointerPath struct {
- // mx is keyed by x pointers, where the value is the associated y pointer.
- mx map[value.Pointer]value.Pointer
- // my is keyed by y pointers, where the value is the associated x pointer.
- my map[value.Pointer]value.Pointer
-}
-
-func (p *pointerPath) Init() {
- p.mx = make(map[value.Pointer]value.Pointer)
- p.my = make(map[value.Pointer]value.Pointer)
-}
-
-// Push indicates intent to descend into pointers vx and vy where
-// visited reports whether either has been seen before. If visited before,
-// equal reports whether both pointers were encountered together.
-// Pop must be called if and only if the pointers were never visited.
-//
-// The pointers vx and vy must be a reflect.Ptr, reflect.Slice, or reflect.Map
-// and be non-nil.
-func (p pointerPath) Push(vx, vy reflect.Value) (equal, visited bool) {
- px := value.PointerOf(vx)
- py := value.PointerOf(vy)
- _, ok1 := p.mx[px]
- _, ok2 := p.my[py]
- if ok1 || ok2 {
- equal = p.mx[px] == py && p.my[py] == px // Pointers paired together
- return equal, true
- }
- p.mx[px] = py
- p.my[py] = px
- return false, false
-}
-
-// Pop ascends from pointers vx and vy.
-func (p pointerPath) Pop(vx, vy reflect.Value) {
- delete(p.mx, value.PointerOf(vx))
- delete(p.my, value.PointerOf(vy))
-}
-
-// isExported reports whether the identifier is exported.
-func isExported(id string) bool {
- r, _ := utf8.DecodeRuneInString(id)
- return unicode.IsUpper(r)
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/report.go b/vendor/github.com/google/go-cmp/cmp/report.go
deleted file mode 100644
index f43cd12eb..000000000
--- a/vendor/github.com/google/go-cmp/cmp/report.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2017, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-// defaultReporter implements the reporter interface.
-//
-// As Equal serially calls the PushStep, Report, and PopStep methods, the
-// defaultReporter constructs a tree-based representation of the compared value
-// and the result of each comparison (see valueNode).
-//
-// When the String method is called, the FormatDiff method transforms the
-// valueNode tree into a textNode tree, which is a tree-based representation
-// of the textual output (see textNode).
-//
-// Lastly, the textNode.String method produces the final report as a string.
-type defaultReporter struct {
- root *valueNode
- curr *valueNode
-}
-
-func (r *defaultReporter) PushStep(ps PathStep) {
- r.curr = r.curr.PushStep(ps)
- if r.root == nil {
- r.root = r.curr
- }
-}
-func (r *defaultReporter) Report(rs Result) {
- r.curr.Report(rs)
-}
-func (r *defaultReporter) PopStep() {
- r.curr = r.curr.PopStep()
-}
-
-// String provides a full report of the differences detected as a structured
-// literal in pseudo-Go syntax. String may only be called after the entire tree
-// has been traversed.
-func (r *defaultReporter) String() string {
- assert(r.root != nil && r.curr == nil)
- if r.root.NumDiff == 0 {
- return ""
- }
- ptrs := new(pointerReferences)
- text := formatOptions{}.FormatDiff(r.root, ptrs)
- resolveReferences(text)
- return text.String()
-}
-
-func assert(ok bool) {
- if !ok {
- panic("assertion failure")
- }
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/report_compare.go b/vendor/github.com/google/go-cmp/cmp/report_compare.go
deleted file mode 100644
index 2050bf6b4..000000000
--- a/vendor/github.com/google/go-cmp/cmp/report_compare.go
+++ /dev/null
@@ -1,433 +0,0 @@
-// Copyright 2019, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-import (
- "fmt"
- "reflect"
-)
-
-// numContextRecords is the number of surrounding equal records to print.
-const numContextRecords = 2
-
-type diffMode byte
-
-const (
- diffUnknown diffMode = 0
- diffIdentical diffMode = ' '
- diffRemoved diffMode = '-'
- diffInserted diffMode = '+'
-)
-
-type typeMode int
-
-const (
- // emitType always prints the type.
- emitType typeMode = iota
- // elideType never prints the type.
- elideType
- // autoType prints the type only for composite kinds
- // (i.e., structs, slices, arrays, and maps).
- autoType
-)
-
-type formatOptions struct {
- // DiffMode controls the output mode of FormatDiff.
- //
- // If diffUnknown, then produce a diff of the x and y values.
- // If diffIdentical, then emit values as if they were equal.
- // If diffRemoved, then only emit x values (ignoring y values).
- // If diffInserted, then only emit y values (ignoring x values).
- DiffMode diffMode
-
- // TypeMode controls whether to print the type for the current node.
- //
- // As a general rule of thumb, we always print the type of the next node
- // after an interface, and always elide the type of the next node after
- // a slice or map node.
- TypeMode typeMode
-
- // formatValueOptions are options specific to printing reflect.Values.
- formatValueOptions
-}
-
-func (opts formatOptions) WithDiffMode(d diffMode) formatOptions {
- opts.DiffMode = d
- return opts
-}
-func (opts formatOptions) WithTypeMode(t typeMode) formatOptions {
- opts.TypeMode = t
- return opts
-}
-func (opts formatOptions) WithVerbosity(level int) formatOptions {
- opts.VerbosityLevel = level
- opts.LimitVerbosity = true
- return opts
-}
-func (opts formatOptions) verbosity() uint {
- switch {
- case opts.VerbosityLevel < 0:
- return 0
- case opts.VerbosityLevel > 16:
- return 16 // some reasonable maximum to avoid shift overflow
- default:
- return uint(opts.VerbosityLevel)
- }
-}
-
-const maxVerbosityPreset = 6
-
-// verbosityPreset modifies the verbosity settings given an index
-// between 0 and maxVerbosityPreset, inclusive.
-func verbosityPreset(opts formatOptions, i int) formatOptions {
- opts.VerbosityLevel = int(opts.verbosity()) + 2*i
- if i > 0 {
- opts.AvoidStringer = true
- }
- if i >= maxVerbosityPreset {
- opts.PrintAddresses = true
- opts.QualifiedNames = true
- }
- return opts
-}
-
-// FormatDiff converts a valueNode tree into a textNode tree, where the later
-// is a textual representation of the differences detected in the former.
-func (opts formatOptions) FormatDiff(v *valueNode, ptrs *pointerReferences) (out textNode) {
- if opts.DiffMode == diffIdentical {
- opts = opts.WithVerbosity(1)
- } else if opts.verbosity() < 3 {
- opts = opts.WithVerbosity(3)
- }
-
- // Check whether we have specialized formatting for this node.
- // This is not necessary, but helpful for producing more readable outputs.
- if opts.CanFormatDiffSlice(v) {
- return opts.FormatDiffSlice(v)
- }
-
- var parentKind reflect.Kind
- if v.parent != nil && v.parent.TransformerName == "" {
- parentKind = v.parent.Type.Kind()
- }
-
- // For leaf nodes, format the value based on the reflect.Values alone.
- // As a special case, treat equal []byte as a leaf nodes.
- isBytes := v.Type.Kind() == reflect.Slice && v.Type.Elem() == byteType
- isEqualBytes := isBytes && v.NumDiff+v.NumIgnored+v.NumTransformed == 0
- if v.MaxDepth == 0 || isEqualBytes {
- switch opts.DiffMode {
- case diffUnknown, diffIdentical:
- // Format Equal.
- if v.NumDiff == 0 {
- outx := opts.FormatValue(v.ValueX, parentKind, ptrs)
- outy := opts.FormatValue(v.ValueY, parentKind, ptrs)
- if v.NumIgnored > 0 && v.NumSame == 0 {
- return textEllipsis
- } else if outx.Len() < outy.Len() {
- return outx
- } else {
- return outy
- }
- }
-
- // Format unequal.
- assert(opts.DiffMode == diffUnknown)
- var list textList
- outx := opts.WithTypeMode(elideType).FormatValue(v.ValueX, parentKind, ptrs)
- outy := opts.WithTypeMode(elideType).FormatValue(v.ValueY, parentKind, ptrs)
- for i := 0; i <= maxVerbosityPreset && outx != nil && outy != nil && outx.Equal(outy); i++ {
- opts2 := verbosityPreset(opts, i).WithTypeMode(elideType)
- outx = opts2.FormatValue(v.ValueX, parentKind, ptrs)
- outy = opts2.FormatValue(v.ValueY, parentKind, ptrs)
- }
- if outx != nil {
- list = append(list, textRecord{Diff: '-', Value: outx})
- }
- if outy != nil {
- list = append(list, textRecord{Diff: '+', Value: outy})
- }
- return opts.WithTypeMode(emitType).FormatType(v.Type, list)
- case diffRemoved:
- return opts.FormatValue(v.ValueX, parentKind, ptrs)
- case diffInserted:
- return opts.FormatValue(v.ValueY, parentKind, ptrs)
- default:
- panic("invalid diff mode")
- }
- }
-
- // Register slice element to support cycle detection.
- if parentKind == reflect.Slice {
- ptrRefs := ptrs.PushPair(v.ValueX, v.ValueY, opts.DiffMode, true)
- defer ptrs.Pop()
- defer func() { out = wrapTrunkReferences(ptrRefs, out) }()
- }
-
- // Descend into the child value node.
- if v.TransformerName != "" {
- out := opts.WithTypeMode(emitType).FormatDiff(v.Value, ptrs)
- out = &textWrap{Prefix: "Inverse(" + v.TransformerName + ", ", Value: out, Suffix: ")"}
- return opts.FormatType(v.Type, out)
- } else {
- switch k := v.Type.Kind(); k {
- case reflect.Struct, reflect.Array, reflect.Slice:
- out = opts.formatDiffList(v.Records, k, ptrs)
- out = opts.FormatType(v.Type, out)
- case reflect.Map:
- // Register map to support cycle detection.
- ptrRefs := ptrs.PushPair(v.ValueX, v.ValueY, opts.DiffMode, false)
- defer ptrs.Pop()
-
- out = opts.formatDiffList(v.Records, k, ptrs)
- out = wrapTrunkReferences(ptrRefs, out)
- out = opts.FormatType(v.Type, out)
- case reflect.Ptr:
- // Register pointer to support cycle detection.
- ptrRefs := ptrs.PushPair(v.ValueX, v.ValueY, opts.DiffMode, false)
- defer ptrs.Pop()
-
- out = opts.FormatDiff(v.Value, ptrs)
- out = wrapTrunkReferences(ptrRefs, out)
- out = &textWrap{Prefix: "&", Value: out}
- case reflect.Interface:
- out = opts.WithTypeMode(emitType).FormatDiff(v.Value, ptrs)
- default:
- panic(fmt.Sprintf("%v cannot have children", k))
- }
- return out
- }
-}
-
-func (opts formatOptions) formatDiffList(recs []reportRecord, k reflect.Kind, ptrs *pointerReferences) textNode {
- // Derive record name based on the data structure kind.
- var name string
- var formatKey func(reflect.Value) string
- switch k {
- case reflect.Struct:
- name = "field"
- opts = opts.WithTypeMode(autoType)
- formatKey = func(v reflect.Value) string { return v.String() }
- case reflect.Slice, reflect.Array:
- name = "element"
- opts = opts.WithTypeMode(elideType)
- formatKey = func(reflect.Value) string { return "" }
- case reflect.Map:
- name = "entry"
- opts = opts.WithTypeMode(elideType)
- formatKey = func(v reflect.Value) string { return formatMapKey(v, false, ptrs) }
- }
-
- maxLen := -1
- if opts.LimitVerbosity {
- if opts.DiffMode == diffIdentical {
- maxLen = ((1 << opts.verbosity()) >> 1) << 2 // 0, 4, 8, 16, 32, etc...
- } else {
- maxLen = (1 << opts.verbosity()) << 1 // 2, 4, 8, 16, 32, 64, etc...
- }
- opts.VerbosityLevel--
- }
-
- // Handle unification.
- switch opts.DiffMode {
- case diffIdentical, diffRemoved, diffInserted:
- var list textList
- var deferredEllipsis bool // Add final "..." to indicate records were dropped
- for _, r := range recs {
- if len(list) == maxLen {
- deferredEllipsis = true
- break
- }
-
- // Elide struct fields that are zero value.
- if k == reflect.Struct {
- var isZero bool
- switch opts.DiffMode {
- case diffIdentical:
- isZero = r.Value.ValueX.IsZero() || r.Value.ValueY.IsZero()
- case diffRemoved:
- isZero = r.Value.ValueX.IsZero()
- case diffInserted:
- isZero = r.Value.ValueY.IsZero()
- }
- if isZero {
- continue
- }
- }
- // Elide ignored nodes.
- if r.Value.NumIgnored > 0 && r.Value.NumSame+r.Value.NumDiff == 0 {
- deferredEllipsis = !(k == reflect.Slice || k == reflect.Array)
- if !deferredEllipsis {
- list.AppendEllipsis(diffStats{})
- }
- continue
- }
- if out := opts.FormatDiff(r.Value, ptrs); out != nil {
- list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
- }
- }
- if deferredEllipsis {
- list.AppendEllipsis(diffStats{})
- }
- return &textWrap{Prefix: "{", Value: list, Suffix: "}"}
- case diffUnknown:
- default:
- panic("invalid diff mode")
- }
-
- // Handle differencing.
- var numDiffs int
- var list textList
- var keys []reflect.Value // invariant: len(list) == len(keys)
- groups := coalesceAdjacentRecords(name, recs)
- maxGroup := diffStats{Name: name}
- for i, ds := range groups {
- if maxLen >= 0 && numDiffs >= maxLen {
- maxGroup = maxGroup.Append(ds)
- continue
- }
-
- // Handle equal records.
- if ds.NumDiff() == 0 {
- // Compute the number of leading and trailing records to print.
- var numLo, numHi int
- numEqual := ds.NumIgnored + ds.NumIdentical
- for numLo < numContextRecords && numLo+numHi < numEqual && i != 0 {
- if r := recs[numLo].Value; r.NumIgnored > 0 && r.NumSame+r.NumDiff == 0 {
- break
- }
- numLo++
- }
- for numHi < numContextRecords && numLo+numHi < numEqual && i != len(groups)-1 {
- if r := recs[numEqual-numHi-1].Value; r.NumIgnored > 0 && r.NumSame+r.NumDiff == 0 {
- break
- }
- numHi++
- }
- if numEqual-(numLo+numHi) == 1 && ds.NumIgnored == 0 {
- numHi++ // Avoid pointless coalescing of a single equal record
- }
-
- // Format the equal values.
- for _, r := range recs[:numLo] {
- out := opts.WithDiffMode(diffIdentical).FormatDiff(r.Value, ptrs)
- list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
- keys = append(keys, r.Key)
- }
- if numEqual > numLo+numHi {
- ds.NumIdentical -= numLo + numHi
- list.AppendEllipsis(ds)
- for len(keys) < len(list) {
- keys = append(keys, reflect.Value{})
- }
- }
- for _, r := range recs[numEqual-numHi : numEqual] {
- out := opts.WithDiffMode(diffIdentical).FormatDiff(r.Value, ptrs)
- list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
- keys = append(keys, r.Key)
- }
- recs = recs[numEqual:]
- continue
- }
-
- // Handle unequal records.
- for _, r := range recs[:ds.NumDiff()] {
- switch {
- case opts.CanFormatDiffSlice(r.Value):
- out := opts.FormatDiffSlice(r.Value)
- list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
- keys = append(keys, r.Key)
- case r.Value.NumChildren == r.Value.MaxDepth:
- outx := opts.WithDiffMode(diffRemoved).FormatDiff(r.Value, ptrs)
- outy := opts.WithDiffMode(diffInserted).FormatDiff(r.Value, ptrs)
- for i := 0; i <= maxVerbosityPreset && outx != nil && outy != nil && outx.Equal(outy); i++ {
- opts2 := verbosityPreset(opts, i)
- outx = opts2.WithDiffMode(diffRemoved).FormatDiff(r.Value, ptrs)
- outy = opts2.WithDiffMode(diffInserted).FormatDiff(r.Value, ptrs)
- }
- if outx != nil {
- list = append(list, textRecord{Diff: diffRemoved, Key: formatKey(r.Key), Value: outx})
- keys = append(keys, r.Key)
- }
- if outy != nil {
- list = append(list, textRecord{Diff: diffInserted, Key: formatKey(r.Key), Value: outy})
- keys = append(keys, r.Key)
- }
- default:
- out := opts.FormatDiff(r.Value, ptrs)
- list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
- keys = append(keys, r.Key)
- }
- }
- recs = recs[ds.NumDiff():]
- numDiffs += ds.NumDiff()
- }
- if maxGroup.IsZero() {
- assert(len(recs) == 0)
- } else {
- list.AppendEllipsis(maxGroup)
- for len(keys) < len(list) {
- keys = append(keys, reflect.Value{})
- }
- }
- assert(len(list) == len(keys))
-
- // For maps, the default formatting logic uses fmt.Stringer which may
- // produce ambiguous output. Avoid calling String to disambiguate.
- if k == reflect.Map {
- var ambiguous bool
- seenKeys := map[string]reflect.Value{}
- for i, currKey := range keys {
- if currKey.IsValid() {
- strKey := list[i].Key
- prevKey, seen := seenKeys[strKey]
- if seen && prevKey.CanInterface() && currKey.CanInterface() {
- ambiguous = prevKey.Interface() != currKey.Interface()
- if ambiguous {
- break
- }
- }
- seenKeys[strKey] = currKey
- }
- }
- if ambiguous {
- for i, k := range keys {
- if k.IsValid() {
- list[i].Key = formatMapKey(k, true, ptrs)
- }
- }
- }
- }
-
- return &textWrap{Prefix: "{", Value: list, Suffix: "}"}
-}
-
-// coalesceAdjacentRecords coalesces the list of records into groups of
-// adjacent equal, or unequal counts.
-func coalesceAdjacentRecords(name string, recs []reportRecord) (groups []diffStats) {
- var prevCase int // Arbitrary index into which case last occurred
- lastStats := func(i int) *diffStats {
- if prevCase != i {
- groups = append(groups, diffStats{Name: name})
- prevCase = i
- }
- return &groups[len(groups)-1]
- }
- for _, r := range recs {
- switch rv := r.Value; {
- case rv.NumIgnored > 0 && rv.NumSame+rv.NumDiff == 0:
- lastStats(1).NumIgnored++
- case rv.NumDiff == 0:
- lastStats(1).NumIdentical++
- case rv.NumDiff > 0 && !rv.ValueY.IsValid():
- lastStats(2).NumRemoved++
- case rv.NumDiff > 0 && !rv.ValueX.IsValid():
- lastStats(2).NumInserted++
- default:
- lastStats(2).NumModified++
- }
- }
- return groups
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/report_references.go b/vendor/github.com/google/go-cmp/cmp/report_references.go
deleted file mode 100644
index be31b33a9..000000000
--- a/vendor/github.com/google/go-cmp/cmp/report_references.go
+++ /dev/null
@@ -1,264 +0,0 @@
-// Copyright 2020, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-import (
- "fmt"
- "reflect"
- "strings"
-
- "github.com/google/go-cmp/cmp/internal/flags"
- "github.com/google/go-cmp/cmp/internal/value"
-)
-
-const (
- pointerDelimPrefix = "⟪"
- pointerDelimSuffix = "⟫"
-)
-
-// formatPointer prints the address of the pointer.
-func formatPointer(p value.Pointer, withDelims bool) string {
- v := p.Uintptr()
- if flags.Deterministic {
- v = 0xdeadf00f // Only used for stable testing purposes
- }
- if withDelims {
- return pointerDelimPrefix + formatHex(uint64(v)) + pointerDelimSuffix
- }
- return formatHex(uint64(v))
-}
-
-// pointerReferences is a stack of pointers visited so far.
-type pointerReferences [][2]value.Pointer
-
-func (ps *pointerReferences) PushPair(vx, vy reflect.Value, d diffMode, deref bool) (pp [2]value.Pointer) {
- if deref && vx.IsValid() {
- vx = vx.Addr()
- }
- if deref && vy.IsValid() {
- vy = vy.Addr()
- }
- switch d {
- case diffUnknown, diffIdentical:
- pp = [2]value.Pointer{value.PointerOf(vx), value.PointerOf(vy)}
- case diffRemoved:
- pp = [2]value.Pointer{value.PointerOf(vx), value.Pointer{}}
- case diffInserted:
- pp = [2]value.Pointer{value.Pointer{}, value.PointerOf(vy)}
- }
- *ps = append(*ps, pp)
- return pp
-}
-
-func (ps *pointerReferences) Push(v reflect.Value) (p value.Pointer, seen bool) {
- p = value.PointerOf(v)
- for _, pp := range *ps {
- if p == pp[0] || p == pp[1] {
- return p, true
- }
- }
- *ps = append(*ps, [2]value.Pointer{p, p})
- return p, false
-}
-
-func (ps *pointerReferences) Pop() {
- *ps = (*ps)[:len(*ps)-1]
-}
-
-// trunkReferences is metadata for a textNode indicating that the sub-tree
-// represents the value for either pointer in a pair of references.
-type trunkReferences struct{ pp [2]value.Pointer }
-
-// trunkReference is metadata for a textNode indicating that the sub-tree
-// represents the value for the given pointer reference.
-type trunkReference struct{ p value.Pointer }
-
-// leafReference is metadata for a textNode indicating that the value is
-// truncated as it refers to another part of the tree (i.e., a trunk).
-type leafReference struct{ p value.Pointer }
-
-func wrapTrunkReferences(pp [2]value.Pointer, s textNode) textNode {
- switch {
- case pp[0].IsNil():
- return &textWrap{Value: s, Metadata: trunkReference{pp[1]}}
- case pp[1].IsNil():
- return &textWrap{Value: s, Metadata: trunkReference{pp[0]}}
- case pp[0] == pp[1]:
- return &textWrap{Value: s, Metadata: trunkReference{pp[0]}}
- default:
- return &textWrap{Value: s, Metadata: trunkReferences{pp}}
- }
-}
-func wrapTrunkReference(p value.Pointer, printAddress bool, s textNode) textNode {
- var prefix string
- if printAddress {
- prefix = formatPointer(p, true)
- }
- return &textWrap{Prefix: prefix, Value: s, Metadata: trunkReference{p}}
-}
-func makeLeafReference(p value.Pointer, printAddress bool) textNode {
- out := &textWrap{Prefix: "(", Value: textEllipsis, Suffix: ")"}
- var prefix string
- if printAddress {
- prefix = formatPointer(p, true)
- }
- return &textWrap{Prefix: prefix, Value: out, Metadata: leafReference{p}}
-}
-
-// resolveReferences walks the textNode tree searching for any leaf reference
-// metadata and resolves each against the corresponding trunk references.
-// Since pointer addresses in memory are not particularly readable to the user,
-// it replaces each pointer value with an arbitrary and unique reference ID.
-func resolveReferences(s textNode) {
- var walkNodes func(textNode, func(textNode))
- walkNodes = func(s textNode, f func(textNode)) {
- f(s)
- switch s := s.(type) {
- case *textWrap:
- walkNodes(s.Value, f)
- case textList:
- for _, r := range s {
- walkNodes(r.Value, f)
- }
- }
- }
-
- // Collect all trunks and leaves with reference metadata.
- var trunks, leaves []*textWrap
- walkNodes(s, func(s textNode) {
- if s, ok := s.(*textWrap); ok {
- switch s.Metadata.(type) {
- case leafReference:
- leaves = append(leaves, s)
- case trunkReference, trunkReferences:
- trunks = append(trunks, s)
- }
- }
- })
-
- // No leaf references to resolve.
- if len(leaves) == 0 {
- return
- }
-
- // Collect the set of all leaf references to resolve.
- leafPtrs := make(map[value.Pointer]bool)
- for _, leaf := range leaves {
- leafPtrs[leaf.Metadata.(leafReference).p] = true
- }
-
- // Collect the set of trunk pointers that are always paired together.
- // This allows us to assign a single ID to both pointers for brevity.
- // If a pointer in a pair ever occurs by itself or as a different pair,
- // then the pair is broken.
- pairedTrunkPtrs := make(map[value.Pointer]value.Pointer)
- unpair := func(p value.Pointer) {
- if !pairedTrunkPtrs[p].IsNil() {
- pairedTrunkPtrs[pairedTrunkPtrs[p]] = value.Pointer{} // invalidate other half
- }
- pairedTrunkPtrs[p] = value.Pointer{} // invalidate this half
- }
- for _, trunk := range trunks {
- switch p := trunk.Metadata.(type) {
- case trunkReference:
- unpair(p.p) // standalone pointer cannot be part of a pair
- case trunkReferences:
- p0, ok0 := pairedTrunkPtrs[p.pp[0]]
- p1, ok1 := pairedTrunkPtrs[p.pp[1]]
- switch {
- case !ok0 && !ok1:
- // Register the newly seen pair.
- pairedTrunkPtrs[p.pp[0]] = p.pp[1]
- pairedTrunkPtrs[p.pp[1]] = p.pp[0]
- case ok0 && ok1 && p0 == p.pp[1] && p1 == p.pp[0]:
- // Exact pair already seen; do nothing.
- default:
- // Pair conflicts with some other pair; break all pairs.
- unpair(p.pp[0])
- unpair(p.pp[1])
- }
- }
- }
-
- // Correlate each pointer referenced by leaves to a unique identifier,
- // and print the IDs for each trunk that matches those pointers.
- var nextID uint
- ptrIDs := make(map[value.Pointer]uint)
- newID := func() uint {
- id := nextID
- nextID++
- return id
- }
- for _, trunk := range trunks {
- switch p := trunk.Metadata.(type) {
- case trunkReference:
- if print := leafPtrs[p.p]; print {
- id, ok := ptrIDs[p.p]
- if !ok {
- id = newID()
- ptrIDs[p.p] = id
- }
- trunk.Prefix = updateReferencePrefix(trunk.Prefix, formatReference(id))
- }
- case trunkReferences:
- print0 := leafPtrs[p.pp[0]]
- print1 := leafPtrs[p.pp[1]]
- if print0 || print1 {
- id0, ok0 := ptrIDs[p.pp[0]]
- id1, ok1 := ptrIDs[p.pp[1]]
- isPair := pairedTrunkPtrs[p.pp[0]] == p.pp[1] && pairedTrunkPtrs[p.pp[1]] == p.pp[0]
- if isPair {
- var id uint
- assert(ok0 == ok1) // must be seen together or not at all
- if ok0 {
- assert(id0 == id1) // must have the same ID
- id = id0
- } else {
- id = newID()
- ptrIDs[p.pp[0]] = id
- ptrIDs[p.pp[1]] = id
- }
- trunk.Prefix = updateReferencePrefix(trunk.Prefix, formatReference(id))
- } else {
- if print0 && !ok0 {
- id0 = newID()
- ptrIDs[p.pp[0]] = id0
- }
- if print1 && !ok1 {
- id1 = newID()
- ptrIDs[p.pp[1]] = id1
- }
- switch {
- case print0 && print1:
- trunk.Prefix = updateReferencePrefix(trunk.Prefix, formatReference(id0)+","+formatReference(id1))
- case print0:
- trunk.Prefix = updateReferencePrefix(trunk.Prefix, formatReference(id0))
- case print1:
- trunk.Prefix = updateReferencePrefix(trunk.Prefix, formatReference(id1))
- }
- }
- }
- }
- }
-
- // Update all leaf references with the unique identifier.
- for _, leaf := range leaves {
- if id, ok := ptrIDs[leaf.Metadata.(leafReference).p]; ok {
- leaf.Prefix = updateReferencePrefix(leaf.Prefix, formatReference(id))
- }
- }
-}
-
-func formatReference(id uint) string {
- return fmt.Sprintf("ref#%d", id)
-}
-
-func updateReferencePrefix(prefix, ref string) string {
- if prefix == "" {
- return pointerDelimPrefix + ref + pointerDelimSuffix
- }
- suffix := strings.TrimPrefix(prefix, pointerDelimPrefix)
- return pointerDelimPrefix + ref + ": " + suffix
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/report_reflect.go b/vendor/github.com/google/go-cmp/cmp/report_reflect.go
deleted file mode 100644
index e39f42284..000000000
--- a/vendor/github.com/google/go-cmp/cmp/report_reflect.go
+++ /dev/null
@@ -1,414 +0,0 @@
-// Copyright 2019, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-import (
- "bytes"
- "fmt"
- "reflect"
- "strconv"
- "strings"
- "unicode"
- "unicode/utf8"
-
- "github.com/google/go-cmp/cmp/internal/value"
-)
-
-var (
- anyType = reflect.TypeOf((*interface{})(nil)).Elem()
- stringType = reflect.TypeOf((*string)(nil)).Elem()
- bytesType = reflect.TypeOf((*[]byte)(nil)).Elem()
- byteType = reflect.TypeOf((*byte)(nil)).Elem()
-)
-
-type formatValueOptions struct {
- // AvoidStringer controls whether to avoid calling custom stringer
- // methods like error.Error or fmt.Stringer.String.
- AvoidStringer bool
-
- // PrintAddresses controls whether to print the address of all pointers,
- // slice elements, and maps.
- PrintAddresses bool
-
- // QualifiedNames controls whether FormatType uses the fully qualified name
- // (including the full package path as opposed to just the package name).
- QualifiedNames bool
-
- // VerbosityLevel controls the amount of output to produce.
- // A higher value produces more output. A value of zero or lower produces
- // no output (represented using an ellipsis).
- // If LimitVerbosity is false, then the level is treated as infinite.
- VerbosityLevel int
-
- // LimitVerbosity specifies that formatting should respect VerbosityLevel.
- LimitVerbosity bool
-}
-
-// FormatType prints the type as if it were wrapping s.
-// This may return s as-is depending on the current type and TypeMode mode.
-func (opts formatOptions) FormatType(t reflect.Type, s textNode) textNode {
- // Check whether to emit the type or not.
- switch opts.TypeMode {
- case autoType:
- switch t.Kind() {
- case reflect.Struct, reflect.Slice, reflect.Array, reflect.Map:
- if s.Equal(textNil) {
- return s
- }
- default:
- return s
- }
- if opts.DiffMode == diffIdentical {
- return s // elide type for identical nodes
- }
- case elideType:
- return s
- }
-
- // Determine the type label, applying special handling for unnamed types.
- typeName := value.TypeString(t, opts.QualifiedNames)
- if t.Name() == "" {
- // According to Go grammar, certain type literals contain symbols that
- // do not strongly bind to the next lexicographical token (e.g., *T).
- switch t.Kind() {
- case reflect.Chan, reflect.Func, reflect.Ptr:
- typeName = "(" + typeName + ")"
- }
- }
- return &textWrap{Prefix: typeName, Value: wrapParens(s)}
-}
-
-// wrapParens wraps s with a set of parenthesis, but avoids it if the
-// wrapped node itself is already surrounded by a pair of parenthesis or braces.
-// It handles unwrapping one level of pointer-reference nodes.
-func wrapParens(s textNode) textNode {
- var refNode *textWrap
- if s2, ok := s.(*textWrap); ok {
- // Unwrap a single pointer reference node.
- switch s2.Metadata.(type) {
- case leafReference, trunkReference, trunkReferences:
- refNode = s2
- if s3, ok := refNode.Value.(*textWrap); ok {
- s2 = s3
- }
- }
-
- // Already has delimiters that make parenthesis unnecessary.
- hasParens := strings.HasPrefix(s2.Prefix, "(") && strings.HasSuffix(s2.Suffix, ")")
- hasBraces := strings.HasPrefix(s2.Prefix, "{") && strings.HasSuffix(s2.Suffix, "}")
- if hasParens || hasBraces {
- return s
- }
- }
- if refNode != nil {
- refNode.Value = &textWrap{Prefix: "(", Value: refNode.Value, Suffix: ")"}
- return s
- }
- return &textWrap{Prefix: "(", Value: s, Suffix: ")"}
-}
-
-// FormatValue prints the reflect.Value, taking extra care to avoid descending
-// into pointers already in ptrs. As pointers are visited, ptrs is also updated.
-func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, ptrs *pointerReferences) (out textNode) {
- if !v.IsValid() {
- return nil
- }
- t := v.Type()
-
- // Check slice element for cycles.
- if parentKind == reflect.Slice {
- ptrRef, visited := ptrs.Push(v.Addr())
- if visited {
- return makeLeafReference(ptrRef, false)
- }
- defer ptrs.Pop()
- defer func() { out = wrapTrunkReference(ptrRef, false, out) }()
- }
-
- // Check whether there is an Error or String method to call.
- if !opts.AvoidStringer && v.CanInterface() {
- // Avoid calling Error or String methods on nil receivers since many
- // implementations crash when doing so.
- if (t.Kind() != reflect.Ptr && t.Kind() != reflect.Interface) || !v.IsNil() {
- var prefix, strVal string
- func() {
- // Swallow and ignore any panics from String or Error.
- defer func() { recover() }()
- switch v := v.Interface().(type) {
- case error:
- strVal = v.Error()
- prefix = "e"
- case fmt.Stringer:
- strVal = v.String()
- prefix = "s"
- }
- }()
- if prefix != "" {
- return opts.formatString(prefix, strVal)
- }
- }
- }
-
- // Check whether to explicitly wrap the result with the type.
- var skipType bool
- defer func() {
- if !skipType {
- out = opts.FormatType(t, out)
- }
- }()
-
- switch t.Kind() {
- case reflect.Bool:
- return textLine(fmt.Sprint(v.Bool()))
- case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
- return textLine(fmt.Sprint(v.Int()))
- case reflect.Uint, reflect.Uint16, reflect.Uint32, reflect.Uint64:
- return textLine(fmt.Sprint(v.Uint()))
- case reflect.Uint8:
- if parentKind == reflect.Slice || parentKind == reflect.Array {
- return textLine(formatHex(v.Uint()))
- }
- return textLine(fmt.Sprint(v.Uint()))
- case reflect.Uintptr:
- return textLine(formatHex(v.Uint()))
- case reflect.Float32, reflect.Float64:
- return textLine(fmt.Sprint(v.Float()))
- case reflect.Complex64, reflect.Complex128:
- return textLine(fmt.Sprint(v.Complex()))
- case reflect.String:
- return opts.formatString("", v.String())
- case reflect.UnsafePointer, reflect.Chan, reflect.Func:
- return textLine(formatPointer(value.PointerOf(v), true))
- case reflect.Struct:
- var list textList
- v := makeAddressable(v) // needed for retrieveUnexportedField
- maxLen := v.NumField()
- if opts.LimitVerbosity {
- maxLen = ((1 << opts.verbosity()) >> 1) << 2 // 0, 4, 8, 16, 32, etc...
- opts.VerbosityLevel--
- }
- for i := 0; i < v.NumField(); i++ {
- vv := v.Field(i)
- if vv.IsZero() {
- continue // Elide fields with zero values
- }
- if len(list) == maxLen {
- list.AppendEllipsis(diffStats{})
- break
- }
- sf := t.Field(i)
- if !isExported(sf.Name) {
- vv = retrieveUnexportedField(v, sf, true)
- }
- s := opts.WithTypeMode(autoType).FormatValue(vv, t.Kind(), ptrs)
- list = append(list, textRecord{Key: sf.Name, Value: s})
- }
- return &textWrap{Prefix: "{", Value: list, Suffix: "}"}
- case reflect.Slice:
- if v.IsNil() {
- return textNil
- }
-
- // Check whether this is a []byte of text data.
- if t.Elem() == byteType {
- b := v.Bytes()
- isPrintSpace := func(r rune) bool { return unicode.IsPrint(r) || unicode.IsSpace(r) }
- if len(b) > 0 && utf8.Valid(b) && len(bytes.TrimFunc(b, isPrintSpace)) == 0 {
- out = opts.formatString("", string(b))
- skipType = true
- return opts.FormatType(t, out)
- }
- }
-
- fallthrough
- case reflect.Array:
- maxLen := v.Len()
- if opts.LimitVerbosity {
- maxLen = ((1 << opts.verbosity()) >> 1) << 2 // 0, 4, 8, 16, 32, etc...
- opts.VerbosityLevel--
- }
- var list textList
- for i := 0; i < v.Len(); i++ {
- if len(list) == maxLen {
- list.AppendEllipsis(diffStats{})
- break
- }
- s := opts.WithTypeMode(elideType).FormatValue(v.Index(i), t.Kind(), ptrs)
- list = append(list, textRecord{Value: s})
- }
-
- out = &textWrap{Prefix: "{", Value: list, Suffix: "}"}
- if t.Kind() == reflect.Slice && opts.PrintAddresses {
- header := fmt.Sprintf("ptr:%v, len:%d, cap:%d", formatPointer(value.PointerOf(v), false), v.Len(), v.Cap())
- out = &textWrap{Prefix: pointerDelimPrefix + header + pointerDelimSuffix, Value: out}
- }
- return out
- case reflect.Map:
- if v.IsNil() {
- return textNil
- }
-
- // Check pointer for cycles.
- ptrRef, visited := ptrs.Push(v)
- if visited {
- return makeLeafReference(ptrRef, opts.PrintAddresses)
- }
- defer ptrs.Pop()
-
- maxLen := v.Len()
- if opts.LimitVerbosity {
- maxLen = ((1 << opts.verbosity()) >> 1) << 2 // 0, 4, 8, 16, 32, etc...
- opts.VerbosityLevel--
- }
- var list textList
- for _, k := range value.SortKeys(v.MapKeys()) {
- if len(list) == maxLen {
- list.AppendEllipsis(diffStats{})
- break
- }
- sk := formatMapKey(k, false, ptrs)
- sv := opts.WithTypeMode(elideType).FormatValue(v.MapIndex(k), t.Kind(), ptrs)
- list = append(list, textRecord{Key: sk, Value: sv})
- }
-
- out = &textWrap{Prefix: "{", Value: list, Suffix: "}"}
- out = wrapTrunkReference(ptrRef, opts.PrintAddresses, out)
- return out
- case reflect.Ptr:
- if v.IsNil() {
- return textNil
- }
-
- // Check pointer for cycles.
- ptrRef, visited := ptrs.Push(v)
- if visited {
- out = makeLeafReference(ptrRef, opts.PrintAddresses)
- return &textWrap{Prefix: "&", Value: out}
- }
- defer ptrs.Pop()
-
- // Skip the name only if this is an unnamed pointer type.
- // Otherwise taking the address of a value does not reproduce
- // the named pointer type.
- if v.Type().Name() == "" {
- skipType = true // Let the underlying value print the type instead
- }
- out = opts.FormatValue(v.Elem(), t.Kind(), ptrs)
- out = wrapTrunkReference(ptrRef, opts.PrintAddresses, out)
- out = &textWrap{Prefix: "&", Value: out}
- return out
- case reflect.Interface:
- if v.IsNil() {
- return textNil
- }
- // Interfaces accept different concrete types,
- // so configure the underlying value to explicitly print the type.
- return opts.WithTypeMode(emitType).FormatValue(v.Elem(), t.Kind(), ptrs)
- default:
- panic(fmt.Sprintf("%v kind not handled", v.Kind()))
- }
-}
-
-func (opts formatOptions) formatString(prefix, s string) textNode {
- maxLen := len(s)
- maxLines := strings.Count(s, "\n") + 1
- if opts.LimitVerbosity {
- maxLen = (1 << opts.verbosity()) << 5 // 32, 64, 128, 256, etc...
- maxLines = (1 << opts.verbosity()) << 2 // 4, 8, 16, 32, 64, etc...
- }
-
- // For multiline strings, use the triple-quote syntax,
- // but only use it when printing removed or inserted nodes since
- // we only want the extra verbosity for those cases.
- lines := strings.Split(strings.TrimSuffix(s, "\n"), "\n")
- isTripleQuoted := len(lines) >= 4 && (opts.DiffMode == '-' || opts.DiffMode == '+')
- for i := 0; i < len(lines) && isTripleQuoted; i++ {
- lines[i] = strings.TrimPrefix(strings.TrimSuffix(lines[i], "\r"), "\r") // trim leading/trailing carriage returns for legacy Windows endline support
- isPrintable := func(r rune) bool {
- return unicode.IsPrint(r) || r == '\t' // specially treat tab as printable
- }
- line := lines[i]
- isTripleQuoted = !strings.HasPrefix(strings.TrimPrefix(line, prefix), `"""`) && !strings.HasPrefix(line, "...") && strings.TrimFunc(line, isPrintable) == "" && len(line) <= maxLen
- }
- if isTripleQuoted {
- var list textList
- list = append(list, textRecord{Diff: opts.DiffMode, Value: textLine(prefix + `"""`), ElideComma: true})
- for i, line := range lines {
- if numElided := len(lines) - i; i == maxLines-1 && numElided > 1 {
- comment := commentString(fmt.Sprintf("%d elided lines", numElided))
- list = append(list, textRecord{Diff: opts.DiffMode, Value: textEllipsis, ElideComma: true, Comment: comment})
- break
- }
- list = append(list, textRecord{Diff: opts.DiffMode, Value: textLine(line), ElideComma: true})
- }
- list = append(list, textRecord{Diff: opts.DiffMode, Value: textLine(prefix + `"""`), ElideComma: true})
- return &textWrap{Prefix: "(", Value: list, Suffix: ")"}
- }
-
- // Format the string as a single-line quoted string.
- if len(s) > maxLen+len(textEllipsis) {
- return textLine(prefix + formatString(s[:maxLen]) + string(textEllipsis))
- }
- return textLine(prefix + formatString(s))
-}
-
-// formatMapKey formats v as if it were a map key.
-// The result is guaranteed to be a single line.
-func formatMapKey(v reflect.Value, disambiguate bool, ptrs *pointerReferences) string {
- var opts formatOptions
- opts.DiffMode = diffIdentical
- opts.TypeMode = elideType
- opts.PrintAddresses = disambiguate
- opts.AvoidStringer = disambiguate
- opts.QualifiedNames = disambiguate
- opts.VerbosityLevel = maxVerbosityPreset
- opts.LimitVerbosity = true
- s := opts.FormatValue(v, reflect.Map, ptrs).String()
- return strings.TrimSpace(s)
-}
-
-// formatString prints s as a double-quoted or backtick-quoted string.
-func formatString(s string) string {
- // Use quoted string if it the same length as a raw string literal.
- // Otherwise, attempt to use the raw string form.
- qs := strconv.Quote(s)
- if len(qs) == 1+len(s)+1 {
- return qs
- }
-
- // Disallow newlines to ensure output is a single line.
- // Only allow printable runes for readability purposes.
- rawInvalid := func(r rune) bool {
- return r == '`' || r == '\n' || !(unicode.IsPrint(r) || r == '\t')
- }
- if utf8.ValidString(s) && strings.IndexFunc(s, rawInvalid) < 0 {
- return "`" + s + "`"
- }
- return qs
-}
-
-// formatHex prints u as a hexadecimal integer in Go notation.
-func formatHex(u uint64) string {
- var f string
- switch {
- case u <= 0xff:
- f = "0x%02x"
- case u <= 0xffff:
- f = "0x%04x"
- case u <= 0xffffff:
- f = "0x%06x"
- case u <= 0xffffffff:
- f = "0x%08x"
- case u <= 0xffffffffff:
- f = "0x%010x"
- case u <= 0xffffffffffff:
- f = "0x%012x"
- case u <= 0xffffffffffffff:
- f = "0x%014x"
- case u <= 0xffffffffffffffff:
- f = "0x%016x"
- }
- return fmt.Sprintf(f, u)
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/report_slices.go b/vendor/github.com/google/go-cmp/cmp/report_slices.go
deleted file mode 100644
index 23e444f62..000000000
--- a/vendor/github.com/google/go-cmp/cmp/report_slices.go
+++ /dev/null
@@ -1,614 +0,0 @@
-// Copyright 2019, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-import (
- "bytes"
- "fmt"
- "math"
- "reflect"
- "strconv"
- "strings"
- "unicode"
- "unicode/utf8"
-
- "github.com/google/go-cmp/cmp/internal/diff"
-)
-
-// CanFormatDiffSlice reports whether we support custom formatting for nodes
-// that are slices of primitive kinds or strings.
-func (opts formatOptions) CanFormatDiffSlice(v *valueNode) bool {
- switch {
- case opts.DiffMode != diffUnknown:
- return false // Must be formatting in diff mode
- case v.NumDiff == 0:
- return false // No differences detected
- case !v.ValueX.IsValid() || !v.ValueY.IsValid():
- return false // Both values must be valid
- case v.NumIgnored > 0:
- return false // Some ignore option was used
- case v.NumTransformed > 0:
- return false // Some transform option was used
- case v.NumCompared > 1:
- return false // More than one comparison was used
- case v.NumCompared == 1 && v.Type.Name() != "":
- // The need for cmp to check applicability of options on every element
- // in a slice is a significant performance detriment for large []byte.
- // The workaround is to specify Comparer(bytes.Equal),
- // which enables cmp to compare []byte more efficiently.
- // If they differ, we still want to provide batched diffing.
- // The logic disallows named types since they tend to have their own
- // String method, with nicer formatting than what this provides.
- return false
- }
-
- // Check whether this is an interface with the same concrete types.
- t := v.Type
- vx, vy := v.ValueX, v.ValueY
- if t.Kind() == reflect.Interface && !vx.IsNil() && !vy.IsNil() && vx.Elem().Type() == vy.Elem().Type() {
- vx, vy = vx.Elem(), vy.Elem()
- t = vx.Type()
- }
-
- // Check whether we provide specialized diffing for this type.
- switch t.Kind() {
- case reflect.String:
- case reflect.Array, reflect.Slice:
- // Only slices of primitive types have specialized handling.
- switch t.Elem().Kind() {
- case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
- reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr,
- reflect.Bool, reflect.Float32, reflect.Float64, reflect.Complex64, reflect.Complex128:
- default:
- return false
- }
-
- // Both slice values have to be non-empty.
- if t.Kind() == reflect.Slice && (vx.Len() == 0 || vy.Len() == 0) {
- return false
- }
-
- // If a sufficient number of elements already differ,
- // use specialized formatting even if length requirement is not met.
- if v.NumDiff > v.NumSame {
- return true
- }
- default:
- return false
- }
-
- // Use specialized string diffing for longer slices or strings.
- const minLength = 32
- return vx.Len() >= minLength && vy.Len() >= minLength
-}
-
-// FormatDiffSlice prints a diff for the slices (or strings) represented by v.
-// This provides custom-tailored logic to make printing of differences in
-// textual strings and slices of primitive kinds more readable.
-func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode {
- assert(opts.DiffMode == diffUnknown)
- t, vx, vy := v.Type, v.ValueX, v.ValueY
- if t.Kind() == reflect.Interface {
- vx, vy = vx.Elem(), vy.Elem()
- t = vx.Type()
- opts = opts.WithTypeMode(emitType)
- }
-
- // Auto-detect the type of the data.
- var sx, sy string
- var ssx, ssy []string
- var isString, isMostlyText, isPureLinedText, isBinary bool
- switch {
- case t.Kind() == reflect.String:
- sx, sy = vx.String(), vy.String()
- isString = true
- case t.Kind() == reflect.Slice && t.Elem() == byteType:
- sx, sy = string(vx.Bytes()), string(vy.Bytes())
- isString = true
- case t.Kind() == reflect.Array:
- // Arrays need to be addressable for slice operations to work.
- vx2, vy2 := reflect.New(t).Elem(), reflect.New(t).Elem()
- vx2.Set(vx)
- vy2.Set(vy)
- vx, vy = vx2, vy2
- }
- if isString {
- var numTotalRunes, numValidRunes, numLines, lastLineIdx, maxLineLen int
- for i, r := range sx + sy {
- numTotalRunes++
- if (unicode.IsPrint(r) || unicode.IsSpace(r)) && r != utf8.RuneError {
- numValidRunes++
- }
- if r == '\n' {
- if maxLineLen < i-lastLineIdx {
- maxLineLen = i - lastLineIdx
- }
- lastLineIdx = i + 1
- numLines++
- }
- }
- isPureText := numValidRunes == numTotalRunes
- isMostlyText = float64(numValidRunes) > math.Floor(0.90*float64(numTotalRunes))
- isPureLinedText = isPureText && numLines >= 4 && maxLineLen <= 1024
- isBinary = !isMostlyText
-
- // Avoid diffing by lines if it produces a significantly more complex
- // edit script than diffing by bytes.
- if isPureLinedText {
- ssx = strings.Split(sx, "\n")
- ssy = strings.Split(sy, "\n")
- esLines := diff.Difference(len(ssx), len(ssy), func(ix, iy int) diff.Result {
- return diff.BoolResult(ssx[ix] == ssy[iy])
- })
- esBytes := diff.Difference(len(sx), len(sy), func(ix, iy int) diff.Result {
- return diff.BoolResult(sx[ix] == sy[iy])
- })
- efficiencyLines := float64(esLines.Dist()) / float64(len(esLines))
- efficiencyBytes := float64(esBytes.Dist()) / float64(len(esBytes))
- quotedLength := len(strconv.Quote(sx + sy))
- unquotedLength := len(sx) + len(sy)
- escapeExpansionRatio := float64(quotedLength) / float64(unquotedLength)
- isPureLinedText = efficiencyLines < 4*efficiencyBytes || escapeExpansionRatio > 1.1
- }
- }
-
- // Format the string into printable records.
- var list textList
- var delim string
- switch {
- // If the text appears to be multi-lined text,
- // then perform differencing across individual lines.
- case isPureLinedText:
- list = opts.formatDiffSlice(
- reflect.ValueOf(ssx), reflect.ValueOf(ssy), 1, "line",
- func(v reflect.Value, d diffMode) textRecord {
- s := formatString(v.Index(0).String())
- return textRecord{Diff: d, Value: textLine(s)}
- },
- )
- delim = "\n"
-
- // If possible, use a custom triple-quote (""") syntax for printing
- // differences in a string literal. This format is more readable,
- // but has edge-cases where differences are visually indistinguishable.
- // This format is avoided under the following conditions:
- // - A line starts with `"""`
- // - A line starts with "..."
- // - A line contains non-printable characters
- // - Adjacent different lines differ only by whitespace
- //
- // For example:
- //
- // """
- // ... // 3 identical lines
- // foo
- // bar
- // - baz
- // + BAZ
- // """
- isTripleQuoted := true
- prevRemoveLines := map[string]bool{}
- prevInsertLines := map[string]bool{}
- var list2 textList
- list2 = append(list2, textRecord{Value: textLine(`"""`), ElideComma: true})
- for _, r := range list {
- if !r.Value.Equal(textEllipsis) {
- line, _ := strconv.Unquote(string(r.Value.(textLine)))
- line = strings.TrimPrefix(strings.TrimSuffix(line, "\r"), "\r") // trim leading/trailing carriage returns for legacy Windows endline support
- normLine := strings.Map(func(r rune) rune {
- if unicode.IsSpace(r) {
- return -1 // drop whitespace to avoid visually indistinguishable output
- }
- return r
- }, line)
- isPrintable := func(r rune) bool {
- return unicode.IsPrint(r) || r == '\t' // specially treat tab as printable
- }
- isTripleQuoted = !strings.HasPrefix(line, `"""`) && !strings.HasPrefix(line, "...") && strings.TrimFunc(line, isPrintable) == ""
- switch r.Diff {
- case diffRemoved:
- isTripleQuoted = isTripleQuoted && !prevInsertLines[normLine]
- prevRemoveLines[normLine] = true
- case diffInserted:
- isTripleQuoted = isTripleQuoted && !prevRemoveLines[normLine]
- prevInsertLines[normLine] = true
- }
- if !isTripleQuoted {
- break
- }
- r.Value = textLine(line)
- r.ElideComma = true
- }
- if !(r.Diff == diffRemoved || r.Diff == diffInserted) { // start a new non-adjacent difference group
- prevRemoveLines = map[string]bool{}
- prevInsertLines = map[string]bool{}
- }
- list2 = append(list2, r)
- }
- if r := list2[len(list2)-1]; r.Diff == diffIdentical && len(r.Value.(textLine)) == 0 {
- list2 = list2[:len(list2)-1] // elide single empty line at the end
- }
- list2 = append(list2, textRecord{Value: textLine(`"""`), ElideComma: true})
- if isTripleQuoted {
- var out textNode = &textWrap{Prefix: "(", Value: list2, Suffix: ")"}
- switch t.Kind() {
- case reflect.String:
- if t != stringType {
- out = opts.FormatType(t, out)
- }
- case reflect.Slice:
- // Always emit type for slices since the triple-quote syntax
- // looks like a string (not a slice).
- opts = opts.WithTypeMode(emitType)
- out = opts.FormatType(t, out)
- }
- return out
- }
-
- // If the text appears to be single-lined text,
- // then perform differencing in approximately fixed-sized chunks.
- // The output is printed as quoted strings.
- case isMostlyText:
- list = opts.formatDiffSlice(
- reflect.ValueOf(sx), reflect.ValueOf(sy), 64, "byte",
- func(v reflect.Value, d diffMode) textRecord {
- s := formatString(v.String())
- return textRecord{Diff: d, Value: textLine(s)}
- },
- )
-
- // If the text appears to be binary data,
- // then perform differencing in approximately fixed-sized chunks.
- // The output is inspired by hexdump.
- case isBinary:
- list = opts.formatDiffSlice(
- reflect.ValueOf(sx), reflect.ValueOf(sy), 16, "byte",
- func(v reflect.Value, d diffMode) textRecord {
- var ss []string
- for i := 0; i < v.Len(); i++ {
- ss = append(ss, formatHex(v.Index(i).Uint()))
- }
- s := strings.Join(ss, ", ")
- comment := commentString(fmt.Sprintf("%c|%v|", d, formatASCII(v.String())))
- return textRecord{Diff: d, Value: textLine(s), Comment: comment}
- },
- )
-
- // For all other slices of primitive types,
- // then perform differencing in approximately fixed-sized chunks.
- // The size of each chunk depends on the width of the element kind.
- default:
- var chunkSize int
- if t.Elem().Kind() == reflect.Bool {
- chunkSize = 16
- } else {
- switch t.Elem().Bits() {
- case 8:
- chunkSize = 16
- case 16:
- chunkSize = 12
- case 32:
- chunkSize = 8
- default:
- chunkSize = 8
- }
- }
- list = opts.formatDiffSlice(
- vx, vy, chunkSize, t.Elem().Kind().String(),
- func(v reflect.Value, d diffMode) textRecord {
- var ss []string
- for i := 0; i < v.Len(); i++ {
- switch t.Elem().Kind() {
- case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
- ss = append(ss, fmt.Sprint(v.Index(i).Int()))
- case reflect.Uint, reflect.Uint16, reflect.Uint32, reflect.Uint64:
- ss = append(ss, fmt.Sprint(v.Index(i).Uint()))
- case reflect.Uint8, reflect.Uintptr:
- ss = append(ss, formatHex(v.Index(i).Uint()))
- case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Complex64, reflect.Complex128:
- ss = append(ss, fmt.Sprint(v.Index(i).Interface()))
- }
- }
- s := strings.Join(ss, ", ")
- return textRecord{Diff: d, Value: textLine(s)}
- },
- )
- }
-
- // Wrap the output with appropriate type information.
- var out textNode = &textWrap{Prefix: "{", Value: list, Suffix: "}"}
- if !isMostlyText {
- // The "{...}" byte-sequence literal is not valid Go syntax for strings.
- // Emit the type for extra clarity (e.g. "string{...}").
- if t.Kind() == reflect.String {
- opts = opts.WithTypeMode(emitType)
- }
- return opts.FormatType(t, out)
- }
- switch t.Kind() {
- case reflect.String:
- out = &textWrap{Prefix: "strings.Join(", Value: out, Suffix: fmt.Sprintf(", %q)", delim)}
- if t != stringType {
- out = opts.FormatType(t, out)
- }
- case reflect.Slice:
- out = &textWrap{Prefix: "bytes.Join(", Value: out, Suffix: fmt.Sprintf(", %q)", delim)}
- if t != bytesType {
- out = opts.FormatType(t, out)
- }
- }
- return out
-}
-
-// formatASCII formats s as an ASCII string.
-// This is useful for printing binary strings in a semi-legible way.
-func formatASCII(s string) string {
- b := bytes.Repeat([]byte{'.'}, len(s))
- for i := 0; i < len(s); i++ {
- if ' ' <= s[i] && s[i] <= '~' {
- b[i] = s[i]
- }
- }
- return string(b)
-}
-
-func (opts formatOptions) formatDiffSlice(
- vx, vy reflect.Value, chunkSize int, name string,
- makeRec func(reflect.Value, diffMode) textRecord,
-) (list textList) {
- eq := func(ix, iy int) bool {
- return vx.Index(ix).Interface() == vy.Index(iy).Interface()
- }
- es := diff.Difference(vx.Len(), vy.Len(), func(ix, iy int) diff.Result {
- return diff.BoolResult(eq(ix, iy))
- })
-
- appendChunks := func(v reflect.Value, d diffMode) int {
- n0 := v.Len()
- for v.Len() > 0 {
- n := chunkSize
- if n > v.Len() {
- n = v.Len()
- }
- list = append(list, makeRec(v.Slice(0, n), d))
- v = v.Slice(n, v.Len())
- }
- return n0 - v.Len()
- }
-
- var numDiffs int
- maxLen := -1
- if opts.LimitVerbosity {
- maxLen = (1 << opts.verbosity()) << 2 // 4, 8, 16, 32, 64, etc...
- opts.VerbosityLevel--
- }
-
- groups := coalesceAdjacentEdits(name, es)
- groups = coalesceInterveningIdentical(groups, chunkSize/4)
- groups = cleanupSurroundingIdentical(groups, eq)
- maxGroup := diffStats{Name: name}
- for i, ds := range groups {
- if maxLen >= 0 && numDiffs >= maxLen {
- maxGroup = maxGroup.Append(ds)
- continue
- }
-
- // Print equal.
- if ds.NumDiff() == 0 {
- // Compute the number of leading and trailing equal bytes to print.
- var numLo, numHi int
- numEqual := ds.NumIgnored + ds.NumIdentical
- for numLo < chunkSize*numContextRecords && numLo+numHi < numEqual && i != 0 {
- numLo++
- }
- for numHi < chunkSize*numContextRecords && numLo+numHi < numEqual && i != len(groups)-1 {
- numHi++
- }
- if numEqual-(numLo+numHi) <= chunkSize && ds.NumIgnored == 0 {
- numHi = numEqual - numLo // Avoid pointless coalescing of single equal row
- }
-
- // Print the equal bytes.
- appendChunks(vx.Slice(0, numLo), diffIdentical)
- if numEqual > numLo+numHi {
- ds.NumIdentical -= numLo + numHi
- list.AppendEllipsis(ds)
- }
- appendChunks(vx.Slice(numEqual-numHi, numEqual), diffIdentical)
- vx = vx.Slice(numEqual, vx.Len())
- vy = vy.Slice(numEqual, vy.Len())
- continue
- }
-
- // Print unequal.
- len0 := len(list)
- nx := appendChunks(vx.Slice(0, ds.NumIdentical+ds.NumRemoved+ds.NumModified), diffRemoved)
- vx = vx.Slice(nx, vx.Len())
- ny := appendChunks(vy.Slice(0, ds.NumIdentical+ds.NumInserted+ds.NumModified), diffInserted)
- vy = vy.Slice(ny, vy.Len())
- numDiffs += len(list) - len0
- }
- if maxGroup.IsZero() {
- assert(vx.Len() == 0 && vy.Len() == 0)
- } else {
- list.AppendEllipsis(maxGroup)
- }
- return list
-}
-
-// coalesceAdjacentEdits coalesces the list of edits into groups of adjacent
-// equal or unequal counts.
-//
-// Example:
-//
-// Input: "..XXY...Y"
-// Output: [
-// {NumIdentical: 2},
-// {NumRemoved: 2, NumInserted 1},
-// {NumIdentical: 3},
-// {NumInserted: 1},
-// ]
-func coalesceAdjacentEdits(name string, es diff.EditScript) (groups []diffStats) {
- var prevMode byte
- lastStats := func(mode byte) *diffStats {
- if prevMode != mode {
- groups = append(groups, diffStats{Name: name})
- prevMode = mode
- }
- return &groups[len(groups)-1]
- }
- for _, e := range es {
- switch e {
- case diff.Identity:
- lastStats('=').NumIdentical++
- case diff.UniqueX:
- lastStats('!').NumRemoved++
- case diff.UniqueY:
- lastStats('!').NumInserted++
- case diff.Modified:
- lastStats('!').NumModified++
- }
- }
- return groups
-}
-
-// coalesceInterveningIdentical coalesces sufficiently short (<= windowSize)
-// equal groups into adjacent unequal groups that currently result in a
-// dual inserted/removed printout. This acts as a high-pass filter to smooth
-// out high-frequency changes within the windowSize.
-//
-// Example:
-//
-// WindowSize: 16,
-// Input: [
-// {NumIdentical: 61}, // group 0
-// {NumRemoved: 3, NumInserted: 1}, // group 1
-// {NumIdentical: 6}, // ├── coalesce
-// {NumInserted: 2}, // ├── coalesce
-// {NumIdentical: 1}, // ├── coalesce
-// {NumRemoved: 9}, // └── coalesce
-// {NumIdentical: 64}, // group 2
-// {NumRemoved: 3, NumInserted: 1}, // group 3
-// {NumIdentical: 6}, // ├── coalesce
-// {NumInserted: 2}, // ├── coalesce
-// {NumIdentical: 1}, // ├── coalesce
-// {NumRemoved: 7}, // ├── coalesce
-// {NumIdentical: 1}, // ├── coalesce
-// {NumRemoved: 2}, // └── coalesce
-// {NumIdentical: 63}, // group 4
-// ]
-// Output: [
-// {NumIdentical: 61},
-// {NumIdentical: 7, NumRemoved: 12, NumInserted: 3},
-// {NumIdentical: 64},
-// {NumIdentical: 8, NumRemoved: 12, NumInserted: 3},
-// {NumIdentical: 63},
-// ]
-func coalesceInterveningIdentical(groups []diffStats, windowSize int) []diffStats {
- groups, groupsOrig := groups[:0], groups
- for i, ds := range groupsOrig {
- if len(groups) >= 2 && ds.NumDiff() > 0 {
- prev := &groups[len(groups)-2] // Unequal group
- curr := &groups[len(groups)-1] // Equal group
- next := &groupsOrig[i] // Unequal group
- hadX, hadY := prev.NumRemoved > 0, prev.NumInserted > 0
- hasX, hasY := next.NumRemoved > 0, next.NumInserted > 0
- if ((hadX || hasX) && (hadY || hasY)) && curr.NumIdentical <= windowSize {
- *prev = prev.Append(*curr).Append(*next)
- groups = groups[:len(groups)-1] // Truncate off equal group
- continue
- }
- }
- groups = append(groups, ds)
- }
- return groups
-}
-
-// cleanupSurroundingIdentical scans through all unequal groups, and
-// moves any leading sequence of equal elements to the preceding equal group and
-// moves and trailing sequence of equal elements to the succeeding equal group.
-//
-// This is necessary since coalesceInterveningIdentical may coalesce edit groups
-// together such that leading/trailing spans of equal elements becomes possible.
-// Note that this can occur even with an optimal diffing algorithm.
-//
-// Example:
-//
-// Input: [
-// {NumIdentical: 61},
-// {NumIdentical: 1 , NumRemoved: 11, NumInserted: 2}, // assume 3 leading identical elements
-// {NumIdentical: 67},
-// {NumIdentical: 7, NumRemoved: 12, NumInserted: 3}, // assume 10 trailing identical elements
-// {NumIdentical: 54},
-// ]
-// Output: [
-// {NumIdentical: 64}, // incremented by 3
-// {NumRemoved: 9},
-// {NumIdentical: 67},
-// {NumRemoved: 9},
-// {NumIdentical: 64}, // incremented by 10
-// ]
-func cleanupSurroundingIdentical(groups []diffStats, eq func(i, j int) bool) []diffStats {
- var ix, iy int // indexes into sequence x and y
- for i, ds := range groups {
- // Handle equal group.
- if ds.NumDiff() == 0 {
- ix += ds.NumIdentical
- iy += ds.NumIdentical
- continue
- }
-
- // Handle unequal group.
- nx := ds.NumIdentical + ds.NumRemoved + ds.NumModified
- ny := ds.NumIdentical + ds.NumInserted + ds.NumModified
- var numLeadingIdentical, numTrailingIdentical int
- for j := 0; j < nx && j < ny && eq(ix+j, iy+j); j++ {
- numLeadingIdentical++
- }
- for j := 0; j < nx && j < ny && eq(ix+nx-1-j, iy+ny-1-j); j++ {
- numTrailingIdentical++
- }
- if numIdentical := numLeadingIdentical + numTrailingIdentical; numIdentical > 0 {
- if numLeadingIdentical > 0 {
- // Remove leading identical span from this group and
- // insert it into the preceding group.
- if i-1 >= 0 {
- groups[i-1].NumIdentical += numLeadingIdentical
- } else {
- // No preceding group exists, so prepend a new group,
- // but do so after we finish iterating over all groups.
- defer func() {
- groups = append([]diffStats{{Name: groups[0].Name, NumIdentical: numLeadingIdentical}}, groups...)
- }()
- }
- // Increment indexes since the preceding group would have handled this.
- ix += numLeadingIdentical
- iy += numLeadingIdentical
- }
- if numTrailingIdentical > 0 {
- // Remove trailing identical span from this group and
- // insert it into the succeeding group.
- if i+1 < len(groups) {
- groups[i+1].NumIdentical += numTrailingIdentical
- } else {
- // No succeeding group exists, so append a new group,
- // but do so after we finish iterating over all groups.
- defer func() {
- groups = append(groups, diffStats{Name: groups[len(groups)-1].Name, NumIdentical: numTrailingIdentical})
- }()
- }
- // Do not increment indexes since the succeeding group will handle this.
- }
-
- // Update this group since some identical elements were removed.
- nx -= numIdentical
- ny -= numIdentical
- groups[i] = diffStats{Name: ds.Name, NumRemoved: nx, NumInserted: ny}
- }
- ix += nx
- iy += ny
- }
- return groups
-}
diff --git a/vendor/github.com/google/go-cmp/cmp/report_text.go b/vendor/github.com/google/go-cmp/cmp/report_text.go
deleted file mode 100644
index 388fcf571..000000000
--- a/vendor/github.com/google/go-cmp/cmp/report_text.go
+++ /dev/null
@@ -1,432 +0,0 @@
-// Copyright 2019, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-import (
- "bytes"
- "fmt"
- "math/rand"
- "strings"
- "time"
- "unicode/utf8"
-
- "github.com/google/go-cmp/cmp/internal/flags"
-)
-
-var randBool = rand.New(rand.NewSource(time.Now().Unix())).Intn(2) == 0
-
-const maxColumnLength = 80
-
-type indentMode int
-
-func (n indentMode) appendIndent(b []byte, d diffMode) []byte {
- // The output of Diff is documented as being unstable to provide future
- // flexibility in changing the output for more humanly readable reports.
- // This logic intentionally introduces instability to the exact output
- // so that users can detect accidental reliance on stability early on,
- // rather than much later when an actual change to the format occurs.
- if flags.Deterministic || randBool {
- // Use regular spaces (U+0020).
- switch d {
- case diffUnknown, diffIdentical:
- b = append(b, " "...)
- case diffRemoved:
- b = append(b, "- "...)
- case diffInserted:
- b = append(b, "+ "...)
- }
- } else {
- // Use non-breaking spaces (U+00a0).
- switch d {
- case diffUnknown, diffIdentical:
- b = append(b, " "...)
- case diffRemoved:
- b = append(b, "- "...)
- case diffInserted:
- b = append(b, "+ "...)
- }
- }
- return repeatCount(n).appendChar(b, '\t')
-}
-
-type repeatCount int
-
-func (n repeatCount) appendChar(b []byte, c byte) []byte {
- for ; n > 0; n-- {
- b = append(b, c)
- }
- return b
-}
-
-// textNode is a simplified tree-based representation of structured text.
-// Possible node types are textWrap, textList, or textLine.
-type textNode interface {
- // Len reports the length in bytes of a single-line version of the tree.
- // Nested textRecord.Diff and textRecord.Comment fields are ignored.
- Len() int
- // Equal reports whether the two trees are structurally identical.
- // Nested textRecord.Diff and textRecord.Comment fields are compared.
- Equal(textNode) bool
- // String returns the string representation of the text tree.
- // It is not guaranteed that len(x.String()) == x.Len(),
- // nor that x.String() == y.String() implies that x.Equal(y).
- String() string
-
- // formatCompactTo formats the contents of the tree as a single-line string
- // to the provided buffer. Any nested textRecord.Diff and textRecord.Comment
- // fields are ignored.
- //
- // However, not all nodes in the tree should be collapsed as a single-line.
- // If a node can be collapsed as a single-line, it is replaced by a textLine
- // node. Since the top-level node cannot replace itself, this also returns
- // the current node itself.
- //
- // This does not mutate the receiver.
- formatCompactTo([]byte, diffMode) ([]byte, textNode)
- // formatExpandedTo formats the contents of the tree as a multi-line string
- // to the provided buffer. In order for column alignment to operate well,
- // formatCompactTo must be called before calling formatExpandedTo.
- formatExpandedTo([]byte, diffMode, indentMode) []byte
-}
-
-// textWrap is a wrapper that concatenates a prefix and/or a suffix
-// to the underlying node.
-type textWrap struct {
- Prefix string // e.g., "bytes.Buffer{"
- Value textNode // textWrap | textList | textLine
- Suffix string // e.g., "}"
- Metadata interface{} // arbitrary metadata; has no effect on formatting
-}
-
-func (s *textWrap) Len() int {
- return len(s.Prefix) + s.Value.Len() + len(s.Suffix)
-}
-func (s1 *textWrap) Equal(s2 textNode) bool {
- if s2, ok := s2.(*textWrap); ok {
- return s1.Prefix == s2.Prefix && s1.Value.Equal(s2.Value) && s1.Suffix == s2.Suffix
- }
- return false
-}
-func (s *textWrap) String() string {
- var d diffMode
- var n indentMode
- _, s2 := s.formatCompactTo(nil, d)
- b := n.appendIndent(nil, d) // Leading indent
- b = s2.formatExpandedTo(b, d, n) // Main body
- b = append(b, '\n') // Trailing newline
- return string(b)
-}
-func (s *textWrap) formatCompactTo(b []byte, d diffMode) ([]byte, textNode) {
- n0 := len(b) // Original buffer length
- b = append(b, s.Prefix...)
- b, s.Value = s.Value.formatCompactTo(b, d)
- b = append(b, s.Suffix...)
- if _, ok := s.Value.(textLine); ok {
- return b, textLine(b[n0:])
- }
- return b, s
-}
-func (s *textWrap) formatExpandedTo(b []byte, d diffMode, n indentMode) []byte {
- b = append(b, s.Prefix...)
- b = s.Value.formatExpandedTo(b, d, n)
- b = append(b, s.Suffix...)
- return b
-}
-
-// textList is a comma-separated list of textWrap or textLine nodes.
-// The list may be formatted as multi-lines or single-line at the discretion
-// of the textList.formatCompactTo method.
-type textList []textRecord
-type textRecord struct {
- Diff diffMode // e.g., 0 or '-' or '+'
- Key string // e.g., "MyField"
- Value textNode // textWrap | textLine
- ElideComma bool // avoid trailing comma
- Comment fmt.Stringer // e.g., "6 identical fields"
-}
-
-// AppendEllipsis appends a new ellipsis node to the list if none already
-// exists at the end. If cs is non-zero it coalesces the statistics with the
-// previous diffStats.
-func (s *textList) AppendEllipsis(ds diffStats) {
- hasStats := !ds.IsZero()
- if len(*s) == 0 || !(*s)[len(*s)-1].Value.Equal(textEllipsis) {
- if hasStats {
- *s = append(*s, textRecord{Value: textEllipsis, ElideComma: true, Comment: ds})
- } else {
- *s = append(*s, textRecord{Value: textEllipsis, ElideComma: true})
- }
- return
- }
- if hasStats {
- (*s)[len(*s)-1].Comment = (*s)[len(*s)-1].Comment.(diffStats).Append(ds)
- }
-}
-
-func (s textList) Len() (n int) {
- for i, r := range s {
- n += len(r.Key)
- if r.Key != "" {
- n += len(": ")
- }
- n += r.Value.Len()
- if i < len(s)-1 {
- n += len(", ")
- }
- }
- return n
-}
-
-func (s1 textList) Equal(s2 textNode) bool {
- if s2, ok := s2.(textList); ok {
- if len(s1) != len(s2) {
- return false
- }
- for i := range s1 {
- r1, r2 := s1[i], s2[i]
- if !(r1.Diff == r2.Diff && r1.Key == r2.Key && r1.Value.Equal(r2.Value) && r1.Comment == r2.Comment) {
- return false
- }
- }
- return true
- }
- return false
-}
-
-func (s textList) String() string {
- return (&textWrap{Prefix: "{", Value: s, Suffix: "}"}).String()
-}
-
-func (s textList) formatCompactTo(b []byte, d diffMode) ([]byte, textNode) {
- s = append(textList(nil), s...) // Avoid mutating original
-
- // Determine whether we can collapse this list as a single line.
- n0 := len(b) // Original buffer length
- var multiLine bool
- for i, r := range s {
- if r.Diff == diffInserted || r.Diff == diffRemoved {
- multiLine = true
- }
- b = append(b, r.Key...)
- if r.Key != "" {
- b = append(b, ": "...)
- }
- b, s[i].Value = r.Value.formatCompactTo(b, d|r.Diff)
- if _, ok := s[i].Value.(textLine); !ok {
- multiLine = true
- }
- if r.Comment != nil {
- multiLine = true
- }
- if i < len(s)-1 {
- b = append(b, ", "...)
- }
- }
- // Force multi-lined output when printing a removed/inserted node that
- // is sufficiently long.
- if (d == diffInserted || d == diffRemoved) && len(b[n0:]) > maxColumnLength {
- multiLine = true
- }
- if !multiLine {
- return b, textLine(b[n0:])
- }
- return b, s
-}
-
-func (s textList) formatExpandedTo(b []byte, d diffMode, n indentMode) []byte {
- alignKeyLens := s.alignLens(
- func(r textRecord) bool {
- _, isLine := r.Value.(textLine)
- return r.Key == "" || !isLine
- },
- func(r textRecord) int { return utf8.RuneCountInString(r.Key) },
- )
- alignValueLens := s.alignLens(
- func(r textRecord) bool {
- _, isLine := r.Value.(textLine)
- return !isLine || r.Value.Equal(textEllipsis) || r.Comment == nil
- },
- func(r textRecord) int { return utf8.RuneCount(r.Value.(textLine)) },
- )
-
- // Format lists of simple lists in a batched form.
- // If the list is sequence of only textLine values,
- // then batch multiple values on a single line.
- var isSimple bool
- for _, r := range s {
- _, isLine := r.Value.(textLine)
- isSimple = r.Diff == 0 && r.Key == "" && isLine && r.Comment == nil
- if !isSimple {
- break
- }
- }
- if isSimple {
- n++
- var batch []byte
- emitBatch := func() {
- if len(batch) > 0 {
- b = n.appendIndent(append(b, '\n'), d)
- b = append(b, bytes.TrimRight(batch, " ")...)
- batch = batch[:0]
- }
- }
- for _, r := range s {
- line := r.Value.(textLine)
- if len(batch)+len(line)+len(", ") > maxColumnLength {
- emitBatch()
- }
- batch = append(batch, line...)
- batch = append(batch, ", "...)
- }
- emitBatch()
- n--
- return n.appendIndent(append(b, '\n'), d)
- }
-
- // Format the list as a multi-lined output.
- n++
- for i, r := range s {
- b = n.appendIndent(append(b, '\n'), d|r.Diff)
- if r.Key != "" {
- b = append(b, r.Key+": "...)
- }
- b = alignKeyLens[i].appendChar(b, ' ')
-
- b = r.Value.formatExpandedTo(b, d|r.Diff, n)
- if !r.ElideComma {
- b = append(b, ',')
- }
- b = alignValueLens[i].appendChar(b, ' ')
-
- if r.Comment != nil {
- b = append(b, " // "+r.Comment.String()...)
- }
- }
- n--
-
- return n.appendIndent(append(b, '\n'), d)
-}
-
-func (s textList) alignLens(
- skipFunc func(textRecord) bool,
- lenFunc func(textRecord) int,
-) []repeatCount {
- var startIdx, endIdx, maxLen int
- lens := make([]repeatCount, len(s))
- for i, r := range s {
- if skipFunc(r) {
- for j := startIdx; j < endIdx && j < len(s); j++ {
- lens[j] = repeatCount(maxLen - lenFunc(s[j]))
- }
- startIdx, endIdx, maxLen = i+1, i+1, 0
- } else {
- if maxLen < lenFunc(r) {
- maxLen = lenFunc(r)
- }
- endIdx = i + 1
- }
- }
- for j := startIdx; j < endIdx && j < len(s); j++ {
- lens[j] = repeatCount(maxLen - lenFunc(s[j]))
- }
- return lens
-}
-
-// textLine is a single-line segment of text and is always a leaf node
-// in the textNode tree.
-type textLine []byte
-
-var (
- textNil = textLine("nil")
- textEllipsis = textLine("...")
-)
-
-func (s textLine) Len() int {
- return len(s)
-}
-func (s1 textLine) Equal(s2 textNode) bool {
- if s2, ok := s2.(textLine); ok {
- return bytes.Equal([]byte(s1), []byte(s2))
- }
- return false
-}
-func (s textLine) String() string {
- return string(s)
-}
-func (s textLine) formatCompactTo(b []byte, d diffMode) ([]byte, textNode) {
- return append(b, s...), s
-}
-func (s textLine) formatExpandedTo(b []byte, _ diffMode, _ indentMode) []byte {
- return append(b, s...)
-}
-
-type diffStats struct {
- Name string
- NumIgnored int
- NumIdentical int
- NumRemoved int
- NumInserted int
- NumModified int
-}
-
-func (s diffStats) IsZero() bool {
- s.Name = ""
- return s == diffStats{}
-}
-
-func (s diffStats) NumDiff() int {
- return s.NumRemoved + s.NumInserted + s.NumModified
-}
-
-func (s diffStats) Append(ds diffStats) diffStats {
- assert(s.Name == ds.Name)
- s.NumIgnored += ds.NumIgnored
- s.NumIdentical += ds.NumIdentical
- s.NumRemoved += ds.NumRemoved
- s.NumInserted += ds.NumInserted
- s.NumModified += ds.NumModified
- return s
-}
-
-// String prints a humanly-readable summary of coalesced records.
-//
-// Example:
-//
-// diffStats{Name: "Field", NumIgnored: 5}.String() => "5 ignored fields"
-func (s diffStats) String() string {
- var ss []string
- var sum int
- labels := [...]string{"ignored", "identical", "removed", "inserted", "modified"}
- counts := [...]int{s.NumIgnored, s.NumIdentical, s.NumRemoved, s.NumInserted, s.NumModified}
- for i, n := range counts {
- if n > 0 {
- ss = append(ss, fmt.Sprintf("%d %v", n, labels[i]))
- }
- sum += n
- }
-
- // Pluralize the name (adjusting for some obscure English grammar rules).
- name := s.Name
- if sum > 1 {
- name += "s"
- if strings.HasSuffix(name, "ys") {
- name = name[:len(name)-2] + "ies" // e.g., "entrys" => "entries"
- }
- }
-
- // Format the list according to English grammar (with Oxford comma).
- switch n := len(ss); n {
- case 0:
- return ""
- case 1, 2:
- return strings.Join(ss, " and ") + " " + name
- default:
- return strings.Join(ss[:n-1], ", ") + ", and " + ss[n-1] + " " + name
- }
-}
-
-type commentString string
-
-func (s commentString) String() string { return string(s) }
diff --git a/vendor/github.com/google/go-cmp/cmp/report_value.go b/vendor/github.com/google/go-cmp/cmp/report_value.go
deleted file mode 100644
index 668d470fd..000000000
--- a/vendor/github.com/google/go-cmp/cmp/report_value.go
+++ /dev/null
@@ -1,121 +0,0 @@
-// Copyright 2019, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmp
-
-import "reflect"
-
-// valueNode represents a single node within a report, which is a
-// structured representation of the value tree, containing information
-// regarding which nodes are equal or not.
-type valueNode struct {
- parent *valueNode
-
- Type reflect.Type
- ValueX reflect.Value
- ValueY reflect.Value
-
- // NumSame is the number of leaf nodes that are equal.
- // All descendants are equal only if NumDiff is 0.
- NumSame int
- // NumDiff is the number of leaf nodes that are not equal.
- NumDiff int
- // NumIgnored is the number of leaf nodes that are ignored.
- NumIgnored int
- // NumCompared is the number of leaf nodes that were compared
- // using an Equal method or Comparer function.
- NumCompared int
- // NumTransformed is the number of non-leaf nodes that were transformed.
- NumTransformed int
- // NumChildren is the number of transitive descendants of this node.
- // This counts from zero; thus, leaf nodes have no descendants.
- NumChildren int
- // MaxDepth is the maximum depth of the tree. This counts from zero;
- // thus, leaf nodes have a depth of zero.
- MaxDepth int
-
- // Records is a list of struct fields, slice elements, or map entries.
- Records []reportRecord // If populated, implies Value is not populated
-
- // Value is the result of a transformation, pointer indirect, of
- // type assertion.
- Value *valueNode // If populated, implies Records is not populated
-
- // TransformerName is the name of the transformer.
- TransformerName string // If non-empty, implies Value is populated
-}
-type reportRecord struct {
- Key reflect.Value // Invalid for slice element
- Value *valueNode
-}
-
-func (parent *valueNode) PushStep(ps PathStep) (child *valueNode) {
- vx, vy := ps.Values()
- child = &valueNode{parent: parent, Type: ps.Type(), ValueX: vx, ValueY: vy}
- switch s := ps.(type) {
- case StructField:
- assert(parent.Value == nil)
- parent.Records = append(parent.Records, reportRecord{Key: reflect.ValueOf(s.Name()), Value: child})
- case SliceIndex:
- assert(parent.Value == nil)
- parent.Records = append(parent.Records, reportRecord{Value: child})
- case MapIndex:
- assert(parent.Value == nil)
- parent.Records = append(parent.Records, reportRecord{Key: s.Key(), Value: child})
- case Indirect:
- assert(parent.Value == nil && parent.Records == nil)
- parent.Value = child
- case TypeAssertion:
- assert(parent.Value == nil && parent.Records == nil)
- parent.Value = child
- case Transform:
- assert(parent.Value == nil && parent.Records == nil)
- parent.Value = child
- parent.TransformerName = s.Name()
- parent.NumTransformed++
- default:
- assert(parent == nil) // Must be the root step
- }
- return child
-}
-
-func (r *valueNode) Report(rs Result) {
- assert(r.MaxDepth == 0) // May only be called on leaf nodes
-
- if rs.ByIgnore() {
- r.NumIgnored++
- } else {
- if rs.Equal() {
- r.NumSame++
- } else {
- r.NumDiff++
- }
- }
- assert(r.NumSame+r.NumDiff+r.NumIgnored == 1)
-
- if rs.ByMethod() {
- r.NumCompared++
- }
- if rs.ByFunc() {
- r.NumCompared++
- }
- assert(r.NumCompared <= 1)
-}
-
-func (child *valueNode) PopStep() (parent *valueNode) {
- if child.parent == nil {
- return nil
- }
- parent = child.parent
- parent.NumSame += child.NumSame
- parent.NumDiff += child.NumDiff
- parent.NumIgnored += child.NumIgnored
- parent.NumCompared += child.NumCompared
- parent.NumTransformed += child.NumTransformed
- parent.NumChildren += child.NumChildren + 1
- if parent.MaxDepth < child.MaxDepth+1 {
- parent.MaxDepth = child.MaxDepth + 1
- }
- return parent
-}
diff --git a/vendor/github.com/hashicorp/errwrap/LICENSE b/vendor/github.com/hashicorp/errwrap/LICENSE
deleted file mode 100644
index c33dcc7c9..000000000
--- a/vendor/github.com/hashicorp/errwrap/LICENSE
+++ /dev/null
@@ -1,354 +0,0 @@
-Mozilla Public License, version 2.0
-
-1. Definitions
-
-1.1. “Contributor”
-
- means each individual or legal entity that creates, contributes to the
- creation of, or owns Covered Software.
-
-1.2. “Contributor Version”
-
- means the combination of the Contributions of others (if any) used by a
- Contributor and that particular Contributor’s Contribution.
-
-1.3. “Contribution”
-
- means Covered Software of a particular Contributor.
-
-1.4. “Covered Software”
-
- means Source Code Form to which the initial Contributor has attached the
- notice in Exhibit A, the Executable Form of such Source Code Form, and
- Modifications of such Source Code Form, in each case including portions
- thereof.
-
-1.5. “Incompatible With Secondary Licenses”
- means
-
- a. that the initial Contributor has attached the notice described in
- Exhibit B to the Covered Software; or
-
- b. that the Covered Software was made available under the terms of version
- 1.1 or earlier of the License, but not also under the terms of a
- Secondary License.
-
-1.6. “Executable Form”
-
- means any form of the work other than Source Code Form.
-
-1.7. “Larger Work”
-
- means a work that combines Covered Software with other material, in a separate
- file or files, that is not Covered Software.
-
-1.8. “License”
-
- means this document.
-
-1.9. “Licensable”
-
- means having the right to grant, to the maximum extent possible, whether at the
- time of the initial grant or subsequently, any and all of the rights conveyed by
- this License.
-
-1.10. “Modifications”
-
- means any of the following:
-
- a. any file in Source Code Form that results from an addition to, deletion
- from, or modification of the contents of Covered Software; or
-
- b. any new file in Source Code Form that contains any Covered Software.
-
-1.11. “Patent Claims” of a Contributor
-
- means any patent claim(s), including without limitation, method, process,
- and apparatus claims, in any patent Licensable by such Contributor that
- would be infringed, but for the grant of the License, by the making,
- using, selling, offering for sale, having made, import, or transfer of
- either its Contributions or its Contributor Version.
-
-1.12. “Secondary License”
-
- means either the GNU General Public License, Version 2.0, the GNU Lesser
- General Public License, Version 2.1, the GNU Affero General Public
- License, Version 3.0, or any later versions of those licenses.
-
-1.13. “Source Code Form”
-
- means the form of the work preferred for making modifications.
-
-1.14. “You” (or “Your”)
-
- means an individual or a legal entity exercising rights under this
- License. For legal entities, “You” includes any entity that controls, is
- controlled by, or is under common control with You. For purposes of this
- definition, “control” means (a) the power, direct or indirect, to cause
- the direction or management of such entity, whether by contract or
- otherwise, or (b) ownership of more than fifty percent (50%) of the
- outstanding shares or beneficial ownership of such entity.
-
-
-2. License Grants and Conditions
-
-2.1. Grants
-
- Each Contributor hereby grants You a world-wide, royalty-free,
- non-exclusive license:
-
- a. under intellectual property rights (other than patent or trademark)
- Licensable by such Contributor to use, reproduce, make available,
- modify, display, perform, distribute, and otherwise exploit its
- Contributions, either on an unmodified basis, with Modifications, or as
- part of a Larger Work; and
-
- b. under Patent Claims of such Contributor to make, use, sell, offer for
- sale, have made, import, and otherwise transfer either its Contributions
- or its Contributor Version.
-
-2.2. Effective Date
-
- The licenses granted in Section 2.1 with respect to any Contribution become
- effective for each Contribution on the date the Contributor first distributes
- such Contribution.
-
-2.3. Limitations on Grant Scope
-
- The licenses granted in this Section 2 are the only rights granted under this
- License. No additional rights or licenses will be implied from the distribution
- or licensing of Covered Software under this License. Notwithstanding Section
- 2.1(b) above, no patent license is granted by a Contributor:
-
- a. for any code that a Contributor has removed from Covered Software; or
-
- b. for infringements caused by: (i) Your and any other third party’s
- modifications of Covered Software, or (ii) the combination of its
- Contributions with other software (except as part of its Contributor
- Version); or
-
- c. under Patent Claims infringed by Covered Software in the absence of its
- Contributions.
-
- This License does not grant any rights in the trademarks, service marks, or
- logos of any Contributor (except as may be necessary to comply with the
- notice requirements in Section 3.4).
-
-2.4. Subsequent Licenses
-
- No Contributor makes additional grants as a result of Your choice to
- distribute the Covered Software under a subsequent version of this License
- (see Section 10.2) or under the terms of a Secondary License (if permitted
- under the terms of Section 3.3).
-
-2.5. Representation
-
- Each Contributor represents that the Contributor believes its Contributions
- are its original creation(s) or it has sufficient rights to grant the
- rights to its Contributions conveyed by this License.
-
-2.6. Fair Use
-
- This License is not intended to limit any rights You have under applicable
- copyright doctrines of fair use, fair dealing, or other equivalents.
-
-2.7. Conditions
-
- Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
- Section 2.1.
-
-
-3. Responsibilities
-
-3.1. Distribution of Source Form
-
- All distribution of Covered Software in Source Code Form, including any
- Modifications that You create or to which You contribute, must be under the
- terms of this License. You must inform recipients that the Source Code Form
- of the Covered Software is governed by the terms of this License, and how
- they can obtain a copy of this License. You may not attempt to alter or
- restrict the recipients’ rights in the Source Code Form.
-
-3.2. Distribution of Executable Form
-
- If You distribute Covered Software in Executable Form then:
-
- a. such Covered Software must also be made available in Source Code Form,
- as described in Section 3.1, and You must inform recipients of the
- Executable Form how they can obtain a copy of such Source Code Form by
- reasonable means in a timely manner, at a charge no more than the cost
- of distribution to the recipient; and
-
- b. You may distribute such Executable Form under the terms of this License,
- or sublicense it under different terms, provided that the license for
- the Executable Form does not attempt to limit or alter the recipients’
- rights in the Source Code Form under this License.
-
-3.3. Distribution of a Larger Work
-
- You may create and distribute a Larger Work under terms of Your choice,
- provided that You also comply with the requirements of this License for the
- Covered Software. If the Larger Work is a combination of Covered Software
- with a work governed by one or more Secondary Licenses, and the Covered
- Software is not Incompatible With Secondary Licenses, this License permits
- You to additionally distribute such Covered Software under the terms of
- such Secondary License(s), so that the recipient of the Larger Work may, at
- their option, further distribute the Covered Software under the terms of
- either this License or such Secondary License(s).
-
-3.4. Notices
-
- You may not remove or alter the substance of any license notices (including
- copyright notices, patent notices, disclaimers of warranty, or limitations
- of liability) contained within the Source Code Form of the Covered
- Software, except that You may alter any license notices to the extent
- required to remedy known factual inaccuracies.
-
-3.5. Application of Additional Terms
-
- You may choose to offer, and to charge a fee for, warranty, support,
- indemnity or liability obligations to one or more recipients of Covered
- Software. However, You may do so only on Your own behalf, and not on behalf
- of any Contributor. You must make it absolutely clear that any such
- warranty, support, indemnity, or liability obligation is offered by You
- alone, and You hereby agree to indemnify every Contributor for any
- liability incurred by such Contributor as a result of warranty, support,
- indemnity or liability terms You offer. You may include additional
- disclaimers of warranty and limitations of liability specific to any
- jurisdiction.
-
-4. Inability to Comply Due to Statute or Regulation
-
- If it is impossible for You to comply with any of the terms of this License
- with respect to some or all of the Covered Software due to statute, judicial
- order, or regulation then You must: (a) comply with the terms of this License
- to the maximum extent possible; and (b) describe the limitations and the code
- they affect. Such description must be placed in a text file included with all
- distributions of the Covered Software under this License. Except to the
- extent prohibited by statute or regulation, such description must be
- sufficiently detailed for a recipient of ordinary skill to be able to
- understand it.
-
-5. Termination
-
-5.1. The rights granted under this License will terminate automatically if You
- fail to comply with any of its terms. However, if You become compliant,
- then the rights granted under this License from a particular Contributor
- are reinstated (a) provisionally, unless and until such Contributor
- explicitly and finally terminates Your grants, and (b) on an ongoing basis,
- if such Contributor fails to notify You of the non-compliance by some
- reasonable means prior to 60 days after You have come back into compliance.
- Moreover, Your grants from a particular Contributor are reinstated on an
- ongoing basis if such Contributor notifies You of the non-compliance by
- some reasonable means, this is the first time You have received notice of
- non-compliance with this License from such Contributor, and You become
- compliant prior to 30 days after Your receipt of the notice.
-
-5.2. If You initiate litigation against any entity by asserting a patent
- infringement claim (excluding declaratory judgment actions, counter-claims,
- and cross-claims) alleging that a Contributor Version directly or
- indirectly infringes any patent, then the rights granted to You by any and
- all Contributors for the Covered Software under Section 2.1 of this License
- shall terminate.
-
-5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
- license agreements (excluding distributors and resellers) which have been
- validly granted by You or Your distributors under this License prior to
- termination shall survive termination.
-
-6. Disclaimer of Warranty
-
- Covered Software is provided under this License on an “as is” basis, without
- warranty of any kind, either expressed, implied, or statutory, including,
- without limitation, warranties that the Covered Software is free of defects,
- merchantable, fit for a particular purpose or non-infringing. The entire
- risk as to the quality and performance of the Covered Software is with You.
- Should any Covered Software prove defective in any respect, You (not any
- Contributor) assume the cost of any necessary servicing, repair, or
- correction. This disclaimer of warranty constitutes an essential part of this
- License. No use of any Covered Software is authorized under this License
- except under this disclaimer.
-
-7. Limitation of Liability
-
- Under no circumstances and under no legal theory, whether tort (including
- negligence), contract, or otherwise, shall any Contributor, or anyone who
- distributes Covered Software as permitted above, be liable to You for any
- direct, indirect, special, incidental, or consequential damages of any
- character including, without limitation, damages for lost profits, loss of
- goodwill, work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses, even if such party shall have been
- informed of the possibility of such damages. This limitation of liability
- shall not apply to liability for death or personal injury resulting from such
- party’s negligence to the extent applicable law prohibits such limitation.
- Some jurisdictions do not allow the exclusion or limitation of incidental or
- consequential damages, so this exclusion and limitation may not apply to You.
-
-8. Litigation
-
- Any litigation relating to this License may be brought only in the courts of
- a jurisdiction where the defendant maintains its principal place of business
- and such litigation shall be governed by laws of that jurisdiction, without
- reference to its conflict-of-law provisions. Nothing in this Section shall
- prevent a party’s ability to bring cross-claims or counter-claims.
-
-9. Miscellaneous
-
- This License represents the complete agreement concerning the subject matter
- hereof. If any provision of this License is held to be unenforceable, such
- provision shall be reformed only to the extent necessary to make it
- enforceable. Any law or regulation which provides that the language of a
- contract shall be construed against the drafter shall not be used to construe
- this License against a Contributor.
-
-
-10. Versions of the License
-
-10.1. New Versions
-
- Mozilla Foundation is the license steward. Except as provided in Section
- 10.3, no one other than the license steward has the right to modify or
- publish new versions of this License. Each version will be given a
- distinguishing version number.
-
-10.2. Effect of New Versions
-
- You may distribute the Covered Software under the terms of the version of
- the License under which You originally received the Covered Software, or
- under the terms of any subsequent version published by the license
- steward.
-
-10.3. Modified Versions
-
- If you create software not governed by this License, and you want to
- create a new license for such software, you may create and use a modified
- version of this License if you rename the license and remove any
- references to the name of the license steward (except to note that such
- modified license differs from this License).
-
-10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
- If You choose to distribute Source Code Form that is Incompatible With
- Secondary Licenses under the terms of this version of the License, the
- notice described in Exhibit B of this License must be attached.
-
-Exhibit A - Source Code Form License Notice
-
- This Source Code Form is subject to the
- terms of the Mozilla Public License, v.
- 2.0. If a copy of the MPL was not
- distributed with this file, You can
- obtain one at
- http://mozilla.org/MPL/2.0/.
-
-If it is not possible or desirable to put the notice in a particular file, then
-You may include the notice in a location (such as a LICENSE file in a relevant
-directory) where a recipient would be likely to look for such a notice.
-
-You may add additional accurate notices of copyright ownership.
-
-Exhibit B - “Incompatible With Secondary Licenses” Notice
-
- This Source Code Form is “Incompatible
- With Secondary Licenses”, as defined by
- the Mozilla Public License, v. 2.0.
-
diff --git a/vendor/github.com/hashicorp/errwrap/README.md b/vendor/github.com/hashicorp/errwrap/README.md
deleted file mode 100644
index 444df08f8..000000000
--- a/vendor/github.com/hashicorp/errwrap/README.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# errwrap
-
-`errwrap` is a package for Go that formalizes the pattern of wrapping errors
-and checking if an error contains another error.
-
-There is a common pattern in Go of taking a returned `error` value and
-then wrapping it (such as with `fmt.Errorf`) before returning it. The problem
-with this pattern is that you completely lose the original `error` structure.
-
-Arguably the _correct_ approach is that you should make a custom structure
-implementing the `error` interface, and have the original error as a field
-on that structure, such [as this example](http://golang.org/pkg/os/#PathError).
-This is a good approach, but you have to know the entire chain of possible
-rewrapping that happens, when you might just care about one.
-
-`errwrap` formalizes this pattern (it doesn't matter what approach you use
-above) by giving a single interface for wrapping errors, checking if a specific
-error is wrapped, and extracting that error.
-
-## Installation and Docs
-
-Install using `go get github.com/hashicorp/errwrap`.
-
-Full documentation is available at
-http://godoc.org/github.com/hashicorp/errwrap
-
-## Usage
-
-#### Basic Usage
-
-Below is a very basic example of its usage:
-
-```go
-// A function that always returns an error, but wraps it, like a real
-// function might.
-func tryOpen() error {
- _, err := os.Open("/i/dont/exist")
- if err != nil {
- return errwrap.Wrapf("Doesn't exist: {{err}}", err)
- }
-
- return nil
-}
-
-func main() {
- err := tryOpen()
-
- // We can use the Contains helpers to check if an error contains
- // another error. It is safe to do this with a nil error, or with
- // an error that doesn't even use the errwrap package.
- if errwrap.Contains(err, "does not exist") {
- // Do something
- }
- if errwrap.ContainsType(err, new(os.PathError)) {
- // Do something
- }
-
- // Or we can use the associated `Get` functions to just extract
- // a specific error. This would return nil if that specific error doesn't
- // exist.
- perr := errwrap.GetType(err, new(os.PathError))
-}
-```
-
-#### Custom Types
-
-If you're already making custom types that properly wrap errors, then
-you can get all the functionality of `errwraps.Contains` and such by
-implementing the `Wrapper` interface with just one function. Example:
-
-```go
-type AppError {
- Code ErrorCode
- Err error
-}
-
-func (e *AppError) WrappedErrors() []error {
- return []error{e.Err}
-}
-```
-
-Now this works:
-
-```go
-err := &AppError{Err: fmt.Errorf("an error")}
-if errwrap.ContainsType(err, fmt.Errorf("")) {
- // This will work!
-}
-```
diff --git a/vendor/github.com/hashicorp/errwrap/errwrap.go b/vendor/github.com/hashicorp/errwrap/errwrap.go
deleted file mode 100644
index a733bef18..000000000
--- a/vendor/github.com/hashicorp/errwrap/errwrap.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Package errwrap implements methods to formalize error wrapping in Go.
-//
-// All of the top-level functions that take an `error` are built to be able
-// to take any error, not just wrapped errors. This allows you to use errwrap
-// without having to type-check and type-cast everywhere.
-package errwrap
-
-import (
- "errors"
- "reflect"
- "strings"
-)
-
-// WalkFunc is the callback called for Walk.
-type WalkFunc func(error)
-
-// Wrapper is an interface that can be implemented by custom types to
-// have all the Contains, Get, etc. functions in errwrap work.
-//
-// When Walk reaches a Wrapper, it will call the callback for every
-// wrapped error in addition to the wrapper itself. Since all the top-level
-// functions in errwrap use Walk, this means that all those functions work
-// with your custom type.
-type Wrapper interface {
- WrappedErrors() []error
-}
-
-// Wrap defines that outer wraps inner, returning an error type that
-// can be cleanly used with the other methods in this package, such as
-// Contains, GetAll, etc.
-//
-// This function won't modify the error message at all (the outer message
-// will be used).
-func Wrap(outer, inner error) error {
- return &wrappedError{
- Outer: outer,
- Inner: inner,
- }
-}
-
-// Wrapf wraps an error with a formatting message. This is similar to using
-// `fmt.Errorf` to wrap an error. If you're using `fmt.Errorf` to wrap
-// errors, you should replace it with this.
-//
-// format is the format of the error message. The string '{{err}}' will
-// be replaced with the original error message.
-func Wrapf(format string, err error) error {
- outerMsg := ""
- if err != nil {
- outerMsg = err.Error()
- }
-
- outer := errors.New(strings.Replace(
- format, "{{err}}", outerMsg, -1))
-
- return Wrap(outer, err)
-}
-
-// Contains checks if the given error contains an error with the
-// message msg. If err is not a wrapped error, this will always return
-// false unless the error itself happens to match this msg.
-func Contains(err error, msg string) bool {
- return len(GetAll(err, msg)) > 0
-}
-
-// ContainsType checks if the given error contains an error with
-// the same concrete type as v. If err is not a wrapped error, this will
-// check the err itself.
-func ContainsType(err error, v interface{}) bool {
- return len(GetAllType(err, v)) > 0
-}
-
-// Get is the same as GetAll but returns the deepest matching error.
-func Get(err error, msg string) error {
- es := GetAll(err, msg)
- if len(es) > 0 {
- return es[len(es)-1]
- }
-
- return nil
-}
-
-// GetType is the same as GetAllType but returns the deepest matching error.
-func GetType(err error, v interface{}) error {
- es := GetAllType(err, v)
- if len(es) > 0 {
- return es[len(es)-1]
- }
-
- return nil
-}
-
-// GetAll gets all the errors that might be wrapped in err with the
-// given message. The order of the errors is such that the outermost
-// matching error (the most recent wrap) is index zero, and so on.
-func GetAll(err error, msg string) []error {
- var result []error
-
- Walk(err, func(err error) {
- if err.Error() == msg {
- result = append(result, err)
- }
- })
-
- return result
-}
-
-// GetAllType gets all the errors that are the same type as v.
-//
-// The order of the return value is the same as described in GetAll.
-func GetAllType(err error, v interface{}) []error {
- var result []error
-
- var search string
- if v != nil {
- search = reflect.TypeOf(v).String()
- }
- Walk(err, func(err error) {
- var needle string
- if err != nil {
- needle = reflect.TypeOf(err).String()
- }
-
- if needle == search {
- result = append(result, err)
- }
- })
-
- return result
-}
-
-// Walk walks all the wrapped errors in err and calls the callback. If
-// err isn't a wrapped error, this will be called once for err. If err
-// is a wrapped error, the callback will be called for both the wrapper
-// that implements error as well as the wrapped error itself.
-func Walk(err error, cb WalkFunc) {
- if err == nil {
- return
- }
-
- switch e := err.(type) {
- case *wrappedError:
- cb(e.Outer)
- Walk(e.Inner, cb)
- case Wrapper:
- cb(err)
-
- for _, err := range e.WrappedErrors() {
- Walk(err, cb)
- }
- default:
- cb(err)
- }
-}
-
-// wrappedError is an implementation of error that has both the
-// outer and inner errors.
-type wrappedError struct {
- Outer error
- Inner error
-}
-
-func (w *wrappedError) Error() string {
- return w.Outer.Error()
-}
-
-func (w *wrappedError) WrappedErrors() []error {
- return []error{w.Outer, w.Inner}
-}
diff --git a/vendor/github.com/hashicorp/go-multierror/LICENSE b/vendor/github.com/hashicorp/go-multierror/LICENSE
deleted file mode 100644
index 82b4de97c..000000000
--- a/vendor/github.com/hashicorp/go-multierror/LICENSE
+++ /dev/null
@@ -1,353 +0,0 @@
-Mozilla Public License, version 2.0
-
-1. Definitions
-
-1.1. “Contributor”
-
- means each individual or legal entity that creates, contributes to the
- creation of, or owns Covered Software.
-
-1.2. “Contributor Version”
-
- means the combination of the Contributions of others (if any) used by a
- Contributor and that particular Contributor’s Contribution.
-
-1.3. “Contribution”
-
- means Covered Software of a particular Contributor.
-
-1.4. “Covered Software”
-
- means Source Code Form to which the initial Contributor has attached the
- notice in Exhibit A, the Executable Form of such Source Code Form, and
- Modifications of such Source Code Form, in each case including portions
- thereof.
-
-1.5. “Incompatible With Secondary Licenses”
- means
-
- a. that the initial Contributor has attached the notice described in
- Exhibit B to the Covered Software; or
-
- b. that the Covered Software was made available under the terms of version
- 1.1 or earlier of the License, but not also under the terms of a
- Secondary License.
-
-1.6. “Executable Form”
-
- means any form of the work other than Source Code Form.
-
-1.7. “Larger Work”
-
- means a work that combines Covered Software with other material, in a separate
- file or files, that is not Covered Software.
-
-1.8. “License”
-
- means this document.
-
-1.9. “Licensable”
-
- means having the right to grant, to the maximum extent possible, whether at the
- time of the initial grant or subsequently, any and all of the rights conveyed by
- this License.
-
-1.10. “Modifications”
-
- means any of the following:
-
- a. any file in Source Code Form that results from an addition to, deletion
- from, or modification of the contents of Covered Software; or
-
- b. any new file in Source Code Form that contains any Covered Software.
-
-1.11. “Patent Claims” of a Contributor
-
- means any patent claim(s), including without limitation, method, process,
- and apparatus claims, in any patent Licensable by such Contributor that
- would be infringed, but for the grant of the License, by the making,
- using, selling, offering for sale, having made, import, or transfer of
- either its Contributions or its Contributor Version.
-
-1.12. “Secondary License”
-
- means either the GNU General Public License, Version 2.0, the GNU Lesser
- General Public License, Version 2.1, the GNU Affero General Public
- License, Version 3.0, or any later versions of those licenses.
-
-1.13. “Source Code Form”
-
- means the form of the work preferred for making modifications.
-
-1.14. “You” (or “Your”)
-
- means an individual or a legal entity exercising rights under this
- License. For legal entities, “You” includes any entity that controls, is
- controlled by, or is under common control with You. For purposes of this
- definition, “control” means (a) the power, direct or indirect, to cause
- the direction or management of such entity, whether by contract or
- otherwise, or (b) ownership of more than fifty percent (50%) of the
- outstanding shares or beneficial ownership of such entity.
-
-
-2. License Grants and Conditions
-
-2.1. Grants
-
- Each Contributor hereby grants You a world-wide, royalty-free,
- non-exclusive license:
-
- a. under intellectual property rights (other than patent or trademark)
- Licensable by such Contributor to use, reproduce, make available,
- modify, display, perform, distribute, and otherwise exploit its
- Contributions, either on an unmodified basis, with Modifications, or as
- part of a Larger Work; and
-
- b. under Patent Claims of such Contributor to make, use, sell, offer for
- sale, have made, import, and otherwise transfer either its Contributions
- or its Contributor Version.
-
-2.2. Effective Date
-
- The licenses granted in Section 2.1 with respect to any Contribution become
- effective for each Contribution on the date the Contributor first distributes
- such Contribution.
-
-2.3. Limitations on Grant Scope
-
- The licenses granted in this Section 2 are the only rights granted under this
- License. No additional rights or licenses will be implied from the distribution
- or licensing of Covered Software under this License. Notwithstanding Section
- 2.1(b) above, no patent license is granted by a Contributor:
-
- a. for any code that a Contributor has removed from Covered Software; or
-
- b. for infringements caused by: (i) Your and any other third party’s
- modifications of Covered Software, or (ii) the combination of its
- Contributions with other software (except as part of its Contributor
- Version); or
-
- c. under Patent Claims infringed by Covered Software in the absence of its
- Contributions.
-
- This License does not grant any rights in the trademarks, service marks, or
- logos of any Contributor (except as may be necessary to comply with the
- notice requirements in Section 3.4).
-
-2.4. Subsequent Licenses
-
- No Contributor makes additional grants as a result of Your choice to
- distribute the Covered Software under a subsequent version of this License
- (see Section 10.2) or under the terms of a Secondary License (if permitted
- under the terms of Section 3.3).
-
-2.5. Representation
-
- Each Contributor represents that the Contributor believes its Contributions
- are its original creation(s) or it has sufficient rights to grant the
- rights to its Contributions conveyed by this License.
-
-2.6. Fair Use
-
- This License is not intended to limit any rights You have under applicable
- copyright doctrines of fair use, fair dealing, or other equivalents.
-
-2.7. Conditions
-
- Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
- Section 2.1.
-
-
-3. Responsibilities
-
-3.1. Distribution of Source Form
-
- All distribution of Covered Software in Source Code Form, including any
- Modifications that You create or to which You contribute, must be under the
- terms of this License. You must inform recipients that the Source Code Form
- of the Covered Software is governed by the terms of this License, and how
- they can obtain a copy of this License. You may not attempt to alter or
- restrict the recipients’ rights in the Source Code Form.
-
-3.2. Distribution of Executable Form
-
- If You distribute Covered Software in Executable Form then:
-
- a. such Covered Software must also be made available in Source Code Form,
- as described in Section 3.1, and You must inform recipients of the
- Executable Form how they can obtain a copy of such Source Code Form by
- reasonable means in a timely manner, at a charge no more than the cost
- of distribution to the recipient; and
-
- b. You may distribute such Executable Form under the terms of this License,
- or sublicense it under different terms, provided that the license for
- the Executable Form does not attempt to limit or alter the recipients’
- rights in the Source Code Form under this License.
-
-3.3. Distribution of a Larger Work
-
- You may create and distribute a Larger Work under terms of Your choice,
- provided that You also comply with the requirements of this License for the
- Covered Software. If the Larger Work is a combination of Covered Software
- with a work governed by one or more Secondary Licenses, and the Covered
- Software is not Incompatible With Secondary Licenses, this License permits
- You to additionally distribute such Covered Software under the terms of
- such Secondary License(s), so that the recipient of the Larger Work may, at
- their option, further distribute the Covered Software under the terms of
- either this License or such Secondary License(s).
-
-3.4. Notices
-
- You may not remove or alter the substance of any license notices (including
- copyright notices, patent notices, disclaimers of warranty, or limitations
- of liability) contained within the Source Code Form of the Covered
- Software, except that You may alter any license notices to the extent
- required to remedy known factual inaccuracies.
-
-3.5. Application of Additional Terms
-
- You may choose to offer, and to charge a fee for, warranty, support,
- indemnity or liability obligations to one or more recipients of Covered
- Software. However, You may do so only on Your own behalf, and not on behalf
- of any Contributor. You must make it absolutely clear that any such
- warranty, support, indemnity, or liability obligation is offered by You
- alone, and You hereby agree to indemnify every Contributor for any
- liability incurred by such Contributor as a result of warranty, support,
- indemnity or liability terms You offer. You may include additional
- disclaimers of warranty and limitations of liability specific to any
- jurisdiction.
-
-4. Inability to Comply Due to Statute or Regulation
-
- If it is impossible for You to comply with any of the terms of this License
- with respect to some or all of the Covered Software due to statute, judicial
- order, or regulation then You must: (a) comply with the terms of this License
- to the maximum extent possible; and (b) describe the limitations and the code
- they affect. Such description must be placed in a text file included with all
- distributions of the Covered Software under this License. Except to the
- extent prohibited by statute or regulation, such description must be
- sufficiently detailed for a recipient of ordinary skill to be able to
- understand it.
-
-5. Termination
-
-5.1. The rights granted under this License will terminate automatically if You
- fail to comply with any of its terms. However, if You become compliant,
- then the rights granted under this License from a particular Contributor
- are reinstated (a) provisionally, unless and until such Contributor
- explicitly and finally terminates Your grants, and (b) on an ongoing basis,
- if such Contributor fails to notify You of the non-compliance by some
- reasonable means prior to 60 days after You have come back into compliance.
- Moreover, Your grants from a particular Contributor are reinstated on an
- ongoing basis if such Contributor notifies You of the non-compliance by
- some reasonable means, this is the first time You have received notice of
- non-compliance with this License from such Contributor, and You become
- compliant prior to 30 days after Your receipt of the notice.
-
-5.2. If You initiate litigation against any entity by asserting a patent
- infringement claim (excluding declaratory judgment actions, counter-claims,
- and cross-claims) alleging that a Contributor Version directly or
- indirectly infringes any patent, then the rights granted to You by any and
- all Contributors for the Covered Software under Section 2.1 of this License
- shall terminate.
-
-5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
- license agreements (excluding distributors and resellers) which have been
- validly granted by You or Your distributors under this License prior to
- termination shall survive termination.
-
-6. Disclaimer of Warranty
-
- Covered Software is provided under this License on an “as is” basis, without
- warranty of any kind, either expressed, implied, or statutory, including,
- without limitation, warranties that the Covered Software is free of defects,
- merchantable, fit for a particular purpose or non-infringing. The entire
- risk as to the quality and performance of the Covered Software is with You.
- Should any Covered Software prove defective in any respect, You (not any
- Contributor) assume the cost of any necessary servicing, repair, or
- correction. This disclaimer of warranty constitutes an essential part of this
- License. No use of any Covered Software is authorized under this License
- except under this disclaimer.
-
-7. Limitation of Liability
-
- Under no circumstances and under no legal theory, whether tort (including
- negligence), contract, or otherwise, shall any Contributor, or anyone who
- distributes Covered Software as permitted above, be liable to You for any
- direct, indirect, special, incidental, or consequential damages of any
- character including, without limitation, damages for lost profits, loss of
- goodwill, work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses, even if such party shall have been
- informed of the possibility of such damages. This limitation of liability
- shall not apply to liability for death or personal injury resulting from such
- party’s negligence to the extent applicable law prohibits such limitation.
- Some jurisdictions do not allow the exclusion or limitation of incidental or
- consequential damages, so this exclusion and limitation may not apply to You.
-
-8. Litigation
-
- Any litigation relating to this License may be brought only in the courts of
- a jurisdiction where the defendant maintains its principal place of business
- and such litigation shall be governed by laws of that jurisdiction, without
- reference to its conflict-of-law provisions. Nothing in this Section shall
- prevent a party’s ability to bring cross-claims or counter-claims.
-
-9. Miscellaneous
-
- This License represents the complete agreement concerning the subject matter
- hereof. If any provision of this License is held to be unenforceable, such
- provision shall be reformed only to the extent necessary to make it
- enforceable. Any law or regulation which provides that the language of a
- contract shall be construed against the drafter shall not be used to construe
- this License against a Contributor.
-
-
-10. Versions of the License
-
-10.1. New Versions
-
- Mozilla Foundation is the license steward. Except as provided in Section
- 10.3, no one other than the license steward has the right to modify or
- publish new versions of this License. Each version will be given a
- distinguishing version number.
-
-10.2. Effect of New Versions
-
- You may distribute the Covered Software under the terms of the version of
- the License under which You originally received the Covered Software, or
- under the terms of any subsequent version published by the license
- steward.
-
-10.3. Modified Versions
-
- If you create software not governed by this License, and you want to
- create a new license for such software, you may create and use a modified
- version of this License if you rename the license and remove any
- references to the name of the license steward (except to note that such
- modified license differs from this License).
-
-10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
- If You choose to distribute Source Code Form that is Incompatible With
- Secondary Licenses under the terms of this version of the License, the
- notice described in Exhibit B of this License must be attached.
-
-Exhibit A - Source Code Form License Notice
-
- This Source Code Form is subject to the
- terms of the Mozilla Public License, v.
- 2.0. If a copy of the MPL was not
- distributed with this file, You can
- obtain one at
- http://mozilla.org/MPL/2.0/.
-
-If it is not possible or desirable to put the notice in a particular file, then
-You may include the notice in a location (such as a LICENSE file in a relevant
-directory) where a recipient would be likely to look for such a notice.
-
-You may add additional accurate notices of copyright ownership.
-
-Exhibit B - “Incompatible With Secondary Licenses” Notice
-
- This Source Code Form is “Incompatible
- With Secondary Licenses”, as defined by
- the Mozilla Public License, v. 2.0.
diff --git a/vendor/github.com/hashicorp/go-multierror/Makefile b/vendor/github.com/hashicorp/go-multierror/Makefile
deleted file mode 100644
index b97cd6ed0..000000000
--- a/vendor/github.com/hashicorp/go-multierror/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-TEST?=./...
-
-default: test
-
-# test runs the test suite and vets the code.
-test: generate
- @echo "==> Running tests..."
- @go list $(TEST) \
- | grep -v "/vendor/" \
- | xargs -n1 go test -timeout=60s -parallel=10 ${TESTARGS}
-
-# testrace runs the race checker
-testrace: generate
- @echo "==> Running tests (race)..."
- @go list $(TEST) \
- | grep -v "/vendor/" \
- | xargs -n1 go test -timeout=60s -race ${TESTARGS}
-
-# updatedeps installs all the dependencies needed to run and build.
-updatedeps:
- @sh -c "'${CURDIR}/scripts/deps.sh' '${NAME}'"
-
-# generate runs `go generate` to build the dynamically generated source files.
-generate:
- @echo "==> Generating..."
- @find . -type f -name '.DS_Store' -delete
- @go list ./... \
- | grep -v "/vendor/" \
- | xargs -n1 go generate
-
-.PHONY: default test testrace updatedeps generate
diff --git a/vendor/github.com/hashicorp/go-multierror/README.md b/vendor/github.com/hashicorp/go-multierror/README.md
deleted file mode 100644
index 71dd308ed..000000000
--- a/vendor/github.com/hashicorp/go-multierror/README.md
+++ /dev/null
@@ -1,150 +0,0 @@
-# go-multierror
-
-[](https://circleci.com/gh/hashicorp/go-multierror)
-[](https://pkg.go.dev/github.com/hashicorp/go-multierror)
-
-
-[circleci]: https://app.circleci.com/pipelines/github/hashicorp/go-multierror
-[godocs]: https://pkg.go.dev/github.com/hashicorp/go-multierror
-
-`go-multierror` is a package for Go that provides a mechanism for
-representing a list of `error` values as a single `error`.
-
-This allows a function in Go to return an `error` that might actually
-be a list of errors. If the caller knows this, they can unwrap the
-list and access the errors. If the caller doesn't know, the error
-formats to a nice human-readable format.
-
-`go-multierror` is fully compatible with the Go standard library
-[errors](https://golang.org/pkg/errors/) package, including the
-functions `As`, `Is`, and `Unwrap`. This provides a standardized approach
-for introspecting on error values.
-
-## Installation and Docs
-
-Install using `go get github.com/hashicorp/go-multierror`.
-
-Full documentation is available at
-https://pkg.go.dev/github.com/hashicorp/go-multierror
-
-### Requires go version 1.13 or newer
-
-`go-multierror` requires go version 1.13 or newer. Go 1.13 introduced
-[error wrapping](https://golang.org/doc/go1.13#error_wrapping), which
-this library takes advantage of.
-
-If you need to use an earlier version of go, you can use the
-[v1.0.0](https://github.com/hashicorp/go-multierror/tree/v1.0.0)
-tag, which doesn't rely on features in go 1.13.
-
-If you see compile errors that look like the below, it's likely that
-you're on an older version of go:
-
-```
-/go/src/github.com/hashicorp/go-multierror/multierror.go:112:9: undefined: errors.As
-/go/src/github.com/hashicorp/go-multierror/multierror.go:117:9: undefined: errors.Is
-```
-
-## Usage
-
-go-multierror is easy to use and purposely built to be unobtrusive in
-existing Go applications/libraries that may not be aware of it.
-
-**Building a list of errors**
-
-The `Append` function is used to create a list of errors. This function
-behaves a lot like the Go built-in `append` function: it doesn't matter
-if the first argument is nil, a `multierror.Error`, or any other `error`,
-the function behaves as you would expect.
-
-```go
-var result error
-
-if err := step1(); err != nil {
- result = multierror.Append(result, err)
-}
-if err := step2(); err != nil {
- result = multierror.Append(result, err)
-}
-
-return result
-```
-
-**Customizing the formatting of the errors**
-
-By specifying a custom `ErrorFormat`, you can customize the format
-of the `Error() string` function:
-
-```go
-var result *multierror.Error
-
-// ... accumulate errors here, maybe using Append
-
-if result != nil {
- result.ErrorFormat = func([]error) string {
- return "errors!"
- }
-}
-```
-
-**Accessing the list of errors**
-
-`multierror.Error` implements `error` so if the caller doesn't know about
-multierror, it will work just fine. But if you're aware a multierror might
-be returned, you can use type switches to access the list of errors:
-
-```go
-if err := something(); err != nil {
- if merr, ok := err.(*multierror.Error); ok {
- // Use merr.Errors
- }
-}
-```
-
-You can also use the standard [`errors.Unwrap`](https://golang.org/pkg/errors/#Unwrap)
-function. This will continue to unwrap into subsequent errors until none exist.
-
-**Extracting an error**
-
-The standard library [`errors.As`](https://golang.org/pkg/errors/#As)
-function can be used directly with a multierror to extract a specific error:
-
-```go
-// Assume err is a multierror value
-err := somefunc()
-
-// We want to know if "err" has a "RichErrorType" in it and extract it.
-var errRich RichErrorType
-if errors.As(err, &errRich) {
- // It has it, and now errRich is populated.
-}
-```
-
-**Checking for an exact error value**
-
-Some errors are returned as exact errors such as the [`ErrNotExist`](https://golang.org/pkg/os/#pkg-variables)
-error in the `os` package. You can check if this error is present by using
-the standard [`errors.Is`](https://golang.org/pkg/errors/#Is) function.
-
-```go
-// Assume err is a multierror value
-err := somefunc()
-if errors.Is(err, os.ErrNotExist) {
- // err contains os.ErrNotExist
-}
-```
-
-**Returning a multierror only if there are errors**
-
-If you build a `multierror.Error`, you can use the `ErrorOrNil` function
-to return an `error` implementation only if there are errors to return:
-
-```go
-var result *multierror.Error
-
-// ... accumulate errors here
-
-// Return the `error` only if errors were added to the multierror, otherwise
-// return nil since there are no errors.
-return result.ErrorOrNil()
-```
diff --git a/vendor/github.com/hashicorp/go-multierror/append.go b/vendor/github.com/hashicorp/go-multierror/append.go
deleted file mode 100644
index 3e2589bfd..000000000
--- a/vendor/github.com/hashicorp/go-multierror/append.go
+++ /dev/null
@@ -1,43 +0,0 @@
-package multierror
-
-// Append is a helper function that will append more errors
-// onto an Error in order to create a larger multi-error.
-//
-// If err is not a multierror.Error, then it will be turned into
-// one. If any of the errs are multierr.Error, they will be flattened
-// one level into err.
-// Any nil errors within errs will be ignored. If err is nil, a new
-// *Error will be returned.
-func Append(err error, errs ...error) *Error {
- switch err := err.(type) {
- case *Error:
- // Typed nils can reach here, so initialize if we are nil
- if err == nil {
- err = new(Error)
- }
-
- // Go through each error and flatten
- for _, e := range errs {
- switch e := e.(type) {
- case *Error:
- if e != nil {
- err.Errors = append(err.Errors, e.Errors...)
- }
- default:
- if e != nil {
- err.Errors = append(err.Errors, e)
- }
- }
- }
-
- return err
- default:
- newErrs := make([]error, 0, len(errs)+1)
- if err != nil {
- newErrs = append(newErrs, err)
- }
- newErrs = append(newErrs, errs...)
-
- return Append(&Error{}, newErrs...)
- }
-}
diff --git a/vendor/github.com/hashicorp/go-multierror/flatten.go b/vendor/github.com/hashicorp/go-multierror/flatten.go
deleted file mode 100644
index aab8e9abe..000000000
--- a/vendor/github.com/hashicorp/go-multierror/flatten.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package multierror
-
-// Flatten flattens the given error, merging any *Errors together into
-// a single *Error.
-func Flatten(err error) error {
- // If it isn't an *Error, just return the error as-is
- if _, ok := err.(*Error); !ok {
- return err
- }
-
- // Otherwise, make the result and flatten away!
- flatErr := new(Error)
- flatten(err, flatErr)
- return flatErr
-}
-
-func flatten(err error, flatErr *Error) {
- switch err := err.(type) {
- case *Error:
- for _, e := range err.Errors {
- flatten(e, flatErr)
- }
- default:
- flatErr.Errors = append(flatErr.Errors, err)
- }
-}
diff --git a/vendor/github.com/hashicorp/go-multierror/format.go b/vendor/github.com/hashicorp/go-multierror/format.go
deleted file mode 100644
index 47f13c49a..000000000
--- a/vendor/github.com/hashicorp/go-multierror/format.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package multierror
-
-import (
- "fmt"
- "strings"
-)
-
-// ErrorFormatFunc is a function callback that is called by Error to
-// turn the list of errors into a string.
-type ErrorFormatFunc func([]error) string
-
-// ListFormatFunc is a basic formatter that outputs the number of errors
-// that occurred along with a bullet point list of the errors.
-func ListFormatFunc(es []error) string {
- if len(es) == 1 {
- return fmt.Sprintf("1 error occurred:\n\t* %s\n\n", es[0])
- }
-
- points := make([]string, len(es))
- for i, err := range es {
- points[i] = fmt.Sprintf("* %s", err)
- }
-
- return fmt.Sprintf(
- "%d errors occurred:\n\t%s\n\n",
- len(es), strings.Join(points, "\n\t"))
-}
diff --git a/vendor/github.com/hashicorp/go-multierror/group.go b/vendor/github.com/hashicorp/go-multierror/group.go
deleted file mode 100644
index 9c29efb7f..000000000
--- a/vendor/github.com/hashicorp/go-multierror/group.go
+++ /dev/null
@@ -1,38 +0,0 @@
-package multierror
-
-import "sync"
-
-// Group is a collection of goroutines which return errors that need to be
-// coalesced.
-type Group struct {
- mutex sync.Mutex
- err *Error
- wg sync.WaitGroup
-}
-
-// Go calls the given function in a new goroutine.
-//
-// If the function returns an error it is added to the group multierror which
-// is returned by Wait.
-func (g *Group) Go(f func() error) {
- g.wg.Add(1)
-
- go func() {
- defer g.wg.Done()
-
- if err := f(); err != nil {
- g.mutex.Lock()
- g.err = Append(g.err, err)
- g.mutex.Unlock()
- }
- }()
-}
-
-// Wait blocks until all function calls from the Go method have returned, then
-// returns the multierror.
-func (g *Group) Wait() *Error {
- g.wg.Wait()
- g.mutex.Lock()
- defer g.mutex.Unlock()
- return g.err
-}
diff --git a/vendor/github.com/hashicorp/go-multierror/multierror.go b/vendor/github.com/hashicorp/go-multierror/multierror.go
deleted file mode 100644
index f54574326..000000000
--- a/vendor/github.com/hashicorp/go-multierror/multierror.go
+++ /dev/null
@@ -1,121 +0,0 @@
-package multierror
-
-import (
- "errors"
- "fmt"
-)
-
-// Error is an error type to track multiple errors. This is used to
-// accumulate errors in cases and return them as a single "error".
-type Error struct {
- Errors []error
- ErrorFormat ErrorFormatFunc
-}
-
-func (e *Error) Error() string {
- fn := e.ErrorFormat
- if fn == nil {
- fn = ListFormatFunc
- }
-
- return fn(e.Errors)
-}
-
-// ErrorOrNil returns an error interface if this Error represents
-// a list of errors, or returns nil if the list of errors is empty. This
-// function is useful at the end of accumulation to make sure that the value
-// returned represents the existence of errors.
-func (e *Error) ErrorOrNil() error {
- if e == nil {
- return nil
- }
- if len(e.Errors) == 0 {
- return nil
- }
-
- return e
-}
-
-func (e *Error) GoString() string {
- return fmt.Sprintf("*%#v", *e)
-}
-
-// WrappedErrors returns the list of errors that this Error is wrapping. It is
-// an implementation of the errwrap.Wrapper interface so that multierror.Error
-// can be used with that library.
-//
-// This method is not safe to be called concurrently. Unlike accessing the
-// Errors field directly, this function also checks if the multierror is nil to
-// prevent a null-pointer panic. It satisfies the errwrap.Wrapper interface.
-func (e *Error) WrappedErrors() []error {
- if e == nil {
- return nil
- }
- return e.Errors
-}
-
-// Unwrap returns an error from Error (or nil if there are no errors).
-// This error returned will further support Unwrap to get the next error,
-// etc. The order will match the order of Errors in the multierror.Error
-// at the time of calling.
-//
-// The resulting error supports errors.As/Is/Unwrap so you can continue
-// to use the stdlib errors package to introspect further.
-//
-// This will perform a shallow copy of the errors slice. Any errors appended
-// to this error after calling Unwrap will not be available until a new
-// Unwrap is called on the multierror.Error.
-func (e *Error) Unwrap() error {
- // If we have no errors then we do nothing
- if e == nil || len(e.Errors) == 0 {
- return nil
- }
-
- // If we have exactly one error, we can just return that directly.
- if len(e.Errors) == 1 {
- return e.Errors[0]
- }
-
- // Shallow copy the slice
- errs := make([]error, len(e.Errors))
- copy(errs, e.Errors)
- return chain(errs)
-}
-
-// chain implements the interfaces necessary for errors.Is/As/Unwrap to
-// work in a deterministic way with multierror. A chain tracks a list of
-// errors while accounting for the current represented error. This lets
-// Is/As be meaningful.
-//
-// Unwrap returns the next error. In the cleanest form, Unwrap would return
-// the wrapped error here but we can't do that if we want to properly
-// get access to all the errors. Instead, users are recommended to use
-// Is/As to get the correct error type out.
-//
-// Precondition: []error is non-empty (len > 0)
-type chain []error
-
-// Error implements the error interface
-func (e chain) Error() string {
- return e[0].Error()
-}
-
-// Unwrap implements errors.Unwrap by returning the next error in the
-// chain or nil if there are no more errors.
-func (e chain) Unwrap() error {
- if len(e) == 1 {
- return nil
- }
-
- return e[1:]
-}
-
-// As implements errors.As by attempting to map to the current value.
-func (e chain) As(target interface{}) bool {
- return errors.As(e[0], target)
-}
-
-// Is implements errors.Is by comparing the current value directly.
-func (e chain) Is(target error) bool {
- return errors.Is(e[0], target)
-}
diff --git a/vendor/github.com/hashicorp/go-multierror/prefix.go b/vendor/github.com/hashicorp/go-multierror/prefix.go
deleted file mode 100644
index 5c477abe4..000000000
--- a/vendor/github.com/hashicorp/go-multierror/prefix.go
+++ /dev/null
@@ -1,37 +0,0 @@
-package multierror
-
-import (
- "fmt"
-
- "github.com/hashicorp/errwrap"
-)
-
-// Prefix is a helper function that will prefix some text
-// to the given error. If the error is a multierror.Error, then
-// it will be prefixed to each wrapped error.
-//
-// This is useful to use when appending multiple multierrors
-// together in order to give better scoping.
-func Prefix(err error, prefix string) error {
- if err == nil {
- return nil
- }
-
- format := fmt.Sprintf("%s {{err}}", prefix)
- switch err := err.(type) {
- case *Error:
- // Typed nils can reach here, so initialize if we are nil
- if err == nil {
- err = new(Error)
- }
-
- // Wrap each of the errors
- for i, e := range err.Errors {
- err.Errors[i] = errwrap.Wrapf(format, e)
- }
-
- return err
- default:
- return errwrap.Wrapf(format, err)
- }
-}
diff --git a/vendor/github.com/hashicorp/go-multierror/sort.go b/vendor/github.com/hashicorp/go-multierror/sort.go
deleted file mode 100644
index fecb14e81..000000000
--- a/vendor/github.com/hashicorp/go-multierror/sort.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package multierror
-
-// Len implements sort.Interface function for length
-func (err Error) Len() int {
- return len(err.Errors)
-}
-
-// Swap implements sort.Interface function for swapping elements
-func (err Error) Swap(i, j int) {
- err.Errors[i], err.Errors[j] = err.Errors[j], err.Errors[i]
-}
-
-// Less implements sort.Interface function for determining order
-func (err Error) Less(i, j int) bool {
- return err.Errors[i].Error() < err.Errors[j].Error()
-}
diff --git a/vendor/github.com/iancoleman/strcase/.travis.yml b/vendor/github.com/iancoleman/strcase/.travis.yml
deleted file mode 100644
index 4da3ca1dc..000000000
--- a/vendor/github.com/iancoleman/strcase/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-sudo: false
-language: go
-go:
- - 1.7.x
- - 1.8.x
- - 1.9.x
- - 1.10.x
- - 1.11.x
- - master
diff --git a/vendor/github.com/iancoleman/strcase/LICENSE b/vendor/github.com/iancoleman/strcase/LICENSE
deleted file mode 100644
index 3e87ff70e..000000000
--- a/vendor/github.com/iancoleman/strcase/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 Ian Coleman
-Copyright (c) 2018 Ma_124,
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, Subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or Substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/github.com/iancoleman/strcase/README.md b/vendor/github.com/iancoleman/strcase/README.md
deleted file mode 100644
index 5f6391de3..000000000
--- a/vendor/github.com/iancoleman/strcase/README.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# strcase
-[](http://godoc.org/github.com/iancoleman/strcase)
-[](https://travis-ci.org/iancoleman/strcase)
-[](http://gocover.io/github.com/iancoleman/strcase)
-[](https://goreportcard.com/report/github.com/iancoleman/strcase)
-
-strcase is a go package for converting string case to various cases (e.g. [snake case](https://en.wikipedia.org/wiki/Snake_case) or [camel case](https://en.wikipedia.org/wiki/CamelCase)) to see the full conversion table below.
-
-## Example
-
-```go
-s := "AnyKind of_string"
-```
-
-| Function | Result |
-|-------------------------------------------|----------------------|
-| `ToSnake(s)` | `any_kind_of_string` |
-| `ToSnakeWithIgnore(s, '.')` | `any_kind.of_string` |
-| `ToScreamingSnake(s)` | `ANY_KIND_OF_STRING` |
-| `ToKebab(s)` | `any-kind-of-string` |
-| `ToScreamingKebab(s)` | `ANY-KIND-OF-STRING` |
-| `ToDelimited(s, '.')` | `any.kind.of.string` |
-| `ToScreamingDelimited(s, '.', '', true)` | `ANY.KIND.OF.STRING` |
-| `ToScreamingDelimited(s, '.', ' ', true)` | `ANY.KIND OF.STRING` |
-| `ToCamel(s)` | `AnyKindOfString` |
-| `ToLowerCamel(s)` | `anyKindOfString` |
-
-
-## Install
-
-```bash
-go get -u github.com/iancoleman/strcase
-```
diff --git a/vendor/github.com/iancoleman/strcase/acronyms.go b/vendor/github.com/iancoleman/strcase/acronyms.go
deleted file mode 100644
index 3b0606490..000000000
--- a/vendor/github.com/iancoleman/strcase/acronyms.go
+++ /dev/null
@@ -1,5 +0,0 @@
-package strcase
-
-var uppercaseAcronym = map[string]bool{
- "ID": true,
-}
diff --git a/vendor/github.com/iancoleman/strcase/camel.go b/vendor/github.com/iancoleman/strcase/camel.go
deleted file mode 100644
index 4aab39a17..000000000
--- a/vendor/github.com/iancoleman/strcase/camel.go
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 Ian Coleman
- * Copyright (c) 2018 Ma_124,
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, Subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or Substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-package strcase
-
-import (
- "strings"
-)
-
-// Converts a string to CamelCase
-func toCamelInitCase(s string, initCase bool) string {
- s = addWordBoundariesToNumbers(s)
- s = strings.Trim(s, " ")
- n := ""
- capNext := initCase
- for _, v := range s {
- if v >= 'A' && v <= 'Z' {
- n += string(v)
- }
- if v >= '0' && v <= '9' {
- n += string(v)
- }
- if v >= 'a' && v <= 'z' {
- if capNext {
- n += strings.ToUpper(string(v))
- } else {
- n += string(v)
- }
- }
- if v == '_' || v == ' ' || v == '-' || v == '.' {
- capNext = true
- } else {
- capNext = false
- }
- }
- return n
-}
-
-// ToCamel converts a string to CamelCase
-func ToCamel(s string) string {
- if uppercaseAcronym[s] {
- s = strings.ToLower(s)
- }
- return toCamelInitCase(s, true)
-}
-
-// ToLowerCamel converts a string to lowerCamelCase
-func ToLowerCamel(s string) string {
- if s == "" {
- return s
- }
- if uppercaseAcronym[s] {
- s = strings.ToLower(s)
- }
- if r := rune(s[0]); r >= 'A' && r <= 'Z' {
- s = strings.ToLower(string(r)) + s[1:]
- }
- return toCamelInitCase(s, false)
-}
diff --git a/vendor/github.com/iancoleman/strcase/doc.go b/vendor/github.com/iancoleman/strcase/doc.go
deleted file mode 100644
index 5e1825b9e..000000000
--- a/vendor/github.com/iancoleman/strcase/doc.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Package strcase converts strings to various cases. See the conversion table below:
-// | Function | Result |
-// |---------------------------------|--------------------|
-// | ToSnake(s) | any_kind_of_string |
-// | ToScreamingSnake(s) | ANY_KIND_OF_STRING |
-// | ToKebab(s) | any-kind-of-string |
-// | ToScreamingKebab(s) | ANY-KIND-OF-STRING |
-// | ToDelimited(s, '.') | any.kind.of.string |
-// | ToScreamingDelimited(s, '.') | ANY.KIND.OF.STRING |
-// | ToCamel(s) | AnyKindOfString |
-// | ToLowerCamel(s) | anyKindOfString |
-package strcase
diff --git a/vendor/github.com/iancoleman/strcase/numbers.go b/vendor/github.com/iancoleman/strcase/numbers.go
deleted file mode 100644
index fdf07cb06..000000000
--- a/vendor/github.com/iancoleman/strcase/numbers.go
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 Ian Coleman
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, Subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or Substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-package strcase
-
-import (
- "regexp"
-)
-
-var numberSequence = regexp.MustCompile(`([a-zA-Z])(\d+)([a-zA-Z]?)`)
-var numberReplacement = []byte(`$1 $2 $3`)
-
-func addWordBoundariesToNumbers(s string) string {
- b := []byte(s)
- b = numberSequence.ReplaceAll(b, numberReplacement)
- return string(b)
-}
diff --git a/vendor/github.com/iancoleman/strcase/snake.go b/vendor/github.com/iancoleman/strcase/snake.go
deleted file mode 100644
index 8e8867bc0..000000000
--- a/vendor/github.com/iancoleman/strcase/snake.go
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 Ian Coleman
- * Copyright (c) 2018 Ma_124,
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, Subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or Substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-package strcase
-
-import (
- "strings"
-)
-
-// ToSnake converts a string to snake_case
-func ToSnake(s string) string {
-
- return ToDelimited(s, '_')
-}
-func ToSnakeWithIgnore(s string, ignore uint8) string {
-
- return ToScreamingDelimited(s, '_', ignore, false)
-}
-
-// ToScreamingSnake converts a string to SCREAMING_SNAKE_CASE
-func ToScreamingSnake(s string) string {
- return ToScreamingDelimited(s, '_', 0, true)
-}
-
-// ToKebab converts a string to kebab-case
-func ToKebab(s string) string {
- return ToDelimited(s, '-')
-}
-
-// ToScreamingKebab converts a string to SCREAMING-KEBAB-CASE
-func ToScreamingKebab(s string) string {
- return ToScreamingDelimited(s, '-', 0, true)
-}
-
-// ToDelimited converts a string to delimited.snake.case
-// (in this case `delimiter = '.'`)
-func ToDelimited(s string, delimiter uint8) string {
- return ToScreamingDelimited(s, delimiter, 0, false)
-}
-
-// ToScreamingDelimited converts a string to SCREAMING.DELIMITED.SNAKE.CASE
-// (in this case `delimiter = '.'; screaming = true`)
-// or delimited.snake.case
-// (in this case `delimiter = '.'; screaming = false`)
-func ToScreamingDelimited(s string, delimiter uint8, ignore uint8, screaming bool) string {
- s = addWordBoundariesToNumbers(s)
- s = strings.Trim(s, " ")
- n := ""
- for i, v := range s {
- // treat acronyms as words, eg for JSONData -> JSON is a whole word
- nextCaseIsChanged := false
- if i+1 < len(s) {
- next := s[i+1]
- vIsCap := v >= 'A' && v <= 'Z'
- vIsLow := v >= 'a' && v <= 'z'
- nextIsCap := next >= 'A' && next <= 'Z'
- nextIsLow := next >= 'a' && next <= 'z'
- if (vIsCap && nextIsLow) || (vIsLow && nextIsCap) {
- nextCaseIsChanged = true
- }
- if ignore > 0 && i-1 >= 0 && s[i-1] == ignore && nextCaseIsChanged {
- nextCaseIsChanged = false
- }
- }
-
- if i > 0 && n[len(n)-1] != delimiter && nextCaseIsChanged {
- // add underscore if next letter case type is changed
- if v >= 'A' && v <= 'Z' {
- n += string(delimiter) + string(v)
- } else if v >= 'a' && v <= 'z' {
- n += string(v) + string(delimiter)
- }
- } else if v == ' ' || v == '_' || v == '-' {
- // replace spaces/underscores with delimiters
- if uint8(v) == ignore {
- n += string(v)
- } else {
- n += string(delimiter)
- }
- } else {
- n = n + string(v)
- }
- }
-
- if screaming {
- n = strings.ToUpper(n)
- } else {
- n = strings.ToLower(n)
- }
- return n
-}
diff --git a/vendor/github.com/igungor/gofakes3/.gitignore b/vendor/github.com/igungor/gofakes3/.gitignore
deleted file mode 100644
index e56ea02f3..000000000
--- a/vendor/github.com/igungor/gofakes3/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-.idea/
-*.DS_Store
-DS_Store
-node_modules/
-logs/
-*.db
-s3f_*
-*.test
-*.out
-build/
diff --git a/vendor/github.com/igungor/gofakes3/.gitmodules b/vendor/github.com/igungor/gofakes3/.gitmodules
deleted file mode 100644
index 8f12d2320..000000000
--- a/vendor/github.com/igungor/gofakes3/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "s3test/s3-tests"]
- path = s3test/s3-tests
- url = https://github.com/ceph/s3-tests
diff --git a/vendor/github.com/igungor/gofakes3/Dockerfile b/vendor/github.com/igungor/gofakes3/Dockerfile
deleted file mode 100644
index 615603d5f..000000000
--- a/vendor/github.com/igungor/gofakes3/Dockerfile
+++ /dev/null
@@ -1,5 +0,0 @@
-FROM scratch
-ADD ca-certificates.crt /etc/ssl/certs/
-ADD build/main /
-EXPOSE 9000
-CMD ["/main", "-backend", "mem"]
diff --git a/vendor/github.com/igungor/gofakes3/GoFakeS3.png b/vendor/github.com/igungor/gofakes3/GoFakeS3.png
deleted file mode 100644
index 38e026951..000000000
Binary files a/vendor/github.com/igungor/gofakes3/GoFakeS3.png and /dev/null differ
diff --git a/vendor/github.com/igungor/gofakes3/LICENSE b/vendor/github.com/igungor/gofakes3/LICENSE
deleted file mode 100644
index 7f374cef8..000000000
--- a/vendor/github.com/igungor/gofakes3/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016 Johannes Boyne
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/github.com/igungor/gofakes3/README.md b/vendor/github.com/igungor/gofakes3/README.md
deleted file mode 100644
index 11ce7c2ad..000000000
--- a/vendor/github.com/igungor/gofakes3/README.md
+++ /dev/null
@@ -1,164 +0,0 @@
-[](https://circleci.com/gh/johannesboyne/gofakes3)
-[](https://codecov.io/gh/johannesboyne/gofakes3)
-
-
-# AWS (GOFAKE)S3
-
-AWS S3 fake server and testing library for extensive S3 test integrations.
-Either by running a test-server, e.g. for testing of AWS Lambda functions
-accessing S3. Or, to have a simple and convencience S3 mock- and test-server.
-
-## What to use it for?
-
-We're using it for the local development of S3 dependent Lambda functions,
-to test AWS S3 golang implementations and access, and
-to test browser based direct uploads to S3 locally.
-
-
-## What not to use it for?
-
-Please don't use gofakes3 as a production service. The intended use case for
-gofakes3 is currently to facilitate testing. It's not meant to be used for
-safe, persistent access to production data at the moment.
-
-There's no reason we couldn't set that as a stretch goal at a later date, but
-it's a long way down the road, especially while we have so much of the API left
-to implement; breaking changes are inevitable.
-
-In the meantime, there are more battle-hardened solutions for production
-workloads out there, some of which are listed in the "Similar Notable Projects"
-section below.
-
-
-## How to use it?
-
-### Example
-
-```golang
-// fake s3
-backend := s3mem.New()
-faker := gofakes3.New(backend)
-ts := httptest.NewServer(faker.Server())
-defer ts.Close()
-
-// configure S3 client
-s3Config := &aws.Config{
- Credentials: credentials.NewStaticCredentials("YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", ""),
- Endpoint: aws.String(ts.URL),
- Region: aws.String("eu-central-1"),
- DisableSSL: aws.Bool(true),
- S3ForcePathStyle: aws.Bool(true),
-}
-newSession := session.New(s3Config)
-
-s3Client := s3.New(newSession)
-cparams := &s3.CreateBucketInput{
- Bucket: aws.String("newbucket"),
-}
-
-// Create a new bucket using the CreateBucket call.
-_, err := s3Client.CreateBucket(cparams)
-if err != nil {
- // Message from an error.
- fmt.Println(err.Error())
- return
-}
-
-// Upload a new object "testobject" with the string "Hello World!" to our "newbucket".
-_, err = s3Client.PutObject(&s3.PutObjectInput{
- Body: strings.NewReader(`{"configuration": {"main_color": "#333"}, "screens": []}`),
- Bucket: aws.String("newbucket"),
- Key: aws.String("test.txt"),
-})
-
-// ... accessing of test.txt through any S3 client would now be possible
-```
-
-Please feel free to check it out and to provide useful feedback (using github
-issues), but be aware, this software is used internally and for the local
-development only. Thus, it has no demand for correctness, performance or
-security.
-
-There are two ways to run locally: using DNS, or using S3 path mode.
-
-S3 path mode is the most flexible and least restrictive, but it does require that you
-are able to modify your client code.In Go, the modification would look like so:
-
- config := aws.Config{}
- config.WithS3ForcePathStyle(true)
-
-S3 path mode works over the network by default for all bucket names.
-
-If you are unable to modify the code, DNS mode can be used, but it comes with further
-restrictions and requires you to be able to modify your local DNS resolution.
-
-If using `localhost` as your endpoint, you will need to add the following to
-`/etc/hosts` for *every bucket you want to fake*:
-
- 127.0.0.1 .localhost
-
-It is trickier if you want other machines to be able to use your fake S3 server
-as you need to be able to modify their DNS resolution as well.
-
-
-## Exemplary usage
-
-### Lambda Example
-
-```javascript
-var AWS = require('aws-sdk')
-
-var ep = new AWS.Endpoint('http://localhost:9000');
-var s3 = new AWS.S3({endpoint: ep});
-
-exports.handle = function (e, ctx) {
- s3.createBucket({
- Bucket: '',
- }, function(err, data) {
- if (err) return console.log(err, err.stack);
- ctx.succeed(data)
- });
-}
-```
-
-### Upload Example
-
-```html
-
-
-
-
-
-
-
-
-```
-
-## Similar notable projects
-
-- https://github.com/minio/minio **not similar but powerfull ;-)**
-- https://github.com/andrewgaul/s3proxy by @andrewgaul
-
-## Contributors
-
-A big thank you to all the [contributors](https://github.com/johannesboyne/gofakes3/graphs/contributors),
-especially [Blake @shabbyrobe](https://github.com/shabbyrobe) who pushed this
-little project to the next level!
diff --git a/vendor/github.com/igungor/gofakes3/backend.go b/vendor/github.com/igungor/gofakes3/backend.go
deleted file mode 100644
index c537e6d5f..000000000
--- a/vendor/github.com/igungor/gofakes3/backend.go
+++ /dev/null
@@ -1,311 +0,0 @@
-package gofakes3
-
-import (
- "io"
-)
-
-const (
- DefaultBucketVersionKeys = 1000
-)
-
-// Object contains the data retrieved from a backend for the specified bucket
-// and object key.
-//
-// You MUST always call Contents.Close() otherwise you may leak resources.
-type Object struct {
- Name string
- Metadata map[string]string
- Size int64
- Contents io.ReadCloser
- Hash []byte
- Range *ObjectRange
- StorageClass StorageClass
-
- // VersionID will be empty if bucket versioning has not been enabled.
- VersionID VersionID
-
- // If versioning is enabled for the bucket, this is true if this object version
- // is a delete marker.
- IsDeleteMarker bool
-}
-
-type ObjectList struct {
- CommonPrefixes []CommonPrefix
- Contents []*Content
- IsTruncated bool
- NextMarker string
-
- // prefixes maintains an index of prefixes that have already been seen.
- // This is a convenience for backend implementers like s3bolt and s3mem,
- // which operate on a full, flat list of keys.
- prefixes map[string]bool
-}
-
-func NewObjectList() *ObjectList {
- return &ObjectList{}
-}
-
-func (b *ObjectList) Add(item *Content) {
- b.Contents = append(b.Contents, item)
-}
-
-func (b *ObjectList) AddPrefix(prefix string) {
- if b.prefixes == nil {
- b.prefixes = map[string]bool{}
- } else if b.prefixes[prefix] {
- return
- }
- b.prefixes[prefix] = true
- b.CommonPrefixes = append(b.CommonPrefixes, CommonPrefix{Prefix: prefix})
-}
-
-type ObjectDeleteResult struct {
- // Specifies whether the versioned object that was permanently deleted was
- // (true) or was not (false) a delete marker. In a simple DELETE, this
- // header indicates whether (true) or not (false) a delete marker was
- // created.
- IsDeleteMarker bool
-
- // Returns the version ID of the delete marker created as a result of the
- // DELETE operation. If you delete a specific object version, the value
- // returned by this header is the version ID of the object version deleted.
- VersionID VersionID
-}
-
-type ListBucketVersionsPage struct {
- // Specifies the key in the bucket that you want to start listing from.
- // If HasKeyMarker is true, this must be non-empty.
- KeyMarker string
- HasKeyMarker bool
-
- // Specifies the object version you want to start listing from. If
- // HasVersionIDMarker is true, this must be non-empty.
- VersionIDMarker VersionID
- HasVersionIDMarker bool
-
- // Sets the maximum number of keys returned in the response body. The
- // response might contain fewer keys, but will never contain more. If
- // additional keys satisfy the search criteria, but were not returned
- // because max-keys was exceeded, the response contains
- // true . To return the additional keys, see
- // key-marker and version-id-marker.
- //
- // MaxKeys MUST be > 0, otherwise it is ignored.
- MaxKeys int64
-}
-
-type ListBucketPage struct {
- // Specifies the key in the bucket that represents the last item in
- // the previous page. The first key in the returned page will be the
- // next lexicographically (UTF-8 binary) sorted key after Marker.
- // If HasMarker is true, this must be non-empty.
- Marker string
- HasMarker bool
-
- // Sets the maximum number of keys returned in the response body. The
- // response might contain fewer keys, but will never contain more. If
- // additional keys satisfy the search criteria, but were not returned
- // because max-keys was exceeded, the response contains
- // true . To return the additional keys, see
- // key-marker and version-id-marker.
- //
- // MaxKeys MUST be > 0, otherwise it is ignored.
- MaxKeys int64
-}
-
-func (p ListBucketPage) IsEmpty() bool {
- return p == ListBucketPage{}
-}
-
-type PutObjectResult struct {
- // If versioning is enabled on the bucket, this should be set to the
- // created version ID. If versioning is not enabled, this should be
- // empty.
- VersionID VersionID
-}
-
-// Backend provides a set of operations to be implemented in order to support
-// gofakes3.
-//
-// The Backend API is not yet stable; if you create your own Backend, breakage
-// is likely until this notice is removed.
-//
-type Backend interface {
- // ListBuckets returns a list of all buckets owned by the authenticated
- // sender of the request.
- // https://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceGET.html
- ListBuckets() ([]BucketInfo, error)
-
- // ListBucket returns the contents of a bucket. Backends should use the
- // supplied prefix to limit the contents of the bucket and to sort the
- // matched items into the Contents and CommonPrefixes fields.
- //
- // ListBucket must return a gofakes3.ErrNoSuchBucket error if the bucket
- // does not exist. See gofakes3.BucketNotFound() for a convenient way to create one.
- //
- // The prefix MUST be correctly handled for the backend to be valid. Each
- // item you consider returning should be checked using prefix.Match(name),
- // even if the prefix is empty. The Backend MUST treat a nil prefix
- // identically to a zero prefix.
- //
- // At this stage, implementers MAY return gofakes3.ErrInternalPageNotImplemented
- // if the page argument is non-empty. In this case, gofakes3 may or may
- // not, depending on how it was configured, retry the same request with no page.
- // We have observed (though not yet confirmed) that simple clients tend to
- // work fine if you ignore the pagination request, but this may not suit
- // your application. Not all backends bundled with gofakes3 correctly
- // support this pagination yet, but that will change.
- ListBucket(name string, prefix *Prefix, page ListBucketPage) (*ObjectList, error)
-
- // CreateBucket creates the bucket if it does not already exist. The name
- // should be assumed to be a valid name.
- //
- // If the bucket already exists, a gofakes3.ResourceError with
- // gofakes3.ErrBucketAlreadyExists MUST be returned.
- CreateBucket(name string) error
-
- // BucketExists should return a boolean indicating the bucket existence, or
- // an error if the backend was unable to determine existence.
- BucketExists(name string) (exists bool, err error)
-
- // DeleteBucket deletes a bucket if and only if it is empty.
- //
- // If the bucket is not empty, gofakes3.ResourceError with
- // gofakes3.ErrBucketNotEmpty MUST be returned.
- //
- // If the bucket does not exist, gofakes3.ErrNoSuchBucket MUST be returned.
- //
- // AWS does not validate the bucket's name for anything other than existence.
- DeleteBucket(name string) error
-
- // GetObject must return a gofakes3.ErrNoSuchKey error if the object does
- // not exist. See gofakes3.KeyNotFound() for a convenient way to create
- // one.
- //
- // If the returned Object is not nil, you MUST call Object.Contents.Close(),
- // otherwise you will leak resources. Implementers should return a no-op
- // implementation of io.ReadCloser.
- //
- // If rnge is nil, it is assumed you want the entire object. If rnge is not
- // nil, but the underlying backend does not support range requests,
- // implementers MUST return ErrNotImplemented.
- //
- // If the backend is a VersionedBackend, GetObject retrieves the latest version.
- GetObject(bucketName, objectName string, rangeRequest *ObjectRangeRequest) (*Object, error)
-
- // HeadObject fetches the Object from the backend, but reading the Contents
- // will return io.EOF immediately.
- //
- // If the returned Object is not nil, you MUST call Object.Contents.Close(),
- // otherwise you will leak resources. Implementers should return a no-op
- // implementation of io.ReadCloser.
- //
- // HeadObject should return a NotFound() error if the object does not
- // exist.
- HeadObject(bucketName, objectName string) (*Object, error)
-
- // DeleteObject deletes an object from the bucket.
- //
- // If the backend is a VersionedBackend and versioning is enabled, this
- // should introduce a delete marker rather than actually delete the object.
- //
- // DeleteObject must return a gofakes3.ErrNoSuchBucket error if the bucket
- // does not exist. See gofakes3.BucketNotFound() for a convenient way to create one.
- // FIXME: confirm with S3 whether this is the correct behaviour.
- //
- // DeleteObject must not return an error if the object does not exist. Source:
- // https://docs.aws.amazon.com/sdk-for-go/api/service/s3/#S3.DeleteObject:
- //
- // Removes the null version (if there is one) of an object and inserts a
- // delete marker, which becomes the latest version of the object. If there
- // isn't a null version, Amazon S3 does not remove any objects.
- //
- DeleteObject(bucketName, objectName string) (ObjectDeleteResult, error)
-
- // PutObject should assume that the key is valid. The map containing meta
- // may be nil.
- //
- // The size can be used if the backend needs to read the whole reader; use
- // gofakes3.ReadAll() for this job rather than ioutil.ReadAll().
- PutObject(bucketName, key string, meta map[string]string, input io.Reader, size int64, storageClass StorageClass) (PutObjectResult, error)
-
- DeleteMulti(bucketName string, objects ...string) (MultiDeleteResult, error)
-}
-
-// VersionedBackend may be optionally implemented by a Backend in order to support
-// operations on S3 object versions.
-//
-// If you don't implement VersionedBackend, requests to GoFakeS3 that attempt to
-// make use of versions will return ErrNotImplemented if GoFakesS3 is unable to
-// find another way to satisfy the request.
-//
-type VersionedBackend interface {
- // VersioningConfiguration must return a gofakes3.ErrNoSuchBucket error if the bucket
- // does not exist. See gofakes3.BucketNotFound() for a convenient way to create one.
- //
- // If the bucket has never had versioning enabled, VersioningConfiguration MUST return
- // empty strings (S300001).
- VersioningConfiguration(bucket string) (VersioningConfiguration, error)
-
- // SetVersioningConfiguration must return a gofakes3.ErrNoSuchBucket error if the bucket
- // does not exist. See gofakes3.BucketNotFound() for a convenient way to create one.
- SetVersioningConfiguration(bucket string, v VersioningConfiguration) error
-
- // GetObject must return a gofakes3.ErrNoSuchKey error if the object does
- // not exist. See gofakes3.KeyNotFound() for a convenient way to create
- // one.
- //
- // If the returned Object is not nil, you MUST call Object.Contents.Close(),
- // otherwise you will leak resources. Implementers should return a no-op
- // implementation of io.ReadCloser.
- //
- // GetObject must return gofakes3.ErrNoSuchVersion if the version does not
- // exist.
- //
- // If versioning has been enabled on a bucket, but subsequently suspended,
- // GetObjectVersion should still return the object version (S300001).
- //
- // FIXME: s3assumer test; what happens when versionID is empty? Does it
- // return the latest?
- GetObjectVersion(
- bucketName, objectName string,
- versionID VersionID,
- rangeRequest *ObjectRangeRequest) (*Object, error)
-
- // HeadObjectVersion fetches the Object version from the backend, but the Contents will be
- // a no-op ReadCloser.
- //
- // If the returned Object is not nil, you MUST call Object.Contents.Close(),
- // otherwise you will leak resources. Implementers should return a no-op
- // implementation of io.ReadCloser.
- //
- // HeadObjectVersion should return a NotFound() error if the object does not
- // exist.
- HeadObjectVersion(bucketName, objectName string, versionID VersionID) (*Object, error)
-
- // DeleteObjectVersion permanently deletes a specific object version.
- //
- // DeleteObjectVersion must return a gofakes3.ErrNoSuchBucket error if the bucket
- // does not exist. See gofakes3.BucketNotFound() for a convenient way to create one.
- //
- // If the bucket exists and either the object does not exist (S300003) or
- // the version does not exist (S300002), you MUST return an empty
- // ObjectDeleteResult and a nil error.
- DeleteObjectVersion(bucketName, objectName string, versionID VersionID) (ObjectDeleteResult, error)
-
- // DeleteMultiVersions permanently deletes all of the specified Object Versions
- DeleteMultiVersions(bucketName string, objects ...ObjectID) (MultiDeleteResult, error)
-
- // Backend implementers can assume the ListBucketVersionsPage is valid:
- // KeyMarker and VersionIDMarker will either both be set, or both be unset. No
- // other combination will be present (S300004).
- //
- // https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETVersion.html
- //
- // This MUST return the list of current versions with an empty VersionID
- // even if versioning has never been enabled for the bucket (S300005).
- //
- // The Backend MUST treat a nil prefix identically to a zero prefix, and a
- // nil page identically to a zero page.
- ListBucketVersions(bucketName string, prefix *Prefix, page *ListBucketVersionsPage) (*ListBucketVersionsResult, error)
-}
diff --git a/vendor/github.com/igungor/gofakes3/backend/s3bolt/backend.go b/vendor/github.com/igungor/gofakes3/backend/s3bolt/backend.go
deleted file mode 100644
index 5fad0bb6e..000000000
--- a/vendor/github.com/igungor/gofakes3/backend/s3bolt/backend.go
+++ /dev/null
@@ -1,379 +0,0 @@
-package s3bolt
-
-import (
- "bytes"
- "crypto/md5"
- "encoding/hex"
- "fmt"
- "io"
- "log"
-
- "github.com/igungor/gofakes3"
- "github.com/igungor/gofakes3/internal/s3io"
- bolt "go.etcd.io/bbolt"
- "gopkg.in/mgo.v2/bson"
-)
-
-var (
- emptyPrefix = &gofakes3.Prefix{}
-)
-
-type Backend struct {
- bolt *bolt.DB
- timeSource gofakes3.TimeSource
- metaBucketName []byte
-}
-
-var _ gofakes3.Backend = &Backend{}
-
-type Option func(b *Backend)
-
-func WithTimeSource(timeSource gofakes3.TimeSource) Option {
- return func(b *Backend) { b.timeSource = timeSource }
-}
-
-func NewFile(file string, opts ...Option) (*Backend, error) {
- if file == "" {
- return nil, fmt.Errorf("gofakes3: invalid bolt file name")
- }
- db, err := bolt.Open(file, 0600, nil)
- if err != nil {
- return nil, err
- }
- return New(db, opts...), nil
-}
-
-func New(bolt *bolt.DB, opts ...Option) *Backend {
- b := &Backend{
- bolt: bolt,
- metaBucketName: []byte("_meta"), // Underscore guarantees no overlap with legal S3 bucket names
- }
- for _, opt := range opts {
- opt(b)
- }
- if b.timeSource == nil {
- b.timeSource = gofakes3.DefaultTimeSource()
- }
- return b
-}
-
-func (db *Backend) Close() error {
- return db.bolt.Close()
-}
-
-// metaBucket returns a utility that manages access to the metadata bucket.
-// The returned struct is valid only for the lifetime of the bolt.Tx.
-// The metadata bucket may not exist if this is an older database.
-func (db *Backend) metaBucket(tx *bolt.Tx) (*metaBucket, error) {
- var bucket *bolt.Bucket
- var err error
-
- if tx.Writable() {
- bucket, err = tx.CreateBucketIfNotExists(db.metaBucketName)
- if err != nil {
- return nil, err
- }
- } else {
- bucket = tx.Bucket(db.metaBucketName)
- if bucket == nil {
- // FIXME: support legacy databases; remove when versioning is supported.
- return nil, nil
- }
- }
-
- return &metaBucket{
- Tx: tx,
- bucket: bucket,
- metaName: db.metaBucketName,
- }, nil
-}
-
-func (db *Backend) ListBuckets() ([]gofakes3.BucketInfo, error) {
- var buckets []gofakes3.BucketInfo
-
- err := db.bolt.View(func(tx *bolt.Tx) error {
- metaBucket, err := db.metaBucket(tx)
- if err != nil {
- return err
- }
-
- return tx.ForEach(func(name []byte, _ *bolt.Bucket) error {
- if bytes.Equal(name, db.metaBucketName) {
- return nil
- }
-
- nameStr := string(name)
- info := gofakes3.BucketInfo{Name: nameStr}
-
- // Attempt to assign metadata. If it isn't found, we will just
- // pretend that's fine for now. This is to support existing
- // databases that have buckets created without associated metadata.
- //
- // FIXME: clean this up when there is an upgrade script to expect
- // that it exists
- if metaBucket != nil {
- bucketInfo, err := metaBucket.s3Bucket(nameStr)
- if err != nil {
- return err
- }
- if bucketInfo != nil {
- info.CreationDate = gofakes3.NewContentTime(bucketInfo.CreationDate)
- }
- }
-
- // The AWS CLI will fail if there is no creation date:
- if info.CreationDate.IsZero() {
- info.CreationDate = gofakes3.NewContentTime(db.timeSource.Now())
- }
-
- buckets = append(buckets, info)
- return nil
- })
- })
-
- return buckets, err
-}
-
-func (db *Backend) ListBucket(name string, prefix *gofakes3.Prefix, page gofakes3.ListBucketPage) (*gofakes3.ObjectList, error) {
- if prefix == nil {
- prefix = emptyPrefix
- }
- if !page.IsEmpty() {
- return nil, gofakes3.ErrInternalPageNotImplemented
- }
-
- objects := gofakes3.NewObjectList()
-
- err := db.bolt.View(func(tx *bolt.Tx) error {
- b := tx.Bucket([]byte(name))
- if b == nil {
- return gofakes3.BucketNotFound(name)
- }
-
- c := b.Cursor()
- var match gofakes3.PrefixMatch
-
- for k, v := c.First(); k != nil; k, v = c.Next() {
- key := string(k)
- if !prefix.Match(key, &match) {
- continue
-
- } else if match.CommonPrefix {
- objects.AddPrefix(match.MatchedPart)
-
- } else {
- var b boltObject
- err := bson.Unmarshal(v, &b)
- if err != nil {
- return fmt.Errorf("gofakes3: could not unmarshal object %q: %v", string(k[:]), err)
- }
- item := &gofakes3.Content{
- Key: string(k[:]),
- ETag: `"` + hex.EncodeToString(b.Hash[:]) + `"`,
- Size: b.Size,
- LastModified: gofakes3.NewContentTime(b.LastModified.UTC()),
- StorageClass: gofakes3.StorageClass(b.StorageClass),
- }
- objects.Add(item)
- }
- }
-
- return nil
- })
-
- return objects, err
-}
-
-func (db *Backend) CreateBucket(name string) error {
- return db.bolt.Update(func(tx *bolt.Tx) error {
- { // create bucket metadata
- metaBucket, err := db.metaBucket(tx)
- if err != nil {
- return err
- }
- if err := metaBucket.createS3Bucket(name, db.timeSource.Now()); err != nil {
- return err
- }
- }
-
- { // create bucket
- nameBts := []byte(name)
- if tx.Bucket(nameBts) != nil {
- return gofakes3.ResourceError(gofakes3.ErrBucketAlreadyExists, name)
- }
- if _, err := tx.CreateBucket(nameBts); err != nil {
- return err
- }
- }
- return nil
- })
-}
-
-func (db *Backend) DeleteBucket(name string) error {
- nameBts := []byte(name)
-
- if bytes.Equal(nameBts, db.metaBucketName) {
- return gofakes3.ResourceError(gofakes3.ErrInvalidBucketName, name)
- }
-
- return db.bolt.Update(func(tx *bolt.Tx) error {
- { // delete bucket
- b := tx.Bucket(nameBts)
- if b == nil {
- return gofakes3.ErrNoSuchBucket
- }
- c := b.Cursor()
- k, _ := c.First()
- if k != nil {
- return gofakes3.ResourceError(gofakes3.ErrBucketNotEmpty, name)
- }
- }
-
- { // delete bucket metadata
- metaBucket, err := db.metaBucket(tx)
- if err != nil {
- return err
- }
-
- // FIXME: assumes a legacy database, where the bucket may not exist. Clean
- // this up when there is a DB upgrade script.
- if metaBucket != nil {
- if err := metaBucket.deleteS3Bucket(name); err != nil {
- return err
- }
- }
- }
-
- return tx.DeleteBucket(nameBts)
- })
-}
-
-func (db *Backend) BucketExists(name string) (exists bool, err error) {
- err = db.bolt.View(func(tx *bolt.Tx) error {
- b := tx.Bucket([]byte(name))
- exists = b != nil
- return nil
- })
- return exists, err
-}
-
-func (db *Backend) HeadObject(bucketName, objectName string) (*gofakes3.Object, error) {
- obj, err := db.GetObject(bucketName, objectName, nil)
- if err != nil {
- return nil, err
- }
- obj.Contents = s3io.NoOpReadCloser{}
- return obj, nil
-}
-
-func (db *Backend) GetObject(bucketName, objectName string, rangeRequest *gofakes3.ObjectRangeRequest) (*gofakes3.Object, error) {
- var t boltObject
-
- err := db.bolt.View(func(tx *bolt.Tx) error {
- b := tx.Bucket([]byte(bucketName))
- if b == nil {
- return gofakes3.BucketNotFound(bucketName)
- }
-
- v := b.Get([]byte(objectName))
- if v == nil {
- return gofakes3.KeyNotFound(objectName)
- }
-
- if err := bson.Unmarshal(v, &t); err != nil {
- return fmt.Errorf("gofakes3: could not unmarshal object at %q/%q: %v", bucketName, objectName, err)
- }
-
- return nil
- })
-
- if err != nil {
- return nil, err
- }
-
- // FIXME: objectName here is a bit of a hack; this can be cleaned up when we have a
- // database migration script.
- return t.Object(objectName, rangeRequest)
-}
-
-func (db *Backend) PutObject(
- bucketName, objectName string,
- meta map[string]string,
- input io.Reader, size int64,
- storageClass gofakes3.StorageClass,
-) (result gofakes3.PutObjectResult, err error) {
-
- bts, err := gofakes3.ReadAll(input, size)
- if err != nil {
- return result, err
- }
-
- mod := db.timeSource.Now()
- hash := md5.Sum(bts)
-
- return result, db.bolt.Update(func(tx *bolt.Tx) error {
- b := tx.Bucket([]byte(bucketName))
- if b == nil {
- return gofakes3.BucketNotFound(bucketName)
- }
-
- data, err := bson.Marshal(&boltObject{
- Name: objectName,
- Metadata: meta,
- Size: int64(len(bts)),
- LastModified: mod,
- Contents: bts,
- Hash: hash[:],
- StorageClass: storageClass,
- })
- if err != nil {
- return err
- }
- if err := b.Put([]byte(objectName), data); err != nil {
- return err
- }
- return nil
- })
-}
-
-func (db *Backend) DeleteObject(bucketName, objectName string) (result gofakes3.ObjectDeleteResult, rerr error) {
- return result, db.bolt.Update(func(tx *bolt.Tx) error {
- b := tx.Bucket([]byte(bucketName))
- if b == nil {
- return gofakes3.BucketNotFound(bucketName)
- }
- if err := b.Delete([]byte(objectName)); err != nil {
- return fmt.Errorf("gofakes3: delete failed for object %q in bucket %q", objectName, bucketName)
- }
- return nil
- })
-}
-
-func (db *Backend) DeleteMulti(bucketName string, objects ...string) (result gofakes3.MultiDeleteResult, err error) {
- err = db.bolt.Update(func(tx *bolt.Tx) error {
- b := tx.Bucket([]byte(bucketName))
- if b == nil {
- return gofakes3.BucketNotFound(bucketName)
- }
-
- for _, object := range objects {
- if err := b.Delete([]byte(object)); err != nil {
- log.Println("delete object failed:", err)
- result.Error = append(result.Error, gofakes3.ErrorResult{
- Code: gofakes3.ErrInternal,
- Message: gofakes3.ErrInternal.Message(),
- Key: object,
- })
-
- } else {
- result.Deleted = append(result.Deleted, gofakes3.ObjectID{
- Key: object,
- })
- }
- }
-
- return nil
- })
-
- return result, err
-}
diff --git a/vendor/github.com/igungor/gofakes3/backend/s3bolt/schema.go b/vendor/github.com/igungor/gofakes3/backend/s3bolt/schema.go
deleted file mode 100644
index e093db714..000000000
--- a/vendor/github.com/igungor/gofakes3/backend/s3bolt/schema.go
+++ /dev/null
@@ -1,96 +0,0 @@
-package s3bolt
-
-// The schema for the bolt database is described in here. External users of the
-// database should consider this an internal implementation detail, subject to
-// change without notice or version number changes.
-//
-// This may change in the future.
-
-import (
- "bytes"
- "time"
-
- "github.com/igungor/gofakes3"
- "github.com/igungor/gofakes3/internal/s3io"
- bolt "go.etcd.io/bbolt"
- "gopkg.in/mgo.v2/bson"
-)
-
-type boltBucket struct {
- CreationDate time.Time
-}
-
-type boltObject struct {
- Name string
- Metadata map[string]string
- LastModified time.Time
- Size int64
- Contents []byte
- Hash []byte
- StorageClass gofakes3.StorageClass `bson:",omitempty"`
-}
-
-func (b *boltObject) Object(objectName string, rangeRequest *gofakes3.ObjectRangeRequest) (*gofakes3.Object, error) {
- data := b.Contents
-
- rnge, err := rangeRequest.Range(b.Size)
- if err != nil {
- return nil, err
- }
-
- if rnge != nil {
- data = data[rnge.Start : rnge.Start+rnge.Length]
- }
-
- return &gofakes3.Object{
- Name: objectName,
- Metadata: b.Metadata,
- Size: b.Size,
- Contents: s3io.ReaderWithDummyCloser{bytes.NewReader(data)},
- Range: rnge,
- Hash: b.Hash,
- StorageClass: b.StorageClass,
- }, nil
-}
-
-func bucketMetaKey(name string) []byte {
- return []byte("bucket/" + name)
-}
-
-type metaBucket struct {
- *bolt.Tx
- metaName []byte
- bucket *bolt.Bucket
-}
-
-func (mb *metaBucket) deleteS3Bucket(bucket string) error {
- return mb.bucket.Delete(bucketMetaKey(bucket))
-}
-
-func (mb *metaBucket) createS3Bucket(bucket string, at time.Time) error {
- bb := &boltBucket{
- CreationDate: at,
- }
- data, err := bson.Marshal(bb)
- if err != nil {
- return err
- }
- if err := mb.bucket.Put(bucketMetaKey(bucket), data); err != nil {
- return err
- }
- return nil
-}
-
-func (mb *metaBucket) s3Bucket(bucket string) (*boltBucket, error) {
- bts := mb.bucket.Get(bucketMetaKey(bucket))
- if bts == nil {
- // FIXME: should return an error once database upgrades are supported.
- return nil, nil
- }
-
- var bb boltBucket
- if err := bson.Unmarshal(bts, &bb); err != nil {
- return nil, err
- }
- return &bb, nil
-}
diff --git a/vendor/github.com/igungor/gofakes3/backend/s3mem/backend.go b/vendor/github.com/igungor/gofakes3/backend/s3mem/backend.go
deleted file mode 100644
index 21c5bb19e..000000000
--- a/vendor/github.com/igungor/gofakes3/backend/s3mem/backend.go
+++ /dev/null
@@ -1,546 +0,0 @@
-package s3mem
-
-import (
- "crypto/md5"
- "encoding/hex"
- "io"
- "sync"
-
- "github.com/igungor/gofakes3"
- "github.com/igungor/gofakes3/internal/goskipiter"
-)
-
-var (
- emptyPrefix = &gofakes3.Prefix{}
- emptyVersionsPage = &gofakes3.ListBucketVersionsPage{}
-)
-
-type Backend struct {
- buckets map[string]*bucket
- timeSource gofakes3.TimeSource
- versionGenerator *versionGenerator
- versionSeed int64
- versionSeedSet bool
- versionScratch []byte
- lock sync.RWMutex
-}
-
-var _ gofakes3.Backend = &Backend{}
-var _ gofakes3.VersionedBackend = &Backend{}
-
-type Option func(b *Backend)
-
-func WithTimeSource(timeSource gofakes3.TimeSource) Option {
- return func(b *Backend) { b.timeSource = timeSource }
-}
-
-func WithVersionSeed(seed int64) Option {
- return func(b *Backend) { b.versionSeed = seed; b.versionSeedSet = true }
-}
-
-func New(opts ...Option) *Backend {
- b := &Backend{
- buckets: make(map[string]*bucket),
- }
- for _, opt := range opts {
- opt(b)
- }
- if b.timeSource == nil {
- b.timeSource = gofakes3.DefaultTimeSource()
- }
- if b.versionGenerator == nil {
- if b.versionSeedSet {
- b.versionGenerator = newVersionGenerator(uint64(b.versionSeed), 0)
- } else {
- b.versionGenerator = newVersionGenerator(uint64(b.timeSource.Now().UnixNano()), 0)
- }
- }
- return b
-}
-
-func (db *Backend) ListBuckets() ([]gofakes3.BucketInfo, error) {
- db.lock.RLock()
- defer db.lock.RUnlock()
-
- var buckets = make([]gofakes3.BucketInfo, 0, len(db.buckets))
- for _, bucket := range db.buckets {
- buckets = append(buckets, gofakes3.BucketInfo{
- Name: bucket.name,
- CreationDate: bucket.creationDate,
- })
- }
-
- return buckets, nil
-}
-
-func (db *Backend) ListBucket(name string, prefix *gofakes3.Prefix, page gofakes3.ListBucketPage) (*gofakes3.ObjectList, error) {
- if prefix == nil {
- prefix = emptyPrefix
- }
-
- db.lock.RLock()
- defer db.lock.RUnlock()
-
- storedBucket := db.buckets[name]
- if storedBucket == nil {
- return nil, gofakes3.BucketNotFound(name)
- }
-
- var response = gofakes3.NewObjectList()
- var iter = goskipiter.New(storedBucket.objects.Iterator())
- var match gofakes3.PrefixMatch
-
- if page.Marker != "" {
- iter.Seek(page.Marker)
- iter.Next() // Move to the next item after the Marker
- }
-
- var cnt int64 = 0
-
- var lastMatchedPart string
-
- for iter.Next() {
- item := iter.Value().(*bucketObject)
-
- if !prefix.Match(item.data.name, &match) {
- continue
- } else if item.data.deleteMarker {
- continue
- } else if match.CommonPrefix {
- if match.MatchedPart == lastMatchedPart {
- continue // Should not count towards keys
- }
- response.AddPrefix(match.MatchedPart)
- lastMatchedPart = match.MatchedPart
-
- } else {
- response.Add(&gofakes3.Content{
- Key: item.data.name,
- LastModified: gofakes3.NewContentTime(item.data.lastModified),
- ETag: `"` + hex.EncodeToString(item.data.hash) + `"`,
- Size: int64(len(item.data.body)),
- })
- }
-
- cnt++
- if page.MaxKeys > 0 && cnt >= page.MaxKeys {
- response.NextMarker = item.data.name
- response.IsTruncated = iter.Next()
- break
- }
- }
-
- return response, nil
-}
-
-func (db *Backend) CreateBucket(name string) error {
- db.lock.Lock()
- defer db.lock.Unlock()
-
- if db.buckets[name] != nil {
- return gofakes3.ResourceError(gofakes3.ErrBucketAlreadyExists, name)
- }
-
- db.buckets[name] = newBucket(name, db.timeSource.Now(), db.nextVersion)
- return nil
-}
-
-func (db *Backend) DeleteBucket(name string) error {
- db.lock.Lock()
- defer db.lock.Unlock()
-
- if db.buckets[name] == nil {
- return gofakes3.ErrNoSuchBucket
- }
-
- if db.buckets[name].objects.Len() > 0 {
- return gofakes3.ResourceError(gofakes3.ErrBucketNotEmpty, name)
- }
-
- delete(db.buckets, name)
-
- return nil
-}
-
-func (db *Backend) BucketExists(name string) (exists bool, err error) {
- db.lock.RLock()
- defer db.lock.RUnlock()
- return db.buckets[name] != nil, nil
-}
-
-func (db *Backend) HeadObject(bucketName, objectName string) (*gofakes3.Object, error) {
- db.lock.RLock()
- defer db.lock.RUnlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return nil, gofakes3.BucketNotFound(bucketName)
- }
-
- obj := bucket.object(objectName)
- if obj == nil || obj.data.deleteMarker {
- return nil, gofakes3.KeyNotFound(objectName)
- }
-
- return obj.data.toObject(nil, false)
-}
-
-func (db *Backend) GetObject(bucketName, objectName string, rangeRequest *gofakes3.ObjectRangeRequest) (*gofakes3.Object, error) {
- db.lock.RLock()
- defer db.lock.RUnlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return nil, gofakes3.BucketNotFound(bucketName)
- }
-
- obj := bucket.object(objectName)
- if obj == nil || obj.data.deleteMarker {
- // FIXME: If the current version of the object is a delete marker,
- // Amazon S3 behaves as if the object was deleted and includes
- // x-amz-delete-marker: true in the response.
- //
- // The solution may be to return an object but no error if the object is
- // a delete marker, and let the main GoFakeS3 class decide what to do.
- return nil, gofakes3.KeyNotFound(objectName)
- }
-
- result, err := obj.data.toObject(rangeRequest, true)
- if err != nil {
- return nil, err
- }
-
- if bucket.versioning != gofakes3.VersioningEnabled {
- result.VersionID = ""
- }
-
- return result, nil
-}
-
-func (db *Backend) PutObject(bucketName, objectName string, meta map[string]string, input io.Reader, size int64, storageClass gofakes3.StorageClass) (result gofakes3.PutObjectResult, err error) {
- // No need to lock the backend while we read the data into memory; it holds
- // the write lock open unnecessarily, and could be blocked for an unreasonably
- // long time by a connection timing out:
- bts, err := gofakes3.ReadAll(input, size)
- if err != nil {
- return result, err
- }
-
- db.lock.Lock()
- defer db.lock.Unlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return result, gofakes3.BucketNotFound(bucketName)
- }
-
- hash := md5.Sum(bts)
-
- item := &bucketData{
- name: objectName,
- body: bts,
- hash: hash[:],
- etag: `"` + hex.EncodeToString(hash[:]) + `"`,
- metadata: meta,
- lastModified: db.timeSource.Now(),
- }
- bucket.put(objectName, item)
-
- if bucket.versioning == gofakes3.VersioningEnabled {
- // versionID is assigned in bucket.put()
- result.VersionID = item.versionID
- }
-
- return result, nil
-}
-
-func (db *Backend) DeleteObject(bucketName, objectName string) (result gofakes3.ObjectDeleteResult, rerr error) {
- db.lock.Lock()
- defer db.lock.Unlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return result, gofakes3.BucketNotFound(bucketName)
- }
-
- return bucket.rm(objectName, db.timeSource.Now())
-}
-
-func (db *Backend) DeleteMulti(bucketName string, objects ...string) (result gofakes3.MultiDeleteResult, err error) {
- db.lock.Lock()
- defer db.lock.Unlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return result, gofakes3.BucketNotFound(bucketName)
- }
-
- now := db.timeSource.Now()
-
- for _, object := range objects {
- dresult, err := bucket.rm(object, now)
- _ = dresult // FIXME: what to do with rm result in multi delete?
-
- if err != nil {
- errres := gofakes3.ErrorResultFromError(err)
- if errres.Code == gofakes3.ErrInternal {
- // FIXME: log
- }
-
- result.Error = append(result.Error, errres)
-
- } else {
- result.Deleted = append(result.Deleted, gofakes3.ObjectID{
- Key: object,
- })
- }
- }
-
- return result, nil
-}
-
-func (db *Backend) DeleteMultiVersions(bucketName string, objects ...gofakes3.ObjectID) (result gofakes3.MultiDeleteResult, err error) {
- db.lock.Lock()
- defer db.lock.Unlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return result, gofakes3.BucketNotFound(bucketName)
- }
-
- now := db.timeSource.Now()
-
- for _, object := range objects {
- var dresult gofakes3.ObjectDeleteResult
- var err error
- if object.VersionID != "" {
- _, err = bucket.rmVersion(object.Key, gofakes3.VersionID(object.VersionID), now)
- } else {
- dresult, err = bucket.rm(object.Key, now)
- _ = dresult // FIXME: what to do with rm result in multi delete?
- }
-
- if err != nil {
- errres := gofakes3.ErrorResultFromError(err)
- if errres.Code == gofakes3.ErrInternal {
- // FIXME: log
- }
-
- result.Error = append(result.Error, errres)
-
- } else {
- result.Deleted = append(result.Deleted, object)
- }
- }
-
- return result, nil
-}
-
-func (db *Backend) VersioningConfiguration(bucketName string) (versioning gofakes3.VersioningConfiguration, rerr error) {
- db.lock.RLock()
- defer db.lock.RUnlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return versioning, gofakes3.BucketNotFound(bucketName)
- }
-
- versioning.Status = bucket.versioning
-
- return versioning, nil
-}
-
-func (db *Backend) SetVersioningConfiguration(bucketName string, v gofakes3.VersioningConfiguration) error {
- if v.MFADelete.Enabled() {
- return gofakes3.ErrNotImplemented
- }
-
- db.lock.Lock()
- defer db.lock.Unlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return gofakes3.BucketNotFound(bucketName)
- }
-
- bucket.setVersioning(v.Enabled())
-
- return nil
-}
-
-func (db *Backend) GetObjectVersion(
- bucketName, objectName string,
- versionID gofakes3.VersionID,
- rangeRequest *gofakes3.ObjectRangeRequest) (*gofakes3.Object, error) {
- if versionID == "" {
- return db.GetObject(bucketName, objectName, rangeRequest)
- }
-
- db.lock.RLock()
- defer db.lock.RUnlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return nil, gofakes3.BucketNotFound(bucketName)
- }
-
- ver, err := bucket.objectVersion(objectName, versionID)
- if err != nil {
- return nil, err
- }
-
- return ver.toObject(rangeRequest, true)
-}
-
-func (db *Backend) HeadObjectVersion(bucketName, objectName string, versionID gofakes3.VersionID) (*gofakes3.Object, error) {
- if versionID == "" {
- return db.HeadObject(bucketName, objectName)
- }
-
- db.lock.RLock()
- defer db.lock.RUnlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return nil, gofakes3.BucketNotFound(bucketName)
- }
-
- ver, err := bucket.objectVersion(objectName, versionID)
- if err != nil {
- return nil, err
- }
-
- return ver.toObject(nil, false)
-}
-
-func (db *Backend) DeleteObjectVersion(bucketName, objectName string, versionID gofakes3.VersionID) (result gofakes3.ObjectDeleteResult, rerr error) {
- db.lock.Lock()
- defer db.lock.Unlock()
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return result, gofakes3.BucketNotFound(bucketName)
- }
-
- return bucket.rmVersion(objectName, versionID, db.timeSource.Now())
-}
-
-func (db *Backend) ListBucketVersions(
- bucketName string,
- prefix *gofakes3.Prefix,
- page *gofakes3.ListBucketVersionsPage,
-) (*gofakes3.ListBucketVersionsResult, error) {
- if prefix == nil {
- prefix = emptyPrefix
- }
- if page == nil {
- page = emptyVersionsPage
- }
-
- db.lock.RLock()
- defer db.lock.RUnlock()
-
- result := gofakes3.NewListBucketVersionsResult(bucketName, prefix, page)
-
- bucket := db.buckets[bucketName]
- if bucket == nil {
- return result, gofakes3.BucketNotFound(bucketName)
- }
-
- var iter = goskipiter.New(bucket.objects.Iterator())
- var match gofakes3.PrefixMatch
-
- if page.KeyMarker != "" {
- if !prefix.Match(page.KeyMarker, &match) {
- // FIXME: NO idea what S3 would do here.
- return result, gofakes3.ErrInternal
- }
- iter.Seek(page.KeyMarker)
- }
-
- var truncated = false
- var first = true
- var cnt int64 = 0
-
- // FIXME: The S3 docs have this to say on the topic of result ordering:
- // "The following request returns objects in the order they were stored,
- // returning the most recently stored object first starting with the value
- // for key-marker."
- //
- // OK so this method....
- // - Returns objects in the order they were stored
- // - Returning the most recently stored object first
- //
- // This makes no sense at all!
-
- for iter.Next() {
- object := iter.Value().(*bucketObject)
-
- if !prefix.Match(object.name, &match) {
- continue
- }
-
- if match.CommonPrefix {
- result.AddPrefix(match.MatchedPart)
- continue
- }
-
- versions := iter.Value().(*bucketObject).Iterator()
- if first {
- if page.VersionIDMarker != "" {
- if !versions.Seek(page.VersionIDMarker) {
- // FIXME: log
- return result, gofakes3.ErrInternal
- }
- }
- first = false
- }
-
- for versions.Next() {
- version := versions.Value()
-
- if version.deleteMarker {
- marker := &gofakes3.DeleteMarker{
- Key: version.name,
- IsLatest: version == object.data,
- LastModified: gofakes3.NewContentTime(version.lastModified),
- }
- if bucket.versioning != gofakes3.VersioningNone { // S300005
- marker.VersionID = version.versionID
- }
- result.Versions = append(result.Versions, marker)
-
- } else {
- resultVer := &gofakes3.Version{
- Key: version.name,
- IsLatest: version == object.data,
- LastModified: gofakes3.NewContentTime(version.lastModified),
- Size: int64(len(version.body)),
- ETag: version.etag,
- }
- if bucket.versioning != gofakes3.VersioningNone { // S300005
- resultVer.VersionID = version.versionID
- }
- result.Versions = append(result.Versions, resultVer)
- }
-
- cnt++
- if page.MaxKeys > 0 && cnt >= page.MaxKeys {
- truncated = versions.Next()
- goto done
- }
- }
- }
-
-done:
- result.IsTruncated = truncated || iter.Next()
-
- return result, nil
-}
-
-// nextVersion assumes the backend's lock is acquired
-func (db *Backend) nextVersion() gofakes3.VersionID {
- v, scr := db.versionGenerator.Next(db.versionScratch)
- db.versionScratch = scr
- return v
-}
diff --git a/vendor/github.com/igungor/gofakes3/backend/s3mem/bucket.go b/vendor/github.com/igungor/gofakes3/backend/s3mem/bucket.go
deleted file mode 100644
index f12d38e1c..000000000
--- a/vendor/github.com/igungor/gofakes3/backend/s3mem/bucket.go
+++ /dev/null
@@ -1,281 +0,0 @@
-package s3mem
-
-import (
- "bytes"
- "io"
- "time"
-
- "github.com/igungor/gofakes3"
- "github.com/igungor/gofakes3/internal/s3io"
- "github.com/ryszard/goskiplist/skiplist"
-)
-
-type versionGenFunc func() gofakes3.VersionID
-
-type versioningStatus int
-
-type bucket struct {
- name string
- versioning gofakes3.VersioningStatus
- versionGen versionGenFunc
- creationDate gofakes3.ContentTime
-
- objects *skiplist.SkipList
-}
-
-func newBucket(name string, at time.Time, versionGen versionGenFunc) *bucket {
- return &bucket{
- name: name,
- creationDate: gofakes3.NewContentTime(at),
- versionGen: versionGen,
- objects: skiplist.NewStringMap(),
- }
-}
-
-type bucketObject struct {
- name string
- data *bucketData
- versions *skiplist.SkipList
-}
-
-func (b *bucketObject) Iterator() *bucketObjectIterator {
- var iter skiplist.Iterator
- if b.versions != nil {
- iter = b.versions.Iterator()
- }
-
- return &bucketObjectIterator{
- data: b.data,
- iter: iter,
- }
-}
-
-type bucketObjectIterator struct {
- data *bucketData
- iter skiplist.Iterator
- cur *bucketData
- seenData bool
- done bool
-}
-
-func (b *bucketObjectIterator) Seek(key gofakes3.VersionID) bool {
- if b.iter.Seek(key) {
- return true
- }
-
- b.iter = nil
- if b.data != nil && b.data.versionID == key {
- return true
- }
-
- b.data = nil
- b.done = true
-
- return false
-}
-
-func (b *bucketObjectIterator) Next() bool {
- if b.done {
- return false
- }
-
- if b.iter != nil {
- iterAlive := b.iter.Next()
- if iterAlive {
- b.cur = b.iter.Value().(*bucketData)
- return true
- }
-
- b.iter.Close()
- b.iter = nil
- }
-
- if b.data != nil {
- b.cur = b.data
- b.data = nil
- return true
- }
-
- b.done = true
- return false
-}
-
-func (b *bucketObjectIterator) Close() {
- if b.iter != nil {
- b.iter.Close()
- }
- b.done = true
-}
-
-func (b *bucketObjectIterator) Value() *bucketData {
- return b.cur
-}
-
-type bucketData struct {
- name string
- lastModified time.Time
- versionID gofakes3.VersionID
- deleteMarker bool
- body []byte
- hash []byte
- etag string
- metadata map[string]string
-}
-
-func (bi *bucketData) toObject(rangeRequest *gofakes3.ObjectRangeRequest, withBody bool) (obj *gofakes3.Object, err error) {
- sz := int64(len(bi.body))
- data := bi.body
-
- var contents io.ReadCloser
- var rnge *gofakes3.ObjectRange
-
- if withBody {
- // In case of a range request the correct part of the slice is extracted:
- rnge, err = rangeRequest.Range(sz)
- if err != nil {
- return nil, err
- }
-
- if rnge != nil {
- data = data[rnge.Start : rnge.Start+rnge.Length]
- }
-
- // The data slice should be completely replaced if the bucket item is edited, so
- // it should be safe to return the data slice directly.
- contents = s3io.ReaderWithDummyCloser{bytes.NewReader(data)}
-
- } else {
- contents = s3io.NoOpReadCloser{}
- }
-
- return &gofakes3.Object{
- Name: bi.name,
- Hash: bi.hash,
- Metadata: bi.metadata,
- Size: sz,
- Range: rnge,
- IsDeleteMarker: bi.deleteMarker,
- VersionID: bi.versionID,
- Contents: contents,
- }, nil
-}
-
-func (b *bucket) setVersioning(enabled bool) {
- if enabled {
- b.versioning = gofakes3.VersioningEnabled
- } else if b.versioning == gofakes3.VersioningEnabled {
- b.versioning = gofakes3.VersioningSuspended
- }
-}
-
-func (b *bucket) object(objectName string) (obj *bucketObject) {
- objIface, _ := b.objects.Get(objectName)
- if objIface == nil {
- return nil
- }
- obj, _ = objIface.(*bucketObject)
- return obj
-}
-
-func (b *bucket) objectVersion(objectName string, versionID gofakes3.VersionID) (*bucketData, error) {
- obj := b.object(objectName)
- if versionID == "" {
- if obj.data.deleteMarker {
- return nil, gofakes3.KeyNotFound(objectName)
- }
- return obj.data, nil
- }
-
- if obj == nil {
- return nil, gofakes3.KeyNotFound(objectName)
- }
-
- if obj.data != nil && obj.data.versionID == versionID {
- return obj.data, nil
- }
- if obj.versions == nil {
- return nil, gofakes3.ErrNoSuchVersion
- }
- versionIface, _ := obj.versions.Get(versionID)
- if versionIface == nil {
- return nil, gofakes3.ErrNoSuchVersion
- }
-
- return versionIface.(*bucketData), nil
-}
-
-func (b *bucket) put(name string, item *bucketData) {
- // Always generate a version for convenience; we can just mask it on return.
- item.versionID = b.versionGen()
-
- object := b.object(name)
- if object == nil {
- object = &bucketObject{name: name}
- b.objects.Set(name, object)
- }
-
- if b.versioning == gofakes3.VersioningEnabled {
- if object.data != nil {
- if object.versions == nil {
- object.versions = skiplist.NewCustomMap(func(l, r interface{}) bool {
- return l.(gofakes3.VersionID) < r.(gofakes3.VersionID)
- })
- }
- object.versions.Set(object.data.versionID, object.data)
- }
- }
-
- object.data = item
-}
-
-func (b *bucket) rm(name string, at time.Time) (result gofakes3.ObjectDeleteResult, rerr error) {
- object := b.object(name)
- if object == nil {
- // S3 does not report an error when attemping to delete a key that does not exist
- return result, nil
- }
-
- if b.versioning == gofakes3.VersioningEnabled {
- item := &bucketData{lastModified: at, name: name, deleteMarker: true}
- b.put(name, item)
- result.IsDeleteMarker = true
- result.VersionID = item.versionID
-
- } else {
- object.data = nil
- if object.versions == nil || object.versions.Len() == 0 {
- b.objects.Delete(name)
- }
- }
-
- return result, nil
-}
-
-func (b *bucket) rmVersion(name string, versionID gofakes3.VersionID, at time.Time) (result gofakes3.ObjectDeleteResult, rerr error) {
- object := b.object(name)
- if object == nil {
- return result, nil
-
- } else if object.data != nil && object.data.versionID == versionID {
- result.VersionID = versionID
- result.IsDeleteMarker = object.data.deleteMarker
- object.data = nil
-
- } else if object.versions != nil {
- versionIface, ok := object.versions.Delete(versionID)
- if !ok {
- // S3 does not report an error when attemping to delete a key that does not exist
- return result, nil
- }
-
- version := versionIface.(*bucketData)
- result.VersionID = version.versionID
- result.IsDeleteMarker = version.deleteMarker
- }
-
- if object.data == nil && (object.versions == nil || object.versions.Len() == 0) {
- b.objects.Delete(name)
- }
-
- return result, nil
-}
diff --git a/vendor/github.com/igungor/gofakes3/backend/s3mem/versionid.go b/vendor/github.com/igungor/gofakes3/backend/s3mem/versionid.go
deleted file mode 100644
index abd539f15..000000000
--- a/vendor/github.com/igungor/gofakes3/backend/s3mem/versionid.go
+++ /dev/null
@@ -1,67 +0,0 @@
-package s3mem
-
-import (
- "encoding/base32"
- "fmt"
- "math/big"
- "sync"
-
- "github.com/igungor/gofakes3"
-)
-
-var add1 = new(big.Int).SetInt64(1)
-
-type versionGenerator struct {
- state uint64
- size int
- next *big.Int
- mu sync.Mutex
-}
-
-func newVersionGenerator(seed uint64, size int) *versionGenerator {
- if size <= 0 {
- size = 64
- }
- return &versionGenerator{next: new(big.Int), state: seed}
-}
-
-func (v *versionGenerator) Next(scratch []byte) (gofakes3.VersionID, []byte) {
- v.mu.Lock()
-
- v.next.Add(v.next, add1)
- idb := []byte(fmt.Sprintf("%030d", v.next))
-
- neat := v.size/8*8 + 8 // cheap and nasty way to ensure a multiple of 8 definitely greater than size
-
- scratchLen := len(idb) + neat + 1
- if len(scratch) < scratchLen {
- scratch = make([]byte, scratchLen)
- }
- copy(scratch, idb)
-
- b := scratch[len(idb)+1:]
-
- // This is a simple inline implementation of http://xoshiro.di.unimi.it/splitmix64.c.
- // It may not ultimately be the right tool for this job but with a large
- // enough size the collision risk should still be minuscule.
- for i := 0; i < neat; i += 8 {
- v.state += 0x9E3779B97F4A7C15
- z := v.state
- z = (z ^ (z >> 30)) * 0xBF58476D1CE4E5B9
- z = (z ^ (z >> 27)) * 0x94D049BB133111EB
- b[i], b[i+1], b[i+2], b[i+3], b[i+4], b[i+5], b[i+6], b[i+7] =
- byte(z), byte(z>>8), byte(z>>16), byte(z>>24), byte(z>>32), byte(z>>40), byte(z>>48), byte(z>>56)
- }
-
- v.mu.Unlock()
-
- // The version IDs that come out of S3 appear to start with '3/' and follow
- // with a base64-URL encoded blast of god knows what. There didn't appear
- // to be any explanation of the format beyond that, but let's copy it anyway.
- //
- // Base64 is not sortable though, and we need our versions to be lexicographically
- // sortable for the SkipList key, so we have to encode it as base32hex, which _is_
- // sortable, and just pretend that it's "Base64". Phew!
-
- return gofakes3.VersionID(fmt.Sprintf("3/%s", base32.HexEncoding.EncodeToString(scratch))), scratch
-}
diff --git a/vendor/github.com/igungor/gofakes3/ca-certificates.crt b/vendor/github.com/igungor/gofakes3/ca-certificates.crt
deleted file mode 100644
index 39ba33683..000000000
--- a/vendor/github.com/igungor/gofakes3/ca-certificates.crt
+++ /dev/null
@@ -1,3646 +0,0 @@
-##
-## Bundle of CA Root Certificates
-##
-## Certificate data from Mozilla as of: Wed Sep 20 03:12:05 2017 GMT
-##
-## This is a bundle of X.509 certificates of public Certificate Authorities
-## (CA). These were automatically extracted from Mozilla's root certificates
-## file (certdata.txt). This file can be found in the mozilla source tree:
-## https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
-##
-## It contains the certificates in PEM format and therefore
-## can be directly used with curl / libcurl / php_curl, or with
-## an Apache+mod_ssl webserver for SSL client authentication.
-## Just configure this file as the SSLCACertificateFile.
-##
-## Conversion done with mk-ca-bundle.pl version 1.27.
-## SHA256: 2b2dbe5244e0047e088c597998883a913f6c5fffd1cb5c0fe5a368c8466cb2ec
-##
-
-
-GlobalSign Root CA
-==================
------BEGIN CERTIFICATE-----
-MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkGA1UEBhMCQkUx
-GTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jvb3QgQ0ExGzAZBgNVBAMTEkds
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qkIk7mpM0sYmsL4h4hO291xNBrBVNpGP+DTKqttVCL1OmLNIG+6KYnX3ZHu
-01yiPqFbQfXf5WRDLenVOavSot+3i9DAgBkcRcAtjOj4LaR0VknFBbVPFd5uRHg5h6h+u/N5GJG7
-9G+dwfCMNYxdAfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/7
-TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg==
------END CERTIFICATE-----
-
-Verisign Class 3 Public Primary Certification Authority - G3
-============================================================
------BEGIN CERTIFICATE-----
-MIIEGjCCAwICEQCbfgZJoz5iudXukEhxKe9XMA0GCSqGSIb3DQEBBQUAMIHKMQswCQYDVQQGEwJV
-UzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
-cmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl
-IG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDMgUHVibGljIFByaW1hcnkgQ2VydGlmaWNh
-dGlvbiBBdXRob3JpdHkgLSBHMzAeFw05OTEwMDEwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMIHKMQsw
-CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRy
-dXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhv
-cml6ZWQgdXNlIG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDMgUHVibGljIFByaW1hcnkg
-Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
-ggEBAMu6nFL8eB8aHm8bN3O9+MlrlBIwT/A2R/XQkQr1F8ilYcEWQE37imGQ5XYgwREGfassbqb1
-EUGO+i2tKmFZpGcmTNDovFJbcCAEWNF6yaRpvIMXZK0Fi7zQWM6NjPXr8EJJC52XJ2cybuGukxUc
-cLwgTS8Y3pKI6GyFVxEa6X7jJhFUokWWVYPKMIno3Nij7SqAP395ZVc+FSBmCC+Vk7+qRy+oRpfw
-EuL+wgorUeZ25rdGt+INpsyow0xZVYnm6FNcHOqd8GIWC6fJXwzw3sJ2zq/3avL6QaaiMxTJ5Xpj
-055iN9WFZZ4O5lMkdBteHRJTW8cs54NJOxWuimi5V5cCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEA
-ERSWwauSCPc/L8my/uRan2Te2yFPhpk0djZX3dAVL8WtfxUfN2JzPtTnX84XA9s1+ivbrmAJXx5f
-j267Cz3qWhMeDGBvtcC1IyIuBwvLqXTLR7sdwdela8wv0kL9Sd2nic9TutoAWii/gt/4uhMdUIaC
-/Y4wjylGsB49Ndo4YhYYSq3mtlFs3q9i6wHQHiT+eo8SGhJouPtmmRQURVyu565pF4ErWjfJXir0
-xuKhXFSbplQAz/DxwceYMBo7Nhbbo27q/a2ywtrvAkcTisDxszGtTxzhT5yvDwyd93gN2PQ1VoDa
-t20Xj50egWTh/sVFuq1ruQp6Tk9LhO5L8X3dEQ==
------END CERTIFICATE-----
-
-Entrust.net Premium 2048 Secure Server CA
-=========================================
------BEGIN CERTIFICATE-----
-MIIEKjCCAxKgAwIBAgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChMLRW50cnVzdC5u
-ZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0OCBpbmNvcnAuIGJ5IHJlZi4gKGxp
-bWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNV
-BAMTKkVudHJ1c3QubmV0IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC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mTNXuhKwqeBCbJPKVt7+bYQLCIt+jerXmCHG8+c8eS9e
-nNFMFY3h7CI3zJpDC5fcgJCNs2ebb0gIFVbPv/ErfF6adulZkMV8gzURZVE=
------END CERTIFICATE-----
-
-Baltimore CyberTrust Root
-=========================
------BEGIN CERTIFICATE-----
-MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJRTESMBAGA1UE
-ChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYDVQQDExlCYWx0aW1vcmUgQ3li
-ZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoXDTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMC
-SUUxEjAQBgNVBAoTCUJhbHRpbW9yZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFs
-dGltb3JlIEN5YmVyVHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKME
-uyKrmD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjrIZ3AQSsB
-UnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeKmpYcqWe4PwzV9/lSEy/C
-G9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSuXmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9
-XbIGevOF6uvUA65ehD5f/xXtabz5OTZydc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjpr
-l3RjM71oGDHweI12v/yejl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoI
-VDaGezq1BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEB
-BQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT929hkTI7gQCvlYpNRh
-cL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3WgxjkzSswF07r51XgdIGn9w/xZchMB5
-hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsa
-Y71k5h+3zvDyny67G7fyUIhzksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9H
-RCwBXbsdtTLSR9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp
------END CERTIFICATE-----
-
-AddTrust External Root
-======================
------BEGIN CERTIFICATE-----
-MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEUMBIGA1UEChML
-QWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFsIFRUUCBOZXR3b3JrMSIwIAYD
-VQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEw
-NDgzOFowbzELMAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRU
-cnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0Eg
-Um9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALf3GjPm8gAELTngTlvtH7xsD821
-+iO2zt6bETOXpClMfZOfvUq8k+0DGuOPz+VtUFrWlymUWoCwSXrbLpX9uMq/NzgtHj6RQa1wVsfw
-Tz/oMp50ysiQVOnGXw94nZpAPA6sYapeFI+eh6FqUNzXmk6vBbOmcZSccbNQYArHE504B4YCqOmo
-aSYYkKtMsE8jqzpPhNjfzp/haW+710LXa0Tkx63ubUFfclpxCDezeWWkWaCUN/cALw3CknLa0Dhy
-2xSoRcRdKn23tNbE7qzNE0S3ySvdQwAl+mG5aWpYIxG3pzOPVnVZ9c0p10a3CitlttNCbxWyuHv7
-7+ldU9U0WicCAwEAAaOB3DCB2TAdBgNVHQ4EFgQUrb2YejS0Jvf6xCZU7wO94CTLVBowCwYDVR0P
-BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wgZkGA1UdIwSBkTCBjoAUrb2YejS0Jvf6xCZU7wO94CTL
-VBqhc6RxMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQGA1UECxMdQWRk
-VHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENB
-IFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBALCb4IUlwtYj4g+WBpKdQZic2YR5gdkeWxQHIzZl
-j7DYd7usQWxHYINRsPkyPef89iYTx4AWpb9a/IfPeHmJIZriTAcKhjW88t5RxNKWt9x+Tu5w/Rw5
-6wwCURQtjr0W4MHfRnXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5ruhxSvCNr4TDea9Y355
-e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEXc4g/VhsxOBi0cQ+azcgOno4u
-G+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5amnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
------END CERTIFICATE-----
-
-Entrust Root Certification Authority
-====================================
------BEGIN CERTIFICATE-----
-MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMCVVMxFjAUBgNV
-BAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0Lm5ldC9DUFMgaXMgaW5jb3Jw
-b3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMWKGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsG
-A1UEAxMkRW50cnVzdCBSb290IENlc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Ly93d3cucXVvdmFkaXNnbG9iYWwuY29tL2NwczALBgNVHQ8EBAMCAQYwHQYD
-VR0OBBYEFPLAE+CCQz777i9nMpY1XNu4ywLQMG4GA1UdIwRnMGWAFPLAE+CCQz777i9nMpY1XNu4
-ywLQoUmkRzBFMQswCQYDVQQGEwJCTTEZMBcGA1UEChMQUXVvVmFkaXMgTGltaXRlZDEbMBkGA1UE
-AxMSUXVvVmFkaXMgUm9vdCBDQSAzggIFxjANBgkqhkiG9w0BAQUFAAOCAgEAT62gLEz6wPJv92ZV
-qyM07ucp2sNbtrCD2dDQ4iH782CnO11gUyeim/YIIirnv6By5ZwkajGxkHon24QRiSemd1o417+s
-hvzuXYO8BsbRd2sPbSQvS3pspweWyuOEn62Iix2rFo1bZhfZFvSLgNLd+LJ2w/w4E6oM3kJpK27z
-POuAJ9v1pkQNn1pVWQvVDVJIxa6f8i+AxeoyUDUSly7B4f/xI4hROJ/yZlZ25w9Rl6VSDE1JUZU2
-Pb+iSwwQHYaZTKrzchGT5Or2m9qoXadNt54CrnMAyNojA+j56hl0YgCUyyIgvpSnWbWCar6ZeXqp
-8kokUvd0/bpO5qgdAm6xDYBEwa7TIzdfu4V8K5Iu6H6li92Z4b8nby1dqnuH/grdS/yO9SbkbnBC
-bjPsMZ57k8HkyWkaPcBrTiJt7qtYTcbQQcEr6k8Sh17rRdhs9ZgC06DYVYoGmRmioHfRMJ6szHXu
-g/WwYjnPbFfiTNKRCw51KBuav/0aQ/HKd/s7j2G4aSgWQgRecCocIdiP4b0jWy10QJLZYxkNc91p
-vGJHvOB0K7Lrfb5BG7XARsWhIstfTsEokt4YutUqKLsRixeTmJlglFwjz1onl14LBQaTNx47aTbr
-qZ5hHY8y2o4M1nQ+ewkk2gF3R8Q7zTSMmfXK4SVhM7JZG+Ju1zdXtg2pEto=
------END CERTIFICATE-----
-
-Security Communication Root CA
-==============================
------BEGIN CERTIFICATE-----
-MIIDWjCCAkKgAwIBAgIBADANBgkqhkiG9w0BAQUFAD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ioU+tHXotRSflMMFe8toTyyVCUZVHA4xsIcx0Qu1T/zOLjw9XARYvz6buyXAi
-FL39vmwLAw==
------END CERTIFICATE-----
-
-Sonera Class 2 Root CA
-======================
------BEGIN CERTIFICATE-----
-MIIDIDCCAgigAwIBAgIBHTANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJGSTEPMA0GA1UEChMG
-U29uZXJhMRkwFwYDVQQDExBTb25lcmEgQ2xhc3MyIENBMB4XDTAxMDQwNjA3Mjk0MFoXDTIxMDQw
-NjA3Mjk0MFowOTELMAkGA1UEBhMCRkkxDzANBgNVBAoTBlNvbmVyYTEZMBcGA1UEAxMQU29uZXJh
-IENsYXNzMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJAXSjWdyvANlsdE+hY3
-/Ei9vX+ALTU74W+oZ6m/AxxNjG8yR9VBaKQTBME1DJqEQ/xcHf+Js+gXGM2RX/uJ4+q/Tl18GybT
-dXnt5oTjV+WtKcT0OijnpXuENmmz/V52vaMtmdOQTiMofRhj8VQ7Jp12W5dCsv+u8E7s3TmVToMG
-f+dJQMjFAbJUWmYdPfz56TwKnoG4cPABi+QjVHzIrviQHgCWctRUz2EjvOr7nQKV0ba5cTppCD8P
-tOFCx4j1P5iop7oc4HFx71hXgVB6XGt0Rg6DA5jDjqhu8nYybieDwnPz3BjotJPqdURrBGAgcVeH
-nfO+oJAjPYok4doh28MCAwEAAaMzMDEwDwYDVR0TAQH/BAUwAwEB/zARBgNVHQ4ECgQISqCqWITT
-XjwwCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQBazof5FnIVV0sd2ZvnoiYw7JNn39Yt
-0jSv9zilzqsWuasvfDXLrNAPtEwr/IDva4yRXzZ299uzGxnq9LIR/WFxRL8oszodv7ND6J+/3DEI
-cbCdjdY0RzKQxmUk96BKfARzjzlvF4xytb1LyHr4e4PDKE6cCepnP7JnBBvDFNr450kkkdAdavph
-Oe9r5yF1BgfYErQhIHBCcYHaPJo2vqZbDWpsmh+Re/n570K6Tk6ezAyNlNzZRZxe7EJQY670XcSx
-EtzKO6gunRRaBXW37Ndj4ro1tgQIkejanZz2ZrUYrAqmVCY0M9IbwdR/GjqOC6oybtv8TyWf2TLH
-llpwrN9M
------END CERTIFICATE-----
-
-Camerfirma Chambers of Commerce Root
-====================================
------BEGIN CERTIFICATE-----
-MIIEvTCCA6WgAwIBAgIBADANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJFVTEnMCUGA1UEChMe
-QUMgQ2FtZXJmaXJtYSBTQSBDSUYgQTgyNzQzMjg3MSMwIQYDVQQLExpodHRwOi8vd3d3LmNoYW1i
-ZXJzaWduLm9yZzEiMCAGA1UEAxMZQ2hhbWJlcnMgb2YgQ29tbWVyY2UgUm9vdDAeFw0wMzA5MzAx
-NjEzNDNaFw0zNzA5MzAxNjEzNDRaMH8xCzAJBgNVBAYTAkVVMScwJQYDVQQKEx5BQyBDYW1lcmZp
-cm1hIFNBIENJRiBBODI3NDMyODcxIzAhBgNVBAsTGmh0dHA6Ly93d3cuY2hhbWJlcnNpZ24ub3Jn
-MSIwIAYDVQQDExlDaGFtYmVycyBvZiBDb21tZXJjZSBSb290MIIBIDANBgkqhkiG9w0BAQEFAAOC
-AQ0AMIIBCAKCAQEAtzZV5aVdGDDg2olUkfzIx1L4L1DZ77F1c2VHfRtbunXF/KGIJPov7coISjlU
-xFF6tdpg6jg8gbLL8bvZkSM/SAFwdakFKq0fcfPJVD0dBmpAPrMMhe5cG3nCYsS4No41XQEMIwRH
-NaqbYE6gZj3LJgqcQKH0XZi/caulAGgq7YN6D6IUtdQis4CwPAxaUWktWBiP7Zme8a7ileb2R6jW
-DA+wWFjbw2Y3npuRVDM30pQcakjJyfKl2qUMI/cjDpwyVV5xnIQFUZot/eZOKjRa3spAN2cMVCFV
-d9oKDMyXroDclDZK9D7ONhMeU+SsTjoF7Nuucpw4i9A5O4kKPnf+dQIBA6OCAUQwggFAMBIGA1Ud
-EwEB/wQIMAYBAf8CAQwwPAYDVR0fBDUwMzAxoC+gLYYraHR0cDovL2NybC5jaGFtYmVyc2lnbi5v
-cmcvY2hhbWJlcnNyb290LmNybDAdBgNVHQ4EFgQU45T1sU3p26EpW1eLTXYGduHRooowDgYDVR0P
-AQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIABzAnBgNVHREEIDAegRxjaGFtYmVyc3Jvb3RAY2hh
-bWJlcnNpZ24ub3JnMCcGA1UdEgQgMB6BHGNoYW1iZXJzcm9vdEBjaGFtYmVyc2lnbi5vcmcwWAYD
-VR0gBFEwTzBNBgsrBgEEAYGHLgoDATA+MDwGCCsGAQUFBwIBFjBodHRwOi8vY3BzLmNoYW1iZXJz
-aWduLm9yZy9jcHMvY2hhbWJlcnNyb290Lmh0bWwwDQYJKoZIhvcNAQEFBQADggEBAAxBl8IahsAi
-fJ/7kPMa0QOx7xP5IV8EnNrJpY0nbJaHkb5BkAFyk+cefV/2icZdp0AJPaxJRUXcLo0waLIJuvvD
-L8y6C98/d3tGfToSJI6WjzwFCm/SlCgdbQzALogi1djPHRPH8EjX1wWnz8dHnjs8NMiAT9QUu/wN
-UPf6s+xCX6ndbcj0dc97wXImsQEcXCz9ek60AcUFV7nnPKoF2YjpB0ZBzu9Bga5Y34OirsrXdx/n
-ADydb47kMgkdTXg0eDQ8lJsm7U9xxhl6vSAiSFr+S30Dt+dYvsYyTnQeaN2oaFuzPu5ifdmA6Ap1
-erfutGWaIZDgqtCYvDi1czyL+Nw=
------END CERTIFICATE-----
-
-Camerfirma Global Chambersign Root
-==================================
------BEGIN CERTIFICATE-----
-MIIExTCCA62gAwIBAgIBADANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJFVTEnMCUGA1UEChMe
-QUMgQ2FtZXJmaXJtYSBTQSBDSUYgQTgyNzQzMjg3MSMwIQYDVQQLExpodHRwOi8vd3d3LmNoYW1i
-ZXJzaWduLm9yZzEgMB4GA1UEAxMXR2xvYmFsIENoYW1i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TMozI+gciKqdi0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ
-HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mERdEr/VxqHD3VI
-Ls9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5CufReYNnyicsbkqWletNw+vHX/b
-vZ8=
------END CERTIFICATE-----
-
-Starfield Class 2 CA
-====================
------BEGIN CERTIFICATE-----
-MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzElMCMGA1UEChMc
-U3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZpZWxkIENsYXNzIDIg
-Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQwNjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBo
-MQswCQYDVQQGEwJVUzElMCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAG
-A1UECxMpU3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqG
-SIb3DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf8MOh2tTY
-bitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN+lq2cwQlZut3f+dZxkqZ
-JRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVm
-epsZGD3/cVE8MC5fvj13c7JdBmzDI1aaK4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSN
-F4Azbl5KXZnJHoe0nRrA1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HF
-MIHCMB0GA1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fRzt0f
-hvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNo
-bm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBDbGFzcyAyIENlcnRpZmljYXRpb24g
-QXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGs
-afPzWdqbAYcaT1epoXkJKtv3L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLM
-PUxA2IGvd56Deruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl
-xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynpVSJYACPq4xJD
-KVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEYWQPJIrSPnNVeKtelttQKbfi3
-QBFGmh95DmK/D5fs4C8fF5Q=
------END CERTIFICATE-----
-
-StartCom Certification Authority
-================================
------BEGIN CERTIFICATE-----
-MIIHyTCCBbGgAwIBAgIBATANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMN
-U3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmlu
-ZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDYwOTE3MTk0
-NjM2WhcNMzYwOTE3MTk0NjM2WjB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRk
-LjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMg
-U3RhcnRDb20gQ2VydGlmaWNhd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dBMtoM1O/4gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOvJwIDAQAB
-o2MwYTAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA95QNVbRTLtm
-8KPiGxvDl7I90VUwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUwDQYJKoZIhvcNAQEF
-BQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/EsrhMAtudXH/vTBH1jLuG2cenTnmCmr
-EbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIt
-tep3Sp+dWOIrWcBAI+0tKIJFPnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886
-UAb3LujEV0lsYSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk
-CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4=
------END CERTIFICATE-----
-
-DigiCert High Assurance EV Root CA
-==================================
------BEGIN CERTIFICATE-----
-MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBsMQswCQYDVQQG
-EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSsw
-KQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5jZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAw
-MFoXDTMxMTExMDAwMDAwMFowbDELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZ
-MBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFu
-Y2UgRVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQ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bx
-/uNncqCxv1yL5PqZIseEuRuNI5c/7SXgz2W79WEE790eslpBIlqhn10s6FvJbakMDHiqYMZWjwFa
-DGi8aRl5xB9+lwW/xekkUV7U1UtT7dkjWjYDZaPBA61BMPNGG4WQr2W11bHkFlt4dR2Xem1ZqSqP
-e97Dh4kQmUlzeMg9vVE1dCrV8X5pGyq7O70luJpaPXJhkGaH7gzWTdQRdAtq/gsD/KNVV4n+Ssuu
-WxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/OMpXEA29MC/HpeZBoNquBYeaoKRlbEwJ
-DIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+hAhm0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ub
-DgEj8Z+7fNzcbBGXJbLytGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u
------END CERTIFICATE-----
-
-GeoTrust Primary Certification Authority
-========================================
------BEGIN CERTIFICATE-----
-MIIDfDCCAmSgAwIBAgIQGKy1av1pthU6Y2yv2vrEoTANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQG
-EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjExMC8GA1UEAxMoR2VvVHJ1c3QgUHJpbWFyeSBD
-ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjExMjcwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMFgx
-CzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTEwLwYDVQQDEyhHZW9UcnVzdCBQ
-cmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
-CgKCAQEAvrgVe//UfH1nrYNke8hCUy3f9oQIIGHWAVlqnEQRr+92/ZV+zmEwu3qDXwK9AWbK7hWN
-b6EwnL2hhZ6UOvNWiAAxz9juapYC2e0DjPt1befquFUWBRaa9OBesYjAZIVcFU2Ix7e64HXpr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Q6gLkH3LpVH
-z7z9M/P2C2F+fpErgUfCJzDupxBdN49cOSvkBPB7jVaMaA==
------END CERTIFICATE-----
-
-VeriSign Class 3 Public Primary Certification Authority - G5
-============================================================
------BEGIN CERTIFICATE-----
-MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCByjELMAkGA1UE
-BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
-ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVk
-IHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRp
-ZmljYXRpb24gQXV0aG9yaXR5IC0gRzUwHhcNMDYxMTA4MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCB
-yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2ln
-biBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2lnbiwgSW5jLiAtIEZvciBh
-dXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmlt
-YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
-ggEKAoIBAQCvJAgIKXo1nmAMqudLO07cfLw8RRy7K+D+KQL5VwijZIUVJ/XxrcgxiV0i6CqqpkKz
-j/i5Vbext0uz/o9+B1fs70PbZmIVYc9gDaTY3vjgw2IIPVQT60nKWVSFJuUrjxuf6/WhkcIzSdhD
-Y2pSS9KP6HBRTdGJaXvHcPaz3BJ023tdS1bTlr8Vd6Gw9KIl8q8ckmcY5fQGBO+QueQA5N06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ciE6+
-OYo68+aCiV0BN7OrJKQVDpI1WkpEXk5X+nXOH0jOZvQ8QCaSmGwb7iRGDBezUqXbpZGRzzfTb+cn
-CDpOGR86p1hcF895P4vkp9MmI50mD1hp/Ed+stCNi5O/KU9DaXR2Z0vPB4zmAve14bRDtUstFJ/5
-3CYNv6ZHdAbYiNE6KTCEztI5gGIbqMdXSbxqVVFnFUq+NQfk1XWYN3kwFNspnWzFacxHVaIw98xc
-f8LDmBxrThaA63p4ZUWiABqvDA1VZDRIuJK58bRQKfJPIx/abKwfROHdI3hRW8cW
------END CERTIFICATE-----
-
-COMODO Certification Authority
-==============================
------BEGIN CERTIFICATE-----
-MIIEHTCCAwWgAwIBAgIQToEtioJl4AsC7j41AkblPTANBgkqhkiG9w0BAQUFADCBgTELMAkGA1UE
-BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
-A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxJzAlBgNVBAMTHkNPTU9ETyBDZXJ0aWZpY2F0aW9uIEF1
-dGhvcml0eTAeFw0wNjEyMDEwMDAwMDBaFw0yOTEyMzEyMzU5NTlaMIGBMQswCQYDVQQGEwJHQjEb
-MBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFD
-T01PRE8gQ0EgTGltaXRlZDEnMCUGA1UEAxMeQ09NT0RPIENlcnRpZmljYXRpb24gQXV0aG9yaXR5
-MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3UcEbVASY06m/weaKXTuH
-+7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI2GqGd0S7WWaXUF601CxwRM/aN5VCaTww
-xHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8Q5sVW7euNJH+1GImGEaaP+vB+fGQV+useg2L23IwambV
-4EajcNxo2f8ESIl33rXp+2dtQem8Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA
-1KGzqSX+DT+nHbrTUcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5OnKVI
-rLsm9wIDAQABo4GOMIGLMB0GA1UdDgQWBBQLWOWLxkwVN6RAqTCpIb5HNlpW/zAOBgNVHQ8BAf8E
-BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zBJBgNVHR8EQjBAMD6gPKA6hjhodHRwOi8vY3JsLmNvbW9k
-b2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9uQXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOC
-AQEAPpiem/Yb6dc5t3iuHXIYSdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CP
-OGEIqB6BCsAvIC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/
-RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4zJVSk/BwJVmc
-IGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5ddBA6+C4OmF4O5MBKgxTMVBbkN
-+8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IBZQ==
------END CERTIFICATE-----
-
-Network Solutions Certificate Authority
-=======================================
------BEGIN CERTIFICATE-----
-MIID5jCCAs6gAwIBAgIQV8szb8JcFuZHFhfjkDFo4DANBgkqhkiG9w0BAQUFADBiMQswCQYDVQQG
-EwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMuMTAwLgYDVQQDEydOZXR3b3Jr
-IFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDYxMjAxMDAwMDAwWhcNMjkxMjMx
-MjM1OTU5WjBiMQswCQYDVQQGEwJVUzE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D
-ydi8NmdspZS11My5vWo1ViHe2MPr+8ukYEywVaCge1ey
------END CERTIFICATE-----
-
-COMODO ECC Certification Authority
-==================================
------BEGIN CERTIFICATE-----
-MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTELMAkGA1UEBhMC
-R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE
-ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBB
-dXRob3JpdHkwHhcNMDgwMzA2MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0Ix
-GzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR
-Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRo
-b3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSRFtSrYpn1PlILBs5BAH+X
-4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0JcfRK9ChQtP6IHG4/bC8vCVlbpVsLM5ni
-wz2J+Wos77LTBumjQjBAMB0GA1UdDgQWBBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8E
-BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjEA7wNbeqy3eApyt4jf/7VG
-FAkK+qDmfQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdvGDeA
-U/7dIOA1mjbRxwG55tzd8/8dLDoWV9mSOdY=
------END CERTIFICATE-----
-
-Security Communication EV RootCA1
-=================================
------BEGIN CERTIFICATE-----
-MIIDf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6llsf9g/BYxnnW
-mHyojf6GPgcWkuF75x3sM3Z+Qi5KhfmRiWiEA4Glm5q+4zfFVKtWOxgtQaQM+ELbmaDgcm+7XeEW
-T1MKZPlO9L9OVL14bIjqv5wTJMJwaaJ/D8g8rQjJsJhAoyrniIPtd490
------END CERTIFICATE-----
-
-OISTE WISeKey Global Root GA CA
-===============================
------BEGIN CERTIFICATE-----
-MIID8TCCAtmgAwIBAgIQQT1yx/RrH4FDffHSKFTfmjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UE
-BhMCQ0gxEDAOBgNVBAoTB1dJU2VLZXkxGzAZBgNVBAsTEkNvcHlyaWdodCAoYykgMjAwNTEiMCAG
-A1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBH
-bG9iYWwgUm9vdCBHQSBDQTAeFw0wNTEyMTExNjAzNDRaFw0zNzEyMTExNjA5NTFaMIGKMQswCQYD
-VQQGEwJDSDEQMA4GA1UEChMHV0lTZUtleTEbMBkGA1UECxMSQ29weXJpZ2h0IChjKSAyMDA1MSIw
-IAYDVQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5
-IEdsb2JhbCBSb290IEdBIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy0+zAJs9
-Nt350UlqaxBJH+zYK7LG+DKBKUOVTJoZIyEVRd7jyBxRVVuuk+g3/ytr6dTqvirdqFEr12bDYVxg
-Asj1znJ7O7jyTmUIms2kahnBAbtzptf2w93NvKSLtZlhuAGio9RN1AU9ka34tAhxZK9w8RxrfvbD
-d50kc3vkDIzh2TbhmYsFmQvtRTEJysIA2/dyoJaqlYfQjse2YXMNdmaM3Bu0Y6Kff5MTMPGhJ9vZ
-/yxViJGg4E8HsChWjBgbl0SOid3gF27nKu+POQoxhILYQBRJLnpB5Kf+42TMwVlxSywhp1t94B3R
-L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qXZI+O4Tkogp24CJJ8iYGd7ix1yCcUxXOl5n4BHPa2hCwcUPUf/A2kaDAtE52Mlp3+yybh2
-hO0j9n0Hq0V+09+zv+mKts2oomcrUtW3ZfA5TGOgkXmTUg9U3YO7n9GPp1Nzw8v/MOx8BLjYRB+T
-X3EJIrduPuocA06dGiBh+4E37F78CkWr1+cXVdCg6mCbpvbjjFspwgZgFJ0tl0ypkxWdYcQBX0jW
-WL1WMRJOEcgh4LMRkWXbtKaIOM5V
------END CERTIFICATE-----
-
-ePKI Root Certification Authority
-=================================
------BEGIN CERTIFICATE-----
-MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBeMQswCQYDVQQG
-EwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0ZC4xKjAoBgNVBAsMIWVQS0kg
-Um9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNDEyMjAwMjMxMjdaFw0zNDEyMjAwMjMx
-MjdaMF4xCzAJBgNVBAYTAlRXMSMwIQYDVQQKDBpDaHVuZ2h3YSBUZWxlY29tIENvLiwgTHRkLjEq
-MCgGA1UECwwhZVBLSSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0B
-AQEFAAOCAg8AMIICCgKCAgEA4SUP7o3biDN1Z82tH306Tm2d0y8U82N0ywEhajfqhFAHSyZbCUNs
-IZ5qyNUD9WBpj8zwIuQf5/dqIjG3LBXy4P4AakP/h2XGtRrBp0xtInAhijHyl3SJCRImHJ7K2RKi
-lTza6We/CKBk49ZCt0Xvl/T29de1ShUCWH2YWEtgvM3XDZoTM1PRYfl61dd4s5oz9wCGzh1NlDiv
-qOx4UXCKXBCDUSH3ET00hl7lSM2XgYI1TBnsZfZrxQWh7kcT1rMhJ5QQCtkkO7q+RBNGMD+XPNjX
-12ruOzjjK9SXDrkb5wdJfzcq+Xd4z1TtW0ado4AOkUPB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QYlE535YW6i4jRPpp2zDR+2zGp1iro2C6pSe3VkQw63d4k3jMdXH7Ojy
-sP6SHhYKGvzZ8/gntsm+HbRsZJB/9OTEW9c3rkIO3aQab3yIVMUWbuF6aC74Or8NpDyJO3inTmOD
-BCEIZ43ygknQW/2xzQ+DhNQ+IIX3Sj0rnP0qCglN6oH4EZw=
------END CERTIFICATE-----
-
-T\xc3\x9c\x42\xC4\xB0TAK UEKAE K\xC3\xB6k Sertifika Hizmet Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1 - S\xC3\xBCr\xC3\xBCm 3
-=============================================================================================================================
------BEGIN CERTIFICATE-----
-MIIFFzCCA/+gAwIBAgIBETANBgkqhkiG9w0BAQUFADCCASsxCzAJBgNVBAYTAlRSMRgwFgYDVQQH
-DA9HZWJ6ZSAtIEtvY2FlbGkxRzBFBgNVBAoMPlTDvHJraXllIEJpbGltc2VsIHZlIFRla25vbG9q
-aWsgQXJhxZ90xLFybWEgS3VydW11IC0gVMOcQsSwVEFLMUgwRgYDVQQLDD9VbHVzYWwgRWxla3Ry
-b25payB2ZSBLcmlwdG9sb2ppIEFyYcWfdMSxcm1hIEVuc3RpdMO8c8O8IC0gVUVLQUUxIzAhBgNV
-BAsMGkthbXUgU2VydGlmaWthc3lvbiBNZXJrZXppMUowSAYDVQQDDEFUw5xCxLBUQUsgVUVLQUUg
-S8O2ayBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsSAtIFPDvHLDvG0gMzAeFw0wNzA4
-MjQxMTM3MDdaFw0xNzA4MjExMTM3MDdaMIIBKzELMAkGA1UEBhMCVFIxGDAWBgNVBAcMD0dlYnpl
-IC0gS29jYWVsaTFHMEUGA1UECgw+VMO8cmtpeWUgQmlsaW1zZWwgdmUgVGVrbm9sb2ppayBBcmHF
-n3TEsXJtYSBLdXJ1bXUgLSBUw5xCxLBUQUsxSDBGBgNVBAsMP1VsdXNhbCBFbGVrdHJvbmlrIHZl
-IEt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GpC9oHRxUIlt
-vBTjD4au8as+x6AJzKNI0eDbZOeStc+vckNwi/nDhDwTqn6Sm1dTk/pwwpEOMfmbZ13pljheX7Nz
-TogVZ96edhBiIL5VaZVDADlN9u6wWk5JRFRYX0KD
------END CERTIFICATE-----
-
-GeoTrust Primary Certification Authority - G3
-=============================================
------BEGIN CERTIFICATE-----
-MIID/jCCAuagAwIBAgIQFaxulBmyeUtB9iepwxgPHzANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UE
-BhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA4IEdlb1RydXN0
-IEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFy
-eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEczMB4XDTA4MDQwMjAwMDAwMFoXDTM3MTIwMTIz
-NTk1OVowgZgxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAo
-YykgMjAwOCBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNVBAMT
-LUdlb1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMzCCASIwDQYJKoZI
-hvcNAQEBBQADggEPADCCAQoCggEBANziXmJYHTNXOTIz+uvLh4yn1ErdBojqZI4xmKU4kB6Yzy5j
-K/BGvESyiaHAKAxJcCGVn2TAppMSAmUmhsalifD614SgcK9PGpc/BkTVyetyEH3kMSj7HGHmKAdE
-c5IiaacDiGydY8hS2pgn5whMcD60yRLBxWeDXTPzAxHsatBT4tG6NmCUgLthY2xbF37fQJQeqw3C
-IShwiP/WJmxsYAQlTlV+fe+/lEjetx3dcI0FX4ilm/LC7urRQEFtYjgdVgbFA0dRIBn8exALDmKu
-dlW/X3e+PkkBUz2YJQN2JFodtNuJ6nnltrM7P7pMKEF/BqxqjsHQ9gUdfeZChuOl1UcCAwEAAaNC
-MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMR5yo6hTgMdHNxr
-2zFblD4/MH8tMA0GCSqGSIb3DQEBCwUAA4IBAQAtxRPPVoB7eni9n64smefv2t+UXglpp+duaIy9
-cr5HqQ6XErhK8WTTOd8lNNTBzU6B8A8ExCSzNJbGpqow32hhc9f5joWJ7w5elShKKiePEI4ufIbE
-Ap7aDHdlDkQNkv39sxY2+hENHYwOB4lqKVb3cvTdFZx3NWZXqxNT2I7BQMXXExZacse3aQHEerGD
-AWh9jUGhlBjBJVz88P6DAod8DQ3PLghcSkANPuyBYeYk28rgDi0Hsj5W3I31QYUHSJsMC8tJP33s
-t/3LjWeJGqvtux6jAAgIFyqCXDFdRootD4abdNlF+9RAsXqqaC2Gspki4cErx5z481+oghLrGREt
------END CERTIFICATE-----
-
-thawte Primary Root CA - G2
-===========================
------BEGIN CERTIFICATE-----
-MIICiDCCAg2gAwIBAgIQNfwmXNmET8k9Jj1Xm67XVjAKBggqhkjOPQQDAzCBhDELMAkGA1UEBhMC
-VVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjE4MDYGA1UECxMvKGMpIDIwMDcgdGhhd3RlLCBJbmMu
-IC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJDAiBgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3Qg
-Q0EgLSBHMjAeFw0wNzExMDUwMDAwMDBaFw0zODAxMTgyMzU5NTlaMIGEMQswCQYDVQQGEwJVUzEV
-MBMGA1UEChMMdGhhd3RlLCBJbmMuMTgwNgYDVQQLEy8oYykgMjAwNyB0aGF3dGUsIEluYy4gLSBG
-b3IgYXV0aG9yaXplZCB1c2Ugb25seTEkMCIGA1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAt
-IEcyMHYwEAYHKoZIzj0CAQYFK4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9w0BAQEFAAOCAQ8A
-MIIBCgKCAQEAsr8nLPvb2FvdeHsbnndmgcs+vHyu86YnmjSjaDFxODNi5PNxZnmxqWWjpYvVj2At
-P0LMqmsywCPLLEHd5N/8YZzic7IilRFDGF/Eth9XbAoFWCLINkw6fKXRz4aviKdEAhN0cXMKQlkC
-+BsUa0Lfb1+6a4KinVvnSr0eAXLbS3ToO39/fR8EtCab4LRarEc9VbjXsCZSKAExQGbY2SS99irY
-7CFJXJv2eul/VTV+lmuNk5Mny5K76qxAwJ/C+IDPXfRa3M50hqY+bAtTyr2SzhkGcuYMXDhpxwTW
-vGzOW/b3aJzcJRVIiKHpqfiYnODz1TEoYRFsZ5aNOZnLwkUkOQIDAQABo0IwQDAPBgNVHRMBAf8E
-BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUrWyqlGCc7eT/+j4KdCtjA/e2Wb8wDQYJ
-KoZIhvcNAQELBQADggEBABpA2JVlrAmSicY59BDlqQ5mU1143vokkbvnRFHfxhY0Cu9qRFHqKweK
-A3rD6z8KLFIWoCtDuSWQP3CpMyVtRRooOyfPqsMpQhvfO0zAMzRbQYi/aytlryjvsvXDqmbOe1bu
-t8jLZ8HJnBoYuMTDSQPxYA5QzUbF83d597YV4Djbxy8ooAw/dyZ02SUS2jHaGh7cKUGRIjxpp7sC
-8rZcJwOJ9Abqm+RyguOhCcHpABnTPtRwa7pxpqpYrvS76Wy274fMm7v/OeZWYdMKp8RcTGB7BXcm
-er/YB1IsYvdwY9k5vG8cwnncdimvzsUsZAReiDZuMdRAGmI0Nj81Aa6sY6A=
------END CERTIFICATE-----
-
-GeoTrust Primary Certification Authority - G2
-=============================================
------BEGIN CERTIFICATE-----
-MIICrjCCAjWgAwIBAgIQPLL0SAoA4v7rJDteYD7DazAKBggqhkjOPQQDAzCBmDELMAkGA1UEBhMC
-VVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA3IEdlb1RydXN0IElu
-Yy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFyeSBD
-ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMB4XDTA3MTEwNTAwMDAwMFoXDTM4MDExODIzNTk1
-OVowgZgxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAoYykg
-MjAwNyBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNVBAMTLUdl
-b1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMjB2MBAGByqGSM49AgEG
-BSuBBAAiA2IABBWx6P0DFUPlrOuHNxFi79KDNlJ9RVcLSo17VDs6bl8VAsBQps8lL33KSLjHUGMc
-KiEIfJo22Av+0SbFWDEwKCXzXV2juLaltJLtbCyf691DiaI8S0iRHVDsJt/WYC69IaNCMEAwDwYD
-VR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBVfNVdRVfslsq0DafwBo/q+
-EVXVMAoGCCqGSM49BAMDA2cAMGQCMGSWWaboCd6LuvpaiIjwH5HTRqjySkwCY/tsXzjbLkGTqQ7m
-ndwxHLKgpxgceeHHNgIwOlavmnRs9vuD4DPTCF+hnMJbn0bWtsuRBmOiBuczrD6ogRLQy7rQkgu2
-npaqBA+K
------END CERTIFICATE-----
-
-VeriSign Universal Root Certification Authority
-===============================================
------BEGIN CERTIFICATE-----
-MIIEuTCCA6GgAwIBAgIQQBrEZCGzEyEDDrvkEhrFHTANBgkqhkiG9w0BAQsFADCBvTELMAkGA1UE
-BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
-ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwOCBWZXJpU2lnbiw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UxLVwuoHMnYH0ZcHGTANBgkqhkiG9w0BAQsFAAOCAQEASvj4sAPmLGd75JR3
-Y8xuTPl9Dg3cyLk1uXBPY/ok+myDjEedO2Pzmvl2MpWRsXe8rJq+seQxIcaBlVZaDrHC1LGmWazx
-Y8u4TB1ZkErvkBYoH1quEPuBUDgMbMzxPcP1Y+Oz4yHJJDnp/RVmRvQbEdBNc6N9Rvk97ahfYtTx
-P/jgdFcrGJ2BtMQo2pSXpXDrrB2+BxHw1dvd5Yzw1TKwg+ZX4o+/vqGqvz0dtdQ46tewXDpPaj+P
-wGZsY6rp2aQW9IHRlRQOfc2VNNnSj3BzgXucfr2YYdhFh5iQxeuGMMY1v/D/w1WIg0vvBZIGcfK4
-mJO37M2CYfE45k+XmCpajQ==
------END CERTIFICATE-----
-
-VeriSign Class 3 Public Primary Certification Authority - G4
-============================================================
------BEGIN CERTIFICATE-----
-MIIDhDCCAwqgAwIBAgIQL4D+I4wOIg9IZxIokYesszAKBggqhkjOPQQDAzCByjELMAkGA1UEBhMC
-VVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3
-b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVz
-ZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmlj
-YXRpb24gQXV0aG9yaXR5IC0gRzQwHhcNMDcxMTA1MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCByjEL
-MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBU
-cnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRo
-b3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5
-IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASnVnp8
-Utpkmw4tXNherJI9/gHmGUo9FANL+mAnINmDiWn6VMaaGF5VKmTeBvaNSjutEDxlPZCIBIngMGGz
-rl0Bp3vefLK+ymVhAIau2o970ImtTR1ZmkGxvEeA3J5iw/mjgbIwga8wDwYDVR0TAQH/BAUwAwEB
-/zAOBgNVHQ8BAf8EBAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2UvZ2lmMCEw
-HzAHBgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cDovL2xvZ28udmVyaXNpZ24u
-Y29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFLMWkf3upm7ktS5Jj4d4gYDs5bG1MAoGCCqGSM49BAMD
-A2gAMGUCMGYhDBgmYFo4e1ZC4Kf8NoRRkSAsdk1DPcQdhCPQrNZ8NQbOzWm9kA3bbEhCHQ6qQgIx
-AJw9SDkjOVgaFRJZap7v1VmyHVIsmXHNxynfGyphe3HR3vPA5Q06Sqotp9iGKt0uEA==
------END CERTIFICATE-----
-
-NetLock Arany (Class Gold) Főtanúsítvány
-========================================
------BEGIN CERTIFICATE-----
-MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQGEwJIVTERMA8G
-A1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3MDUGA1UECwwuVGFuw7pzw610
-dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBB
-cmFueSAoQ2xhc3MgR29sZCkgRsWRdGFuw7pzw610dsOhbnkwHhcNMDgxMjExMTUwODIxWhcNMjgx
-MjA2MTUwODIxWjCBpzELMAkGA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fRCaexOYNkbQu
-dZWAUWpLMKawYqGT8ZvYzsRjdT9ZR7E=
------END CERTIFICATE-----
-
-Staat der Nederlanden Root CA - G2
-==================================
------BEGIN CERTIFICATE-----
-MIIFyjCCA7KgAwIBAgIEAJiWjDANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJOTDEeMBwGA1UE
-CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
-Um9vdCBDQSAtIEcyMB4XDTA4MDMyNjExMTgxN1oXDTIwMDMyNTExMDMxMFowWjELMAkGA1UEBhMC
-TkwxHjAcBgNVBAoMFVN0YWF0IGRlciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5l
-ZGVybGFuZGVuIFJvb3QgQ0EgLSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMVZ
-5291qj5LnLW4rJ4L5PnZyqtdj7U5EILXr1HgO+EASGrP2uEGQxGZqhQlEq0i6ABtQ8SpuOUfiUtn
-vWFI7/3S4GCI5bkYYCjDdyutsDeqN95kWSpGV+RLufg3fNU254DBtvPUZ5uW6M7XxgpT0GtJlvOj
-CwV3SPcl5XCsMBQgJeN/dVrlSPhOewMHBPqCYYdu8DvEpMfQ9XQ+pV0aCPKbJdL2rAQmPlU6Yiil
-e7Iwr/g3wtG61jj99O9JMDeZJiFIhQGp5Rbn3JBV3w/oOM2ZNyFPXfUib2rFEhZgF1XyZWampzCR
-OME4HYYEhLoaJXhena/MUGDWE4dS7WMfbWV9whUYdMrhfmQpjHLYFhN9C0lK8SgbIHRrxT3dsKpI
-CT0ugpTNGmXZK4iambwYfp/ufWZ8Pr2UuIHOzZgweMFvZ9C+X+Bo7d7iscksWXiSqt8rYGPy5V65
-48r6f1CGPqI0GAwJaCgRHOThuVw+R7oyPxjMW4T182t0xHJ04eOLoEq9jWYv6q012iDTiIJh8BIi
-trzQ1aTsr1SIJSQ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m
-66+KAQ==
------END CERTIFICATE-----
-
-Hongkong Post Root CA 1
-=======================
------BEGIN CERTIFICATE-----
-MIIDMDCCAhigAwIBAgICA+gwDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoT
-DUhvbmdrb25nIFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMB4XDTAzMDUx
-NTA1MTMxNFoXDTIzMDUxNTA0NTIyOVowRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoTDUhvbmdrb25n
-IFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMIIBIjANBgkqhkiG9w0BAQEF
-AAOCAQ8AMIIBCgKCAQEArP84tulmAknjorThkPlAj3n54r15/gK97iSSHSL22oVyaf7XPwnU3ZG1
-ApzQjVrhVcNQhrkpJsLj2aDxaQMoIIBFIi1WpztUlVYiWR8o3x8gPW2iNr4joLFutbEnPzlTCeqr
-auh0ssJlXI6/fMN4hM2eFvz1Lk8gKgifd/PFHsSaUmYeSF7jEAaPIpjhZY4bXSNmO7ilMlHIhqqh
-qZ5/dpTCpmy3QfDVyAY45tQM4vM7TG1QjMSDJ8EThFk9nnV0ttgCXjqQesBCNnLsak3c78QA3xMY
-V18meMjWCnl3v/evt3a5pQuEF10Q6m/hq5URX208o1xNg1vysxmKgIsLhwIDAQABoyYwJDASBgNV
-HRMBAf8ECDAGAQH/AgEDMA4GA1UdDwEB/wQEAwIBxjANBgkqhkiG9w0BAQUFAAOCAQEADkbVPK7i
-h9legYsCmEEIjEy82tvuJxuC52pF7BaLT4Wg87JwvVqWuspube5Gi27nKi6Wsxkz67SfqLI37pio
-l7Yutmcn1KZJ/RyTZXaeQi/cImyaT/JaFTmxcdcrUehtHJjA2Sr0oYJ71clBoiMBdDhViw+5Lmei
-IAQ32pwL0xch4I+XeTRvhEgCIDMb5jREn5Fw9IBehEPCKdJsEhTkYY2sEJCehFC78JZvRZ+K88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iie/QV2EcWt
-iHL8RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsTgHeMCOFJ
-0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmmKPZpO/bLyCiR5Z2KYVc3
-rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zdQQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjl
-OCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZXriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2
-xmmFghcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
-FI/wS3+oLkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZURUm7
-lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMpjjM5RcOO5LlXbKr8
-EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK6fBdRoyV3XpYKBovHd7NADdBj+1E
-bddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQXmcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18
-YIvDQVETI53O9zJrlAGomecsMx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7r
-kpeDMdmztcpHWD9f
------END CERTIFICATE-----
-
-Autoridad de Certificacion Firmaprofesional CIF A62634068
-=========================================================
------BEGIN CERTIFICATE-----
-MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UEBhMCRVMxQjBA
-BgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2
-MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVa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ZmVzaW9uYWwuY29tL2NwczBcBggrBgEFBQcCAjBQHk4AUABhAHMAZQBvACAAZABlACAA
-bABhACAAQgBvAG4AYQBuAG8AdgBhACAANAA3ACAAQgBhAHIAYwBlAGwAbwBuAGEAIAAwADgAMAAx
-ADcwDQYJKoZIhvcNAQEFBQADggIBABd9oPm03cXF661LJLWhAqvdpYhKsg9VSytXjDvlMd3+xDLx
-51tkljYyGOylMnfX40S2wBEqgLk9am58m9Ot/MPWo+ZkKXzR4Tgegiv/J2Wv+xYVxC5xhOW1//qk
-R71kMrv2JYSiJ0L1ILDCExARzRAVukKQKtJE4ZYm6zFIEv0q2skGz3QeqUvVhyj5eTSSPi5E6PaP
-T481PyWzOdxjKpBrIF/EUhJOlywqrJ2X3kjyo2bbwtKDlaZmp54lD+kLM5FlClrD2VQS3a/DTg4f
-Jl4N3LON7NWBcN7STyQF82xO9UxJZo3R/9ILJUFI/lGExkKvgATP0H5kSeTy36LssUzAKh3ntLFl
-osS88Zj0qnAHY7S42jtM+kAiMFsRpvAFDsYCA0irhpuF3dvd6qJ2gHN99ZwExEWN57kci57q13XR
-crHedUTnQn3iV2t93Jm8PYMo6oCTjcVMZcFwgbg4/EMxsvYDNEeyrPsiBsse3RdHHF9mudMaotoR
-saS8I8nkvof/uZS2+F0gStRf571oe2XyFR7SOqkt6dhrJKyXWERHrVkY8SFlcN7ONGCoQPHzPKTD
-KCOM/iczQ0CgFzzr6juwcqajuUpLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQBjLMi
-6Et8Vcad+qMUu2WFbm5PEn4KPJ2V
------END CERTIFICATE-----
-
-Izenpe.com
-==========
------BEGIN CERTIFICATE-----
-MIIF8TCCA9mgAwIBAgIQALC3WhZIX7/hy/WL1xnmfTANBgkqhkiG9w0BAQsFADA4MQswCQYDVQQG
-EwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wHhcNMDcxMjEz
-MTMwODI4W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wMTAx
-MCBWaXRvcmlhLUdhc3RlaXowDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0O
-BBYEFB0cZQ6o8iV7tJHP5LGx5r1VdGwFMA0GCSqGSIb3DQEBCwUAA4ICAQB4pgwWSp9MiDrAyw6l
-Fn2fuUhfGI8NYjb2zRlrrKvV9pF9rnHzP7MOeIWblaQnIUdCSnxIOvVFfLMMjlF4rJUT3sb9fbga
-kEyrkgPH7UIBzg/YsfqikuFgba56awmqxinuaElnMIAkejEWOVt+8Rwu3WwJrfIxwYJOubv5vr8q
-hT/AQKM6WfxZSzwoJNu0FXWuDYi6LnPAvViH5ULy617uHjAimcs30cQhbIHsvm0m5hzkQiCeR7Cs
-g1lwLDXWrzY0tM07+DKo7+N4ifuNRSzanLh+QBxh5z6ikixL8s36mLYp//Pye6kfLqCTVyvehQP5
-aTfLnnhqBbTFMXiJ7HqnheG5ezzevh55hM6fcA5ZwjUukCox2eRFekGkLhObNA5me0mrZJfQRsN5
-nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJbUjWumDqtujWTI6cfSN01RpiyEGjkpTHC
-ClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZo
-Q0iy2+tzJOeRf1SktoA+naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1Z
-WrOZyGlsQyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw==
------END CERTIFICATE-----
-
-Chambers of Commerce Root - 2008
-================================
------BEGIN CERTIFICATE-----
-MIIHTzCCBTegAwIBAgIJAKPaQn6ksa7aMA0GCSqGSIb3DQEBBQUAMIGuMQswCQYDVQQGEwJFVTFD
-MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
-bS9hZ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NFNb0+RqE4QGtjICxFKuItLcsiFCGtpA8CnJ7AoMXOLQusxI0zcK
-zBIKinmwPQN/aUv0NCB9szTqjktk9T79syNnFQ0EuPAtwQlRPLJsFfClI9eDdOTlLsn+mCdCxqvG
-nrDQWzilm1DefhiYtUU79nm06PcaewaD+9CL2rvHvRirCG88gGtAPxkZumWK5r7VXNM21+9AUiRg
-OGcEMeyP84LG3rlV8zsxkVrctQgVrXYlCg17LofiDKYGvCYQbTed7N14jHyAxfDZd0jQ
------END CERTIFICATE-----
-
-Global Chambersign Root - 2008
-==============================
------BEGIN CERTIFICATE-----
-MIIHSTCCBTGgAwIBAgIJAMnN0+nVfSPOMA0GCSqGSIb3DQEBBQUAMIGsMQswCQYDVQQGEwJFVTFD
-MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
-bS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMu
-QS4xJzAlBgNVBAMTHkdsb2JhbCBDaGFtYmVyc2lnbiBSb290IC0gMjAwODAeFw0wODA4MDExMjMx
-NDBaFw0zODA3MzExMjMxNDBaMIGsMQswCQYDVQQGEwJFVTFDMEEGA1UEBxM6TWFkcmlkIChzZWUg
-Y3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNvbS9hZGRyZXNzKTESMBAGA1UEBRMJ
-QTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMuQS4xJzAlBgNVBAMTHkdsb2JhbCBD
-aGFtYmVyc2lnbiBSb290IC0gMjAwODCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMDf
-VtPkOpt2RbQT2//BthmLN0EYlVJH6xedKYiONWwGMi5HYvNJBL99RDaxccy9Wglz1dmFRP+RVyXf
-XjaOcNFccUMd2drvXNL7G706tcuto8xEpw2uIRU/uXpbknXYp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b2xpY3kuY2FtZXJmaXJtYS5jb20wDQYJKoZIhvcNAQEFBQADggIBAICIf3DekijZBZRG
-/5BXqfEv3xoNa/p8DhxJJHkn2EaqbylZUohwEurdPfWbU1Rv4WCiqAm57OtZfMY18dwY6fFn5a+6
-ReAJ3spED8IXDneRRXozX1+WLGiLwUePmJs9wOzL9dWCkoQ10b42OFZyMVtHLaoXpGNR6woBrX/s
-dZ7LoR/xfxKxueRkf2fWIyr0uDldmOghp+G9PUIadJpwr2hsUF1Jz//7Dl3mLEfXgTpZALVza2Mg
-9jFFCDkO9HB+QHBaP9BrQql0PSgvAm11cpUJjUhjxsYjV5KTXjXBjfkK9yydYhz2rXzdpjEetrHH
-foUm+qRqtdpjMNHvkzeyZi99Bffnt0uYlDXA2TopwZ2yUDMdSqlapskD7+3056huirRXhOukP9Du
-qqqHW2Pok+JrqNS4cnhrG+055F3Lm6qH1U9OAP7Zap88MQ8oAgF9mOinsKJknnn4SPIVqczmyETr
-P3iZ8ntxPjzxmKfFGBI/5rsoM0LpRQp8bfKGeS/Fghl9CYl8slR2iK7ewfPM4W7bMdaTrpmg7yVq
-c5iJWzouE4gev8CSlDQb4ye3ix5vQv/n6TebUB0tovkC7stYWDpxvGjjqsGvHCgfotwjZT+B6q6Z
-09gwzxMNTxXJhLynSC34MCN32EZLeW32jO06f2ARePTpm67VVMB0gNELQp/B
------END CERTIFICATE-----
-
-Go Daddy Root Certificate Authority - G2
-========================================
------BEGIN CERTIFICATE-----
-MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
-B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoTEUdvRGFkZHkuY29tLCBJbmMu
-MTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5
-MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgYMxCz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oKjUsHU48TRqneSfioYmUeYs0cYtbpUgSpIB7LiKZ3sx
-4mcujJUDJi5DnUox9g61DLu34jd/IroAow57UvtruzvE03lRTs2Q9GcHGcg8RnoNAX3FWOdt5oUw
-F5okxBDgBPfg8n/Uqgr/Qh037ZTlZFkSIHc40zI+OIF1lnP6aI+xy84fxez6nH7PfrHxBy22/L/K
-pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1mMpYjn0q7pBZ
-c2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0
------END CERTIFICATE-----
-
-Starfield Services Root Certificate Authority - G2
-==================================================
------BEGIN CERTIFICATE-----
-MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
-B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
-b2dpZXMsIEluYy4xOzA5BgNVBAMTMlN0YXJmaWVsZCBTZXJ2aWNlcyBSb290IENlcnRpZmljYXRl
-IEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgZgxCzAJBgNV
-BAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxT
-dGFyZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTswOQYDVQQDEzJTdGFyZmllbGQgU2VydmljZXMg
-Um9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
-AQoCggEBANUMOsQq+U7i9b4Zl1+OiFOxHz/Lz58gE20pOsgPfTz3a3Y4Y9k2YKibXlwAgLIvWX/2
-h/klQ4bnaRtSmpDhcePYLQ1Ob/bISdm28xpWriu2dBTrz/sm4xq6HZYuajtYlIlHVv8loJNwU4Pa
-hHQUw2eeBGg6345AWh1KTs9DkTvnVtYAcMtS7nt9rjrnvDH5RfbCYM8TWQIrgMw0R9+53pBlbQLP
-LJGmpufehRhJfGZOozptqbXuNC66DQO4M99H67FrjSXZm86B0UVGMpZwh94CDklDhbZsc7tk6mFB
-rMnUVN+HL8cisibMn1lUaJ/8viovxFUcdUBgF4UCVTmLfwUCAwEAAaNCMEAwDwYDVR0TAQH/BAUw
-AwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJxfAN+qAdcwKziIorhtSpzyEZGDMA0GCSqG
-SIb3DQEBCwUAA4IBAQBLNqaEd2ndOxmfZyMIbw5hyf2E3F/YNoHN2BtBLZ9g3ccaaNnRbobhiCPP
-E95Dz+I0swSdHynVv/heyNXBve6SbzJ08pGCL72CQnqtKrcgfU28elUSwhXqvfdqlS5sdJ/PHLTy
-xQGjhdByPq1zqwubdQxtRbeOlKyWN7Wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd
-iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn0q23KXB56jza
-YyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCNsSi6
------END CERTIFICATE-----
-
-AffirmTrust Commercial
-======================
------BEGIN CERTIFICATE-----
-MIIDTDCCAjSgAwIBAgIId3cGJyapsXwwDQYJKoZIhvcNAQELBQAwRDELMAkGA1UEBhMCVVMxFDAS
-BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMB4XDTEw
-MDEyOTE0MDYwNloXDTMwMTIzMTE0MDYwNlowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly
-bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMIIBIjANBgkqhkiG9w0BAQEF
-AAOCAQ8AMIIBCgKCAQEA9htPZwcroR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R0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBDAUAA4ICAQCzV00QYk465KzquByv
-MiPIs0laUZx2KI15qldGF9X1Uva3ROgIRL8YhNILgM3FEv0AVQVhh0HctSSePMTYyPtwni94loMg
-Nt58D2kTiKV1NpgIpsbfrM7jWNa3Pt668+s0QNiigfV4Py/VpfzZotReBA4Xrf5B8OWycvpEgjNC
-6C1Y91aMYj+6QrCcDFx+LmUmXFNPALJ4fqENmS2NuB2OosSw/WDQMKSOyARiqcTtNd56l+0OOF6S
-L5Nwpamcb6d9Ex1+xghIsV5n61EIJenmJWtSKZGc0jlzCFfemQa0W50QBuHCAKi4HEoCChTQwUHK
-+4w1IX2COPKpVJEZNZOUbWo6xbLQu4mGk+ibyQ86p3q4ofB4Rvr8Ny/lioTz3/4E2aFooC8k4gmV
-BtWVyuEklut89pMFu+1z6S3RdTnX5yTb2E5fQ4+e0BQ5v1VwSJlXMbSc7kqYA5YwH2AG7hsj/oFg
-IxpHYoWlzBk0gG+zrBrjn/B7SK3VAdlntqlyk+otZrWyuOQ9PLLvTIzq6we/qzWaVYa8GKa1qF60
-g2xraUDTn9zxw2lrueFtCfTxqlB2Cnp9ehehVZZCmTEJ3WARjQUwfuaORtGdFNrHF+QFlozEJLUb
-zxQHskD4o55BhrwE0GuWyCqANP2/7waj3VjFhT0+j/6eKeC2uAloGRwYQw==
------END CERTIFICATE-----
-
-AffirmTrust Premium ECC
-=======================
------BEGIN CERTIFICATE-----
-MIIB/jCCAYWgAwIBAgIIdJclisc/elQwCgYIKoZIzj0EAwMwRTELMAkGA1UEBhMCVVMxFDASBgNV
-BAoMC0FmZmlybVRydXN0MSAwHgYDVQQDDBdBZmZpcm1UcnVzdCBQcmVtaXVtIEVDQzAeFw0xMDAx
-MjkxNDIwMjRaFw00MDEyMzExNDIwMjRaMEUxCzAJBgNVBAYTAlVTMRQwEgYDVQQKDAtBZmZpcm1U
-cnVzdDEgMB4GA1UEAwwXQWZmaXJtVHJ1c3QgUHJlb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SSyjoIF87B6LMTXPb865Px1bVWqeWifrzq2jUI4ZZJ88J
-J7ysbnKDHDBy3+Ci6dLhdHUZvSqeexVUBBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4
-fOQtf/WsX+sWn7Et0brMkUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv+XLTOcr+H9g0
-cvW0QM8xAcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5SQIDAQABo0IwQDAPBgNVHRMB
-Af8EBTADAQH/MB0GA1UdDgQWBBQIds3LB/8k9sXN7buQvOKEN0Z19zAOBgNVHQ8BAf8EBAMCAQYw
-DQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15ysHhE49wcrwn9I0j6vSrEuVUEtRCj
-jSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfLI9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1
-mS1FhIrlQgnXdAIv94nYmem8J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5aj
-Zt3hrvJBW8qYVoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI
-03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw=
------END CERTIFICATE-----
-
-Certinomis - Autorité Racine
-============================
------BEGIN CERTIFICATE-----
-MIIFnDCCA4SgAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJGUjETMBEGA1UEChMK
-Q2VydGlub21pczEXMBUGA1UECxMOMDAwMiA0MzM5OTg5MDMxJjAkBgNVBAMMHUNlcnRpbm9taXMg
-LSBBdXRvcml0w6kgUmFjaW5lMB4XDTA4MDkxNzA4Mjg1OVoXDTI4MDkxNzA4Mjg1OVowYzELMAkG
-A1UEBhMCRlIxEzARBgNVBAoTCkNlcnRpbm9taXMxFz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/x
-WqndIlgVqIrTseYyCYIDbNc/CMf4uboAbbnW/FIyXaR/pDGUu7ZMOH8oMDX/nyNTt7buFHAAQCva
-R6s0fl6nVjBhK4tDrP22iCj1a7Y+YEq6QpA0Z43q619FVDsXrIvkxmUP7tCMXWY5zjKn2BCXwH40
-nJ+U8/aGH88bc62UeYdocMMzpXDn2NU4lG9jeeu/Cg4I58UvD0KgKxRA/yHgBcUn4YQRE7rWhh1B
-CxMjidPJC+iKunqjo3M3NYB9Ergzd0A4wPpeMNLytqOx1qKVl4GbUu1pTP+A5FPbVFsDbVRfsbjv
-JL1vnxHDx2TCDyhihWZeGnuyt++uNckZM6i4J9szVb9o4XVIRFb7zdNIu0eJOqxp9YDG5ERQL1TE
-qkPFMTFYvZbF6nVsmnWxTfj3l/+WFvKXTej28xH5On2KOG4Ey+HTRRWqpdEdnV1j6CTmNhTih60b
-WfVEm/vXd3wfAXBioSAaosUaKPQhA+4u2cGA6rnZgtZbdsLLO7XSAPCjDuGtbkD326C00EauFddE
-wk01+dIL8hf2rGbVJLJP0RyZwG71fet0BLj5TXcJ17TPBzAJ8bgAVtkXFhYKK4bfjwEZGuW7gmP/
-vgt2Fl43N+bYdJeimUV5
------END CERTIFICATE-----
-
-TWCA Root Certification Authority
-=================================
------BEGIN CERTIFICATE-----
-MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJ
-VEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlmaWNh
-dGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMzWhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQG
-EwJUVzESMBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NB
-IFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
-AoIBAQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFEAcK0HMMx
-QhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HHK3XLfJ+utdGdIzdjp9xC
-oi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeXRfwZVzsrb+RH9JlF/h3x+JejiB03HFyP
-4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/zrX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1r
-y+UPizgN7gr8/g+YnzAx3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIB
-BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkqhkiG
-9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeCMErJk/9q56YAf4lC
-mtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdlsXebQ79NqZp4VKIV66IIArB6nCWlW
-QtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62Dlhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVY
-T0bf+215WfKEIlKuD8z7fDvnaspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocny
-Yh0igzyXxfkZYiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw==
------END CERTIFICATE-----
-
-Security Communication RootCA2
-==============================
------BEGIN CERTIFICATE-----
-MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDElMCMGA1UEChMc
-U0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UECxMeU2VjdXJpdHkgQ29tbXVuaWNh
-dGlvbiBSb290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/7NQcvJ29rNdQlB50JQ+awwAvthrDk4q7D7SzIKiGGUzE3eeml0a
-E9jD2z3Il3rucO2n5nzbcc8tlGLfbdb1OL4/pYUKGbio2Al1QnDE6u/LDsg0qBIimAy4E5S2S+zw
-0JDnJwIDAQABo4HjMIHgMB0GA1UdEQQWMBSBEmVjX2FjY0BjYXRjZXJ0Lm5ldDAPBgNVHRMBAf8E
-BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUoMOLRKo3pUW/l4Ba0fF4opvpXY0wfwYD
-VR0gBHgwdjB0BgsrBgEEAfV4AQMBCjBlMCwGCCsGAQUFBwIBFiBodHRwczovL3d3dy5jYXRjZXJ0
-Lm5ldC92ZXJhcnJlbDA1BggrBgEFBQcCAjApGidWZWdldSBodHRwczovL3d3dy5jYXRjZXJ0Lm5l
-dC92ZXJhcnJlbCAwDQYJKoZIhvcNAQEFBQADggEBAKBIW4IB9k1IuDlVNZyAelOZ1Vr/sXE7zDkJ
-lF7W2u++AVtd0x7Y/X1PzaBB4DSTv8vihpw3kpBWHNzrKQXlxJ7HNd+KDM3FIUPpqojlNcAZQmNa
-Al6kSBg6hW/cnbw/nZzBh7h6YQjpdwt/cKt63dmXLGQehb+8dJahw3oS7AwaboMMPOhyRp/7SNVe
-l+axofjk70YllJyJ22k4vuxcDlbHZVHlUIiIv0LVKz3l+bqeLrPK9HOSAgu+TGbrIP65y7WZf+a2
-E/rKS03Z7lNGBjvGTq2TWoF+bCpLagVFjPIhpDGQh2xlnJ2lYJU6Un/10asIbvPuW/mIPX64b24D
-5EI=
------END CERTIFICATE-----
-
-Hellenic Academic and Research Institutions RootCA 2011
-=======================================================
------BEGIN CERTIFICATE-----
-MIIEMTCCAxmgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBlTELMAkGA1UEBhMCR1IxRDBCBgNVBAoT
-O0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG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3IBp5OjWEopmr95fZi6hg8
-TqBTnbI6nOulnJEWtk2C4AwFSKls9cz4y51JtPACpf1wA+2KIaWuE4ZJwzNzvoc7dIsXRSZMFpGD
-/md9zU1jZ/rzAxKWeAaNsWftjj++n08C9bMJL/NMh98qy5V8AcysNnq/onN694/BtZqhFLKPM58N
-7yLcZnuEvUUXBj08yrl3NI/K6s8/MT7jiOOASSXIl7WdmplNsDz4SgCbZN2fOUvRJ9e4
------END CERTIFICATE-----
-
-Actalis Authentication Root CA
-==============================
------BEGIN CERTIFICATE-----
-MIIFuzCCA6OgAwIBAgIIVwoRl0LE48wwDQYJKoZIhvcNAQELBQAwazELMAkGA1UEBhMCSVQxDjAM
-BgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UE
-AwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290IENBMB4XDTExMDkyMjExMjIwMloXDTMwMDky
-MjExMjIwMlowazELMAkGA1UEBhMCSVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlz
-IFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UEAwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290
-IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAp8bEpSmkLO/lGMWwUKNvUTufClrJ
-wkg4CsIcoBh/kbWHuUA/3R1oHwiD1S0eiKD4j1aPbZkCkpAW1V8IbInX4ay8IMKx4INRimlNAJZa
-by/ARH6jDuSRzVju3PvHHkVH3Se5CAGfpiEd9UEtL0z9KK3giq0itFZljoZUj5NDKd45RnijMCO6
-zfB9E1fAXdKDa0hMxKufgFpbOr3JpyI/gCczWw63igxdBzcIy2zSekciRDXFzMwujt0q7bd9Zg1f
-YVEiVRvjRuPjPdA1YprbrxTIW6HMiRvhMCb8oJsfgadHHwTrozmSBp+Z07/T6k9QnBn+locePGX2
-oxgkg4YQ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GE+esCu8jowU/yyg2kdbw++BLa8F6nRIW/M+TgfHbcWzk88iNVy2P3UnXwmWzaD+vkAMXBJV+JOC
-yinpXj9WV4s4NvdFGkwozZ5BuO1WTISkQMi4sKUraXAEasP41BIy+Q7DsdwyhEQsb8tGD+pmQQ9P
-8Vilpg0ND2HepZ5dfWWhPBfnqFVO76DH7cZEf1T1o+CP8HxVIo8ptoGj4W1OLBuAZ+ytIJ8MYmHV
-l/9D7S3B2l0pKoU/rGXuhg8FjZBf3+6f9L/uHfuY5H+QK4R4EA5sSVPvFVtlRkpdr7r7OnIdzfYl
-iB6XzCGcKQENZetX2fNXlrtIzYE=
------END CERTIFICATE-----
-
-StartCom Certification Authority
-================================
------BEGIN CERTIFICATE-----
-MIIHhzCCBW+gAwIBAgIBLTANBgkqhkiG9w0BAQsFADB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMN
-U3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmlu
-ZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDYwOTE3MTk0
-NjM3WhcNMzYwOTE3MTk0NjM2WjB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRk
-LjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMg
-U3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAw
-ggIKAoICAQDBiNsJvGxGfHiflXu1M5DycmLWwTYgIiRezul38kMKogZkpMyONvg45iPwbm2xPN1y
-o4UcodM9tDMr0y+v/uqwQVlntsQGfQqedIXWeUyAN3rfOQVSWff0G0ZDpNKFhdLDcfN1YjS6LIp/
-Ho/u7TTQEceWzVI9ujPW3U3eCztKS5/CJi/6tRYccjV3yjxd5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ml0eSBQb2xpY3kgYXZhaWxhYmxlIGF0IGh0dHA6Ly93d3cuc3RhcnRzc2wuY29t
-L3BvbGljeS5wZGYwEQYJYIZIAYb4QgEBBAQDAgAHMDgGCWCGSAGG+EIBDQQrFilTdGFydENvbSBG
-cmVlIFNTTCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTANBgkqhkiG9w0BAQsFAAOCAgEAjo/n3JR5
-fPGFf59Jb2vKXfuM/gTFwWLRfUKKvFO3lANmMD+x5wqnUCBVJX92ehQN6wQOQOY+2IirByeDqXWm
-N3PH/UvSTa0XQMhGvjt/UfzDtgUx3M2FIk5xt/JxXrAaxrqTi3iSSoX4eA+D/i+tLPfkpLst0OcN
-Org+zvZ49q5HJMqjNTbOx8aHmNrs++myziebiMMEofYLWWivydsQD032ZGNcpRJvkrKTlMeIFw6T
-tn5ii5B/q06f/ON1FE8qMt9bDeD1e5MNq6HPh+GlBEXoPBKlCcWw0bdT82AUuoVpaiF8H3VhFyAX
-e2w7QSlc4axa0c2Mm+tgHRns9+Ww2vl5GKVFP0lDV9LdJNUso/2RjSe15esUBppMeyG7Oq0wBhjA
-2MFrLH9ZXF2RsXAiV+uKa0hK1Q8p7MZAwC+ITGgBF3f0JBlPvfrhsiAhS90a2Cl9qrjeVOwhVYBs
-HvUwyKMQ5bLmKhQxw4UtjJixhlpPiVktucf3HMiKf8CdBUrmQk9io20ppB+Fq9vlgcitKj1MXVuE
-JnHEhV5xJMqlG2zYYdMa4FTbzrqpMrUi9nNBCV24F10OD5mQ1kfabwo6YigUZ4LZ8dCAWZvLMdib
-D4x3TrVoivJs9iQOLWxwxXPR3hTQcY+203sC9uO41Alua551hDnmfyWl8kgAwKQB2j8=
------END CERTIFICATE-----
-
-StartCom Certification Authority G2
-===================================
------BEGIN CERTIFICATE-----
-MIIFYzCCA0ugAwIBAgIBOzANBgkqhkiG9w0BAQsFADBTMQswCQYDVQQGEwJJTDEWMBQGA1UEChMN
-U3RhcnRDb20gTHRkLjEsMC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W9gkOLo+fsicdl9sz1Gv7SEr5AcD48S
-aq/v7h56rgJKihcrdv6sVIkkLE8/trKnToyokZf7KcZ7XC25y2a2t6hbElGFtQl+Ynhw/qlqYLYd
-DnkM/crqJIByw5c/8nerQyIKx+u2DISCLIBrQYoIwOula9+ZEsuK1V6ADJHgJgg2SMX6OBE1/yWD
-LfJ6v9r9jv6ly0UsH8SIU653DtmadsWOLB2jutXsMq7Aqqz30XpN69QH4kj3Io6wpJ9qzo6ysmD0
-oyLQI+uUWnpp3Q+/QFesa1lQ2aOZ4W7+jQF5JyMV3pKdewlNWudLSDBaGOYKbeaP4NK75t98biGC
-wWg5TbSYWGZizEqQXsP6JwSxeRV0mcy+rSDeJmAc61ZRpqPq5KM/p/9h3PFaTWwyI0PurKju7koS
-CTxdccK+efrCh2gdC/1cacwG0Jp9VJkqyTkaGa9LKkPzY11aWOIv4x3kqdbQCtCev9eBCfHJxyYN
-rJgWVqA=
------END CERTIFICATE-----
-
-Buypass Class 3 Root CA
-=======================
------BEGIN CERTIFICATE-----
-MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU
-QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMyBSb290IENBMB4X
-DTEwMTAyNjA4Mjg1OFoXDTQwMTAyNjA4Mjg1OFowTjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1
-eXBhc3MgQVMtOTgzMTYzMzI3MSAwHgYDVQQDDBdCdXlwYXNzIENsYXNzIDMgUm9vdCBDQTCCAiIw
-DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAKXaCpUWUOOV8l6ddjEGMnqb8RB2uACatVI2zSRH
-sJ8YZLya9vrVediQYkwiL944PdbgqOkcLNt4EemOaFEVcsfzM4fkoF0LXOBXByow9c3EN3coTRiR
-5r/VUv1xLXA+58bEiuPwKAv0dpihi4dVsjoT/Lc+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Blk4f4HoCMhuWG1o8O/FMsYOgWYRqiPkN7zTlgVGr18okmAWiDSKIz
-6MkEkbIRNBE+6tBDGR8Dk5AM/1E9V/RBbuHLoL7ryWPNbczk+DaqaJ3tvV2XcEQNtg413OEMXbug
-UZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvDu79leNKGef9JOxqDDPDe
-eOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq4/g7u9xN12TyUb7mqqta6THuBrxzvxNi
-Cp/HuZc=
------END CERTIFICATE-----
-
-T-TeleSec GlobalRoot Class 3
-============================
------BEGIN CERTIFICATE-----
-MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM
-IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU
-cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgx
-MDAxMTAyOTU2WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz
-dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD
-ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwggEiMA0GCSqGSIb3
-DQEBAQUAA4IBDwAwggEKAoIBAQC9dZPwYiJvJK7genasfb3ZJNW4t/zN8ELg63iIVl6bmlQdTQyK
-9tPPcPRStdiTBONGhnFBSivwKixVA9ZIw+A5OO3yXDw/RLyTPWGrTs0NvvAgJ1gORH8EGoel15YU
-NpDQSXuhdfsaa3Ox+M6pCSzyU9XDFES4hqX2iys52qMzVNn6chr3IhUciJFrf2blw2qAsCTz34ZF
-iP0Zf3WHHx+xGwpzJFu5ZeAsVMhg02YXP+HMVDNzkQI6pn97djmiH5a2OK61yJN0HZ65tOVgnS9W
-0eDrXltMEnAMbEQgqxHY9Bn20pxSN+f6tsIxO0rUFJmtxxr1XV/6B7h8DR/Wgx6zAgMBAAGjQjBA
-MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS1A/d2O2GCahKqGFPr
-AyGUv/7OyjANBgkqhkiG9w0BAQsFAAOCAQEAVj3vlNW92nOyWL6ukK2YJ5f+AbGwUgC4TeQbIXQb
-fsDuXmkqJa9c1h3a0nnJ85cp4IaH3gRZD/FZ1GSFS5mvJQQeyUapl96Cshtwn5z2r3Ex3XsFpSzT
-ucpH9sry9uetuUg/vBa3wW306gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7h
-P0HHRwA11fXT91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml
-e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4pTpPDpFQUWw==
------END CERTIFICATE-----
-
-EE Certification Centre Root CA
-===============================
------BEGIN CERTIFICATE-----
-MIIEAzCCAuugAwIBAgIQVID5oHPtPwBMyonY43HmSjANBgkqhkiG9w0BAQUFADB1MQswCQYDVQQG
-EwJFRTEiMCAGA1UECgwZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEoMCYGA1UEAwwfRUUgQ2Vy
-dGlmaWNhdGlvbiBDZW50cmUgUm9vdCBDQTEYMBYGCSqGSIb3DQEJARYJcGtpQHNrLmVlMCIYDzIw
-MTAxMDMwMTAxMDMwWhgPMjAzMDEyMTcyMzU5NTlaMHUxCzAJBgNVBAYTAkVFMSIwIAYDVQQKDBlB
-UyBTZXJ0aWZpdHNlZXJpbWlza2Vza3VzMSgwJgYDVQQDDB9FRSBDZXJ0aWZpY2F0aW9uIENlbnRy
-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
-=================================================
------BEGIN CERTIFICATE-----
-MIIEPTCCAyWgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBvzE/MD0GA1UEAww2VMOcUktUUlVTVCBF
-bGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxMQswCQYDVQQGEwJUUjEP
-MA0GA1UEBwwGQW5rYXJhMV4wXAYDVQQKDFVUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUg
-QmlsacWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLiAoYykgQXJhbMSxayAyMDA3MB4X
-DTA3MTIyNTE4MzcxOVoXDTE3MTIyMjE4MzcxOVowgb8xPzA9BgNVBAMMNlTDnFJLVFJVU1QgRWxl
-a3Ryb25payBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsTELMAkGA1UEBhMCVFIxDzAN
-BgNVBAcMBkFua2FyYTFeMFwGA1UECgxVVMOcUktUUlVTVCBCaWxnaSDEsGxldGnFn2ltIHZlIEJp
-bGnFn2ltIEfDvHZlbmxpxJ9pIEhpem1ldGxlcmkgQS7Fni4gKGMpIEFyYWzEsWsgMjAwNzCCASIw
-DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKu3PgqMyKVYFeaK7yc9SrToJdPNM8Ig3BnuiD9N
-YvDdE3ePYakqtdTyuTFYKTsvP2qcb3N2Je40IIDu6rfwxArNK4aUyeNgsURSsloptJGXg9i3phQv
-KUmi8wUG+7RP2qFsmmaf8EMJyupyj+sA1zU511YXRxcw9L6/P8JorzZAwan0qafoEGsIiveGHtya
-KhUG9qPw9ODHFNRRf8+0222vR5YXm3dx2KdxnSQM9pQ/hTEST7ruToK4uT6PIzdezKKqdfcYbwnT
-rqdUKDT74eA7YH2gvnmJhsifLfkKS8RQouf9eRbHegsYz85M733WB2+Y8a+xwXrXgTW4qhe04MsC
-AwEAAaNCMEAwHQYDVR0OBBYEFCnFkKslrxHkYb+j/4hhkeYO/pyBMA4GA1UdDwEB/wQEAwIBBjAP
-BgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAQDdr4Ouwo0RSVgrESLFF6QSU2TJ/s
-Px+EnWVUXKgWAkD6bho3hO9ynYYKVZ1WKKxmLNA6VpM0ByWtCLCPyA8JWcqdmBzlVPi5RX9ql2+I
-aE1KBiY3iAIOtsbWcpnOa3faYjGkVh+uX4132l32iPwa2Z61gfAyuOOI0JzzaqC5mxRZNTZPz/OO
-Xl0XrRWV2N2y1RVuAE6zS89mlOTgzbUF2mNXi+WzqtvALhyQRNsaXRik7r4EW5nVcV9VZWRi1aKb
-BFmGyGJ353yCRWo9F7/snXUMrqNvWtMvmDb08PUZqxFdyKbjKlhqQgnDvZImZjINXQhVdP+MmNAK
-poRq0Tl9
------END CERTIFICATE-----
-
-D-TRUST Root Class 3 CA 2 2009
-==============================
------BEGIN CERTIFICATE-----
-MIIEMzCCAxugAwIBAgIDCYPzMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQK
-DAxELVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTAe
-Fw0wOTExMDUwODM1NThaFw0yOTExMDUwODM1NThaME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQKDAxE
-LVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTCCASIw
-DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANOySs96R+91myP6Oi/WUEWJNTrGa9v+2wBoqOAD
-ER03UAifTUpolDWzU9GUY6cgVq/eUXjsKj3zSEhQPgrfRlWLJ23DEE0NkVJD2IfgXU42tSHKXzlA
-BF9bfsyjxiupQB7ZNoTWSPOSHjRGICTBpFGOShrvUD9pXRl/RcPHAY9RySPocq60vFYJfxLLHLGv
-KZAKyVXMD9O0Gu1HNVpK7ZxzBCHQqr0ME7UAyiZsxGsMlFqVlNpQmvH/pStmMaTJOKDfHR+4CS7z
-p+hnUquVH+BGPtikw8paxTGA6Eian5Rp/hnd2HN8gcqW3o7tszIFZYQ05ub9VxC1X3a/L7AQDcUC
-AwEAAaOCARowggEWMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFP3aFMSfMN4hvR5COfyrYyNJ
-4PGEMA4GA1UdDwEB/wQEAwIBBjCB0wYDVR0fBIHLMIHIMIGAoH6gfIZ6bGRhcDovL2RpcmVjdG9y
-eS5kLXRydXN0Lm5ldC9DTj1ELVRSVVNUJTIwUm9vdCUyMENsYXNzJTIwMyUyMENBJTIwMiUyMDIw
-MDksTz1ELVRydXN0JTIwR21iSCxDPURFP2NlcnRpZmljYXRlcmV2b2NhdGlvbmxpc3QwQ6BBoD+G
-PWh0dHA6Ly93d3cuZC10cnVzdC5uZXQvY3JsL2QtdHJ1c3Rfcm9vdF9jbGFzc18zX2NhXzJfMjAw
-OS5jcmwwDQYJKoZIhvcNAQELBQADggEBAH+X2zDI36ScfSF6gHDOFBJpiBSVYEQBrLLpME+bUMJm
-2H6NMLVwMeniacfzcNsgFYbQDfC+rAF1hM5+n02/t2A7nPPKHeJeaNijnZflQGDSNiH+0LS4F9p0
-o3/U37CYAqxva2ssJSRyoWXuJVrl5jLn8t+rSfrzkGkj2wTZ51xY/GXUl77M/C4KzCUqNQT4YJEV
-dT1B/yMfGchs64JTBKbkTCJNjYy6zltz7GRUUG3RnFX7acM2w4y8PIWmawomDeCTmGCufsYkl4ph
-X5GOZpIJhzbNi5stPvZR1FDUWSi9g/LMKHtThm3YJohw1+qRzT65ysCQblrGXnRl11z+o+I=
------END CERTIFICATE-----
-
-D-TRUST Root Class 3 CA 2 EV 2009
-=================================
------BEGIN CERTIFICATE-----
-MIIEQzCCAyugAwIBAgIDCYP0MA0GCSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK
-DAxELVRydXN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zTsVlQ2jqIOylDRl6XK1TOU2+NSueW+r9xDkKLfP0ooNBIytrEgUy7onOT
-JsjrDNYmiLbAJM+7vVvrdX3pCI6GMyx5dwlppYn8s3CQh3aP0yK7Qs69cwsgJirQmz1wHiRszYd2
-qReWt88NkvuOGKmYSdGe/mBEciG5Ge3C9THxOUiIkCR1VBatzvT4aRRkOfujuLpwQMcnHL/EVlP6
-Y2XQ8xwOFvVrhlhNGNTkDY6lnVuR3HYkUD/GKvvZt5y11ubQ2egZixVxSK236thZiNSQvxaz2ems
-WWFUyBy6ysHK4bkgTI86k4mloMy/0/Z1pHWWbVY=
------END CERTIFICATE-----
-
-E-Tugra Certification Authority
-===============================
------BEGIN CERTIFICATE-----
-MIIGSzCCBDOgAwIBAgIIamg+nFGby1MwDQYJKoZIhvcNAQELBQAwgbIxCzAJBgNVBAYTAlRSMQ8w
-DQYDVQQHDAZBbmthcmExQDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamls
-ZXJpIHZlIEhpem1ldGxlcmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBN
-ZXJrZXppMSgwJgYDVQQDDB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTEzMDMw
-NTEyMDk0OFoXDTIzMDMwMzEyMDk0OFowgbIxCzAJBgNVBAYTAlRSMQ8wDQYDVQQHDAZBbmthcmEx
-QDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamlsZXJpIHZlIEhpem1ldGxl
-cmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBNZXJrZXppMSgwJgYDVQQD
-DB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
-MIICCgKCAgEA4vU/kwVRHoViVF56C/UYB4Oufq9899SKa6VjQzm5S/fD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AALAcKxHad3A2m67OeYfcgnDmCXRw
-VWmvo2ifv922ebPynXApVfSr/5Vh88lAbx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OP
-YLfykqGxvYmJHzDNw6YuYjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+Rn
-lTGNAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTO
-w0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPIQW5pJ6d1Ee88hjZv
-0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I0jJmwYrA8y8678Dj1JGG0VDjA9tz
-d29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4GnilmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAW
-hsI6yLETcDbYz+70CjTVW0z9B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0M
-jomZmWzwPDCvON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo
-IhNzbM8m9Yop5w==
------END CERTIFICATE-----
-
-DigiCert Assured ID Root G3
-===========================
------BEGIN CERTIFICATE-----
-MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV
-UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYD
-VQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1
-MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
-d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQ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-3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQq2EGnI/yuum06ZIya7XzV+hdG82MHauV
-BJVJ8zUtluNJbd134/tJS7SsVQepj5WztCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyM
-UNGPHgm+F6HmIcr9g+UQvIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQAB
-o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV5uNu
-5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY1Yl9PMWLSn/pvtsr
-F9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4NeF22d+mQrvHRAiGfzZ0JFrabA0U
-WTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NGFdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBH
-QRFXGU7Aj64GxJUTFy8bJZ918rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/
-iyK5S9kJRaTepLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl
-MrY=
------END CERTIFICATE-----
-
-DigiCert Global Root G3
-=======================
------BEGIN CERTIFICATE-----
-MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQswCQYDVQQGEwJV
-UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAwHgYD
-VQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAw
-MDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5k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iUpWAk2nojkxl8ZEDLXB0AuqLZxUpaVICu9ffUGpVRr+goyhhf3DQw6KqLCGqR84onAZFdr+C
-GCe01a60y1Dma/RMhnEw6abfFobg2P9A3fvQQoh/ozM6LlweQRGBY84YcWsr7KaKtzFcOmpH4MN5
-WdYgGq/yapiqcrxXStJLnbsQ/LBMQeXtHT1eKJ2czL+zUdqnR+WEUwIDAQABo0IwQDAdBgNVHQ4E
-FgQUu69+Aj36pvE8hI6t7jiY7NkyMtQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8w
-DQYJKoZIhvcNAQEMBQADggIBAArx1UaEt65Ru2yyTUEUAJNMnMvlwFTPoCWOAvn9sKIN9SCYPBMt
-rFaisNZ+EZLpLrqeLppysb0ZRGxhNaKatBYSaVqM4dc+pBroLwP0rmEdEBsqpIt6xf4FpuHA1sj+
-nq6PK7o9mfjYcwlYRm6mnPTXJ9OV2jeDchzTc+CiR5kDOF3VSXkAKRzH7JsgHAckaVd4sjn8OoSg
-tZx8jb8uk2IntznaFxiuvTwJaP+EmzzV1gsD41eeFPfR60/IvYcjt7ZJQ3mFXLrrkguhxuhoqEwW
-sRqZCuhTLJK7oQkYdQxlqHvLI7cawiiFwxv/0Cti76R7CZGYZ4wUAc1oBmpjIXUDgIiKboHGhfKp
-pC3n9KUkEEeDys30jXlYsQab5xoq2Z0B15R97QNKyvDb6KkBPvVWmckejkk9u+UJueBPSZI9FoJA
-zMxZxuY67RIuaTxslbH9qh17f4a+Hg4yRvv7E491f0yLS0Zj/gA0QHDBw7mh3aZw4gSzQbzpgJHq
-ZJx64SIDqZxubw5lT2yHh17zbqD5daWbQOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk52
-7RH89elWsn2/x20Kk4yl0MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7I
-LaZRfyHBNVOFBkpdn627G190
------END CERTIFICATE-----
-
-USERTrust RSA Certification Authority
-=====================================
------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wjOy0AvzVVdAlJ2ElYGn+SNuZRkg7zJn0cTRe8
-yexDJtC/QV9AqURE9JnnV4eeUB9XVKg+/XRjL7FQZQnmWEIuQxpMtPAlR1n6BB6T1CZGSlCBst6+
-eLf8ZxXhyVeEHg9j1uliutZfVS7qXMYoCAQlObgOK6nyTJccBz8NUvXt7y+CDwIDAQABo0IwQDAd
-BgNVHQ4EFgQUU3m/WqorSs9UgOHYm8Cd8rIDZsswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF
-MAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAFzUfA3P9wF9QZllDHPFUp/L+M+ZBn8b2kMVn54CVVeW
-FPFSPCeHlCjtHzoBN6J2/FNQwISbxmtOuowhT6KOVWKR82kV2LyI48SqC/3vqOlLVSoGIG1VeCkZ
-7l8wXEskEVX/JJpuXior7gtNn3/3ATiUFJVDBwn7YKnuHKsSjKCaXqeYalltiz8I+8jRRa8YFWSQ
-Eg9zKC7F4iRO/Fjs8PRF/iKz6y+O0tlFYQXBl2+odnKPi4w2r78NBc5xjeambx9spnFixdjQg3IM
-8WcRiQycE0xyNN+81XHfqnHd4blsjDwSXWXavVcStkNr/+XeTWYRUc+ZruwXtuhxkYzeSf7dNXGi
-FSeUHM9h4ya7b6NnJSFd5t0dCy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZXHlKYC6SQK5MNyosycdi
-yA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9c
-J2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRBVXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGw
-sAvgnEzDHNb842m1R0aBL6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gx
-Q+6IHdfGjjxDah2nGN59PRbxYvnKkKj9
------END CERTIFICATE-----
-
-USERTrust ECC Certification Authority
-=====================================
------BEGIN CER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PrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8kehOvRnkmS
-h5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd
-BgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYIKoZIzj0EAwMDaAAwZQIxAOVpEslu28Yx
-uglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7
-yFz9SO8NdCKoCOJuxUnOxwy8p2Fp8fc74SrL+SvzZpA3
------END CERTIFICATE-----
-
-Staat der Nederlanden Root CA - G3
-==================================
------BEGIN CERTIFICATE-----
-MIIFdDCCA1ygAwIBAgIEAJiiOTANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJOTDEeMBwGA1UE
-CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
-Um9vdCBDQSAtIEczMB4XDTEzMTExNDExMjg0MloXDTI4MTExMzIzMDAwMFowWjELMAkGA1UEBhMC
-TkwxHjAcBgNVBAoMFVN0YWF0IGRlciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5l
-ZGVybGFuZGVuIFJvb3QgQ0EgLSBHMzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAL4y
-olQPcPssXFnrbMSkUeiFKrPMSjTysF/zDsccPVMeiAho2G89rcKezIJnByeHaHE6n3WWIkYFsO2t
-x1ueKt6c/DrGlaf1F2cY5y9JCAxcz+bMNO14+1Cx3Gsy8KL+tjzk7FqXxz8ecAgwoNzFs21v0IJy
-EavSgWhZghe3eJJg+szeP4TrjTgzkApyI/o1zCZxMdFyKJLZWyNtZrVtB0LrpjPOktvA9mxjeM3K
-Tj215VKb8b475lRgsGYeCasH/lSJEULR9yS6YHgamPfJEf0WwTUaVHXvQ9Pl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rdI54OagQ97wUNNVQQXOEpR1VmiiXTTn74eS9fGbbeI
-JG9gkaSChVtWQbzQRKtqE77RLFi3EjNYsjdj3BP1lB0/QFH1T/U67cjF68IeHRaVesd+QnGTbksV
-tzDfqu1XhUisHWrdOWnk4Xl4vs4Fv6EM94B7IWcnMFk=
------END CERTIFICATE-----
-
-Staat der Nederlanden EV Root CA
-================================
------BEGIN CERTIFICATE-----
-MIIFcDCCA1igAwIBAgIEAJiWjTANBgkqhkiG9w0BAQsFADBYMQswCQYDVQQGEwJOTDEeMBwGA1UE
-CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSkwJwYDVQQDDCBTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
-RVYgUm9vdCBDQTAeFw0xMDEyMDgxMTE5MjlaFw0yMjEyMDgxMTEwMjhaMFgxCzAJBgNVBAYTAk5M
-MR4wHAYDVQQKDBVTdGFhdCBkZXIgTmVkZXJsYW5kZW4xKTAnBgNVBAMMIFN0YWF0IGRlciBOZWRl
-cmxhbmRlbiBFViBSb290IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA48d+ifkk
-SzrSM4M1LGns3Amk41GoJSt5uAg94JG6hIXGhaTK5skuU6TJJB79VWZxXSzFYGgEt9nCUiY4iKTW
-O0Cmws0/zZiTs1QUWJZV1VD+hq2kY39ch/aO5ieSZxeSAgMs3NZmdO3dZ//BYY1jTw+bbRcwJu+r
-0h8QoPnFfxZpgQNH7R5ojXKhTbImxrpsX23Wr9GxE46prfNeaXUmGD5BKyF/7otdBwadQ8QpCiv8
-Kj6GyzyDOvnJDdrFmeK8eEEzduG/L13lpJhQDBXd4Pqcfzho0LKmeqfRMb1+ilgnQ7O6M5HTp5gV
-XJrm0w912fxBmJc+qiXbj5IusHsMX/FjqTf5m3VpTCgmJdrV8hJwRVXj33NeN/UhbJCONVrJ0yPr
-08C+eKxCKFhmpUZtcALXEPlLVPxdhkqHz3/KRawRWrUgUY0viEeXOcDPusBCAUC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zXLg==
------END CERTIFICATE-----
-
-IdenTrust Commercial Root CA 1
-==============================
------BEGIN CERTIFICATE-----
-MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBKMQswCQYDVQQG
-EwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBS
-b290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhcNMzQwMTE2MTgxMjIzWjBKMQswCQYDVQQGEwJVUzES
-MBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBSb290IENB
-IDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCnUBneP5k91DNG8W9RYYKyqU+PZ4ld
-hNlT3Qwo2dfw/66VQ3KZ+bVdfIrBQuExUHTRgQ18zZshq0PirK1ehm7zCYofWjK9ouuU+ehcCuz/
-mNKvcbO0U59Oh++SvL3sTzIwiEsXXlfEU8L2ApeN2WIrvyQfYo3fw7gpS0l4PJNgiCL8mdo2yMKi
-1CxUAGc1bnO/AljwpN3lsKImesrgNqUZFvX9t++uP0D1bVoE/c40yiTcdCMbXTMTEl3EASX2MN0C
-XZ/g1Ue9tOsbobtJSdifWwLziuQkkORiT0/Br4sOdBeo0XKIanoBScy0RnnGF7HamB4HWfp1IYVl
-3ZBWzvurpWCdxJ35UrCLvYf5jysjCiN2O/cz4ckA82n5S6LgTrx+kzmEB/dEcH7+B1rlsazRGMzy
-NeVJSQjKVsk9+w8YfYs7wRPCTY/JTw436R+hDmrfYi7LNQZReSzIJTj0+kuniVyc0uMNOYZKdHzV
-WYfCP04MXFL0PfdSgvHqo6z9STQaKPNBiDoT7uje/5kdX7rL6B7yuVBgwDHTc+XvvqDtMwt0viAg
-xGds8AgDelWAf0ZOlqf0Hj7h9tgJ4TNkK2PXMl6f+cB7D3hvl7yTmvmcEpB4eoCHFddydJxVdHix
-uuFucAS6T6C6aMN7/zHwcz09lCqxC0EOoP5NiGVreTO01wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMC
-AQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU7UQZwNPwBovupHu+QucmVMiONnYwDQYJKoZI
-hvcNAQELBQADggIBAA2ukDL2pkt8RHYZYR4nKM1eVO8lvOMIkPkp165oCOGUAFjvLi5+U1KMtlwH
-6oi6mYtQlNeCgN9hCQCTrQ0U5s7B8jeUeLBfnLOic7iPBZM4zY0+sLj7wM+x8uwtLRvM7Kqas6pg
-ghstO8OEPVeKlh6cdbjTMM1gCIOQ045U8U1mwF10A0Cj7oV+wh93nAbowacYXVKV7cndJZ5t+qnt
-ozo00Fl72u1Q8zW/7esUTTHHYPTa8Yec4kjixsU3+wYQ+nVZZjFHKdp2mhzpgq7vmrlR94gjmmmV
-YjzlVYA211QC//G5Xc7UI2/YRYRKW2XviQzdFKcgyxilJbQN+QHwotL0AMh0jqEqSI5l2xPE4iUX
-feu+h1sXIFRRk0pTAwvsXcoz7WL9RccvW9xYoIA55vrX/hMUpu09lEpCdNTDd1lzzY9GvlU47/ro
-kTLql1gEIt44w8y8bckzOmoKaT+gyOpyj4xjhiO9bTyWnpXgSUyqorkqG5w2gXjtw+hG4iZZRHUe
-2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZmUlO+KWA2yUPHGNiiskz
-Z2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A7/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7R
-cGzM7vRX+Bi6hG6H
------END CERTIFICATE-----
-
-IdenTrust Public Sector Root CA 1
-=================================
------BEGIN CERTIFICATE-----
-MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBNMQswCQYDVQQG
-EwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGV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9+UOl1QZgkiHVIyqZJnYWv6IAcVYpZmxI1Qj
-t2odIFflAWJBF9MJ23XLblSQdf4an4EKwt3X9wnQW3IV5B4Jaj0z8yGa5hV+rVHVDRDtfULAj+7A
-mgjVQdZcDiFpboBhDhXAuM/FSRJSzL46zNQuOAXeNf0fb7iAaJg9TaDKQGXSc3z1i9kKlT/YPyNt
-GtEqJBnZhbMX73huqVjRI9PHE+1yJX9dsXNw0H8GlwmEKYBhHfpe/3OsoOOJuBxxFcbeMX8S3OFt
-m6/n6J91eEyrRjuazr8FGF1NFTwWmhlQBJqymm9li1JfPFgEKCXAZmExfrngdbkaqIHWchezxQMx
-NRF4eKLg6TCMf4DfWN88uieW4oA0beOY02QnrEh+KHdcxiVhJfiFDGX6xDIvpZgF5PgLZxYWxoK4
-Mhn5+bl53B/N66+rDt0b20XkeucC4pVd/GnwU2lhlXV5C15V5jgclKlZM57IcXR5f1GJtshquDDI
-ajjDbp7hNxbqBWJMWxJH7ae0s1hWx0nzfxJoCTFx8G34Tkf71oXuxVhAGaQdp/lLQzfcaFpPz+vC
-ZHTetBXZ9FRUGi8c15dxVJCO2SCdUyt/q4/i6jC8UDfv8Ue1fXwsBOxonbRJRBD0ckscZOf85muQ
-3Wl9af0AVqW3rLatt8o+Ae+c
------END CERTIFICATE-----
-
-Entrust Root Certification Authority - G2
-=========================================
------BEGIN CERTIFICATE-----
-MIIEPjCCAyagAwIBAgIESlOMKDANBgkqhkiG9w0BAQsFADCBvjELMAkGA1UEBhMCVVMxFjAUBgNV
-BAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVy
-bXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ug
-b25seTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIw
-HhcNMDkwNzA3MTcy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P+
-vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmHVHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xO
-e4pIb4tF9g==
------END CERTIFICATE-----
-
-Entrust Root Certification Authority - EC1
-==========================================
------BEGIN CERTIFICATE-----
-MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAAUNCR+TAKBggqhkjOPQQDAzCBvzELMAkGA1UEBhMCVVMx
-FjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVn
-YWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDEyIEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXpl
-ZCB1c2Ugb25seTEzMDEGA1UEAxMqRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5
-IC0gRUMxMB4XDTEyMTIxODE1MjUzNloXDTM3MTIxODE1NTUzNlowgb8xCzAJBgNVBAYTAlVTMRYw
-FAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2Fs
-LXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxMiBFbnRydXN0LCBJbmMuIC0gZm9yIGF1dGhvcml6ZWQg
-dXNlIG9ubHkxMzAxBgNVBAMTKkVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAt
-IEVDMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABIQTydC6bUF74mzQ61VfZgIaJPRbiWlH47jCffHy
-AsWfoPZb1YsGGYZPUxBtByQnoaD41UcZYUx9ypMn6nQM72+WCf5j7HBdNq1nd67JnXxVRDqiY1Ef
-9eNi1KlHBz7MIKNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
-FLdj5xrdjekIplWDpOBqUEFlEUJJMAoGCCqGSM49BAMDA2cAMGQCMG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IFICATE-----
-
-TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı H5
-====================================================
------BEGIN CERTIFICATE-----
-MIIEJzCCAw+gAwIBAgIHAI4X/iQggTANBgkqhkiG9w0BAQsFADCBsTELMAkGA1UEBhMCVFIxDzAN
-BgNVBAcMBkFua2FyYTFNMEsGA1UECgxEVMOcUktUUlVTVCBCaWxnaSDEsGxldGnFn2ltIHZlIEJp
-bGnFn2ltIEfDvHZlbmxpxJ9pIEhpem1ldGxlcmkgQS7Fni4xQjBABgNVBAMMOVTDnFJLVFJVU1Qg
-RWxla3Ryb25payBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsSBINTAeFw0xMzA0MzAw
-ODA3MDFaFw0yMzA0MjgwODA3MDFaMIGxMQswCQYDVQQGEwJUUjEPMA0GA1UEBwwGQW5rYXJhMU0w
-SwYDVQQKDERUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnE
-n2kgSGl6bWV0bGVyaSBBLsWeLjFCMEAGA1UEAww5VMOcUktUUlVTVCBFbGVrdHJvbmlrIFNlcnRp
-ZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxIEg1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
-CgKCAQEApCUZ4WWe60ghUEoI5RHwWrom/4NZzkQqL/7hzmAD/I0Dpe3/a6i6zDQGn1k19uwsu537
-jVJp45wnEFPzpALFp/kRGml1bsMdi9GYjZOHp3GXDSHHmflS0yxjXVW86B8BSLlg/kJK9siArs1m
-ep5Fimh34khon6La8eHBEJ/rPCmBp+EyCNSgBbGM+42WAA4+Jd9ThiI7/PS98wl+d+yG6w8z5UNP
-9FR1bSmZLmZaQ9/LXMrI5Tjxfjs1nQ/0xVqhzPMggCTTV+wVunUlm+hkS7M0hO8EuPbJbKoCPrZV
-4jI3X/xml1/N1p7HIL9Nxqw/dV8c7TKcfGkAaZHjIxhT6QIDAQABo0IwQDAdBgNVHQ4EFgQUVpkH
-HtOsDGlktAxQR95DLL4gwPswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZI
-hvcNAQELBQADggEBAJ5FdnsXSDLyOIspve6WSk6BGLFRRyDN0GSxDsnZAdkJzsiZ3GglE9Rc8qPo
-BP5yCccLqh0lVX6Wmle3usURehnmp349hQ71+S4pL+f5bFgWV1Al9j4uPqrtd3GqqpmWRgqujuwq
-URawXs3qZwQcWDD1YIq9pr1N5Za0/EKJAWv2cMhQOQwt1WbZyNKzMrcbGW3LM/nfpeYVhDfwwvJl
-lpKQd/Ct9JDpEXjXk4nAPQu6KfTomZ1yju2dL+6SfaHx/126M2CFYv4HAqGEVka+lgqaE9chTLd8
-B59OTj+RdPsnnRHM3eaxynFNExc5JsUpISuTKWqW+qtB4Uu2NQvAmxU=
------END CERTIFICATE-----
-
-Certinomis - Root CA
-====================
------BEGIN CERTIFICATE-----
-MIIFkjCCA3qgAwIBAgIBATANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJGUjETMBEGA1UEChMK
-Q2VydGlub21pczEXMBUGA1UECxMOMDAwMiA0MzM5OTg5MDMxHTAbBgNVBAMTFENlcnRpbm9taXMg
-LSBSb290IENBMB4XDTEzMTAyMTA5MTcxOFoXDTMzMTAyMTA5MTcxOFowWjELMAkGA1UEBhMCRlIx
-EzARBgNVBAoTCkNlcnRpbm9taXMxFzAVBgNVBAsTDjAwMDIgNDMzOTk4OTAzMR0wGwYDVQQDExRD
-ZXJ0aW5vbWlzIC0gUm9vdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANTMCQos
-P5L2fxSeC5yaah1AMGT9qt8OHgZbn1CF6s2Nq0Nn3rD6foCWnoR4kkjW4znuzuRZWJflLieY6pOo
-d5tK8O90gC3rMB+12ceAnGInkYjwSond3IjmFPnVAy//ldu9n+ws+hQVWZUKxkd8aRi5pwP5ynap
-z8dvtF4F/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cOa4pvi2WsS9
-Iff/ql+hbHY5ZtbqTFXhADObE5hjyW/QASAJN1LnDE8+zbz1X5YnpyACleAu6AdBBR8Vbtaw5Bng
-DwKTACdyxYvRVB9dSsNAl35VpnzBMwQUAR1JIGkLGZOdblgi90AMRgwjY/M50n92Uaf0yKHxDHYi
-I0ZSKS3io0EHVmmY0gUJvGnHWmHNj4FgFU2A3ZDifcRQ8ow7bkrHxuaAKzyBvBGAFhAn1/DNP3nM
-cyrDflOR1m749fPH0FFNjkulW+YZFzvWgQncItzujrnEj1PhZ7szuIgVRs/taTX/dQ1G885x4cVr
-hkIGuUE=
------END CERTIFICATE-----
-
-OISTE WISeKey Global Root GB CA
-===============================
------BEGIN CERTIFICATE-----
-MIIDtTCCAp2gAwIBAgIQdrEgUnTwhYdGs/gjGvbCwDANBgkqhkiG9w0BAQsFADBtMQswCQYDVQQG
-EwJDSDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNl
-ZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQiBDQTAeFw0xNDEyMDExNTAw
-MzJaFw0zOTEyMDExNTEwMzFaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYD
-VQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEds
-b2JhbCBSb290IEdCIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Be3HEokKtaX
-scriHvt9OO+Y9bI5mE4nuBFde9IllIiCFSZqGzG7qFshISvYD06fWvGxWuR51jIjK+FTzJlFXHtP
-rby/h0oLS5daqPZI7H17Dc0hBt+eFf1Biki3IPShehtX1F1Q/7pn2COZH8g/497/b1t3sWtuuMlk
-9+HKQUYOKXHQuSP8yYFfTvdv37+ErXNku7dCjmn21HYdfp2nuFeKUWdy19SouJVUQHMD9ur06/4o
-Qnc/nSMbsrY9gBQHTC5P99UKFg29ZkM3fiNDecNAhvVMKdqOmq0NpQSHiB6F4+lT1ZvIiwNjeOvg
-GUpuuy9rM2RYk61pv48b74JIxwIDAQABo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB
-/zAdBgNVHQ4EFgQUNQ/INmNe4qPs+TtmFc5RUuORmj0wEAYJKwYBBAGCNxUBBAMCAQAwDQYJKoZI
-hvcNAQELBQADggEBAEBM+4eymYGQfp3FsLAmzYh7KzKNbrghcViXfa43FK8+5/ea4n32cZiZBKpD
-dHij40lhPnOMTZTg+XHEthYOU3gf1qKHLwI5gSk8rxWYITD+KJAAjNHhy/peyP34EEY7onhCkRd0
-VQreUGdNZtGn//3ZwLWoo4rOZvUPQ82nK1d7Y0Zqqi5S2PTt4W2tKZB4SLrhI6qjiey1q5bAtEui
-HZeeevJuQHHfaPFlTc58Bd9TZaml8LGXBHAVRgOY1NK/VLSgWH1Sb9pWJmLU2NuJMW8c8CLC02Ic
-Nc1MaRVUGpCY3useX8p3x8uOPUNpnJpY0CQ73xtAln41rYHHTnG6iBM=
------END CERTIFICATE-----
-
-Certification Authority of WoSign G2
-====================================
------BEGIN CERTIFICATE-----
-MIIDfDCCAmSgAwIBAgIQayXaioidfLwPBbOxemFFRDANBgkqhkiG9w0BAQsFADBYMQswCQYDVQQG
-EwJDTjEaMBgGA1UEChMRV29TaWduIENBIExpbWl0ZWQxLTArBgNVBAMTJENlcnRpZmljYXRpb24g
-QXV0aG9yaXR5IG9mIFdvU2lnbiBHMjAeFw0xNDExMDgwMDU4NThaFw00NDExMDgwMDU4NThaMFgx
-CzAJBgNVBAYTAkNOMRowGAYDVQQKExFXb1NpZ24gQ0EgTGltaXRlZDEtMCsGA1UEAxMkQ2VydGlm
-aWNhdGlvbiBBdXRob3JpdHkgb2YgV29TaWduIEcyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
-CgKCAQEAvs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BAHGlDs7k6b8/ONWJWsQCYftMxRQXLYtPU2sQF/xlhMcQSZDe28cmk4gmb3DW
-Al45oPePq5a1pRNcgRRtDoGCERuKTsZPpd1iHkTfCVn0W3cLN+mLIMb4Ck4uWBzrM9DPhmDJ2vuA
-L55MYIR4PSFk1vtBHxgP58l1cb29XN40hz5BsA72udY/CROWFC/emh1auVbONTqwX3BNXuMp8SMo
-clm2q8KMZiYcdywmdjWLKKdpoPk79SPdhRB0yZADVpHnr7pH1BKXESLjokmUbOe3lEu6LaTaM4tM
-pkT/WjzGHWTYtTHkpjx6qFcL2+1hGsvxznN3Y6SHb0xRONbkX8eftoEq5IVIeVheO/jbAoJnwTnb
-w3RLPTYe+SmTiGhbqEQZIfCn6IENLOiTNrQ3ssqwGyZ6miUfmpqAnksqP/ujmv5zMnHCnsZy4Ypo
-J/HkD7TETKVhk/iXEAcqMCWpuchxuO9ozC1+9eB+D4Kob7a6bINDd82Kkhehnlt4Fj1F4jNy3eFm
-ypnTycUm/Q1oBEauttmbjL4ZvrHG8hnjXALKLNhvSgfZyTXaQHXyxKcZb55CEJh15pWLYLztxRLX
-is7VmFxWlgPF7ncGNf/P5O4/E2Hu29othfDNrp2yGAlFw5Khchf8R7agCyzxxN5DaAhqXzvwdmP7
-zAYspsbiDrW5viSP
------END CERTIFICATE-----
-
-Hellenic Academic and Research Institutions RootCA 2015
-=======================================================
------BEGIN CERTIFICATE-----
-MIIGCzCCA/OgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcT
-BkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0
-aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNVBAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNl
-YXJjaCBJbnN0aXR1dGlvbnMgUm9vdENBIDIwMTUwHhcNMTUwNzA3MTAxMTIxWhcNNDAwNj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gQUcRVnyMjJvXVdctA4GGqd83EkVAswDQYJKoZI
-hvcNAQELBQADggIBAHW7bVRLqhBYRjTyYtcWNl0IXtVsyIe9tC5G8jH4fOpCtZMWVdyhDBKg2mF+
-D1hYc2Ryx+hFjtyp8iY/xnmMsVMIM4GwVhO+5lFc2JsKT0ucVlMC6U/2DWDqTUJV6HwbISHTGzrM
-d/K4kPFox/la/vot9L/J9UUbzjgQKjeKeaO04wlshYaT/4mWJ3iBj2fjRnRUjtkNaeJK9E10A/+y
-d+2VZ5fkscWrv2oj6NSU4kQoYsRL4vDY4ilrGnB+JGGTe08DMiUNRSQrlrRGar9KC/eaj8GsGsVn
-82800vpzY4zvFrCopEYq+OsS7HK07/grfoxSwIuEVPkvPuNVqNxmsdnhX9izjFk0WaSrT2y7Hxjb
-davYy5LNlDhhDgcGH0tGEPEVvo2FXDtKK4F5D7Rpn0lQl033DlZdwJVqwjbDG2jJ9SrcR5q+ss7F
-Jej6A7na+RZukYT1HCjI/CbM1xyQVqdfbzoEvM14iQuODy+jqk+iGxI9FghAD/FGTNeqewjBCvVt
-J94Cj8rDtSvK6evIIVM4pcw72Hc3MKJP2W/R8kCtQXoXxdZKNYm3QdV8hn9VTYNKpXMgwDqvkPGa
-JI7ZjnHKe7iG2rKPmT4dEw0SEe7Uq/DpFXYC5ODfqiAeW2GFZECpkJcNrVPSWh2HagCXZWK0vm9q
-p/UsQu0yrbYhnr68
------END CERTIFICATE-----
-
-Hellenic Academic and Research Institutions ECC RootCA 2015
-===========================================================
------BEGIN CERTIFICATE-----
-MIICwzCCAkqgAwIBAgIBADAKBggqhkjOPQQDAjCBqjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0
-aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9u
-cyBDZXJ0LiBBdXRob3JpdHkxRDBCBgNVBAMTO0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJj
-aC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sD2097+o
-4BGkxK51CUpjAEggpsadCwmKtODmzj7HPiY46SvepghJAwSQiumPv+i2tCqjI40cHLI5kqiPAlxA
-OXXUc0ECd97N4EOH1uS6SsNsEn/+KuYj1oxx
------END CERTIFICATE-----
-
-OpenTrust Root CA G2
-====================
------BEGIN CERTIFICATE-----
-MIIFbzCCA1egAwIBAgISESChaRu/vbm9UpaPI+hIvyYRMA0GCSqGSIb3DQEBDQUAMEAxCzAJBgNV
-BAYTAkZSMRIwEAYDVQQKDAlPcGVuVHJ1c3QxHTAbBgNVBAMMFE9wZW5UcnVzdCBSb290IENBIEcy
-MB4XDTE0MDUyNjAwMDAwMFoXDTM4MDExNTAwMDAwMFowQDELMAkGA1UEBhMCRlIxEjAQBgNVBAoM
-CU9wZW5UcnVzdDEdMBsGA1UEAwwUT3BlblRydXN0IFJvb3QgQ0EgRzIwggIiMA0GCSqGSIb3DQEB
-AQUAA4ICDwAwggIKAoICAQDMtlelM5QQgTJT32F+D3Y5z1zCU3UdSXqWON2ic2rxb95eolq5cSG+
-Ntmh/LzubKh8NBpxGuga2F8ORAbtp+Dz0mEL4DKiltE48MLaARf85KxP6O6JHnSrT78eCbY2albz
-4e6WiWYkBuTNQjpK3eCasMSCRbP+yatcfD7J6xcvDH1urqWPyKwlCm/61UWY0jUJ9gNDlP7ZvyCV
-eYCYitmJNbtRG6Q3ffyZO6v/v6wNj0OxmXsWEH4db0fEFY8ElggGQgT4hNYdvJGmQr5J1WqIP7wt
-UdGejeBSzFfdNTVY27SPJIjki9/ca1TSgSuyzpJLHB9G+h3Ykst2Z7UJmQnlrBcUVXDGPKBWCgOz
-3GIZ38i1MH/1PCZ1Eb3XG7OHngevZXHloM8apwkQHZOJZlvoPGIytbU6bumFAYueQ4xncyhZW+vj
-3CzMpSZyYhK05pyDRPZRpOLAeiRXyg6lPzq1O4vldu5w5pLeFlwoW5cZJ5L+epJUzpM5ChaHvGOz
-9bGTXOBut9Dq+WIyiET7vycotjCVXRIouZW+j1MY5aIYFuJWpLIsEPUdN6b4t/bQWVyJ98LVtZR0
-0dX+G7bw5tYee9I8y6jj9RjzIR9u701oBnstXW5DiabA+aC/gh7PU3+06yzbXfZqfUAkBXKJOAGT
-y3HCOV0GEfZvePg3DTmEJwIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB
-/zAdBgNVHQ4EFgQUajn6QiL35okATV59M4PLuG53hq8wHwYDVR0jBBgwFoAUajn6QiL35okATV59
-M4PLuG53hq8wDQYJKoZIhvcNAQENBQADggIBAJjLq0A85TMCl38th6aP1F5Kr7ge57tx+4BkJamz
-Gj5oXScmp7oq4fBXgwpkTx4idBvpkF/wrM//T2h6OKQQbA2xx6R3gBi2oihEdqc0nXGEL8pZ0keI
-mUEiyTCYYW49qKgFbdEfwFFEVn8nNQLdXpgKQuswv42hm1GqO+qTRmTFAHneIWv2V6CG1wZy7HBG
-S4tz3aAhdT7cHcCP009zHIXZ/n9iyJVvttN7jLpTwm+bREx50B1ws9efAvSyB7DH5fitIw6mVskp
-EndI2S9G/Tvw/HRwkqWOOAgfZDC2t0v7NqwQjqBSM2OdAzVWxWm9xiNaJ5T2pBL4LTM8oValX9YZ
-6e18CL13zSdkzJTaTkZQh+D5wVOAHrut+0dSixv9ovneDiK3PTNZbNTe9ZUGMg1RGUFcPk8G97kr
-gCf2o6p6fAbhQ8MTOWIaNr3gKC6UAuQpLmBVrkA9sHSSXvAgZJY/X0VdiLWK2gKgW0VU3jg9CcCo
-SmVGFvyqv1ROTVu+OEO3KMqLM6oaJbolXCkvW0pujOotnCr2BXbgd5eAiN1nE28daCSLT7d0geX0
-YJ96Vdc+N9oWaz53rK4YcJUIeSkDiv7BO7M/Gg+kO14fWKGVyasvc0rQLW6aWQ9VGHgtPFGml4vm
-u7JwqkwR3v98KzfUetF3NI/n+UL3PIEMS1IK
------END CERTIFICATE-----
-
-OpenTrust Root CA G3
-====================
------BEGIN CERTIFICATE-----
-MIICITCCAaagAwIBAgISES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HvUBKwrZ1pebbuCoGRw6IYsMHkCtA+fdZn71uSANA+iW
-+YJF1DngoABd15jmfZ5nc8OaKveri6E6FO80vFIOiZiaBECEHX5FaZNXzuvO+FB8TxxuBEOb+dY7
-Ixjp6o7RTUaN8Tvkasq6+yO3m/qZASlaWFot4/nUbQ4mrcFuNLwy+AwF+mWj2zs3gyLp1txyM/1d
-8iC9djwj2ij3+RvrWWTV3F9yfiD8zYm1kGdNYno/Tq0dwzn+evQoFt9B9kiABdcPUXmsEKvU7ANm
-5mqwujGSQkBqvjrTcuFqN1W8rB2Vt2lh8kORdOag0wokRqEIr9baRRmW1FMdW4R58MD3R++Lj8UG
-rp1MYp3/RgT408m2ECVAdf4WqslKYIYvuu8wd+RU4riEmViAqhOLUTpPSPaLtrM=
------END CERTIFICATE-----
-
-Amazon Root CA 1
-================
------BEGIN CERTIFICATE-----
-MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsFADA5MQswCQYD
-VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAxMB4XDTE1
-MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv
-bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
-ggEBALJ4gHHKeNXjca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgH
-FzZM9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qwIFAGbHrQ
-gLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6VOujw5H5SNz/0egwLX0t
-dHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L93FcXmn/6pUCyziKrlA4b9v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-aQbLU8uz/mtBzUF+fUwPfHJ5elnNXkoOrJupmHN5fLT0zLm4BwyydFy4x2+IoZCn9Kr5v2c69BoV
-Yh63n749sSmvZ6ES8lgQGVMDMBu4Gon2nL2XA46jCfMdiyHxtN/kHNGfZQIG6lzWE7OE76KlXIx3
-KadowGuuQNKotOrN8I1LOJwZmhsoVLiJkO/KdYE+HvJkJMcYr07/R54H9jVlpNMKVv/1F2Rs76gi
-JUmTtt8AF9pYfl3uxRuw0dFfIRDH+fO6AgonB8Xx1sfT4PsJYGw=
------END CERTIFICATE-----
-
-Amazon Root CA 3
-================
------BEGIN CERTIFICATE-----
-MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5MQswCQYDVQQG
-EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAzMB4XDTE1MDUy
-NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ
-MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCmXp8ZB
-f8ANm+gBG1bG8lKlui2yEujSLtf6ycXYqm0fc4E7O5hrOXwzpcVOho6AF2hiRVd9RFgdszflZwjr
-Zt6jQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSrttvXBp43
-rDCGB5Fwx5zEGbF4wDAKBggqhkjOPQQDAgNJADBGAiEA4IWSoxe3jfkrBqWTrBqYaGFy+uGh0Psc
-eGCmQ5nFuMQCIQCcAu/xlJyzlvnrxir4tiz+OpAUFteMYyRIHN8wfdVoOw==
------END CERTIFICATE-----
-
-Amazon Root CA 4
-================
------BEGIN CERTIFICATE-----
-MIIB8jCCAXigAwIBAgITBmyf18G7EEwpQ+Vxe3ssyBrBDjAKBggqhkjOPQQDAzA5MQswCQY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qx3gf4ynCSecs5U89BvolbW
-7MM3LGVYvlcAGvI1+ut7MV3CwRI9loGIlonBWVx65n9wNOeD4rHh4bhY79SV5GCc8JaXcozrhAIu
-ZY+kt9J/Z93I055cqqmkoCUUBpvsT34tC38ddfEz2O3OuHVtPlu5mB0xDVbYQw8wkbIEa91WvpWA
-VWe+2M2D2RjuLg+GLZKecBPs3lHJQ3gCpU3I+V/EkVhGFndadKpAvAefMLmx9xIX3eP/JEAdemrR
-TxgKqpAd60Ae36EeRJIQmvKN4dFLRp7oRUKX6kWZ8+xm1QL68qZKJKrezrnK+T+Tb/mjuuqlPpmt
-/f97mfVl7vBZKGfXkJWkE4SphMHozs51k2MavDzq1WQfLSoSOcbDWjLtR5EWDrw4wVDej8oqkDQc
-7kGUnF4ZLvhFSZl0kbAEb+MEWrGrKqv+x9CWttrhSmQGbmBNvUJO/3jaJMobtNeWOWyu8Q6qp31I
-iyBMz2TWuJdGsE7RKlY6oJO9r4Ak4Ap+58rVyuiFVdw2KuGUaJPHZnJED4AhMmwlxyOAgwrr
------END CERTIFICATE-----
-
-TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1
-=============================================
------BEGIN CERTIFICATE-----
-MIIEYzCCA0ugAwIBAgIBATANBgkqhkiG9w0BAQsFADCB0jELMAkGA1UEBhMCVFIxGDAWBgNVBAcT
-D0dlYnplIC0gS29jYWVsaTFCMEAGA1UEChM5VHVya2l5ZSBCaWxpbXNlbCB2ZSBUZWtub2xvamlr
-IEFyYXN0aXJtYSBLdXJ1bXUgLSBUVUJJVEFLMS0wKwYDVQQLEyRLYW11IFNlcnRpZmlrYXN5b24g
-TWVya2V6aSAtIEthbXUgU00xNjA0BgNVBAMTLVRVQklUQUsgS2FtdSBTTSBTU0wgS29rIFNlcnRp
-ZmlrYXNpIC0gU3VydW0gMTAeFw0xMzExMjUwODI1NTVaFw00MzEwMjUwODI1NTVaMIHSMQswCQYD
-VQQGEwJUUjEYMBYGA1UEBxMPR2ViemUgLSBLb2Nh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z7UMCflo3Ptv0AnVoUmr8CRPXBwp8iXqIPoeM=
------END CERTIFICATE-----
diff --git a/vendor/github.com/igungor/gofakes3/constants.go b/vendor/github.com/igungor/gofakes3/constants.go
deleted file mode 100644
index a02d73039..000000000
--- a/vendor/github.com/igungor/gofakes3/constants.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package gofakes3
-
-import "time"
-
-const (
- // From https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html:
- // "The name for a key is a sequence of Unicode characters whose UTF-8
- // encoding is at most 1024 bytes long."
- KeySizeLimit = 1024
-
- // From https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html:
- // Within the PUT request header, the user-defined metadata is limited to 2
- // KB in size. The size of user-defined metadata is measured by taking the
- // sum of the number of bytes in the UTF-8 encoding of each key and value.
- //
- // As this does not specify KB or KiB, KB is used in gofakes3. The reason
- // for this is if gofakes3 is used for testing, and your tests show that
- // 2KiB works, but Amazon uses 2KB... that's a much worse time to discover
- // the disparity!
- DefaultMetadataSizeLimit = 2000
-
- // Like DefaultMetadataSizeLimit, the docs don't specify MB or MiB, so we
- // will accept 5MB for now. The Go client SDK rejects 5MB with the error
- // "part size must be at least 5242880 bytes", which is a hint that it
- // has been interpreted as MiB at least _somewhere_, but we should remain
- // liberal in what we accept in the face of ambiguity.
- DefaultUploadPartSize = 5 * 1000 * 1000
-
- DefaultSkewLimit = 15 * time.Minute
-
- MaxUploadsLimit = 1000
- DefaultMaxUploads = 1000
- MaxUploadPartsLimit = 1000
- DefaultMaxUploadParts = 1000
-
- MaxBucketKeys = 1000
- DefaultMaxBucketKeys = 1000
-
- MaxBucketVersionKeys = 1000
- DefaultMaxBucketVersionKeys = 1000
-
- // From the docs: "Part numbers can be any number from 1 to 10,000, inclusive."
- MaxUploadPartNumber = 10000
-
- copySourceHeader = "X-Amz-Copy-Source"
-)
diff --git a/vendor/github.com/igungor/gofakes3/cors.go b/vendor/github.com/igungor/gofakes3/cors.go
deleted file mode 100644
index 105c30d83..000000000
--- a/vendor/github.com/igungor/gofakes3/cors.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package gofakes3
-
-import (
- "net/http"
- "strings"
-)
-
-var (
- corsHeaders = []string{
- "Accept",
- "Accept-Encoding",
- "Authorization",
- "Content-Disposition",
- "Content-Length",
- "Content-Type",
- "X-Amz-Date",
- "X-Amz-User-Agent",
- "X-CSRF-Token",
- "x-amz-acl",
- "x-amz-content-sha256",
- "x-amz-meta-filename",
- "x-amz-meta-from",
- "x-amz-meta-private",
- "x-amz-meta-to",
- "x-amz-security-token",
- }
- corsHeadersString = strings.Join(corsHeaders, ", ")
-)
-
-type withCORS struct {
- r http.Handler
- log Logger
-}
-
-func (s *withCORS) ServeHTTP(w http.ResponseWriter, r *http.Request) {
- w.Header().Set("Access-Control-Allow-Origin", "*")
- w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE, HEAD")
- w.Header().Set("Access-Control-Allow-Headers", corsHeadersString)
- w.Header().Set("Access-Control-Expose-Headers", "ETag")
-
- if r.Method == "OPTIONS" {
- return
- }
-
- s.r.ServeHTTP(w, r)
-}
diff --git a/vendor/github.com/igungor/gofakes3/error.go b/vendor/github.com/igungor/gofakes3/error.go
deleted file mode 100644
index c85974946..000000000
--- a/vendor/github.com/igungor/gofakes3/error.go
+++ /dev/null
@@ -1,348 +0,0 @@
-package gofakes3
-
-import (
- "encoding/xml"
- "fmt"
- "net/http"
- "time"
-)
-
-// Error codes are documented here:
-// https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
-//
-// If you add a code to this list, please also add it to ErrorCode.Status().
-//
-const (
- ErrNone ErrorCode = ""
-
- // The Content-MD5 you specified did not match what we received.
- ErrBadDigest ErrorCode = "BadDigest"
-
- ErrBucketAlreadyExists ErrorCode = "BucketAlreadyExists"
-
- // Raised when attempting to delete a bucket that still contains items.
- ErrBucketNotEmpty ErrorCode = "BucketNotEmpty"
-
- // "Indicates that the versioning configuration specified in the request is invalid"
- ErrIllegalVersioningConfiguration ErrorCode = "IllegalVersioningConfigurationException"
-
- // You did not provide the number of bytes specified by the Content-Length
- // HTTP header:
- ErrIncompleteBody ErrorCode = "IncompleteBody"
-
- // POST requires exactly one file upload per request.
- ErrIncorrectNumberOfFilesInPostRequest ErrorCode = "IncorrectNumberOfFilesInPostRequest"
-
- // InlineDataTooLarge occurs when using the PutObjectInline method of the
- // SOAP interface
- // (https://docs.aws.amazon.com/AmazonS3/latest/API/SOAPPutObjectInline.html).
- // This is not documented on the errors page; the error is included here
- // only for reference.
- ErrInlineDataTooLarge ErrorCode = "InlineDataTooLarge"
-
- ErrInvalidArgument ErrorCode = "InvalidArgument"
-
- // https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules
- ErrInvalidBucketName ErrorCode = "InvalidBucketName"
-
- // The Content-MD5 you specified is not valid.
- ErrInvalidDigest ErrorCode = "InvalidDigest"
-
- ErrInvalidRange ErrorCode = "InvalidRange"
- ErrInvalidToken ErrorCode = "InvalidToken"
- ErrKeyTooLong ErrorCode = "KeyTooLongError" // This is not a typo: Error is part of the string, but redundant in the constant name
- ErrMalformedPOSTRequest ErrorCode = "MalformedPOSTRequest"
-
- // One or more of the specified parts could not be found. The part might
- // not have been uploaded, or the specified entity tag might not have
- // matched the part's entity tag.
- ErrInvalidPart ErrorCode = "InvalidPart"
-
- // The list of parts was not in ascending order. Parts list must be
- // specified in order by part number.
- ErrInvalidPartOrder ErrorCode = "InvalidPartOrder"
-
- ErrInvalidURI ErrorCode = "InvalidURI"
-
- ErrMetadataTooLarge ErrorCode = "MetadataTooLarge"
- ErrMethodNotAllowed ErrorCode = "MethodNotAllowed"
- ErrMalformedXML ErrorCode = "MalformedXML"
-
- // You must provide the Content-Length HTTP header.
- ErrMissingContentLength ErrorCode = "MissingContentLength"
-
- // See BucketNotFound() for a helper function for this error:
- ErrNoSuchBucket ErrorCode = "NoSuchBucket"
-
- // See KeyNotFound() for a helper function for this error:
- ErrNoSuchKey ErrorCode = "NoSuchKey"
-
- // The specified multipart upload does not exist. The upload ID might be
- // invalid, or the multipart upload might have been aborted or completed.
- ErrNoSuchUpload ErrorCode = "NoSuchUpload"
-
- ErrNoSuchVersion ErrorCode = "NoSuchVersion"
-
- ErrRequestTimeTooSkewed ErrorCode = "RequestTimeTooSkewed"
- ErrTooManyBuckets ErrorCode = "TooManyBuckets"
- ErrNotImplemented ErrorCode = "NotImplemented"
-
- ErrInternal ErrorCode = "InternalError"
-
- ErrInvalidStorageClass ErrorCode = "InvalidStorageClass"
-)
-
-// INTERNAL errors! These are not part of the S3 interface, they are codes
-// we have declared ourselves. Should all map to a 500 status code:
-const (
- ErrInternalPageNotImplemented InternalErrorCode = "PaginationNotImplemented"
-)
-
-// errorResponse should be implemented by any type that needs to be handled by
-// ensureErrorResponse.
-type errorResponse interface {
- Error
- enrich(requestID string)
-}
-
-func ensureErrorResponse(err error, requestID string) Error {
- switch err := err.(type) {
- case errorResponse:
- err.enrich(requestID)
- return err
-
- case ErrorCode:
- return &ErrorResponse{
- Code: err,
- RequestID: requestID,
- Message: string(err),
- }
-
- default:
- return &ErrorResponse{
- Code: ErrInternal,
- Message: "Internal Error",
- RequestID: requestID,
- }
- }
-}
-
-type Error interface {
- error
- ErrorCode() ErrorCode
-}
-
-// ErrorResponse is the base error type returned by S3 when any error occurs.
-//
-// Some errors contain their own additional fields in the response, for example
-// ErrRequestTimeTooSkewed, which contains the server time and the skew limit.
-// To create one of these responses, subclass it (but please don't export it):
-//
-// type notQuiteRightResponse struct {
-// ErrorResponse
-// ExtraField int
-// }
-//
-// Next, create a constructor that populates the error. Interfaces won't work
-// for this job as the error itself does double-duty as the XML response
-// object. Fill the struct out however you please, but don't forget to assign
-// Code and Message:
-//
-// func NotQuiteRight(at time.Time, max time.Duration) error {
-// code := ErrNotQuiteRight
-// return ¬QuiteRightResponse{
-// ErrorResponse{Code: code, Message: code.Message()},
-// 123456789,
-// }
-// }
-//
-type ErrorResponse struct {
- XMLName xml.Name `xml:"Error"`
-
- Code ErrorCode
- Message string `xml:",omitempty"`
- RequestID string `xml:"RequestId,omitempty"`
- HostID string `xml:"HostId,omitempty"`
-}
-
-func (e *ErrorResponse) ErrorCode() ErrorCode { return e.Code }
-
-func (e *ErrorResponse) Error() string {
- return fmt.Sprintf("%s: %s", e.Code, e.Message)
-}
-
-func (r *ErrorResponse) enrich(requestID string) {
- r.RequestID = requestID
-}
-
-func ErrorMessage(code ErrorCode, message string) error {
- return &ErrorResponse{Code: code, Message: message}
-}
-
-func ErrorMessagef(code ErrorCode, message string, args ...interface{}) error {
- return &ErrorResponse{Code: code, Message: fmt.Sprintf(message, args...)}
-}
-
-type ErrorInvalidArgumentResponse struct {
- ErrorResponse
-
- ArgumentName string `xml:"ArgumentName"`
- ArgumentValue string `xml:"ArgumentValue"`
-}
-
-func ErrorInvalidArgument(name, value, message string) error {
- return &ErrorInvalidArgumentResponse{
- ErrorResponse: ErrorResponse{Code: ErrInvalidArgument, Message: message},
- ArgumentName: name, ArgumentValue: value}
-}
-
-// ErrorCode represents an S3 error code, documented here:
-// https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
-type ErrorCode string
-
-func (e ErrorCode) ErrorCode() ErrorCode { return e }
-func (e ErrorCode) Error() string { return string(e) }
-
-// InternalErrorCode represents an GoFakeS3 error code. It maps to ErrInternal
-// when constructing a response.
-type InternalErrorCode string
-
-func (e InternalErrorCode) ErrorCode() ErrorCode { return ErrInternal }
-func (e InternalErrorCode) Error() string { return string(ErrInternal) }
-
-// Message tries to return the same string as S3 would return for the error
-// response, when it is known, or nothing when it is not. If you see the status
-// text for a code we don't have listed in here in the wild, please let us
-// know!
-func (e ErrorCode) Message() string {
- switch e {
- case ErrInvalidBucketName:
- return `Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$"`
- case ErrNoSuchBucket:
- return "The specified bucket does not exist"
- case ErrRequestTimeTooSkewed:
- return "The difference between the request time and the current time is too large"
- case ErrMalformedXML:
- return "The XML you provided was not well-formed or did not validate against our published schema"
- default:
- return ""
- }
-}
-
-func (e ErrorCode) Status() int {
- switch e {
- case ErrBucketAlreadyExists,
- ErrBucketNotEmpty:
- return http.StatusConflict
-
- case ErrBadDigest,
- ErrIllegalVersioningConfiguration,
- ErrIncompleteBody,
- ErrIncorrectNumberOfFilesInPostRequest,
- ErrInlineDataTooLarge,
- ErrInvalidArgument,
- ErrInvalidBucketName,
- ErrInvalidDigest,
- ErrInvalidPart,
- ErrInvalidPartOrder,
- ErrInvalidToken,
- ErrInvalidURI,
- ErrKeyTooLong,
- ErrMetadataTooLarge,
- ErrMethodNotAllowed,
- ErrMalformedPOSTRequest,
- ErrMalformedXML,
- ErrTooManyBuckets:
- return http.StatusBadRequest
-
- case ErrRequestTimeTooSkewed:
- return http.StatusForbidden
-
- case ErrInvalidRange:
- return http.StatusRequestedRangeNotSatisfiable
-
- case ErrNoSuchBucket,
- ErrNoSuchKey,
- ErrNoSuchUpload,
- ErrNoSuchVersion:
- return http.StatusNotFound
-
- case ErrNotImplemented:
- return http.StatusNotImplemented
-
- case ErrMissingContentLength:
- return http.StatusLengthRequired
-
- case ErrInternal:
- return http.StatusInternalServerError
- }
-
- return http.StatusInternalServerError
-}
-
-// HasErrorCode asserts that the error has a specific error code:
-//
-// if HasErrorCode(err, ErrNoSuchBucket) {
-// // handle condition
-// }
-//
-// If err is nil and code is ErrNone, HasErrorCode returns true.
-//
-func HasErrorCode(err error, code ErrorCode) bool {
- if err == nil && code == "" {
- return true
- }
- s3err, ok := err.(interface{ ErrorCode() ErrorCode })
- if !ok {
- return false
- }
- return s3err.ErrorCode() == code
-}
-
-// IsAlreadyExists asserts that the error is a kind that indicates the resource
-// already exists, similar to os.IsExist.
-func IsAlreadyExists(err error) bool {
- return HasErrorCode(err, ErrBucketAlreadyExists)
-}
-
-type resourceErrorResponse struct {
- ErrorResponse
- Resource string
-}
-
-var _ errorResponse = &resourceErrorResponse{}
-
-func ResourceError(code ErrorCode, resource string) error {
- return &resourceErrorResponse{
- ErrorResponse{Code: code, Message: code.Message()},
- resource,
- }
-}
-
-func BucketNotFound(bucket string) error { return ResourceError(ErrNoSuchBucket, bucket) }
-func KeyNotFound(key string) error { return ResourceError(ErrNoSuchKey, key) }
-
-type requestTimeTooSkewedResponse struct {
- ErrorResponse
- ServerTime time.Time
- MaxAllowedSkewMilliseconds durationAsMilliseconds
-}
-
-var _ errorResponse = &requestTimeTooSkewedResponse{}
-
-func requestTimeTooSkewed(at time.Time, max time.Duration) error {
- code := ErrRequestTimeTooSkewed
- return &requestTimeTooSkewedResponse{
- ErrorResponse{Code: code, Message: code.Message()},
- at, durationAsMilliseconds(max),
- }
-}
-
-// durationAsMilliseconds tricks xml.Marsha into serialising a time.Duration as
-// truncated milliseconds instead of nanoseconds.
-type durationAsMilliseconds time.Duration
-
-func (m durationAsMilliseconds) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- var s = fmt.Sprintf("%d", time.Duration(m)/time.Millisecond)
- return e.EncodeElement(s, start)
-}
diff --git a/vendor/github.com/igungor/gofakes3/gofakes3.go b/vendor/github.com/igungor/gofakes3/gofakes3.go
deleted file mode 100644
index 372ff4927..000000000
--- a/vendor/github.com/igungor/gofakes3/gofakes3.go
+++ /dev/null
@@ -1,1115 +0,0 @@
-package gofakes3
-
-import (
- "bytes"
- "encoding/base64"
- "encoding/hex"
- "encoding/xml"
- "fmt"
- "io"
- "io/ioutil"
- "math"
- "net/http"
- "net/textproto"
- "net/url"
- "strconv"
- "strings"
- "sync/atomic"
- "time"
-)
-
-// GoFakeS3 implements HTTP handlers for processing S3 requests and returning
-// S3 responses.
-//
-// Logic is delegated to other components, like Backend or uploader.
-type GoFakeS3 struct {
- requestID uint64
-
- storage Backend
- versioned VersionedBackend
-
- timeSource TimeSource
- timeSkew time.Duration
- metadataSizeLimit int
- integrityCheck bool
- failOnUnimplementedPage bool
- hostBucket bool
- uploader *uploader
- log Logger
-}
-
-// New creates a new GoFakeS3 using the supplied Backend. Backends are pluggable.
-// Several Backend implementations ship with GoFakeS3, which can be found in the
-// gofakes3/backends package.
-func New(backend Backend, options ...Option) *GoFakeS3 {
- s3 := &GoFakeS3{
- storage: backend,
- timeSkew: DefaultSkewLimit,
- metadataSizeLimit: DefaultMetadataSizeLimit,
- integrityCheck: true,
- uploader: newUploader(),
- requestID: 0,
- }
-
- // versioned MUST be set before options as one of the options disables it:
- s3.versioned, _ = backend.(VersionedBackend)
-
- for _, opt := range options {
- opt(s3)
- }
- if s3.log == nil {
- s3.log = DiscardLog()
- }
- if s3.timeSource == nil {
- s3.timeSource = DefaultTimeSource()
- }
-
- return s3
-}
-
-func (g *GoFakeS3) nextRequestID() uint64 {
- return atomic.AddUint64(&g.requestID, 1)
-}
-
-// Create the AWS S3 API
-func (g *GoFakeS3) Server() http.Handler {
- var handler http.Handler = &withCORS{r: http.HandlerFunc(g.routeBase), log: g.log}
-
- if g.timeSkew != 0 {
- handler = g.timeSkewMiddleware(handler)
- }
-
- if g.hostBucket {
- handler = g.hostBucketMiddleware(handler)
- }
-
- return handler
-}
-
-func (g *GoFakeS3) timeSkewMiddleware(handler http.Handler) http.Handler {
- return http.HandlerFunc(func(w http.ResponseWriter, rq *http.Request) {
- timeHdr := rq.Header.Get("x-amz-date")
-
- if timeHdr != "" {
- rqTime, _ := time.Parse("20060102T150405Z", timeHdr)
- at := g.timeSource.Now()
- skew := at.Sub(rqTime)
-
- if skew < -g.timeSkew || skew > g.timeSkew {
- g.httpError(w, rq, requestTimeTooSkewed(at, g.timeSkew))
- return
- }
- }
-
- handler.ServeHTTP(w, rq)
- })
-}
-
-// hostBucketMiddleware forces the server to use VirtualHost-style bucket URLs:
-// https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html
-func (g *GoFakeS3) hostBucketMiddleware(handler http.Handler) http.Handler {
- return http.HandlerFunc(func(w http.ResponseWriter, rq *http.Request) {
- parts := strings.SplitN(rq.Host, ".", 2)
- bucket := parts[0]
-
- p := rq.URL.Path
- rq.URL.Path = "/" + bucket
- if p != "/" {
- rq.URL.Path += p
- }
- g.log.Print(LogInfo, p, "=>", rq.URL)
-
- handler.ServeHTTP(w, rq)
- })
-}
-
-func (g *GoFakeS3) httpError(w http.ResponseWriter, r *http.Request, err error) {
- resp := ensureErrorResponse(err, "") // FIXME: request id
- if resp.ErrorCode() == ErrInternal {
- g.log.Print(LogErr, err)
- }
-
- w.WriteHeader(resp.ErrorCode().Status())
-
- if r.Method != http.MethodHead {
- if err := g.xmlEncoder(w).Encode(resp); err != nil {
- g.log.Print(LogErr, err)
- return
- }
- }
-}
-
-func (g *GoFakeS3) listBuckets(w http.ResponseWriter, r *http.Request) error {
- buckets, err := g.storage.ListBuckets()
- if err != nil {
- return err
- }
-
- s := &Storage{
- Xmlns: "http://s3.amazonaws.com/doc/2006-03-01/",
- Buckets: buckets,
- Owner: &UserInfo{
- ID: "fe7272ea58be830e56fe1663b10fafef",
- DisplayName: "GoFakeS3",
- },
- }
-
- return g.xmlEncoder(w).Encode(s)
-}
-
-// S3 has two versions of this API, both of which are close to identical. We manage that
-// jank in here so the Backend doesn't have to with the following tricks:
-//
-// - Hiding the NextMarker inside the ContinuationToken for V2 calls
-// - Masking the Owner in the response for V2 calls
-//
-// The wrapping response objects are slightly different too, but the list of
-// objects is pretty much the same.
-//
-// - https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html
-// - https://docs.aws.amazon.com/AmazonS3/latest/API/v2-RESTBucketGET.html
-func (g *GoFakeS3) listBucket(bucketName string, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "LIST BUCKET")
-
- q := r.URL.Query()
- prefix := prefixFromQuery(q)
- page, err := listBucketPageFromQuery(q)
- if err != nil {
- return err
- }
-
- isVersion2 := q.Get("list-type") == "2"
-
- g.log.Print(LogInfo, "bucketname:", bucketName)
- g.log.Print(LogInfo, "prefix :", prefix)
- g.log.Print(LogInfo, "page :", fmt.Sprintf("%+v", page))
-
- objects, err := g.storage.ListBucket(bucketName, &prefix, page)
-
- if err != nil {
- if err == ErrInternalPageNotImplemented && !g.failOnUnimplementedPage {
- // We have observed (though not yet confirmed) that simple clients
- // tend to work fine if you simply ignore pagination, so the
- // default if this is not implemented is to retry without it. If
- // you care about this performance impact for some weird reason,
- // you'll need to handle it yourself.
- objects, err = g.storage.ListBucket(bucketName, &prefix, ListBucketPage{})
- if err != nil {
- return err
- }
-
- } else if err == ErrInternalPageNotImplemented && g.failOnUnimplementedPage {
- return ErrNotImplemented
- } else {
- return err
- }
- }
-
- base := ListBucketResultBase{
- Xmlns: "http://s3.amazonaws.com/doc/2006-03-01/",
- Name: bucketName,
- CommonPrefixes: objects.CommonPrefixes,
- Contents: objects.Contents,
- IsTruncated: objects.IsTruncated,
- Delimiter: prefix.Delimiter,
- Prefix: prefix.Prefix,
- MaxKeys: page.MaxKeys,
- }
-
- if !isVersion2 {
- var result = &ListBucketResult{
- ListBucketResultBase: base,
- Marker: page.Marker,
- }
- if base.Delimiter != "" {
- // From the S3 docs: "This element is returned only if you specify
- // a delimiter request parameter." Dunno why. This hack has been moved
- // into GoFakeS3 to spare backend implementers the trouble.
- result.NextMarker = objects.NextMarker
- }
- return g.xmlEncoder(w).Encode(result)
-
- } else {
- var result = &ListBucketResultV2{
- ListBucketResultBase: base,
- KeyCount: int64(len(objects.CommonPrefixes) + len(objects.Contents)),
- StartAfter: q.Get("start-after"),
- ContinuationToken: q.Get("continuation-token"),
- }
- if objects.NextMarker != "" {
- // We are just cheating with these continuation tokens; they're just the NextMarker
- // from v1 in disguise! That may change at any time and should not be relied upon
- // though.
- result.NextContinuationToken = base64.URLEncoding.EncodeToString([]byte(objects.NextMarker))
- }
-
- // On the topic of "fetch-owner", the AWS docs say, in typically vague style:
- // "If you want the owner information in the response, you can specify
- // this parameter with the value set to true."
- //
- // What does the bare word 'true' mean when we're talking about a query
- // string parameter, which can only be a string? Does it mean the word
- // 'true'? Does it mean 'any truthy string'? Does it mean only the key
- // needs to be present (i.e. '?fetch-owner'), which we are assuming
- // for now? This is why you need proper technical writers.
- //
- // Probably need to hit up the s3assumer at some point, but until then, here's
- // another FIXME!
- if _, ok := q["fetch-owner"]; !ok {
- for _, v := range result.Contents {
- v.Owner = nil
- }
- }
-
- return g.xmlEncoder(w).Encode(result)
- }
-}
-
-func (g *GoFakeS3) getBucketLocation(bucketName string, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "GET BUCKET LOCATION")
-
- result := GetBucketLocation{
- Xmlns: "http://s3.amazonaws.com/doc/2006-03-01/",
- LocationConstraint: "",
- }
-
- return g.xmlEncoder(w).Encode(result)
-}
-
-func (g *GoFakeS3) listBucketVersions(bucketName string, w http.ResponseWriter, r *http.Request) error {
- if g.versioned == nil {
- return ErrNotImplemented
- }
-
- q := r.URL.Query()
- prefix := prefixFromQuery(q)
- page, err := listBucketVersionsPageFromQuery(q)
- if err != nil {
- return err
- }
-
- // S300004:
- if page.HasVersionIDMarker {
- if page.VersionIDMarker == "" {
- return ErrorInvalidArgument("version-id-marker", "", "A version-id marker cannot be empty.")
- } else if !page.HasKeyMarker {
- return ErrorInvalidArgument("version-id-marker", "", "A version-id marker cannot be specified without a key marker.")
- }
-
- } else if page.HasKeyMarker && page.KeyMarker == "" {
- // S300004: S3 ignores everything if you pass an empty key marker so
- // let's hide that bit of ugliness from Backend.
- page = ListBucketVersionsPage{}
- }
-
- bucket, err := g.versioned.ListBucketVersions(bucketName, &prefix, &page)
- if err != nil {
- return err
- }
-
- for _, ver := range bucket.Versions {
- // S300005: S3 returns the _string_ 'null' for the version ID if the
- // bucket has never had versioning enabled. GoFakeS3 backend
- // implementers should be able to simply return the empty string;
- // GoFakeS3 itself should handle this particular bit of jank once and
- // once only.
- if ver.GetVersionID() == "" {
- ver.setVersionID("null")
- }
- }
-
- return g.xmlEncoder(w).Encode(bucket)
-}
-
-// CreateBucket creates a new S3 bucket in the BoltDB storage.
-func (g *GoFakeS3) createBucket(bucket string, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "CREATE BUCKET:", bucket)
-
- if err := ValidateBucketName(bucket); err != nil {
- return err
- }
- if err := g.storage.CreateBucket(bucket); err != nil {
- return err
- }
-
- w.Header().Set("Location", "/"+bucket)
- w.Write([]byte{})
- return nil
-}
-
-// DeleteBucket deletes the bucket in the underlying backend, if and only if it
-// contains no items.
-func (g *GoFakeS3) deleteBucket(bucket string, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "DELETE BUCKET:", bucket)
- if err := g.storage.DeleteBucket(bucket); err != nil {
- return err
- }
- w.WriteHeader(http.StatusNoContent)
- return nil
-}
-
-// HeadBucket checks whether a bucket exists.
-func (g *GoFakeS3) headBucket(bucket string, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "HEAD BUCKET", bucket)
- g.log.Print(LogInfo, "bucketname:", bucket)
-
- if err := g.ensureBucketExists(bucket); err != nil {
- return err
- }
-
- w.Write([]byte{})
- return nil
-}
-
-// GetObject retrievs a bucket object.
-func (g *GoFakeS3) getObject(
- bucket, object string,
- versionID VersionID,
- w http.ResponseWriter,
- r *http.Request,
-) error {
-
- g.log.Print(LogInfo, "GET OBJECT")
- g.log.Print(LogInfo, "Bucket:", bucket)
- g.log.Print(LogInfo, "└── Object:", object)
-
- rnge, err := parseRangeHeader(r.Header.Get("Range"))
- if err != nil {
- return err
- }
-
- var obj *Object
-
- { // get object from backend
- if versionID == "" {
- obj, err = g.storage.GetObject(bucket, object, rnge)
- if err != nil {
- return err
- }
- } else {
- if g.versioned == nil {
- return ErrNotImplemented
- }
- obj, err = g.versioned.GetObjectVersion(bucket, object, versionID, rnge)
- if err != nil {
- return err
- }
- }
- }
-
- if obj == nil {
- g.log.Print(LogErr, "unexpected nil object for key", bucket, object)
- return ErrInternal
- }
- defer obj.Contents.Close()
-
- if err := g.writeGetOrHeadObjectResponse(obj, w, r); err != nil {
- return err
- }
-
- // Writes Content-Length, and Content-Range if applicable:
- obj.Range.writeHeader(obj.Size, w)
-
- if _, err := io.Copy(w, obj.Contents); err != nil {
- return err
- }
-
- return nil
-}
-
-// writeGetOrHeadObjectResponse contains shared logic for constructing headers for
-// a HEAD and a GET request for a /bucket/object URL.
-func (g *GoFakeS3) writeGetOrHeadObjectResponse(obj *Object, w http.ResponseWriter, r *http.Request) error {
- // "If the current version of the object is a delete marker, Amazon S3
- // behaves as if the object was deleted and includes x-amz-delete-marker:
- // true in the response."
- if obj.IsDeleteMarker {
- w.Header().Set("x-amz-version-id", string(obj.VersionID))
- w.Header().Set("x-amz-delete-marker", "true")
- return KeyNotFound(obj.Name)
- }
-
- for mk, mv := range obj.Metadata {
- w.Header().Set(mk, mv)
- }
- w.Header().Set("Accept-Ranges", "bytes")
- w.Header().Set("ETag", `"`+hex.EncodeToString(obj.Hash)+`"`)
-
- if obj.VersionID != "" {
- w.Header().Set("x-amz-version-id", string(obj.VersionID))
- }
- return nil
-}
-
-// headObject retrieves only meta information of an object and not the whole.
-func (g *GoFakeS3) headObject(
- bucket, object string,
- versionID VersionID,
- w http.ResponseWriter,
- r *http.Request,
-) error {
-
- g.log.Print(LogInfo, "HEAD OBJECT")
- g.log.Print(LogInfo, "Bucket:", bucket)
- g.log.Print(LogInfo, "└── Object:", object)
-
- var obj *Object
- var err error
- {
- if versionID == "" {
- obj, err = g.storage.HeadObject(bucket, object)
- if err != nil {
- return err
- }
- } else {
- if g.versioned == nil {
- return ErrNotImplemented
- } else {
- obj, err = g.versioned.HeadObjectVersion(bucket, object, versionID)
- if err != nil {
- return err
- }
- }
- }
- }
-
- if obj == nil {
- g.log.Print(LogErr, "unexpected nil object for key", bucket, object)
- return ErrInternal
- }
- defer obj.Contents.Close()
-
- if err := g.writeGetOrHeadObjectResponse(obj, w, r); err != nil {
- return err
- }
-
- w.Header().Set("Content-Length", fmt.Sprintf("%d", obj.Size))
-
- return nil
-}
-
-// createObjectBrowserUpload allows objects to be created from a multipart upload initiated
-// by a browser form.
-func (g *GoFakeS3) createObjectBrowserUpload(bucket string, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "CREATE OBJECT THROUGH BROWSER UPLOAD")
-
- const _24MB = (1 << 20) * 24 // maximum amount of memory before temp files are used
- if err := r.ParseMultipartForm(_24MB); nil != err {
- return ErrMalformedPOSTRequest
- }
-
- keyValues := r.MultipartForm.Value["key"]
- if len(keyValues) != 1 {
- return ErrIncorrectNumberOfFilesInPostRequest
- }
- key := keyValues[0]
-
- g.log.Print(LogInfo, "(BUC)", bucket)
- g.log.Print(LogInfo, "(KEY)", key)
-
- fileValues := r.MultipartForm.File["file"]
- if len(fileValues) != 1 {
- return ErrIncorrectNumberOfFilesInPostRequest
- }
- fileHeader := fileValues[0]
-
- infile, err := fileHeader.Open()
- if err != nil {
- return err
- }
- defer infile.Close()
-
- meta, err := metadataHeaders(r.MultipartForm.Value, g.timeSource.Now(), g.metadataSizeLimit)
- if err != nil {
- return err
- }
-
- if len(key) > KeySizeLimit {
- return ResourceError(ErrKeyTooLong, key)
- }
-
- // FIXME: how does Content-MD5 get sent when using the browser? does it?
- rdr, err := newHashingReader(infile, "")
- if err != nil {
- return err
- }
-
- result, err := g.storage.PutObject(bucket, key, meta, rdr, fileHeader.Size, StorageClass(r.Header.Get("x-amz-storage-class")))
- if err != nil {
- return err
- }
- if result.VersionID != "" {
- w.Header().Set("x-amz-version-id", string(result.VersionID))
- }
-
- w.Header().Set("ETag", `"`+hex.EncodeToString(rdr.Sum(nil))+`"`)
- return nil
-}
-
-// CreateObject creates a new S3 object.
-func (g *GoFakeS3) createObject(bucket, object string, w http.ResponseWriter, r *http.Request) (err error) {
- g.log.Print(LogInfo, "CREATE OBJECT:", bucket, object)
-
- meta, err := metadataHeaders(r.Header, g.timeSource.Now(), g.metadataSizeLimit)
- if err != nil {
- return err
- }
-
- var (
- size int64
- body = r.Body
- )
-
- // S3 to S3 copy operations has Content-Length=0 header. First, we need to
- // fetch the original object from the given source and copy it to the
- // destination.
- copySource := r.Header.Get(copySourceHeader)
- if copySource != "" {
- parts := strings.SplitN(copySource, "/", 2)
- srcBucket := parts[0]
- srcKey := parts[1]
-
- srcKey, err = url.QueryUnescape(srcKey)
- if err != nil {
- return err
- }
-
- src, err := g.storage.GetObject(srcBucket, srcKey, nil)
- if err != nil {
- return err
- }
-
- if meta["X-Amz-Metadata-Directive"] == "COPY" {
- meta = src.Metadata
- }
-
- // this is not actually a part of the metadata
- delete(src.Metadata, "X-Amz-Metadata-Directive")
-
- size = src.Size
- body = src.Contents
-
- } else {
- var err error
- size, err = strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
- if err != nil || size <= 0 {
- return ErrMissingContentLength
- }
- }
-
- if len(object) > KeySizeLimit {
- return ResourceError(ErrKeyTooLong, object)
- }
-
- var md5Base64 string
- if g.integrityCheck {
- md5Base64 = r.Header.Get("Content-MD5")
-
- if _, ok := r.Header[textproto.CanonicalMIMEHeaderKey("Content-MD5")]; ok && md5Base64 == "" {
- return ErrInvalidDigest // Satisfies s3tests
- }
- }
-
- // hashingReader is still needed to get the ETag even if integrityCheck
- // is set to false:
- rdr, err := newHashingReader(body, md5Base64)
- defer body.Close()
- if err != nil {
- return err
- }
-
- if r.Header.Get("x-amz-storage-class") == "" {
- r.Header.Set("x-amz-storage-class", "STANDARD")
- }
-
- result, err := g.storage.PutObject(bucket, object, meta, rdr, size, StorageClass(r.Header.Get("x-amz-storage-class")))
- if err != nil {
- return err
- }
-
- if copySource != "" {
- return g.xmlEncoder(w).Encode(CopyObjectResult{
- ETag: `"` + hex.EncodeToString(rdr.Sum(nil)) + `"`,
- LastModified: NewContentTime(g.timeSource.Now()),
- })
- }
-
- if result.VersionID != "" {
- g.log.Print(LogInfo, "CREATED VERSION:", bucket, object, result.VersionID)
- w.Header().Set("x-amz-version-id", string(result.VersionID))
- }
- w.Header().Set("ETag", `"`+hex.EncodeToString(rdr.Sum(nil))+`"`)
-
- return nil
-}
-
-// CopyObject copies an existing S3 object
-func (g *GoFakeS3) copyObject(bucket, object string, meta map[string]string, w http.ResponseWriter, r *http.Request) (err error) {
- source := meta["X-Amz-Copy-Source"]
- g.log.Print(LogInfo, "└── COPY:", source)
-
- if len(object) > KeySizeLimit {
- return ResourceError(ErrKeyTooLong, object)
- }
-
- // XXX No support for versionId subresource
- parts := strings.SplitN(strings.TrimPrefix(source, "/"), "/", 2)
- srcBucket := parts[0]
- srcKey := strings.SplitN(parts[1], "?", 2)[0]
-
- srcKey, err = url.QueryUnescape(srcKey)
- if err != nil {
- return err
- }
-
- srcObj, err := g.storage.GetObject(srcBucket, srcKey, nil)
- if err != nil {
- return err
- }
-
- if srcObj == nil {
- g.log.Print(LogErr, "unexpected nil object for key", bucket, object)
- return ErrInternal
- }
- defer srcObj.Contents.Close()
-
- // XXX No support for delete marker
- // "If the current version of the object is a delete marker, Amazon S3
- // behaves as if the object was deleted."
-
- // merge metadata, ACL is not preserved
- for k, v := range srcObj.Metadata {
- if _, found := meta[k]; !found && k != "X-Amz-Acl" {
- meta[k] = v
- }
- }
-
- result, err := g.storage.PutObject(bucket, object, meta, srcObj.Contents, srcObj.Size, StorageClass(r.Header.Get("x-amz-storage-class")))
- if err != nil {
- return err
- }
-
- if srcObj.VersionID != "" {
- w.Header().Set("x-amz-copy-source-version-id", string(srcObj.VersionID))
- }
- if result.VersionID != "" {
- g.log.Print(LogInfo, "CREATED VERSION:", bucket, object, result.VersionID)
- w.Header().Set("x-amz-version-id", string(result.VersionID))
- }
-
- return g.xmlEncoder(w).Encode(CopyObjectResult{
- ETag: `"` + hex.EncodeToString(srcObj.Hash) + `"`,
- LastModified: NewContentTime(g.timeSource.Now()),
- })
-}
-
-func (g *GoFakeS3) deleteObject(bucket, object string, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "DELETE:", bucket, object)
- result, err := g.storage.DeleteObject(bucket, object)
- if err != nil {
- return err
- }
-
- if result.IsDeleteMarker {
- w.Header().Set("x-amz-delete-marker", "true")
- } else {
- w.Header().Set("x-amz-delete-marker", "false")
- }
-
- if result.VersionID != "" {
- w.Header().Set("x-amz-version-id", string(result.VersionID))
- }
-
- w.WriteHeader(http.StatusNoContent)
- return nil
-}
-
-func (g *GoFakeS3) deleteObjectVersion(bucket, object string, version VersionID, w http.ResponseWriter, r *http.Request) error {
- if g.versioned == nil {
- return ErrNotImplemented
- }
-
- g.log.Print(LogInfo, "DELETE VERSION:", bucket, object, version)
- result, err := g.versioned.DeleteObjectVersion(bucket, object, version)
- if err != nil {
- return err
- }
- g.log.Print(LogInfo, "DELETED VERSION:", bucket, object, version)
-
- if result.IsDeleteMarker {
- w.Header().Set("x-amz-delete-marker", "true")
- } else {
- w.Header().Set("x-amz-delete-marker", "false")
- }
-
- if result.VersionID != "" {
- w.Header().Set("x-amz-version-id", string(result.VersionID))
- }
-
- w.WriteHeader(http.StatusNoContent)
- return nil
-}
-
-// deleteMulti deletes multiple S3 objects from the bucket.
-// https://docs.aws.amazon.com/AmazonS3/latest/API/multiobjectdeleteapi.html
-func (g *GoFakeS3) deleteMulti(bucket string, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "delete multi", bucket)
-
- var in DeleteRequest
-
- defer r.Body.Close()
- dc := xml.NewDecoder(r.Body)
- if err := dc.Decode(&in); err != nil {
- return ErrorMessage(ErrMalformedXML, err.Error())
- }
-
- var err error
- var out MultiDeleteResult
- if g.versioned == nil {
- keys := make([]string, len(in.Objects))
- for i, o := range in.Objects {
- keys[i] = o.Key
- }
-
- out, err = g.storage.DeleteMulti(bucket, keys...)
- } else {
- out, err = g.versioned.DeleteMultiVersions(bucket, in.Objects...)
- }
-
- if err != nil {
- return err
- }
-
- if in.Quiet {
- out.Deleted = nil
- }
-
- return g.xmlEncoder(w).Encode(out)
-}
-
-func (g *GoFakeS3) initiateMultipartUpload(bucket, object string, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "initiate multipart upload", bucket, object)
-
- meta, err := metadataHeaders(r.Header, g.timeSource.Now(), g.metadataSizeLimit)
- if err != nil {
- return err
- }
- if err := g.ensureBucketExists(bucket); err != nil {
- return err
- }
-
- upload := g.uploader.Begin(bucket, object, meta, g.timeSource.Now())
- out := InitiateMultipartUpload{
- UploadID: upload.ID,
- Bucket: bucket,
- Key: object,
- }
- return g.xmlEncoder(w).Encode(out)
-}
-
-// From the docs:
-//
-// A part number uniquely identifies a part and also defines its position
-// within the object being created. If you upload a new part using the same
-// part number that was used with a previous part, the previously uploaded part
-// is overwritten. Each part must be at least 5 MB in size, except the last
-// part. There is no size limit on the last part of your multipart upload.
-func (g *GoFakeS3) putMultipartUploadPart(bucket, object string, uploadID UploadID, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "put multipart upload", bucket, object, uploadID)
-
- partNumber, err := strconv.ParseInt(r.URL.Query().Get("partNumber"), 10, 0)
- if err != nil || partNumber <= 0 || partNumber > MaxUploadPartNumber {
- return ErrInvalidPart
- }
-
- size, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
- if err != nil || size <= 0 {
- return ErrMissingContentLength
- }
-
- upload, err := g.uploader.Get(bucket, object, uploadID)
- if err != nil {
- // FIXME: What happens with S3 when you abort a multipart upload while
- // part uploads are still in progress? In this case, we will retain the
- // reference to the part even though another request goroutine may
- // delete it; it will be available for GC when this function finishes.
- return err
- }
-
- defer r.Body.Close()
- var rdr io.Reader = r.Body
-
- if g.integrityCheck {
- md5Base64 := r.Header.Get("Content-MD5")
- if _, ok := r.Header[textproto.CanonicalMIMEHeaderKey("Content-MD5")]; ok && md5Base64 == "" {
- return ErrInvalidDigest // Satisfies s3tests
- }
-
- if md5Base64 != "" {
- var err error
- rdr, err = newHashingReader(rdr, md5Base64)
- if err != nil {
- return err
- }
- }
- }
-
- body, err := ReadAll(rdr, size)
- if err != nil {
- return err
- }
-
- if int64(len(body)) != r.ContentLength {
- return ErrIncompleteBody
- }
-
- etag, err := upload.AddPart(int(partNumber), g.timeSource.Now(), body)
- if err != nil {
- return err
- }
-
- w.Header().Add("ETag", etag)
- return nil
-}
-
-func (g *GoFakeS3) abortMultipartUpload(bucket, object string, uploadID UploadID, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "abort multipart upload", bucket, object, uploadID)
- if _, err := g.uploader.Complete(bucket, object, uploadID); err != nil {
- return err
- }
- w.WriteHeader(http.StatusNoContent)
- return nil
-}
-
-func (g *GoFakeS3) completeMultipartUpload(bucket, object string, uploadID UploadID, w http.ResponseWriter, r *http.Request) error {
- g.log.Print(LogInfo, "complete multipart upload", bucket, object, uploadID)
-
- var in CompleteMultipartUploadRequest
- if err := g.xmlDecodeBody(r.Body, &in); err != nil {
- return err
- }
-
- upload, err := g.uploader.Complete(bucket, object, uploadID)
- if err != nil {
- return err
- }
-
- fileBody, etag, err := upload.Reassemble(&in)
- if err != nil {
- return err
- }
-
- result, err := g.storage.PutObject(bucket, object, upload.Meta, bytes.NewReader(fileBody), int64(len(fileBody)), StorageClass(r.Header.Get("x-amz-storage-class")))
- if err != nil {
- return err
- }
- if result.VersionID != "" {
- w.Header().Set("x-amz-version-id", string(result.VersionID))
- }
-
- return g.xmlEncoder(w).Encode(&CompleteMultipartUploadResult{
- ETag: etag,
- Bucket: bucket,
- Key: object,
- })
-}
-
-func (g *GoFakeS3) listMultipartUploads(bucket string, w http.ResponseWriter, r *http.Request) error {
- query := r.URL.Query()
- prefix := prefixFromQuery(query)
- marker := uploadListMarkerFromQuery(query)
-
- maxUploads, err := parseClampedInt(query.Get("max-uploads"), DefaultMaxUploads, 0, MaxUploadsLimit)
- if err != nil {
- return ErrInvalidURI
- }
- if maxUploads == 0 {
- maxUploads = DefaultMaxUploads
- }
-
- out, err := g.uploader.List(bucket, marker, prefix, maxUploads)
- if err != nil {
- return err
- }
-
- return g.xmlEncoder(w).Encode(out)
-}
-
-func (g *GoFakeS3) listMultipartUploadParts(bucket, object string, uploadID UploadID, w http.ResponseWriter, r *http.Request) error {
- query := r.URL.Query()
-
- marker, err := parseClampedInt(query.Get("part-number-marker"), 0, 0, math.MaxInt64)
- if err != nil {
- return ErrInvalidURI
- }
-
- maxParts, err := parseClampedInt(query.Get("max-parts"), DefaultMaxUploadParts, 0, MaxUploadPartsLimit)
- if err != nil {
- return ErrInvalidURI
- }
-
- out, err := g.uploader.ListParts(bucket, object, uploadID, int(marker), maxParts)
- if err != nil {
- return err
- }
-
- return g.xmlEncoder(w).Encode(out)
-}
-
-func (g *GoFakeS3) getBucketVersioning(bucket string, w http.ResponseWriter, r *http.Request) error {
- var config VersioningConfiguration
-
- if g.versioned != nil {
- var err error
- config, err = g.versioned.VersioningConfiguration(bucket)
- if err != nil {
- return err
- }
- }
-
- return g.xmlEncoder(w).Encode(config)
-}
-
-func (g *GoFakeS3) putBucketVersioning(bucket string, w http.ResponseWriter, r *http.Request) error {
- var in VersioningConfiguration
- if err := g.xmlDecodeBody(r.Body, &in); err != nil {
- return err
- }
-
- if g.versioned == nil {
- if in.MFADelete == MFADeleteEnabled || in.Status == VersioningEnabled {
- // We only need to respond that this is not implemented if there's an
- // attempt to enable it. If we receive a request to disable it, or an
- // empty request, that matches the current state and has no effect so
- // we can accept it.
- return ErrNotImplemented
- } else {
- return nil
- }
- }
-
- g.log.Print(LogInfo, "PUT VERSIONING:", in.Status)
- return g.versioned.SetVersioningConfiguration(bucket, in)
-}
-
-func (g *GoFakeS3) ensureBucketExists(bucket string) error {
- exists, err := g.storage.BucketExists(bucket)
- if err != nil {
- return err
- }
- if !exists {
- return ResourceError(ErrNoSuchBucket, bucket)
- }
- return nil
-}
-
-func (g *GoFakeS3) xmlEncoder(w http.ResponseWriter) *xml.Encoder {
- w.Write([]byte(xml.Header))
- w.Header().Set("Content-Type", "application/xml")
-
- xe := xml.NewEncoder(w)
- xe.Indent("", " ")
- return xe
-}
-
-func (g *GoFakeS3) xmlDecodeBody(rdr io.ReadCloser, into interface{}) error {
- body, err := ioutil.ReadAll(rdr)
- defer rdr.Close()
- if err != nil {
- return err
- }
-
- if err := xml.Unmarshal(body, into); err != nil {
- return ErrorMessage(ErrMalformedXML, err.Error())
- }
-
- return nil
-}
-
-func formatHeaderTime(t time.Time) string {
- // https://github.com/aws/aws-sdk-go/issues/1937 - FIXED
- // https://github.com/aws/aws-sdk-go-v2/issues/178 - Still open
- // .Format("Mon, 2 Jan 2006 15:04:05 MST")
-
- tc := t.In(time.UTC)
- return tc.Format("Mon, 02 Jan 2006 15:04:05") + " GMT"
-}
-
-func metadataSize(meta map[string]string) int {
- total := 0
- for k, v := range meta {
- total += len(k) + len(v)
- }
- return total
-}
-
-func metadataHeaders(headers map[string][]string, at time.Time, sizeLimit int) (map[string]string, error) {
- meta := make(map[string]string)
-
- for hk, hv := range headers {
- if strings.HasPrefix(hk, "X-Amz-") ||
- hk == "Content-Type" ||
- hk == "Content-Disposition" ||
- hk == "Content-Encoding" ||
- hk == "Expires" ||
- hk == "Cache-Control" {
- meta[hk] = hv[0]
- }
- }
-
- meta["Last-Modified"] = formatHeaderTime(at)
-
- if sizeLimit > 0 && metadataSize(meta) > sizeLimit {
- return meta, ErrMetadataTooLarge
- }
-
- return meta, nil
-}
-
-func listBucketPageFromQuery(query url.Values) (page ListBucketPage, rerr error) {
- maxKeys, err := parseClampedInt(query.Get("max-keys"), DefaultMaxBucketKeys, 0, MaxBucketKeys)
- if err != nil {
- return page, err
- }
-
- page.MaxKeys = maxKeys
-
- if _, page.HasMarker = query["marker"]; page.HasMarker {
- // List Objects V1 uses marker only:
- page.Marker = query.Get("marker")
-
- } else if _, page.HasMarker = query["continuation-token"]; page.HasMarker {
- // List Objects V2 uses continuation-token preferentially, or
- // start-after if continuation-token is missing. continuation-token is
- // an opaque value that looks like this: 1ueGcxLPRx1Tr/XYExHnhbYLgveDs2J/wm36Hy4vbOwM=.
- // This just looks like base64 junk so we just cheat and base64 encode
- // the next marker and hide it in a continuation-token.
- tok, err := base64.URLEncoding.DecodeString(query.Get("continuation-token"))
- if err != nil {
- // FIXME: log
- return page, ErrInvalidToken // FIXME: confirm for sure what AWS does here
- }
- page.Marker = string(tok)
-
- } else if _, page.HasMarker = query["start-after"]; page.HasMarker {
- // List Objects V2 uses start-after if continuation-token is missing:
- page.Marker = query.Get("start-after")
- }
-
- return page, nil
-}
-
-func listBucketVersionsPageFromQuery(query url.Values) (page ListBucketVersionsPage, rerr error) {
- maxKeys, err := parseClampedInt(query.Get("max-keys"), DefaultMaxBucketVersionKeys, 0, MaxBucketVersionKeys)
- if err != nil {
- return page, err
- }
-
- page.MaxKeys = maxKeys
- page.KeyMarker = query.Get("key-marker")
- page.VersionIDMarker = VersionID(query.Get("version-id-marker"))
- _, page.HasKeyMarker = query["key-marker"]
- _, page.HasVersionIDMarker = query["version-id-marker"]
-
- return page, nil
-}
diff --git a/vendor/github.com/igungor/gofakes3/hash.go b/vendor/github.com/igungor/gofakes3/hash.go
deleted file mode 100644
index e0425ae1f..000000000
--- a/vendor/github.com/igungor/gofakes3/hash.go
+++ /dev/null
@@ -1,78 +0,0 @@
-package gofakes3
-
-import (
- "bytes"
- "crypto/md5"
- "encoding/base64"
- "fmt"
- "hash"
- "io"
-)
-
-// hashingReader proxies an existing io.Reader, passing each read block to the
-// given hash.Hash.
-//
-// If the expected hash is not empty, once the underlying reader returns EOF,
-// the hash is checked.
-type hashingReader struct {
- inner io.Reader
- expected []byte
- hash hash.Hash
- sum []byte
-}
-
-func newHashingReader(inner io.Reader, expectedMD5Base64 string) (*hashingReader, error) {
- var md5Bytes []byte
- var err error
-
- if expectedMD5Base64 != "" {
- md5Bytes, err = base64.StdEncoding.DecodeString(expectedMD5Base64)
- if err != nil {
- return nil, ErrInvalidDigest
- }
- if len(md5Bytes) != 16 {
- return nil, ErrInvalidDigest
- }
- }
-
- return &hashingReader{
- inner: inner,
- expected: md5Bytes,
- hash: md5.New(),
- }, nil
-}
-
-// Sum returns the hash of the data read from the inner reader so far.
-// If into is passed, it may be used if the hash needs to be computed.
-func (h *hashingReader) Sum(into []byte) []byte {
- if h.sum != nil {
- return h.sum
- }
- return h.hash.Sum(into)
-}
-
-func (h *hashingReader) Read(p []byte) (n int, err error) {
- n, err = h.inner.Read(p)
-
- if n != 0 {
- wn, _ := h.hash.Write(p[:n]) // Hash.Write never returns an error.
- if wn != n {
- return n, fmt.Errorf("short write to hasher")
- }
- }
-
- if err != nil {
- if err == io.EOF {
- h.sum = h.hash.Sum(nil)
-
- if h.expected != nil && !bytes.Equal(h.sum, h.expected) {
- // FIXME: some more context here would be useful; need to flush out
- // what S3 responds with in this case.
- return n, ErrBadDigest
- }
- }
- return n, err
- }
-
- return n, nil
-}
diff --git a/vendor/github.com/igungor/gofakes3/internal/goskipiter/iter.go b/vendor/github.com/igungor/gofakes3/internal/goskipiter/iter.go
deleted file mode 100644
index 7e56c993b..000000000
--- a/vendor/github.com/igungor/gofakes3/internal/goskipiter/iter.go
+++ /dev/null
@@ -1,66 +0,0 @@
-package goskipiter
-
-import "github.com/ryszard/goskiplist/skiplist"
-
-// Iterator wraps goskiplist's iterator, which is a bit janky; seeking doesn't
-// play nice with the iteration idiom. If you seek, then iterate using the
-// examples provided in the godoc, your iteration will always skip the first
-// result. It would be less error prone and astonishing if Seek meant that the
-// next call to Next() would give you what you expect.
-type Iterator struct {
- inner skiplist.Iterator
- didSeek bool
- seekWasOK bool
-}
-
-func New(inner skiplist.Iterator) *Iterator {
- return &Iterator{inner: inner}
-}
-
-// Next returns true if the iterator contains subsequent elements
-// and advances its state to the next element if that is possible.
-func (iter *Iterator) Next() (ok bool) {
- if iter.didSeek {
- iter.didSeek = false
- return iter.seekWasOK
- } else {
- return iter.inner.Next()
- }
-}
-
-// Previous returns true if the iterator contains previous elements
-// and rewinds its state to the previous element if that is possible.
-func (iter *Iterator) Previous() (ok bool) {
- if iter.didSeek {
- panic("not implemented")
- }
- return iter.inner.Previous()
-}
-
-// Key returns the current key.
-func (iter *Iterator) Key() interface{} {
- return iter.inner.Key()
-}
-
-// Value returns the current value.
-func (iter *Iterator) Value() interface{} {
- return iter.inner.Value()
-}
-
-// Seek reduces iterative seek costs for searching forward into the Skip List
-// by remarking the range of keys over which it has scanned before. If the
-// requested key occurs prior to the point, the Skip List will start searching
-// as a safeguard. It returns true if the key is within the known range of
-// the list.
-func (iter *Iterator) Seek(key interface{}) (ok bool) {
- iter.didSeek = true
- ok = iter.inner.Seek(key)
- iter.seekWasOK = ok
- return ok
-}
-
-// Close this iterator to reap resources associated with it. While not
-// strictly required, it will provide extra hints for the garbage collector.
-func (iter *Iterator) Close() {
- iter.inner.Close()
-}
diff --git a/vendor/github.com/igungor/gofakes3/internal/s3io/io.go b/vendor/github.com/igungor/gofakes3/internal/s3io/io.go
deleted file mode 100644
index 9bba9aaf9..000000000
--- a/vendor/github.com/igungor/gofakes3/internal/s3io/io.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package s3io
-
-import "io"
-
-type ReaderWithDummyCloser struct{ io.Reader }
-
-func (d ReaderWithDummyCloser) Close() error { return nil }
-
-type NoOpReadCloser struct{}
-
-func (d NoOpReadCloser) Read(b []byte) (n int, err error) { return 0, io.EOF }
-
-func (d NoOpReadCloser) Close() error { return nil }
diff --git a/vendor/github.com/igungor/gofakes3/log.go b/vendor/github.com/igungor/gofakes3/log.go
deleted file mode 100644
index 178726f87..000000000
--- a/vendor/github.com/igungor/gofakes3/log.go
+++ /dev/null
@@ -1,111 +0,0 @@
-package gofakes3
-
-import "log"
-
-type LogLevel string
-
-const (
- LogErr LogLevel = "ERR"
- LogWarn LogLevel = "WARN"
- LogInfo LogLevel = "INFO"
-)
-
-// Logger provides a very minimal target for logging implementations to hit to
-// allow arbitrary logging dependencies to be used with GoFakeS3.
-//
-// Only an interface to the standard library's log package is provided with
-// GoFakeS3, other libraries will require an adapter. Adapters are trivial to
-// write.
-//
-// For zap:
-//
-// type LogrusLog struct {
-// log *zap.Logger
-// }
-//
-// func (l LogrusLog) Print(level LogLevel, v ...interface{}) {
-// switch level {
-// case gofakes3.LogErr:
-// l.log.Error(fmt.Sprint(v...))
-// case gofakes3.LogWarn:
-// l.log.Warn(fmt.Sprint(v...))
-// case gofakes3.LogInfo:
-// l.log.Info(fmt.Sprint(v...))
-// default:
-// panic("unknown level")
-// }
-// }
-//
-//
-// For logrus:
-//
-// type LogrusLog struct {
-// log *logrus.Logger
-// }
-//
-// func (l LogrusLog) Print(level LogLevel, v ...interface{}) {
-// switch level {
-// case gofakes3.LogErr:
-// l.log.Errorln(v...)
-// case gofakes3.LogWarn:
-// l.log.Warnln(v...)
-// case gofakes3.LogInfo:
-// l.log.Infoln(v...)
-// default:
-// panic("unknown level")
-// }
-// }
-//
-type Logger interface {
- Print(level LogLevel, v ...interface{})
-}
-
-// GlobalLog creates a Logger that uses the global log.Println() function.
-//
-// All levels are reported by default. If you pass levels to this function,
-// it will act as a level whitelist.
-func GlobalLog(levels ...LogLevel) Logger {
- return newStdLog(log.Println, levels...)
-}
-
-// StdLog creates a Logger that uses the stdlib's log.Logger type.
-//
-// All levels are reported by default. If you pass levels to this function,
-// it will act as a level whitelist.
-func StdLog(log *log.Logger, levels ...LogLevel) Logger {
- return newStdLog(log.Println, levels...)
-}
-
-// DiscardLog creates a Logger that discards all messages.
-func DiscardLog() Logger {
- return &discardLog{}
-}
-
-type stdLog struct {
- log func(v ...interface{})
- levels map[LogLevel]bool
-}
-
-func newStdLog(log func(v ...interface{}), levels ...LogLevel) Logger {
- sl := &stdLog{log: log}
- if len(levels) > 0 {
- sl.levels = map[LogLevel]bool{}
- for _, lv := range levels {
- sl.levels[lv] = true
- }
- }
- return sl
-}
-
-func (s *stdLog) Print(level LogLevel, v ...interface{}) {
- if s.levels == nil || s.levels[level] {
- v = append(v, nil)
- copy(v[1:], v)
- v[0] = level
- s.log(v...)
- }
-}
-
-type discardLog struct{}
-
-func (d discardLog) Print(level LogLevel, v ...interface{}) {}
diff --git a/vendor/github.com/igungor/gofakes3/logo.sketch b/vendor/github.com/igungor/gofakes3/logo.sketch
deleted file mode 100644
index 45947fa74..000000000
Binary files a/vendor/github.com/igungor/gofakes3/logo.sketch and /dev/null differ
diff --git a/vendor/github.com/igungor/gofakes3/makefile.go b/vendor/github.com/igungor/gofakes3/makefile.go
deleted file mode 100644
index 9c9a49042..000000000
--- a/vendor/github.com/igungor/gofakes3/makefile.go
+++ /dev/null
@@ -1,202 +0,0 @@
-//+build tools
-
-// Run this script like so:
-//
-// go run makefile.go ...
-//
-
-package main
-
-import (
- "bufio"
- "bytes"
- "fmt"
- "io"
- "io/ioutil"
- "log"
- "os"
- "os/exec"
- "strings"
-
- "github.com/shabbyrobe/gocovmerge"
- "golang.org/x/tools/cover"
-)
-
-func main() {
- if err := run(); err != nil {
- log.Fatal(err)
- }
-}
-
-func run() error {
- var commandNames = []string{
- "cover",
- }
- if len(os.Args) < 2 {
- return fmt.Errorf("command missing: expected %s", commandNames)
- }
-
- command, args := os.Args[1], os.Args[2:]
- switch command {
- case "cover":
- return runCover(args)
- case "builddocker":
- return runBuildDocker()
- case "buildrelease":
- return runBuildRelease()
- case "release":
- return runRelease(args)
- default:
- return fmt.Errorf("unknown command %v: expected %s", command, commandNames)
- }
-
- return nil
-}
-
-func runBuildDocker() error {
- cmd := command(
- "go", "build", "-a",
- "-installsuffix", "cgo",
- "-o", "./build/main",
- "./cmd/gofakes3",
- )
- cmd.Env = append(cmd.Env, "GO111MODULE=on", "CGO_ENABLED=0", "GOOS=linux")
- if err := cmd.Run(); err != nil {
- return err
- }
-
- cmd = command("docker", "build", "-t", "igungor/gofakes3", ".")
- if err := cmd.Run(); err != nil {
- return err
- }
-
- return nil
-}
-
-func runRelease(args []string) error {
- if len(args) != 1 {
- return fmt.Errorf("missing argument")
- }
-
- version := args[0]
- fmt.Printf("[+] releasing %s\n", version)
- fmt.Println("[+] re-generating")
-
- fmt.Println("[+] building")
- if err := runBuildRelease(); err != nil {
- return err
- }
-
- fmt.Println("[+] comitting")
- if err := command("git", "tag", version).Run(); err != nil {
- return err
- }
-
- fmt.Println("[+] complete")
- return nil
-}
-
-func runBuildRelease() error {
- var builds = map[string][]string{
- "linux_amd64": {"GOOS=linux", "GOARCH=amd64"},
- "linux_arm7": {"GOOS=linux", "GOARCH=arm", "GOARM=7"},
- "darwin_amd64": {"GOOS=darwin", "GOARCH=amd64"},
- "windows_amd64.exe": {"GOOS=windows", "GOARCH=amd64"},
- }
-
- for suffix, build := range builds {
- cmd := command(
- "go", "build",
- "-o", fmt.Sprintf("./build/gofakes3_%s", suffix),
- "./cmd/gofakes3",
- )
- cmd.Env = append(cmd.Env, "GO111MODULE=on")
- cmd.Env = append(cmd.Env, build...)
- if err := cmd.Run(); err != nil {
- return err
- }
- }
-
- return nil
-}
-
-// runCover collects true code coverage for all packages in gofakes3.
-// It does so by running 'go test' for each child package (enumerated by
-// 'go list ./...') with the '-coverpkg' flag, populated with the same
-// 'go list'.
-func runCover(args []string) error {
- pkgs := goList()
-
- var files []string
-
- for _, pkg := range pkgs {
- covFile, err := ioutil.TempFile("", "")
- if err != nil {
- return err
- }
- covFile.Close()
- defer os.Remove(covFile.Name())
-
- files = append(files, covFile.Name())
- cmd := exec.Command("go", "test",
- "-covermode=atomic",
- fmt.Sprintf("-coverprofile=%s", covFile.Name()),
- fmt.Sprintf("-coverpkg=%s", strings.Join(pkgs, ",")),
- pkg,
- )
- if err := cmd.Run(); err != nil {
- return err
- }
- }
-
- var merged []*cover.Profile
- for _, file := range files {
- profiles, err := cover.ParseProfiles(file)
- if err != nil {
- return fmt.Errorf("failed to parse profiles: %v", err)
- }
- for _, p := range profiles {
- merged = gocovmerge.AddProfile(merged, p)
- }
- }
-
- var out io.WriteCloser = os.Stdout
- if len(args) > 0 {
- var err error
- out, err = os.Create(args[0])
- if err != nil {
- return err
- }
- }
- defer out.Close()
-
- return gocovmerge.DumpProfiles(merged, out)
-}
-
-func command(name string, args ...string) *exec.Cmd {
- cmd := exec.Command(name, args...)
- cmd.Stdout = os.Stdout
- cmd.Stderr = os.Stderr
- cmd.Env = append([]string{}, os.Environ()...)
- return cmd
-}
-
-func goList() (pkgs []string) {
- cmd := exec.Command("go", "list", "./...")
-
- var stdout bytes.Buffer
- cmd.Stdout = &stdout
- if err := cmd.Run(); err != nil {
- panic(err)
- }
-
- scanner := bufio.NewScanner(&stdout)
- for scanner.Scan() {
- line := strings.TrimSpace(scanner.Text())
- if len(line) == 0 {
- continue
- }
- pkgs = append(pkgs, line)
- }
- return pkgs
-}
diff --git a/vendor/github.com/igungor/gofakes3/messages.go b/vendor/github.com/igungor/gofakes3/messages.go
deleted file mode 100644
index 258fed4b3..000000000
--- a/vendor/github.com/igungor/gofakes3/messages.go
+++ /dev/null
@@ -1,542 +0,0 @@
-package gofakes3
-
-import (
- "encoding/xml"
- "fmt"
- "sort"
- "strings"
- "time"
-)
-
-type Storage struct {
- XMLName xml.Name `xml:"ListAllMyBucketsResult"`
- Xmlns string `xml:"xmlns,attr"`
- Owner *UserInfo `xml:"Owner,omitempty"`
- Buckets Buckets `xml:"Buckets>Bucket"`
-}
-
-type UserInfo struct {
- ID string `xml:"ID"`
- DisplayName string `xml:"DisplayName"`
-}
-
-type Buckets []BucketInfo
-
-// Names is a deterministic convenience function returning a sorted list of bucket names.
-func (b Buckets) Names() []string {
- out := make([]string, len(b))
- for i, v := range b {
- out[i] = v.Name
- }
- sort.Strings(out)
- return out
-}
-
-// BucketInfo represents a single bucket returned by the ListBuckets response.
-type BucketInfo struct {
- Name string `xml:"Name"`
-
- // CreationDate is required; without it, boto returns the error "('String
- // does not contain a date:', '')"
- CreationDate ContentTime `xml:"CreationDate"`
-}
-
-// CommonPrefix is used in Bucket.CommonPrefixes to list partial delimited keys
-// that represent pseudo-directories.
-type CommonPrefix struct {
- Prefix string `xml:"Prefix"`
-}
-
-type CompletedPart struct {
- PartNumber int `xml:"PartNumber"`
- ETag string `xml:"ETag"`
-}
-
-type CompleteMultipartUploadRequest struct {
- Parts []CompletedPart `xml:"Part"`
-}
-
-func (c CompleteMultipartUploadRequest) partsAreSorted() bool {
- return sort.IntsAreSorted(c.partIDs())
-}
-
-func (c CompleteMultipartUploadRequest) partIDs() []int {
- inParts := make([]int, 0, len(c.Parts))
- for _, inputPart := range c.Parts {
- inParts = append(inParts, inputPart.PartNumber)
- }
- sort.Ints(inParts)
- return inParts
-}
-
-type CompleteMultipartUploadResult struct {
- Location string `xml:"Location"`
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- ETag string `xml:"ETag"`
-}
-
-type Content struct {
- Key string `xml:"Key"`
- LastModified ContentTime `xml:"LastModified"`
- ETag string `xml:"ETag"`
- Size int64 `xml:"Size"`
- StorageClass StorageClass `xml:"StorageClass,omitempty"`
- Owner *UserInfo `xml:"Owner,omitempty"`
-}
-
-type ContentTime struct {
- time.Time
-}
-
-func NewContentTime(t time.Time) ContentTime {
- return ContentTime{t}
-}
-
-func (c ContentTime) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- // This is the format expected by the aws xml code, not the default.
- if !c.IsZero() {
- s := c.Format("2006-01-02T15:04:05.999Z")
- return e.EncodeElement(s, start)
- }
- return nil
-}
-
-type DeleteRequest struct {
- Objects []ObjectID `xml:"Object"`
-
- // Element to enable quiet mode for the request. When you add this element,
- // you must set its value to true.
- //
- // By default, the operation uses verbose mode in which the response
- // includes the result of deletion of each key in your request. In quiet
- // mode the response includes only keys where the delete operation
- // encountered an error. For a successful deletion, the operation does not
- // return any information about the delete in the response body.
- Quiet bool `xml:"Quiet"`
-}
-
-// MultiDeleteResult contains the response from a multi delete operation.
-type MultiDeleteResult struct {
- XMLName xml.Name `xml:"DeleteResult"`
- Deleted []ObjectID `xml:"Deleted"`
- Error []ErrorResult `xml:",omitempty"`
-}
-
-func (d MultiDeleteResult) AsError() error {
- if len(d.Error) == 0 {
- return nil
- }
- strs := make([]string, 0, len(d.Error))
- for _, er := range d.Error {
- strs = append(strs, er.String())
- }
- return fmt.Errorf("gofakes3: multi delete failed:\n%s", strings.Join(strs, "\n"))
-}
-
-type ErrorResult struct {
- XMLName xml.Name `xml:"Error"`
- Key string `xml:"Key,omitempty"`
- Code ErrorCode `xml:"Code,omitempty"`
- Message string `xml:"Message,omitempty"`
- Resource string `xml:"Resource,omitempty"`
- RequestID string `xml:"RequestId,omitempty"`
-}
-
-func ErrorResultFromError(err error) ErrorResult {
- switch err := err.(type) {
- case *resourceErrorResponse:
- return ErrorResult{
- Resource: err.Resource,
- RequestID: err.RequestID,
- Message: err.Message,
- Code: err.Code,
- }
- case *ErrorResponse:
- return ErrorResult{
- RequestID: err.RequestID,
- Message: err.Message,
- Code: err.Code,
- }
- case Error:
- return ErrorResult{Code: err.ErrorCode()}
- default:
- return ErrorResult{Code: ErrInternal}
- }
-}
-
-func (er ErrorResult) String() string {
- return fmt.Sprintf("%s: [%s] %s", er.Key, er.Code, er.Message)
-}
-
-type InitiateMultipartUpload struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- UploadID UploadID `xml:"UploadId"`
-}
-
-type ListBucketResultBase struct {
- XMLName xml.Name `xml:"ListBucketResult"`
- Xmlns string `xml:"xmlns,attr"`
-
- // Name of the bucket.
- Name string `xml:"Name"`
-
- // Specifies whether (true) or not (false) all of the results were
- // returned. If the number of results exceeds that specified by MaxKeys,
- // all of the results might not be returned.
- IsTruncated bool `xml:"IsTruncated"`
-
- // Causes keys that contain the same string between the prefix and the
- // first occurrence of the delimiter to be rolled up into a single result
- // element in the CommonPrefixes collection. These rolled-up keys are not
- // returned elsewhere in the response.
- //
- // NOTE: Each rolled-up result in CommonPrefixes counts as only one return
- // against the MaxKeys value. (BW: been waiting to find some confirmation of
- // that for a while!)
- Delimiter string `xml:"Delimiter,omitempty"`
-
- Prefix string `xml:"Prefix"`
-
- MaxKeys int64 `xml:"MaxKeys,omitempty"`
-
- CommonPrefixes []CommonPrefix `xml:"CommonPrefixes,omitempty"`
- Contents []*Content `xml:"Contents"`
-}
-
-type GetBucketLocation struct {
- XMLName xml.Name `xml:"LocationConstraint"`
- Xmlns string `xml:"xmlns,attr"`
- LocationConstraint string `xml:",chardata"`
-}
-
-type ListBucketResult struct {
- ListBucketResultBase
-
- // Indicates where in the bucket listing begins. Marker is included in the
- // response if it was sent with the request.
- Marker string `xml:"Marker"`
-
- // When the response is truncated (that is, the IsTruncated element value
- // in the response is true), you can use the key name in this field as a
- // marker in the subsequent request to get next set of objects. Amazon S3
- // lists objects in UTF-8 character encoding in lexicographical order.
- //
- // NOTE: This element is returned only if you specify a delimiter request
- // parameter. If the response does not include the NextMarker and it is
- // truncated, you can use the value of the last Key in the response as the
- // marker in the subsequent request to get the next set of object keys.
- NextMarker string `xml:"NextMarker,omitempty"`
-}
-
-type ListBucketResultV2 struct {
- ListBucketResultBase
-
- // If ContinuationToken was sent with the request, it is included in the
- // response.
- ContinuationToken string `xml:"ContinuationToken,omitempty"`
-
- // Returns the number of keys included in the response. The value is always
- // less than or equal to the MaxKeys value.
- KeyCount int64 `xml:"KeyCount,omitempty"`
-
- // If the response is truncated, Amazon S3 returns this parameter with a
- // continuation token. You can specify the token as the continuation-token
- // in your next request to retrieve the next set of keys.
- NextContinuationToken string `xml:"NextContinuationToken,omitempty"`
-
- // If StartAfter was sent with the request, it is included in the response.
- StartAfter string `xml:"StartAfter,omitempty"`
-}
-
-type DeleteMarker struct {
- XMLName xml.Name `xml:"DeleteMarker"`
- Key string `xml:"Key"`
- VersionID VersionID `xml:"VersionId"`
- IsLatest bool `xml:"IsLatest"`
- LastModified ContentTime `xml:"LastModified,omitempty"`
- StorageClass string `xml:"StorageClass"`
- Owner *UserInfo `xml:"Owner,omitempty"`
-}
-
-var _ VersionItem = &DeleteMarker{}
-
-func (d DeleteMarker) GetVersionID() VersionID { return d.VersionID }
-func (d *DeleteMarker) setVersionID(i VersionID) { d.VersionID = i }
-
-type Version struct {
- XMLName xml.Name `xml:"Version"`
- Key string `xml:"Key"`
- VersionID VersionID `xml:"VersionId"`
- IsLatest bool `xml:"IsLatest"`
- LastModified ContentTime `xml:"LastModified,omitempty"`
- Size int64 `xml:"Size"`
-
- // According to the S3 docs, this is always STANDARD for a Version:
- StorageClass StorageClass `xml:"StorageClass"`
-
- ETag string `xml:"ETag"`
- Owner *UserInfo `xml:"Owner,omitempty"`
-}
-
-var _ VersionItem = &Version{}
-
-func (v Version) GetVersionID() VersionID { return v.VersionID }
-func (v *Version) setVersionID(i VersionID) { v.VersionID = i }
-
-type VersionItem interface {
- GetVersionID() VersionID
- setVersionID(v VersionID)
-}
-
-type ListBucketVersionsResult struct {
- XMLName xml.Name `xml:"ListBucketVersionsResult"`
- Xmlns string `xml:"xmlns,attr"`
- Name string `xml:"Name"`
- Delimiter string `xml:"Delimiter,omitempty"`
- Prefix string `xml:"Prefix,omitempty"`
- CommonPrefixes []CommonPrefix `xml:"CommonPrefixes,omitempty"`
- IsTruncated bool `xml:"IsTruncated"`
- MaxKeys int64 `xml:"MaxKeys"`
-
- // Marks the last Key returned in a truncated response.
- KeyMarker string `xml:"KeyMarker,omitempty"`
-
- // When the number of responses exceeds the value of MaxKeys, NextKeyMarker
- // specifies the first key not returned that satisfies the search criteria.
- // Use this value for the key-marker request parameter in a subsequent
- // request.
- NextKeyMarker string `xml:"NextKeyMarker,omitempty"`
-
- // Marks the last version of the Key returned in a truncated response.
- VersionIDMarker VersionID `xml:"VersionIdMarker,omitempty"`
-
- // When the number of responses exceeds the value of MaxKeys,
- // NextVersionIdMarker specifies the first object version not returned that
- // satisfies the search criteria. Use this value for the version-id-marker
- // request parameter in a subsequent request.
- NextVersionIDMarker VersionID `xml:"NextVersionIdMarker,omitempty"`
-
- // AWS responds with a list of either or objects. The order
- // needs to be preserved and they need to be direct of ListBucketVersionsResult:
- //
- //
- //
- //
- //
- //
- Versions []VersionItem
-
- // prefixes maintains an index of prefixes that have already been seen.
- // This is a convenience for backend implementers like s3bolt and s3mem,
- // which operate on a full, flat list of keys.
- prefixes map[string]bool
-}
-
-func NewListBucketVersionsResult(
- bucketName string,
- prefix *Prefix,
- page *ListBucketVersionsPage,
-) *ListBucketVersionsResult {
- result := &ListBucketVersionsResult{
- Xmlns: "http://s3.amazonaws.com/doc/2006-03-01/",
- Name: bucketName,
- }
- if prefix != nil {
- result.Prefix = prefix.Prefix
- result.Delimiter = prefix.Delimiter
- }
- if page != nil {
- result.MaxKeys = page.MaxKeys
- result.KeyMarker = page.KeyMarker
- result.VersionIDMarker = page.VersionIDMarker
- }
- return result
-}
-
-func (b *ListBucketVersionsResult) AddPrefix(prefix string) {
- if b.prefixes == nil {
- b.prefixes = map[string]bool{}
- } else if b.prefixes[prefix] {
- return
- }
- b.prefixes[prefix] = true
- b.CommonPrefixes = append(b.CommonPrefixes, CommonPrefix{Prefix: prefix})
-}
-
-type ListMultipartUploadsResult struct {
- Bucket string `xml:"Bucket"`
-
- // Together with upload-id-marker, this parameter specifies the multipart upload
- // after which listing should begin.
- KeyMarker string `xml:"KeyMarker,omitempty"`
-
- // Together with key-marker, specifies the multipart upload after which listing
- // should begin. If key-marker is not specified, the upload-id-marker parameter
- // is ignored.
- UploadIDMarker UploadID `xml:"UploadIdMarker,omitempty"`
-
- NextKeyMarker string `xml:"NextKeyMarker,omitempty"`
- NextUploadIDMarker UploadID `xml:"NextUploadIdMarker,omitempty"`
-
- // Sets the maximum number of multipart uploads, from 1 to 1,000, to return
- // in the response body. 1,000 is the maximum number of uploads that can be
- // returned in a response.
- MaxUploads int64 `xml:"MaxUploads,omitempty"`
-
- Delimiter string `xml:"Delimiter,omitempty"`
-
- // Lists in-progress uploads only for those keys that begin with the specified
- // prefix.
- Prefix string `xml:"Prefix,omitempty"`
-
- CommonPrefixes []CommonPrefix `xml:"CommonPrefixes,omitempty"`
- IsTruncated bool `xml:"IsTruncated,omitempty"`
-
- Uploads []ListMultipartUploadItem `xml:"Upload"`
-}
-
-type ListMultipartUploadItem struct {
- Key string `xml:"Key"`
- UploadID UploadID `xml:"UploadId"`
- Initiator *UserInfo `xml:"Initiator,omitempty"`
- Owner *UserInfo `xml:"Owner,omitempty"`
- StorageClass StorageClass `xml:"StorageClass,omitempty"`
- Initiated ContentTime `xml:"Initiated,omitempty"`
-}
-
-type ListMultipartUploadPartsResult struct {
- XMLName xml.Name `xml:"ListPartsResult"`
-
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- UploadID UploadID `xml:"UploadId"`
- StorageClass StorageClass `xml:"StorageClass,omitempty"`
- Initiator *UserInfo `xml:"Initiator,omitempty"`
- Owner *UserInfo `xml:"Owner,omitempty"`
- PartNumberMarker int `xml:"PartNumberMarker"`
- NextPartNumberMarker int `xml:"NextPartNumberMarker"`
- MaxParts int64 `xml:"MaxParts"`
- IsTruncated bool `xml:"IsTruncated,omitempty"`
-
- Parts []ListMultipartUploadPartItem `xml:"Part"`
-}
-
-type ListMultipartUploadPartItem struct {
- PartNumber int `xml:"PartNumber"`
- LastModified ContentTime `xml:"LastModified,omitempty"`
- ETag string `xml:"ETag,omitempty"`
- Size int64 `xml:"Size"`
- StorageClass string `xml:"StorageClass,omitempty"`
-}
-
-// CopyObjectResult contains the response from a CopyObject operation.
-type CopyObjectResult struct {
- XMLName xml.Name `xml:"CopyObjectResult"`
- ETag string `xml:"ETag,omitempty"`
- LastModified ContentTime `xml:"LastModified,omitempty"`
- StorageClass string `xml:"StorageClass,omitempty"`
-}
-
-// MFADeleteStatus is used by VersioningConfiguration.
-type MFADeleteStatus string
-
-func (v MFADeleteStatus) Enabled() bool { return v == MFADeleteEnabled }
-
-func (v *MFADeleteStatus) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- var s string
- if err := d.DecodeElement(&s, &start); err != nil {
- // FIXME: this doesn't seem to detect or report errors if the element is the wrong type.
- return err
- }
- s = strings.ToLower(strings.TrimSpace(s))
- if s == "enabled" {
- *v = MFADeleteEnabled
- } else if s == "disabled" {
- *v = MFADeleteDisabled
- } else {
- return ErrorMessagef(ErrIllegalVersioningConfiguration, "unexpected value %q for MFADeleteStatus, expected 'Enabled' or 'Disabled'", s)
- }
- return nil
-}
-
-const (
- MFADeleteNone MFADeleteStatus = ""
- MFADeleteEnabled MFADeleteStatus = "Enabled"
- MFADeleteDisabled MFADeleteStatus = "Disabled"
-)
-
-type ObjectID struct {
- Key string `xml:"Key"`
-
- // Versions not supported in GoFakeS3 yet.
- VersionID string `xml:"VersionId,omitempty" json:"VersionId,omitempty"`
-}
-
-type StorageClass string
-
-func (s StorageClass) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- if s == "" {
- s = StorageStandard
- }
- return e.EncodeElement(string(s), start)
-}
-
-const (
- StorageStandard StorageClass = "STANDARD"
-)
-
-// UploadID uses a string as the underlying type, but the string should only
-// represent a decimal integer. See uploader.uploadID for details.
-type UploadID string
-
-type VersionID string
-
-type VersioningConfiguration struct {
- XMLName xml.Name `xml:"VersioningConfiguration"`
-
- Status VersioningStatus `xml:"Status"`
-
- // When enabled, the bucket owner must include the x-amz-mfa request header
- // in requests to change the versioning state of a bucket and to
- // permanently delete a versioned object.
- MFADelete MFADeleteStatus `xml:"MfaDelete"`
-}
-
-func (v *VersioningConfiguration) Enabled() bool {
- return v.Status == VersioningEnabled
-}
-
-func (v *VersioningConfiguration) SetEnabled(enabled bool) {
- if enabled {
- v.Status = VersioningEnabled
- } else {
- v.Status = VersioningSuspended
- }
-}
-
-type VersioningStatus string
-
-func (v *VersioningStatus) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- var s string
- if err := d.DecodeElement(&s, &start); err != nil {
- // FIXME: this doesn't seem to detect or report errors if the element is the wrong type.
- return err
- }
- s = strings.ToLower(strings.TrimSpace(s))
- if s == "enabled" {
- *v = VersioningEnabled
- } else if s == "suspended" {
- *v = VersioningSuspended
- } else {
- return ErrorMessagef(ErrIllegalVersioningConfiguration, "unexpected value %q for Status, expected 'Enabled' or 'Suspended'", s)
- }
- return nil
-}
-
-const (
- VersioningNone VersioningStatus = ""
- VersioningEnabled VersioningStatus = "Enabled"
- VersioningSuspended VersioningStatus = "Suspended"
-)
diff --git a/vendor/github.com/igungor/gofakes3/option.go b/vendor/github.com/igungor/gofakes3/option.go
deleted file mode 100644
index 3056abbdb..000000000
--- a/vendor/github.com/igungor/gofakes3/option.go
+++ /dev/null
@@ -1,82 +0,0 @@
-package gofakes3
-
-import "time"
-
-type Option func(g *GoFakeS3)
-
-// WithTimeSource allows you to substitute the behaviour of time.Now() and
-// time.Since() within GoFakeS3. This can be used to trigger time skew errors,
-// or to ensure the output of the commands is deterministic.
-//
-// See gofakes3.FixedTimeSource(), gofakes3.LocalTimeSource(tz).
-func WithTimeSource(timeSource TimeSource) Option {
- return func(g *GoFakeS3) { g.timeSource = timeSource }
-}
-
-// WithTimeSkewLimit allows you to reconfigure the allowed skew between the
-// client's clock and the server's clock. The AWS client SDKs will send the
-// "x-amz-date" header containing the time at the client, which is used to
-// calculate the skew.
-//
-// See DefaultSkewLimit for the starting value, set to '0' to disable.
-//
-func WithTimeSkewLimit(skew time.Duration) Option {
- return func(g *GoFakeS3) { g.timeSkew = skew }
-}
-
-// WithMetadataSizeLimit allows you to reconfigure the maximum allowed metadata
-// size.
-//
-// See DefaultMetadataSizeLimit for the starting value, set to '0' to disable.
-func WithMetadataSizeLimit(size int) Option {
- return func(g *GoFakeS3) { g.metadataSizeLimit = size }
-}
-
-// WithIntegrityCheck enables or disables Content-MD5 validation when
-// putting an Object.
-func WithIntegrityCheck(check bool) Option {
- return func(g *GoFakeS3) { g.integrityCheck = check }
-}
-
-// WithLogger allows you to supply a logger to GoFakeS3 for debugging/tracing.
-// logger may be nil.
-func WithLogger(logger Logger) Option {
- return func(g *GoFakeS3) { g.log = logger }
-}
-
-// WithGlobalLog configures gofakes3 to use GlobalLog() for logging, which uses
-// the standard library's log.Println() call to log messages.
-func WithGlobalLog() Option {
- return WithLogger(GlobalLog())
-}
-
-// WithRequestID sets the starting ID used to generate the "x-amz-request-id"
-// header.
-func WithRequestID(id uint64) Option {
- return func(g *GoFakeS3) { g.requestID = id }
-}
-
-// WithHostBucket enables or disables bucket rewriting in the router.
-// If active, the URL 'http://mybucket.localhost/object' will be routed
-// as if the URL path was '/mybucket/object'.
-//
-// See https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html
-// for details.
-func WithHostBucket(enabled bool) Option {
- return func(g *GoFakeS3) { g.hostBucket = enabled }
-}
-
-// WithoutVersioning disables versioning on the passed backend, if it supported it.
-func WithoutVersioning() Option {
- return func(g *GoFakeS3) { g.versioned = nil }
-}
-
-// WithUnimplementedPageError allows you to enable or disable the error that occurs
-// if the Backend does not implement paging.
-//
-// By default, GoFakeS3 will simply retry a request for a page of objects
-// without the page if the Backend does not implement pagination. This can
-// be used to enable an error in that condition instead.
-func WithUnimplementedPageError() Option {
- return func(g *GoFakeS3) { g.failOnUnimplementedPage = true }
-}
diff --git a/vendor/github.com/igungor/gofakes3/prefix.go b/vendor/github.com/igungor/gofakes3/prefix.go
deleted file mode 100644
index 33082fde3..000000000
--- a/vendor/github.com/igungor/gofakes3/prefix.go
+++ /dev/null
@@ -1,171 +0,0 @@
-package gofakes3
-
-import (
- "fmt"
- "net/url"
- "strings"
-)
-
-type Prefix struct {
- HasPrefix bool
- Prefix string
-
- HasDelimiter bool
- Delimiter string
-}
-
-func prefixFromQuery(query url.Values) Prefix {
- prefix := Prefix{
- Prefix: query.Get("prefix"),
- Delimiter: query.Get("delimiter"),
- }
- _, prefix.HasPrefix = query["prefix"]
- _, prefix.HasDelimiter = query["delimiter"]
- return prefix
-}
-
-func NewPrefix(prefix, delim *string) (p Prefix) {
- if prefix != nil {
- p.HasPrefix, p.Prefix = true, *prefix
- }
- if delim != nil {
- p.HasDelimiter, p.Delimiter = true, *delim
- }
- return p
-}
-
-func NewFolderPrefix(prefix string) (p Prefix) {
- p.HasPrefix, p.Prefix = true, prefix
- p.HasDelimiter, p.Delimiter = true, "/"
- return p
-}
-
-// FilePrefix returns the path portion, then the remaining portion of the
-// Prefix if the Delimiter is "/". If the Delimiter is not set, or not "/",
-// ok will be false.
-//
-// For example:
-// /foo/bar/ : path: /foo/bar remaining: ""
-// /foo/bar/b : path: /foo/bar remaining: "b"
-// /foo/bar : path: /foo remaining: "bar"
-//
-func (p Prefix) FilePrefix() (path, remaining string, ok bool) {
- if !p.HasPrefix || !p.HasDelimiter || p.Delimiter != "/" {
- return "", "", ok
- }
-
- idx := strings.LastIndexByte(p.Prefix, '/')
- if idx < 0 {
- return "", p.Prefix, true
- } else {
- return p.Prefix[:idx], p.Prefix[idx+1:], true
- }
-}
-
-// PrefixMatch checks whether key starts with prefix. If the prefix does not
-// match, nil is returned.
-//
-// It is a best-effort attempt to implement the prefix/delimiter matching found
-// in S3.
-//
-// To check whether the key belongs in Contents or CommonPrefixes, compare the
-// result to key.
-//
-func (p Prefix) Match(key string, match *PrefixMatch) (ok bool) {
- if !p.HasPrefix && !p.HasDelimiter {
- // If there is no prefix in the search, the match is the prefix:
- if match != nil {
- *match = PrefixMatch{Key: key, MatchedPart: key}
- }
- return true
- }
-
- if !p.HasDelimiter {
- // If the request does not contain a delimiter, prefix matching is a
- // simple string prefix:
- if strings.HasPrefix(key, p.Prefix) {
- if match != nil {
- *match = PrefixMatch{Key: key, MatchedPart: p.Prefix}
- }
- return true
- }
- return false
- }
-
- // Delimited + Prefix matches, for example:
- // $ aws s3 ls s3://my-bucket/
- // PRE AWSLogs/
- // $ aws s3 ls s3://my-bucket/AWSLogs
- // PRE AWSLogs/
- // $ aws s3 ls s3://my-bucket/AWSLogs/
- // PRE 260839334643/
- // $ aws s3 ls s3://my-bucket/AWSLogs/2608
- // PRE 260839334643/
-
- keyParts := strings.Split(strings.TrimLeft(key, p.Delimiter), p.Delimiter)
- preParts := strings.Split(strings.TrimLeft(p.Prefix, p.Delimiter), p.Delimiter)
-
- if len(keyParts) < len(preParts) {
- return false
- }
-
- // If the key exactly matches the prefix, but only up to a delimiter,
- // AWS appends the delimiter to the result:
- // $ aws s3 ls s3://my-bucket/AWSLogs
- // PRE AWSLogs/
- appendDelim := len(keyParts) != len(preParts)
- matched := 0
-
- last := len(preParts) - 1
- for i := 0; i < len(preParts); i++ {
- if i == last {
- if !strings.HasPrefix(keyParts[i], preParts[i]) {
- return false
- }
-
- } else {
- if keyParts[i] != preParts[i] {
- return false
- }
- }
- matched++
- }
-
- if matched == 0 {
- return false
- }
-
- out := strings.Join(keyParts[:matched], p.Delimiter)
- if appendDelim {
- out += p.Delimiter
- }
-
- if match != nil {
- *match = PrefixMatch{Key: key, CommonPrefix: out != key, MatchedPart: out}
- }
- return true
-}
-
-func (p Prefix) String() string {
- if p.HasDelimiter {
- return fmt.Sprintf("prefix:%q, delim:%q", p.Prefix, p.Delimiter)
- } else {
- return fmt.Sprintf("prefix:%q", p.Prefix)
- }
-}
-
-type PrefixMatch struct {
- // Input key passed to PrefixMatch.
- Key string
-
- // CommonPrefix indicates whether this key should be returned in the bucket
- // contents or the common prefixes part of the "list bucket" response.
- CommonPrefix bool
-
- // The longest matched part of the key.
- MatchedPart string
-}
-
-func (match *PrefixMatch) AsCommonPrefix() CommonPrefix {
- return CommonPrefix{Prefix: match.MatchedPart}
-}
diff --git a/vendor/github.com/igungor/gofakes3/range.go b/vendor/github.com/igungor/gofakes3/range.go
deleted file mode 100644
index 370e0e042..000000000
--- a/vendor/github.com/igungor/gofakes3/range.go
+++ /dev/null
@@ -1,126 +0,0 @@
-package gofakes3
-
-import (
- "fmt"
- "net/http"
- "strconv"
- "strings"
-)
-
-type ObjectRange struct {
- Start, Length int64
-}
-
-func (o *ObjectRange) writeHeader(sz int64, w http.ResponseWriter) {
- if o != nil {
- w.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", o.Start, o.Start+o.Length-1, sz))
- w.Header().Set("Content-Length", fmt.Sprintf("%d", o.Length))
- } else {
- w.Header().Set("Content-Length", fmt.Sprintf("%d", sz))
- }
-}
-
-type ObjectRangeRequest struct {
- Start, End int64
- FromEnd bool
-}
-
-const RangeNoEnd = -1
-
-func (o *ObjectRangeRequest) Range(size int64) (*ObjectRange, error) {
- if o == nil {
- return nil, nil
- }
-
- var start, length int64
-
- if !o.FromEnd {
- start = o.Start
- end := o.End
-
- if o.End == RangeNoEnd {
- // If no end is specified, range extends to end of the file.
- length = size - start
- } else {
- length = end - start + 1
- }
-
- } else {
- // If no start is specified, end specifies the range start relative
- // to the end of the file.
- end := o.End
- start = size - end
- length = size - start
- }
-
- if start < 0 || length < 0 || start >= size {
- return nil, ErrInvalidRange
- }
-
- if start+length > size {
- return &ObjectRange{Start: start, Length: size - start}, nil
- }
-
- return &ObjectRange{Start: start, Length: length}, nil
-}
-
-// parseRangeHeader parses a single byte range from the Range header.
-//
-// Amazon S3 doesn't support retrieving multiple ranges of data per GET request:
-// https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html
-func parseRangeHeader(s string) (*ObjectRangeRequest, error) {
- if s == "" {
- return nil, nil
- }
-
- const b = "bytes="
- if !strings.HasPrefix(s, b) {
- return nil, ErrInvalidRange
- }
-
- ranges := strings.Split(s[len(b):], ",")
- if len(ranges) > 1 {
- return nil, ErrorMessage(ErrNotImplemented, "multiple ranges not supported")
- }
-
- rnge := strings.TrimSpace(ranges[0])
- if len(rnge) == 0 {
- return nil, ErrInvalidRange
- }
-
- i := strings.Index(rnge, "-")
- if i < 0 {
- return nil, ErrInvalidRange
- }
-
- var o ObjectRangeRequest
-
- start, end := strings.TrimSpace(rnge[:i]), strings.TrimSpace(rnge[i+1:])
- if start == "" {
- o.FromEnd = true
-
- i, err := strconv.ParseInt(end, 10, 64)
- if err != nil {
- return nil, ErrInvalidRange
- }
- o.End = i
-
- } else {
- i, err := strconv.ParseInt(start, 10, 64)
- if err != nil || i < 0 {
- return nil, ErrInvalidRange
- }
- o.Start = i
- if end != "" {
- i, err := strconv.ParseInt(end, 10, 64)
- if err != nil || o.Start > i {
- return nil, ErrInvalidRange
- }
- o.End = i
- } else {
- o.End = RangeNoEnd
- }
- }
-
- return &o, nil
-}
diff --git a/vendor/github.com/igungor/gofakes3/routing.go b/vendor/github.com/igungor/gofakes3/routing.go
deleted file mode 100644
index e139a15ba..000000000
--- a/vendor/github.com/igungor/gofakes3/routing.go
+++ /dev/null
@@ -1,200 +0,0 @@
-package gofakes3
-
-import (
- "encoding/base64"
- "fmt"
- "net/http"
- "strings"
-)
-
-// routeBase is a http.HandlerFunc that dispatches top level routes for
-// GoFakeS3.
-//
-// URLs are assumed to break down into two common path segments, in the
-// following format:
-// //