mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-08-23 22:26:49 +00:00
🌱 Bump the aws group across 1 directory with 5 updates (#1275)
Bumps the aws group with 4 updates in the / directory: [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/eks](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2). Updates `github.com/aws/aws-sdk-go-v2` from 1.40.0 to 1.40.1 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.40.0...v1.40.1) Updates `github.com/aws/aws-sdk-go-v2/config` from 1.32.2 to 1.32.3 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.32.2...v1.32.3) Updates `github.com/aws/aws-sdk-go-v2/service/eks` from 1.76.0 to 1.76.1 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.76.0...service/s3/v1.76.1) Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.52.2 to 1.52.3 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ssm/v1.52.2...service/ssm/v1.52.3) Updates `github.com/aws/smithy-go` from 1.23.2 to 1.24.0 - [Release notes](https://github.com/aws/smithy-go/releases) - [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/aws/smithy-go/compare/v1.23.2...v1.24.0) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2 dependency-version: 1.40.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws - dependency-name: github.com/aws/aws-sdk-go-v2/config dependency-version: 1.32.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws - dependency-name: github.com/aws/aws-sdk-go-v2/service/eks dependency-version: 1.76.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws - dependency-name: github.com/aws/aws-sdk-go-v2/service/iam dependency-version: 1.52.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws - dependency-name: github.com/aws/smithy-go dependency-version: 1.24.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -3,11 +3,11 @@ module open-cluster-management.io/ocm
|
||||
go 1.24.0
|
||||
|
||||
require (
|
||||
github.com/aws/aws-sdk-go-v2 v1.40.0
|
||||
github.com/aws/aws-sdk-go-v2/config v1.32.2
|
||||
github.com/aws/aws-sdk-go-v2/service/eks v1.76.0
|
||||
github.com/aws/aws-sdk-go-v2/service/iam v1.52.2
|
||||
github.com/aws/smithy-go v1.23.2
|
||||
github.com/aws/aws-sdk-go-v2 v1.40.1
|
||||
github.com/aws/aws-sdk-go-v2/config v1.32.3
|
||||
github.com/aws/aws-sdk-go-v2/service/eks v1.76.1
|
||||
github.com/aws/aws-sdk-go-v2/service/iam v1.52.3
|
||||
github.com/aws/smithy-go v1.24.0
|
||||
github.com/cloudevents/sdk-go/v2 v2.16.2
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
|
||||
github.com/evanphx/json-patch v5.9.11+incompatible
|
||||
@@ -65,17 +65,17 @@ require (
|
||||
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
|
||||
github.com/NYTimes/gziphandler v1.1.1 // indirect
|
||||
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.19.2 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.14 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.14 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.14 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.19.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.15 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.15 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.15 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.14 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.0.2 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.30.5 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.10 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.41.2 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.15 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.0.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.30.6 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.11 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.41.3 // indirect
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/blang/semver/v4 v4.0.0 // indirect
|
||||
github.com/bwmarrin/snowflake v0.3.0 // indirect
|
||||
|
||||
@@ -30,38 +30,38 @@ github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cq
|
||||
github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
|
||||
github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI=
|
||||
github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g=
|
||||
github.com/aws/aws-sdk-go-v2 v1.40.0 h1:/WMUA0kjhZExjOQN2z3oLALDREea1A7TobfuiBrKlwc=
|
||||
github.com/aws/aws-sdk-go-v2 v1.40.0/go.mod h1:c9pm7VwuW0UPxAEYGyTmyurVcNrbF6Rt/wixFqDhcjE=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.32.2 h1:4liUsdEpUUPZs5WVapsJLx5NPmQhQdez7nYFcovrytk=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.32.2/go.mod h1:l0hs06IFz1eCT+jTacU/qZtC33nvcnLADAPL/XyrkZI=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.19.2 h1:qZry8VUyTK4VIo5aEdUcBjPZHL2v4FyQ3QEOaWcFLu4=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.19.2/go.mod h1:YUqm5a1/kBnoK+/NY5WEiMocZihKSo15/tJdmdXnM5g=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.14 h1:WZVR5DbDgxzA0BJeudId89Kmgy6DIU4ORpxwsVHz0qA=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.14/go.mod h1:Dadl9QO0kHgbrH1GRqGiZdYtW5w+IXXaBNCHTIaheM4=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.14 h1:PZHqQACxYb8mYgms4RZbhZG0a7dPW06xOjmaH0EJC/I=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.14/go.mod h1:VymhrMJUWs69D8u0/lZ7jSB6WgaG/NqHi3gX0aYf6U0=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.14 h1:bOS19y6zlJwagBfHxs0ESzr1XCOU2KXJCWcq3E2vfjY=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.14/go.mod h1:1ipeGBMAxZ0xcTm6y6paC2C/J6f6OO7LBODV9afuAyM=
|
||||
github.com/aws/aws-sdk-go-v2 v1.40.1 h1:difXb4maDZkRH0x//Qkwcfpdg1XQVXEAEs2DdXldFFc=
|
||||
github.com/aws/aws-sdk-go-v2 v1.40.1/go.mod h1:MayyLB8y+buD9hZqkCW3kX1AKq07Y5pXxtgB+rRFhz0=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.32.3 h1:cpz7H2uMNTDa0h/5CYL5dLUEzPSLo2g0NkbxTRJtSSU=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.32.3/go.mod h1:srtPKaJJe3McW6T/+GMBZyIPc+SeqJsNPJsd4mOYZ6s=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.19.3 h1:01Ym72hK43hjwDeJUfi1l2oYLXBAOR8gNSZNmXmvuas=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.19.3/go.mod h1:55nWF/Sr9Zvls0bGnWkRxUdhzKqj9uRNlPvgV1vgxKc=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.15 h1:utxLraaifrSBkeyII9mIbVwXXWrZdlPO7FIKmyLCEcY=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.15/go.mod h1:hW6zjYUDQwfz3icf4g2O41PHi77u10oAzJ84iSzR/lo=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.15 h1:Y5YXgygXwDI5P4RkteB5yF7v35neH7LfJKBG+hzIons=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.15/go.mod h1:K+/1EpG42dFSY7CBj+Fruzm8PsCGWTXJ3jdeJ659oGQ=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.15 h1:AvltKnW9ewxX2hFmQS0FyJH93aSvJVUEFvXfU+HWtSE=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.15/go.mod h1:3I4oCdZdmgrREhU74qS1dK9yZ62yumob+58AbFR4cQA=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 h1:WKuaxf++XKWlHWu9ECbMlha8WOEGm0OUEZqm4K/Gcfk=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4/go.mod h1:ZWy7j6v1vWGmPReu0iSGvRiise4YI5SkR3OHKTZ6Wuc=
|
||||
github.com/aws/aws-sdk-go-v2/service/eks v1.76.0 h1:LC40ZNQPC9DVzLHwR/SXa3FqqjgQKZ/9xuxJeGIXnEQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/eks v1.76.0/go.mod h1:lrJRZkSj6nIXH/SN3gbGQp4i4AtNyha0wT7VgYZ3KDw=
|
||||
github.com/aws/aws-sdk-go-v2/service/iam v1.52.2 h1:li0ooCUfHIivHn8nB3LstP6HgdNefwu5gnXE4MLVz/U=
|
||||
github.com/aws/aws-sdk-go-v2/service/iam v1.52.2/go.mod h1:PuHz5kGh1jtsNpjezdYhRp7xgn6DzCNJJfQt7O7U9Aw=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3 h1:x2Ibm/Af8Fi+BH+Hsn9TXGdT+hKbDd5XOTZxTMxDk7o=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3/go.mod h1:IW1jwyrQgMdhisceG8fQLmQIydcT/jWY21rFhzgaKwo=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.14 h1:FIouAnCE46kyYqyhs0XEBDFFSREtdnr8HQuLPQPLCrY=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.14/go.mod h1:UTwDc5COa5+guonQU8qBikJo1ZJ4ln2r1MkF7Dqag1E=
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.0.2 h1:MxMBdKTYBjPQChlJhi4qlEueqB1p1KcbTEa7tD5aqPs=
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.0.2/go.mod h1:iS6EPmNeqCsGo+xQmXv0jIMjyYtQfnwg36zl2FwEouk=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.30.5 h1:ksUT5KtgpZd3SAiFJNJ0AFEJVva3gjBmN7eXUZjzUwQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.30.5/go.mod h1:av+ArJpoYf3pgyrj6tcehSFW+y9/QvAY8kMooR9bZCw=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.10 h1:GtsxyiF3Nd3JahRBJbxLCCdYW9ltGQYrFWg8XdkGDd8=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.10/go.mod h1:/j67Z5XBVDx8nZVp9EuFM9/BS5dvBznbqILGuu73hug=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.41.2 h1:a5UTtD4mHBU3t0o6aHQZFJTNKVfxFWfPX7J0Lr7G+uY=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.41.2/go.mod h1:6TxbXoDSgBQ225Qd8Q+MbxUxUh6TtNKwbRt/EPS9xso=
|
||||
github.com/aws/smithy-go v1.23.2 h1:Crv0eatJUQhaManss33hS5r40CG3ZFH+21XSkqMrIUM=
|
||||
github.com/aws/smithy-go v1.23.2/go.mod h1:LEj2LM3rBRQJxPZTB4KuzZkaZYnZPnvgIhb4pu07mx0=
|
||||
github.com/aws/aws-sdk-go-v2/service/eks v1.76.1 h1:UMBn4P/diOhCX0S8Ctflbr2EeDG4ijn6XWRsMOElGZg=
|
||||
github.com/aws/aws-sdk-go-v2/service/eks v1.76.1/go.mod h1:0OZIY8buOdOjAitSmql1fIRyj8YZdnmAOkBL1+evRI0=
|
||||
github.com/aws/aws-sdk-go-v2/service/iam v1.52.3 h1:fwmGd1qLfbY1GyTT9yrM2p5a4qcUvJfiSynyq0nVBLE=
|
||||
github.com/aws/aws-sdk-go-v2/service/iam v1.52.3/go.mod h1:9BlDzJDOLnYbPlbowGir6MqtQtb4GosbiAikWHqR4A0=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4 h1:0ryTNEdJbzUCEWkVXEXoqlXV72J5keC1GvILMOuD00E=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4/go.mod h1:HQ4qwNZh32C3CBeO6iJLQlgtMzqeG17ziAA/3KDJFow=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.15 h1:3/u/4yZOffg5jdNk1sDpOQ4Y+R6Xbh+GzpDrSZjuy3U=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.15/go.mod h1:4Zkjq0FKjE78NKjabuM4tRXKFzUJWXgP0ItEZK8l7JU=
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.0.3 h1:d/6xOGIllc/XW1lzG9a4AUBMmpLA9PXcQnVPTuHHcik=
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.0.3/go.mod h1:fQ7E7Qj9GiW8y0ClD7cUJk3Bz5Iw8wZkWDHsTe8vDKs=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.30.6 h1:8sTTiw+9yuNXcfWeqKF2x01GqCF49CpP4Z9nKrrk/ts=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.30.6/go.mod h1:8WYg+Y40Sn3X2hioaaWAAIngndR8n1XFdRPPX+7QBaM=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.11 h1:E+KqWoVsSrj1tJ6I/fjDIu5xoS2Zacuu1zT+H7KtiIk=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.11/go.mod h1:qyWHz+4lvkXcr3+PoGlGHEI+3DLLiU6/GdrFfMaAhB0=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.41.3 h1:tzMkjh0yTChUqJDgGkcDdxvZDSrJ/WB6R6ymI5ehqJI=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.41.3/go.mod h1:T270C0R5sZNLbWUe8ueiAF42XSZxxPocTaGSgs5c/60=
|
||||
github.com/aws/smithy-go v1.24.0 h1:LpilSUItNPFr1eY85RYgTIg5eIEPtvFbskaFcmmIUnk=
|
||||
github.com/aws/smithy-go v1.24.0/go.mod h1:LEj2LM3rBRQJxPZTB4KuzZkaZYnZPnvgIhb4pu07mx0=
|
||||
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
|
||||
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
||||
github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package aws
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.40.0"
|
||||
const goModuleVersion = "1.40.1"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.32.3 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.32.2 (2025-11-25)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package config
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.32.2"
|
||||
const goModuleVersion = "1.32.3"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.19.3 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.19.2 (2025-11-25)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package credentials
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.19.2"
|
||||
const goModuleVersion = "1.19.3"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.18.15 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.18.14 (2025-11-19.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package imds
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.18.14"
|
||||
const goModuleVersion = "1.18.15"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.4.15 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.4.14 (2025-11-19.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package configsources
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.4.14"
|
||||
const goModuleVersion = "1.4.15"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v2.7.15 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v2.7.14 (2025-11-19.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package endpoints
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "2.7.14"
|
||||
const goModuleVersion = "2.7.15"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.76.1 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.76.0 (2025-12-01)
|
||||
|
||||
* **Feature**: This release adds support for EKS Capabilities
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package eks
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.76.0"
|
||||
const goModuleVersion = "1.76.1"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.52.3 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.52.2 (2025-11-25)
|
||||
|
||||
* **Bug Fix**: Add error check for endpoint param binding during auth scheme resolution to fix panic reported in #3234
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package iam
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.52.2"
|
||||
const goModuleVersion = "1.52.3"
|
||||
|
||||
Generated
Vendored
+4
@@ -1,3 +1,7 @@
|
||||
# v1.13.4 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.13.3 (2025-11-04)
|
||||
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.23.2 which should convey some passive reduction of overall allocations, especially when not using the metrics system.
|
||||
|
||||
Generated
Vendored
+1
-1
@@ -3,4 +3,4 @@
|
||||
package acceptencoding
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.13.3"
|
||||
const goModuleVersion = "1.13.4"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.13.15 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.13.14 (2025-11-19.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
Generated
Vendored
+1
-1
@@ -3,4 +3,4 @@
|
||||
package presignedurl
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.13.14"
|
||||
const goModuleVersion = "1.13.15"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.0.3 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.0.2 (2025-11-25)
|
||||
|
||||
* **Bug Fix**: Add error check for endpoint param binding during auth scheme resolution to fix panic reported in #3234
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package signin
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.0.2"
|
||||
const goModuleVersion = "1.0.3"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.30.6 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.30.5 (2025-11-25)
|
||||
|
||||
* **Bug Fix**: Add error check for endpoint param binding during auth scheme resolution to fix panic reported in #3234
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package sso
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.30.5"
|
||||
const goModuleVersion = "1.30.6"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.35.11 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.35.10 (2025-11-25)
|
||||
|
||||
* **Bug Fix**: Add error check for endpoint param binding during auth scheme resolution to fix panic reported in #3234
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package ssooidc
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.35.10"
|
||||
const goModuleVersion = "1.35.11"
|
||||
|
||||
+5
@@ -1,3 +1,8 @@
|
||||
# v1.41.3 (2025-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.24.0. Notably this version of the library reduces the allocation footprint of the middleware system. We observe a ~10% reduction in allocations per SDK call with this change.
|
||||
|
||||
# v1.41.2 (2025-11-25)
|
||||
|
||||
* **Bug Fix**: Add error check for endpoint param binding during auth scheme resolution to fix panic reported in #3234
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package sts
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.41.2"
|
||||
const goModuleVersion = "1.41.3"
|
||||
|
||||
+9
@@ -1,3 +1,12 @@
|
||||
# Release (2025-12-01)
|
||||
|
||||
## General Highlights
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
## Module Highlights
|
||||
* `github.com/aws/smithy-go`: v1.24.0
|
||||
* **Feature**: Improve allocation footprint of the middleware stack. This should convey a ~10% reduction in allocations per SDK request.
|
||||
|
||||
# Release (2025-11-03)
|
||||
|
||||
## General Highlights
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
package smithy
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.23.2"
|
||||
const goModuleVersion = "1.24.0"
|
||||
|
||||
+136
-49
@@ -1,7 +1,9 @@
|
||||
// Code generated by smithy-go/middleware/generate.go DO NOT EDIT.
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// BuildInput provides the input parameters for the BuildMiddleware to consume.
|
||||
@@ -25,14 +27,14 @@ type BuildHandler interface {
|
||||
}
|
||||
|
||||
// BuildMiddleware provides the interface for middleware specific to the
|
||||
// serialize step. Delegates to the next BuildHandler for further
|
||||
// build step. Delegates to the next BuildHandler for further
|
||||
// processing.
|
||||
type BuildMiddleware interface {
|
||||
// Unique ID for the middleware in theBuildStep. The step does not allow
|
||||
// duplicate IDs.
|
||||
// ID returns a unique ID for the middleware in the BuildStep. The step does not
|
||||
// allow duplicate IDs.
|
||||
ID() string
|
||||
|
||||
// Invokes the middleware behavior which must delegate to the next handler
|
||||
// HandleBuild invokes the middleware behavior which must delegate to the next handler
|
||||
// for the middleware chain to continue. The method must return a result or
|
||||
// error to its caller.
|
||||
HandleBuild(ctx context.Context, in BuildInput, next BuildHandler) (
|
||||
@@ -54,7 +56,9 @@ type buildMiddlewareFunc struct {
|
||||
id string
|
||||
|
||||
// Middleware function to be called.
|
||||
fn func(context.Context, BuildInput, BuildHandler) (BuildOutput, Metadata, error)
|
||||
fn func(context.Context, BuildInput, BuildHandler) (
|
||||
BuildOutput, Metadata, error,
|
||||
)
|
||||
}
|
||||
|
||||
// ID returns the unique ID for the middleware.
|
||||
@@ -69,23 +73,22 @@ func (s buildMiddlewareFunc) HandleBuild(ctx context.Context, in BuildInput, nex
|
||||
|
||||
var _ BuildMiddleware = (buildMiddlewareFunc{})
|
||||
|
||||
// BuildStep provides the ordered grouping of BuildMiddleware to be invoked on
|
||||
// a handler.
|
||||
// BuildStep provides the ordered grouping of BuildMiddleware to be
|
||||
// invoked on a handler.
|
||||
type BuildStep struct {
|
||||
ids *orderedIDs
|
||||
head *decoratedBuildHandler
|
||||
tail *decoratedBuildHandler
|
||||
}
|
||||
|
||||
// NewBuildStep returns a BuildStep ready to have middleware for
|
||||
// initialization added to it.
|
||||
// NewBuildStep returns an BuildStep ready to have middleware for
|
||||
// build added to it.
|
||||
func NewBuildStep() *BuildStep {
|
||||
return &BuildStep{
|
||||
ids: newOrderedIDs(baseOrderedItems),
|
||||
}
|
||||
return &BuildStep{}
|
||||
}
|
||||
|
||||
var _ Middleware = (*BuildStep)(nil)
|
||||
|
||||
// ID returns the unique name of the step as a middleware.
|
||||
// ID returns the unique ID of the step as a middleware.
|
||||
func (s *BuildStep) ID() string {
|
||||
return "Build stack step"
|
||||
}
|
||||
@@ -97,77 +100,161 @@ func (s *BuildStep) ID() string {
|
||||
func (s *BuildStep) HandleMiddleware(ctx context.Context, in interface{}, next Handler) (
|
||||
out interface{}, metadata Metadata, err error,
|
||||
) {
|
||||
order := s.ids.GetOrder()
|
||||
|
||||
var h BuildHandler = buildWrapHandler{Next: next}
|
||||
for i := len(order) - 1; i >= 0; i-- {
|
||||
h = decoratedBuildHandler{
|
||||
Next: h,
|
||||
With: order[i].(BuildMiddleware),
|
||||
}
|
||||
}
|
||||
|
||||
sIn := BuildInput{
|
||||
Request: in,
|
||||
}
|
||||
|
||||
res, metadata, err := h.HandleBuild(ctx, sIn)
|
||||
wh := &buildWrapHandler{next}
|
||||
if s.head == nil {
|
||||
res, metadata, err := wh.HandleBuild(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
s.tail.Next = wh
|
||||
res, metadata, err := s.head.HandleBuild(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
// Get retrieves the middleware identified by id. If the middleware is not present, returns false.
|
||||
func (s *BuildStep) Get(id string) (BuildMiddleware, bool) {
|
||||
get, ok := s.ids.Get(id)
|
||||
if !ok {
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, false
|
||||
}
|
||||
return get.(BuildMiddleware), ok
|
||||
|
||||
return found.With, true
|
||||
}
|
||||
|
||||
// Add injects the middleware to the relative position of the middleware group.
|
||||
// Returns an error if the middleware already exists.
|
||||
//
|
||||
// Add never returns an error. It used to for duplicate phases but this
|
||||
// behavior has since been removed as part of a performance optimization. The
|
||||
// return value from Add can be ignored.
|
||||
func (s *BuildStep) Add(m BuildMiddleware, pos RelativePosition) error {
|
||||
return s.ids.Add(m, pos)
|
||||
if s.head == nil {
|
||||
s.head = &decoratedBuildHandler{nil, m}
|
||||
s.tail = s.head
|
||||
return nil
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
s.head = &decoratedBuildHandler{s.head, m}
|
||||
} else {
|
||||
tail := &decoratedBuildHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Insert injects the middleware relative to an existing middleware id.
|
||||
// Returns an error if the original middleware does not exist, or the middleware
|
||||
// Insert injects the middleware relative to an existing middleware ID.
|
||||
// Returns error if the original middleware does not exist, or the middleware
|
||||
// being added already exists.
|
||||
func (s *BuildStep) Insert(m BuildMiddleware, relativeTo string, pos RelativePosition) error {
|
||||
return s.ids.Insert(m, relativeTo, pos)
|
||||
found, prev := s.get(relativeTo)
|
||||
if found == nil {
|
||||
return fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
if prev == nil { // at the front
|
||||
s.head = &decoratedBuildHandler{s.head, m}
|
||||
} else { // somewhere in the middle
|
||||
prev.Next = &decoratedBuildHandler{found, m}
|
||||
}
|
||||
} else {
|
||||
if found.Next == nil { // at the end
|
||||
tail := &decoratedBuildHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
} else { // somewhere in the middle
|
||||
found.Next = &decoratedBuildHandler{found.Next, m}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Swap removes the middleware by id, replacing it with the new middleware.
|
||||
// Returns the middleware removed, or an error if the middleware to be removed
|
||||
// Returns the middleware removed, or error if the middleware to be removed
|
||||
// doesn't exist.
|
||||
func (s *BuildStep) Swap(id string, m BuildMiddleware) (BuildMiddleware, error) {
|
||||
removed, err := s.ids.Swap(id, m)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
return removed.(BuildMiddleware), nil
|
||||
swapped := found.With
|
||||
found.With = m
|
||||
return swapped, nil
|
||||
}
|
||||
|
||||
// Remove removes the middleware by id. Returns error if the middleware
|
||||
// doesn't exist.
|
||||
func (s *BuildStep) Remove(id string) (BuildMiddleware, error) {
|
||||
removed, err := s.ids.Remove(id)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, prev := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", id)
|
||||
}
|
||||
|
||||
return removed.(BuildMiddleware), nil
|
||||
if s.head == s.tail { // it's the only one
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
} else if found == s.head { // at the front
|
||||
s.head = s.head.Next.(*decoratedBuildHandler)
|
||||
} else if found == s.tail { // at the end
|
||||
prev.Next = nil
|
||||
s.tail = prev
|
||||
} else {
|
||||
prev.Next = found.Next // somewhere in the middle
|
||||
}
|
||||
|
||||
return found.With, nil
|
||||
}
|
||||
|
||||
// List returns a list of the middleware in the step.
|
||||
func (s *BuildStep) List() []string {
|
||||
return s.ids.List()
|
||||
var ids []string
|
||||
for h := s.head; h != nil; {
|
||||
ids = append(ids, h.With.ID())
|
||||
if h.Next == nil {
|
||||
break
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *buildWrapHandler, make sure to check for that
|
||||
if hnext, ok := h.Next.(*decoratedBuildHandler); ok {
|
||||
h = hnext
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
return ids
|
||||
}
|
||||
|
||||
// Clear removes all middleware in the step.
|
||||
func (s *BuildStep) Clear() {
|
||||
s.ids.Clear()
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
}
|
||||
|
||||
func (s *BuildStep) get(id string) (found, prev *decoratedBuildHandler) {
|
||||
for h := s.head; h != nil; {
|
||||
if h.With.ID() == id {
|
||||
found = h
|
||||
return
|
||||
}
|
||||
prev = h
|
||||
if h.Next == nil {
|
||||
return
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *buildWrapHandler
|
||||
h, _ = h.Next.(*decoratedBuildHandler)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type buildWrapHandler struct {
|
||||
@@ -176,7 +263,7 @@ type buildWrapHandler struct {
|
||||
|
||||
var _ BuildHandler = (*buildWrapHandler)(nil)
|
||||
|
||||
// Implements BuildHandler, converts types and delegates to underlying
|
||||
// HandleBuild implements BuildHandler, converts types and delegates to underlying
|
||||
// generic handler.
|
||||
func (w buildWrapHandler) HandleBuild(ctx context.Context, in BuildInput) (
|
||||
out BuildOutput, metadata Metadata, err error,
|
||||
@@ -200,12 +287,12 @@ func (h decoratedBuildHandler) HandleBuild(ctx context.Context, in BuildInput) (
|
||||
return h.With.HandleBuild(ctx, in, h.Next)
|
||||
}
|
||||
|
||||
// BuildHandlerFunc provides a wrapper around a function to be used as a build middleware handler.
|
||||
// BuildHandlerFunc provides a wrapper around a function to be used as buildMiddleware.
|
||||
type BuildHandlerFunc func(context.Context, BuildInput) (BuildOutput, Metadata, error)
|
||||
|
||||
// HandleBuild invokes the wrapped function with the provided arguments.
|
||||
func (b BuildHandlerFunc) HandleBuild(ctx context.Context, in BuildInput) (BuildOutput, Metadata, error) {
|
||||
return b(ctx, in)
|
||||
// HandleBuild calls the wrapped function with the provided arguments.
|
||||
func (f BuildHandlerFunc) HandleBuild(ctx context.Context, in BuildInput) (BuildOutput, Metadata, error) {
|
||||
return f(ctx, in)
|
||||
}
|
||||
|
||||
var _ BuildHandler = BuildHandlerFunc(nil)
|
||||
|
||||
+129
-47
@@ -1,7 +1,9 @@
|
||||
// Code generated by smithy-go/middleware/generate.go DO NOT EDIT.
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// DeserializeInput provides the input parameters for the DeserializeInput to
|
||||
@@ -11,10 +13,7 @@ type DeserializeInput struct {
|
||||
Request interface{}
|
||||
}
|
||||
|
||||
// DeserializeOutput provides the result returned by the next
|
||||
// DeserializeHandler. The DeserializeMiddleware should deserialize the
|
||||
// RawResponse into a Result that can be consumed by middleware higher up in
|
||||
// the stack.
|
||||
// DeserializeOutput provides the result returned by the next DeserializeHandler.
|
||||
type DeserializeOutput struct {
|
||||
RawResponse interface{}
|
||||
Result interface{}
|
||||
@@ -29,7 +28,7 @@ type DeserializeHandler interface {
|
||||
}
|
||||
|
||||
// DeserializeMiddleware provides the interface for middleware specific to the
|
||||
// serialize step. Delegates to the next DeserializeHandler for further
|
||||
// deserialize step. Delegates to the next DeserializeHandler for further
|
||||
// processing.
|
||||
type DeserializeMiddleware interface {
|
||||
// ID returns a unique ID for the middleware in the DeserializeStep. The step does not
|
||||
@@ -44,8 +43,8 @@ type DeserializeMiddleware interface {
|
||||
)
|
||||
}
|
||||
|
||||
// DeserializeMiddlewareFunc returns a DeserializeMiddleware with the unique ID
|
||||
// provided, and the func to be invoked.
|
||||
// DeserializeMiddlewareFunc returns a DeserializeMiddleware with the unique ID provided,
|
||||
// and the func to be invoked.
|
||||
func DeserializeMiddlewareFunc(id string, fn func(context.Context, DeserializeInput, DeserializeHandler) (DeserializeOutput, Metadata, error)) DeserializeMiddleware {
|
||||
return deserializeMiddlewareFunc{
|
||||
id: id,
|
||||
@@ -78,16 +77,14 @@ var _ DeserializeMiddleware = (deserializeMiddlewareFunc{})
|
||||
// DeserializeStep provides the ordered grouping of DeserializeMiddleware to be
|
||||
// invoked on a handler.
|
||||
type DeserializeStep struct {
|
||||
ids *orderedIDs
|
||||
head *decoratedDeserializeHandler
|
||||
tail *decoratedDeserializeHandler
|
||||
}
|
||||
|
||||
// NewDeserializeStep returns a DeserializeStep ready to have middleware for
|
||||
// initialization added to it.
|
||||
// NewDeserializeStep returns an DeserializeStep ready to have middleware for
|
||||
// deserialize added to it.
|
||||
func NewDeserializeStep() *DeserializeStep {
|
||||
return &DeserializeStep{
|
||||
// downstream SDK typically has larger Deserialize step
|
||||
ids: newOrderedIDs(baseOrderedItems * 2),
|
||||
}
|
||||
return &DeserializeStep{}
|
||||
}
|
||||
|
||||
var _ Middleware = (*DeserializeStep)(nil)
|
||||
@@ -104,77 +101,161 @@ func (s *DeserializeStep) ID() string {
|
||||
func (s *DeserializeStep) HandleMiddleware(ctx context.Context, in interface{}, next Handler) (
|
||||
out interface{}, metadata Metadata, err error,
|
||||
) {
|
||||
order := s.ids.GetOrder()
|
||||
|
||||
var h DeserializeHandler = deserializeWrapHandler{Next: next}
|
||||
for i := len(order) - 1; i >= 0; i-- {
|
||||
h = decoratedDeserializeHandler{
|
||||
Next: h,
|
||||
With: order[i].(DeserializeMiddleware),
|
||||
}
|
||||
}
|
||||
|
||||
sIn := DeserializeInput{
|
||||
Request: in,
|
||||
}
|
||||
|
||||
res, metadata, err := h.HandleDeserialize(ctx, sIn)
|
||||
wh := &deserializeWrapHandler{next}
|
||||
if s.head == nil {
|
||||
res, metadata, err := wh.HandleDeserialize(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
s.tail.Next = wh
|
||||
res, metadata, err := s.head.HandleDeserialize(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
// Get retrieves the middleware identified by id. If the middleware is not present, returns false.
|
||||
func (s *DeserializeStep) Get(id string) (DeserializeMiddleware, bool) {
|
||||
get, ok := s.ids.Get(id)
|
||||
if !ok {
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, false
|
||||
}
|
||||
return get.(DeserializeMiddleware), ok
|
||||
|
||||
return found.With, true
|
||||
}
|
||||
|
||||
// Add injects the middleware to the relative position of the middleware group.
|
||||
// Returns an error if the middleware already exists.
|
||||
//
|
||||
// Add never returns an error. It used to for duplicate phases but this
|
||||
// behavior has since been removed as part of a performance optimization. The
|
||||
// return value from Add can be ignored.
|
||||
func (s *DeserializeStep) Add(m DeserializeMiddleware, pos RelativePosition) error {
|
||||
return s.ids.Add(m, pos)
|
||||
if s.head == nil {
|
||||
s.head = &decoratedDeserializeHandler{nil, m}
|
||||
s.tail = s.head
|
||||
return nil
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
s.head = &decoratedDeserializeHandler{s.head, m}
|
||||
} else {
|
||||
tail := &decoratedDeserializeHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Insert injects the middleware relative to an existing middleware ID.
|
||||
// Returns error if the original middleware does not exist, or the middleware
|
||||
// being added already exists.
|
||||
func (s *DeserializeStep) Insert(m DeserializeMiddleware, relativeTo string, pos RelativePosition) error {
|
||||
return s.ids.Insert(m, relativeTo, pos)
|
||||
found, prev := s.get(relativeTo)
|
||||
if found == nil {
|
||||
return fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
if prev == nil { // at the front
|
||||
s.head = &decoratedDeserializeHandler{s.head, m}
|
||||
} else { // somewhere in the middle
|
||||
prev.Next = &decoratedDeserializeHandler{found, m}
|
||||
}
|
||||
} else {
|
||||
if found.Next == nil { // at the end
|
||||
tail := &decoratedDeserializeHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
} else { // somewhere in the middle
|
||||
found.Next = &decoratedDeserializeHandler{found.Next, m}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Swap removes the middleware by id, replacing it with the new middleware.
|
||||
// Returns the middleware removed, or error if the middleware to be removed
|
||||
// doesn't exist.
|
||||
func (s *DeserializeStep) Swap(id string, m DeserializeMiddleware) (DeserializeMiddleware, error) {
|
||||
removed, err := s.ids.Swap(id, m)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
return removed.(DeserializeMiddleware), nil
|
||||
swapped := found.With
|
||||
found.With = m
|
||||
return swapped, nil
|
||||
}
|
||||
|
||||
// Remove removes the middleware by id. Returns error if the middleware
|
||||
// doesn't exist.
|
||||
func (s *DeserializeStep) Remove(id string) (DeserializeMiddleware, error) {
|
||||
removed, err := s.ids.Remove(id)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, prev := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", id)
|
||||
}
|
||||
|
||||
return removed.(DeserializeMiddleware), nil
|
||||
if s.head == s.tail { // it's the only one
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
} else if found == s.head { // at the front
|
||||
s.head = s.head.Next.(*decoratedDeserializeHandler)
|
||||
} else if found == s.tail { // at the end
|
||||
prev.Next = nil
|
||||
s.tail = prev
|
||||
} else {
|
||||
prev.Next = found.Next // somewhere in the middle
|
||||
}
|
||||
|
||||
return found.With, nil
|
||||
}
|
||||
|
||||
// List returns a list of the middleware in the step.
|
||||
func (s *DeserializeStep) List() []string {
|
||||
return s.ids.List()
|
||||
var ids []string
|
||||
for h := s.head; h != nil; {
|
||||
ids = append(ids, h.With.ID())
|
||||
if h.Next == nil {
|
||||
break
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *deserializeWrapHandler, make sure to check for that
|
||||
if hnext, ok := h.Next.(*decoratedDeserializeHandler); ok {
|
||||
h = hnext
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
return ids
|
||||
}
|
||||
|
||||
// Clear removes all middleware in the step.
|
||||
func (s *DeserializeStep) Clear() {
|
||||
s.ids.Clear()
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
}
|
||||
|
||||
func (s *DeserializeStep) get(id string) (found, prev *decoratedDeserializeHandler) {
|
||||
for h := s.head; h != nil; {
|
||||
if h.With.ID() == id {
|
||||
found = h
|
||||
return
|
||||
}
|
||||
prev = h
|
||||
if h.Next == nil {
|
||||
return
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *deserializeWrapHandler
|
||||
h, _ = h.Next.(*decoratedDeserializeHandler)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type deserializeWrapHandler struct {
|
||||
@@ -188,9 +269,10 @@ var _ DeserializeHandler = (*deserializeWrapHandler)(nil)
|
||||
func (w deserializeWrapHandler) HandleDeserialize(ctx context.Context, in DeserializeInput) (
|
||||
out DeserializeOutput, metadata Metadata, err error,
|
||||
) {
|
||||
resp, metadata, err := w.Next.Handle(ctx, in.Request)
|
||||
res, metadata, err := w.Next.Handle(ctx, in.Request)
|
||||
return DeserializeOutput{
|
||||
RawResponse: resp,
|
||||
RawResponse: res,
|
||||
Result: nil,
|
||||
}, metadata, err
|
||||
}
|
||||
|
||||
@@ -207,12 +289,12 @@ func (h decoratedDeserializeHandler) HandleDeserialize(ctx context.Context, in D
|
||||
return h.With.HandleDeserialize(ctx, in, h.Next)
|
||||
}
|
||||
|
||||
// DeserializeHandlerFunc provides a wrapper around a function to be used as a deserialize middleware handler.
|
||||
// DeserializeHandlerFunc provides a wrapper around a function to be used as deserializeMiddleware.
|
||||
type DeserializeHandlerFunc func(context.Context, DeserializeInput) (DeserializeOutput, Metadata, error)
|
||||
|
||||
// HandleDeserialize invokes the wrapped function with the given arguments.
|
||||
func (d DeserializeHandlerFunc) HandleDeserialize(ctx context.Context, in DeserializeInput) (DeserializeOutput, Metadata, error) {
|
||||
return d(ctx, in)
|
||||
// HandleDeserialize calls the wrapped function with the provided arguments.
|
||||
func (f DeserializeHandlerFunc) HandleDeserialize(ctx context.Context, in DeserializeInput) (DeserializeOutput, Metadata, error) {
|
||||
return f(ctx, in)
|
||||
}
|
||||
|
||||
var _ DeserializeHandler = DeserializeHandlerFunc(nil)
|
||||
|
||||
+127
-41
@@ -1,6 +1,10 @@
|
||||
// Code generated by smithy-go/middleware/generate.go DO NOT EDIT.
|
||||
package middleware
|
||||
|
||||
import "context"
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// FinalizeInput provides the input parameters for the FinalizeMiddleware to
|
||||
// consume. FinalizeMiddleware may modify the Request value before forwarding
|
||||
@@ -23,7 +27,7 @@ type FinalizeHandler interface {
|
||||
}
|
||||
|
||||
// FinalizeMiddleware provides the interface for middleware specific to the
|
||||
// serialize step. Delegates to the next FinalizeHandler for further
|
||||
// finalize step. Delegates to the next FinalizeHandler for further
|
||||
// processing.
|
||||
type FinalizeMiddleware interface {
|
||||
// ID returns a unique ID for the middleware in the FinalizeStep. The step does not
|
||||
@@ -38,8 +42,8 @@ type FinalizeMiddleware interface {
|
||||
)
|
||||
}
|
||||
|
||||
// FinalizeMiddlewareFunc returns a FinalizeMiddleware with the unique ID
|
||||
// provided, and the func to be invoked.
|
||||
// FinalizeMiddlewareFunc returns a FinalizeMiddleware with the unique ID provided,
|
||||
// and the func to be invoked.
|
||||
func FinalizeMiddlewareFunc(id string, fn func(context.Context, FinalizeInput, FinalizeHandler) (FinalizeOutput, Metadata, error)) FinalizeMiddleware {
|
||||
return finalizeMiddlewareFunc{
|
||||
id: id,
|
||||
@@ -72,21 +76,19 @@ var _ FinalizeMiddleware = (finalizeMiddlewareFunc{})
|
||||
// FinalizeStep provides the ordered grouping of FinalizeMiddleware to be
|
||||
// invoked on a handler.
|
||||
type FinalizeStep struct {
|
||||
ids *orderedIDs
|
||||
head *decoratedFinalizeHandler
|
||||
tail *decoratedFinalizeHandler
|
||||
}
|
||||
|
||||
// NewFinalizeStep returns a FinalizeStep ready to have middleware for
|
||||
// initialization added to it.
|
||||
// NewFinalizeStep returns an FinalizeStep ready to have middleware for
|
||||
// finalize added to it.
|
||||
func NewFinalizeStep() *FinalizeStep {
|
||||
return &FinalizeStep{
|
||||
// downstream SDK typically has larger Finalize step
|
||||
ids: newOrderedIDs(baseOrderedItems * 2),
|
||||
}
|
||||
return &FinalizeStep{}
|
||||
}
|
||||
|
||||
var _ Middleware = (*FinalizeStep)(nil)
|
||||
|
||||
// ID returns the unique id of the step as a middleware.
|
||||
// ID returns the unique ID of the step as a middleware.
|
||||
func (s *FinalizeStep) ID() string {
|
||||
return "Finalize stack step"
|
||||
}
|
||||
@@ -98,77 +100,161 @@ func (s *FinalizeStep) ID() string {
|
||||
func (s *FinalizeStep) HandleMiddleware(ctx context.Context, in interface{}, next Handler) (
|
||||
out interface{}, metadata Metadata, err error,
|
||||
) {
|
||||
order := s.ids.GetOrder()
|
||||
|
||||
var h FinalizeHandler = finalizeWrapHandler{Next: next}
|
||||
for i := len(order) - 1; i >= 0; i-- {
|
||||
h = decoratedFinalizeHandler{
|
||||
Next: h,
|
||||
With: order[i].(FinalizeMiddleware),
|
||||
}
|
||||
}
|
||||
|
||||
sIn := FinalizeInput{
|
||||
Request: in,
|
||||
}
|
||||
|
||||
res, metadata, err := h.HandleFinalize(ctx, sIn)
|
||||
wh := &finalizeWrapHandler{next}
|
||||
if s.head == nil {
|
||||
res, metadata, err := wh.HandleFinalize(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
s.tail.Next = wh
|
||||
res, metadata, err := s.head.HandleFinalize(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
// Get retrieves the middleware identified by id. If the middleware is not present, returns false.
|
||||
func (s *FinalizeStep) Get(id string) (FinalizeMiddleware, bool) {
|
||||
get, ok := s.ids.Get(id)
|
||||
if !ok {
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, false
|
||||
}
|
||||
return get.(FinalizeMiddleware), ok
|
||||
|
||||
return found.With, true
|
||||
}
|
||||
|
||||
// Add injects the middleware to the relative position of the middleware group.
|
||||
// Returns an error if the middleware already exists.
|
||||
//
|
||||
// Add never returns an error. It used to for duplicate phases but this
|
||||
// behavior has since been removed as part of a performance optimization. The
|
||||
// return value from Add can be ignored.
|
||||
func (s *FinalizeStep) Add(m FinalizeMiddleware, pos RelativePosition) error {
|
||||
return s.ids.Add(m, pos)
|
||||
if s.head == nil {
|
||||
s.head = &decoratedFinalizeHandler{nil, m}
|
||||
s.tail = s.head
|
||||
return nil
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
s.head = &decoratedFinalizeHandler{s.head, m}
|
||||
} else {
|
||||
tail := &decoratedFinalizeHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Insert injects the middleware relative to an existing middleware ID.
|
||||
// Returns error if the original middleware does not exist, or the middleware
|
||||
// being added already exists.
|
||||
func (s *FinalizeStep) Insert(m FinalizeMiddleware, relativeTo string, pos RelativePosition) error {
|
||||
return s.ids.Insert(m, relativeTo, pos)
|
||||
found, prev := s.get(relativeTo)
|
||||
if found == nil {
|
||||
return fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
if prev == nil { // at the front
|
||||
s.head = &decoratedFinalizeHandler{s.head, m}
|
||||
} else { // somewhere in the middle
|
||||
prev.Next = &decoratedFinalizeHandler{found, m}
|
||||
}
|
||||
} else {
|
||||
if found.Next == nil { // at the end
|
||||
tail := &decoratedFinalizeHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
} else { // somewhere in the middle
|
||||
found.Next = &decoratedFinalizeHandler{found.Next, m}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Swap removes the middleware by id, replacing it with the new middleware.
|
||||
// Returns the middleware removed, or error if the middleware to be removed
|
||||
// doesn't exist.
|
||||
func (s *FinalizeStep) Swap(id string, m FinalizeMiddleware) (FinalizeMiddleware, error) {
|
||||
removed, err := s.ids.Swap(id, m)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
return removed.(FinalizeMiddleware), nil
|
||||
swapped := found.With
|
||||
found.With = m
|
||||
return swapped, nil
|
||||
}
|
||||
|
||||
// Remove removes the middleware by id. Returns error if the middleware
|
||||
// doesn't exist.
|
||||
func (s *FinalizeStep) Remove(id string) (FinalizeMiddleware, error) {
|
||||
removed, err := s.ids.Remove(id)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, prev := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", id)
|
||||
}
|
||||
|
||||
return removed.(FinalizeMiddleware), nil
|
||||
if s.head == s.tail { // it's the only one
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
} else if found == s.head { // at the front
|
||||
s.head = s.head.Next.(*decoratedFinalizeHandler)
|
||||
} else if found == s.tail { // at the end
|
||||
prev.Next = nil
|
||||
s.tail = prev
|
||||
} else {
|
||||
prev.Next = found.Next // somewhere in the middle
|
||||
}
|
||||
|
||||
return found.With, nil
|
||||
}
|
||||
|
||||
// List returns a list of the middleware in the step.
|
||||
func (s *FinalizeStep) List() []string {
|
||||
return s.ids.List()
|
||||
var ids []string
|
||||
for h := s.head; h != nil; {
|
||||
ids = append(ids, h.With.ID())
|
||||
if h.Next == nil {
|
||||
break
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *finalizeWrapHandler, make sure to check for that
|
||||
if hnext, ok := h.Next.(*decoratedFinalizeHandler); ok {
|
||||
h = hnext
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
return ids
|
||||
}
|
||||
|
||||
// Clear removes all middleware in the step.
|
||||
func (s *FinalizeStep) Clear() {
|
||||
s.ids.Clear()
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
}
|
||||
|
||||
func (s *FinalizeStep) get(id string) (found, prev *decoratedFinalizeHandler) {
|
||||
for h := s.head; h != nil; {
|
||||
if h.With.ID() == id {
|
||||
found = h
|
||||
return
|
||||
}
|
||||
prev = h
|
||||
if h.Next == nil {
|
||||
return
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *finalizeWrapHandler
|
||||
h, _ = h.Next.(*decoratedFinalizeHandler)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type finalizeWrapHandler struct {
|
||||
@@ -201,10 +287,10 @@ func (h decoratedFinalizeHandler) HandleFinalize(ctx context.Context, in Finaliz
|
||||
return h.With.HandleFinalize(ctx, in, h.Next)
|
||||
}
|
||||
|
||||
// FinalizeHandlerFunc provides a wrapper around a function to be used as a finalize middleware handler.
|
||||
// FinalizeHandlerFunc provides a wrapper around a function to be used as finalizeMiddleware.
|
||||
type FinalizeHandlerFunc func(context.Context, FinalizeInput) (FinalizeOutput, Metadata, error)
|
||||
|
||||
// HandleFinalize invokes the wrapped function with the given arguments.
|
||||
// HandleFinalize calls the wrapped function with the provided arguments.
|
||||
func (f FinalizeHandlerFunc) HandleFinalize(ctx context.Context, in FinalizeInput) (FinalizeOutput, Metadata, error) {
|
||||
return f(ctx, in)
|
||||
}
|
||||
|
||||
+124
-36
@@ -1,10 +1,15 @@
|
||||
// Code generated by smithy-go/middleware/generate.go DO NOT EDIT.
|
||||
package middleware
|
||||
|
||||
import "context"
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// InitializeInput wraps the input parameters for the InitializeMiddlewares to
|
||||
// consume. InitializeMiddleware may modify the parameter value before
|
||||
// forwarding it along to the next InitializeHandler.
|
||||
|
||||
type InitializeInput struct {
|
||||
Parameters interface{}
|
||||
}
|
||||
@@ -72,15 +77,14 @@ var _ InitializeMiddleware = (initializeMiddlewareFunc{})
|
||||
// InitializeStep provides the ordered grouping of InitializeMiddleware to be
|
||||
// invoked on a handler.
|
||||
type InitializeStep struct {
|
||||
ids *orderedIDs
|
||||
head *decoratedInitializeHandler
|
||||
tail *decoratedInitializeHandler
|
||||
}
|
||||
|
||||
// NewInitializeStep returns an InitializeStep ready to have middleware for
|
||||
// initialization added to it.
|
||||
// initialize added to it.
|
||||
func NewInitializeStep() *InitializeStep {
|
||||
return &InitializeStep{
|
||||
ids: newOrderedIDs(baseOrderedItems),
|
||||
}
|
||||
return &InitializeStep{}
|
||||
}
|
||||
|
||||
var _ Middleware = (*InitializeStep)(nil)
|
||||
@@ -97,77 +101,161 @@ func (s *InitializeStep) ID() string {
|
||||
func (s *InitializeStep) HandleMiddleware(ctx context.Context, in interface{}, next Handler) (
|
||||
out interface{}, metadata Metadata, err error,
|
||||
) {
|
||||
order := s.ids.GetOrder()
|
||||
|
||||
var h InitializeHandler = initializeWrapHandler{Next: next}
|
||||
for i := len(order) - 1; i >= 0; i-- {
|
||||
h = decoratedInitializeHandler{
|
||||
Next: h,
|
||||
With: order[i].(InitializeMiddleware),
|
||||
}
|
||||
}
|
||||
|
||||
sIn := InitializeInput{
|
||||
Parameters: in,
|
||||
}
|
||||
|
||||
res, metadata, err := h.HandleInitialize(ctx, sIn)
|
||||
wh := &initializeWrapHandler{next}
|
||||
if s.head == nil {
|
||||
res, metadata, err := wh.HandleInitialize(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
s.tail.Next = wh
|
||||
res, metadata, err := s.head.HandleInitialize(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
// Get retrieves the middleware identified by id. If the middleware is not present, returns false.
|
||||
func (s *InitializeStep) Get(id string) (InitializeMiddleware, bool) {
|
||||
get, ok := s.ids.Get(id)
|
||||
if !ok {
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, false
|
||||
}
|
||||
return get.(InitializeMiddleware), ok
|
||||
|
||||
return found.With, true
|
||||
}
|
||||
|
||||
// Add injects the middleware to the relative position of the middleware group.
|
||||
// Returns an error if the middleware already exists.
|
||||
//
|
||||
// Add never returns an error. It used to for duplicate phases but this
|
||||
// behavior has since been removed as part of a performance optimization. The
|
||||
// return value from Add can be ignored.
|
||||
func (s *InitializeStep) Add(m InitializeMiddleware, pos RelativePosition) error {
|
||||
return s.ids.Add(m, pos)
|
||||
if s.head == nil {
|
||||
s.head = &decoratedInitializeHandler{nil, m}
|
||||
s.tail = s.head
|
||||
return nil
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
s.head = &decoratedInitializeHandler{s.head, m}
|
||||
} else {
|
||||
tail := &decoratedInitializeHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Insert injects the middleware relative to an existing middleware ID.
|
||||
// Returns error if the original middleware does not exist, or the middleware
|
||||
// being added already exists.
|
||||
func (s *InitializeStep) Insert(m InitializeMiddleware, relativeTo string, pos RelativePosition) error {
|
||||
return s.ids.Insert(m, relativeTo, pos)
|
||||
found, prev := s.get(relativeTo)
|
||||
if found == nil {
|
||||
return fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
if prev == nil { // at the front
|
||||
s.head = &decoratedInitializeHandler{s.head, m}
|
||||
} else { // somewhere in the middle
|
||||
prev.Next = &decoratedInitializeHandler{found, m}
|
||||
}
|
||||
} else {
|
||||
if found.Next == nil { // at the end
|
||||
tail := &decoratedInitializeHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
} else { // somewhere in the middle
|
||||
found.Next = &decoratedInitializeHandler{found.Next, m}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Swap removes the middleware by id, replacing it with the new middleware.
|
||||
// Returns the middleware removed, or error if the middleware to be removed
|
||||
// doesn't exist.
|
||||
func (s *InitializeStep) Swap(id string, m InitializeMiddleware) (InitializeMiddleware, error) {
|
||||
removed, err := s.ids.Swap(id, m)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
return removed.(InitializeMiddleware), nil
|
||||
swapped := found.With
|
||||
found.With = m
|
||||
return swapped, nil
|
||||
}
|
||||
|
||||
// Remove removes the middleware by id. Returns error if the middleware
|
||||
// doesn't exist.
|
||||
func (s *InitializeStep) Remove(id string) (InitializeMiddleware, error) {
|
||||
removed, err := s.ids.Remove(id)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, prev := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", id)
|
||||
}
|
||||
|
||||
return removed.(InitializeMiddleware), nil
|
||||
if s.head == s.tail { // it's the only one
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
} else if found == s.head { // at the front
|
||||
s.head = s.head.Next.(*decoratedInitializeHandler)
|
||||
} else if found == s.tail { // at the end
|
||||
prev.Next = nil
|
||||
s.tail = prev
|
||||
} else {
|
||||
prev.Next = found.Next // somewhere in the middle
|
||||
}
|
||||
|
||||
return found.With, nil
|
||||
}
|
||||
|
||||
// List returns a list of the middleware in the step.
|
||||
func (s *InitializeStep) List() []string {
|
||||
return s.ids.List()
|
||||
var ids []string
|
||||
for h := s.head; h != nil; {
|
||||
ids = append(ids, h.With.ID())
|
||||
if h.Next == nil {
|
||||
break
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *initializeWrapHandler, make sure to check for that
|
||||
if hnext, ok := h.Next.(*decoratedInitializeHandler); ok {
|
||||
h = hnext
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
return ids
|
||||
}
|
||||
|
||||
// Clear removes all middleware in the step.
|
||||
func (s *InitializeStep) Clear() {
|
||||
s.ids.Clear()
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
}
|
||||
|
||||
func (s *InitializeStep) get(id string) (found, prev *decoratedInitializeHandler) {
|
||||
for h := s.head; h != nil; {
|
||||
if h.With.ID() == id {
|
||||
found = h
|
||||
return
|
||||
}
|
||||
prev = h
|
||||
if h.Next == nil {
|
||||
return
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *initializeWrapHandler
|
||||
h, _ = h.Next.(*decoratedInitializeHandler)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type initializeWrapHandler struct {
|
||||
@@ -200,12 +288,12 @@ func (h decoratedInitializeHandler) HandleInitialize(ctx context.Context, in Ini
|
||||
return h.With.HandleInitialize(ctx, in, h.Next)
|
||||
}
|
||||
|
||||
// InitializeHandlerFunc provides a wrapper around a function to be used as an initialize middleware handler.
|
||||
// InitializeHandlerFunc provides a wrapper around a function to be used as initializeMiddleware.
|
||||
type InitializeHandlerFunc func(context.Context, InitializeInput) (InitializeOutput, Metadata, error)
|
||||
|
||||
// HandleInitialize calls the wrapped function with the provided arguments.
|
||||
func (i InitializeHandlerFunc) HandleInitialize(ctx context.Context, in InitializeInput) (InitializeOutput, Metadata, error) {
|
||||
return i(ctx, in)
|
||||
func (f InitializeHandlerFunc) HandleInitialize(ctx context.Context, in InitializeInput) (InitializeOutput, Metadata, error) {
|
||||
return f(ctx, in)
|
||||
}
|
||||
|
||||
var _ InitializeHandler = InitializeHandlerFunc(nil)
|
||||
|
||||
+126
-40
@@ -1,6 +1,10 @@
|
||||
// Code generated by smithy-go/middleware/generate.go DO NOT EDIT.
|
||||
package middleware
|
||||
|
||||
import "context"
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// SerializeInput provides the input parameters for the SerializeMiddleware to
|
||||
// consume. SerializeMiddleware may modify the Request value before forwarding
|
||||
@@ -41,8 +45,8 @@ type SerializeMiddleware interface {
|
||||
)
|
||||
}
|
||||
|
||||
// SerializeMiddlewareFunc returns a SerializeMiddleware with the unique ID
|
||||
// provided, and the func to be invoked.
|
||||
// SerializeMiddlewareFunc returns a SerializeMiddleware with the unique ID provided,
|
||||
// and the func to be invoked.
|
||||
func SerializeMiddlewareFunc(id string, fn func(context.Context, SerializeInput, SerializeHandler) (SerializeOutput, Metadata, error)) SerializeMiddleware {
|
||||
return serializeMiddlewareFunc{
|
||||
id: id,
|
||||
@@ -75,17 +79,15 @@ var _ SerializeMiddleware = (serializeMiddlewareFunc{})
|
||||
// SerializeStep provides the ordered grouping of SerializeMiddleware to be
|
||||
// invoked on a handler.
|
||||
type SerializeStep struct {
|
||||
head *decoratedSerializeHandler
|
||||
tail *decoratedSerializeHandler
|
||||
newRequest func() interface{}
|
||||
ids *orderedIDs
|
||||
}
|
||||
|
||||
// NewSerializeStep returns a SerializeStep ready to have middleware for
|
||||
// initialization added to it. The newRequest func parameter is used to
|
||||
// initialize the transport specific request for the stack SerializeStep to
|
||||
// serialize the input parameters into.
|
||||
// NewSerializeStep returns an SerializeStep ready to have middleware for
|
||||
// serialize added to it.
|
||||
func NewSerializeStep(newRequest func() interface{}) *SerializeStep {
|
||||
return &SerializeStep{
|
||||
ids: newOrderedIDs(baseOrderedItems),
|
||||
newRequest: newRequest,
|
||||
}
|
||||
}
|
||||
@@ -104,78 +106,162 @@ func (s *SerializeStep) ID() string {
|
||||
func (s *SerializeStep) HandleMiddleware(ctx context.Context, in interface{}, next Handler) (
|
||||
out interface{}, metadata Metadata, err error,
|
||||
) {
|
||||
order := s.ids.GetOrder()
|
||||
|
||||
var h SerializeHandler = serializeWrapHandler{Next: next}
|
||||
for i := len(order) - 1; i >= 0; i-- {
|
||||
h = decoratedSerializeHandler{
|
||||
Next: h,
|
||||
With: order[i].(SerializeMiddleware),
|
||||
}
|
||||
}
|
||||
|
||||
sIn := SerializeInput{
|
||||
Parameters: in,
|
||||
Request: s.newRequest(),
|
||||
}
|
||||
|
||||
res, metadata, err := h.HandleSerialize(ctx, sIn)
|
||||
wh := &serializeWrapHandler{next}
|
||||
if s.head == nil {
|
||||
res, metadata, err := wh.HandleSerialize(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
s.tail.Next = wh
|
||||
res, metadata, err := s.head.HandleSerialize(ctx, sIn)
|
||||
return res.Result, metadata, err
|
||||
}
|
||||
|
||||
// Get retrieves the middleware identified by id. If the middleware is not present, returns false.
|
||||
func (s *SerializeStep) Get(id string) (SerializeMiddleware, bool) {
|
||||
get, ok := s.ids.Get(id)
|
||||
if !ok {
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, false
|
||||
}
|
||||
return get.(SerializeMiddleware), ok
|
||||
|
||||
return found.With, true
|
||||
}
|
||||
|
||||
// Add injects the middleware to the relative position of the middleware group.
|
||||
// Returns an error if the middleware already exists.
|
||||
//
|
||||
// Add never returns an error. It used to for duplicate phases but this
|
||||
// behavior has since been removed as part of a performance optimization. The
|
||||
// return value from Add can be ignored.
|
||||
func (s *SerializeStep) Add(m SerializeMiddleware, pos RelativePosition) error {
|
||||
return s.ids.Add(m, pos)
|
||||
if s.head == nil {
|
||||
s.head = &decoratedSerializeHandler{nil, m}
|
||||
s.tail = s.head
|
||||
return nil
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
s.head = &decoratedSerializeHandler{s.head, m}
|
||||
} else {
|
||||
tail := &decoratedSerializeHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Insert injects the middleware relative to an existing middleware ID.
|
||||
// Returns error if the original middleware does not exist, or the middleware
|
||||
// being added already exists.
|
||||
func (s *SerializeStep) Insert(m SerializeMiddleware, relativeTo string, pos RelativePosition) error {
|
||||
return s.ids.Insert(m, relativeTo, pos)
|
||||
found, prev := s.get(relativeTo)
|
||||
if found == nil {
|
||||
return fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
if pos == Before {
|
||||
if prev == nil { // at the front
|
||||
s.head = &decoratedSerializeHandler{s.head, m}
|
||||
} else { // somewhere in the middle
|
||||
prev.Next = &decoratedSerializeHandler{found, m}
|
||||
}
|
||||
} else {
|
||||
if found.Next == nil { // at the end
|
||||
tail := &decoratedSerializeHandler{nil, m}
|
||||
s.tail.Next = tail
|
||||
s.tail = tail
|
||||
} else { // somewhere in the middle
|
||||
found.Next = &decoratedSerializeHandler{found.Next, m}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Swap removes the middleware by id, replacing it with the new middleware.
|
||||
// Returns the middleware removed, or error if the middleware to be removed
|
||||
// doesn't exist.
|
||||
func (s *SerializeStep) Swap(id string, m SerializeMiddleware) (SerializeMiddleware, error) {
|
||||
removed, err := s.ids.Swap(id, m)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, _ := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", m.ID())
|
||||
}
|
||||
|
||||
return removed.(SerializeMiddleware), nil
|
||||
swapped := found.With
|
||||
found.With = m
|
||||
return swapped, nil
|
||||
}
|
||||
|
||||
// Remove removes the middleware by id. Returns error if the middleware
|
||||
// doesn't exist.
|
||||
func (s *SerializeStep) Remove(id string) (SerializeMiddleware, error) {
|
||||
removed, err := s.ids.Remove(id)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
found, prev := s.get(id)
|
||||
if found == nil {
|
||||
return nil, fmt.Errorf("not found: %s", id)
|
||||
}
|
||||
|
||||
return removed.(SerializeMiddleware), nil
|
||||
if s.head == s.tail { // it's the only one
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
} else if found == s.head { // at the front
|
||||
s.head = s.head.Next.(*decoratedSerializeHandler)
|
||||
} else if found == s.tail { // at the end
|
||||
prev.Next = nil
|
||||
s.tail = prev
|
||||
} else {
|
||||
prev.Next = found.Next // somewhere in the middle
|
||||
}
|
||||
|
||||
return found.With, nil
|
||||
}
|
||||
|
||||
// List returns a list of the middleware in the step.
|
||||
func (s *SerializeStep) List() []string {
|
||||
return s.ids.List()
|
||||
var ids []string
|
||||
for h := s.head; h != nil; {
|
||||
ids = append(ids, h.With.ID())
|
||||
if h.Next == nil {
|
||||
break
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *serializeWrapHandler, make sure to check for that
|
||||
if hnext, ok := h.Next.(*decoratedSerializeHandler); ok {
|
||||
h = hnext
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
return ids
|
||||
}
|
||||
|
||||
// Clear removes all middleware in the step.
|
||||
func (s *SerializeStep) Clear() {
|
||||
s.ids.Clear()
|
||||
s.head = nil
|
||||
s.tail = nil
|
||||
}
|
||||
|
||||
func (s *SerializeStep) get(id string) (found, prev *decoratedSerializeHandler) {
|
||||
for h := s.head; h != nil; {
|
||||
if h.With.ID() == id {
|
||||
found = h
|
||||
return
|
||||
}
|
||||
prev = h
|
||||
if h.Next == nil {
|
||||
return
|
||||
}
|
||||
|
||||
// once executed, tail.Next of the list will be set to an
|
||||
// *serializeWrapHandler
|
||||
h, _ = h.Next.(*decoratedSerializeHandler)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type serializeWrapHandler struct {
|
||||
@@ -184,7 +270,7 @@ type serializeWrapHandler struct {
|
||||
|
||||
var _ SerializeHandler = (*serializeWrapHandler)(nil)
|
||||
|
||||
// Implements SerializeHandler, converts types and delegates to underlying
|
||||
// HandleSerialize implements SerializeHandler, converts types and delegates to underlying
|
||||
// generic handler.
|
||||
func (w serializeWrapHandler) HandleSerialize(ctx context.Context, in SerializeInput) (
|
||||
out SerializeOutput, metadata Metadata, err error,
|
||||
@@ -208,12 +294,12 @@ func (h decoratedSerializeHandler) HandleSerialize(ctx context.Context, in Seria
|
||||
return h.With.HandleSerialize(ctx, in, h.Next)
|
||||
}
|
||||
|
||||
// SerializeHandlerFunc provides a wrapper around a function to be used as a serialize middleware handler.
|
||||
// SerializeHandlerFunc provides a wrapper around a function to be used as serializeMiddleware.
|
||||
type SerializeHandlerFunc func(context.Context, SerializeInput) (SerializeOutput, Metadata, error)
|
||||
|
||||
// HandleSerialize calls the wrapped function with the provided arguments.
|
||||
func (s SerializeHandlerFunc) HandleSerialize(ctx context.Context, in SerializeInput) (SerializeOutput, Metadata, error) {
|
||||
return s(ctx, in)
|
||||
func (f SerializeHandlerFunc) HandleSerialize(ctx context.Context, in SerializeInput) (SerializeOutput, Metadata, error) {
|
||||
return f(ctx, in)
|
||||
}
|
||||
|
||||
var _ SerializeHandler = SerializeHandlerFunc(nil)
|
||||
|
||||
Vendored
+15
-15
@@ -66,7 +66,7 @@ github.com/NYTimes/gziphandler
|
||||
# github.com/antlr4-go/antlr/v4 v4.13.0
|
||||
## explicit; go 1.20
|
||||
github.com/antlr4-go/antlr/v4
|
||||
# github.com/aws/aws-sdk-go-v2 v1.40.0
|
||||
# github.com/aws/aws-sdk-go-v2 v1.40.1
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/aws
|
||||
github.com/aws/aws-sdk-go-v2/aws/arn
|
||||
@@ -93,10 +93,10 @@ github.com/aws/aws-sdk-go-v2/internal/shareddefaults
|
||||
github.com/aws/aws-sdk-go-v2/internal/strings
|
||||
github.com/aws/aws-sdk-go-v2/internal/sync/singleflight
|
||||
github.com/aws/aws-sdk-go-v2/internal/timeconv
|
||||
# github.com/aws/aws-sdk-go-v2/config v1.32.2
|
||||
# github.com/aws/aws-sdk-go-v2/config v1.32.3
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/config
|
||||
# github.com/aws/aws-sdk-go-v2/credentials v1.19.2
|
||||
# github.com/aws/aws-sdk-go-v2/credentials v1.19.3
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/credentials
|
||||
github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds
|
||||
@@ -106,56 +106,56 @@ github.com/aws/aws-sdk-go-v2/credentials/logincreds
|
||||
github.com/aws/aws-sdk-go-v2/credentials/processcreds
|
||||
github.com/aws/aws-sdk-go-v2/credentials/ssocreds
|
||||
github.com/aws/aws-sdk-go-v2/credentials/stscreds
|
||||
# github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.14
|
||||
# github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.15
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config
|
||||
# github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.14
|
||||
# github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.15
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources
|
||||
# github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.14
|
||||
# github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.15
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2
|
||||
# github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini
|
||||
# github.com/aws/aws-sdk-go-v2/service/eks v1.76.0
|
||||
# github.com/aws/aws-sdk-go-v2/service/eks v1.76.1
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/service/eks
|
||||
github.com/aws/aws-sdk-go-v2/service/eks/internal/endpoints
|
||||
github.com/aws/aws-sdk-go-v2/service/eks/types
|
||||
# github.com/aws/aws-sdk-go-v2/service/iam v1.52.2
|
||||
# github.com/aws/aws-sdk-go-v2/service/iam v1.52.3
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/service/iam
|
||||
github.com/aws/aws-sdk-go-v2/service/iam/internal/endpoints
|
||||
github.com/aws/aws-sdk-go-v2/service/iam/types
|
||||
# github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3
|
||||
# github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding
|
||||
# github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.14
|
||||
# github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.15
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url
|
||||
# github.com/aws/aws-sdk-go-v2/service/signin v1.0.2
|
||||
# github.com/aws/aws-sdk-go-v2/service/signin v1.0.3
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/service/signin
|
||||
github.com/aws/aws-sdk-go-v2/service/signin/internal/endpoints
|
||||
github.com/aws/aws-sdk-go-v2/service/signin/types
|
||||
# github.com/aws/aws-sdk-go-v2/service/sso v1.30.5
|
||||
# github.com/aws/aws-sdk-go-v2/service/sso v1.30.6
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/service/sso
|
||||
github.com/aws/aws-sdk-go-v2/service/sso/internal/endpoints
|
||||
github.com/aws/aws-sdk-go-v2/service/sso/types
|
||||
# github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.10
|
||||
# github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.11
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc/internal/endpoints
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc/types
|
||||
# github.com/aws/aws-sdk-go-v2/service/sts v1.41.2
|
||||
# github.com/aws/aws-sdk-go-v2/service/sts v1.41.3
|
||||
## explicit; go 1.23
|
||||
github.com/aws/aws-sdk-go-v2/service/sts
|
||||
github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints
|
||||
github.com/aws/aws-sdk-go-v2/service/sts/types
|
||||
# github.com/aws/smithy-go v1.23.2
|
||||
# github.com/aws/smithy-go v1.24.0
|
||||
## explicit; go 1.23
|
||||
github.com/aws/smithy-go
|
||||
github.com/aws/smithy-go/auth
|
||||
|
||||
Reference in New Issue
Block a user