mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 14:20:19 +00:00
rebase: bump the github-dependencies group with 2 updates
Bumps the github-dependencies group with 2 updates: [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) and [github.com/onsi/gomega](https://github.com/onsi/gomega). Updates `github.com/aws/aws-sdk-go` from 1.45.26 to 1.46.3 - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.45.26...v1.46.3) Updates `github.com/onsi/gomega` from 1.28.0 to 1.28.1 - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/gomega/compare/v1.28.0...v1.28.1) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
4b8a05b926
commit
d89c21a5b3
6
go.mod
6
go.mod
@ -4,7 +4,7 @@ go 1.20
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/IBM/keyprotect-go-client v0.12.2
|
github.com/IBM/keyprotect-go-client v0.12.2
|
||||||
github.com/aws/aws-sdk-go v1.45.26
|
github.com/aws/aws-sdk-go v1.46.3
|
||||||
github.com/aws/aws-sdk-go-v2/service/sts v1.23.2
|
github.com/aws/aws-sdk-go-v2/service/sts v1.23.2
|
||||||
github.com/ceph/ceph-csi/api v0.0.0-00010101000000-000000000000
|
github.com/ceph/ceph-csi/api v0.0.0-00010101000000-000000000000
|
||||||
// TODO: API for managing subvolume metadata and snapshot metadata requires `ceph_ci_untested` build-tag
|
// TODO: API for managing subvolume metadata and snapshot metadata requires `ceph_ci_untested` build-tag
|
||||||
@ -23,7 +23,7 @@ require (
|
|||||||
github.com/kubernetes-csi/external-snapshotter/client/v6 v6.3.0
|
github.com/kubernetes-csi/external-snapshotter/client/v6 v6.3.0
|
||||||
github.com/libopenstorage/secrets v0.0.0-20231011182615-5f4b25ceede1
|
github.com/libopenstorage/secrets v0.0.0-20231011182615-5f4b25ceede1
|
||||||
github.com/onsi/ginkgo/v2 v2.13.0
|
github.com/onsi/ginkgo/v2 v2.13.0
|
||||||
github.com/onsi/gomega v1.28.0
|
github.com/onsi/gomega v1.28.1
|
||||||
github.com/pkg/xattr v0.4.9
|
github.com/pkg/xattr v0.4.9
|
||||||
github.com/prometheus/client_golang v1.17.0
|
github.com/prometheus/client_golang v1.17.0
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
@ -85,7 +85,7 @@ require (
|
|||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||||
github.com/google/cel-go v0.16.1 // indirect
|
github.com/google/cel-go v0.16.1 // indirect
|
||||||
github.com/google/gnostic-models v0.6.8 // indirect
|
github.com/google/gnostic-models v0.6.8 // indirect
|
||||||
github.com/google/go-cmp v0.5.9 // indirect
|
github.com/google/go-cmp v0.6.0 // indirect
|
||||||
github.com/google/gofuzz v1.2.0 // indirect
|
github.com/google/gofuzz v1.2.0 // indirect
|
||||||
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
|
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
|
||||||
github.com/gorilla/websocket v1.5.0 // indirect
|
github.com/gorilla/websocket v1.5.0 // indirect
|
||||||
|
11
go.sum
11
go.sum
@ -660,8 +660,8 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkY
|
|||||||
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA=
|
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA=
|
||||||
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
|
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
|
||||||
github.com/aws/aws-sdk-go v1.44.164/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
|
github.com/aws/aws-sdk-go v1.44.164/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
|
||||||
github.com/aws/aws-sdk-go v1.45.26 h1:PJ2NJNY5N/yeobLYe1Y+xLdavBi67ZI8gvph6ftwVCg=
|
github.com/aws/aws-sdk-go v1.46.3 h1:zcrCu14ANOji6m38bUTxYdPqne4EXIvJQ2KXZ5oi9k0=
|
||||||
github.com/aws/aws-sdk-go v1.45.26/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
|
github.com/aws/aws-sdk-go v1.46.3/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
|
||||||
github.com/aws/aws-sdk-go-v2 v1.21.2 h1:+LXZ0sgo8quN9UOKXXzAWRT3FWd4NxeXWOZom9pE7GA=
|
github.com/aws/aws-sdk-go-v2 v1.21.2 h1:+LXZ0sgo8quN9UOKXXzAWRT3FWd4NxeXWOZom9pE7GA=
|
||||||
github.com/aws/aws-sdk-go-v2 v1.21.2/go.mod h1:ErQhvNuEMhJjweavOYhxVkn2RUx7kQXVATHrjKtxIpM=
|
github.com/aws/aws-sdk-go-v2 v1.21.2/go.mod h1:ErQhvNuEMhJjweavOYhxVkn2RUx7kQXVATHrjKtxIpM=
|
||||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.43 h1:nFBQlGtkbPzp/NjZLuFxRqmT91rLJkgvsEQs68h962Y=
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.43 h1:nFBQlGtkbPzp/NjZLuFxRqmT91rLJkgvsEQs68h962Y=
|
||||||
@ -944,8 +944,9 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
|
|||||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
|
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
|
||||||
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||||
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
|
|
||||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||||
|
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
|
||||||
|
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||||
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
|
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
|
||||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||||
github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||||
@ -1245,8 +1246,8 @@ github.com/onsi/gomega v1.27.1/go.mod h1:aHX5xOykVYzWOV4WqQy0sy8BQptgukenXpCXfad
|
|||||||
github.com/onsi/gomega v1.27.3/go.mod h1:5vG284IBtfDAmDyrK+eGyZmUgUlmi+Wngqo557cZ6Gw=
|
github.com/onsi/gomega v1.27.3/go.mod h1:5vG284IBtfDAmDyrK+eGyZmUgUlmi+Wngqo557cZ6Gw=
|
||||||
github.com/onsi/gomega v1.27.4/go.mod h1:riYq/GJKh8hhoM01HN6Vmuy93AarCXCBGpvFDK3q3fQ=
|
github.com/onsi/gomega v1.27.4/go.mod h1:riYq/GJKh8hhoM01HN6Vmuy93AarCXCBGpvFDK3q3fQ=
|
||||||
github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg=
|
github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg=
|
||||||
github.com/onsi/gomega v1.28.0 h1:i2rg/p9n/UqIDAMFUJ6qIUUMcsqOuUHgbpbu235Vr1c=
|
github.com/onsi/gomega v1.28.1 h1:MijcGUbfYuznzK/5R4CPNoUP/9Xvuo20sXfEm6XxoTA=
|
||||||
github.com/onsi/gomega v1.28.0/go.mod h1:A1H2JE76sI14WIP57LMKj7FVfCHx3g3BcZVjJG8bjX8=
|
github.com/onsi/gomega v1.28.1/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
|
||||||
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
||||||
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
|
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
|
||||||
github.com/opencontainers/selinux v1.10.0 h1:rAiKF8hTcgLI3w0DHm6i0ylVVcOrlgR1kK99DRLDhyU=
|
github.com/opencontainers/selinux v1.10.0 h1:rAiKF8hTcgLI3w0DHm6i0ylVVcOrlgR1kK99DRLDhyU=
|
||||||
|
221
vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
generated
vendored
221
vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
generated
vendored
@ -4492,6 +4492,14 @@ var awsPartition = partition{
|
|||||||
Region: "ap-southeast-1",
|
Region: "ap-southeast-1",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "bedrock-eu-central-1",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "bedrock.eu-central-1.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "eu-central-1",
|
||||||
|
},
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "bedrock-fips-us-east-1",
|
Region: "bedrock-fips-us-east-1",
|
||||||
}: endpoint{
|
}: endpoint{
|
||||||
@ -4524,6 +4532,14 @@ var awsPartition = partition{
|
|||||||
Region: "ap-southeast-1",
|
Region: "ap-southeast-1",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "bedrock-runtime-eu-central-1",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "bedrock-runtime.eu-central-1.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "eu-central-1",
|
||||||
|
},
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "bedrock-runtime-fips-us-east-1",
|
Region: "bedrock-runtime-fips-us-east-1",
|
||||||
}: endpoint{
|
}: endpoint{
|
||||||
@ -4572,6 +4588,9 @@ var awsPartition = partition{
|
|||||||
Region: "us-west-2",
|
Region: "us-west-2",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "eu-central-1",
|
||||||
|
}: endpoint{},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-east-1",
|
Region: "us-east-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
@ -11312,6 +11331,12 @@ var awsPartition = partition{
|
|||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-east-2",
|
Region: "us-east-2",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-east-2",
|
||||||
|
Variant: dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "elasticmapreduce.us-east-2.api.aws",
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-east-2",
|
Region: "us-east-2",
|
||||||
Variant: fipsVariant,
|
Variant: fipsVariant,
|
||||||
@ -11525,6 +11550,9 @@ var awsPartition = partition{
|
|||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "ap-northeast-2",
|
Region: "ap-northeast-2",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "ap-northeast-3",
|
||||||
|
}: endpoint{},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "ap-south-1",
|
Region: "ap-south-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
@ -12321,12 +12349,27 @@ var awsPartition = partition{
|
|||||||
},
|
},
|
||||||
"finspace": service{
|
"finspace": service{
|
||||||
Endpoints: serviceEndpoints{
|
Endpoints: serviceEndpoints{
|
||||||
|
endpointKey{
|
||||||
|
Region: "ap-northeast-1",
|
||||||
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "ap-southeast-1",
|
||||||
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "ap-southeast-2",
|
||||||
|
}: endpoint{},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "ca-central-1",
|
Region: "ca-central-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "eu-central-1",
|
||||||
|
}: endpoint{},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "eu-west-1",
|
Region: "eu-west-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "eu-west-2",
|
||||||
|
}: endpoint{},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-east-1",
|
Region: "us-east-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
@ -13428,16 +13471,6 @@ var awsPartition = partition{
|
|||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"gamesparks": service{
|
|
||||||
Endpoints: serviceEndpoints{
|
|
||||||
endpointKey{
|
|
||||||
Region: "ap-northeast-1",
|
|
||||||
}: endpoint{},
|
|
||||||
endpointKey{
|
|
||||||
Region: "us-east-1",
|
|
||||||
}: endpoint{},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"geo": service{
|
"geo": service{
|
||||||
Endpoints: serviceEndpoints{
|
Endpoints: serviceEndpoints{
|
||||||
endpointKey{
|
endpointKey{
|
||||||
@ -15698,12 +15731,45 @@ var awsPartition = partition{
|
|||||||
},
|
},
|
||||||
"iottwinmaker": service{
|
"iottwinmaker": service{
|
||||||
Endpoints: serviceEndpoints{
|
Endpoints: serviceEndpoints{
|
||||||
|
endpointKey{
|
||||||
|
Region: "ap-northeast-1",
|
||||||
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "ap-northeast-2",
|
||||||
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "ap-south-1",
|
||||||
|
}: endpoint{},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "ap-southeast-1",
|
Region: "ap-southeast-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "ap-southeast-2",
|
Region: "ap-southeast-2",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "api-ap-northeast-1",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "api.iottwinmaker.ap-northeast-1.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "ap-northeast-1",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "api-ap-northeast-2",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "api.iottwinmaker.ap-northeast-2.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "ap-northeast-2",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "api-ap-south-1",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "api.iottwinmaker.ap-south-1.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "ap-south-1",
|
||||||
|
},
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "api-ap-southeast-1",
|
Region: "api-ap-southeast-1",
|
||||||
}: endpoint{
|
}: endpoint{
|
||||||
@ -15752,6 +15818,30 @@ var awsPartition = partition{
|
|||||||
Region: "us-west-2",
|
Region: "us-west-2",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "data-ap-northeast-1",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "data.iottwinmaker.ap-northeast-1.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "ap-northeast-1",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "data-ap-northeast-2",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "data.iottwinmaker.ap-northeast-2.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "ap-northeast-2",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "data-ap-south-1",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "data.iottwinmaker.ap-south-1.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "ap-south-1",
|
||||||
|
},
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "data-ap-southeast-1",
|
Region: "data-ap-southeast-1",
|
||||||
}: endpoint{
|
}: endpoint{
|
||||||
@ -18118,6 +18208,9 @@ var awsPartition = partition{
|
|||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "il-central-1",
|
Region: "il-central-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "me-central-1",
|
||||||
|
}: endpoint{},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "me-south-1",
|
Region: "me-south-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
@ -33252,9 +33345,21 @@ var awscnPartition = partition{
|
|||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "cn-north-1",
|
Region: "cn-north-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "cn-north-1",
|
||||||
|
Variant: dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "elasticmapreduce.cn-north-1.api.amazonwebservices.com.cn",
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "cn-northwest-1",
|
Region: "cn-northwest-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "cn-northwest-1",
|
||||||
|
Variant: dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "elasticmapreduce.cn-northwest-1.api.amazonwebservices.com.cn",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"emr-containers": service{
|
"emr-containers": service{
|
||||||
@ -34287,9 +34392,21 @@ var awscnPartition = partition{
|
|||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "cn-north-1",
|
Region: "cn-north-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "cn-north-1",
|
||||||
|
Variant: dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "states.cn-north-1.api.amazonwebservices.com.cn",
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "cn-northwest-1",
|
Region: "cn-northwest-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "cn-northwest-1",
|
||||||
|
Variant: dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "states.cn-northwest-1.api.amazonwebservices.com.cn",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"storagegateway": service{
|
"storagegateway": service{
|
||||||
@ -36778,6 +36895,12 @@ var awsusgovPartition = partition{
|
|||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-gov-east-1",
|
Region: "us-gov-east-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-east-1",
|
||||||
|
Variant: dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "elasticmapreduce.us-gov-east-1.api.aws",
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-gov-east-1",
|
Region: "us-gov-east-1",
|
||||||
Variant: fipsVariant,
|
Variant: fipsVariant,
|
||||||
@ -36789,6 +36912,13 @@ var awsusgovPartition = partition{
|
|||||||
}: endpoint{
|
}: endpoint{
|
||||||
Protocols: []string{"https"},
|
Protocols: []string{"https"},
|
||||||
},
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-west-1",
|
||||||
|
Variant: dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "elasticmapreduce.us-gov-west-1.api.aws",
|
||||||
|
Protocols: []string{"https"},
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-gov-west-1",
|
Region: "us-gov-west-1",
|
||||||
Variant: fipsVariant,
|
Variant: fipsVariant,
|
||||||
@ -37198,21 +37328,45 @@ var awsusgovPartition = partition{
|
|||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-gov-east-1",
|
Region: "us-gov-east-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-east-1",
|
||||||
|
Variant: dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "glue.us-gov-east-1.api.aws",
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-gov-east-1",
|
Region: "us-gov-east-1",
|
||||||
Variant: fipsVariant,
|
Variant: fipsVariant,
|
||||||
}: endpoint{
|
}: endpoint{
|
||||||
Hostname: "glue-fips.us-gov-east-1.amazonaws.com",
|
Hostname: "glue-fips.us-gov-east-1.amazonaws.com",
|
||||||
},
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-east-1",
|
||||||
|
Variant: fipsVariant | dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "glue-fips.us-gov-east-1.api.aws",
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-gov-west-1",
|
Region: "us-gov-west-1",
|
||||||
}: endpoint{},
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-west-1",
|
||||||
|
Variant: dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "glue.us-gov-west-1.api.aws",
|
||||||
|
},
|
||||||
endpointKey{
|
endpointKey{
|
||||||
Region: "us-gov-west-1",
|
Region: "us-gov-west-1",
|
||||||
Variant: fipsVariant,
|
Variant: fipsVariant,
|
||||||
}: endpoint{
|
}: endpoint{
|
||||||
Hostname: "glue-fips.us-gov-west-1.amazonaws.com",
|
Hostname: "glue-fips.us-gov-west-1.amazonaws.com",
|
||||||
},
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-west-1",
|
||||||
|
Variant: fipsVariant | dualStackVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "glue-fips.us-gov-west-1.api.aws",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"greengrass": service{
|
"greengrass": service{
|
||||||
@ -39057,6 +39211,46 @@ var awsusgovPartition = partition{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"resiliencehub": service{
|
||||||
|
Endpoints: serviceEndpoints{
|
||||||
|
endpointKey{
|
||||||
|
Region: "fips-us-gov-east-1",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "resiliencehub-fips.us-gov-east-1.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "us-gov-east-1",
|
||||||
|
},
|
||||||
|
Deprecated: boxedTrue,
|
||||||
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "fips-us-gov-west-1",
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "resiliencehub-fips.us-gov-west-1.amazonaws.com",
|
||||||
|
CredentialScope: credentialScope{
|
||||||
|
Region: "us-gov-west-1",
|
||||||
|
},
|
||||||
|
Deprecated: boxedTrue,
|
||||||
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-east-1",
|
||||||
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-east-1",
|
||||||
|
Variant: fipsVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "resiliencehub-fips.us-gov-east-1.amazonaws.com",
|
||||||
|
},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-west-1",
|
||||||
|
}: endpoint{},
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-gov-west-1",
|
||||||
|
Variant: fipsVariant,
|
||||||
|
}: endpoint{
|
||||||
|
Hostname: "resiliencehub-fips.us-gov-west-1.amazonaws.com",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
"resource-explorer-2": service{
|
"resource-explorer-2": service{
|
||||||
Defaults: endpointDefaults{
|
Defaults: endpointDefaults{
|
||||||
defaultKey{}: endpoint{
|
defaultKey{}: endpoint{
|
||||||
@ -41816,6 +42010,13 @@ var awsisobPartition = partition{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"api.sagemaker": service{
|
||||||
|
Endpoints: serviceEndpoints{
|
||||||
|
endpointKey{
|
||||||
|
Region: "us-isob-east-1",
|
||||||
|
}: endpoint{},
|
||||||
|
},
|
||||||
|
},
|
||||||
"appconfig": service{
|
"appconfig": service{
|
||||||
Endpoints: serviceEndpoints{
|
Endpoints: serviceEndpoints{
|
||||||
endpointKey{
|
endpointKey{
|
||||||
|
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
@ -5,4 +5,4 @@ package aws
|
|||||||
const SDKName = "aws-sdk-go"
|
const SDKName = "aws-sdk-go"
|
||||||
|
|
||||||
// SDKVersion is the version of this SDK
|
// SDKVersion is the version of this SDK
|
||||||
const SDKVersion = "1.45.26"
|
const SDKVersion = "1.46.3"
|
||||||
|
38
vendor/github.com/google/go-cmp/cmp/compare.go
generated
vendored
38
vendor/github.com/google/go-cmp/cmp/compare.go
generated
vendored
@ -5,7 +5,7 @@
|
|||||||
// Package cmp determines equality of values.
|
// Package cmp determines equality of values.
|
||||||
//
|
//
|
||||||
// This package is intended to be a more powerful and safer alternative to
|
// This package is intended to be a more powerful and safer alternative to
|
||||||
// reflect.DeepEqual for comparing whether two values are semantically equal.
|
// [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 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
|
// it may panic if it cannot compare the values. Its propensity towards
|
||||||
// panicking means that its unsuitable for production environments where a
|
// panicking means that its unsuitable for production environments where a
|
||||||
@ -18,16 +18,17 @@
|
|||||||
// For example, an equality function may report floats as equal so long as
|
// For example, an equality function may report floats as equal so long as
|
||||||
// they are within some tolerance of each other.
|
// they are within some tolerance of each other.
|
||||||
//
|
//
|
||||||
// - Types with an Equal method may use that method to determine equality.
|
// - Types with an Equal method (e.g., [time.Time.Equal]) may use that method
|
||||||
// This allows package authors to determine the equality operation
|
// to determine equality. This allows package authors to determine
|
||||||
// for the types that they define.
|
// the equality operation for the types that they define.
|
||||||
//
|
//
|
||||||
// - If no custom equality functions are used and no Equal method is defined,
|
// - If no custom equality functions are used and no Equal method is defined,
|
||||||
// equality is determined by recursively comparing the primitive kinds on
|
// equality is determined by recursively comparing the primitive kinds on
|
||||||
// both values, much like reflect.DeepEqual. Unlike reflect.DeepEqual,
|
// both values, much like [reflect.DeepEqual]. Unlike [reflect.DeepEqual],
|
||||||
// unexported fields are not compared by default; they result in panics
|
// unexported fields are not compared by default; they result in panics
|
||||||
// unless suppressed by using an Ignore option (see cmpopts.IgnoreUnexported)
|
// unless suppressed by using an [Ignore] option
|
||||||
// or explicitly compared using the Exporter option.
|
// (see [github.com/google/go-cmp/cmp/cmpopts.IgnoreUnexported])
|
||||||
|
// or explicitly compared using the [Exporter] option.
|
||||||
package cmp
|
package cmp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -45,14 +46,14 @@ import (
|
|||||||
// Equal reports whether x and y are equal by recursively applying the
|
// 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:
|
// 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
|
// - Let S be the set of all [Ignore], [Transformer], and [Comparer] options that
|
||||||
// remain after applying all path filters, value filters, and type filters.
|
// 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 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,
|
// If the number of [Transformer] and [Comparer] options in S is non-zero,
|
||||||
// then Equal panics because it is ambiguous which option to use.
|
// then Equal panics because it is ambiguous which option to use.
|
||||||
// If S contains a single Transformer, then use that to transform
|
// If S contains a single [Transformer], then use that to transform
|
||||||
// the current values and recursively call Equal on the output values.
|
// 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.
|
// If S contains a single [Comparer], then use that to compare the current values.
|
||||||
// Otherwise, evaluation proceeds to the next rule.
|
// Otherwise, evaluation proceeds to the next rule.
|
||||||
//
|
//
|
||||||
// - If the values have an Equal method of the form "(T) Equal(T) bool" or
|
// - If the values have an Equal method of the form "(T) Equal(T) bool" or
|
||||||
@ -66,21 +67,22 @@ import (
|
|||||||
// Functions are only equal if they are both nil, otherwise they are unequal.
|
// 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.
|
// Structs are equal if recursively calling Equal on all fields report equal.
|
||||||
// If a struct contains unexported fields, Equal panics unless an Ignore option
|
// If a struct contains unexported fields, Equal panics unless an [Ignore] option
|
||||||
// (e.g., cmpopts.IgnoreUnexported) ignores that field or the Exporter option
|
// (e.g., [github.com/google/go-cmp/cmp/cmpopts.IgnoreUnexported]) ignores that field
|
||||||
// explicitly permits comparing the unexported 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
|
// 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.
|
// 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,
|
// Empty non-nil slices and nil slices are not equal; to equate empty slices,
|
||||||
// consider using cmpopts.EquateEmpty.
|
// consider using [github.com/google/go-cmp/cmp/cmpopts.EquateEmpty].
|
||||||
//
|
//
|
||||||
// Maps are equal if they are both nil or both non-nil, where recursively
|
// Maps are equal if they are both nil or both non-nil, where recursively
|
||||||
// calling Equal on all non-ignored map entries report equal.
|
// calling Equal on all non-ignored map entries report equal.
|
||||||
// Map keys are equal according to the == operator.
|
// Map keys are equal according to the == operator.
|
||||||
// To use custom comparisons for map keys, consider using cmpopts.SortMaps.
|
// 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,
|
// Empty non-nil maps and nil maps are not equal; to equate empty maps,
|
||||||
// consider using cmpopts.EquateEmpty.
|
// consider using [github.com/google/go-cmp/cmp/cmpopts.EquateEmpty].
|
||||||
//
|
//
|
||||||
// Pointers and interfaces are equal if they are both nil or both non-nil,
|
// Pointers and interfaces are equal if they are both nil or both non-nil,
|
||||||
// where they have the same underlying concrete type and recursively
|
// where they have the same underlying concrete type and recursively
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !purego
|
|
||||||
// +build !purego
|
|
||||||
|
|
||||||
package cmp
|
package cmp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -12,8 +9,6 @@ import (
|
|||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const supportExporters = true
|
|
||||||
|
|
||||||
// retrieveUnexportedField uses unsafe to forcibly retrieve any field from
|
// retrieveUnexportedField uses unsafe to forcibly retrieve any field from
|
||||||
// a struct such that the value has read-write permissions.
|
// a struct such that the value has read-write permissions.
|
||||||
//
|
//
|
16
vendor/github.com/google/go-cmp/cmp/export_panic.go
generated
vendored
16
vendor/github.com/google/go-cmp/cmp/export_panic.go
generated
vendored
@ -1,16 +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 purego
|
|
||||||
// +build purego
|
|
||||||
|
|
||||||
package cmp
|
|
||||||
|
|
||||||
import "reflect"
|
|
||||||
|
|
||||||
const supportExporters = false
|
|
||||||
|
|
||||||
func retrieveUnexportedField(reflect.Value, reflect.StructField, bool) reflect.Value {
|
|
||||||
panic("no support for forcibly accessing unexported fields")
|
|
||||||
}
|
|
@ -2,9 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !purego
|
|
||||||
// +build !purego
|
|
||||||
|
|
||||||
package value
|
package value
|
||||||
|
|
||||||
import (
|
import (
|
34
vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go
generated
vendored
34
vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go
generated
vendored
@ -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.
|
|
||||||
|
|
||||||
//go:build purego
|
|
||||||
// +build purego
|
|
||||||
|
|
||||||
package value
|
|
||||||
|
|
||||||
import "reflect"
|
|
||||||
|
|
||||||
// Pointer is an opaque typed pointer and is guaranteed to be comparable.
|
|
||||||
type Pointer struct {
|
|
||||||
p uintptr
|
|
||||||
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 {
|
|
||||||
// NOTE: Storing a pointer as an uintptr is technically incorrect as it
|
|
||||||
// assumes that the GC implementation does not use a moving collector.
|
|
||||||
return Pointer{v.Pointer(), v.Type()}
|
|
||||||
}
|
|
||||||
|
|
||||||
// IsNil reports whether the pointer is nil.
|
|
||||||
func (p Pointer) IsNil() bool {
|
|
||||||
return p.p == 0
|
|
||||||
}
|
|
||||||
|
|
||||||
// Uintptr returns the pointer as a uintptr.
|
|
||||||
func (p Pointer) Uintptr() uintptr {
|
|
||||||
return p.p
|
|
||||||
}
|
|
84
vendor/github.com/google/go-cmp/cmp/options.go
generated
vendored
84
vendor/github.com/google/go-cmp/cmp/options.go
generated
vendored
@ -13,15 +13,15 @@ import (
|
|||||||
"github.com/google/go-cmp/cmp/internal/function"
|
"github.com/google/go-cmp/cmp/internal/function"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Option configures for specific behavior of Equal and Diff. In particular,
|
// Option configures for specific behavior of [Equal] and [Diff]. In particular,
|
||||||
// the fundamental Option functions (Ignore, Transformer, and Comparer),
|
// the fundamental Option functions ([Ignore], [Transformer], and [Comparer]),
|
||||||
// configure how equality is determined.
|
// configure how equality is determined.
|
||||||
//
|
//
|
||||||
// The fundamental options may be composed with filters (FilterPath and
|
// The fundamental options may be composed with filters ([FilterPath] and
|
||||||
// FilterValues) to control the scope over which they are applied.
|
// [FilterValues]) to control the scope over which they are applied.
|
||||||
//
|
//
|
||||||
// The cmp/cmpopts package provides helper functions for creating options that
|
// The [github.com/google/go-cmp/cmp/cmpopts] package provides helper functions
|
||||||
// may be used with Equal and Diff.
|
// for creating options that may be used with [Equal] and [Diff].
|
||||||
type Option interface {
|
type Option interface {
|
||||||
// filter applies all filters and returns the option that remains.
|
// filter applies all filters and returns the option that remains.
|
||||||
// Each option may only read s.curPath and call s.callTTBFunc.
|
// Each option may only read s.curPath and call s.callTTBFunc.
|
||||||
@ -56,9 +56,9 @@ type core struct{}
|
|||||||
|
|
||||||
func (core) isCore() {}
|
func (core) isCore() {}
|
||||||
|
|
||||||
// Options is a list of Option values that also satisfies the Option interface.
|
// Options is a list of [Option] values that also satisfies the [Option] interface.
|
||||||
// Helper comparison packages may return an Options value when packing multiple
|
// Helper comparison packages may return an Options value when packing multiple
|
||||||
// Option values into a single Option. When this package processes an Options,
|
// [Option] values into a single [Option]. When this package processes an Options,
|
||||||
// it will be implicitly expanded into a flat list.
|
// it will be implicitly expanded into a flat list.
|
||||||
//
|
//
|
||||||
// Applying a filter on an Options is equivalent to applying that same filter
|
// Applying a filter on an Options is equivalent to applying that same filter
|
||||||
@ -105,16 +105,16 @@ func (opts Options) String() string {
|
|||||||
return fmt.Sprintf("Options{%s}", strings.Join(ss, ", "))
|
return fmt.Sprintf("Options{%s}", strings.Join(ss, ", "))
|
||||||
}
|
}
|
||||||
|
|
||||||
// FilterPath returns a new Option where opt is only evaluated if filter f
|
// FilterPath returns a new [Option] where opt is only evaluated if filter f
|
||||||
// returns true for the current Path in the value tree.
|
// 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
|
// 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
|
// provides an opportunity to ignore such cases. The filter function must be
|
||||||
// symmetric such that the filter result is identical regardless of whether the
|
// symmetric such that the filter result is identical regardless of whether the
|
||||||
// missing value is from x or y.
|
// missing value is from x or y.
|
||||||
//
|
//
|
||||||
// The option passed in may be an Ignore, Transformer, Comparer, Options, or
|
// The option passed in may be an [Ignore], [Transformer], [Comparer], [Options], or
|
||||||
// a previously filtered Option.
|
// a previously filtered [Option].
|
||||||
func FilterPath(f func(Path) bool, opt Option) Option {
|
func FilterPath(f func(Path) bool, opt Option) Option {
|
||||||
if f == nil {
|
if f == nil {
|
||||||
panic("invalid path filter function")
|
panic("invalid path filter function")
|
||||||
@ -142,7 +142,7 @@ func (f pathFilter) String() string {
|
|||||||
return fmt.Sprintf("FilterPath(%s, %v)", function.NameOf(reflect.ValueOf(f.fnc)), f.opt)
|
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,
|
// 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
|
// 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
|
// 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
|
// the type of the values is not assignable to T, then this filter implicitly
|
||||||
@ -154,8 +154,8 @@ func (f pathFilter) String() string {
|
|||||||
// If T is an interface, it is possible that f is called with two values with
|
// If T is an interface, it is possible that f is called with two values with
|
||||||
// different concrete types that both implement T.
|
// different concrete types that both implement T.
|
||||||
//
|
//
|
||||||
// The option passed in may be an Ignore, Transformer, Comparer, Options, or
|
// The option passed in may be an [Ignore], [Transformer], [Comparer], [Options], or
|
||||||
// a previously filtered Option.
|
// a previously filtered [Option].
|
||||||
func FilterValues(f interface{}, opt Option) Option {
|
func FilterValues(f interface{}, opt Option) Option {
|
||||||
v := reflect.ValueOf(f)
|
v := reflect.ValueOf(f)
|
||||||
if !function.IsType(v.Type(), function.ValueFilter) || v.IsNil() {
|
if !function.IsType(v.Type(), function.ValueFilter) || v.IsNil() {
|
||||||
@ -192,9 +192,9 @@ func (f valuesFilter) String() string {
|
|||||||
return fmt.Sprintf("FilterValues(%s, %v)", function.NameOf(f.fnc), f.opt)
|
return fmt.Sprintf("FilterValues(%s, %v)", function.NameOf(f.fnc), f.opt)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ignore is an Option that causes all comparisons to be ignored.
|
// Ignore is an [Option] that causes all comparisons to be ignored.
|
||||||
// This value is intended to be combined with FilterPath or FilterValues.
|
// This value is intended to be combined with [FilterPath] or [FilterValues].
|
||||||
// It is an error to pass an unfiltered Ignore option to Equal.
|
// It is an error to pass an unfiltered Ignore option to [Equal].
|
||||||
func Ignore() Option { return ignore{} }
|
func Ignore() Option { return ignore{} }
|
||||||
|
|
||||||
type ignore struct{ core }
|
type ignore struct{ core }
|
||||||
@ -234,6 +234,8 @@ func (validator) apply(s *state, vx, vy reflect.Value) {
|
|||||||
name = fmt.Sprintf("%q.%v", t.PkgPath(), t.Name()) // e.g., "path/to/package".MyType
|
name = fmt.Sprintf("%q.%v", t.PkgPath(), t.Name()) // e.g., "path/to/package".MyType
|
||||||
if _, ok := reflect.New(t).Interface().(error); ok {
|
if _, ok := reflect.New(t).Interface().(error); ok {
|
||||||
help = "consider using cmpopts.EquateErrors to compare error values"
|
help = "consider using cmpopts.EquateErrors to compare error values"
|
||||||
|
} else if t.Comparable() {
|
||||||
|
help = "consider using cmpopts.EquateComparable to compare comparable Go types"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Unnamed type with unexported fields. Derive PkgPath from field.
|
// Unnamed type with unexported fields. Derive PkgPath from field.
|
||||||
@ -254,7 +256,7 @@ const identRx = `[_\p{L}][_\p{L}\p{N}]*`
|
|||||||
|
|
||||||
var identsRx = regexp.MustCompile(`^` + identRx + `(\.` + identRx + `)*$`)
|
var identsRx = regexp.MustCompile(`^` + identRx + `(\.` + identRx + `)*$`)
|
||||||
|
|
||||||
// Transformer returns an Option that applies a transformation function that
|
// Transformer returns an [Option] that applies a transformation function that
|
||||||
// converts values of a certain type into that of another.
|
// converts values of a certain type into that of another.
|
||||||
//
|
//
|
||||||
// The transformer f must be a function "func(T) R" that converts values of
|
// The transformer f must be a function "func(T) R" that converts values of
|
||||||
@ -265,13 +267,14 @@ var identsRx = regexp.MustCompile(`^` + identRx + `(\.` + identRx + `)*$`)
|
|||||||
// same transform to the output of itself (e.g., in the case where 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
|
// 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
|
// a transformer is applicable only if that exact transformer is not already
|
||||||
// in the tail of the Path since the last non-Transform step.
|
// in the tail of the [Path] since the last non-[Transform] step.
|
||||||
// For situations where the implicit filter is still insufficient,
|
// For situations where the implicit filter is still insufficient,
|
||||||
// consider using cmpopts.AcyclicTransformer, which adds a filter
|
// consider using [github.com/google/go-cmp/cmp/cmpopts.AcyclicTransformer],
|
||||||
// to prevent the transformer from being recursively applied upon itself.
|
// 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
|
// 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).
|
// transformation [PathStep] (and eventually shown in the [Diff] output).
|
||||||
// The name must be a valid identifier or qualified identifier in Go syntax.
|
// The name must be a valid identifier or qualified identifier in Go syntax.
|
||||||
// If empty, an arbitrary name is used.
|
// If empty, an arbitrary name is used.
|
||||||
func Transformer(name string, f interface{}) Option {
|
func Transformer(name string, f interface{}) Option {
|
||||||
@ -329,7 +332,7 @@ func (tr transformer) String() string {
|
|||||||
return fmt.Sprintf("Transformer(%s, %s)", tr.name, function.NameOf(tr.fnc))
|
return fmt.Sprintf("Transformer(%s, %s)", tr.name, function.NameOf(tr.fnc))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Comparer returns an Option that determines whether two values are equal
|
// Comparer returns an [Option] that determines whether two values are equal
|
||||||
// to each other.
|
// to each other.
|
||||||
//
|
//
|
||||||
// The comparer f must be a function "func(T, T) bool" and is implicitly
|
// The comparer f must be a function "func(T, T) bool" and is implicitly
|
||||||
@ -377,35 +380,32 @@ func (cm comparer) String() string {
|
|||||||
return fmt.Sprintf("Comparer(%s)", function.NameOf(cm.fnc))
|
return fmt.Sprintf("Comparer(%s)", function.NameOf(cm.fnc))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exporter returns an Option that specifies whether Equal is allowed to
|
// Exporter returns an [Option] that specifies whether [Equal] is allowed to
|
||||||
// introspect into the unexported fields of certain struct types.
|
// introspect into the unexported fields of certain struct types.
|
||||||
//
|
//
|
||||||
// Users of this option must understand that comparing on unexported fields
|
// Users of this option must understand that comparing on unexported fields
|
||||||
// from external packages is not safe since changes in the internal
|
// from external packages is not safe since changes in the internal
|
||||||
// implementation of some external package may cause the result of Equal
|
// 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
|
// 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
|
// defined in an internal package where the semantic meaning of an unexported
|
||||||
// field is in the control of the user.
|
// field is in the control of the user.
|
||||||
//
|
//
|
||||||
// In many cases, a custom Comparer should be used instead that defines
|
// 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
|
// equality as a function of the public API of a type rather than the underlying
|
||||||
// unexported implementation.
|
// unexported implementation.
|
||||||
//
|
//
|
||||||
// For example, the reflect.Type documentation defines equality to be determined
|
// For example, the [reflect.Type] documentation defines equality to be determined
|
||||||
// by the == operator on the interface (essentially performing a shallow pointer
|
// by the == operator on the interface (essentially performing a shallow pointer
|
||||||
// comparison) and most attempts to compare *regexp.Regexp types are interested
|
// comparison) and most attempts to compare *[regexp.Regexp] types are interested
|
||||||
// in only checking that the regular expression strings are equal.
|
// in only checking that the regular expression strings are equal.
|
||||||
// Both of these are accomplished using Comparers:
|
// Both of these are accomplished using [Comparer] options:
|
||||||
//
|
//
|
||||||
// Comparer(func(x, y reflect.Type) bool { return x == y })
|
// Comparer(func(x, y reflect.Type) bool { return x == y })
|
||||||
// Comparer(func(x, y *regexp.Regexp) bool { return x.String() == y.String() })
|
// Comparer(func(x, y *regexp.Regexp) bool { return x.String() == y.String() })
|
||||||
//
|
//
|
||||||
// In other cases, the cmpopts.IgnoreUnexported option can be used to ignore
|
// In other cases, the [github.com/google/go-cmp/cmp/cmpopts.IgnoreUnexported]
|
||||||
// all unexported fields on specified struct types.
|
// option can be used to ignore all unexported fields on specified struct types.
|
||||||
func Exporter(f func(reflect.Type) bool) Option {
|
func Exporter(f func(reflect.Type) bool) Option {
|
||||||
if !supportExporters {
|
|
||||||
panic("Exporter is not supported on purego builds")
|
|
||||||
}
|
|
||||||
return exporter(f)
|
return exporter(f)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -415,10 +415,10 @@ func (exporter) filter(_ *state, _ reflect.Type, _, _ reflect.Value) applicableO
|
|||||||
panic("not implemented")
|
panic("not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
// AllowUnexported returns an Options that allows Equal to forcibly introspect
|
// AllowUnexported returns an [Option] that allows [Equal] to forcibly introspect
|
||||||
// unexported fields of the specified struct types.
|
// unexported fields of the specified struct types.
|
||||||
//
|
//
|
||||||
// See Exporter for the proper use of this option.
|
// See [Exporter] for the proper use of this option.
|
||||||
func AllowUnexported(types ...interface{}) Option {
|
func AllowUnexported(types ...interface{}) Option {
|
||||||
m := make(map[reflect.Type]bool)
|
m := make(map[reflect.Type]bool)
|
||||||
for _, typ := range types {
|
for _, typ := range types {
|
||||||
@ -432,7 +432,7 @@ func AllowUnexported(types ...interface{}) Option {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Result represents the comparison result for a single node and
|
// Result represents the comparison result for a single node and
|
||||||
// is provided by cmp when calling Report (see Reporter).
|
// is provided by cmp when calling Report (see [Reporter]).
|
||||||
type Result struct {
|
type Result struct {
|
||||||
_ [0]func() // Make Result incomparable
|
_ [0]func() // Make Result incomparable
|
||||||
flags resultFlags
|
flags resultFlags
|
||||||
@ -445,7 +445,7 @@ func (r Result) Equal() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ByIgnore reports whether the node is equal because it was ignored.
|
// ByIgnore reports whether the node is equal because it was ignored.
|
||||||
// This never reports true if Equal reports false.
|
// This never reports true if [Result.Equal] reports false.
|
||||||
func (r Result) ByIgnore() bool {
|
func (r Result) ByIgnore() bool {
|
||||||
return r.flags&reportByIgnore != 0
|
return r.flags&reportByIgnore != 0
|
||||||
}
|
}
|
||||||
@ -455,7 +455,7 @@ func (r Result) ByMethod() bool {
|
|||||||
return r.flags&reportByMethod != 0
|
return r.flags&reportByMethod != 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// ByFunc reports whether a Comparer function determined equality.
|
// ByFunc reports whether a [Comparer] function determined equality.
|
||||||
func (r Result) ByFunc() bool {
|
func (r Result) ByFunc() bool {
|
||||||
return r.flags&reportByFunc != 0
|
return r.flags&reportByFunc != 0
|
||||||
}
|
}
|
||||||
@ -478,7 +478,7 @@ const (
|
|||||||
reportByCycle
|
reportByCycle
|
||||||
)
|
)
|
||||||
|
|
||||||
// Reporter is an Option that can be passed to Equal. When Equal traverses
|
// 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
|
// 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
|
// 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
|
// either compared (determined to be equal or not equal) or ignored and reported
|
||||||
|
46
vendor/github.com/google/go-cmp/cmp/path.go
generated
vendored
46
vendor/github.com/google/go-cmp/cmp/path.go
generated
vendored
@ -14,9 +14,9 @@ import (
|
|||||||
"github.com/google/go-cmp/cmp/internal/value"
|
"github.com/google/go-cmp/cmp/internal/value"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Path is a list of PathSteps describing the sequence of operations to get
|
// 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.
|
// from some root type to the current position in the value tree.
|
||||||
// The first Path element is always an operation-less PathStep that exists
|
// The first Path element is always an operation-less [PathStep] that exists
|
||||||
// simply to identify the initial type.
|
// simply to identify the initial type.
|
||||||
//
|
//
|
||||||
// When traversing structs with embedded structs, the embedded struct will
|
// When traversing structs with embedded structs, the embedded struct will
|
||||||
@ -29,8 +29,13 @@ type Path []PathStep
|
|||||||
// a value's tree structure. Users of this package never need to implement
|
// 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.
|
// these types as values of this type will be returned by this package.
|
||||||
//
|
//
|
||||||
// Implementations of this interface are
|
// Implementations of this interface:
|
||||||
// StructField, SliceIndex, MapIndex, Indirect, TypeAssertion, and Transform.
|
// - [StructField]
|
||||||
|
// - [SliceIndex]
|
||||||
|
// - [MapIndex]
|
||||||
|
// - [Indirect]
|
||||||
|
// - [TypeAssertion]
|
||||||
|
// - [Transform]
|
||||||
type PathStep interface {
|
type PathStep interface {
|
||||||
String() string
|
String() string
|
||||||
|
|
||||||
@ -70,8 +75,9 @@ func (pa *Path) pop() {
|
|||||||
*pa = (*pa)[:len(*pa)-1]
|
*pa = (*pa)[:len(*pa)-1]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Last returns the last PathStep in the Path.
|
// Last returns the last [PathStep] in the Path.
|
||||||
// If the path is empty, this returns a non-nil PathStep that reports a nil Type.
|
// If the path is empty, this returns a non-nil [PathStep]
|
||||||
|
// that reports a nil [PathStep.Type].
|
||||||
func (pa Path) Last() PathStep {
|
func (pa Path) Last() PathStep {
|
||||||
return pa.Index(-1)
|
return pa.Index(-1)
|
||||||
}
|
}
|
||||||
@ -79,7 +85,8 @@ func (pa Path) Last() PathStep {
|
|||||||
// Index returns the ith step in the Path and supports negative indexing.
|
// 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
|
// 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.
|
// 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 Type.
|
// If index is invalid, this returns a non-nil [PathStep]
|
||||||
|
// that reports a nil [PathStep.Type].
|
||||||
func (pa Path) Index(i int) PathStep {
|
func (pa Path) Index(i int) PathStep {
|
||||||
if i < 0 {
|
if i < 0 {
|
||||||
i = len(pa) + i
|
i = len(pa) + i
|
||||||
@ -168,7 +175,8 @@ func (ps pathStep) String() string {
|
|||||||
return fmt.Sprintf("{%s}", s)
|
return fmt.Sprintf("{%s}", s)
|
||||||
}
|
}
|
||||||
|
|
||||||
// StructField represents a struct field access on a field called Name.
|
// StructField is a [PathStep] that represents a struct field access
|
||||||
|
// on a field called [StructField.Name].
|
||||||
type StructField struct{ *structField }
|
type StructField struct{ *structField }
|
||||||
type structField struct {
|
type structField struct {
|
||||||
pathStep
|
pathStep
|
||||||
@ -204,10 +212,11 @@ func (sf StructField) String() string { return fmt.Sprintf(".%s", sf.name) }
|
|||||||
func (sf StructField) Name() string { return sf.name }
|
func (sf StructField) Name() string { return sf.name }
|
||||||
|
|
||||||
// Index is the index of the field in the parent struct type.
|
// Index is the index of the field in the parent struct type.
|
||||||
// See reflect.Type.Field.
|
// See [reflect.Type.Field].
|
||||||
func (sf StructField) Index() int { return sf.idx }
|
func (sf StructField) Index() int { return sf.idx }
|
||||||
|
|
||||||
// SliceIndex is an index operation on a slice or array at some index Key.
|
// 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{ *sliceIndex }
|
||||||
type sliceIndex struct {
|
type sliceIndex struct {
|
||||||
pathStep
|
pathStep
|
||||||
@ -247,12 +256,12 @@ func (si SliceIndex) Key() int {
|
|||||||
// all of the indexes to be shifted. If an index is -1, then that
|
// 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.
|
// indicates that the element does not exist in the associated slice.
|
||||||
//
|
//
|
||||||
// Key is guaranteed to return -1 if and only if the indexes returned
|
// [SliceIndex.Key] is guaranteed to return -1 if and only if the indexes
|
||||||
// by SplitKeys are not the same. SplitKeys will never return -1 for
|
// returned by SplitKeys are not the same. SplitKeys will never return -1 for
|
||||||
// both indexes.
|
// both indexes.
|
||||||
func (si SliceIndex) SplitKeys() (ix, iy int) { return si.xkey, si.ykey }
|
func (si SliceIndex) SplitKeys() (ix, iy int) { return si.xkey, si.ykey }
|
||||||
|
|
||||||
// MapIndex is an index operation on a map at some index Key.
|
// MapIndex is a [PathStep] that represents an index operation on a map at some index Key.
|
||||||
type MapIndex struct{ *mapIndex }
|
type MapIndex struct{ *mapIndex }
|
||||||
type mapIndex struct {
|
type mapIndex struct {
|
||||||
pathStep
|
pathStep
|
||||||
@ -266,7 +275,7 @@ func (mi MapIndex) String() string { return fmt.Sprintf("[%#v]",
|
|||||||
// Key is the value of the map key.
|
// Key is the value of the map key.
|
||||||
func (mi MapIndex) Key() reflect.Value { return mi.key }
|
func (mi MapIndex) Key() reflect.Value { return mi.key }
|
||||||
|
|
||||||
// Indirect represents pointer indirection on the parent type.
|
// Indirect is a [PathStep] that represents pointer indirection on the parent type.
|
||||||
type Indirect struct{ *indirect }
|
type Indirect struct{ *indirect }
|
||||||
type indirect struct {
|
type indirect struct {
|
||||||
pathStep
|
pathStep
|
||||||
@ -276,7 +285,7 @@ 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) Values() (vx, vy reflect.Value) { return in.vx, in.vy }
|
||||||
func (in Indirect) String() string { return "*" }
|
func (in Indirect) String() string { return "*" }
|
||||||
|
|
||||||
// TypeAssertion represents a type assertion on an interface.
|
// TypeAssertion is a [PathStep] that represents a type assertion on an interface.
|
||||||
type TypeAssertion struct{ *typeAssertion }
|
type TypeAssertion struct{ *typeAssertion }
|
||||||
type typeAssertion struct {
|
type typeAssertion struct {
|
||||||
pathStep
|
pathStep
|
||||||
@ -286,7 +295,8 @@ 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) Values() (vx, vy reflect.Value) { return ta.vx, ta.vy }
|
||||||
func (ta TypeAssertion) String() string { return fmt.Sprintf(".(%v)", value.TypeString(ta.typ, false)) }
|
func (ta TypeAssertion) String() string { return fmt.Sprintf(".(%v)", value.TypeString(ta.typ, false)) }
|
||||||
|
|
||||||
// Transform is a transformation from the parent type to the current type.
|
// Transform is a [PathStep] that represents a transformation
|
||||||
|
// from the parent type to the current type.
|
||||||
type Transform struct{ *transform }
|
type Transform struct{ *transform }
|
||||||
type transform struct {
|
type transform struct {
|
||||||
pathStep
|
pathStep
|
||||||
@ -297,13 +307,13 @@ 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) Values() (vx, vy reflect.Value) { return tf.vx, tf.vy }
|
||||||
func (tf Transform) String() string { return fmt.Sprintf("%s()", tf.trans.name) }
|
func (tf Transform) String() string { return fmt.Sprintf("%s()", tf.trans.name) }
|
||||||
|
|
||||||
// Name is the name of the Transformer.
|
// Name is the name of the [Transformer].
|
||||||
func (tf Transform) Name() string { return tf.trans.name }
|
func (tf Transform) Name() string { return tf.trans.name }
|
||||||
|
|
||||||
// Func is the function pointer to the transformer function.
|
// Func is the function pointer to the transformer function.
|
||||||
func (tf Transform) Func() reflect.Value { return tf.trans.fnc }
|
func (tf Transform) Func() reflect.Value { return tf.trans.fnc }
|
||||||
|
|
||||||
// Option returns the originally constructed Transformer option.
|
// Option returns the originally constructed [Transformer] option.
|
||||||
// The == operator can be used to detect the exact option used.
|
// The == operator can be used to detect the exact option used.
|
||||||
func (tf Transform) Option() Option { return tf.trans }
|
func (tf Transform) Option() Option { return tf.trans }
|
||||||
|
|
||||||
|
2
vendor/github.com/google/go-cmp/cmp/report_reflect.go
generated
vendored
2
vendor/github.com/google/go-cmp/cmp/report_reflect.go
generated
vendored
@ -199,7 +199,7 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind,
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
sf := t.Field(i)
|
sf := t.Field(i)
|
||||||
if supportExporters && !isExported(sf.Name) {
|
if !isExported(sf.Name) {
|
||||||
vv = retrieveUnexportedField(v, sf, true)
|
vv = retrieveUnexportedField(v, sf, true)
|
||||||
}
|
}
|
||||||
s := opts.WithTypeMode(autoType).FormatValue(vv, t.Kind(), ptrs)
|
s := opts.WithTypeMode(autoType).FormatValue(vv, t.Kind(), ptrs)
|
||||||
|
9
vendor/github.com/onsi/gomega/CHANGELOG.md
generated
vendored
9
vendor/github.com/onsi/gomega/CHANGELOG.md
generated
vendored
@ -1,3 +1,12 @@
|
|||||||
|
## 1.28.1
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
- Bump github.com/onsi/ginkgo/v2 from 2.12.0 to 2.13.0 [635d196]
|
||||||
|
- Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 [14f8859]
|
||||||
|
- Bump golang.org/x/net from 0.14.0 to 0.17.0 [d8a6508]
|
||||||
|
- #703 doc(matchers): HaveEach() doc comment updated [2705bdb]
|
||||||
|
- Minor typos (#699) [375648c]
|
||||||
|
|
||||||
## 1.28.0
|
## 1.28.0
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
10
vendor/github.com/onsi/gomega/gomega_dsl.go
generated
vendored
10
vendor/github.com/onsi/gomega/gomega_dsl.go
generated
vendored
@ -22,7 +22,7 @@ import (
|
|||||||
"github.com/onsi/gomega/types"
|
"github.com/onsi/gomega/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const GOMEGA_VERSION = "1.28.0"
|
const GOMEGA_VERSION = "1.28.1"
|
||||||
|
|
||||||
const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler.
|
const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler.
|
||||||
If you're using Ginkgo then you probably forgot to put your assertion in an It().
|
If you're using Ginkgo then you probably forgot to put your assertion in an It().
|
||||||
@ -242,7 +242,7 @@ func ExpectWithOffset(offset int, actual interface{}, extra ...interface{}) Asse
|
|||||||
Eventually enables making assertions on asynchronous behavior.
|
Eventually enables making assertions on asynchronous behavior.
|
||||||
|
|
||||||
Eventually checks that an assertion *eventually* passes. Eventually blocks when called and attempts an assertion periodically until it passes or a timeout occurs. Both the timeout and polling interval are configurable as optional arguments.
|
Eventually checks that an assertion *eventually* passes. Eventually blocks when called and attempts an assertion periodically until it passes or a timeout occurs. Both the timeout and polling interval are configurable as optional arguments.
|
||||||
The first optional argument is the timeout (which defaults to 1s), the second is the polling interval (which defaults to 10ms). Both intervals can be specified as time.Duration, parsable duration strings or floats/integers (in which case they are interpreted as seconds). In addition an optional context.Context can be passed in - Eventually will keep trying until either the timeout epxires or the context is cancelled, whichever comes first.
|
The first optional argument is the timeout (which defaults to 1s), the second is the polling interval (which defaults to 10ms). Both intervals can be specified as time.Duration, parsable duration strings or floats/integers (in which case they are interpreted as seconds). In addition an optional context.Context can be passed in - Eventually will keep trying until either the timeout expires or the context is cancelled, whichever comes first.
|
||||||
|
|
||||||
Eventually works with any Gomega compatible matcher and supports making assertions against three categories of actual value:
|
Eventually works with any Gomega compatible matcher and supports making assertions against three categories of actual value:
|
||||||
|
|
||||||
@ -313,13 +313,13 @@ It is important to note that the function passed into Eventually is invoked *syn
|
|||||||
}).Should(BeNumerically(">=", 17))
|
}).Should(BeNumerically(">=", 17))
|
||||||
}, SpecTimeout(time.Second))
|
}, SpecTimeout(time.Second))
|
||||||
|
|
||||||
you an also use Eventually().WithContext(ctx) to pass in the context. Passed-in contexts play nicely with paseed-in arguments as long as the context appears first. You can rewrite the above example as:
|
you an also use Eventually().WithContext(ctx) to pass in the context. Passed-in contexts play nicely with passed-in arguments as long as the context appears first. You can rewrite the above example as:
|
||||||
|
|
||||||
It("fetches the correct count", func(ctx SpecContext) {
|
It("fetches the correct count", func(ctx SpecContext) {
|
||||||
Eventually(client.FetchCount).WithContext(ctx).WithArguments("/users").Should(BeNumerically(">=", 17))
|
Eventually(client.FetchCount).WithContext(ctx).WithArguments("/users").Should(BeNumerically(">=", 17))
|
||||||
}, SpecTimeout(time.Second))
|
}, SpecTimeout(time.Second))
|
||||||
|
|
||||||
Either way the context passd to Eventually is also passed to the underlying funciton. Now, when Ginkgo cancels the context both the FetchCount client and Gomega will be informed and can exit.
|
Either way the context passd to Eventually is also passed to the underlying function. Now, when Ginkgo cancels the context both the FetchCount client and Gomega will be informed and can exit.
|
||||||
|
|
||||||
**Category 3: Making assertions _in_ the function passed into Eventually**
|
**Category 3: Making assertions _in_ the function passed into Eventually**
|
||||||
|
|
||||||
@ -349,7 +349,7 @@ For example:
|
|||||||
|
|
||||||
will rerun the function until all assertions pass.
|
will rerun the function until all assertions pass.
|
||||||
|
|
||||||
You can also pass additional arugments to functions that take a Gomega. The only rule is that the Gomega argument must be first. If you also want to pass the context attached to Eventually you must ensure that is the second argument. For example:
|
You can also pass additional arguments to functions that take a Gomega. The only rule is that the Gomega argument must be first. If you also want to pass the context attached to Eventually you must ensure that is the second argument. For example:
|
||||||
|
|
||||||
Eventually(func(g Gomega, ctx context.Context, path string, expected ...string){
|
Eventually(func(g Gomega, ctx context.Context, path string, expected ...string){
|
||||||
tok, err := client.GetToken(ctx)
|
tok, err := client.GetToken(ctx)
|
||||||
|
2
vendor/github.com/onsi/gomega/matchers.go
generated
vendored
2
vendor/github.com/onsi/gomega/matchers.go
generated
vendored
@ -381,7 +381,7 @@ func ContainElements(elements ...interface{}) types.GomegaMatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// HaveEach succeeds if actual solely contains elements that match the passed in element.
|
// HaveEach succeeds if actual solely contains elements that match the passed in element.
|
||||||
// Please note that if actual is empty, HaveEach always will succeed.
|
// Please note that if actual is empty, HaveEach always will fail.
|
||||||
// By default HaveEach() uses Equal() to perform the match, however a
|
// By default HaveEach() uses Equal() to perform the match, however a
|
||||||
// matcher can be passed in instead:
|
// matcher can be passed in instead:
|
||||||
//
|
//
|
||||||
|
6
vendor/modules.txt
vendored
6
vendor/modules.txt
vendored
@ -17,7 +17,7 @@ github.com/antlr/antlr4/runtime/Go/antlr/v4
|
|||||||
# github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
|
# github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
|
||||||
## explicit
|
## explicit
|
||||||
github.com/asaskevich/govalidator
|
github.com/asaskevich/govalidator
|
||||||
# github.com/aws/aws-sdk-go v1.45.26
|
# github.com/aws/aws-sdk-go v1.46.3
|
||||||
## explicit; go 1.11
|
## explicit; go 1.11
|
||||||
github.com/aws/aws-sdk-go/aws
|
github.com/aws/aws-sdk-go/aws
|
||||||
github.com/aws/aws-sdk-go/aws/auth/bearer
|
github.com/aws/aws-sdk-go/aws/auth/bearer
|
||||||
@ -287,7 +287,7 @@ github.com/google/gnostic-models/extensions
|
|||||||
github.com/google/gnostic-models/jsonschema
|
github.com/google/gnostic-models/jsonschema
|
||||||
github.com/google/gnostic-models/openapiv2
|
github.com/google/gnostic-models/openapiv2
|
||||||
github.com/google/gnostic-models/openapiv3
|
github.com/google/gnostic-models/openapiv3
|
||||||
# github.com/google/go-cmp v0.5.9
|
# github.com/google/go-cmp v0.6.0
|
||||||
## explicit; go 1.13
|
## explicit; go 1.13
|
||||||
github.com/google/go-cmp/cmp
|
github.com/google/go-cmp/cmp
|
||||||
github.com/google/go-cmp/cmp/internal/diff
|
github.com/google/go-cmp/cmp/internal/diff
|
||||||
@ -456,7 +456,7 @@ github.com/onsi/ginkgo/v2/internal/parallel_support
|
|||||||
github.com/onsi/ginkgo/v2/internal/testingtproxy
|
github.com/onsi/ginkgo/v2/internal/testingtproxy
|
||||||
github.com/onsi/ginkgo/v2/reporters
|
github.com/onsi/ginkgo/v2/reporters
|
||||||
github.com/onsi/ginkgo/v2/types
|
github.com/onsi/ginkgo/v2/types
|
||||||
# github.com/onsi/gomega v1.28.0
|
# github.com/onsi/gomega v1.28.1
|
||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
github.com/onsi/gomega
|
github.com/onsi/gomega
|
||||||
github.com/onsi/gomega/format
|
github.com/onsi/gomega/format
|
||||||
|
Loading…
Reference in New Issue
Block a user