"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Update vendor dependencies
Nick Craig-Wood00af021abb7d
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.jsonindex c70da0413..97f383b9f 100644--- a/Godeps/Godeps.json+++ b/Godeps/Godeps.json@@ -1,10 +1,7 @@{"ImportPath": "github.com/ncw/rclone","GoVersion": "go1.7",- "GodepVersion": "v74",- "Packages": [- "./..."- ],+ "GodepVersion": "v75","Deps": [{"ImportPath": "bazil.org/fuse",@@ -20,13 +17,13 @@},{"ImportPath": "cloud.google.com/go/compute/metadata",- "Comment": "v0.3.0-49-gbd8a5e8",- "Rev": "bd8a5e8b5d233a78bb4ef057f38eae438f8b6f55"+ "Comment": "v0.4.0-56-g5aca3b7",+ "Rev": "5aca3b7200b228d4b47e9e511f1d77ac270855ff"},{"ImportPath": "cloud.google.com/go/internal",- "Comment": "v0.3.0-49-gbd8a5e8",- "Rev": "bd8a5e8b5d233a78bb4ef057f38eae438f8b6f55"+ "Comment": "v0.4.0-56-g5aca3b7",+ "Rev": "5aca3b7200b228d4b47e9e511f1d77ac270855ff"},{"ImportPath": "github.com/Unknwon/goconfig",@@ -39,133 +36,144 @@},{"ImportPath": "github.com/aws/aws-sdk-go/aws",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/awserr",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/awsutil",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/client",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/client/metadata",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/corehandlers",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/credentials",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"+ },+ {+ "ImportPath": "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds",+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"+ },+ {+ "ImportPath": "github.com/aws/aws-sdk-go/aws/credentials/stscreds",+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/defaults",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/ec2metadata",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/request",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/aws/session",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"+ },+ {+ "ImportPath": "github.com/aws/aws-sdk-go/aws/signer/v4",+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/private/endpoints",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/private/protocol",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/query",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/query/queryutil",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/rest",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/restxml",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"- },- {- "ImportPath": "github.com/aws/aws-sdk-go/private/signer/v4",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/private/waiter",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/service/s3",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/service/s3/s3iface",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/aws/aws-sdk-go/service/s3/s3manager",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"+ },+ {+ "ImportPath": "github.com/aws/aws-sdk-go/service/sts",+ "Comment": "v1.5.8-1-ga0a0426",+ "Rev": "a0a042689f81e61e24b16237b502bcbc4a05dfc0"},{"ImportPath": "github.com/cpuguy83/go-md2man/md2man","Comment": "v1.0.6","Rev": "a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa"},- {- "ImportPath": "github.com/davecgh/go-spew/spew",- "Rev": "5215b55f46b2b919f50a1df0eaa5886afe4e3b3d"- },{"ImportPath": "github.com/go-ini/ini","Comment": "v1.9.0",@@ -173,12 +181,16 @@},{"ImportPath": "github.com/golang/protobuf/proto",- "Rev": "552c7b9542c194800fd493123b3798ef0a832032"+ "Rev": "8ee79997227bf9b34611aee7946ae64735e6fd93"},{"ImportPath": "github.com/google/go-querystring/query","Rev": "9235644dd9e52eeae6fa48efd539fdc351a0af53"},+ {+ "ImportPath": "github.com/googleapis/gax-go",+ "Rev": "da06d194a00e19ce00d9011a13931c3f6f6887c7"+ },{"ImportPath": "github.com/inconshreveable/mousetrap","Rev": "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"@@ -190,7 +202,7 @@},{"ImportPath": "github.com/ncw/go-acd",- "Rev": "a3c3df8bf8c4a3b8c5c0e10ec88e914c68ffa977"+ "Rev": "7954f1fad2bda6a7836999003e4481d6e32edc1e"},{"ImportPath": "github.com/ncw/swift",@@ -201,10 +213,6 @@"Comment": "v0.8.0-2-g248dadf","Rev": "248dadf4e9068a0b3e79f02ed0a610d935de5302"},- {- "ImportPath": "github.com/pmezard/go-difflib/difflib",- "Rev": "792786c7400a136282c1664665ae0a8db921c6c2"- },{"ImportPath": "github.com/rfjakob/eme","Comment": "v1.0-10-g601d0e2",@@ -225,11 +233,11 @@},{"ImportPath": "github.com/spf13/cobra",- "Rev": "6e91dded25d73176bf7f60b40dd7aa1f0bf9be8d"+ "Rev": "9495bc009a56819bdb0ddbc1a373e29c140bc674"},{"ImportPath": "github.com/spf13/cobra/doc",- "Rev": "6e91dded25d73176bf7f60b40dd7aa1f0bf9be8d"+ "Rev": "9495bc009a56819bdb0ddbc1a373e29c140bc674"},{"ImportPath": "github.com/spf13/pflag",@@ -239,103 +247,117 @@"ImportPath": "github.com/stacktic/dropbox","Rev": "58f839b21094d5e0af7caf613599830589233d20"},- {- "ImportPath": "github.com/stretchr/testify/assert",- "Comment": "v1.1.3-4-g1f4a164",- "Rev": "1f4a1643a57e798696635ea4c126e9127adb7d3c"- },- {- "ImportPath": "github.com/stretchr/testify/require",- "Comment": "v1.1.3-4-g1f4a164",- "Rev": "1f4a1643a57e798696635ea4c126e9127adb7d3c"- },{"ImportPath": "github.com/tsenart/tb","Rev": "19f4c3d79d2bd67d0911b2e310b999eeea4454c1"},{"ImportPath": "golang.org/x/crypto/nacl/secretbox",- "Rev": "c197bcf24cde29d3f73c7b4ac6fd41f4384e8af6"+ "Rev": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd"},{"ImportPath": "golang.org/x/crypto/pbkdf2",- "Rev": "c197bcf24cde29d3f73c7b4ac6fd41f4384e8af6"+ "Rev": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd"},{"ImportPath": "golang.org/x/crypto/poly1305",- "Rev": "c197bcf24cde29d3f73c7b4ac6fd41f4384e8af6"+ "Rev": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd"},{"ImportPath": "golang.org/x/crypto/salsa20/salsa",- "Rev": "c197bcf24cde29d3f73c7b4ac6fd41f4384e8af6"+ "Rev": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd"},{"ImportPath": "golang.org/x/crypto/scrypt",- "Rev": "c197bcf24cde29d3f73c7b4ac6fd41f4384e8af6"+ "Rev": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd"},{"ImportPath": "golang.org/x/crypto/ssh/terminal",- "Rev": "c197bcf24cde29d3f73c7b4ac6fd41f4384e8af6"+ "Rev": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd"},{"ImportPath": "golang.org/x/net/context",- "Rev": "6acef71eb69611914f7a30939ea9f6e194c78172"+ "Rev": "4971afdc2f162e82d185353533d3cf16188a9f4e"},{"ImportPath": "golang.org/x/net/context/ctxhttp",- "Rev": "6acef71eb69611914f7a30939ea9f6e194c78172"+ "Rev": "4971afdc2f162e82d185353533d3cf16188a9f4e"+ },+ {+ "ImportPath": "golang.org/x/net/http2",+ "Rev": "4971afdc2f162e82d185353533d3cf16188a9f4e"+ },+ {+ "ImportPath": "golang.org/x/net/http2/hpack",+ "Rev": "4971afdc2f162e82d185353533d3cf16188a9f4e"+ },+ {+ "ImportPath": "golang.org/x/net/idna",+ "Rev": "4971afdc2f162e82d185353533d3cf16188a9f4e"+ },+ {+ "ImportPath": "golang.org/x/net/internal/timeseries",+ "Rev": "4971afdc2f162e82d185353533d3cf16188a9f4e"+ },+ {+ "ImportPath": "golang.org/x/net/lex/httplex",+ "Rev": "4971afdc2f162e82d185353533d3cf16188a9f4e"+ },+ {+ "ImportPath": "golang.org/x/net/trace",+ "Rev": "4971afdc2f162e82d185353533d3cf16188a9f4e"},{"ImportPath": "golang.org/x/oauth2",- "Rev": "25b4fb1468cb89700c7c060cb99f30581a61f5e3"+ "Rev": "d5040cddfc0da40b408c9a1da4728662435176a9"},{"ImportPath": "golang.org/x/oauth2/google",- "Rev": "25b4fb1468cb89700c7c060cb99f30581a61f5e3"+ "Rev": "d5040cddfc0da40b408c9a1da4728662435176a9"},{"ImportPath": "golang.org/x/oauth2/internal",- "Rev": "25b4fb1468cb89700c7c060cb99f30581a61f5e3"+ "Rev": "d5040cddfc0da40b408c9a1da4728662435176a9"},{"ImportPath": "golang.org/x/oauth2/jws",- "Rev": "25b4fb1468cb89700c7c060cb99f30581a61f5e3"+ "Rev": "d5040cddfc0da40b408c9a1da4728662435176a9"},{"ImportPath": "golang.org/x/oauth2/jwt",- "Rev": "25b4fb1468cb89700c7c060cb99f30581a61f5e3"+ "Rev": "d5040cddfc0da40b408c9a1da4728662435176a9"},{"ImportPath": "golang.org/x/sys/unix",- "Rev": "c200b10b5d5e122be351b67af224adc6128af5bf"+ "Rev": "b699b7032584f0953262cb2788a0ca19bb494703"},{"ImportPath": "golang.org/x/text/transform",- "Rev": "a71fd10341b064c10f4a81ceac72bcf70f26ea34"+ "Rev": "a263ba8db058568bb9beba166777d9c9dbe75d68"},{"ImportPath": "golang.org/x/text/unicode/norm",- "Rev": "a71fd10341b064c10f4a81ceac72bcf70f26ea34"+ "Rev": "a263ba8db058568bb9beba166777d9c9dbe75d68"},{"ImportPath": "google.golang.org/api/drive/v2",- "Rev": "037d03010933c9fa8e57559c1b7faeec971688d1"+ "Rev": "e4c04685e5d7db47ff294aa9e514b3a638c431c9"},{"ImportPath": "google.golang.org/api/gensupport",- "Rev": "037d03010933c9fa8e57559c1b7faeec971688d1"+ "Rev": "e4c04685e5d7db47ff294aa9e514b3a638c431c9"},{"ImportPath": "google.golang.org/api/googleapi",- "Rev": "037d03010933c9fa8e57559c1b7faeec971688d1"+ "Rev": "e4c04685e5d7db47ff294aa9e514b3a638c431c9"},{"ImportPath": "google.golang.org/api/googleapi/internal/uritemplates",- "Rev": "037d03010933c9fa8e57559c1b7faeec971688d1"+ "Rev": "e4c04685e5d7db47ff294aa9e514b3a638c431c9"},{"ImportPath": "google.golang.org/api/storage/v1",- "Rev": "037d03010933c9fa8e57559c1b7faeec971688d1"+ "Rev": "e4c04685e5d7db47ff294aa9e514b3a638c431c9"},{"ImportPath": "google.golang.org/appengine",@@ -370,34 +392,59 @@"Rev": "c98f627282072b1230c8795abe98e2914c8a1de9"},{- "ImportPath": "github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "ImportPath": "google.golang.org/grpc",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"},{- "ImportPath": "github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath",- "Comment": "v1.1.7",- "Rev": "13a12060f716145019378a10e2806c174356b857"+ "ImportPath": "google.golang.org/grpc/codes",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"},{- "ImportPath": "github.com/cpuguy83/go-md2man/vendor/github.com/russross/blackfriday",- "Comment": "v1.0.6",- "Rev": "a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa"+ "ImportPath": "google.golang.org/grpc/credentials",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"},{- "ImportPath": "github.com/cpuguy83/go-md2man/vendor/github.com/shurcooL/sanitized_anchor_name",- "Comment": "v1.0.6",- "Rev": "a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa"+ "ImportPath": "google.golang.org/grpc/grpclog",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"+ },+ {+ "ImportPath": "google.golang.org/grpc/internal",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"+ },+ {+ "ImportPath": "google.golang.org/grpc/metadata",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"+ },+ {+ "ImportPath": "google.golang.org/grpc/naming",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"+ },+ {+ "ImportPath": "google.golang.org/grpc/peer",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"+ },+ {+ "ImportPath": "google.golang.org/grpc/stats",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"},{- "ImportPath": "github.com/stretchr/testify/vendor/github.com/davecgh/go-spew/spew",- "Comment": "v1.1.3-4-g1f4a164",- "Rev": "1f4a1643a57e798696635ea4c126e9127adb7d3c"+ "ImportPath": "google.golang.org/grpc/tap",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"},{- "ImportPath": "github.com/stretchr/testify/vendor/github.com/pmezard/go-difflib/difflib",- "Comment": "v1.1.3-4-g1f4a164",- "Rev": "1f4a1643a57e798696635ea4c126e9127adb7d3c"+ "ImportPath": "google.golang.org/grpc/transport",+ "Comment": "v1.0.4-61-g63bd55d",+ "Rev": "63bd55dfbf781b183216d2dd4433a659c947648a"}]}diff --git a/vendor/cloud.google.com/go/AUTHORS b/vendor/cloud.google.com/go/AUTHORSnew file mode 100644index 000000000..c364af1da--- /dev/null+++ b/vendor/cloud.google.com/go/AUTHORS@@ -0,0 +1,15 @@+# This is the official list of cloud authors for copyright purposes.+# This file is distinct from the CONTRIBUTORS files.+# See the latter for an explanation.++# Names should be added to this file as:+# Name or Organization <email address>+# The email address is not required for organizations.++Filippo Valsorda <[email protected]>+Google Inc.+Ingo Oeser <[email protected]>+Palm Stone Games, Inc.+Paweł Knap <[email protected]>+Péter Szilágyi <[email protected]>+Tyler Treat <[email protected]>diff --git a/vendor/cloud.google.com/go/CONTRIBUTORS b/vendor/cloud.google.com/go/CONTRIBUTORSnew file mode 100644index 000000000..07509ccb7--- /dev/null+++ b/vendor/cloud.google.com/go/CONTRIBUTORS@@ -0,0 +1,34 @@+# People who have agreed to one of the CLAs and can contribute patches.+# The AUTHORS file lists the copyright holders; this file+# lists people. For example, Google employees are listed here+# but not in AUTHORS, because Google holds the copyright.+#+# https://developers.google.com/open-source/cla/individual+# https://developers.google.com/open-source/cla/corporate+#+# Names should be added to this file as:+# Name <email address>++# Keep the list alphabetically sorted.++Andreas Litt <[email protected]>+Andrew Gerrand <[email protected]>+Brad Fitzpatrick <[email protected]>+Burcu Dogan <[email protected]>+Dave Day <[email protected]>+David Sansome <[email protected]>+David Symonds <[email protected]>+Filippo Valsorda <[email protected]>+Glenn Lewis <[email protected]>+Ingo Oeser <[email protected]>+Johan Euphrosine <[email protected]>+Jonathan Amsterdam <[email protected]>+Luna Duclos <[email protected]>+Michael McGreevy <[email protected]>+Omar Jarjur <[email protected]>+Paweł Knap <[email protected]>+Péter Szilágyi <[email protected]>+Sarah Adams <[email protected]>+Toby Burress <[email protected]>+Tuo Shan <[email protected]>+Tyler Treat <[email protected]>diff --git a/vendor/cloud.google.com/go/internal/retry.go b/vendor/cloud.google.com/go/internal/retry.gonew file mode 100644index 000000000..79995be4c--- /dev/null+++ b/vendor/cloud.google.com/go/internal/retry.go@@ -0,0 +1,55 @@+// Copyright 2016 Google Inc. All Rights Reserved.+//+// Licensed under the Apache License, Version 2.0 (the "License");+// you may not use this file except in compliance with the License.+// You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing, software+// distributed under the License is distributed on an "AS IS" BASIS,+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+// See the License for the specific language governing permissions and+// limitations under the License.++package internal++import (+ "fmt"+ "time"++ gax "github.com/googleapis/gax-go"++ "golang.org/x/net/context"+)++// Retry calls the supplied function f repeatedly according to the provided+// backoff parameters. It returns when one of the following occurs:+// When f's first return value is true, Retry immediately returns with f's second+// return value.+// When the provided context is done, Retry returns with ctx.Err().+func Retry(ctx context.Context, bo gax.Backoff, f func() (stop bool, err error)) error {+ return retry(ctx, bo, f, gax.Sleep)+}++func retry(ctx context.Context, bo gax.Backoff, f func() (stop bool, err error),+ sleep func(context.Context, time.Duration) error) error {+ var lastErr error+ for {+ stop, err := f()+ if stop {+ return err+ }+ // Remember the last "real" error from f.+ if err != nil && err != context.Canceled && err != context.DeadlineExceeded {+ lastErr = err+ }+ p := bo.Pause()+ if cerr := sleep(ctx, p); cerr != nil {+ if lastErr != nil {+ return fmt.Errorf("%v; last function err: %v", cerr, lastErr)+ }+ return cerr+ }+ }+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awserr/error.go b/vendor/github.com/aws/aws-sdk-go/aws/awserr/error.goindex cbc6bb1c0..56fdfc2bf 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/awserr/error.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/awserr/error.go@@ -42,9 +42,12 @@ type Error interface {OrigErr() error}-// BatchError is a batch of errors which also wraps lower level errors with code, message,-// and original errors. Calling Error() will only return the error that is at the end-// of the list.+// BatchError is a batch of errors which also wraps lower level errors with+// code, message, and original errors. Calling Error() will include all errors+// that occurred in the batch.+//+// Deprecated: Replaced with BatchedErrors. Only defined for backwards+// compatibility.type BatchError interface {// Satisfy the generic error interface.error@@ -59,17 +62,35 @@ type BatchError interface {OrigErrs() []error}+// BatchedErrors is a batch of errors which also wraps lower level errors with+// code, message, and original errors. Calling Error() will include all errors+// that occurred in the batch.+//+// Replaces BatchError+type BatchedErrors interface {+ // Satisfy the base Error interface.+ Error++ // Returns the original error if one was set. Nil is returned if not set.+ OrigErrs() []error+}+// New returns an Error object described by the code, message, and origErr.//// If origErr satisfies the Error interface it will not be wrapped within a new// Error object and will instead be returned.func New(code, message string, origErr error) Error {- return newBaseError(code, message, origErr)+ var errs []error+ if origErr != nil {+ errs = append(errs, origErr)+ }+ return newBaseError(code, message, errs)}-// NewBatchError returns an baseError with an expectation of an array of errors-func NewBatchError(code, message string, errs []error) BatchError {- return newBaseErrors(code, message, errs)+// NewBatchError returns an BatchedErrors with a collection of errors as an+// array of errors.+func NewBatchError(code, message string, errs []error) BatchedErrors {+ return newBaseError(code, message, errs)}// A RequestFailure is an interface to extract request failure information fromdiff --git a/vendor/github.com/aws/aws-sdk-go/aws/awserr/types.go b/vendor/github.com/aws/aws-sdk-go/aws/awserr/types.goindex 605f73c5d..0202a008f 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/awserr/types.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/awserr/types.go@@ -34,36 +34,17 @@ type baseError struct {errs []error}-// newBaseError returns an error object for the code, message, and err.+// newBaseError returns an error object for the code, message, and errors.//// code is a short no whitespace phrase depicting the classification of// the error that is being created.//-// message is the free flow string containing detailed information about the error.+// message is the free flow string containing detailed information about the+// error.//-// origErr is the error object which will be nested under the new error to be returned.-func newBaseError(code, message string, origErr error) *baseError {- b := &baseError{- code: code,- message: message,- }-- if origErr != nil {- b.errs = append(b.errs, origErr)- }-- return b-}--// newBaseErrors returns an error object for the code, message, and errors.-//-// code is a short no whitespace phrase depicting the classification of-// the error that is being created.-//-// message is the free flow string containing detailed information about the error.-//-// origErrs is the error objects which will be nested under the new errors to be returned.-func newBaseErrors(code, message string, origErrs []error) *baseError {+// origErrs is the error objects which will be nested under the new errors to+// be returned.+func newBaseError(code, message string, origErrs []error) *baseError {b := &baseError{code: code,message: message,@@ -103,19 +84,26 @@ func (b baseError) Message() string {return b.message}-// OrigErr returns the original error if one was set. Nil is returned if no error-// was set. This only returns the first element in the list. If the full list is-// needed, use BatchError+// OrigErr returns the original error if one was set. Nil is returned if no+// error was set. This only returns the first element in the list. If the full+// list is needed, use BatchedErrors.func (b baseError) OrigErr() error {- if size := len(b.errs); size > 0 {+ switch len(b.errs) {+ case 0:+ return nil+ case 1:return b.errs[0]+ default:+ if err, ok := b.errs[0].(Error); ok {+ return NewBatchError(err.Code(), err.Message(), b.errs[1:])+ }+ return NewBatchError("BatchedErrors",+ "multiple errors occurred", b.errs)}-- return nil}-// OrigErrs returns the original errors if one was set. An empty slice is returned if-// no error was set:w+// OrigErrs returns the original errors if one was set. An empty slice is+// returned if no error was set.func (b baseError) OrigErrs() []error {return b.errs}@@ -133,8 +121,8 @@ type requestError struct {requestID string}-// newRequestError returns a wrapped error with additional information for request-// status code, and service requestID.+// newRequestError returns a wrapped error with additional information for+// request status code, and service requestID.//// Should be used to wrap all request which involve service requests. Even if// the request failed without a service response, but had an HTTP status code@@ -173,6 +161,15 @@ func (r requestError) RequestID() string {return r.requestID}+// OrigErrs returns the original errors if one was set. An empty slice is+// returned if no error was set.+func (r requestError) OrigErrs() []error {+ if b, ok := r.awsError.(BatchedErrors); ok {+ return b.OrigErrs()+ }+ return []error{r.OrigErr()}+}+// An error list that satisfies the golang interfacetype errorList []errordiff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.goindex 8429470b9..1a3d106d5 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.go@@ -3,6 +3,7 @@ package awsutilimport ("io""reflect"+ "time")// Copy deeply copies a src structure to dst. Useful for copying request and@@ -49,7 +50,14 @@ func rcopy(dst, src reflect.Value, root bool) {} else {e := src.Type().Elem()if dst.CanSet() && !src.IsNil() {- dst.Set(reflect.New(e))+ if _, ok := src.Interface().(*time.Time); !ok {+ dst.Set(reflect.New(e))+ } else {+ tempValue := reflect.New(e)+ tempValue.Elem().Set(src.Elem())+ // Sets time.Time's unexported values+ dst.Set(tempValue)+ }}if src.Elem().IsValid() {// Keep the current root state since the depth hasn't changeddiff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value.goindex 4d2a01e8c..11c52c389 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value.go@@ -106,8 +106,8 @@ func rValuesAtPath(v interface{}, path string, createPath, caseSensitive, nilTerif indexStar || index != nil {nextvals = []reflect.Value{}- for _, value := range values {- value := reflect.Indirect(value)+ for _, valItem := range values {+ value := reflect.Indirect(valItem)if value.Kind() != reflect.Slice {continue}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.goindex 0de3eaa0f..710eb432f 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go@@ -61,6 +61,12 @@ func prettify(v reflect.Value, indent int, buf *bytes.Buffer) {buf.WriteString("\n" + strings.Repeat(" ", indent) + "}")case reflect.Slice:+ strtype := v.Type().String()+ if strtype == "[]uint8" {+ fmt.Fprintf(buf, "<binary> len %d", v.Len())+ break+ }+nl, id, id2 := "", "", ""if v.Len() > 3 {nl, id, id2 = "\n", strings.Repeat(" ", indent), strings.Repeat(" ", indent+2)@@ -91,6 +97,10 @@ func prettify(v reflect.Value, indent int, buf *bytes.Buffer) {buf.WriteString("\n" + strings.Repeat(" ", indent) + "}")default:+ if !v.IsValid() {+ fmt.Fprint(buf, "<invalid value>")+ return+ }format := "%v"switch v.Interface().(type) {case string:diff --git a/vendor/github.com/aws/aws-sdk-go/aws/client/client.go b/vendor/github.com/aws/aws-sdk-go/aws/client/client.goindex c8d0564d8..7c0e7d9dd 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/client/client.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/client/client.go@@ -2,7 +2,6 @@ package clientimport ("fmt"- "io/ioutil""net/http/httputil""github.com/aws/aws-sdk-go/aws"@@ -87,16 +86,24 @@ const logReqMsg = `DEBUG: Request %s/%s Details:%s-----------------------------------------------------`+const logReqErrMsg = `DEBUG ERROR: Request %s/%s:+---[ REQUEST DUMP ERROR ]-----------------------------+%s+-----------------------------------------------------`+func logRequest(r *request.Request) {logBody := r.Config.LogLevel.Matches(aws.LogDebugWithHTTPBody)- dumpedBody, _ := httputil.DumpRequestOut(r.HTTPRequest, logBody)+ dumpedBody, err := httputil.DumpRequestOut(r.HTTPRequest, logBody)+ if err != nil {+ r.Config.Logger.Log(fmt.Sprintf(logReqErrMsg, r.ClientInfo.ServiceName, r.Operation.Name, err))+ return+ }if logBody {// Reset the request body because dumpRequest will re-wrap the r.HTTPRequest's// Body as a NoOpCloser and will not be reset after read by the HTTP// client reader.- r.Body.Seek(r.BodyStart, 0)- r.HTTPRequest.Body = ioutil.NopCloser(r.Body)+ r.ResetBody()}r.Config.Logger.Log(fmt.Sprintf(logReqMsg, r.ClientInfo.ServiceName, r.Operation.Name, string(dumpedBody)))@@ -107,11 +114,21 @@ const logRespMsg = `DEBUG: Response %s/%s Details:%s-----------------------------------------------------`+const logRespErrMsg = `DEBUG ERROR: Response %s/%s:+---[ RESPONSE DUMP ERROR ]-----------------------------+%s+-----------------------------------------------------`+func logResponse(r *request.Request) {var msg = "no response data"if r.HTTPResponse != nil {logBody := r.Config.LogLevel.Matches(aws.LogDebugWithHTTPBody)- dumpedBody, _ := httputil.DumpResponse(r.HTTPResponse, logBody)+ dumpedBody, err := httputil.DumpResponse(r.HTTPResponse, logBody)+ if err != nil {+ r.Config.Logger.Log(fmt.Sprintf(logRespErrMsg, r.ClientInfo.ServiceName, r.Operation.Name, err))+ return+ }+msg = string(dumpedBody)} else if r.Error != nil {msg = r.Error.Error()diff --git a/vendor/github.com/aws/aws-sdk-go/aws/client/default_retryer.go b/vendor/github.com/aws/aws-sdk-go/aws/client/default_retryer.goindex 24d39ce56..43a3676b7 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/client/default_retryer.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/client/default_retryer.go@@ -1,8 +1,8 @@package clientimport (- "math""math/rand"+ "sync""time""github.com/aws/aws-sdk-go/aws/request"@@ -30,16 +30,61 @@ func (d DefaultRetryer) MaxRetries() int {return d.NumMaxRetries}+var seededRand = rand.New(&lockedSource{src: rand.NewSource(time.Now().UnixNano())})+// RetryRules returns the delay duration before retrying this request againfunc (d DefaultRetryer) RetryRules(r *request.Request) time.Duration {- delay := int(math.Pow(2, float64(r.RetryCount))) * (rand.Intn(30) + 30)+ // Set the upper limit of delay in retrying at ~five minutes+ minTime := 30+ throttle := d.shouldThrottle(r)+ if throttle {+ minTime = 500+ }++ retryCount := r.RetryCount+ if retryCount > 13 {+ retryCount = 13+ } else if throttle && retryCount > 8 {+ retryCount = 8+ }++ delay := (1 << uint(retryCount)) * (seededRand.Intn(minTime) + minTime)return time.Duration(delay) * time.Millisecond}-// ShouldRetry returns if the request should be retried.+// ShouldRetry returns true if the request should be retried.func (d DefaultRetryer) ShouldRetry(r *request.Request) bool {if r.HTTPResponse.StatusCode >= 500 {return true}- return r.IsErrorRetryable()+ return r.IsErrorRetryable() || d.shouldThrottle(r)+}++// ShouldThrottle returns true if the request should be throttled.+func (d DefaultRetryer) shouldThrottle(r *request.Request) bool {+ if r.HTTPResponse.StatusCode == 502 ||+ r.HTTPResponse.StatusCode == 503 ||+ r.HTTPResponse.StatusCode == 504 {+ return true+ }+ return r.IsErrorThrottle()+}++// lockedSource is a thread-safe implementation of rand.Source+type lockedSource struct {+ lk sync.Mutex+ src rand.Source+}++func (r *lockedSource) Int63() (n int64) {+ r.lk.Lock()+ n = r.src.Int63()+ r.lk.Unlock()+ return+}++func (r *lockedSource) Seed(seed int64) {+ r.lk.Lock()+ r.src.Seed(seed)+ r.lk.Unlock()}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/config.go b/vendor/github.com/aws/aws-sdk-go/aws/config.goindex 9e83e9260..bf23d1e45 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/config.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/config.go@@ -7,24 +7,36 @@ import ("github.com/aws/aws-sdk-go/aws/credentials")-// UseServiceDefaultRetries instructs the config to use the service's own default-// number of retries. This will be the default action if Config.MaxRetries-// is nil also.+// UseServiceDefaultRetries instructs the config to use the service's own+// default number of retries. This will be the default action if+// Config.MaxRetries is nil also.const UseServiceDefaultRetries = -1-// RequestRetryer is an alias for a type that implements the request.Retryer interface.+// RequestRetryer is an alias for a type that implements the request.Retryer+// interface.type RequestRetryer interface{}// A Config provides service configuration for service clients. By default,-// all clients will use the {defaults.DefaultConfig} structure.+// all clients will use the defaults.DefaultConfig tructure.+//+// // Create Session with MaxRetry configuration to be shared by multiple+// // service clients.+// sess, err := session.NewSession(&aws.Config{+// MaxRetries: aws.Int(3),+// })+//+// // Create S3 service client with a specific Region.+// svc := s3.New(sess, &aws.Config{+// Region: aws.String("us-west-2"),+// })type Config struct {// Enables verbose error printing of all credential chain errors.- // Should be used when wanting to see all errors while attempting to retreive- // credentials.+ // Should be used when wanting to see all errors while attempting to+ // retrieve credentials.CredentialsChainVerboseErrors *bool- // The credentials object to use when signing requests. Defaults to- // a chain of credential providers to search for credentials in environment+ // The credentials object to use when signing requests. Defaults to a+ // chain of credential providers to search for credentials in environment// variables, shared credential file, and EC2 Instance Roles.Credentials *credentials.Credentials@@ -63,11 +75,12 @@ type Config struct {Logger Logger// The maximum number of times that a request will be retried for failures.- // Defaults to -1, which defers the max retry setting to the service specific- // configuration.+ // Defaults to -1, which defers the max retry setting to the service+ // specific configuration.MaxRetries *int- // Retryer guides how HTTP requests should be retried in case of recoverable failures.+ // Retryer guides how HTTP requests should be retried in case of+ // recoverable failures.//// When nil or the value does not implement the request.Retryer interface,// the request.DefaultRetryer will be used.@@ -82,8 +95,8 @@ type Config struct {//Retryer RequestRetryer- // Disables semantic parameter validation, which validates input for missing- // required fields and/or other semantic request input errors.+ // Disables semantic parameter validation, which validates input for+ // missing required fields and/or other semantic request input errors.DisableParamValidation *bool// Disables the computation of request and response checksums, e.g.,@@ -91,8 +104,8 @@ type Config struct {DisableComputeChecksums *bool// Set this to `true` to force the request to use path-style addressing,- // i.e., `http://s3.amazonaws.com/BUCKET/KEY`. By default, the S3 client will- // use virtual hosted bucket addressing when possible+ // i.e., `http://s3.amazonaws.com/BUCKET/KEY`. By default, the S3 client+ // will use virtual hosted bucket addressing when possible// (`http://BUCKET.s3.amazonaws.com/KEY`).//// @note This configuration option is specific to the Amazon S3 service.@@ -100,28 +113,103 @@ type Config struct {// Amazon S3: Virtual Hosting of BucketsS3ForcePathStyle *bool+ // Set this to `true` to disable the SDK adding the `Expect: 100-Continue`+ // header to PUT requests over 2MB of content. 100-Continue instructs the+ // HTTP client not to send the body until the service responds with a+ // `continue` status. This is useful to prevent sending the request body+ // until after the request is authenticated, and validated.+ //+ // http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html+ //+ // 100-Continue is only enabled for Go 1.6 and above. See `http.Transport`'s+ // `ExpectContinueTimeout` for information on adjusting the continue wait+ // timeout. https://golang.org/pkg/net/http/#Transport+ //+ // You should use this flag to disble 100-Continue if you experience issues+ // with proxies or third party S3 compatible services.+ S3Disable100Continue *bool++ // Set this to `true` to enable S3 Accelerate feature. For all operations+ // compatible with S3 Accelerate will use the accelerate endpoint for+ // requests. Requests not compatible will fall back to normal S3 requests.+ //+ // The bucket must be enable for accelerate to be used with S3 client with+ // accelerate enabled. If the bucket is not enabled for accelerate an error+ // will be returned. The bucket name must be DNS compatible to also work+ // with accelerate.+ S3UseAccelerate *bool+// Set this to `true` to disable the EC2Metadata client from overriding the- // default http.Client's Timeout. This is helpful if you do not want the EC2Metadata- // client to create a new http.Client. This options is only meaningful if you're not- // already using a custom HTTP client with the SDK. Enabled by default.+ // default http.Client's Timeout. This is helpful if you do not want the+ // EC2Metadata client to create a new http.Client. This options is only+ // meaningful if you're not already using a custom HTTP client with the+ // SDK. Enabled by default.//- // Must be set and provided to the session.New() in order to disable the EC2Metadata- // overriding the timeout for default credentials chain.+ // Must be set and provided to the session.NewSession() in order to disable+ // the EC2Metadata overriding the timeout for default credentials chain.//// Example:- // sess := session.New(aws.NewConfig().WithEC2MetadataDiableTimeoutOverride(true))+ // sess, err := session.NewSession(aws.NewConfig().WithEC2MetadataDiableTimeoutOverride(true))+ //// svc := s3.New(sess)//EC2MetadataDisableTimeoutOverride *bool+ // Instructs the endpiont to be generated for a service client to+ // be the dual stack endpoint. The dual stack endpoint will support+ // both IPv4 and IPv6 addressing.+ //+ // Setting this for a service which does not support dual stack will fail+ // to make requets. It is not recommended to set this value on the session+ // as it will apply to all service clients created with the session. Even+ // services which don't support dual stack endpoints.+ //+ // If the Endpoint config value is also provided the UseDualStack flag+ // will be ignored.+ //+ // Only supported with.+ //+ // sess, err := session.NewSession()+ //+ // svc := s3.New(sess, &aws.Config{+ // UseDualStack: aws.Bool(true),+ // })+ UseDualStack *bool++ // SleepDelay is an override for the func the SDK will call when sleeping+ // during the lifecycle of a request. Specifically this will be used for+ // request delays. This value should only be used for testing. To adjust+ // the delay of a request see the aws/client.DefaultRetryer and+ // aws/request.Retryer.SleepDelay func(time.Duration)++ // DisableRestProtocolURICleaning will not clean the URL path when making rest protocol requests.+ // Will default to false. This would only be used for empty directory names in s3 requests.+ //+ // Example:+ // sess, err := session.NewSession(&aws.Config{DisableRestProtocolURICleaning: aws.Bool(true))+ //+ // svc := s3.New(sess)+ // out, err := svc.GetObject(&s3.GetObjectInput {+ // Bucket: aws.String("bucketname"),+ // Key: aws.String("//foo//bar//moo"),+ // })+ DisableRestProtocolURICleaning *bool}-// NewConfig returns a new Config pointer that can be chained with builder methods to-// set multiple configuration values inline without using pointers.+// NewConfig returns a new Config pointer that can be chained with builder+// methods to set multiple configuration values inline without using pointers.//-// svc := s3.New(aws.NewConfig().WithRegion("us-west-2").WithMaxRetries(10))+// // Create Session with MaxRetry configuration to be shared by multiple+// // service clients.+// sess, err := session.NewSession(aws.NewConfig().+// WithMaxRetries(3),+// )//+// // Create S3 service client with a specific Region.+// svc := s3.New(sess, aws.NewConfig().+// WithRegion("us-west-2"),+// )func NewConfig() *Config {return &Config{}}@@ -210,6 +298,27 @@ func (c *Config) WithS3ForcePathStyle(force bool) *Config {return c}+// WithS3Disable100Continue sets a config S3Disable100Continue value returning+// a Config pointer for chaining.+func (c *Config) WithS3Disable100Continue(disable bool) *Config {+ c.S3Disable100Continue = &disable+ return c+}++// WithS3UseAccelerate sets a config S3UseAccelerate value returning a Config+// pointer for chaining.+func (c *Config) WithS3UseAccelerate(enable bool) *Config {+ c.S3UseAccelerate = &enable+ return c+}++// WithUseDualStack sets a config UseDualStack value returning a Config+// pointer for chaining.+func (c *Config) WithUseDualStack(enable bool) *Config {+ c.UseDualStack = &enable+ return c+}+// WithEC2MetadataDisableTimeoutOverride sets a config EC2MetadataDisableTimeoutOverride value// returning a Config pointer for chaining.func (c *Config) WithEC2MetadataDisableTimeoutOverride(enable bool) *Config {@@ -288,6 +397,18 @@ func mergeInConfig(dst *Config, other *Config) {dst.S3ForcePathStyle = other.S3ForcePathStyle}+ if other.S3Disable100Continue != nil {+ dst.S3Disable100Continue = other.S3Disable100Continue+ }++ if other.S3UseAccelerate != nil {+ dst.S3UseAccelerate = other.S3UseAccelerate+ }++ if other.UseDualStack != nil {+ dst.UseDualStack = other.UseDualStack+ }+if other.EC2MetadataDisableTimeoutOverride != nil {dst.EC2MetadataDisableTimeoutOverride = other.EC2MetadataDisableTimeoutOverride}@@ -295,6 +416,10 @@ func mergeInConfig(dst *Config, other *Config) {if other.SleepDelay != nil {dst.SleepDelay = other.SleepDelay}++ if other.DisableRestProtocolURICleaning != nil {+ dst.DisableRestProtocolURICleaning = other.DisableRestProtocolURICleaning+ }}// Copy will return a shallow copy of the Config object. If any additionaldiff --git a/vendor/github.com/aws/aws-sdk-go/aws/convert_types.go b/vendor/github.com/aws/aws-sdk-go/aws/convert_types.goindex d6a7b08df..3b73a7da7 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/convert_types.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/convert_types.go@@ -2,7 +2,7 @@ package awsimport "time"-// String returns a pointer to of the string value passed in.+// String returns a pointer to the string value passed in.func String(v string) *string {return &v}@@ -61,7 +61,7 @@ func StringValueMap(src map[string]*string) map[string]string {return dst}-// Bool returns a pointer to of the bool value passed in.+// Bool returns a pointer to the bool value passed in.func Bool(v bool) *bool {return &v}@@ -120,7 +120,7 @@ func BoolValueMap(src map[string]*bool) map[string]bool {return dst}-// Int returns a pointer to of the int value passed in.+// Int returns a pointer to the int value passed in.func Int(v int) *int {return &v}@@ -179,7 +179,7 @@ func IntValueMap(src map[string]*int) map[string]int {return dst}-// Int64 returns a pointer to of the int64 value passed in.+// Int64 returns a pointer to the int64 value passed in.func Int64(v int64) *int64 {return &v}@@ -238,7 +238,7 @@ func Int64ValueMap(src map[string]*int64) map[string]int64 {return dst}-// Float64 returns a pointer to of the float64 value passed in.+// Float64 returns a pointer to the float64 value passed in.func Float64(v float64) *float64 {return &v}@@ -297,7 +297,7 @@ func Float64ValueMap(src map[string]*float64) map[string]float64 {return dst}-// Time returns a pointer to of the time.Time value passed in.+// Time returns a pointer to the time.Time value passed in.func Time(v time.Time) *time.Time {return &v}@@ -311,6 +311,18 @@ func TimeValue(v *time.Time) time.Time {return time.Time{}}+// TimeUnixMilli returns a Unix timestamp in milliseconds from "January 1, 1970 UTC".+// The result is undefined if the Unix time cannot be represented by an int64.+// Which includes calling TimeUnixMilli on a zero Time is undefined.+//+// This utility is useful for service API's such as CloudWatch Logs which require+// their unix time values to be in milliseconds.+//+// See Go stdlib https://golang.org/pkg/time/#Time.UnixNano for more information.+func TimeUnixMilli(t time.Time) int64 {+ return t.UnixNano() / int64(time.Millisecond/time.Nanosecond)+}+// TimeSlice converts a slice of time.Time values into a slice of// time.Time pointersfunc TimeSlice(src []time.Time) []*time.Time {diff --git a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.goindex a054d3934..8e12f82b0 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go@@ -10,9 +10,11 @@ import ("regexp""runtime""strconv"+ "time""github.com/aws/aws-sdk-go/aws""github.com/aws/aws-sdk-go/aws/awserr"+ "github.com/aws/aws-sdk-go/aws/credentials""github.com/aws/aws-sdk-go/aws/request")@@ -24,30 +26,38 @@ type lener interface {// BuildContentLengthHandler builds the content length of a request based on the body,// or will use the HTTPRequest.Header's "Content-Length" if defined. If unable// to determine request body length and no "Content-Length" was specified it will panic.+//+// The Content-Length will only be aded to the request if the length of the body+// is greater than 0. If the body is empty or the current `Content-Length`+// header is <= 0, the header will also be stripped.var BuildContentLengthHandler = request.NamedHandler{Name: "core.BuildContentLengthHandler", Fn: func(r *request.Request) {+ var length int64+if slength := r.HTTPRequest.Header.Get("Content-Length"); slength != "" {- length, _ := strconv.ParseInt(slength, 10, 64)- r.HTTPRequest.ContentLength = length- return+ length, _ = strconv.ParseInt(slength, 10, 64)+ } else {+ switch body := r.Body.(type) {+ case nil:+ length = 0+ case lener:+ length = int64(body.Len())+ case io.Seeker:+ r.BodyStart, _ = body.Seek(0, 1)+ end, _ := body.Seek(0, 2)+ body.Seek(r.BodyStart, 0) // make sure to seek back to original location+ length = end - r.BodyStart+ default:+ panic("Cannot get length of body, must provide `ContentLength`")+ }}- var length int64- switch body := r.Body.(type) {- case nil:- length = 0- case lener:- length = int64(body.Len())- case io.Seeker:- r.BodyStart, _ = body.Seek(0, 1)- end, _ := body.Seek(0, 2)- body.Seek(r.BodyStart, 0) // make sure to seek back to original location- length = end - r.BodyStart- default:- panic("Cannot get length of body, must provide `ContentLength`")+ if length > 0 {+ r.HTTPRequest.ContentLength = length+ r.HTTPRequest.Header.Set("Content-Length", fmt.Sprintf("%d", length))+ } else {+ r.HTTPRequest.ContentLength = 0+ r.HTTPRequest.Header.Del("Content-Length")}-- r.HTTPRequest.ContentLength = length- r.HTTPRequest.Header.Set("Content-Length", fmt.Sprintf("%d", length))}}// SDKVersionUserAgentHandler is a request handler for adding the SDK Version to the user agent.@@ -59,6 +69,34 @@ var SDKVersionUserAgentHandler = request.NamedHandler{var reStatusCode = regexp.MustCompile(`^(\d{3})`)+// ValidateReqSigHandler is a request handler to ensure that the request's+// signature doesn't expire before it is sent. This can happen when a request+// is built and signed signficantly before it is sent. Or signficant delays+// occur whne retrying requests that would cause the signature to expire.+var ValidateReqSigHandler = request.NamedHandler{+ Name: "core.ValidateReqSigHandler",+ Fn: func(r *request.Request) {+ // Unsigned requests are not signed+ if r.Config.Credentials == credentials.AnonymousCredentials {+ return+ }++ signedTime := r.Time+ if !r.LastSignedAt.IsZero() {+ signedTime = r.LastSignedAt+ }++ // 10 minutes to allow for some clock skew/delays in transmission.+ // Would be improved with aws/aws-sdk-go#423+ if signedTime.Add(10 * time.Minute).After(time.Now()) {+ return+ }++ fmt.Println("request expired, resigning")+ r.Sign()+ },+}+// SendHandler is a request handler to send service request using HTTP client.var SendHandler = request.NamedHandler{Name: "core.SendHandler", Fn: func(r *request.Request) {var err errordiff --git a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.goindex ea07580a9..7d50b1557 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go@@ -1,153 +1,17 @@package corehandlers-import (- "fmt"- "reflect"- "strconv"- "strings"-- "github.com/aws/aws-sdk-go/aws/awserr"- "github.com/aws/aws-sdk-go/aws/request"-)+import "github.com/aws/aws-sdk-go/aws/request"// ValidateParametersHandler is a request handler to validate the input parameters.// Validating parameters only has meaning if done prior to the request being sent.var ValidateParametersHandler = request.NamedHandler{Name: "core.ValidateParametersHandler", Fn: func(r *request.Request) {- if r.ParamsFilled() {- v := validator{errors: []string{}}- v.validateAny(reflect.ValueOf(r.Params), "")-- if count := len(v.errors); count > 0 {- format := "%d validation errors:\n- %s"- msg := fmt.Sprintf(format, count, strings.Join(v.errors, "\n- "))- r.Error = awserr.New("InvalidParameter", msg, nil)- }- }-}}--// A validator validates values. Collects validations errors which occurs.-type validator struct {- errors []string-}--// There's no validation to be done on the contents of []byte values. Prepare-// to check validateAny arguments against that type so we can quickly skip-// them.-var byteSliceType = reflect.TypeOf([]byte(nil))--// validateAny will validate any struct, slice or map type. All validations-// are also performed recursively for nested types.-func (v *validator) validateAny(value reflect.Value, path string) {- value = reflect.Indirect(value)- if !value.IsValid() {+ if !r.ParamsFilled() {return}- switch value.Kind() {- case reflect.Struct:- v.validateStruct(value, path)- case reflect.Slice:- if value.Type() == byteSliceType {- // We don't need to validate the contents of []byte.- return- }- for i := 0; i < value.Len(); i++ {- v.validateAny(value.Index(i), path+fmt.Sprintf("[%d]", i))- }- case reflect.Map:- for _, n := range value.MapKeys() {- v.validateAny(value.MapIndex(n), path+fmt.Sprintf("[%q]", n.String()))+ if v, ok := r.Params.(request.Validator); ok {+ if err := v.Validate(); err != nil {+ r.Error = err}}-}--// validateStruct will validate the struct value's fields. If the structure has-// nested types those types will be validated also.-func (v *validator) validateStruct(value reflect.Value, path string) {- prefix := "."- if path == "" {- prefix = ""- }-- for i := 0; i < value.Type().NumField(); i++ {- f := value.Type().Field(i)- if strings.ToLower(f.Name[0:1]) == f.Name[0:1] {- continue- }- fvalue := value.FieldByName(f.Name)-- err := validateField(f, fvalue, validateFieldRequired, validateFieldMin)- if err != nil {- v.errors = append(v.errors, fmt.Sprintf("%s: %s", err.Error(), path+prefix+f.Name))- continue- }-- v.validateAny(fvalue, path+prefix+f.Name)- }-}--type validatorFunc func(f reflect.StructField, fvalue reflect.Value) error--func validateField(f reflect.StructField, fvalue reflect.Value, funcs ...validatorFunc) error {- for _, fn := range funcs {- if err := fn(f, fvalue); err != nil {- return err- }- }- return nil-}--// Validates that a field has a valid value provided for required fields.-func validateFieldRequired(f reflect.StructField, fvalue reflect.Value) error {- if f.Tag.Get("required") == "" {- return nil- }-- switch fvalue.Kind() {- case reflect.Ptr, reflect.Slice, reflect.Map:- if fvalue.IsNil() {- return fmt.Errorf("missing required parameter")- }- default:- if !fvalue.IsValid() {- return fmt.Errorf("missing required parameter")- }- }- return nil-}--// Validates that if a value is provided for a field, that value must be at-// least a minimum length.-func validateFieldMin(f reflect.StructField, fvalue reflect.Value) error {- minStr := f.Tag.Get("min")- if minStr == "" {- return nil- }- min, _ := strconv.ParseInt(minStr, 10, 64)-- kind := fvalue.Kind()- if kind == reflect.Ptr {- if fvalue.IsNil() {- return nil- }- fvalue = fvalue.Elem()- }-- switch fvalue.Kind() {- case reflect.String:- if int64(fvalue.Len()) < min {- return fmt.Errorf("field too short, minimum length %d", min)- }- case reflect.Slice, reflect.Map:- if fvalue.IsNil() {- return nil- }- if int64(fvalue.Len()) < min {- return fmt.Errorf("field too short, minimum length %d", min)- }-- // TODO min can also apply to number minimum value.-- }- return nil-}+}}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.goindex 857311f64..6efc77bf0 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go@@ -34,7 +34,7 @@ var (//// Example of ChainProvider to be used with an EnvProvider and EC2RoleProvider.// In this example EnvProvider will first check if any credentials are available-// vai the environment variables. If there are none ChainProvider will check+// via the environment variables. If there are none ChainProvider will check// the next Provider in the list, EC2RoleProvider in this case. If EC2RoleProvider// does not return any credentials ChainProvider will return the error// ErrNoValidProvidersFoundInChaindiff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.goindex aa9d689a0..c39749524 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go@@ -111,7 +111,7 @@ func (m *EC2RoleProvider) Retrieve() (credentials.Value, error) {}, nil}-// A ec2RoleCredRespBody provides the shape for unmarshalling credential+// A ec2RoleCredRespBody provides the shape for unmarshaling credential// request responses.type ec2RoleCredRespBody struct {// Success Statediff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.gonew file mode 100644index 000000000..a4cec5c55--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go@@ -0,0 +1,191 @@+// Package endpointcreds provides support for retrieving credentials from an+// arbitrary HTTP endpoint.+//+// The credentials endpoint Provider can receive both static and refreshable+// credentials that will expire. Credentials are static when an "Expiration"+// value is not provided in the endpoint's response.+//+// Static credentials will never expire once they have been retrieved. The format+// of the static credentials response:+// {+// "AccessKeyId" : "MUA...",+// "SecretAccessKey" : "/7PC5om....",+// }+//+// Refreshable credentials will expire within the "ExpiryWindow" of the Expiration+// value in the response. The format of the refreshable credentials response:+// {+// "AccessKeyId" : "MUA...",+// "SecretAccessKey" : "/7PC5om....",+// "Token" : "AQoDY....=",+// "Expiration" : "2016-02-25T06:03:31Z"+// }+//+// Errors should be returned in the following format and only returned with 400+// or 500 HTTP status codes.+// {+// "code": "ErrorCode",+// "message": "Helpful error message."+// }+package endpointcreds++import (+ "encoding/json"+ "time"++ "github.com/aws/aws-sdk-go/aws"+ "github.com/aws/aws-sdk-go/aws/awserr"+ "github.com/aws/aws-sdk-go/aws/client"+ "github.com/aws/aws-sdk-go/aws/client/metadata"+ "github.com/aws/aws-sdk-go/aws/credentials"+ "github.com/aws/aws-sdk-go/aws/request"+)++// ProviderName is the name of the credentials provider.+const ProviderName = `CredentialsEndpointProvider`++// Provider satisfies the credentials.Provider interface, and is a client to+// retrieve credentials from an arbitrary endpoint.+type Provider struct {+ staticCreds bool+ credentials.Expiry++ // Requires a AWS Client to make HTTP requests to the endpoint with.+ // the Endpoint the request will be made to is provided by the aws.Config's+ // Endpoint value.+ Client *client.Client++ // ExpiryWindow will allow the credentials to trigger refreshing prior to+ // the credentials actually expiring. This is beneficial so race conditions+ // with expiring credentials do not cause request to fail unexpectedly+ // due to ExpiredTokenException exceptions.+ //+ // So a ExpiryWindow of 10s would cause calls to IsExpired() to return true+ // 10 seconds before the credentials are actually expired.+ //+ // If ExpiryWindow is 0 or less it will be ignored.+ ExpiryWindow time.Duration+}++// NewProviderClient returns a credentials Provider for retrieving AWS credentials+// from arbitrary endpoint.+func NewProviderClient(cfg aws.Config, handlers request.Handlers, endpoint string, options ...func(*Provider)) credentials.Provider {+ p := &Provider{+ Client: client.New(+ cfg,+ metadata.ClientInfo{+ ServiceName: "CredentialsEndpoint",+ Endpoint: endpoint,+ },+ handlers,+ ),+ }++ p.Client.Handlers.Unmarshal.PushBack(unmarshalHandler)+ p.Client.Handlers.UnmarshalError.PushBack(unmarshalError)+ p.Client.Handlers.Validate.Clear()+ p.Client.Handlers.Validate.PushBack(validateEndpointHandler)++ for _, option := range options {+ option(p)+ }++ return p+}++// NewCredentialsClient returns a Credentials wrapper for retrieving credentials+// from an arbitrary endpoint concurrently. The client will request the+func NewCredentialsClient(cfg aws.Config, handlers request.Handlers, endpoint string, options ...func(*Provider)) *credentials.Credentials {+ return credentials.NewCredentials(NewProviderClient(cfg, handlers, endpoint, options...))+}++// IsExpired returns true if the credentials retrieved are expired, or not yet+// retrieved.+func (p *Provider) IsExpired() bool {+ if p.staticCreds {+ return false+ }+ return p.Expiry.IsExpired()+}++// Retrieve will attempt to request the credentials from the endpoint the Provider+// was configured for. And error will be returned if the retrieval fails.+func (p *Provider) Retrieve() (credentials.Value, error) {+ resp, err := p.getCredentials()+ if err != nil {+ return credentials.Value{ProviderName: ProviderName},+ awserr.New("CredentialsEndpointError", "failed to load credentials", err)+ }++ if resp.Expiration != nil {+ p.SetExpiration(*resp.Expiration, p.ExpiryWindow)+ } else {+ p.staticCreds = true+ }++ return credentials.Value{+ AccessKeyID: resp.AccessKeyID,+ SecretAccessKey: resp.SecretAccessKey,+ SessionToken: resp.Token,+ ProviderName: ProviderName,+ }, nil+}++type getCredentialsOutput struct {+ Expiration *time.Time+ AccessKeyID string+ SecretAccessKey string+ Token string+}++type errorOutput struct {+ Code string `json:"code"`+ Message string `json:"message"`+}++func (p *Provider) getCredentials() (*getCredentialsOutput, error) {+ op := &request.Operation{+ Name: "GetCredentials",+ HTTPMethod: "GET",+ }++ out := &getCredentialsOutput{}+ req := p.Client.NewRequest(op, nil, out)+ req.HTTPRequest.Header.Set("Accept", "application/json")++ return out, req.Send()+}++func validateEndpointHandler(r *request.Request) {+ if len(r.ClientInfo.Endpoint) == 0 {+ r.Error = aws.ErrMissingEndpoint+ }+}++func unmarshalHandler(r *request.Request) {+ defer r.HTTPResponse.Body.Close()++ out := r.Data.(*getCredentialsOutput)+ if err := json.NewDecoder(r.HTTPResponse.Body).Decode(&out); err != nil {+ r.Error = awserr.New("SerializationError",+ "failed to decode endpoint credentials",+ err,+ )+ }+}++func unmarshalError(r *request.Request) {+ defer r.HTTPResponse.Body.Close()++ var errOut errorOutput+ if err := json.NewDecoder(r.HTTPResponse.Body).Decode(&errOut); err != nil {+ r.Error = awserr.New("SerializationError",+ "failed to decode endpoint credentials",+ err,+ )+ }++ // Response body format is not consistent between metadata endpoints.+ // Grab the error message as a string and include that as the source error+ r.Error = awserr.New(errOut.Code, errOut.Message, nil)+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.goindex 71189e733..4f5dab3fc 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go@@ -14,7 +14,7 @@ var (ErrStaticCredentialsEmpty = awserr.New("EmptyStaticCreds", "static credentials are empty", nil))-// A StaticProvider is a set of credentials which are set pragmatically,+// A StaticProvider is a set of credentials which are set programmatically,// and will never expire.type StaticProvider struct {Value@@ -30,13 +30,22 @@ func NewStaticCredentials(id, secret, token string) *Credentials {}})}+// NewStaticCredentialsFromCreds returns a pointer to a new Credentials object+// wrapping the static credentials value provide. Same as NewStaticCredentials+// but takes the creds Value instead of individual fields+func NewStaticCredentialsFromCreds(creds Value) *Credentials {+ return NewCredentials(&StaticProvider{Value: creds})+}+// Retrieve returns the credentials or error if the credentials are invalid.func (s *StaticProvider) Retrieve() (Value, error) {if s.AccessKeyID == "" || s.SecretAccessKey == "" {return Value{ProviderName: StaticProviderName}, ErrStaticCredentialsEmpty}- s.Value.ProviderName = StaticProviderName+ if len(s.Value.ProviderName) == 0 {+ s.Value.ProviderName = StaticProviderName+ }return s.Value, nil}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.gonew file mode 100644index 000000000..30c847ae2--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go@@ -0,0 +1,161 @@+// Package stscreds are credential Providers to retrieve STS AWS credentials.+//+// STS provides multiple ways to retrieve credentials which can be used when making+// future AWS service API operation calls.+package stscreds++import (+ "fmt"+ "time"++ "github.com/aws/aws-sdk-go/aws"+ "github.com/aws/aws-sdk-go/aws/client"+ "github.com/aws/aws-sdk-go/aws/credentials"+ "github.com/aws/aws-sdk-go/service/sts"+)++// ProviderName provides a name of AssumeRole provider+const ProviderName = "AssumeRoleProvider"++// AssumeRoler represents the minimal subset of the STS client API used by this provider.+type AssumeRoler interface {+ AssumeRole(input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error)+}++// DefaultDuration is the default amount of time in minutes that the credentials+// will be valid for.+var DefaultDuration = time.Duration(15) * time.Minute++// AssumeRoleProvider retrieves temporary credentials from the STS service, and+// keeps track of their expiration time. This provider must be used explicitly,+// as it is not included in the credentials chain.+type AssumeRoleProvider struct {+ credentials.Expiry++ // STS client to make assume role request with.+ Client AssumeRoler++ // Role to be assumed.+ RoleARN string++ // Session name, if you wish to reuse the credentials elsewhere.+ RoleSessionName string++ // Expiry duration of the STS credentials. Defaults to 15 minutes if not set.+ Duration time.Duration++ // Optional ExternalID to pass along, defaults to nil if not set.+ ExternalID *string++ // The policy plain text must be 2048 bytes or shorter. However, an internal+ // conversion compresses it into a packed binary format with a separate limit.+ // The PackedPolicySize response element indicates by percentage how close to+ // the upper size limit the policy is, with 100% equaling the maximum allowed+ // size.+ Policy *string++ // The identification number of the MFA device that is associated with the user+ // who is making the AssumeRole call. Specify this value if the trust policy+ // of the role being assumed includes a condition that requires MFA authentication.+ // The value is either the serial number for a hardware device (such as GAHT12345678)+ // or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).+ SerialNumber *string++ // The value provided by the MFA device, if the trust policy of the role being+ // assumed requires MFA (that is, if the policy includes a condition that tests+ // for MFA). If the role being assumed requires MFA and if the TokenCode value+ // is missing or expired, the AssumeRole call returns an "access denied" error.+ TokenCode *string++ // ExpiryWindow will allow the credentials to trigger refreshing prior to+ // the credentials actually expiring. This is beneficial so race conditions+ // with expiring credentials do not cause request to fail unexpectedly+ // due to ExpiredTokenException exceptions.+ //+ // So a ExpiryWindow of 10s would cause calls to IsExpired() to return true+ // 10 seconds before the credentials are actually expired.+ //+ // If ExpiryWindow is 0 or less it will be ignored.+ ExpiryWindow time.Duration+}++// NewCredentials returns a pointer to a new Credentials object wrapping the+// AssumeRoleProvider. The credentials will expire every 15 minutes and the+// role will be named after a nanosecond timestamp of this operation.+//+// Takes a Config provider to create the STS client. The ConfigProvider is+// satisfied by the session.Session type.+func NewCredentials(c client.ConfigProvider, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials {+ p := &AssumeRoleProvider{+ Client: sts.New(c),+ RoleARN: roleARN,+ Duration: DefaultDuration,+ }++ for _, option := range options {+ option(p)+ }++ return credentials.NewCredentials(p)+}++// NewCredentialsWithClient returns a pointer to a new Credentials object wrapping the+// AssumeRoleProvider. The credentials will expire every 15 minutes and the+// role will be named after a nanosecond timestamp of this operation.+//+// Takes an AssumeRoler which can be satisfiede by the STS client.+func NewCredentialsWithClient(svc AssumeRoler, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials {+ p := &AssumeRoleProvider{+ Client: svc,+ RoleARN: roleARN,+ Duration: DefaultDuration,+ }++ for _, option := range options {+ option(p)+ }++ return credentials.NewCredentials(p)+}++// Retrieve generates a new set of temporary credentials using STS.+func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) {++ // Apply defaults where parameters are not set.+ if p.RoleSessionName == "" {+ // Try to work out a role name that will hopefully end up unique.+ p.RoleSessionName = fmt.Sprintf("%d", time.Now().UTC().UnixNano())+ }+ if p.Duration == 0 {+ // Expire as often as AWS permits.+ p.Duration = DefaultDuration+ }+ input := &sts.AssumeRoleInput{+ DurationSeconds: aws.Int64(int64(p.Duration / time.Second)),+ RoleArn: aws.String(p.RoleARN),+ RoleSessionName: aws.String(p.RoleSessionName),+ ExternalId: p.ExternalID,+ }+ if p.Policy != nil {+ input.Policy = p.Policy+ }+ if p.SerialNumber != nil && p.TokenCode != nil {+ input.SerialNumber = p.SerialNumber+ input.TokenCode = p.TokenCode+ }+ roleOutput, err := p.Client.AssumeRole(input)++ if err != nil {+ return credentials.Value{ProviderName: ProviderName}, err+ }++ // We will proactively generate new credentials before they expire.+ p.SetExpiration(*roleOutput.Credentials.Expiration, p.ExpiryWindow)++ return credentials.Value{+ AccessKeyID: *roleOutput.Credentials.AccessKeyId,+ SecretAccessKey: *roleOutput.Credentials.SecretAccessKey,+ SessionToken: *roleOutput.Credentials.SessionToken,+ ProviderName: ProviderName,+ }, nil+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.goindex 043960d3f..8dbbf670e 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go@@ -8,6 +8,7 @@package defaultsimport (+ "fmt""net/http""os""time"@@ -16,6 +17,7 @@ import ("github.com/aws/aws-sdk-go/aws/corehandlers""github.com/aws/aws-sdk-go/aws/credentials""github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds"+ "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds""github.com/aws/aws-sdk-go/aws/ec2metadata""github.com/aws/aws-sdk-go/aws/request""github.com/aws/aws-sdk-go/private/endpoints"@@ -66,9 +68,11 @@ func Handlers() request.Handlers {var handlers request.Handlershandlers.Validate.PushBackNamed(corehandlers.ValidateEndpointHandler)+ handlers.Validate.AfterEachFn = request.HandlerListStopOnErrorhandlers.Build.PushBackNamed(corehandlers.SDKVersionUserAgentHandler)handlers.Build.AfterEachFn = request.HandlerListStopOnErrorhandlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler)+ handlers.Send.PushBackNamed(corehandlers.ValidateReqSigHandler)handlers.Send.PushBackNamed(corehandlers.SendHandler)handlers.AfterRetry.PushBackNamed(corehandlers.AfterRetryHandler)handlers.ValidateResponse.PushBackNamed(corehandlers.ValidateResponseHandler)@@ -82,16 +86,45 @@ func Handlers() request.Handlers {// is available if you need to reset the credentials of an// existing service client or session's Config.func CredChain(cfg *aws.Config, handlers request.Handlers) *credentials.Credentials {- endpoint, signingRegion := endpoints.EndpointForRegion(ec2metadata.ServiceName, *cfg.Region, true)-return credentials.NewCredentials(&credentials.ChainProvider{VerboseErrors: aws.BoolValue(cfg.CredentialsChainVerboseErrors),Providers: []credentials.Provider{&credentials.EnvProvider{},&credentials.SharedCredentialsProvider{Filename: "", Profile: ""},- &ec2rolecreds.EC2RoleProvider{- Client: ec2metadata.NewClient(*cfg, handlers, endpoint, signingRegion),- ExpiryWindow: 5 * time.Minute,- },- }})+ RemoteCredProvider(*cfg, handlers),+ },+ })+}++// RemoteCredProvider returns a credenitials provider for the default remote+// endpoints such as EC2 or ECS Roles.+func RemoteCredProvider(cfg aws.Config, handlers request.Handlers) credentials.Provider {+ ecsCredURI := os.Getenv("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI")++ if len(ecsCredURI) > 0 {+ return ecsCredProvider(cfg, handlers, ecsCredURI)+ }++ return ec2RoleProvider(cfg, handlers)+}++func ecsCredProvider(cfg aws.Config, handlers request.Handlers, uri string) credentials.Provider {+ const host = `169.254.170.2`++ return endpointcreds.NewProviderClient(cfg, handlers,+ fmt.Sprintf("http://%s%s", host, uri),+ func(p *endpointcreds.Provider) {+ p.ExpiryWindow = 5 * time.Minute+ },+ )+}++func ec2RoleProvider(cfg aws.Config, handlers request.Handlers) credentials.Provider {+ endpoint, signingRegion := endpoints.EndpointForRegion(ec2metadata.ServiceName,+ aws.StringValue(cfg.Region), true, false)++ return &ec2rolecreds.EC2RoleProvider{+ Client: ec2metadata.NewClient(cfg, handlers, endpoint, signingRegion),+ ExpiryWindow: 5 * time.Minute,+ }}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.goindex e5137ca17..984407a58 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go@@ -1,12 +1,20 @@package ec2metadataimport (+ "encoding/json"+ "fmt"+ "net/http""path"+ "strings"+ "time"+ "github.com/aws/aws-sdk-go/aws/awserr""github.com/aws/aws-sdk-go/aws/request")-// GetMetadata uses the path provided to request+// GetMetadata uses the path provided to request information from the EC2+// instance metdata service. The content will be returned as a string, or+// error if the request failed.func (c *EC2Metadata) GetMetadata(p string) (string, error) {op := &request.Operation{Name: "GetMetadata",@@ -20,6 +28,89 @@ func (c *EC2Metadata) GetMetadata(p string) (string, error) {return output.Content, req.Send()}+// GetUserData returns the userdata that was configured for the service. If+// there is no user-data setup for the EC2 instance a "NotFoundError" error+// code will be returned.+func (c *EC2Metadata) GetUserData() (string, error) {+ op := &request.Operation{+ Name: "GetUserData",+ HTTPMethod: "GET",+ HTTPPath: path.Join("/", "user-data"),+ }++ output := &metadataOutput{}+ req := c.NewRequest(op, nil, output)+ req.Handlers.UnmarshalError.PushBack(func(r *request.Request) {+ if r.HTTPResponse.StatusCode == http.StatusNotFound {+ r.Error = awserr.New("NotFoundError", "user-data not found", r.Error)+ }+ })++ return output.Content, req.Send()+}++// GetDynamicData uses the path provided to request information from the EC2+// instance metadata service for dynamic data. The content will be returned+// as a string, or error if the request failed.+func (c *EC2Metadata) GetDynamicData(p string) (string, error) {+ op := &request.Operation{+ Name: "GetDynamicData",+ HTTPMethod: "GET",+ HTTPPath: path.Join("/", "dynamic", p),+ }++ output := &metadataOutput{}+ req := c.NewRequest(op, nil, output)++ return output.Content, req.Send()+}++// GetInstanceIdentityDocument retrieves an identity document describing an+// instance. Error is returned if the request fails or is unable to parse+// the response.+func (c *EC2Metadata) GetInstanceIdentityDocument() (EC2InstanceIdentityDocument, error) {+ resp, err := c.GetDynamicData("instance-identity/document")+ if err != nil {+ return EC2InstanceIdentityDocument{},+ awserr.New("EC2MetadataRequestError",+ "failed to get EC2 instance identity document", err)+ }++ doc := EC2InstanceIdentityDocument{}+ if err := json.NewDecoder(strings.NewReader(resp)).Decode(&doc); err != nil {+ return EC2InstanceIdentityDocument{},+ awserr.New("SerializationError",+ "failed to decode EC2 instance identity document", err)+ }++ return doc, nil+}++// IAMInfo retrieves IAM info from the metadata API+func (c *EC2Metadata) IAMInfo() (EC2IAMInfo, error) {+ resp, err := c.GetMetadata("iam/info")+ if err != nil {+ return EC2IAMInfo{},+ awserr.New("EC2MetadataRequestError",+ "failed to get EC2 IAM info", err)+ }++ info := EC2IAMInfo{}+ if err := json.NewDecoder(strings.NewReader(resp)).Decode(&info); err != nil {+ return EC2IAMInfo{},+ awserr.New("SerializationError",+ "failed to decode EC2 IAM info", err)+ }++ if info.Code != "Success" {+ errMsg := fmt.Sprintf("failed to get EC2 IAM Info (%s)", info.Code)+ return EC2IAMInfo{},+ awserr.New("EC2MetadataError", errMsg, nil)+ }++ return info, nil+}+// Region returns the region the instance is running in.func (c *EC2Metadata) Region() (string, error) {resp, err := c.GetMetadata("placement/availability-zone")@@ -41,3 +132,31 @@ func (c *EC2Metadata) Available() bool {return true}++// An EC2IAMInfo provides the shape for unmarshaling+// an IAM info from the metadata API+type EC2IAMInfo struct {+ Code string+ LastUpdated time.Time+ InstanceProfileArn string+ InstanceProfileID string+}++// An EC2InstanceIdentityDocument provides the shape for unmarshaling+// an instance identity document+type EC2InstanceIdentityDocument struct {+ DevpayProductCodes []string `json:"devpayProductCodes"`+ AvailabilityZone string `json:"availabilityZone"`+ PrivateIP string `json:"privateIp"`+ Version string `json:"version"`+ Region string `json:"region"`+ InstanceID string `json:"instanceId"`+ BillingProducts []string `json:"billingProducts"`+ InstanceType string `json:"instanceType"`+ AccountID string `json:"accountId"`+ PendingTime time.Time `json:"pendingTime"`+ ImageID string `json:"imageId"`+ KernelID string `json:"kernelId"`+ RamdiskID string `json:"ramdiskId"`+ Architecture string `json:"architecture"`+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request.go b/vendor/github.com/aws/aws-sdk-go/aws/request/http_request.gonew file mode 100644index 000000000..79f79602b--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/request/http_request.go@@ -0,0 +1,24 @@+package request++import (+ "io"+ "net/http"+ "net/url"+)++func copyHTTPRequest(r *http.Request, body io.ReadCloser) *http.Request {+ req := new(http.Request)+ *req = *r+ req.URL = &url.URL{}+ *req.URL = *r.URL+ req.Body = body++ req.Header = http.Header{}+ for k, v := range r.Header {+ for _, vv := range v {+ req.Header.Add(k, vv)+ }+ }++ return req+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader.go b/vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader.gonew file mode 100644index 000000000..02f07f4a4--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader.go@@ -0,0 +1,58 @@+package request++import (+ "io"+ "sync"+)++// offsetReader is a thread-safe io.ReadCloser to prevent racing+// with retrying requests+type offsetReader struct {+ buf io.ReadSeeker+ lock sync.Mutex+ closed bool+}++func newOffsetReader(buf io.ReadSeeker, offset int64) *offsetReader {+ reader := &offsetReader{}+ buf.Seek(offset, 0)++ reader.buf = buf+ return reader+}++// Close will close the instance of the offset reader's access to+// the underlying io.ReadSeeker.+func (o *offsetReader) Close() error {+ o.lock.Lock()+ defer o.lock.Unlock()+ o.closed = true+ return nil+}++// Read is a thread-safe read of the underlying io.ReadSeeker+func (o *offsetReader) Read(p []byte) (int, error) {+ o.lock.Lock()+ defer o.lock.Unlock()++ if o.closed {+ return 0, io.EOF+ }++ return o.buf.Read(p)+}++// Seek is a thread-safe seeking operation.+func (o *offsetReader) Seek(offset int64, whence int) (int64, error) {+ o.lock.Lock()+ defer o.lock.Unlock()++ return o.buf.Seek(offset, whence)+}++// CloseAndCopy will return a new offsetReader with a copy of the old buffer+// and close the old buffer.+func (o *offsetReader) CloseAndCopy(offset int64) *offsetReader {+ o.Close()+ return newOffsetReader(o.buf, offset)+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request.goindex 85eead3d5..8ef9715c6 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/request/request.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request.go@@ -4,7 +4,6 @@ import ("bytes""fmt""io"- "io/ioutil""net/http""net/url""reflect"@@ -12,6 +11,7 @@ import ("time""github.com/aws/aws-sdk-go/aws"+ "github.com/aws/aws-sdk-go/aws/awserr""github.com/aws/aws-sdk-go/aws/client/metadata")@@ -38,8 +38,15 @@ type Request struct {RetryDelay time.DurationNotHoist boolSignedHeaderVals http.Header+ LastSignedAt time.Timebuilt bool++ // Need to persist an intermideant body betweend the input Body and HTTP+ // request body because the HTTP Client's transport can maintain a reference+ // to the HTTP request's body after the client has returned. This value is+ // safe to use concurrently and rewraps the input Body for each HTTP request.+ safeBody *offsetReader}// An Operation is the service API operation to be made.@@ -71,13 +78,15 @@ func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers,if method == "" {method = "POST"}- p := operation.HTTPPath- if p == "" {- p = "/"- }httpReq, _ := http.NewRequest(method, "", nil)- httpReq.URL, _ = url.Parse(clientInfo.Endpoint + p)++ var err error+ httpReq.URL, err = url.Parse(clientInfo.Endpoint + operation.HTTPPath)+ if err != nil {+ httpReq.URL = &url.URL{}+ err = awserr.New("InvalidEndpointURL", "invalid endpoint uri", err)+ }r := &Request{Config: cfg,@@ -91,7 +100,7 @@ func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers,HTTPRequest: httpReq,Body: nil,Params: params,- Error: nil,+ Error: err,Data: data,}r.SetBufferBody([]byte{})@@ -131,8 +140,8 @@ func (r *Request) SetStringBody(s string) {// SetReaderBody will set the request's body reader.func (r *Request) SetReaderBody(reader io.ReadSeeker) {- r.HTTPRequest.Body = ioutil.NopCloser(reader)r.Body = reader+ r.ResetBody()}// Presign returns the request's signed URL. Error will be returned@@ -185,7 +194,6 @@ func debugLogReqError(r *Request, stage string, retrying bool, err error) {// which occurred will be returned.func (r *Request) Build() error {if !r.built {- r.Error = nilr.Handlers.Validate.Run(r)if r.Error != nil {debugLogReqError(r, "Validate Request", false, r.Error)@@ -202,7 +210,7 @@ func (r *Request) Build() error {return r.Error}-// Sign will sign the request retuning error if errors are encountered.+// Sign will sign the request returning error if errors are encountered.//// Send will build the request prior to signing. All Sign Handlers will// be executed in the order they were set.@@ -217,36 +225,71 @@ func (r *Request) Sign() error {return r.Error}+// ResetBody rewinds the request body backto its starting position, and+// set's the HTTP Request body reference. When the body is read prior+// to being sent in the HTTP request it will need to be rewound.+func (r *Request) ResetBody() {+ if r.safeBody != nil {+ r.safeBody.Close()+ }++ r.safeBody = newOffsetReader(r.Body, r.BodyStart)+ r.HTTPRequest.Body = r.safeBody+}++// GetBody will return an io.ReadSeeker of the Request's underlying+// input body with a concurrency safe wrapper.+func (r *Request) GetBody() io.ReadSeeker {+ return r.safeBody+}+// Send will send the request returning error if errors are encountered.//// Send will sign the request prior to sending. All Send Handlers will// be executed in the order they were set.+//+// Canceling a request is non-deterministic. If a request has been canceled,+// then the transport will choose, randomly, one of the state channels during+// reads or getting the connection.+//+// readLoop() and getConn(req *Request, cm connectMethod)+// https://github.com/golang/go/blob/master/src/net/http/transport.go+//+// Send will not close the request.Request's body.func (r *Request) Send() error {for {- r.Sign()- if r.Error != nil {- return r.Error- }-if aws.BoolValue(r.Retryable) {if r.Config.LogLevel.Matches(aws.LogDebugWithRequestRetries) {r.Config.Logger.Log(fmt.Sprintf("DEBUG: Retrying Request %s/%s, attempt %d",r.ClientInfo.ServiceName, r.Operation.Name, r.RetryCount))}- // Closing response body. Since we are setting a new request to send off, this- // response will get squashed and leaked.- r.HTTPResponse.Body.Close()+ // The previous http.Request will have a reference to the r.Body+ // and the HTTP Client's Transport may still be reading from+ // the request's body even though the Client's Do returned.+ r.HTTPRequest = copyHTTPRequest(r.HTTPRequest, nil)+ r.ResetBody()- // Re-seek the body back to the original point in for a retry so that- // send will send the body's contents again in the upcoming request.- r.Body.Seek(r.BodyStart, 0)- r.HTTPRequest.Body = ioutil.NopCloser(r.Body)+ // Closing response body to ensure that no response body is leaked+ // between retry attempts.+ if r.HTTPResponse != nil && r.HTTPResponse.Body != nil {+ r.HTTPResponse.Body.Close()+ }+ }++ r.Sign()+ if r.Error != nil {+ return r.Error}+r.Retryable = nilr.Handlers.Send.Run(r)if r.Error != nil {+ if strings.Contains(r.Error.Error(), "net/http: request canceled") {+ return r.Error+ }+err := r.Errorr.Handlers.Retry.Run(r)r.Handlers.AfterRetry.Run(r)@@ -257,7 +300,6 @@ func (r *Request) Send() error {debugLogReqError(r, "Send Request", true, err)continue}-r.Handlers.UnmarshalMeta.Run(r)r.Handlers.ValidateResponse.Run(r)if r.Error != nil {diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go b/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.goindex ab6fff5ac..8cc8b015a 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go@@ -26,8 +26,11 @@ func WithRetryer(cfg *aws.Config, retryer Retryer) *aws.Config {// retryableCodes is a collection of service response codes which are retry-able// without any further action.var retryableCodes = map[string]struct{}{- "RequestError": {},- "RequestTimeout": {},+ "RequestError": {},+ "RequestTimeout": {},+}++var throttleCodes = map[string]struct{}{"ProvisionedThroughputExceededException": {},"Throttling": {},"ThrottlingException": {},@@ -46,6 +49,11 @@ var credsExpiredCodes = map[string]struct{}{"RequestExpired": {}, // EC2 Only}+func isCodeThrottle(code string) bool {+ _, ok := throttleCodes[code]+ return ok+}+func isCodeRetryable(code string) bool {if _, ok := retryableCodes[code]; ok {return true@@ -70,6 +78,17 @@ func (r *Request) IsErrorRetryable() bool {return false}+// IsErrorThrottle returns whether the error is to be throttled based on its code.+// Returns false if the request has no Error set+func (r *Request) IsErrorThrottle() bool {+ if r.Error != nil {+ if err, ok := r.Error.(awserr.Error); ok {+ return isCodeThrottle(err.Code())+ }+ }+ return false+}+// IsErrorExpired returns whether the error code is a credential expiry error.// Returns false if the request has no Error set.func (r *Request) IsErrorExpired() bool {diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/validation.go b/vendor/github.com/aws/aws-sdk-go/aws/request/validation.gonew file mode 100644index 000000000..2520286b7--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/request/validation.go@@ -0,0 +1,234 @@+package request++import (+ "bytes"+ "fmt"++ "github.com/aws/aws-sdk-go/aws/awserr"+)++const (+ // InvalidParameterErrCode is the error code for invalid parameters errors+ InvalidParameterErrCode = "InvalidParameter"+ // ParamRequiredErrCode is the error code for required parameter errors+ ParamRequiredErrCode = "ParamRequiredError"+ // ParamMinValueErrCode is the error code for fields with too low of a+ // number value.+ ParamMinValueErrCode = "ParamMinValueError"+ // ParamMinLenErrCode is the error code for fields without enough elements.+ ParamMinLenErrCode = "ParamMinLenError"+)++// Validator provides a way for types to perform validation logic on their+// input values that external code can use to determine if a type's values+// are valid.+type Validator interface {+ Validate() error+}++// An ErrInvalidParams provides wrapping of invalid parameter errors found when+// validating API operation input parameters.+type ErrInvalidParams struct {+ // Context is the base context of the invalid parameter group.+ Context string+ errs []ErrInvalidParam+}++// Add adds a new invalid parameter error to the collection of invalid+// parameters. The context of the invalid parameter will be updated to reflect+// this collection.+func (e *ErrInvalidParams) Add(err ErrInvalidParam) {+ err.SetContext(e.Context)+ e.errs = append(e.errs, err)+}++// AddNested adds the invalid parameter errors from another ErrInvalidParams+// value into this collection. The nested errors will have their nested context+// updated and base context to reflect the merging.+//+// Use for nested validations errors.+func (e *ErrInvalidParams) AddNested(nestedCtx string, nested ErrInvalidParams) {+ for _, err := range nested.errs {+ err.SetContext(e.Context)+ err.AddNestedContext(nestedCtx)+ e.errs = append(e.errs, err)+ }+}++// Len returns the number of invalid parameter errors+func (e ErrInvalidParams) Len() int {+ return len(e.errs)+}++// Code returns the code of the error+func (e ErrInvalidParams) Code() string {+ return InvalidParameterErrCode+}++// Message returns the message of the error+func (e ErrInvalidParams) Message() string {+ return fmt.Sprintf("%d validation error(s) found.", len(e.errs))+}++// Error returns the string formatted form of the invalid parameters.+func (e ErrInvalidParams) Error() string {+ w := &bytes.Buffer{}+ fmt.Fprintf(w, "%s: %s\n", e.Code(), e.Message())++ for _, err := range e.errs {+ fmt.Fprintf(w, "- %s\n", err.Message())+ }++ return w.String()+}++// OrigErr returns the invalid parameters as a awserr.BatchedErrors value+func (e ErrInvalidParams) OrigErr() error {+ return awserr.NewBatchError(+ InvalidParameterErrCode, e.Message(), e.OrigErrs())+}++// OrigErrs returns a slice of the invalid parameters+func (e ErrInvalidParams) OrigErrs() []error {+ errs := make([]error, len(e.errs))+ for i := 0; i < len(errs); i++ {+ errs[i] = e.errs[i]+ }++ return errs+}++// An ErrInvalidParam represents an invalid parameter error type.+type ErrInvalidParam interface {+ awserr.Error++ // Field name the error occurred on.+ Field() string++ // SetContext updates the context of the error.+ SetContext(string)++ // AddNestedContext updates the error's context to include a nested level.+ AddNestedContext(string)+}++type errInvalidParam struct {+ context string+ nestedContext string+ field string+ code string+ msg string+}++// Code returns the error code for the type of invalid parameter.+func (e *errInvalidParam) Code() string {+ return e.code+}++// Message returns the reason the parameter was invalid, and its context.+func (e *errInvalidParam) Message() string {+ return fmt.Sprintf("%s, %s.", e.msg, e.Field())+}++// Error returns the string version of the invalid parameter error.+func (e *errInvalidParam) Error() string {+ return fmt.Sprintf("%s: %s", e.code, e.Message())+}++// OrigErr returns nil, Implemented for awserr.Error interface.+func (e *errInvalidParam) OrigErr() error {+ return nil+}++// Field Returns the field and context the error occurred.+func (e *errInvalidParam) Field() string {+ field := e.context+ if len(field) > 0 {+ field += "."+ }+ if len(e.nestedContext) > 0 {+ field += fmt.Sprintf("%s.", e.nestedContext)+ }+ field += e.field++ return field+}++// SetContext updates the base context of the error.+func (e *errInvalidParam) SetContext(ctx string) {+ e.context = ctx+}++// AddNestedContext prepends a context to the field's path.+func (e *errInvalidParam) AddNestedContext(ctx string) {+ if len(e.nestedContext) == 0 {+ e.nestedContext = ctx+ } else {+ e.nestedContext = fmt.Sprintf("%s.%s", ctx, e.nestedContext)+ }++}++// An ErrParamRequired represents an required parameter error.+type ErrParamRequired struct {+ errInvalidParam+}++// NewErrParamRequired creates a new required parameter error.+func NewErrParamRequired(field string) *ErrParamRequired {+ return &ErrParamRequired{+ errInvalidParam{+ code: ParamRequiredErrCode,+ field: field,+ msg: fmt.Sprintf("missing required field"),+ },+ }+}++// An ErrParamMinValue represents a minimum value parameter error.+type ErrParamMinValue struct {+ errInvalidParam+ min float64+}++// NewErrParamMinValue creates a new minimum value parameter error.+func NewErrParamMinValue(field string, min float64) *ErrParamMinValue {+ return &ErrParamMinValue{+ errInvalidParam: errInvalidParam{+ code: ParamMinValueErrCode,+ field: field,+ msg: fmt.Sprintf("minimum field value of %v", min),+ },+ min: min,+ }+}++// MinValue returns the field's require minimum value.+//+// float64 is returned for both int and float min values.+func (e *ErrParamMinValue) MinValue() float64 {+ return e.min+}++// An ErrParamMinLen represents a minimum length parameter error.+type ErrParamMinLen struct {+ errInvalidParam+ min int+}++// NewErrParamMinLen creates a new minimum length parameter error.+func NewErrParamMinLen(field string, min int) *ErrParamMinLen {+ return &ErrParamMinLen{+ errInvalidParam: errInvalidParam{+ code: ParamMinValueErrCode,+ field: field,+ msg: fmt.Sprintf("minimum field size of %v", min),+ },+ min: min,+ }+}++// MinLen returns the field's required minimum length.+func (e *ErrParamMinLen) MinLen() int {+ return e.min+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go b/vendor/github.com/aws/aws-sdk-go/aws/session/doc.gonew file mode 100644index 000000000..d3dc8404e--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go@@ -0,0 +1,223 @@+/*+Package session provides configuration for the SDK's service clients.++Sessions can be shared across all service clients that share the same base+configuration. The Session is built from the SDK's default configuration and+request handlers.++Sessions should be cached when possible, because creating a new Session will+load all configuration values from the environment, and config files each time+the Session is created. Sharing the Session value across all of your service+clients will ensure the configuration is loaded the fewest number of times possible.++Concurrency++Sessions are safe to use concurrently as long as the Session is not being+modified. The SDK will not modify the Session once the Session has been created.+Creating service clients concurrently from a shared Session is safe.++Sessions from Shared Config++Sessions can be created using the method above that will only load the+additional config if the AWS_SDK_LOAD_CONFIG environment variable is set.+Alternatively you can explicitly create a Session with shared config enabled.+To do this you can use NewSessionWithOptions to configure how the Session will+be created. Using the NewSessionWithOptions with SharedConfigState set to+SharedConfigEnabled will create the session as if the AWS_SDK_LOAD_CONFIG+environment variable was set.++Creating Sessions++When creating Sessions optional aws.Config values can be passed in that will+override the default, or loaded config values the Session is being created+with. This allows you to provide additional, or case based, configuration+as needed.++By default NewSession will only load credentials from the shared credentials+file (~/.aws/credentials). If the AWS_SDK_LOAD_CONFIG environment variable is+set to a truthy value the Session will be created from the configuration+values from the shared config (~/.aws/config) and shared credentials+(~/.aws/credentials) files. See the section Sessions from Shared Config for+more information.++Create a Session with the default config and request handlers. With credentials+region, and profile loaded from the environment and shared config automatically.+Requires the AWS_PROFILE to be set, or "default" is used.++ // Create Session+ sess, err := session.NewSession()++ // Create a Session with a custom region+ sess, err := session.NewSession(&aws.Config{Region: aws.String("us-east-1")})++ // Create a S3 client instance from a session+ sess, err := session.NewSession()+ if err != nil {+ // Handle Session creation error+ }+ svc := s3.New(sess)++Create Session With Option Overrides++In addition to NewSession, Sessions can be created using NewSessionWithOptions.+This func allows you to control and override how the Session will be created+through code instead of being driven by environment variables only.++Use NewSessionWithOptions when you want to provide the config profile, or+override the shared config state (AWS_SDK_LOAD_CONFIG).++ // Equivalent to session.NewSession()+ sess, err := session.NewSessionWithOptions(session.Options{})++ // Specify profile to load for the session's config+ sess, err := session.NewSessionWithOptions(session.Options{+ Profile: "profile_name",+ })++ // Specify profile for config and region for requests+ sess, err := session.NewSessionWithOptions(session.Options{+ Config: aws.Config{Region: aws.String("us-east-1")},+ Profile: "profile_name",+ })++ // Force enable Shared Config support+ sess, err := session.NewSessionWithOptions(session.Options{+ SharedConfigState: SharedConfigEnable,+ })++Adding Handlers++You can add handlers to a session for processing HTTP requests. All service+clients that use the session inherit the handlers. For example, the following+handler logs every request and its payload made by a service client:++ // Create a session, and add additional handlers for all service+ // clients created with the Session to inherit. Adds logging handler.+ sess, err := session.NewSession()+ sess.Handlers.Send.PushFront(func(r *request.Request) {+ // Log every request made and its payload+ logger.Println("Request: %s/%s, Payload: %s",+ r.ClientInfo.ServiceName, r.Operation, r.Params)+ })++Deprecated "New" function++The New session function has been deprecated because it does not provide good+way to return errors that occur when loading the configuration files and values.+Because of this, NewSession was created so errors can be retrieved when+creating a session fails.++Shared Config Fields++By default the SDK will only load the shared credentials file's (~/.aws/credentials)+credentials values, and all other config is provided by the environment variables,+SDK defaults, and user provided aws.Config values.++If the AWS_SDK_LOAD_CONFIG environment variable is set, or SharedConfigEnable+option is used to create the Session the full shared config values will be+loaded. This includes credentials, region, and support for assume role. In+addition the Session will load its configuration from both the shared config+file (~/.aws/config) and shared credentials file (~/.aws/credentials). Both+files have the same format.++If both config files are present the configuration from both files will be+read. The Session will be created from configuration values from the shared+credentials file (~/.aws/credentials) over those in the shared credentials+file (~/.aws/config).++Credentials are the values the SDK should use for authenticating requests with+AWS Services. They arfrom a configuration file will need to include both+aws_access_key_id and aws_secret_access_key must be provided together in the+same file to be considered valid. The values will be ignored if not a complete+group. aws_session_token is an optional field that can be provided if both of+the other two fields are also provided.++ aws_access_key_id = AKID+ aws_secret_access_key = SECRET+ aws_session_token = TOKEN++Assume Role values allow you to configure the SDK to assume an IAM role using+a set of credentials provided in a config file via the source_profile field.+Both "role_arn" and "source_profile" are required. The SDK does not support+assuming a role with MFA token Via the Session's constructor. You can use the+stscreds.AssumeRoleProvider credentials provider to specify custom+configuration and support for MFA.++ role_arn = arn:aws:iam::<account_number>:role/<role_name>+ source_profile = profile_with_creds+ external_id = 1234+ mfa_serial = not supported!+ role_session_name = session_name++Region is the region the SDK should use for looking up AWS service endpoints+and signing requests.++ region = us-east-1++Environment Variables++When a Session is created several environment variables can be set to adjust+how the SDK functions, and what configuration data it loads when creating+Sessions. All environment values are optional, but some values like credentials+require multiple of the values to set or the partial values will be ignored.+All environment variable values are strings unless otherwise noted.++Environment configuration values. If set both Access Key ID and Secret Access+Key must be provided. Session Token and optionally also be provided, but is+not required.++ # Access Key ID+ AWS_ACCESS_KEY_ID=AKID+ AWS_ACCESS_KEY=AKID # only read if AWS_ACCESS_KEY_ID is not set.++ # Secret Access Key+ AWS_SECRET_ACCESS_KEY=SECRET+ AWS_SECRET_KEY=SECRET=SECRET # only read if AWS_SECRET_ACCESS_KEY is not set.++ # Session Token+ AWS_SESSION_TOKEN=TOKEN++Region value will instruct the SDK where to make service API requests to. If is+not provided in the environment the region must be provided before a service+client request is made.++ AWS_REGION=us-east-1++ # AWS_DEFAULT_REGION is only read if AWS_SDK_LOAD_CONFIG is also set,+ # and AWS_REGION is not also set.+ AWS_DEFAULT_REGION=us-east-1++Profile name the SDK should load use when loading shared config from the+configuration files. If not provided "default" will be used as the profile name.++ AWS_PROFILE=my_profile++ # AWS_DEFAULT_PROFILE is only read if AWS_SDK_LOAD_CONFIG is also set,+ # and AWS_PROFILE is not also set.+ AWS_DEFAULT_PROFILE=my_profile++SDK load config instructs the SDK to load the shared config in addition to+shared credentials. This also expands the configuration loaded so the shared+credentials will have parity with the shared config file. This also enables+Region and Profile support for the AWS_DEFAULT_REGION and AWS_DEFAULT_PROFILE+env values as well.++ AWS_SDK_LOAD_CONFIG=1++Shared credentials file path can be set to instruct the SDK to use an alternative+file for the shared credentials. If not set the file will be loaded from+$HOME/.aws/credentials on Linux/Unix based systems, and+%USERPROFILE%\.aws\credentials on Windows.++ AWS_SHARED_CREDENTIALS_FILE=$HOME/my_shared_credentials++Shared config file path can be set to instruct the SDK to use an alternative+file for the shared config. If not set the file will be loaded from+$HOME/.aws/config on Linux/Unix based systems, and+%USERPROFILE%\.aws\config on Windows.++ AWS_CONFIG_FILE=$HOME/my_shared_config+++*/+package sessiondiff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/env_config.go b/vendor/github.com/aws/aws-sdk-go/aws/session/env_config.gonew file mode 100644index 000000000..d2f0c8448--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/session/env_config.go@@ -0,0 +1,188 @@+package session++import (+ "os"+ "path/filepath"+ "strconv"++ "github.com/aws/aws-sdk-go/aws/credentials"+)++// envConfig is a collection of environment values the SDK will read+// setup config from. All environment values are optional. But some values+// such as credentials require multiple values to be complete or the values+// will be ignored.+type envConfig struct {+ // Environment configuration values. If set both Access Key ID and Secret Access+ // Key must be provided. Session Token and optionally also be provided, but is+ // not required.+ //+ // # Access Key ID+ // AWS_ACCESS_KEY_ID=AKID+ // AWS_ACCESS_KEY=AKID # only read if AWS_ACCESS_KEY_ID is not set.+ //+ // # Secret Access Key+ // AWS_SECRET_ACCESS_KEY=SECRET+ // AWS_SECRET_KEY=SECRET=SECRET # only read if AWS_SECRET_ACCESS_KEY is not set.+ //+ // # Session Token+ // AWS_SESSION_TOKEN=TOKEN+ Creds credentials.Value++ // Region value will instruct the SDK where to make service API requests to. If is+ // not provided in the environment the region must be provided before a service+ // client request is made.+ //+ // AWS_REGION=us-east-1+ //+ // # AWS_DEFAULT_REGION is only read if AWS_SDK_LOAD_CONFIG is also set,+ // # and AWS_REGION is not also set.+ // AWS_DEFAULT_REGION=us-east-1+ Region string++ // Profile name the SDK should load use when loading shared configuration from the+ // shared configuration files. If not provided "default" will be used as the+ // profile name.+ //+ // AWS_PROFILE=my_profile+ //+ // # AWS_DEFAULT_PROFILE is only read if AWS_SDK_LOAD_CONFIG is also set,+ // # and AWS_PROFILE is not also set.+ // AWS_DEFAULT_PROFILE=my_profile+ Profile string++ // SDK load config instructs the SDK to load the shared config in addition to+ // shared credentials. This also expands the configuration loaded from the shared+ // credentials to have parity with the shared config file. This also enables+ // Region and Profile support for the AWS_DEFAULT_REGION and AWS_DEFAULT_PROFILE+ // env values as well.+ //+ // AWS_SDK_LOAD_CONFIG=1+ EnableSharedConfig bool++ // Shared credentials file path can be set to instruct the SDK to use an alternate+ // file for the shared credentials. If not set the file will be loaded from+ // $HOME/.aws/credentials on Linux/Unix based systems, and+ // %USERPROFILE%\.aws\credentials on Windows.+ //+ // AWS_SHARED_CREDENTIALS_FILE=$HOME/my_shared_credentials+ SharedCredentialsFile string++ // Shared config file path can be set to instruct the SDK to use an alternate+ // file for the shared config. If not set the file will be loaded from+ // $HOME/.aws/config on Linux/Unix based systems, and+ // %USERPROFILE%\.aws\config on Windows.+ //+ // AWS_CONFIG_FILE=$HOME/my_shared_config+ SharedConfigFile string+}++var (+ credAccessEnvKey = []string{+ "AWS_ACCESS_KEY_ID",+ "AWS_ACCESS_KEY",+ }+ credSecretEnvKey = []string{+ "AWS_SECRET_ACCESS_KEY",+ "AWS_SECRET_KEY",+ }+ credSessionEnvKey = []string{+ "AWS_SESSION_TOKEN",+ }++ regionEnvKeys = []string{+ "AWS_REGION",+ "AWS_DEFAULT_REGION", // Only read if AWS_SDK_LOAD_CONFIG is also set+ }+ profileEnvKeys = []string{+ "AWS_PROFILE",+ "AWS_DEFAULT_PROFILE", // Only read if AWS_SDK_LOAD_CONFIG is also set+ }+)++// loadEnvConfig retrieves the SDK's environment configuration.+// See `envConfig` for the values that will be retrieved.+//+// If the environment variable `AWS_SDK_LOAD_CONFIG` is set to a truthy value+// the shared SDK config will be loaded in addition to the SDK's specific+// configuration values.+func loadEnvConfig() envConfig {+ enableSharedConfig, _ := strconv.ParseBool(os.Getenv("AWS_SDK_LOAD_CONFIG"))+ return envConfigLoad(enableSharedConfig)+}++// loadEnvSharedConfig retrieves the SDK's environment configuration, and the+// SDK shared config. See `envConfig` for the values that will be retrieved.+//+// Loads the shared configuration in addition to the SDK's specific configuration.+// This will load the same values as `loadEnvConfig` if the `AWS_SDK_LOAD_CONFIG`+// environment variable is set.+func loadSharedEnvConfig() envConfig {+ return envConfigLoad(true)+}++func envConfigLoad(enableSharedConfig bool) envConfig {+ cfg := envConfig{}++ cfg.EnableSharedConfig = enableSharedConfig++ setFromEnvVal(&cfg.Creds.AccessKeyID, credAccessEnvKey)+ setFromEnvVal(&cfg.Creds.SecretAccessKey, credSecretEnvKey)+ setFromEnvVal(&cfg.Creds.SessionToken, credSessionEnvKey)++ // Require logical grouping of credentials+ if len(cfg.Creds.AccessKeyID) == 0 || len(cfg.Creds.SecretAccessKey) == 0 {+ cfg.Creds = credentials.Value{}+ } else {+ cfg.Creds.ProviderName = "EnvConfigCredentials"+ }++ regionKeys := regionEnvKeys+ profileKeys := profileEnvKeys+ if !cfg.EnableSharedConfig {+ regionKeys = regionKeys[:1]+ profileKeys = profileKeys[:1]+ }++ setFromEnvVal(&cfg.Region, regionKeys)+ setFromEnvVal(&cfg.Profile, profileKeys)++ cfg.SharedCredentialsFile = sharedCredentialsFilename()+ cfg.SharedConfigFile = sharedConfigFilename()++ return cfg+}++func setFromEnvVal(dst *string, keys []string) {+ for _, k := range keys {+ if v := os.Getenv(k); len(v) > 0 {+ *dst = v+ break+ }+ }+}++func sharedCredentialsFilename() string {+ if name := os.Getenv("AWS_SHARED_CREDENTIALS_FILE"); len(name) > 0 {+ return name+ }++ return filepath.Join(userHomeDir(), ".aws", "credentials")+}++func sharedConfigFilename() string {+ if name := os.Getenv("AWS_CONFIG_FILE"); len(name) > 0 {+ return name+ }++ return filepath.Join(userHomeDir(), ".aws", "config")+}++func userHomeDir() string {+ homeDir := os.Getenv("HOME") // *nix+ if len(homeDir) == 0 { // windows+ homeDir = os.Getenv("USERPROFILE")+ }++ return homeDir+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/session.go b/vendor/github.com/aws/aws-sdk-go/aws/session/session.goindex 47e4536ff..602f4e1ef 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/session/session.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/session/session.go@@ -1,17 +1,14 @@-// Package session provides a way to create service clients with shared configuration-// and handlers.-//-// Generally this package should be used instead of the `defaults` package.-//-// A session should be used to share configurations and request handlers between multiple-// service clients. When service clients need specific configuration aws.Config can be-// used to provide additional configuration directly to the service client.package sessionimport (+ "fmt"+"github.com/aws/aws-sdk-go/aws"+ "github.com/aws/aws-sdk-go/aws/awserr""github.com/aws/aws-sdk-go/aws/client""github.com/aws/aws-sdk-go/aws/corehandlers"+ "github.com/aws/aws-sdk-go/aws/credentials"+ "github.com/aws/aws-sdk-go/aws/credentials/stscreds""github.com/aws/aws-sdk-go/aws/defaults""github.com/aws/aws-sdk-go/aws/request""github.com/aws/aws-sdk-go/private/endpoints"@@ -21,36 +18,204 @@ import (// store configurations and request handlers for those services.//// Sessions are safe to create service clients concurrently, but it is not safe-// to mutate the session concurrently.+// to mutate the Session concurrently.+//+// The Session satisfies the service client's client.ClientConfigProvider.type Session struct {Config *aws.ConfigHandlers request.Handlers}-// New creates a new instance of the handlers merging in the provided Configs-// on top of the SDK's default configurations. Once the session is created it-// can be mutated to modify Configs or Handlers. The session is safe to be read-// concurrently, but it should not be written to concurrently.+// New creates a new instance of the handlers merging in the provided configs+// on top of the SDK's default configurations. Once the Session is created it+// can be mutated to modify the Config or Handlers. The Session is safe to be+// read concurrently, but it should not be written to concurrently.+//+// If the AWS_SDK_LOAD_CONFIG environment is set to a truthy value, the New+// method could now encounter an error when loading the configuration. When+// The environment variable is set, and an error occurs, New will return a+// session that will fail all requests reporting the error that occured while+// loading the session. Use NewSession to get the error when creating the+// session.+//+// If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value+// the shared config file (~/.aws/config) will also be loaded, in addition to+// the shared credentials file (~/.aws/config). Values set in both the+// shared config, and shared credentials will be taken from the shared+// credentials file.+//+// Deprecated: Use NewSession functiions to create sessions instead. NewSession+// has the same functionality as New except an error can be returned when the+// func is called instead of waiting to receive an error until a request is made.+func New(cfgs ...*aws.Config) *Session {+ // load initial config from environment+ envCfg := loadEnvConfig()++ if envCfg.EnableSharedConfig {+ s, err := newSession(envCfg, cfgs...)+ if err != nil {+ // Old session.New expected all errors to be discovered when+ // a request is made, and would report the errors then. This+ // needs to be replicated if an error occurs while creating+ // the session.+ msg := "failed to create session with AWS_SDK_LOAD_CONFIG enabled. " ++ "Use session.NewSession to handle errors occuring during session creation."++ // Session creation failed, need to report the error and prevent+ // any requests from succeeding.+ s = &Session{Config: defaults.Config()}+ s.Config.MergeIn(cfgs...)+ s.Config.Logger.Log("ERROR:", msg, "Error:", err)+ s.Handlers.Validate.PushBack(func(r *request.Request) {+ r.Error = err+ })+ }+ return s+ }++ return oldNewSession(cfgs...)+}++// NewSession returns a new Session created from SDK defaults, config files,+// environment, and user provided config files. Once the Session is created+// it can be mutated to modify the Config or Handlers. The Session is safe to+// be read concurrently, but it should not be written to concurrently.+//+// If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value+// the shared config file (~/.aws/config) will also be loaded in addition to+// the shared credentials file (~/.aws/config). Values set in both the+// shared config, and shared credentials will be taken from the shared+// credentials file. Enabling the Shared Config will also allow the Session+// to be built with retrieving credentials with AssumeRole set in the config.+//+// See the NewSessionWithOptions func for information on how to override or+// control through code how the Session will be created. Such as specifing the+// config profile, and controlling if shared config is enabled or not.+func NewSession(cfgs ...*aws.Config) (*Session, error) {+ envCfg := loadEnvConfig()++ return newSession(envCfg, cfgs...)+}++// SharedConfigState provides the ability to optionally override the state+// of the session's creation based on the shared config being enabled or+// disabled.+type SharedConfigState int++const (+ // SharedConfigStateFromEnv does not override any state of the+ // AWS_SDK_LOAD_CONFIG env var. It is the default value of the+ // SharedConfigState type.+ SharedConfigStateFromEnv SharedConfigState = iota++ // SharedConfigDisable overrides the AWS_SDK_LOAD_CONFIG env var value+ // and disables the shared config functionality.+ SharedConfigDisable++ // SharedConfigEnable overrides the AWS_SDK_LOAD_CONFIG env var value+ // and enables the shared config functionality.+ SharedConfigEnable+)++// Options provides the means to control how a Session is created and what+// configuration values will be loaded.+//+type Options struct {+ // Provides config values for the SDK to use when creating service clients+ // and making API requests to services. Any value set in with this field+ // will override the associated value provided by the SDK defaults,+ // environment or config files where relevent.+ //+ // If not set, configuration values from from SDK defaults, environment,+ // config will be used.+ Config aws.Config++ // Overrides the config profile the Session should be created from. If not+ // set the value of the environment variable will be loaded (AWS_PROFILE,+ // or AWS_DEFAULT_PROFILE if the Shared Config is enabled).+ //+ // If not set and environment variables are not set the "default"+ // (DefaultSharedConfigProfile) will be used as the profile to load the+ // session config from.+ Profile string++ // Instructs how the Session will be created based on the AWS_SDK_LOAD_CONFIG+ // environment variable. By default a Session will be created using the+ // value provided by the AWS_SDK_LOAD_CONFIG environment variable.+ //+ // Setting this value to SharedConfigEnable or SharedConfigDisable+ // will allow you to override the AWS_SDK_LOAD_CONFIG environment variable+ // and enable or disable the shared config functionality.+ SharedConfigState SharedConfigState+}++// NewSessionWithOptions returns a new Session created from SDK defaults, config files,+// environment, and user provided config files. This func uses the Options+// values to configure how the Session is created.//-// Example:-// // Create a session with the default config and request handlers.-// sess := session.New()+// If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value+// the shared config file (~/.aws/config) will also be loaded in addition to+// the shared credentials file (~/.aws/config). Values set in both the+// shared config, and shared credentials will be taken from the shared+// credentials file. Enabling the Shared Config will also allow the Session+// to be built with retrieving credentials with AssumeRole set in the config.//-// // Create a session with a custom region-// sess := session.New(&aws.Config{Region: aws.String("us-east-1")})+// // Equivalent to session.New+// sess, err := session.NewSessionWithOptions(session.Options{})//-// // Create a session, and add additional handlers for all service-// // clients created with the session to inherit. Adds logging handler.-// sess := session.New()-// sess.Handlers.Send.PushFront(func(r *request.Request) {-// // Log every request made and its payload-// logger.Println("Request: %s/%s, Payload: %s", r.ClientInfo.ServiceName, r.Operation, r.Params)+// // Specify profile to load for the session's config+// sess, err := session.NewSessionWithOptions(session.Options{+// Profile: "profile_name",// })//-// // Create a S3 client instance from a session-// sess := session.New()-// svc := s3.New(sess)-func New(cfgs ...*aws.Config) *Session {+// // Specify profile for config and region for requests+// sess, err := session.NewSessionWithOptions(session.Options{+// Config: aws.Config{Region: aws.String("us-east-1")},+// Profile: "profile_name",+// })+//+// // Force enable Shared Config support+// sess, err := session.NewSessionWithOptions(session.Options{+// SharedConfigState: SharedConfigEnable,+// })+func NewSessionWithOptions(opts Options) (*Session, error) {+ var envCfg envConfig+ if opts.SharedConfigState == SharedConfigEnable {+ envCfg = loadSharedEnvConfig()+ } else {+ envCfg = loadEnvConfig()+ }++ if len(opts.Profile) > 0 {+ envCfg.Profile = opts.Profile+ }++ switch opts.SharedConfigState {+ case SharedConfigDisable:+ envCfg.EnableSharedConfig = false+ case SharedConfigEnable:+ envCfg.EnableSharedConfig = true+ }++ return newSession(envCfg, &opts.Config)+}++// Must is a helper function to ensure the Session is valid and there was no+// error when calling a NewSession function.+//+// This helper is intended to be used in variable initialization to load the+// Session and configuration at startup. Such as:+//+// var sess = session.Must(session.NewSession())+func Must(sess *Session, err error) *Session {+ if err != nil {+ panic(err)+ }++ return sess+}++func oldNewSession(cfgs ...*aws.Config) *Session {cfg := defaults.Config()handlers := defaults.Handlers()@@ -72,6 +237,115 @@ func New(cfgs ...*aws.Config) *Session {return s}+func newSession(envCfg envConfig, cfgs ...*aws.Config) (*Session, error) {+ cfg := defaults.Config()+ handlers := defaults.Handlers()++ // Get a merged version of the user provided config to determine if+ // credentials were.+ userCfg := &aws.Config{}+ userCfg.MergeIn(cfgs...)++ // Order config files will be loaded in with later files overwriting+ // previous config file values.+ cfgFiles := []string{envCfg.SharedConfigFile, envCfg.SharedCredentialsFile}+ if !envCfg.EnableSharedConfig {+ // The shared config file (~/.aws/config) is only loaded if instructed+ // to load via the envConfig.EnableSharedConfig (AWS_SDK_LOAD_CONFIG).+ cfgFiles = cfgFiles[1:]+ }++ // Load additional config from file(s)+ sharedCfg, err := loadSharedConfig(envCfg.Profile, cfgFiles)+ if err != nil {+ return nil, err+ }++ mergeConfigSrcs(cfg, userCfg, envCfg, sharedCfg, handlers)++ s := &Session{+ Config: cfg,+ Handlers: handlers,+ }++ initHandlers(s)++ return s, nil+}++func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg sharedConfig, handlers request.Handlers) {+ // Merge in user provided configuration+ cfg.MergeIn(userCfg)++ // Region if not already set by user+ if len(aws.StringValue(cfg.Region)) == 0 {+ if len(envCfg.Region) > 0 {+ cfg.WithRegion(envCfg.Region)+ } else if envCfg.EnableSharedConfig && len(sharedCfg.Region) > 0 {+ cfg.WithRegion(sharedCfg.Region)+ }+ }++ // Configure credentials if not already set+ if cfg.Credentials == credentials.AnonymousCredentials && userCfg.Credentials == nil {+ if len(envCfg.Creds.AccessKeyID) > 0 {+ cfg.Credentials = credentials.NewStaticCredentialsFromCreds(+ envCfg.Creds,+ )+ } else if envCfg.EnableSharedConfig && len(sharedCfg.AssumeRole.RoleARN) > 0 && sharedCfg.AssumeRoleSource != nil {+ cfgCp := *cfg+ cfgCp.Credentials = credentials.NewStaticCredentialsFromCreds(+ sharedCfg.AssumeRoleSource.Creds,+ )+ cfg.Credentials = stscreds.NewCredentials(+ &Session{+ Config: &cfgCp,+ Handlers: handlers.Copy(),+ },+ sharedCfg.AssumeRole.RoleARN,+ func(opt *stscreds.AssumeRoleProvider) {+ opt.RoleSessionName = sharedCfg.AssumeRole.RoleSessionName++ if len(sharedCfg.AssumeRole.ExternalID) > 0 {+ opt.ExternalID = aws.String(sharedCfg.AssumeRole.ExternalID)+ }++ // MFA not supported+ },+ )+ } else if len(sharedCfg.Creds.AccessKeyID) > 0 {+ cfg.Credentials = credentials.NewStaticCredentialsFromCreds(+ sharedCfg.Creds,+ )+ } else {+ // Fallback to default credentials provider, include mock errors+ // for the credential chain so user can identify why credentials+ // failed to be retrieved.+ cfg.Credentials = credentials.NewCredentials(&credentials.ChainProvider{+ VerboseErrors: aws.BoolValue(cfg.CredentialsChainVerboseErrors),+ Providers: []credentials.Provider{+ &credProviderError{Err: awserr.New("EnvAccessKeyNotFound", "failed to find credentials in the environment.", nil)},+ &credProviderError{Err: awserr.New("SharedCredsLoad", fmt.Sprintf("failed to load profile, %s.", envCfg.Profile), nil)},+ defaults.RemoteCredProvider(*cfg, handlers),+ },+ })+ }+ }+}++type credProviderError struct {+ Err error+}++var emptyCreds = credentials.Value{}++func (c credProviderError) Retrieve() (credentials.Value, error) {+ return credentials.Value{}, c.Err+}+func (c credProviderError) IsExpired() bool {+ return true+}+func initHandlers(s *Session) {// Add the Validate parameter handler if it is not disabled.s.Handlers.Validate.Remove(corehandlers.ValidateParametersHandler)@@ -80,13 +354,12 @@ func initHandlers(s *Session) {}}-// Copy creates and returns a copy of the current session, coping the config+// Copy creates and returns a copy of the current Session, coping the config// and handlers. If any additional configs are provided they will be merged-// on top of the session's copied config.+// on top of the Session's copied config.//-// Example:-// // Create a copy of the current session, configured for the us-west-2 region.-// sess.Copy(&aws.Config{Region: aws.String("us-west-2"})+// // Create a copy of the current Session, configured for the us-west-2 region.+// sess.Copy(&aws.Config{Region: aws.String("us-west-2")})func (s *Session) Copy(cfgs ...*aws.Config) *Session {newSession := &Session{Config: s.Config.Copy(cfgs...),@@ -101,15 +374,15 @@ func (s *Session) Copy(cfgs ...*aws.Config) *Session {// ClientConfig satisfies the client.ConfigProvider interface and is used to// configure the service client instances. Passing the Session to the service// client's constructor (New) will use this method to configure the client.-//-// Example:-// sess := session.New()-// s3.New(sess)func (s *Session) ClientConfig(serviceName string, cfgs ...*aws.Config) client.Config {s = s.Copy(cfgs...)endpoint, signingRegion := endpoints.NormalizeEndpoint(- aws.StringValue(s.Config.Endpoint), serviceName,- aws.StringValue(s.Config.Region), aws.BoolValue(s.Config.DisableSSL))+ aws.StringValue(s.Config.Endpoint),+ serviceName,+ aws.StringValue(s.Config.Region),+ aws.BoolValue(s.Config.DisableSSL),+ aws.BoolValue(s.Config.UseDualStack),+ )return client.Config{Config: s.Config,diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config.go b/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config.gonew file mode 100644index 000000000..b58076f5e--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config.go@@ -0,0 +1,295 @@+package session++import (+ "fmt"+ "io/ioutil"++ "github.com/aws/aws-sdk-go/aws/awserr"+ "github.com/aws/aws-sdk-go/aws/credentials"+ "github.com/go-ini/ini"+)++const (+ // Static Credentials group+ accessKeyIDKey = `aws_access_key_id` // group required+ secretAccessKey = `aws_secret_access_key` // group required+ sessionTokenKey = `aws_session_token` // optional++ // Assume Role Credentials group+ roleArnKey = `role_arn` // group required+ sourceProfileKey = `source_profile` // group required+ externalIDKey = `external_id` // optional+ mfaSerialKey = `mfa_serial` // optional+ roleSessionNameKey = `role_session_name` // optional++ // Additional Config fields+ regionKey = `region`++ // DefaultSharedConfigProfile is the default profile to be used when+ // loading configuration from the config files if another profile name+ // is not provided.+ DefaultSharedConfigProfile = `default`+)++type assumeRoleConfig struct {+ RoleARN string+ SourceProfile string+ ExternalID string+ MFASerial string+ RoleSessionName string+}++// sharedConfig represents the configuration fields of the SDK config files.+type sharedConfig struct {+ // Credentials values from the config file. Both aws_access_key_id+ // and aws_secret_access_key must be provided together in the same file+ // to be considered valid. The values will be ignored if not a complete group.+ // aws_session_token is an optional field that can be provided if both of the+ // other two fields are also provided.+ //+ // aws_access_key_id+ // aws_secret_access_key+ // aws_session_token+ Creds credentials.Value++ AssumeRole assumeRoleConfig+ AssumeRoleSource *sharedConfig++ // Region is the region the SDK should use for looking up AWS service endpoints+ // and signing requests.+ //+ // region+ Region string+}++type sharedConfigFile struct {+ Filename string+ IniData *ini.File+}++// loadSharedConfig retrieves the configuration from the list of files+// using the profile provided. The order the files are listed will determine+// precedence. Values in subsequent files will overwrite values defined in+// earlier files.+//+// For example, given two files A and B. Both define credentials. If the order+// of the files are A then B, B's credential values will be used instead of A's.+//+// See sharedConfig.setFromFile for information how the config files+// will be loaded.+func loadSharedConfig(profile string, filenames []string) (sharedConfig, error) {+ if len(profile) == 0 {+ profile = DefaultSharedConfigProfile+ }++ files, err := loadSharedConfigIniFiles(filenames)+ if err != nil {+ return sharedConfig{}, err+ }++ cfg := sharedConfig{}+ if err = cfg.setFromIniFiles(profile, files); err != nil {+ return sharedConfig{}, err+ }++ if len(cfg.AssumeRole.SourceProfile) > 0 {+ if err := cfg.setAssumeRoleSource(profile, files); err != nil {+ return sharedConfig{}, err+ }+ }++ return cfg, nil+}++func loadSharedConfigIniFiles(filenames []string) ([]sharedConfigFile, error) {+ files := make([]sharedConfigFile, 0, len(filenames))++ for _, filename := range filenames {+ b, err := ioutil.ReadFile(filename)+ if err != nil {+ // Skip files which can't be opened and read for whatever reason+ continue+ }++ f, err := ini.Load(b)+ if err != nil {+ return nil, SharedConfigLoadError{Filename: filename}+ }++ files = append(files, sharedConfigFile{+ Filename: filename, IniData: f,+ })+ }++ return files, nil+}++func (cfg *sharedConfig) setAssumeRoleSource(origProfile string, files []sharedConfigFile) error {+ var assumeRoleSrc sharedConfig++ // Multiple level assume role chains are not support+ if cfg.AssumeRole.SourceProfile == origProfile {+ assumeRoleSrc = *cfg+ assumeRoleSrc.AssumeRole = assumeRoleConfig{}+ } else {+ err := assumeRoleSrc.setFromIniFiles(cfg.AssumeRole.SourceProfile, files)+ if err != nil {+ return err+ }+ }++ if len(assumeRoleSrc.Creds.AccessKeyID) == 0 {+ return SharedConfigAssumeRoleError{RoleARN: cfg.AssumeRole.RoleARN}+ }++ cfg.AssumeRoleSource = &assumeRoleSrc++ return nil+}++func (cfg *sharedConfig) setFromIniFiles(profile string, files []sharedConfigFile) error {+ // Trim files from the list that don't exist.+ for _, f := range files {+ if err := cfg.setFromIniFile(profile, f); err != nil {+ if _, ok := err.(SharedConfigProfileNotExistsError); ok {+ // Ignore proviles missings+ continue+ }+ return err+ }+ }++ return nil+}++// setFromFile loads the configuration from the file using+// the profile provided. A sharedConfig pointer type value is used so that+// multiple config file loadings can be chained.+//+// Only loads complete logically grouped values, and will not set fields in cfg+// for incomplete grouped values in the config. Such as credentials. For example+// if a config file only includes aws_access_key_id but no aws_secret_access_key+// the aws_access_key_id will be ignored.+func (cfg *sharedConfig) setFromIniFile(profile string, file sharedConfigFile) error {+ section, err := file.IniData.GetSection(profile)+ if err != nil {+ // Fallback to to alternate profile name: profile <name>+ section, err = file.IniData.GetSection(fmt.Sprintf("profile %s", profile))+ if err != nil {+ return SharedConfigProfileNotExistsError{Profile: profile, Err: err}+ }+ }++ // Shared Credentials+ akid := section.Key(accessKeyIDKey).String()+ secret := section.Key(secretAccessKey).String()+ if len(akid) > 0 && len(secret) > 0 {+ cfg.Creds = credentials.Value{+ AccessKeyID: akid,+ SecretAccessKey: secret,+ SessionToken: section.Key(sessionTokenKey).String(),+ ProviderName: fmt.Sprintf("SharedConfigCredentials: %s", file.Filename),+ }+ }++ // Assume Role+ roleArn := section.Key(roleArnKey).String()+ srcProfile := section.Key(sourceProfileKey).String()+ if len(roleArn) > 0 && len(srcProfile) > 0 {+ cfg.AssumeRole = assumeRoleConfig{+ RoleARN: roleArn,+ SourceProfile: srcProfile,+ ExternalID: section.Key(externalIDKey).String(),+ MFASerial: section.Key(mfaSerialKey).String(),+ RoleSessionName: section.Key(roleSessionNameKey).String(),+ }+ }++ // Region+ if v := section.Key(regionKey).String(); len(v) > 0 {+ cfg.Region = v+ }++ return nil+}++// SharedConfigLoadError is an error for the shared config file failed to load.+type SharedConfigLoadError struct {+ Filename string+ Err error+}++// Code is the short id of the error.+func (e SharedConfigLoadError) Code() string {+ return "SharedConfigLoadError"+}++// Message is the description of the error+func (e SharedConfigLoadError) Message() string {+ return fmt.Sprintf("failed to load config file, %s", e.Filename)+}++// OrigErr is the underlying error that caused the failure.+func (e SharedConfigLoadError) OrigErr() error {+ return e.Err+}++// Error satisfies the error interface.+func (e SharedConfigLoadError) Error() string {+ return awserr.SprintError(e.Code(), e.Message(), "", e.Err)+}++// SharedConfigProfileNotExistsError is an error for the shared config when+// the profile was not find in the config file.+type SharedConfigProfileNotExistsError struct {+ Profile string+ Err error+}++// Code is the short id of the error.+func (e SharedConfigProfileNotExistsError) Code() string {+ return "SharedConfigProfileNotExistsError"+}++// Message is the description of the error+func (e SharedConfigProfileNotExistsError) Message() string {+ return fmt.Sprintf("failed to get profile, %s", e.Profile)+}++// OrigErr is the underlying error that caused the failure.+func (e SharedConfigProfileNotExistsError) OrigErr() error {+ return e.Err+}++// Error satisfies the error interface.+func (e SharedConfigProfileNotExistsError) Error() string {+ return awserr.SprintError(e.Code(), e.Message(), "", e.Err)+}++// SharedConfigAssumeRoleError is an error for the shared config when the+// profile contains assume role information, but that information is invalid+// or not complete.+type SharedConfigAssumeRoleError struct {+ RoleARN string+}++// Code is the short id of the error.+func (e SharedConfigAssumeRoleError) Code() string {+ return "SharedConfigAssumeRoleError"+}++// Message is the description of the error+func (e SharedConfigAssumeRoleError) Message() string {+ return fmt.Sprintf("failed to load assume role for %s, source profile has no shared credentials",+ e.RoleARN)+}++// OrigErr is the underlying error that caused the failure.+func (e SharedConfigAssumeRoleError) OrigErr() error {+ return nil+}++// Error satisfies the error interface.+func (e SharedConfigAssumeRoleError) Error() string {+ return awserr.SprintError(e.Code(), e.Message(), "", nil)+}diff --git a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/header_rules.gosimilarity index 100%rename from vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules.gorename to vendor/github.com/aws/aws-sdk-go/aws/signer/v4/header_rules.godiff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path.gonew file mode 100644index 000000000..bd082e9d1--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path.go@@ -0,0 +1,24 @@+// +build go1.5++package v4++import (+ "net/url"+ "strings"+)++func getURIPath(u *url.URL) string {+ var uri string++ if len(u.Opaque) > 0 {+ uri = "/" + strings.Join(strings.Split(u.Opaque, "/")[3:], "/")+ } else {+ uri = u.EscapedPath()+ }++ if len(uri) == 0 {+ uri = "/"+ }++ return uri+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path_1_4.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path_1_4.gonew file mode 100644index 000000000..796604121--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path_1_4.go@@ -0,0 +1,24 @@+// +build !go1.5++package v4++import (+ "net/url"+ "strings"+)++func getURIPath(u *url.URL) string {+ var uri string++ if len(u.Opaque) > 0 {+ uri = "/" + strings.Join(strings.Split(u.Opaque, "/")[3:], "/")+ } else {+ uri = u.Path+ }++ if len(uri) == 0 {+ uri = "/"+ }++ return uri+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.gonew file mode 100644index 000000000..90fe1ffaf--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go@@ -0,0 +1,717 @@+// Package v4 implements signing for AWS V4 signer+//+// Provides request signing for request that need to be signed with+// AWS V4 Signatures.+//+// Standalone Signer+//+// Generally using the signer outside of the SDK should not require any additional+// logic when using Go v1.5 or higher. The signer does this by taking advantage+// of the URL.EscapedPath method. If your request URI requires additional escaping+// you many need to use the URL.Opaque to define what the raw URI should be sent+// to the service as.+//+// The signer will first check the URL.Opaque field, and use its value if set.+// The signer does require the URL.Opaque field to be set in the form of:+//+// "//<hostname>/<path>"+//+// // e.g.+// "//example.com/some/path"+//+// The leading "//" and hostname are required or the URL.Opaque escaping will+// not work correctly.+//+// If URL.Opaque is not set the signer will fallback to the URL.EscapedPath()+// method and using the returned value. If you're using Go v1.4 you must set+// URL.Opaque if the URI path needs escaping. If URL.Opaque is not set with+// Go v1.5 the signer will fallback to URL.Path.+//+// AWS v4 signature validation requires that the canonical string's URI path+// element must be the URI escaped form of the HTTP request's path.+// http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html+//+// The Go HTTP client will perform escaping automatically on the request. Some+// of these escaping may cause signature validation errors because the HTTP+// request differs from the URI path or query that the signature was generated.+// https://golang.org/pkg/net/url/#URL.EscapedPath+//+// Because of this, it is recommended that when using the signer outside of the+// SDK that explicitly escaping the request prior to being signed is preferable,+// and will help prevent signature validation errors. This can be done by setting+// the URL.Opaque or URL.RawPath. The SDK will use URL.Opaque first and then+// call URL.EscapedPath() if Opaque is not set.+//+// Test `TestStandaloneSign` provides a complete example of using the signer+// outside of the SDK and pre-escaping the URI path.+package v4++import (+ "bytes"+ "crypto/hmac"+ "crypto/sha256"+ "encoding/hex"+ "fmt"+ "io"+ "io/ioutil"+ "net/http"+ "net/url"+ "sort"+ "strconv"+ "strings"+ "time"++ "github.com/aws/aws-sdk-go/aws"+ "github.com/aws/aws-sdk-go/aws/credentials"+ "github.com/aws/aws-sdk-go/aws/request"+ "github.com/aws/aws-sdk-go/private/protocol/rest"+)++const (+ authHeaderPrefix = "AWS4-HMAC-SHA256"+ timeFormat = "20060102T150405Z"+ shortTimeFormat = "20060102"++ // emptyStringSHA256 is a SHA256 of an empty string+ emptyStringSHA256 = `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`+)++var ignoredHeaders = rules{+ blacklist{+ mapRule{+ "Authorization": struct{}{},+ "User-Agent": struct{}{},+ },+ },+}++// requiredSignedHeaders is a whitelist for build canonical headers.+var requiredSignedHeaders = rules{+ whitelist{+ mapRule{+ "Cache-Control": struct{}{},+ "Content-Disposition": struct{}{},+ "Content-Encoding": struct{}{},+ "Content-Language": struct{}{},+ "Content-Md5": struct{}{},+ "Content-Type": struct{}{},+ "Expires": struct{}{},+ "If-Match": struct{}{},+ "If-Modified-Since": struct{}{},+ "If-None-Match": struct{}{},+ "If-Unmodified-Since": struct{}{},+ "Range": struct{}{},+ "X-Amz-Acl": struct{}{},+ "X-Amz-Copy-Source": struct{}{},+ "X-Amz-Copy-Source-If-Match": struct{}{},+ "X-Amz-Copy-Source-If-Modified-Since": struct{}{},+ "X-Amz-Copy-Source-If-None-Match": struct{}{},+ "X-Amz-Copy-Source-If-Unmodified-Since": struct{}{},+ "X-Amz-Copy-Source-Range": struct{}{},+ "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm": struct{}{},+ "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key": struct{}{},+ "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5": struct{}{},+ "X-Amz-Grant-Full-control": struct{}{},+ "X-Amz-Grant-Read": struct{}{},+ "X-Amz-Grant-Read-Acp": struct{}{},+ "X-Amz-Grant-Write": struct{}{},+ "X-Amz-Grant-Write-Acp": struct{}{},+ "X-Amz-Metadata-Directive": struct{}{},+ "X-Amz-Mfa": struct{}{},+ "X-Amz-Request-Payer": struct{}{},+ "X-Amz-Server-Side-Encryption": struct{}{},+ "X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id": struct{}{},+ "X-Amz-Server-Side-Encryption-Customer-Algorithm": struct{}{},+ "X-Amz-Server-Side-Encryption-Customer-Key": struct{}{},+ "X-Amz-Server-Side-Encryption-Customer-Key-Md5": struct{}{},+ "X-Amz-Storage-Class": struct{}{},+ "X-Amz-Website-Redirect-Location": struct{}{},+ },+ },+ patterns{"X-Amz-Meta-"},+}++// allowedHoisting is a whitelist for build query headers. The boolean value+// represents whether or not it is a pattern.+var allowedQueryHoisting = inclusiveRules{+ blacklist{requiredSignedHeaders},+ patterns{"X-Amz-"},+}++// Signer applies AWS v4 signing to given request. Use this to sign requests+// that need to be signed with AWS V4 Signatures.+type Signer struct {+ // The authentication credentials the request will be signed against.+ // This value must be set to sign requests.+ Credentials *credentials.Credentials++ // Sets the log level the signer should use when reporting information to+ // the logger. If the logger is nil nothing will be logged. See+ // aws.LogLevelType for more information on available logging levels+ //+ // By default nothing will be logged.+ Debug aws.LogLevelType++ // The logger loging information will be written to. If there the logger+ // is nil, nothing will be logged.+ Logger aws.Logger++ // Disables the Signer's moving HTTP header key/value pairs from the HTTP+ // request header to the request's query string. This is most commonly used+ // with pre-signed requests preventing headers from being added to the+ // request's query string.+ DisableHeaderHoisting bool++ // Disables the automatic escaping of the URI path of the request for the+ // siganture's canonical string's path. For services that do not need additional+ // escaping then use this to disable the signer escaping the path.+ //+ // S3 is an example of a service that does not need additional escaping.+ //+ // http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html+ DisableURIPathEscaping bool++ // currentTimeFn returns the time value which represents the current time.+ // This value should only be used for testing. If it is nil the default+ // time.Now will be used.+ currentTimeFn func() time.Time+}++// NewSigner returns a Signer pointer configured with the credentials and optional+// option values provided. If not options are provided the Signer will use its+// default configuration.+func NewSigner(credentials *credentials.Credentials, options ...func(*Signer)) *Signer {+ v4 := &Signer{+ Credentials: credentials,+ }++ for _, option := range options {+ option(v4)+ }++ return v4+}++type signingCtx struct {+ ServiceName string+ Region string+ Request *http.Request+ Body io.ReadSeeker+ Query url.Values+ Time time.Time+ ExpireTime time.Duration+ SignedHeaderVals http.Header++ DisableURIPathEscaping bool++ credValues credentials.Value+ isPresign bool+ formattedTime string+ formattedShortTime string++ bodyDigest string+ signedHeaders string+ canonicalHeaders string+ canonicalString string+ credentialString string+ stringToSign string+ signature string+ authorization string+}++// Sign signs AWS v4 requests with the provided body, service name, region the+// request is made to, and time the request is signed at. The signTime allows+// you to specify that a request is signed for the future, and cannot be+// used until then.+//+// Returns a list of HTTP headers that were included in the signature or an+// error if signing the request failed. Generally for signed requests this value+// is not needed as the full request context will be captured by the http.Request+// value. It is included for reference though.+//+// Sign will set the request's Body to be the `body` parameter passed in. If+// the body is not already an io.ReadCloser, it will be wrapped within one. If+// a `nil` body parameter passed to Sign, the request's Body field will be+// also set to nil. Its important to note that this functionality will not+// change the request's ContentLength of the request.+//+// Sign differs from Presign in that it will sign the request using HTTP+// header values. This type of signing is intended for http.Request values that+// will not be shared, or are shared in a way the header values on the request+// will not be lost.+//+// The requests body is an io.ReadSeeker so the SHA256 of the body can be+// generated. To bypass the signer computing the hash you can set the+// "X-Amz-Content-Sha256" header with a precomputed value. The signer will+// only compute the hash if the request header value is empty.+func (v4 Signer) Sign(r *http.Request, body io.ReadSeeker, service, region string, signTime time.Time) (http.Header, error) {+ return v4.signWithBody(r, body, service, region, 0, signTime)+}++// Presign signs AWS v4 requests with the provided body, service name, region+// the request is made to, and time the request is signed at. The signTime+// allows you to specify that a request is signed for the future, and cannot+// be used until then.+//+// Returns a list of HTTP headers that were included in the signature or an+// error if signing the request failed. For presigned requests these headers+// and their values must be included on the HTTP request when it is made. This+// is helpful to know what header values need to be shared with the party the+// presigned request will be distributed to.+//+// Presign differs from Sign in that it will sign the request using query string+// instead of header values. This allows you to share the Presigned Request's+// URL with third parties, or distribute it throughout your system with minimal+// dependencies.+//+// Presign also takes an exp value which is the duration the+// signed request will be valid after the signing time. This is allows you to+// set when the request will expire.+//+// The requests body is an io.ReadSeeker so the SHA256 of the body can be+// generated. To bypass the signer computing the hash you can set the+// "X-Amz-Content-Sha256" header with a precomputed value. The signer will+// only compute the hash if the request header value is empty.+//+// Presigning a S3 request will not compute the body's SHA256 hash by default.+// This is done due to the general use case for S3 presigned URLs is to share+// PUT/GET capabilities. If you would like to include the body's SHA256 in the+// presigned request's signature you can set the "X-Amz-Content-Sha256"+// HTTP header and that will be included in the request's signature.+func (v4 Signer) Presign(r *http.Request, body io.ReadSeeker, service, region string, exp time.Duration, signTime time.Time) (http.Header, error) {+ return v4.signWithBody(r, body, service, region, exp, signTime)+}++func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, region string, exp time.Duration, signTime time.Time) (http.Header, error) {+ currentTimeFn := v4.currentTimeFn+ if currentTimeFn == nil {+ currentTimeFn = time.Now+ }++ ctx := &signingCtx{+ Request: r,+ Body: body,+ Query: r.URL.Query(),+ Time: signTime,+ ExpireTime: exp,+ isPresign: exp != 0,+ ServiceName: service,+ Region: region,+ DisableURIPathEscaping: v4.DisableURIPathEscaping,+ }++ for key := range ctx.Query {+ sort.Strings(ctx.Query[key])+ }++ if ctx.isRequestSigned() {+ ctx.Time = currentTimeFn()+ ctx.handlePresignRemoval()+ }++ var err error+ ctx.credValues, err = v4.Credentials.Get()+ if err != nil {+ return http.Header{}, err+ }++ ctx.assignAmzQueryValues()+ ctx.build(v4.DisableHeaderHoisting)++ // If the request is not presigned the body should be attached to it. This+ // prevents the confusion of wanting to send a signed request without+ // the body the request was signed for attached.+ if !ctx.isPresign {+ var reader io.ReadCloser+ if body != nil {+ var ok bool+ if reader, ok = body.(io.ReadCloser); !ok {+ reader = ioutil.NopCloser(body)+ }+ }+ r.Body = reader+ }++ if v4.Debug.Matches(aws.LogDebugWithSigning) {+ v4.logSigningInfo(ctx)+ }++ return ctx.SignedHeaderVals, nil+}++func (ctx *signingCtx) handlePresignRemoval() {+ if !ctx.isPresign {+ return+ }++ // The credentials have expired for this request. The current signing+ // is invalid, and needs to be request because the request will fail.+ ctx.removePresign()++ // Update the request's query string to ensure the values stays in+ // sync in the case retrieving the new credentials fails.+ ctx.Request.URL.RawQuery = ctx.Query.Encode()+}++func (ctx *signingCtx) assignAmzQueryValues() {+ if ctx.isPresign {+ ctx.Query.Set("X-Amz-Algorithm", authHeaderPrefix)+ if ctx.credValues.SessionToken != "" {+ ctx.Query.Set("X-Amz-Security-Token", ctx.credValues.SessionToken)+ } else {+ ctx.Query.Del("X-Amz-Security-Token")+ }++ return+ }++ if ctx.credValues.SessionToken != "" {+ ctx.Request.Header.Set("X-Amz-Security-Token", ctx.credValues.SessionToken)+ }+}++// SignRequestHandler is a named request handler the SDK will use to sign+// service client request with using the V4 signature.+var SignRequestHandler = request.NamedHandler{+ Name: "v4.SignRequestHandler", Fn: SignSDKRequest,+}++// SignSDKRequest signs an AWS request with the V4 signature. This+// request handler is bested used only with the SDK's built in service client's+// API operation requests.+//+// This function should not be used on its on its own, but in conjunction with+// an AWS service client's API operation call. To sign a standalone request+// not created by a service client's API operation method use the "Sign" or+// "Presign" functions of the "Signer" type.+//+// If the credentials of the request's config are set to+// credentials.AnonymousCredentials the request will not be signed.+func SignSDKRequest(req *request.Request) {+ signSDKRequestWithCurrTime(req, time.Now)+}+func signSDKRequestWithCurrTime(req *request.Request, curTimeFn func() time.Time) {+ // If the request does not need to be signed ignore the signing of the+ // request if the AnonymousCredentials object is used.+ if req.Config.Credentials == credentials.AnonymousCredentials {+ return+ }++ region := req.ClientInfo.SigningRegion+ if region == "" {+ region = aws.StringValue(req.Config.Region)+ }++ name := req.ClientInfo.SigningName+ if name == "" {+ name = req.ClientInfo.ServiceName+ }++ v4 := NewSigner(req.Config.Credentials, func(v4 *Signer) {+ v4.Debug = req.Config.LogLevel.Value()+ v4.Logger = req.Config.Logger+ v4.DisableHeaderHoisting = req.NotHoist+ v4.currentTimeFn = curTimeFn+ if name == "s3" {+ // S3 service should not have any escaping applied+ v4.DisableURIPathEscaping = true+ }+ })++ signingTime := req.Time+ if !req.LastSignedAt.IsZero() {+ signingTime = req.LastSignedAt+ }++ signedHeaders, err := v4.signWithBody(req.HTTPRequest, req.GetBody(),+ name, region, req.ExpireTime, signingTime,+ )+ if err != nil {+ req.Error = err+ req.SignedHeaderVals = nil+ return+ }++ req.SignedHeaderVals = signedHeaders+ req.LastSignedAt = curTimeFn()+}++const logSignInfoMsg = `DEBUG: Request Signature:+---[ CANONICAL STRING ]-----------------------------+%s+---[ STRING TO SIGN ]--------------------------------+%s%s+-----------------------------------------------------`+const logSignedURLMsg = `+---[ SIGNED URL ]------------------------------------+%s`++func (v4 *Signer) logSigningInfo(ctx *signingCtx) {+ signedURLMsg := ""+ if ctx.isPresign {+ signedURLMsg = fmt.Sprintf(logSignedURLMsg, ctx.Request.URL.String())+ }+ msg := fmt.Sprintf(logSignInfoMsg, ctx.canonicalString, ctx.stringToSign, signedURLMsg)+ v4.Logger.Log(msg)+}++func (ctx *signingCtx) build(disableHeaderHoisting bool) {+ ctx.buildTime() // no depends+ ctx.buildCredentialString() // no depends++ unsignedHeaders := ctx.Request.Header+ if ctx.isPresign {+ if !disableHeaderHoisting {+ urlValues := url.Values{}+ urlValues, unsignedHeaders = buildQuery(allowedQueryHoisting, unsignedHeaders) // no depends+ for k := range urlValues {+ ctx.Query[k] = urlValues[k]+ }+ }+ }++ ctx.buildBodyDigest()+ ctx.buildCanonicalHeaders(ignoredHeaders, unsignedHeaders)+ ctx.buildCanonicalString() // depends on canon headers / signed headers+ ctx.buildStringToSign() // depends on canon string+ ctx.buildSignature() // depends on string to sign++ if ctx.isPresign {+ ctx.Request.URL.RawQuery += "&X-Amz-Signature=" + ctx.signature+ } else {+ parts := []string{+ authHeaderPrefix + " Credential=" + ctx.credValues.AccessKeyID + "/" + ctx.credentialString,+ "SignedHeaders=" + ctx.signedHeaders,+ "Signature=" + ctx.signature,+ }+ ctx.Request.Header.Set("Authorization", strings.Join(parts, ", "))+ }+}++func (ctx *signingCtx) buildTime() {+ ctx.formattedTime = ctx.Time.UTC().Format(timeFormat)+ ctx.formattedShortTime = ctx.Time.UTC().Format(shortTimeFormat)++ if ctx.isPresign {+ duration := int64(ctx.ExpireTime / time.Second)+ ctx.Query.Set("X-Amz-Date", ctx.formattedTime)+ ctx.Query.Set("X-Amz-Expires", strconv.FormatInt(duration, 10))+ } else {+ ctx.Request.Header.Set("X-Amz-Date", ctx.formattedTime)+ }+}++func (ctx *signingCtx) buildCredentialString() {+ ctx.credentialString = strings.Join([]string{+ ctx.formattedShortTime,+ ctx.Region,+ ctx.ServiceName,+ "aws4_request",+ }, "/")++ if ctx.isPresign {+ ctx.Query.Set("X-Amz-Credential", ctx.credValues.AccessKeyID+"/"+ctx.credentialString)+ }+}++func buildQuery(r rule, header http.Header) (url.Values, http.Header) {+ query := url.Values{}+ unsignedHeaders := http.Header{}+ for k, h := range header {+ if r.IsValid(k) {+ query[k] = h+ } else {+ unsignedHeaders[k] = h+ }+ }++ return query, unsignedHeaders+}+func (ctx *signingCtx) buildCanonicalHeaders(r rule, header http.Header) {+ var headers []string+ headers = append(headers, "host")+ for k, v := range header {+ canonicalKey := http.CanonicalHeaderKey(k)+ if !r.IsValid(canonicalKey) {+ continue // ignored header+ }+ if ctx.SignedHeaderVals == nil {+ ctx.SignedHeaderVals = make(http.Header)+ }++ lowerCaseKey := strings.ToLower(k)+ if _, ok := ctx.SignedHeaderVals[lowerCaseKey]; ok {+ // include additional values+ ctx.SignedHeaderVals[lowerCaseKey] = append(ctx.SignedHeaderVals[lowerCaseKey], v...)+ continue+ }++ headers = append(headers, lowerCaseKey)+ ctx.SignedHeaderVals[lowerCaseKey] = v+ }+ sort.Strings(headers)++ ctx.signedHeaders = strings.Join(headers, ";")++ if ctx.isPresign {+ ctx.Query.Set("X-Amz-SignedHeaders", ctx.signedHeaders)+ }++ headerValues := make([]string, len(headers))+ for i, k := range headers {+ if k == "host" {+ headerValues[i] = "host:" + ctx.Request.URL.Host+ } else {+ headerValues[i] = k + ":" ++ strings.Join(ctx.SignedHeaderVals[k], ",")+ }+ }++ ctx.canonicalHeaders = strings.Join(stripExcessSpaces(headerValues), "\n")+}++func (ctx *signingCtx) buildCanonicalString() {+ ctx.Request.URL.RawQuery = strings.Replace(ctx.Query.Encode(), "+", "%20", -1)++ uri := getURIPath(ctx.Request.URL)++ if !ctx.DisableURIPathEscaping {+ uri = rest.EscapePath(uri, false)+ }++ ctx.canonicalString = strings.Join([]string{+ ctx.Request.Method,+ uri,+ ctx.Request.URL.RawQuery,+ ctx.canonicalHeaders + "\n",+ ctx.signedHeaders,+ ctx.bodyDigest,+ }, "\n")+}++func (ctx *signingCtx) buildStringToSign() {+ ctx.stringToSign = strings.Join([]string{+ authHeaderPrefix,+ ctx.formattedTime,+ ctx.credentialString,+ hex.EncodeToString(makeSha256([]byte(ctx.canonicalString))),+ }, "\n")+}++func (ctx *signingCtx) buildSignature() {+ secret := ctx.credValues.SecretAccessKey+ date := makeHmac([]byte("AWS4"+secret), []byte(ctx.formattedShortTime))+ region := makeHmac(date, []byte(ctx.Region))+ service := makeHmac(region, []byte(ctx.ServiceName))+ credentials := makeHmac(service, []byte("aws4_request"))+ signature := makeHmac(credentials, []byte(ctx.stringToSign))+ ctx.signature = hex.EncodeToString(signature)+}++func (ctx *signingCtx) buildBodyDigest() {+ hash := ctx.Request.Header.Get("X-Amz-Content-Sha256")+ if hash == "" {+ if ctx.isPresign && ctx.ServiceName == "s3" {+ hash = "UNSIGNED-PAYLOAD"+ } else if ctx.Body == nil {+ hash = emptyStringSHA256+ } else {+ hash = hex.EncodeToString(makeSha256Reader(ctx.Body))+ }+ if ctx.ServiceName == "s3" || ctx.ServiceName == "glacier" {+ ctx.Request.Header.Set("X-Amz-Content-Sha256", hash)+ }+ }+ ctx.bodyDigest = hash+}++// isRequestSigned returns if the request is currently signed or presigned+func (ctx *signingCtx) isRequestSigned() bool {+ if ctx.isPresign && ctx.Query.Get("X-Amz-Signature") != "" {+ return true+ }+ if ctx.Request.Header.Get("Authorization") != "" {+ return true+ }++ return false+}++// unsign removes signing flags for both signed and presigned requests.+func (ctx *signingCtx) removePresign() {+ ctx.Query.Del("X-Amz-Algorithm")+ ctx.Query.Del("X-Amz-Signature")+ ctx.Query.Del("X-Amz-Security-Token")+ ctx.Query.Del("X-Amz-Date")+ ctx.Query.Del("X-Amz-Expires")+ ctx.Query.Del("X-Amz-Credential")+ ctx.Query.Del("X-Amz-SignedHeaders")+}++func makeHmac(key []byte, data []byte) []byte {+ hash := hmac.New(sha256.New, key)+ hash.Write(data)+ return hash.Sum(nil)+}++func makeSha256(data []byte) []byte {+ hash := sha256.New()+ hash.Write(data)+ return hash.Sum(nil)+}++func makeSha256Reader(reader io.ReadSeeker) []byte {+ hash := sha256.New()+ start, _ := reader.Seek(0, 1)+ defer reader.Seek(start, 0)++ io.Copy(hash, reader)+ return hash.Sum(nil)+}++const doubleSpaces = " "++var doubleSpaceBytes = []byte(doubleSpaces)++func stripExcessSpaces(headerVals []string) []string {+ vals := make([]string, len(headerVals))+ for i, str := range headerVals {+ // Trim leading and trailing spaces+ trimmed := strings.TrimSpace(str)++ idx := strings.Index(trimmed, doubleSpaces)+ var buf []byte+ for idx > -1 {+ // Multiple adjacent spaces found+ if buf == nil {+ // first time create the buffer+ buf = []byte(trimmed)+ }++ stripToIdx := -1+ for j := idx + 1; j < len(buf); j++ {+ if buf[j] != ' ' {+ buf = append(buf[:idx+1], buf[j:]...)+ stripToIdx = j+ break+ }+ }++ if stripToIdx >= 0 {+ idx = bytes.Index(buf[stripToIdx:], doubleSpaceBytes)+ if idx >= 0 {+ idx += stripToIdx+ }+ } else {+ idx = -1+ }+ }++ if buf != nil {+ vals[i] = string(buf)+ } else {+ vals[i] = trimmed+ }+ }+ return vals+}diff --git a/vendor/github.com/aws/aws-sdk-go/aws/types.go b/vendor/github.com/aws/aws-sdk-go/aws/types.goindex 0f067c57f..fa014b49e 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/types.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/types.go@@ -61,23 +61,41 @@ func (r ReaderSeekerCloser) Close() error {type WriteAtBuffer struct {buf []bytem sync.Mutex++ // GrowthCoeff defines the growth rate of the internal buffer. By+ // default, the growth rate is 1, where expanding the internal+ // buffer will allocate only enough capacity to fit the new expected+ // length.+ GrowthCoeff float64+}++// NewWriteAtBuffer creates a WriteAtBuffer with an internal buffer+// provided by buf.+func NewWriteAtBuffer(buf []byte) *WriteAtBuffer {+ return &WriteAtBuffer{buf: buf}}// WriteAt writes a slice of bytes to a buffer starting at the position provided// The number of bytes written will be returned, or error. Can overwrite previous// written slices if the write ats overlap.func (b *WriteAtBuffer) WriteAt(p []byte, pos int64) (n int, err error) {+ pLen := len(p)+ expLen := pos + int64(pLen)b.m.Lock()defer b.m.Unlock()-- expLen := pos + int64(len(p))if int64(len(b.buf)) < expLen {- newBuf := make([]byte, expLen)- copy(newBuf, b.buf)- b.buf = newBuf+ if int64(cap(b.buf)) < expLen {+ if b.GrowthCoeff < 1 {+ b.GrowthCoeff = 1+ }+ newBuf := make([]byte, expLen, int64(b.GrowthCoeff*float64(expLen)))+ copy(newBuf, b.buf)+ b.buf = newBuf+ }+ b.buf = b.buf[:expLen]}copy(b.buf[pos:], p)- return len(p), nil+ return pLen, nil}// Bytes returns a slice of bytes written to the buffer.diff --git a/vendor/github.com/aws/aws-sdk-go/aws/version.go b/vendor/github.com/aws/aws-sdk-go/aws/version.goindex 669da2d69..949244002 100644--- a/vendor/github.com/aws/aws-sdk-go/aws/version.go+++ b/vendor/github.com/aws/aws-sdk-go/aws/version.go@@ -5,4 +5,4 @@ package awsconst SDKName = "aws-sdk-go"// SDKVersion is the version of this SDK-const SDKVersion = "1.1.7"+const SDKVersion = "1.5.8"diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.goindex 2b279e659..19d97562f 100644--- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go+++ b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go@@ -1,7 +1,7 @@// Package endpoints validates regional endpoints for services.package endpoints-//go:generate go run ../model/cli/gen-endpoints/main.go endpoints.json endpoints_map.go+//go:generate go run -tags codegen ../model/cli/gen-endpoints/main.go endpoints.json endpoints_map.go//go:generate gofmt -s -w endpoints_map.goimport (@@ -14,9 +14,9 @@ import (// normalized endpoint and signing region. If the endpoint is not an empty string// the service name and region will be used to look up the service's API endpoint.// If the endpoint is provided the scheme will be added if it is not present.-func NormalizeEndpoint(endpoint, serviceName, region string, disableSSL bool) (normEndpoint, signingRegion string) {+func NormalizeEndpoint(endpoint, serviceName, region string, disableSSL, useDualStack bool) (normEndpoint, signingRegion string) {if endpoint == "" {- return EndpointForRegion(serviceName, region, disableSSL)+ return EndpointForRegion(serviceName, region, disableSSL, useDualStack)}return AddScheme(endpoint, disableSSL), ""@@ -24,12 +24,17 @@ func NormalizeEndpoint(endpoint, serviceName, region string, disableSSL bool) (n// EndpointForRegion returns an endpoint and its signing region for a service and region.// if the service and region pair are not found endpoint and signingRegion will be empty.-func EndpointForRegion(svcName, region string, disableSSL bool) (endpoint, signingRegion string) {+func EndpointForRegion(svcName, region string, disableSSL, useDualStack bool) (endpoint, signingRegion string) {+ dualStackField := ""+ if useDualStack {+ dualStackField = "/dualstack"+ }+derivedKeys := []string{- region + "/" + svcName,- region + "/*",- "*/" + svcName,- "*/*",+ region + "/" + svcName + dualStackField,+ region + "/*" + dualStackField,+ "*/" + svcName + dualStackField,+ "*/*" + dualStackField,}for _, key := range derivedKeys {diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.jsonindex 0cb6917ba..5594f2efd 100644--- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json+++ b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json@@ -8,6 +8,9 @@"endpoint": "{service}.{region}.amazonaws.com.cn","signatureVersion": "v4"},+ "cn-north-1/ec2metadata": {+ "endpoint": "http://169.254.169.254/latest"+ },"us-gov-west-1/iam": {"endpoint": "iam.us-gov.amazonaws.com"},@@ -17,6 +20,13 @@"us-gov-west-1/s3": {"endpoint": "s3-{region}.amazonaws.com"},+ "us-gov-west-1/ec2metadata": {+ "endpoint": "http://169.254.169.254/latest"+ },+ "*/budgets": {+ "endpoint": "budgets.amazonaws.com",+ "signingRegion": "us-east-1"+ },"*/cloudfront": {"endpoint": "cloudfront.amazonaws.com","signingRegion": "us-east-1"@@ -30,8 +40,7 @@"signingRegion": "us-east-1"},"*/ec2metadata": {- "endpoint": "http://169.254.169.254/latest",- "signingRegion": "us-east-1"+ "endpoint": "http://169.254.169.254/latest"},"*/iam": {"endpoint": "iam.amazonaws.com",@@ -60,6 +69,9 @@"*/s3": {"endpoint": "s3-{region}.amazonaws.com"},+ "*/s3/dualstack": {+ "endpoint": "s3.dualstack.{region}.amazonaws.com"+ },"us-east-1/s3": {"endpoint": "s3.amazonaws.com"},diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.goindex 6183dcd3d..e79e6782a 100644--- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go+++ b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go@@ -18,6 +18,10 @@ var endpointsMap = endpointStruct{"*/*": {Endpoint: "{service}.{region}.amazonaws.com",},+ "*/budgets": {+ Endpoint: "budgets.amazonaws.com",+ SigningRegion: "us-east-1",+ },"*/cloudfront": {Endpoint: "cloudfront.amazonaws.com",SigningRegion: "us-east-1",@@ -31,8 +35,7 @@ var endpointsMap = endpointStruct{SigningRegion: "us-east-1",},"*/ec2metadata": {- Endpoint: "http://169.254.169.254/latest",- SigningRegion: "us-east-1",+ Endpoint: "http://169.254.169.254/latest",},"*/iam": {Endpoint: "iam.amazonaws.com",@@ -49,6 +52,9 @@ var endpointsMap = endpointStruct{"*/s3": {Endpoint: "s3-{region}.amazonaws.com",},+ "*/s3/dualstack": {+ Endpoint: "s3.dualstack.{region}.amazonaws.com",+ },"*/sts": {Endpoint: "sts.amazonaws.com",SigningRegion: "us-east-1",@@ -60,6 +66,9 @@ var endpointsMap = endpointStruct{"cn-north-1/*": {Endpoint: "{service}.{region}.amazonaws.com.cn",},+ "cn-north-1/ec2metadata": {+ Endpoint: "http://169.254.169.254/latest",+ },"eu-central-1/s3": {Endpoint: "{service}.{region}.amazonaws.com",},@@ -70,6 +79,9 @@ var endpointsMap = endpointStruct{Endpoint: "sdb.amazonaws.com",SigningRegion: "us-east-1",},+ "us-gov-west-1/ec2metadata": {+ Endpoint: "http://169.254.169.254/latest",+ },"us-gov-west-1/iam": {Endpoint: "iam.us-gov.amazonaws.com",},diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build.goindex 56d69db05..18169f0f8 100644--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build.go+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build.go@@ -1,7 +1,7 @@-// Package query provides serialisation of AWS query requests, and responses.+// Package query provides serialization of AWS query requests, and responses.package query-//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/query.json build_test.go+//go:generate go run -tags codegen ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/query.json build_test.goimport ("net/url"diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.goindex a3ea40955..e0f4d5a54 100644--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go@@ -1,6 +1,6 @@package query-//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/query.json unmarshal_test.go+//go:generate go run -tags codegen ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/query.json unmarshal_test.goimport ("encoding/xml"diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.goindex b8e3c7a31..f21429617 100644--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go@@ -2,7 +2,7 @@ package queryimport ("encoding/xml"- "io"+ "io/ioutil""github.com/aws/aws-sdk-go/aws/awserr""github.com/aws/aws-sdk-go/aws/request"@@ -15,6 +15,10 @@ type xmlErrorResponse struct {RequestID string `xml:"RequestId"`}+type xmlServiceUnavailableResponse struct {+ XMLName xml.Name `xml:"ServiceUnavailableException"`+}+// UnmarshalErrorHandler is a name request handler to unmarshal request errorsvar UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.query.UnmarshalError", Fn: UnmarshalError}@@ -22,11 +26,16 @@ var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.query.UnmarshalErfunc UnmarshalError(r *request.Request) {defer r.HTTPResponse.Body.Close()- resp := &xmlErrorResponse{}- err := xml.NewDecoder(r.HTTPResponse.Body).Decode(resp)- if err != nil && err != io.EOF {- r.Error = awserr.New("SerializationError", "failed to decode query XML error response", err)- } else {+ bodyBytes, err := ioutil.ReadAll(r.HTTPResponse.Body)+ if err != nil {+ r.Error = awserr.New("SerializationError", "failed to read from query HTTP response body", err)+ return+ }++ // First check for specific error+ resp := xmlErrorResponse{}+ decodeErr := xml.Unmarshal(bodyBytes, &resp)+ if decodeErr == nil {reqID := resp.RequestIDif reqID == "" {reqID = r.RequestID@@ -36,5 +45,22 @@ func UnmarshalError(r *request.Request) {r.HTTPResponse.StatusCode,reqID,)+ return+ }++ // Check for unhandled error+ servUnavailResp := xmlServiceUnavailableResponse{}+ unavailErr := xml.Unmarshal(bodyBytes, &servUnavailResp)+ if unavailErr == nil {+ r.Error = awserr.NewRequestFailure(+ awserr.New("ServiceUnavailableException", "service is unavailable", nil),+ r.HTTPResponse.StatusCode,+ r.RequestID,+ )+ return}++ // Failed to retrieve any error message from the response body+ r.Error = awserr.New("SerializationError",+ "failed to decode query XML error response", decodeErr)}diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.goindex 5469edb60..f5e860753 100644--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go@@ -14,6 +14,7 @@ import ("strings""time"+ "github.com/aws/aws-sdk-go/aws""github.com/aws/aws-sdk-go/aws/awserr""github.com/aws/aws-sdk-go/aws/request")@@ -92,7 +93,7 @@ func buildLocationElements(r *request.Request, v reflect.Value) {}r.HTTPRequest.URL.RawQuery = query.Encode()- updatePath(r.HTTPRequest.URL, r.HTTPRequest.URL.Path)+ updatePath(r.HTTPRequest.URL, r.HTTPRequest.URL.Path, aws.BoolValue(r.Config.DisableRestProtocolURICleaning))}func buildBody(r *request.Request, v reflect.Value) {@@ -193,13 +194,15 @@ func buildQueryString(query url.Values, v reflect.Value, name string) error {return nil}-func updatePath(url *url.URL, urlPath string) {+func updatePath(url *url.URL, urlPath string, disableRestProtocolURICleaning bool) {scheme, query := url.Scheme, url.RawQueryhasSlash := strings.HasSuffix(urlPath, "/")// clean up path- urlPath = path.Clean(urlPath)+ if !disableRestProtocolURICleaning {+ urlPath = path.Clean(urlPath)+ }if hasSlash && !strings.HasSuffix(urlPath, "/") {urlPath += "/"}@@ -222,8 +225,7 @@ func EscapePath(path string, encodeSep bool) string {if noEscape[c] || (c == '/' && !encodeSep) {buf.WriteByte(c)} else {- buf.WriteByte('%')- buf.WriteString(strings.ToUpper(strconv.FormatUint(uint64(c), 16)))+ fmt.Fprintf(&buf, "%%%02X", c)}}return buf.String()diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.goindex ba46f5bc9..2cba1d9aa 100644--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go@@ -3,6 +3,7 @@ package restimport ("encoding/base64""fmt"+ "io""io/ioutil""net/http""reflect"@@ -51,6 +52,7 @@ func unmarshalBody(r *request.Request, v reflect.Value) {if payload.IsValid() {switch payload.Interface().(type) {case []byte:+ defer r.HTTPResponse.Body.Close()b, err := ioutil.ReadAll(r.HTTPResponse.Body)if err != nil {r.Error = awserr.New("SerializationError", "failed to decode REST response", err)@@ -58,6 +60,7 @@ func unmarshalBody(r *request.Request, v reflect.Value) {payload.Set(reflect.ValueOf(b))}case *string:+ defer r.HTTPResponse.Body.Close()b, err := ioutil.ReadAll(r.HTTPResponse.Body)if err != nil {r.Error = awserr.New("SerializationError", "failed to decode REST response", err)@@ -72,6 +75,8 @@ func unmarshalBody(r *request.Request, v reflect.Value) {case "aws.ReadSeekCloser", "io.ReadCloser":payload.Set(reflect.ValueOf(r.HTTPResponse.Body))default:+ io.Copy(ioutil.Discard, r.HTTPResponse.Body)+ defer r.HTTPResponse.Body.Close()r.Error = awserr.New("SerializationError","failed to decode REST response",fmt.Errorf("unknown payload type %s", payload.Type()))diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/restxml.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/restxml.goindex c74088bfe..7bdf4c853 100644--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/restxml.go+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/restxml.go@@ -1,9 +1,9 @@-// Package restxml provides RESTful XML serialisation of AWS+// Package restxml provides RESTful XML serialization of AWS// requests and responses.package restxml-//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/rest-xml.json build_test.go-//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/rest-xml.json unmarshal_test.go+//go:generate go run -tags codegen ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/rest-xml.json build_test.go+//go:generate go run -tags codegen ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/rest-xml.json unmarshal_test.goimport ("bytes"diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.goindex ceb4132c5..221029baf 100644--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go@@ -1,4 +1,4 @@-// Package xmlutil provides XML serialisation of AWS requests and responses.+// Package xmlutil provides XML serialization of AWS requests and responses.package xmlutilimport (diff --git a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4.go b/vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4.godeleted file mode 100644index 14b0c6616..000000000--- a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4.go+++ /dev/null@@ -1,438 +0,0 @@-// Package v4 implements signing for AWS V4 signer-package v4--import (- "crypto/hmac"- "crypto/sha256"- "encoding/hex"- "fmt"- "io"- "net/http"- "net/url"- "sort"- "strconv"- "strings"- "time"-- "github.com/aws/aws-sdk-go/aws"- "github.com/aws/aws-sdk-go/aws/credentials"- "github.com/aws/aws-sdk-go/aws/request"- "github.com/aws/aws-sdk-go/private/protocol/rest"-)--const (- authHeaderPrefix = "AWS4-HMAC-SHA256"- timeFormat = "20060102T150405Z"- shortTimeFormat = "20060102"-)--var ignoredHeaders = rules{- blacklist{- mapRule{- "Content-Length": struct{}{},- "User-Agent": struct{}{},- },- },-}--// requiredSignedHeaders is a whitelist for build canonical headers.-var requiredSignedHeaders = rules{- whitelist{- mapRule{- "Cache-Control": struct{}{},- "Content-Disposition": struct{}{},- "Content-Encoding": struct{}{},- "Content-Language": struct{}{},- "Content-Md5": struct{}{},- "Content-Type": struct{}{},- "Expires": struct{}{},- "If-Match": struct{}{},- "If-Modified-Since": struct{}{},- "If-None-Match": struct{}{},- "If-Unmodified-Since": struct{}{},- "Range": struct{}{},- "X-Amz-Acl": struct{}{},- "X-Amz-Copy-Source": struct{}{},- "X-Amz-Copy-Source-If-Match": struct{}{},- "X-Amz-Copy-Source-If-Modified-Since": struct{}{},- "X-Amz-Copy-Source-If-None-Match": struct{}{},- "X-Amz-Copy-Source-If-Unmodified-Since": struct{}{},- "X-Amz-Copy-Source-Range": struct{}{},- "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm": struct{}{},- "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key": struct{}{},- "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5": struct{}{},- "X-Amz-Grant-Full-control": struct{}{},- "X-Amz-Grant-Read": struct{}{},- "X-Amz-Grant-Read-Acp": struct{}{},- "X-Amz-Grant-Write": struct{}{},- "X-Amz-Grant-Write-Acp": struct{}{},- "X-Amz-Metadata-Directive": struct{}{},- "X-Amz-Mfa": struct{}{},- "X-Amz-Request-Payer": struct{}{},- "X-Amz-Server-Side-Encryption": struct{}{},- "X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id": struct{}{},- "X-Amz-Server-Side-Encryption-Customer-Algorithm": struct{}{},- "X-Amz-Server-Side-Encryption-Customer-Key": struct{}{},- "X-Amz-Server-Side-Encryption-Customer-Key-Md5": struct{}{},- "X-Amz-Storage-Class": struct{}{},- "X-Amz-Website-Redirect-Location": struct{}{},- },- },- patterns{"X-Amz-Meta-"},-}--// allowedHoisting is a whitelist for build query headers. The boolean value-// represents whether or not it is a pattern.-var allowedQueryHoisting = inclusiveRules{- blacklist{requiredSignedHeaders},- patterns{"X-Amz-"},-}--type signer struct {- Request *http.Request- Time time.Time- ExpireTime time.Duration- ServiceName string- Region string- CredValues credentials.Value- Credentials *credentials.Credentials- Query url.Values- Body io.ReadSeeker- Debug aws.LogLevelType- Logger aws.Logger-- isPresign bool- formattedTime string- formattedShortTime string-- signedHeaders string- canonicalHeaders string- canonicalString string- credentialString string- stringToSign string- signature string- authorization string- notHoist bool- signedHeaderVals http.Header-}--// Sign requests with signature version 4.-//-// Will sign the requests with the service config's Credentials object-// Signing is skipped if the credentials is the credentials.AnonymousCredentials-// object.-func Sign(req *request.Request) {- // If the request does not need to be signed ignore the signing of the- // request if the AnonymousCredentials object is used.- if req.Config.Credentials == credentials.AnonymousCredentials {- return- }-- region := req.ClientInfo.SigningRegion- if region == "" {- region = aws.StringValue(req.Config.Region)- }-- name := req.ClientInfo.SigningName- if name == "" {- name = req.ClientInfo.ServiceName- }-- s := signer{- Request: req.HTTPRequest,- Time: req.Time,- ExpireTime: req.ExpireTime,- Query: req.HTTPRequest.URL.Query(),- Body: req.Body,- ServiceName: name,- Region: region,- Credentials: req.Config.Credentials,- Debug: req.Config.LogLevel.Value(),- Logger: req.Config.Logger,- notHoist: req.NotHoist,- }-- req.Error = s.sign()- req.SignedHeaderVals = s.signedHeaderVals-}--func (v4 *signer) sign() error {- if v4.ExpireTime != 0 {- v4.isPresign = true- }-- if v4.isRequestSigned() {- if !v4.Credentials.IsExpired() {- // If the request is already signed, and the credentials have not- // expired yet ignore the signing request.- return nil- }-- // The credentials have expired for this request. The current signing- // is invalid, and needs to be request because the request will fail.- if v4.isPresign {- v4.removePresign()- // Update the request's query string to ensure the values stays in- // sync in the case retrieving the new credentials fails.- v4.Request.URL.RawQuery = v4.Query.Encode()- }- }-- var err error- v4.CredValues, err = v4.Credentials.Get()- if err != nil {- return err- }-- if v4.isPresign {- v4.Query.Set("X-Amz-Algorithm", authHeaderPrefix)- if v4.CredValues.SessionToken != "" {- v4.Query.Set("X-Amz-Security-Token", v4.CredValues.SessionToken)- } else {- v4.Query.Del("X-Amz-Security-Token")- }- } else if v4.CredValues.SessionToken != "" {- v4.Request.Header.Set("X-Amz-Security-Token", v4.CredValues.SessionToken)- }-- v4.build()-- if v4.Debug.Matches(aws.LogDebugWithSigning) {- v4.logSigningInfo()- }-- return nil-}--const logSignInfoMsg = `DEBUG: Request Signiture:----[ CANONICAL STRING ]------------------------------%s----[ STRING TO SIGN ]---------------------------------%s%s------------------------------------------------------`-const logSignedURLMsg = `----[ SIGNED URL ]-------------------------------------%s`--func (v4 *signer) logSigningInfo() {- signedURLMsg := ""- if v4.isPresign {- signedURLMsg = fmt.Sprintf(logSignedURLMsg, v4.Request.URL.String())- }- msg := fmt.Sprintf(logSignInfoMsg, v4.canonicalString, v4.stringToSign, signedURLMsg)- v4.Logger.Log(msg)-}--func (v4 *signer) build() {-- v4.buildTime() // no depends- v4.buildCredentialString() // no depends-- unsignedHeaders := v4.Request.Header- if v4.isPresign {- if !v4.notHoist {- urlValues := url.Values{}- urlValues, unsignedHeaders = buildQuery(allowedQueryHoisting, unsignedHeaders) // no depends- for k := range urlValues {- v4.Query[k] = urlValues[k]- }- }- }-- v4.buildCanonicalHeaders(ignoredHeaders, unsignedHeaders)- v4.buildCanonicalString() // depends on canon headers / signed headers- v4.buildStringToSign() // depends on canon string- v4.buildSignature() // depends on string to sign-- if v4.isPresign {- v4.Request.URL.RawQuery += "&X-Amz-Signature=" + v4.signature- } else {- parts := []string{- authHeaderPrefix + " Credential=" + v4.CredValues.AccessKeyID + "/" + v4.credentialString,- "SignedHeaders=" + v4.signedHeaders,- "Signature=" + v4.signature,- }- v4.Request.Header.Set("Authorization", strings.Join(parts, ", "))- }-}--func (v4 *signer) buildTime() {- v4.formattedTime = v4.Time.UTC().Format(timeFormat)- v4.formattedShortTime = v4.Time.UTC().Format(shortTimeFormat)-- if v4.isPresign {- duration := int64(v4.ExpireTime / time.Second)- v4.Query.Set("X-Amz-Date", v4.formattedTime)- v4.Query.Set("X-Amz-Expires", strconv.FormatInt(duration, 10))- } else {- v4.Request.Header.Set("X-Amz-Date", v4.formattedTime)- }-}--func (v4 *signer) buildCredentialString() {- v4.credentialString = strings.Join([]string{- v4.formattedShortTime,- v4.Region,- v4.ServiceName,- "aws4_request",- }, "/")-- if v4.isPresign {- v4.Query.Set("X-Amz-Credential", v4.CredValues.AccessKeyID+"/"+v4.credentialString)- }-}--func buildQuery(r rule, header http.Header) (url.Values, http.Header) {- query := url.Values{}- unsignedHeaders := http.Header{}- for k, h := range header {- if r.IsValid(k) {- query[k] = h- } else {- unsignedHeaders[k] = h- }- }-- return query, unsignedHeaders-}-func (v4 *signer) buildCanonicalHeaders(r rule, header http.Header) {- var headers []string- headers = append(headers, "host")- for k, v := range header {- canonicalKey := http.CanonicalHeaderKey(k)- if !r.IsValid(canonicalKey) {- continue // ignored header- }-- lowerCaseKey := strings.ToLower(k)- headers = append(headers, lowerCaseKey)-- if v4.signedHeaderVals == nil {- v4.signedHeaderVals = make(http.Header)- }- v4.signedHeaderVals[lowerCaseKey] = v- }- sort.Strings(headers)-- v4.signedHeaders = strings.Join(headers, ";")-- if v4.isPresign {- v4.Query.Set("X-Amz-SignedHeaders", v4.signedHeaders)- }-- headerValues := make([]string, len(headers))- for i, k := range headers {- if k == "host" {- headerValues[i] = "host:" + v4.Request.URL.Host- } else {- headerValues[i] = k + ":" +- strings.Join(v4.Request.Header[http.CanonicalHeaderKey(k)], ",")- }- }-- v4.canonicalHeaders = strings.Join(headerValues, "\n")-}--func (v4 *signer) buildCanonicalString() {- v4.Request.URL.RawQuery = strings.Replace(v4.Query.Encode(), "+", "%20", -1)- uri := v4.Request.URL.Opaque- if uri != "" {- uri = "/" + strings.Join(strings.Split(uri, "/")[3:], "/")- } else {- uri = v4.Request.URL.Path- }- if uri == "" {- uri = "/"- }-- if v4.ServiceName != "s3" {- uri = rest.EscapePath(uri, false)- }-- v4.canonicalString = strings.Join([]string{- v4.Request.Method,- uri,- v4.Request.URL.RawQuery,- v4.canonicalHeaders + "\n",- v4.signedHeaders,- v4.bodyDigest(),- }, "\n")-}--func (v4 *signer) buildStringToSign() {- v4.stringToSign = strings.Join([]string{- authHeaderPrefix,- v4.formattedTime,- v4.credentialString,- hex.EncodeToString(makeSha256([]byte(v4.canonicalString))),- }, "\n")-}--func (v4 *signer) buildSignature() {- secret := v4.CredValues.SecretAccessKey- date := makeHmac([]byte("AWS4"+secret), []byte(v4.formattedShortTime))- region := makeHmac(date, []byte(v4.Region))- service := makeHmac(region, []byte(v4.ServiceName))- credentials := makeHmac(service, []byte("aws4_request"))- signature := makeHmac(credentials, []byte(v4.stringToSign))- v4.signature = hex.EncodeToString(signature)-}--func (v4 *signer) bodyDigest() string {- hash := v4.Request.Header.Get("X-Amz-Content-Sha256")- if hash == "" {- if v4.isPresign && v4.ServiceName == "s3" {- hash = "UNSIGNED-PAYLOAD"- } else if v4.Body == nil {- hash = hex.EncodeToString(makeSha256([]byte{}))- } else {- hash = hex.EncodeToString(makeSha256Reader(v4.Body))- }- v4.Request.Header.Add("X-Amz-Content-Sha256", hash)- }- return hash-}--// isRequestSigned returns if the request is currently signed or presigned-func (v4 *signer) isRequestSigned() bool {- if v4.isPresign && v4.Query.Get("X-Amz-Signature") != "" {- return true- }- if v4.Request.Header.Get("Authorization") != "" {- return true- }-- return false-}--// unsign removes signing flags for both signed and presigned requests.-func (v4 *signer) removePresign() {- v4.Query.Del("X-Amz-Algorithm")- v4.Query.Del("X-Amz-Signature")- v4.Query.Del("X-Amz-Security-Token")- v4.Query.Del("X-Amz-Date")- v4.Query.Del("X-Amz-Expires")- v4.Query.Del("X-Amz-Credential")- v4.Query.Del("X-Amz-SignedHeaders")-}--func makeHmac(key []byte, data []byte) []byte {- hash := hmac.New(sha256.New, key)- hash.Write(data)- return hash.Sum(nil)-}--func makeSha256(data []byte) []byte {- hash := sha256.New()- hash.Write(data)- return hash.Sum(nil)-}--func makeSha256Reader(reader io.ReadSeeker) []byte {- hash := sha256.New()- start, _ := reader.Seek(0, 1)- defer reader.Seek(start, 0)-- io.Copy(hash, reader)- return hash.Sum(nil)-}diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go b/vendor/github.com/aws/aws-sdk-go/service/s3/api.goindex 54bebd096..8ee05865b 100644--- a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go@@ -4,6 +4,7 @@package s3import (+ "fmt""io""time"@@ -15,7 +16,30 @@ import (const opAbortMultipartUpload = "AbortMultipartUpload"-// AbortMultipartUploadRequest generates a request for the AbortMultipartUpload operation.+// AbortMultipartUploadRequest generates a "aws/request.Request" representing the+// client's request for the AbortMultipartUpload operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See AbortMultipartUpload for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the AbortMultipartUpload method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the AbortMultipartUploadRequest method.+// req, resp := client.AbortMultipartUploadRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req *request.Request, output *AbortMultipartUploadOutput) {op := &request.Operation{Name: opAbortMultipartUpload,@@ -33,11 +57,25 @@ func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (reqreturn}+// AbortMultipartUpload API operation for Amazon Simple Storage Service.+//// Aborts a multipart upload.//// To verify that all parts have been removed, so you don't get charged for// the part storage, you should call the List Parts operation and ensure the// parts list is empty.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation AbortMultipartUpload for usage and error information.+//+// Returned Error Codes:+// * NoSuchUpload+// The specified multipart upload does not exist.+//func (c *S3) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error) {req, out := c.AbortMultipartUploadRequest(input)err := req.Send()@@ -46,7 +84,30 @@ func (c *S3) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMulticonst opCompleteMultipartUpload = "CompleteMultipartUpload"-// CompleteMultipartUploadRequest generates a request for the CompleteMultipartUpload operation.+// CompleteMultipartUploadRequest generates a "aws/request.Request" representing the+// client's request for the CompleteMultipartUpload operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See CompleteMultipartUpload for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the CompleteMultipartUpload method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the CompleteMultipartUploadRequest method.+// req, resp := client.CompleteMultipartUploadRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput) (req *request.Request, output *CompleteMultipartUploadOutput) {op := &request.Operation{Name: opCompleteMultipartUpload,@@ -64,7 +125,16 @@ func (c *S3) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput)return}+// CompleteMultipartUpload API operation for Amazon Simple Storage Service.+//// Completes a multipart upload by assembling previously uploaded parts.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation CompleteMultipartUpload for usage and error information.func (c *S3) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error) {req, out := c.CompleteMultipartUploadRequest(input)err := req.Send()@@ -73,7 +143,30 @@ func (c *S3) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*Compconst opCopyObject = "CopyObject"-// CopyObjectRequest generates a request for the CopyObject operation.+// CopyObjectRequest generates a "aws/request.Request" representing the+// client's request for the CopyObject operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See CopyObject for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the CopyObject method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the CopyObjectRequest method.+// req, resp := client.CopyObjectRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, output *CopyObjectOutput) {op := &request.Operation{Name: opCopyObject,@@ -91,7 +184,22 @@ func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, oureturn}+// CopyObject API operation for Amazon Simple Storage Service.+//// Creates a copy of an object that is already stored in Amazon S3.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation CopyObject for usage and error information.+//+// Returned Error Codes:+// * ObjectNotInActiveTierError+// The source object of the COPY operation is not in the active tier and is+// only stored in Amazon Glacier.+//func (c *S3) CopyObject(input *CopyObjectInput) (*CopyObjectOutput, error) {req, out := c.CopyObjectRequest(input)err := req.Send()@@ -100,7 +208,30 @@ func (c *S3) CopyObject(input *CopyObjectInput) (*CopyObjectOutput, error) {const opCreateBucket = "CreateBucket"-// CreateBucketRequest generates a request for the CreateBucket operation.+// CreateBucketRequest generates a "aws/request.Request" representing the+// client's request for the CreateBucket operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See CreateBucket for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the CreateBucket method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the CreateBucketRequest method.+// req, resp := client.CreateBucketRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request, output *CreateBucketOutput) {op := &request.Operation{Name: opCreateBucket,@@ -118,7 +249,25 @@ func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Requestreturn}+// CreateBucket API operation for Amazon Simple Storage Service.+//// Creates a new bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation CreateBucket for usage and error information.+//+// Returned Error Codes:+// * BucketAlreadyExists+// The requested bucket name is not available. The bucket namespace is shared+// by all users of the system. Please select a different name and try again.+//+// * BucketAlreadyOwnedByYou++//func (c *S3) CreateBucket(input *CreateBucketInput) (*CreateBucketOutput, error) {req, out := c.CreateBucketRequest(input)err := req.Send()@@ -127,7 +276,30 @@ func (c *S3) CreateBucket(input *CreateBucketInput) (*CreateBucketOutput, error)const opCreateMultipartUpload = "CreateMultipartUpload"-// CreateMultipartUploadRequest generates a request for the CreateMultipartUpload operation.+// CreateMultipartUploadRequest generates a "aws/request.Request" representing the+// client's request for the CreateMultipartUpload operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See CreateMultipartUpload for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the CreateMultipartUpload method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the CreateMultipartUploadRequest method.+// req, resp := client.CreateMultipartUploadRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (req *request.Request, output *CreateMultipartUploadOutput) {op := &request.Operation{Name: opCreateMultipartUpload,@@ -145,6 +317,8 @@ func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (rereturn}+// CreateMultipartUpload API operation for Amazon Simple Storage Service.+//// Initiates a multipart upload and returns an upload ID.//// Note: After you initiate multipart upload and upload one or more parts, you@@ -152,6 +326,13 @@ func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (re// for storage of the uploaded parts. Only after you either complete or abort// multipart upload, Amazon S3 frees up the parts storage and stops charging// you for the parts storage.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation CreateMultipartUpload for usage and error information.func (c *S3) CreateMultipartUpload(input *CreateMultipartUploadInput) (*CreateMultipartUploadOutput, error) {req, out := c.CreateMultipartUploadRequest(input)err := req.Send()@@ -160,7 +341,30 @@ func (c *S3) CreateMultipartUpload(input *CreateMultipartUploadInput) (*CreateMuconst opDeleteBucket = "DeleteBucket"-// DeleteBucketRequest generates a request for the DeleteBucket operation.+// DeleteBucketRequest generates a "aws/request.Request" representing the+// client's request for the DeleteBucket operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DeleteBucket for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DeleteBucket method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DeleteBucketRequest method.+// req, resp := client.DeleteBucketRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Request, output *DeleteBucketOutput) {op := &request.Operation{Name: opDeleteBucket,@@ -180,8 +384,17 @@ func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Requestreturn}+// DeleteBucket API operation for Amazon Simple Storage Service.+//// Deletes the bucket. All objects (including all object versions and Delete// Markers) in the bucket must be deleted before the bucket itself can be deleted.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation DeleteBucket for usage and error information.func (c *S3) DeleteBucket(input *DeleteBucketInput) (*DeleteBucketOutput, error) {req, out := c.DeleteBucketRequest(input)err := req.Send()@@ -190,7 +403,30 @@ func (c *S3) DeleteBucket(input *DeleteBucketInput) (*DeleteBucketOutput, error)const opDeleteBucketCors = "DeleteBucketCors"-// DeleteBucketCorsRequest generates a request for the DeleteBucketCors operation.+// DeleteBucketCorsRequest generates a "aws/request.Request" representing the+// client's request for the DeleteBucketCors operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DeleteBucketCors for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DeleteBucketCors method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DeleteBucketCorsRequest method.+// req, resp := client.DeleteBucketCorsRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request.Request, output *DeleteBucketCorsOutput) {op := &request.Operation{Name: opDeleteBucketCors,@@ -210,7 +446,16 @@ func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *requestreturn}+// DeleteBucketCors API operation for Amazon Simple Storage Service.+//// Deletes the cors configuration information set for the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation DeleteBucketCors for usage and error information.func (c *S3) DeleteBucketCors(input *DeleteBucketCorsInput) (*DeleteBucketCorsOutput, error) {req, out := c.DeleteBucketCorsRequest(input)err := req.Send()@@ -219,7 +464,30 @@ func (c *S3) DeleteBucketCors(input *DeleteBucketCorsInput) (*DeleteBucketCorsOuconst opDeleteBucketLifecycle = "DeleteBucketLifecycle"-// DeleteBucketLifecycleRequest generates a request for the DeleteBucketLifecycle operation.+// DeleteBucketLifecycleRequest generates a "aws/request.Request" representing the+// client's request for the DeleteBucketLifecycle operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DeleteBucketLifecycle for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DeleteBucketLifecycle method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DeleteBucketLifecycleRequest method.+// req, resp := client.DeleteBucketLifecycleRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (req *request.Request, output *DeleteBucketLifecycleOutput) {op := &request.Operation{Name: opDeleteBucketLifecycle,@@ -239,7 +507,16 @@ func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (rereturn}+// DeleteBucketLifecycle API operation for Amazon Simple Storage Service.+//// Deletes the lifecycle configuration from the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation DeleteBucketLifecycle for usage and error information.func (c *S3) DeleteBucketLifecycle(input *DeleteBucketLifecycleInput) (*DeleteBucketLifecycleOutput, error) {req, out := c.DeleteBucketLifecycleRequest(input)err := req.Send()@@ -248,7 +525,30 @@ func (c *S3) DeleteBucketLifecycle(input *DeleteBucketLifecycleInput) (*DeleteBuconst opDeleteBucketPolicy = "DeleteBucketPolicy"-// DeleteBucketPolicyRequest generates a request for the DeleteBucketPolicy operation.+// DeleteBucketPolicyRequest generates a "aws/request.Request" representing the+// client's request for the DeleteBucketPolicy operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DeleteBucketPolicy for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DeleteBucketPolicy method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DeleteBucketPolicyRequest method.+// req, resp := client.DeleteBucketPolicyRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *request.Request, output *DeleteBucketPolicyOutput) {op := &request.Operation{Name: opDeleteBucketPolicy,@@ -268,7 +568,16 @@ func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *reqreturn}+// DeleteBucketPolicy API operation for Amazon Simple Storage Service.+//// Deletes the policy from the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation DeleteBucketPolicy for usage and error information.func (c *S3) DeleteBucketPolicy(input *DeleteBucketPolicyInput) (*DeleteBucketPolicyOutput, error) {req, out := c.DeleteBucketPolicyRequest(input)err := req.Send()@@ -277,7 +586,30 @@ func (c *S3) DeleteBucketPolicy(input *DeleteBucketPolicyInput) (*DeleteBucketPoconst opDeleteBucketReplication = "DeleteBucketReplication"-// DeleteBucketReplicationRequest generates a request for the DeleteBucketReplication operation.+// DeleteBucketReplicationRequest generates a "aws/request.Request" representing the+// client's request for the DeleteBucketReplication operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DeleteBucketReplication for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DeleteBucketReplication method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DeleteBucketReplicationRequest method.+// req, resp := client.DeleteBucketReplicationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput) (req *request.Request, output *DeleteBucketReplicationOutput) {op := &request.Operation{Name: opDeleteBucketReplication,@@ -297,6 +629,16 @@ func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput)return}+// DeleteBucketReplication API operation for Amazon Simple Storage Service.+//+// Deletes the replication configuration from the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation DeleteBucketReplication for usage and error information.func (c *S3) DeleteBucketReplication(input *DeleteBucketReplicationInput) (*DeleteBucketReplicationOutput, error) {req, out := c.DeleteBucketReplicationRequest(input)err := req.Send()@@ -305,7 +647,30 @@ func (c *S3) DeleteBucketReplication(input *DeleteBucketReplicationInput) (*Deleconst opDeleteBucketTagging = "DeleteBucketTagging"-// DeleteBucketTaggingRequest generates a request for the DeleteBucketTagging operation.+// DeleteBucketTaggingRequest generates a "aws/request.Request" representing the+// client's request for the DeleteBucketTagging operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DeleteBucketTagging for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DeleteBucketTagging method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DeleteBucketTaggingRequest method.+// req, resp := client.DeleteBucketTaggingRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *request.Request, output *DeleteBucketTaggingOutput) {op := &request.Operation{Name: opDeleteBucketTagging,@@ -325,7 +690,16 @@ func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *rreturn}+// DeleteBucketTagging API operation for Amazon Simple Storage Service.+//// Deletes the tags from the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation DeleteBucketTagging for usage and error information.func (c *S3) DeleteBucketTagging(input *DeleteBucketTaggingInput) (*DeleteBucketTaggingOutput, error) {req, out := c.DeleteBucketTaggingRequest(input)err := req.Send()@@ -334,7 +708,30 @@ func (c *S3) DeleteBucketTagging(input *DeleteBucketTaggingInput) (*DeleteBucketconst opDeleteBucketWebsite = "DeleteBucketWebsite"-// DeleteBucketWebsiteRequest generates a request for the DeleteBucketWebsite operation.+// DeleteBucketWebsiteRequest generates a "aws/request.Request" representing the+// client's request for the DeleteBucketWebsite operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DeleteBucketWebsite for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DeleteBucketWebsite method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DeleteBucketWebsiteRequest method.+// req, resp := client.DeleteBucketWebsiteRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *request.Request, output *DeleteBucketWebsiteOutput) {op := &request.Operation{Name: opDeleteBucketWebsite,@@ -354,7 +751,16 @@ func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *rreturn}+// DeleteBucketWebsite API operation for Amazon Simple Storage Service.+//// This operation removes the website configuration from the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation DeleteBucketWebsite for usage and error information.func (c *S3) DeleteBucketWebsite(input *DeleteBucketWebsiteInput) (*DeleteBucketWebsiteOutput, error) {req, out := c.DeleteBucketWebsiteRequest(input)err := req.Send()@@ -363,7 +769,30 @@ func (c *S3) DeleteBucketWebsite(input *DeleteBucketWebsiteInput) (*DeleteBucketconst opDeleteObject = "DeleteObject"-// DeleteObjectRequest generates a request for the DeleteObject operation.+// DeleteObjectRequest generates a "aws/request.Request" representing the+// client's request for the DeleteObject operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DeleteObject for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DeleteObject method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DeleteObjectRequest method.+// req, resp := client.DeleteObjectRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Request, output *DeleteObjectOutput) {op := &request.Operation{Name: opDeleteObject,@@ -381,9 +810,18 @@ func (c *S3) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Requestreturn}+// DeleteObject API operation for Amazon Simple Storage Service.+//// Removes the null version (if there is one) of an object and inserts a delete// marker, which becomes the latest version of the object. If there isn't a// null version, Amazon S3 does not remove any objects.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation DeleteObject for usage and error information.func (c *S3) DeleteObject(input *DeleteObjectInput) (*DeleteObjectOutput, error) {req, out := c.DeleteObjectRequest(input)err := req.Send()@@ -392,7 +830,30 @@ func (c *S3) DeleteObject(input *DeleteObjectInput) (*DeleteObjectOutput, error)const opDeleteObjects = "DeleteObjects"-// DeleteObjectsRequest generates a request for the DeleteObjects operation.+// DeleteObjectsRequest generates a "aws/request.Request" representing the+// client's request for the DeleteObjects operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DeleteObjects for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DeleteObjects method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DeleteObjectsRequest method.+// req, resp := client.DeleteObjectsRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) DeleteObjectsRequest(input *DeleteObjectsInput) (req *request.Request, output *DeleteObjectsOutput) {op := &request.Operation{Name: opDeleteObjects,@@ -410,17 +871,108 @@ func (c *S3) DeleteObjectsRequest(input *DeleteObjectsInput) (req *request.Requereturn}+// DeleteObjects API operation for Amazon Simple Storage Service.+//// This operation enables you to delete multiple objects from a bucket using// a single HTTP request. You may specify up to 1000 keys.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation DeleteObjects for usage and error information.func (c *S3) DeleteObjects(input *DeleteObjectsInput) (*DeleteObjectsOutput, error) {req, out := c.DeleteObjectsRequest(input)err := req.Send()return out, err}+const opGetBucketAccelerateConfiguration = "GetBucketAccelerateConfiguration"++// GetBucketAccelerateConfigurationRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketAccelerateConfiguration operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketAccelerateConfiguration for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketAccelerateConfiguration method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketAccelerateConfigurationRequest method.+// req, resp := client.GetBucketAccelerateConfigurationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *S3) GetBucketAccelerateConfigurationRequest(input *GetBucketAccelerateConfigurationInput) (req *request.Request, output *GetBucketAccelerateConfigurationOutput) {+ op := &request.Operation{+ Name: opGetBucketAccelerateConfiguration,+ HTTPMethod: "GET",+ HTTPPath: "/{Bucket}?accelerate",+ }++ if input == nil {+ input = &GetBucketAccelerateConfigurationInput{}+ }++ req = c.newRequest(op, input, output)+ output = &GetBucketAccelerateConfigurationOutput{}+ req.Data = output+ return+}++// GetBucketAccelerateConfiguration API operation for Amazon Simple Storage Service.+//+// Returns the accelerate configuration of a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketAccelerateConfiguration for usage and error information.+func (c *S3) GetBucketAccelerateConfiguration(input *GetBucketAccelerateConfigurationInput) (*GetBucketAccelerateConfigurationOutput, error) {+ req, out := c.GetBucketAccelerateConfigurationRequest(input)+ err := req.Send()+ return out, err+}+const opGetBucketAcl = "GetBucketAcl"-// GetBucketAclRequest generates a request for the GetBucketAcl operation.+// GetBucketAclRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketAcl operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketAcl for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketAcl method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketAclRequest method.+// req, resp := client.GetBucketAclRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketAclRequest(input *GetBucketAclInput) (req *request.Request, output *GetBucketAclOutput) {op := &request.Operation{Name: opGetBucketAcl,@@ -438,7 +990,16 @@ func (c *S3) GetBucketAclRequest(input *GetBucketAclInput) (req *request.Requestreturn}+// GetBucketAcl API operation for Amazon Simple Storage Service.+//// Gets the access control policy for the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketAcl for usage and error information.func (c *S3) GetBucketAcl(input *GetBucketAclInput) (*GetBucketAclOutput, error) {req, out := c.GetBucketAclRequest(input)err := req.Send()@@ -447,7 +1008,30 @@ func (c *S3) GetBucketAcl(input *GetBucketAclInput) (*GetBucketAclOutput, error)const opGetBucketCors = "GetBucketCors"-// GetBucketCorsRequest generates a request for the GetBucketCors operation.+// GetBucketCorsRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketCors operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketCors for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketCors method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketCorsRequest method.+// req, resp := client.GetBucketCorsRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketCorsRequest(input *GetBucketCorsInput) (req *request.Request, output *GetBucketCorsOutput) {op := &request.Operation{Name: opGetBucketCors,@@ -465,7 +1049,16 @@ func (c *S3) GetBucketCorsRequest(input *GetBucketCorsInput) (req *request.Requereturn}+// GetBucketCors API operation for Amazon Simple Storage Service.+//// Returns the cors configuration for the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketCors for usage and error information.func (c *S3) GetBucketCors(input *GetBucketCorsInput) (*GetBucketCorsOutput, error) {req, out := c.GetBucketCorsRequest(input)err := req.Send()@@ -474,7 +1067,30 @@ func (c *S3) GetBucketCors(input *GetBucketCorsInput) (*GetBucketCorsOutput, errconst opGetBucketLifecycle = "GetBucketLifecycle"-// GetBucketLifecycleRequest generates a request for the GetBucketLifecycle operation.+// GetBucketLifecycleRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketLifecycle operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketLifecycle for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketLifecycle method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketLifecycleRequest method.+// req, resp := client.GetBucketLifecycleRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *request.Request, output *GetBucketLifecycleOutput) {if c.Client.Config.Logger != nil {c.Client.Config.Logger.Log("This operation, GetBucketLifecycle, has been deprecated")@@ -495,7 +1111,16 @@ func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *reqreturn}+// GetBucketLifecycle API operation for Amazon Simple Storage Service.+//// Deprecated, see the GetBucketLifecycleConfiguration operation.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketLifecycle for usage and error information.func (c *S3) GetBucketLifecycle(input *GetBucketLifecycleInput) (*GetBucketLifecycleOutput, error) {req, out := c.GetBucketLifecycleRequest(input)err := req.Send()@@ -504,7 +1129,30 @@ func (c *S3) GetBucketLifecycle(input *GetBucketLifecycleInput) (*GetBucketLifecconst opGetBucketLifecycleConfiguration = "GetBucketLifecycleConfiguration"-// GetBucketLifecycleConfigurationRequest generates a request for the GetBucketLifecycleConfiguration operation.+// GetBucketLifecycleConfigurationRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketLifecycleConfiguration operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketLifecycleConfiguration for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketLifecycleConfiguration method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketLifecycleConfigurationRequest method.+// req, resp := client.GetBucketLifecycleConfigurationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleConfigurationInput) (req *request.Request, output *GetBucketLifecycleConfigurationOutput) {op := &request.Operation{Name: opGetBucketLifecycleConfiguration,@@ -522,7 +1170,16 @@ func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleConreturn}+// GetBucketLifecycleConfiguration API operation for Amazon Simple Storage Service.+//// Returns the lifecycle configuration information set on the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketLifecycleConfiguration for usage and error information.func (c *S3) GetBucketLifecycleConfiguration(input *GetBucketLifecycleConfigurationInput) (*GetBucketLifecycleConfigurationOutput, error) {req, out := c.GetBucketLifecycleConfigurationRequest(input)err := req.Send()@@ -531,7 +1188,30 @@ func (c *S3) GetBucketLifecycleConfiguration(input *GetBucketLifecycleConfiguratconst opGetBucketLocation = "GetBucketLocation"-// GetBucketLocationRequest generates a request for the GetBucketLocation operation.+// GetBucketLocationRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketLocation operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketLocation for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketLocation method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketLocationRequest method.+// req, resp := client.GetBucketLocationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketLocationRequest(input *GetBucketLocationInput) (req *request.Request, output *GetBucketLocationOutput) {op := &request.Operation{Name: opGetBucketLocation,@@ -549,7 +1229,16 @@ func (c *S3) GetBucketLocationRequest(input *GetBucketLocationInput) (req *requereturn}+// GetBucketLocation API operation for Amazon Simple Storage Service.+//// Returns the region the bucket resides in.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketLocation for usage and error information.func (c *S3) GetBucketLocation(input *GetBucketLocationInput) (*GetBucketLocationOutput, error) {req, out := c.GetBucketLocationRequest(input)err := req.Send()@@ -558,7 +1247,30 @@ func (c *S3) GetBucketLocation(input *GetBucketLocationInput) (*GetBucketLocatioconst opGetBucketLogging = "GetBucketLogging"-// GetBucketLoggingRequest generates a request for the GetBucketLogging operation.+// GetBucketLoggingRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketLogging operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketLogging for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketLogging method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketLoggingRequest method.+// req, resp := client.GetBucketLoggingRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketLoggingRequest(input *GetBucketLoggingInput) (req *request.Request, output *GetBucketLoggingOutput) {op := &request.Operation{Name: opGetBucketLogging,@@ -576,8 +1288,17 @@ func (c *S3) GetBucketLoggingRequest(input *GetBucketLoggingInput) (req *requestreturn}+// GetBucketLogging API operation for Amazon Simple Storage Service.+//// Returns the logging status of a bucket and the permissions users have to// view and modify that status. To use GET, you must be the bucket owner.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketLogging for usage and error information.func (c *S3) GetBucketLogging(input *GetBucketLoggingInput) (*GetBucketLoggingOutput, error) {req, out := c.GetBucketLoggingRequest(input)err := req.Send()@@ -586,7 +1307,30 @@ func (c *S3) GetBucketLogging(input *GetBucketLoggingInput) (*GetBucketLoggingOuconst opGetBucketNotification = "GetBucketNotification"-// GetBucketNotificationRequest generates a request for the GetBucketNotification operation.+// GetBucketNotificationRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketNotification operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketNotification for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketNotification method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketNotificationRequest method.+// req, resp := client.GetBucketNotificationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurationRequest) (req *request.Request, output *NotificationConfigurationDeprecated) {if c.Client.Config.Logger != nil {c.Client.Config.Logger.Log("This operation, GetBucketNotification, has been deprecated")@@ -607,7 +1351,16 @@ func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfiguratreturn}+// GetBucketNotification API operation for Amazon Simple Storage Service.+//// Deprecated, see the GetBucketNotificationConfiguration operation.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketNotification for usage and error information.func (c *S3) GetBucketNotification(input *GetBucketNotificationConfigurationRequest) (*NotificationConfigurationDeprecated, error) {req, out := c.GetBucketNotificationRequest(input)err := req.Send()@@ -616,7 +1369,30 @@ func (c *S3) GetBucketNotification(input *GetBucketNotificationConfigurationRequconst opGetBucketNotificationConfiguration = "GetBucketNotificationConfiguration"-// GetBucketNotificationConfigurationRequest generates a request for the GetBucketNotificationConfiguration operation.+// GetBucketNotificationConfigurationRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketNotificationConfiguration operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketNotificationConfiguration for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketNotificationConfiguration method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketNotificationConfigurationRequest method.+// req, resp := client.GetBucketNotificationConfigurationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketNotificationConfigurationRequest(input *GetBucketNotificationConfigurationRequest) (req *request.Request, output *NotificationConfiguration) {op := &request.Operation{Name: opGetBucketNotificationConfiguration,@@ -634,7 +1410,16 @@ func (c *S3) GetBucketNotificationConfigurationRequest(input *GetBucketNotificatreturn}+// GetBucketNotificationConfiguration API operation for Amazon Simple Storage Service.+//// Returns the notification configuration of a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketNotificationConfiguration for usage and error information.func (c *S3) GetBucketNotificationConfiguration(input *GetBucketNotificationConfigurationRequest) (*NotificationConfiguration, error) {req, out := c.GetBucketNotificationConfigurationRequest(input)err := req.Send()@@ -643,7 +1428,30 @@ func (c *S3) GetBucketNotificationConfiguration(input *GetBucketNotificationConfconst opGetBucketPolicy = "GetBucketPolicy"-// GetBucketPolicyRequest generates a request for the GetBucketPolicy operation.+// GetBucketPolicyRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketPolicy operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketPolicy for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketPolicy method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketPolicyRequest method.+// req, resp := client.GetBucketPolicyRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketPolicyRequest(input *GetBucketPolicyInput) (req *request.Request, output *GetBucketPolicyOutput) {op := &request.Operation{Name: opGetBucketPolicy,@@ -661,7 +1469,16 @@ func (c *S3) GetBucketPolicyRequest(input *GetBucketPolicyInput) (req *request.Rreturn}+// GetBucketPolicy API operation for Amazon Simple Storage Service.+//// Returns the policy of a specified bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketPolicy for usage and error information.func (c *S3) GetBucketPolicy(input *GetBucketPolicyInput) (*GetBucketPolicyOutput, error) {req, out := c.GetBucketPolicyRequest(input)err := req.Send()@@ -670,7 +1487,30 @@ func (c *S3) GetBucketPolicy(input *GetBucketPolicyInput) (*GetBucketPolicyOutpuconst opGetBucketReplication = "GetBucketReplication"-// GetBucketReplicationRequest generates a request for the GetBucketReplication operation.+// GetBucketReplicationRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketReplication operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketReplication for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketReplication method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketReplicationRequest method.+// req, resp := client.GetBucketReplicationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req *request.Request, output *GetBucketReplicationOutput) {op := &request.Operation{Name: opGetBucketReplication,@@ -688,6 +1528,16 @@ func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (reqreturn}+// GetBucketReplication API operation for Amazon Simple Storage Service.+//+// Returns the replication configuration of a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketReplication for usage and error information.func (c *S3) GetBucketReplication(input *GetBucketReplicationInput) (*GetBucketReplicationOutput, error) {req, out := c.GetBucketReplicationRequest(input)err := req.Send()@@ -696,7 +1546,30 @@ func (c *S3) GetBucketReplication(input *GetBucketReplicationInput) (*GetBucketRconst opGetBucketRequestPayment = "GetBucketRequestPayment"-// GetBucketRequestPaymentRequest generates a request for the GetBucketRequestPayment operation.+// GetBucketRequestPaymentRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketRequestPayment operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketRequestPayment for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketRequestPayment method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketRequestPaymentRequest method.+// req, resp := client.GetBucketRequestPaymentRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketRequestPaymentRequest(input *GetBucketRequestPaymentInput) (req *request.Request, output *GetBucketRequestPaymentOutput) {op := &request.Operation{Name: opGetBucketRequestPayment,@@ -714,7 +1587,16 @@ func (c *S3) GetBucketRequestPaymentRequest(input *GetBucketRequestPaymentInput)return}+// GetBucketRequestPayment API operation for Amazon Simple Storage Service.+//// Returns the request payment configuration of a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketRequestPayment for usage and error information.func (c *S3) GetBucketRequestPayment(input *GetBucketRequestPaymentInput) (*GetBucketRequestPaymentOutput, error) {req, out := c.GetBucketRequestPaymentRequest(input)err := req.Send()@@ -723,7 +1605,30 @@ func (c *S3) GetBucketRequestPayment(input *GetBucketRequestPaymentInput) (*GetBconst opGetBucketTagging = "GetBucketTagging"-// GetBucketTaggingRequest generates a request for the GetBucketTagging operation.+// GetBucketTaggingRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketTagging operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketTagging for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketTagging method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketTaggingRequest method.+// req, resp := client.GetBucketTaggingRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketTaggingRequest(input *GetBucketTaggingInput) (req *request.Request, output *GetBucketTaggingOutput) {op := &request.Operation{Name: opGetBucketTagging,@@ -741,7 +1646,16 @@ func (c *S3) GetBucketTaggingRequest(input *GetBucketTaggingInput) (req *requestreturn}+// GetBucketTagging API operation for Amazon Simple Storage Service.+//// Returns the tag set associated with the bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketTagging for usage and error information.func (c *S3) GetBucketTagging(input *GetBucketTaggingInput) (*GetBucketTaggingOutput, error) {req, out := c.GetBucketTaggingRequest(input)err := req.Send()@@ -750,7 +1664,30 @@ func (c *S3) GetBucketTagging(input *GetBucketTaggingInput) (*GetBucketTaggingOuconst opGetBucketVersioning = "GetBucketVersioning"-// GetBucketVersioningRequest generates a request for the GetBucketVersioning operation.+// GetBucketVersioningRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketVersioning operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketVersioning for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketVersioning method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketVersioningRequest method.+// req, resp := client.GetBucketVersioningRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketVersioningRequest(input *GetBucketVersioningInput) (req *request.Request, output *GetBucketVersioningOutput) {op := &request.Operation{Name: opGetBucketVersioning,@@ -768,7 +1705,16 @@ func (c *S3) GetBucketVersioningRequest(input *GetBucketVersioningInput) (req *rreturn}+// GetBucketVersioning API operation for Amazon Simple Storage Service.+//// Returns the versioning state of a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketVersioning for usage and error information.func (c *S3) GetBucketVersioning(input *GetBucketVersioningInput) (*GetBucketVersioningOutput, error) {req, out := c.GetBucketVersioningRequest(input)err := req.Send()@@ -777,7 +1723,30 @@ func (c *S3) GetBucketVersioning(input *GetBucketVersioningInput) (*GetBucketVerconst opGetBucketWebsite = "GetBucketWebsite"-// GetBucketWebsiteRequest generates a request for the GetBucketWebsite operation.+// GetBucketWebsiteRequest generates a "aws/request.Request" representing the+// client's request for the GetBucketWebsite operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetBucketWebsite for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetBucketWebsite method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetBucketWebsiteRequest method.+// req, resp := client.GetBucketWebsiteRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetBucketWebsiteRequest(input *GetBucketWebsiteInput) (req *request.Request, output *GetBucketWebsiteOutput) {op := &request.Operation{Name: opGetBucketWebsite,@@ -795,7 +1764,16 @@ func (c *S3) GetBucketWebsiteRequest(input *GetBucketWebsiteInput) (req *requestreturn}+// GetBucketWebsite API operation for Amazon Simple Storage Service.+//// Returns the website configuration for a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetBucketWebsite for usage and error information.func (c *S3) GetBucketWebsite(input *GetBucketWebsiteInput) (*GetBucketWebsiteOutput, error) {req, out := c.GetBucketWebsiteRequest(input)err := req.Send()@@ -804,7 +1782,30 @@ func (c *S3) GetBucketWebsite(input *GetBucketWebsiteInput) (*GetBucketWebsiteOuconst opGetObject = "GetObject"-// GetObjectRequest generates a request for the GetObject operation.+// GetObjectRequest generates a "aws/request.Request" representing the+// client's request for the GetObject operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetObject for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetObject method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetObjectRequest method.+// req, resp := client.GetObjectRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, output *GetObjectOutput) {op := &request.Operation{Name: opGetObject,@@ -822,7 +1823,21 @@ func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, outpreturn}+// GetObject API operation for Amazon Simple Storage Service.+//// Retrieves objects from Amazon S3.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetObject for usage and error information.+//+// Returned Error Codes:+// * NoSuchKey+// The specified key does not exist.+//func (c *S3) GetObject(input *GetObjectInput) (*GetObjectOutput, error) {req, out := c.GetObjectRequest(input)err := req.Send()@@ -831,7 +1846,30 @@ func (c *S3) GetObject(input *GetObjectInput) (*GetObjectOutput, error) {const opGetObjectAcl = "GetObjectAcl"-// GetObjectAclRequest generates a request for the GetObjectAcl operation.+// GetObjectAclRequest generates a "aws/request.Request" representing the+// client's request for the GetObjectAcl operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetObjectAcl for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetObjectAcl method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetObjectAclRequest method.+// req, resp := client.GetObjectAclRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Request, output *GetObjectAclOutput) {op := &request.Operation{Name: opGetObjectAcl,@@ -849,7 +1887,21 @@ func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Requestreturn}+// GetObjectAcl API operation for Amazon Simple Storage Service.+//// Returns the access control list (ACL) of an object.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetObjectAcl for usage and error information.+//+// Returned Error Codes:+// * NoSuchKey+// The specified key does not exist.+//func (c *S3) GetObjectAcl(input *GetObjectAclInput) (*GetObjectAclOutput, error) {req, out := c.GetObjectAclRequest(input)err := req.Send()@@ -858,7 +1910,30 @@ func (c *S3) GetObjectAcl(input *GetObjectAclInput) (*GetObjectAclOutput, error)const opGetObjectTorrent = "GetObjectTorrent"-// GetObjectTorrentRequest generates a request for the GetObjectTorrent operation.+// GetObjectTorrentRequest generates a "aws/request.Request" representing the+// client's request for the GetObjectTorrent operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetObjectTorrent for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetObjectTorrent method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetObjectTorrentRequest method.+// req, resp := client.GetObjectTorrentRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *request.Request, output *GetObjectTorrentOutput) {op := &request.Operation{Name: opGetObjectTorrent,@@ -876,7 +1951,16 @@ func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *requestreturn}+// GetObjectTorrent API operation for Amazon Simple Storage Service.+//// Return torrent files from a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation GetObjectTorrent for usage and error information.func (c *S3) GetObjectTorrent(input *GetObjectTorrentInput) (*GetObjectTorrentOutput, error) {req, out := c.GetObjectTorrentRequest(input)err := req.Send()@@ -885,7 +1969,30 @@ func (c *S3) GetObjectTorrent(input *GetObjectTorrentInput) (*GetObjectTorrentOuconst opHeadBucket = "HeadBucket"-// HeadBucketRequest generates a request for the HeadBucket operation.+// HeadBucketRequest generates a "aws/request.Request" representing the+// client's request for the HeadBucket operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See HeadBucket for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the HeadBucket method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the HeadBucketRequest method.+// req, resp := client.HeadBucketRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, output *HeadBucketOutput) {op := &request.Operation{Name: opHeadBucket,@@ -905,8 +2012,22 @@ func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, oureturn}+// HeadBucket API operation for Amazon Simple Storage Service.+//// This operation is useful to determine if a bucket exists and you have permission// to access it.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation HeadBucket for usage and error information.+//+// Returned Error Codes:+// * NoSuchBucket+// The specified bucket does not exist.+//func (c *S3) HeadBucket(input *HeadBucketInput) (*HeadBucketOutput, error) {req, out := c.HeadBucketRequest(input)err := req.Send()@@ -915,7 +2036,30 @@ func (c *S3) HeadBucket(input *HeadBucketInput) (*HeadBucketOutput, error) {const opHeadObject = "HeadObject"-// HeadObjectRequest generates a request for the HeadObject operation.+// HeadObjectRequest generates a "aws/request.Request" representing the+// client's request for the HeadObject operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See HeadObject for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the HeadObject method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the HeadObjectRequest method.+// req, resp := client.HeadObjectRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, output *HeadObjectOutput) {op := &request.Operation{Name: opHeadObject,@@ -933,9 +2077,23 @@ func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, oureturn}+// HeadObject API operation for Amazon Simple Storage Service.+//// The HEAD operation retrieves metadata from an object without returning the// object itself. This operation is useful if you're only interested in an object's// metadata. To use HEAD, you must have READ access to the object.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation HeadObject for usage and error information.+//+// Returned Error Codes:+// * NoSuchKey+// The specified key does not exist.+//func (c *S3) HeadObject(input *HeadObjectInput) (*HeadObjectOutput, error) {req, out := c.HeadObjectRequest(input)err := req.Send()@@ -944,7 +2102,30 @@ func (c *S3) HeadObject(input *HeadObjectInput) (*HeadObjectOutput, error) {const opListBuckets = "ListBuckets"-// ListBucketsRequest generates a request for the ListBuckets operation.+// ListBucketsRequest generates a "aws/request.Request" representing the+// client's request for the ListBuckets operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See ListBuckets for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the ListBuckets method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the ListBucketsRequest method.+// req, resp := client.ListBucketsRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) ListBucketsRequest(input *ListBucketsInput) (req *request.Request, output *ListBucketsOutput) {op := &request.Operation{Name: opListBuckets,@@ -962,7 +2143,16 @@ func (c *S3) ListBucketsRequest(input *ListBucketsInput) (req *request.Request,return}+// ListBuckets API operation for Amazon Simple Storage Service.+//// Returns a list of all buckets owned by the authenticated sender of the request.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation ListBuckets for usage and error information.func (c *S3) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error) {req, out := c.ListBucketsRequest(input)err := req.Send()@@ -971,7 +2161,30 @@ func (c *S3) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error) {const opListMultipartUploads = "ListMultipartUploads"-// ListMultipartUploadsRequest generates a request for the ListMultipartUploads operation.+// ListMultipartUploadsRequest generates a "aws/request.Request" representing the+// client's request for the ListMultipartUploads operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See ListMultipartUploads for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the ListMultipartUploads method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the ListMultipartUploadsRequest method.+// req, resp := client.ListMultipartUploadsRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req *request.Request, output *ListMultipartUploadsOutput) {op := &request.Operation{Name: opListMultipartUploads,@@ -995,13 +2208,39 @@ func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (reqreturn}+// ListMultipartUploads API operation for Amazon Simple Storage Service.+//// This operation lists in-progress multipart uploads.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation ListMultipartUploads for usage and error information.func (c *S3) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error) {req, out := c.ListMultipartUploadsRequest(input)err := req.Send()return out, err}+// ListMultipartUploadsPages iterates over the pages of a ListMultipartUploads operation,+// calling the "fn" function with the response data for each page. To stop+// iterating, return false from the fn function.+//+// See ListMultipartUploads method for more information on how to use this operation.+//+// Note: This operation can generate multiple requests to a service.+//+// // Example iterating over at most 3 pages of a ListMultipartUploads operation.+// pageNum := 0+// err := client.ListMultipartUploadsPages(params,+// func(page *ListMultipartUploadsOutput, lastPage bool) bool {+// pageNum+++// fmt.Println(page)+// return pageNum <= 3+// })+//func (c *S3) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn func(p *ListMultipartUploadsOutput, lastPage bool) (shouldContinue bool)) error {page, _ := c.ListMultipartUploadsRequest(input)page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))@@ -1012,7 +2251,30 @@ func (c *S3) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn funcconst opListObjectVersions = "ListObjectVersions"-// ListObjectVersionsRequest generates a request for the ListObjectVersions operation.+// ListObjectVersionsRequest generates a "aws/request.Request" representing the+// client's request for the ListObjectVersions operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See ListObjectVersions for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the ListObjectVersions method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the ListObjectVersionsRequest method.+// req, resp := client.ListObjectVersionsRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) ListObjectVersionsRequest(input *ListObjectVersionsInput) (req *request.Request, output *ListObjectVersionsOutput) {op := &request.Operation{Name: opListObjectVersions,@@ -1036,13 +2298,39 @@ func (c *S3) ListObjectVersionsRequest(input *ListObjectVersionsInput) (req *reqreturn}+// ListObjectVersions API operation for Amazon Simple Storage Service.+//// Returns metadata about all of the versions of objects in a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation ListObjectVersions for usage and error information.func (c *S3) ListObjectVersions(input *ListObjectVersionsInput) (*ListObjectVersionsOutput, error) {req, out := c.ListObjectVersionsRequest(input)err := req.Send()return out, err}+// ListObjectVersionsPages iterates over the pages of a ListObjectVersions operation,+// calling the "fn" function with the response data for each page. To stop+// iterating, return false from the fn function.+//+// See ListObjectVersions method for more information on how to use this operation.+//+// Note: This operation can generate multiple requests to a service.+//+// // Example iterating over at most 3 pages of a ListObjectVersions operation.+// pageNum := 0+// err := client.ListObjectVersionsPages(params,+// func(page *ListObjectVersionsOutput, lastPage bool) bool {+// pageNum+++// fmt.Println(page)+// return pageNum <= 3+// })+//func (c *S3) ListObjectVersionsPages(input *ListObjectVersionsInput, fn func(p *ListObjectVersionsOutput, lastPage bool) (shouldContinue bool)) error {page, _ := c.ListObjectVersionsRequest(input)page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))@@ -1053,7 +2341,30 @@ func (c *S3) ListObjectVersionsPages(input *ListObjectVersionsInput, fn func(p *const opListObjects = "ListObjects"-// ListObjectsRequest generates a request for the ListObjects operation.+// ListObjectsRequest generates a "aws/request.Request" representing the+// client's request for the ListObjects operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See ListObjects for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the ListObjects method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the ListObjectsRequest method.+// req, resp := client.ListObjectsRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request, output *ListObjectsOutput) {op := &request.Operation{Name: opListObjects,@@ -1077,15 +2388,46 @@ func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request,return}+// ListObjects API operation for Amazon Simple Storage Service.+//// Returns some or all (up to 1000) of the objects in a bucket. You can use// the request parameters as selection criteria to return a subset of the objects// in a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation ListObjects for usage and error information.+//+// Returned Error Codes:+// * NoSuchBucket+// The specified bucket does not exist.+//func (c *S3) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error) {req, out := c.ListObjectsRequest(input)err := req.Send()return out, err}+// ListObjectsPages iterates over the pages of a ListObjects operation,+// calling the "fn" function with the response data for each page. To stop+// iterating, return false from the fn function.+//+// See ListObjects method for more information on how to use this operation.+//+// Note: This operation can generate multiple requests to a service.+//+// // Example iterating over at most 3 pages of a ListObjects operation.+// pageNum := 0+// err := client.ListObjectsPages(params,+// func(page *ListObjectsOutput, lastPage bool) bool {+// pageNum+++// fmt.Println(page)+// return pageNum <= 3+// })+//func (c *S3) ListObjectsPages(input *ListObjectsInput, fn func(p *ListObjectsOutput, lastPage bool) (shouldContinue bool)) error {page, _ := c.ListObjectsRequest(input)page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))@@ -1094,9 +2436,130 @@ func (c *S3) ListObjectsPages(input *ListObjectsInput, fn func(p *ListObjectsOut})}+const opListObjectsV2 = "ListObjectsV2"++// ListObjectsV2Request generates a "aws/request.Request" representing the+// client's request for the ListObjectsV2 operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See ListObjectsV2 for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the ListObjectsV2 method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the ListObjectsV2Request method.+// req, resp := client.ListObjectsV2Request(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Request, output *ListObjectsV2Output) {+ op := &request.Operation{+ Name: opListObjectsV2,+ HTTPMethod: "GET",+ HTTPPath: "/{Bucket}?list-type=2",+ Paginator: &request.Paginator{+ InputTokens: []string{"ContinuationToken"},+ OutputTokens: []string{"NextContinuationToken"},+ LimitToken: "MaxKeys",+ TruncationToken: "",+ },+ }++ if input == nil {+ input = &ListObjectsV2Input{}+ }++ req = c.newRequest(op, input, output)+ output = &ListObjectsV2Output{}+ req.Data = output+ return+}++// ListObjectsV2 API operation for Amazon Simple Storage Service.+//+// Returns some or all (up to 1000) of the objects in a bucket. You can use+// the request parameters as selection criteria to return a subset of the objects+// in a bucket. Note: ListObjectsV2 is the revised List Objects API and we recommend+// you use this revised API for new application development.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation ListObjectsV2 for usage and error information.+//+// Returned Error Codes:+// * NoSuchBucket+// The specified bucket does not exist.+//+func (c *S3) ListObjectsV2(input *ListObjectsV2Input) (*ListObjectsV2Output, error) {+ req, out := c.ListObjectsV2Request(input)+ err := req.Send()+ return out, err+}++// ListObjectsV2Pages iterates over the pages of a ListObjectsV2 operation,+// calling the "fn" function with the response data for each page. To stop+// iterating, return false from the fn function.+//+// See ListObjectsV2 method for more information on how to use this operation.+//+// Note: This operation can generate multiple requests to a service.+//+// // Example iterating over at most 3 pages of a ListObjectsV2 operation.+// pageNum := 0+// err := client.ListObjectsV2Pages(params,+// func(page *ListObjectsV2Output, lastPage bool) bool {+// pageNum+++// fmt.Println(page)+// return pageNum <= 3+// })+//+func (c *S3) ListObjectsV2Pages(input *ListObjectsV2Input, fn func(p *ListObjectsV2Output, lastPage bool) (shouldContinue bool)) error {+ page, _ := c.ListObjectsV2Request(input)+ page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))+ return page.EachPage(func(p interface{}, lastPage bool) bool {+ return fn(p.(*ListObjectsV2Output), lastPage)+ })+}+const opListParts = "ListParts"-// ListPartsRequest generates a request for the ListParts operation.+// ListPartsRequest generates a "aws/request.Request" representing the+// client's request for the ListParts operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See ListParts for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the ListParts method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the ListPartsRequest method.+// req, resp := client.ListPartsRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) ListPartsRequest(input *ListPartsInput) (req *request.Request, output *ListPartsOutput) {op := &request.Operation{Name: opListParts,@@ -1120,13 +2583,39 @@ func (c *S3) ListPartsRequest(input *ListPartsInput) (req *request.Request, outpreturn}+// ListParts API operation for Amazon Simple Storage Service.+//// Lists the parts that have been uploaded for a specific multipart upload.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation ListParts for usage and error information.func (c *S3) ListParts(input *ListPartsInput) (*ListPartsOutput, error) {req, out := c.ListPartsRequest(input)err := req.Send()return out, err}+// ListPartsPages iterates over the pages of a ListParts operation,+// calling the "fn" function with the response data for each page. To stop+// iterating, return false from the fn function.+//+// See ListParts method for more information on how to use this operation.+//+// Note: This operation can generate multiple requests to a service.+//+// // Example iterating over at most 3 pages of a ListParts operation.+// pageNum := 0+// err := client.ListPartsPages(params,+// func(page *ListPartsOutput, lastPage bool) bool {+// pageNum+++// fmt.Println(page)+// return pageNum <= 3+// })+//func (c *S3) ListPartsPages(input *ListPartsInput, fn func(p *ListPartsOutput, lastPage bool) (shouldContinue bool)) error {page, _ := c.ListPartsRequest(input)page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))@@ -1135,9 +2624,93 @@ func (c *S3) ListPartsPages(input *ListPartsInput, fn func(p *ListPartsOutput, l})}+const opPutBucketAccelerateConfiguration = "PutBucketAccelerateConfiguration"++// PutBucketAccelerateConfigurationRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketAccelerateConfiguration operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketAccelerateConfiguration for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketAccelerateConfiguration method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketAccelerateConfigurationRequest method.+// req, resp := client.PutBucketAccelerateConfigurationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *S3) PutBucketAccelerateConfigurationRequest(input *PutBucketAccelerateConfigurationInput) (req *request.Request, output *PutBucketAccelerateConfigurationOutput) {+ op := &request.Operation{+ Name: opPutBucketAccelerateConfiguration,+ HTTPMethod: "PUT",+ HTTPPath: "/{Bucket}?accelerate",+ }++ if input == nil {+ input = &PutBucketAccelerateConfigurationInput{}+ }++ req = c.newRequest(op, input, output)+ req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)+ req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)+ output = &PutBucketAccelerateConfigurationOutput{}+ req.Data = output+ return+}++// PutBucketAccelerateConfiguration API operation for Amazon Simple Storage Service.+//+// Sets the accelerate configuration of an existing bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketAccelerateConfiguration for usage and error information.+func (c *S3) PutBucketAccelerateConfiguration(input *PutBucketAccelerateConfigurationInput) (*PutBucketAccelerateConfigurationOutput, error) {+ req, out := c.PutBucketAccelerateConfigurationRequest(input)+ err := req.Send()+ return out, err+}+const opPutBucketAcl = "PutBucketAcl"-// PutBucketAclRequest generates a request for the PutBucketAcl operation.+// PutBucketAclRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketAcl operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketAcl for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketAcl method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketAclRequest method.+// req, resp := client.PutBucketAclRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Request, output *PutBucketAclOutput) {op := &request.Operation{Name: opPutBucketAcl,@@ -1157,7 +2730,16 @@ func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Requestreturn}+// PutBucketAcl API operation for Amazon Simple Storage Service.+//// Sets the permissions on a bucket using access control lists (ACL).+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketAcl for usage and error information.func (c *S3) PutBucketAcl(input *PutBucketAclInput) (*PutBucketAclOutput, error) {req, out := c.PutBucketAclRequest(input)err := req.Send()@@ -1166,7 +2748,30 @@ func (c *S3) PutBucketAcl(input *PutBucketAclInput) (*PutBucketAclOutput, error)const opPutBucketCors = "PutBucketCors"-// PutBucketCorsRequest generates a request for the PutBucketCors operation.+// PutBucketCorsRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketCors operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketCors for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketCors method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketCorsRequest method.+// req, resp := client.PutBucketCorsRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Request, output *PutBucketCorsOutput) {op := &request.Operation{Name: opPutBucketCors,@@ -1186,7 +2791,16 @@ func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Requereturn}+// PutBucketCors API operation for Amazon Simple Storage Service.+//// Sets the cors configuration for a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketCors for usage and error information.func (c *S3) PutBucketCors(input *PutBucketCorsInput) (*PutBucketCorsOutput, error) {req, out := c.PutBucketCorsRequest(input)err := req.Send()@@ -1195,7 +2809,30 @@ func (c *S3) PutBucketCors(input *PutBucketCorsInput) (*PutBucketCorsOutput, errconst opPutBucketLifecycle = "PutBucketLifecycle"-// PutBucketLifecycleRequest generates a request for the PutBucketLifecycle operation.+// PutBucketLifecycleRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketLifecycle operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketLifecycle for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketLifecycle method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketLifecycleRequest method.+// req, resp := client.PutBucketLifecycleRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *request.Request, output *PutBucketLifecycleOutput) {if c.Client.Config.Logger != nil {c.Client.Config.Logger.Log("This operation, PutBucketLifecycle, has been deprecated")@@ -1218,7 +2855,16 @@ func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *reqreturn}+// PutBucketLifecycle API operation for Amazon Simple Storage Service.+//// Deprecated, see the PutBucketLifecycleConfiguration operation.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketLifecycle for usage and error information.func (c *S3) PutBucketLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error) {req, out := c.PutBucketLifecycleRequest(input)err := req.Send()@@ -1227,7 +2873,30 @@ func (c *S3) PutBucketLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecconst opPutBucketLifecycleConfiguration = "PutBucketLifecycleConfiguration"-// PutBucketLifecycleConfigurationRequest generates a request for the PutBucketLifecycleConfiguration operation.+// PutBucketLifecycleConfigurationRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketLifecycleConfiguration operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketLifecycleConfiguration for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketLifecycleConfiguration method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketLifecycleConfigurationRequest method.+// req, resp := client.PutBucketLifecycleConfigurationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketLifecycleConfigurationRequest(input *PutBucketLifecycleConfigurationInput) (req *request.Request, output *PutBucketLifecycleConfigurationOutput) {op := &request.Operation{Name: opPutBucketLifecycleConfiguration,@@ -1247,8 +2916,17 @@ func (c *S3) PutBucketLifecycleConfigurationRequest(input *PutBucketLifecycleConreturn}+// PutBucketLifecycleConfiguration API operation for Amazon Simple Storage Service.+//// Sets lifecycle configuration for your bucket. If a lifecycle configuration// exists, it replaces it.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketLifecycleConfiguration for usage and error information.func (c *S3) PutBucketLifecycleConfiguration(input *PutBucketLifecycleConfigurationInput) (*PutBucketLifecycleConfigurationOutput, error) {req, out := c.PutBucketLifecycleConfigurationRequest(input)err := req.Send()@@ -1257,11 +2935,34 @@ func (c *S3) PutBucketLifecycleConfiguration(input *PutBucketLifecycleConfiguratconst opPutBucketLogging = "PutBucketLogging"-// PutBucketLoggingRequest generates a request for the PutBucketLogging operation.-func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request.Request, output *PutBucketLoggingOutput) {- op := &request.Operation{- Name: opPutBucketLogging,- HTTPMethod: "PUT",+// PutBucketLoggingRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketLogging operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketLogging for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketLogging method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketLoggingRequest method.+// req, resp := client.PutBucketLoggingRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request.Request, output *PutBucketLoggingOutput) {+ op := &request.Operation{+ Name: opPutBucketLogging,+ HTTPMethod: "PUT",HTTPPath: "/{Bucket}?logging",}@@ -1277,9 +2978,18 @@ func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *requestreturn}+// PutBucketLogging API operation for Amazon Simple Storage Service.+//// Set the logging parameters for a bucket and to specify permissions for who// can view and modify the logging parameters. To set the logging status of// a bucket, you must be the bucket owner.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketLogging for usage and error information.func (c *S3) PutBucketLogging(input *PutBucketLoggingInput) (*PutBucketLoggingOutput, error) {req, out := c.PutBucketLoggingRequest(input)err := req.Send()@@ -1288,7 +2998,30 @@ func (c *S3) PutBucketLogging(input *PutBucketLoggingInput) (*PutBucketLoggingOuconst opPutBucketNotification = "PutBucketNotification"-// PutBucketNotificationRequest generates a request for the PutBucketNotification operation.+// PutBucketNotificationRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketNotification operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketNotification for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketNotification method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketNotificationRequest method.+// req, resp := client.PutBucketNotificationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (req *request.Request, output *PutBucketNotificationOutput) {if c.Client.Config.Logger != nil {c.Client.Config.Logger.Log("This operation, PutBucketNotification, has been deprecated")@@ -1311,7 +3044,16 @@ func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (rereturn}+// PutBucketNotification API operation for Amazon Simple Storage Service.+//// Deprecated, see the PutBucketNotificationConfiguraiton operation.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketNotification for usage and error information.func (c *S3) PutBucketNotification(input *PutBucketNotificationInput) (*PutBucketNotificationOutput, error) {req, out := c.PutBucketNotificationRequest(input)err := req.Send()@@ -1320,7 +3062,30 @@ func (c *S3) PutBucketNotification(input *PutBucketNotificationInput) (*PutBuckeconst opPutBucketNotificationConfiguration = "PutBucketNotificationConfiguration"-// PutBucketNotificationConfigurationRequest generates a request for the PutBucketNotificationConfiguration operation.+// PutBucketNotificationConfigurationRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketNotificationConfiguration operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketNotificationConfiguration for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketNotificationConfiguration method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketNotificationConfigurationRequest method.+// req, resp := client.PutBucketNotificationConfigurationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificationConfigurationInput) (req *request.Request, output *PutBucketNotificationConfigurationOutput) {op := &request.Operation{Name: opPutBucketNotificationConfiguration,@@ -1340,7 +3105,16 @@ func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificatreturn}+// PutBucketNotificationConfiguration API operation for Amazon Simple Storage Service.+//// Enables notifications of specified events for a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketNotificationConfiguration for usage and error information.func (c *S3) PutBucketNotificationConfiguration(input *PutBucketNotificationConfigurationInput) (*PutBucketNotificationConfigurationOutput, error) {req, out := c.PutBucketNotificationConfigurationRequest(input)err := req.Send()@@ -1349,7 +3123,30 @@ func (c *S3) PutBucketNotificationConfiguration(input *PutBucketNotificationConfconst opPutBucketPolicy = "PutBucketPolicy"-// PutBucketPolicyRequest generates a request for the PutBucketPolicy operation.+// PutBucketPolicyRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketPolicy operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketPolicy for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketPolicy method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketPolicyRequest method.+// req, resp := client.PutBucketPolicyRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.Request, output *PutBucketPolicyOutput) {op := &request.Operation{Name: opPutBucketPolicy,@@ -1369,8 +3166,17 @@ func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.Rreturn}+// PutBucketPolicy API operation for Amazon Simple Storage Service.+//// Replaces a policy on a bucket. If the bucket already has a policy, the one// in this request completely replaces it.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketPolicy for usage and error information.func (c *S3) PutBucketPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error) {req, out := c.PutBucketPolicyRequest(input)err := req.Send()@@ -1379,7 +3185,30 @@ func (c *S3) PutBucketPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutpuconst opPutBucketReplication = "PutBucketReplication"-// PutBucketReplicationRequest generates a request for the PutBucketReplication operation.+// PutBucketReplicationRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketReplication operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketReplication for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketReplication method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketReplicationRequest method.+// req, resp := client.PutBucketReplicationRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req *request.Request, output *PutBucketReplicationOutput) {op := &request.Operation{Name: opPutBucketReplication,@@ -1399,8 +3228,17 @@ func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (reqreturn}+// PutBucketReplication API operation for Amazon Simple Storage Service.+//// Creates a new replication configuration (or replaces an existing one, if// present).+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketReplication for usage and error information.func (c *S3) PutBucketReplication(input *PutBucketReplicationInput) (*PutBucketReplicationOutput, error) {req, out := c.PutBucketReplicationRequest(input)err := req.Send()@@ -1409,7 +3247,30 @@ func (c *S3) PutBucketReplication(input *PutBucketReplicationInput) (*PutBucketRconst opPutBucketRequestPayment = "PutBucketRequestPayment"-// PutBucketRequestPaymentRequest generates a request for the PutBucketRequestPayment operation.+// PutBucketRequestPaymentRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketRequestPayment operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketRequestPayment for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketRequestPayment method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketRequestPaymentRequest method.+// req, resp := client.PutBucketRequestPaymentRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput) (req *request.Request, output *PutBucketRequestPaymentOutput) {op := &request.Operation{Name: opPutBucketRequestPayment,@@ -1429,11 +3290,20 @@ func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput)return}+// PutBucketRequestPayment API operation for Amazon Simple Storage Service.+//// Sets the request payment configuration for a bucket. By default, the bucket// owner pays for downloads from the bucket. This configuration parameter enables// the bucket owner (only) to specify that the person requesting the download// will be charged for the download. Documentation on requester pays buckets// can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketRequestPayment for usage and error information.func (c *S3) PutBucketRequestPayment(input *PutBucketRequestPaymentInput) (*PutBucketRequestPaymentOutput, error) {req, out := c.PutBucketRequestPaymentRequest(input)err := req.Send()@@ -1442,7 +3312,30 @@ func (c *S3) PutBucketRequestPayment(input *PutBucketRequestPaymentInput) (*PutBconst opPutBucketTagging = "PutBucketTagging"-// PutBucketTaggingRequest generates a request for the PutBucketTagging operation.+// PutBucketTaggingRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketTagging operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketTagging for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketTagging method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketTaggingRequest method.+// req, resp := client.PutBucketTaggingRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request.Request, output *PutBucketTaggingOutput) {op := &request.Operation{Name: opPutBucketTagging,@@ -1462,7 +3355,16 @@ func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *requestreturn}+// PutBucketTagging API operation for Amazon Simple Storage Service.+//// Sets the tags for a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketTagging for usage and error information.func (c *S3) PutBucketTagging(input *PutBucketTaggingInput) (*PutBucketTaggingOutput, error) {req, out := c.PutBucketTaggingRequest(input)err := req.Send()@@ -1471,7 +3373,30 @@ func (c *S3) PutBucketTagging(input *PutBucketTaggingInput) (*PutBucketTaggingOuconst opPutBucketVersioning = "PutBucketVersioning"-// PutBucketVersioningRequest generates a request for the PutBucketVersioning operation.+// PutBucketVersioningRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketVersioning operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketVersioning for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketVersioning method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketVersioningRequest method.+// req, resp := client.PutBucketVersioningRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *request.Request, output *PutBucketVersioningOutput) {op := &request.Operation{Name: opPutBucketVersioning,@@ -1491,8 +3416,17 @@ func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *rreturn}+// PutBucketVersioning API operation for Amazon Simple Storage Service.+//// Sets the versioning state of an existing bucket. To set the versioning state,// you must be the bucket owner.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketVersioning for usage and error information.func (c *S3) PutBucketVersioning(input *PutBucketVersioningInput) (*PutBucketVersioningOutput, error) {req, out := c.PutBucketVersioningRequest(input)err := req.Send()@@ -1501,7 +3435,30 @@ func (c *S3) PutBucketVersioning(input *PutBucketVersioningInput) (*PutBucketVerconst opPutBucketWebsite = "PutBucketWebsite"-// PutBucketWebsiteRequest generates a request for the PutBucketWebsite operation.+// PutBucketWebsiteRequest generates a "aws/request.Request" representing the+// client's request for the PutBucketWebsite operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutBucketWebsite for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutBucketWebsite method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutBucketWebsiteRequest method.+// req, resp := client.PutBucketWebsiteRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request.Request, output *PutBucketWebsiteOutput) {op := &request.Operation{Name: opPutBucketWebsite,@@ -1521,7 +3478,16 @@ func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *requestreturn}+// PutBucketWebsite API operation for Amazon Simple Storage Service.+//// Set the website configuration for a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutBucketWebsite for usage and error information.func (c *S3) PutBucketWebsite(input *PutBucketWebsiteInput) (*PutBucketWebsiteOutput, error) {req, out := c.PutBucketWebsiteRequest(input)err := req.Send()@@ -1530,7 +3496,30 @@ func (c *S3) PutBucketWebsite(input *PutBucketWebsiteInput) (*PutBucketWebsiteOuconst opPutObject = "PutObject"-// PutObjectRequest generates a request for the PutObject operation.+// PutObjectRequest generates a "aws/request.Request" representing the+// client's request for the PutObject operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutObject for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutObject method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutObjectRequest method.+// req, resp := client.PutObjectRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutObjectRequest(input *PutObjectInput) (req *request.Request, output *PutObjectOutput) {op := &request.Operation{Name: opPutObject,@@ -1548,7 +3537,16 @@ func (c *S3) PutObjectRequest(input *PutObjectInput) (req *request.Request, outpreturn}+// PutObject API operation for Amazon Simple Storage Service.+//// Adds an object to a bucket.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutObject for usage and error information.func (c *S3) PutObject(input *PutObjectInput) (*PutObjectOutput, error) {req, out := c.PutObjectRequest(input)err := req.Send()@@ -1557,7 +3555,30 @@ func (c *S3) PutObject(input *PutObjectInput) (*PutObjectOutput, error) {const opPutObjectAcl = "PutObjectAcl"-// PutObjectAclRequest generates a request for the PutObjectAcl operation.+// PutObjectAclRequest generates a "aws/request.Request" representing the+// client's request for the PutObjectAcl operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See PutObjectAcl for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the PutObjectAcl method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the PutObjectAclRequest method.+// req, resp := client.PutObjectAclRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Request, output *PutObjectAclOutput) {op := &request.Operation{Name: opPutObjectAcl,@@ -1575,8 +3596,22 @@ func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Requestreturn}+// PutObjectAcl API operation for Amazon Simple Storage Service.+//// uses the acl subresource to set the access control list (ACL) permissions// for an object that already exists in a bucket+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation PutObjectAcl for usage and error information.+//+// Returned Error Codes:+// * NoSuchKey+// The specified key does not exist.+//func (c *S3) PutObjectAcl(input *PutObjectAclInput) (*PutObjectAclOutput, error) {req, out := c.PutObjectAclRequest(input)err := req.Send()@@ -1585,7 +3620,30 @@ func (c *S3) PutObjectAcl(input *PutObjectAclInput) (*PutObjectAclOutput, error)const opRestoreObject = "RestoreObject"-// RestoreObjectRequest generates a request for the RestoreObject operation.+// RestoreObjectRequest generates a "aws/request.Request" representing the+// client's request for the RestoreObject operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See RestoreObject for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the RestoreObject method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the RestoreObjectRequest method.+// req, resp := client.RestoreObjectRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Request, output *RestoreObjectOutput) {op := &request.Operation{Name: opRestoreObject,@@ -1603,7 +3661,21 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Requereturn}+// RestoreObject API operation for Amazon Simple Storage Service.+//// Restores an archived copy of an object back into Amazon S3+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation RestoreObject for usage and error information.+//+// Returned Error Codes:+// * ObjectAlreadyInActiveTierError+// This operation is not allowed against this storage tier+//func (c *S3) RestoreObject(input *RestoreObjectInput) (*RestoreObjectOutput, error) {req, out := c.RestoreObjectRequest(input)err := req.Send()@@ -1612,7 +3684,30 @@ func (c *S3) RestoreObject(input *RestoreObjectInput) (*RestoreObjectOutput, errconst opUploadPart = "UploadPart"-// UploadPartRequest generates a request for the UploadPart operation.+// UploadPartRequest generates a "aws/request.Request" representing the+// client's request for the UploadPart operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See UploadPart for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the UploadPart method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the UploadPartRequest method.+// req, resp := client.UploadPartRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, output *UploadPartOutput) {op := &request.Operation{Name: opUploadPart,@@ -1630,6 +3725,8 @@ func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, oureturn}+// UploadPart API operation for Amazon Simple Storage Service.+//// Uploads a part in a multipart upload.//// Note: After you initiate multipart upload and upload one or more parts, you@@ -1637,6 +3734,13 @@ func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, ou// for storage of the uploaded parts. Only after you either complete or abort// multipart upload, Amazon S3 frees up the parts storage and stops charging// you for the parts storage.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation UploadPart for usage and error information.func (c *S3) UploadPart(input *UploadPartInput) (*UploadPartOutput, error) {req, out := c.UploadPartRequest(input)err := req.Send()@@ -1645,7 +3749,30 @@ func (c *S3) UploadPart(input *UploadPartInput) (*UploadPartOutput, error) {const opUploadPartCopy = "UploadPartCopy"-// UploadPartCopyRequest generates a request for the UploadPartCopy operation.+// UploadPartCopyRequest generates a "aws/request.Request" representing the+// client's request for the UploadPartCopy operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See UploadPartCopy for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the UploadPartCopy method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the UploadPartCopyRequest method.+// req, resp := client.UploadPartCopyRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//func (c *S3) UploadPartCopyRequest(input *UploadPartCopyInput) (req *request.Request, output *UploadPartCopyOutput) {op := &request.Operation{Name: opUploadPartCopy,@@ -1663,18 +3790,55 @@ func (c *S3) UploadPartCopyRequest(input *UploadPartCopyInput) (req *request.Reqreturn}+// UploadPartCopy API operation for Amazon Simple Storage Service.+//// Uploads a part by copying data from an existing object as data source.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for Amazon Simple Storage Service's+// API operation UploadPartCopy for usage and error information.func (c *S3) UploadPartCopy(input *UploadPartCopyInput) (*UploadPartCopyOutput, error) {req, out := c.UploadPartCopyRequest(input)err := req.Send()return out, err}+// Specifies the days since the initiation of an Incomplete Multipart Upload+// that Lifecycle will wait before permanently removing all parts of the upload.+type AbortIncompleteMultipartUpload struct {+ _ struct{} `type:"structure"`++ // Indicates the number of days that must pass since initiation for Lifecycle+ // to abort an Incomplete Multipart Upload.+ DaysAfterInitiation *int64 `type:"integer"`+}++// String returns the string representation+func (s AbortIncompleteMultipartUpload) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s AbortIncompleteMultipartUpload) GoString() string {+ return s.String()+}++// SetDaysAfterInitiation sets the DaysAfterInitiation field's value.+func (s *AbortIncompleteMultipartUpload) SetDaysAfterInitiation(v int64) *AbortIncompleteMultipartUpload {+ s.DaysAfterInitiation = &v+ return s+}+type AbortMultipartUploadInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// Confirms that the requester knows that she or he will be charged for the@@ -1683,6 +3847,7 @@ type AbortMultipartUploadInput struct {// at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.htmlRequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`+ // UploadId is a required fieldUploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`}@@ -1696,6 +3861,52 @@ func (s AbortMultipartUploadInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *AbortMultipartUploadInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "AbortMultipartUploadInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }+ if s.UploadId == nil {+ invalidParams.Add(request.NewErrParamRequired("UploadId"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *AbortMultipartUploadInput) SetBucket(v string) *AbortMultipartUploadInput {+ s.Bucket = &v+ return s+}++// SetKey sets the Key field's value.+func (s *AbortMultipartUploadInput) SetKey(v string) *AbortMultipartUploadInput {+ s.Key = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *AbortMultipartUploadInput) SetRequestPayer(v string) *AbortMultipartUploadInput {+ s.RequestPayer = &v+ return s+}++// SetUploadId sets the UploadId field's value.+func (s *AbortMultipartUploadInput) SetUploadId(v string) *AbortMultipartUploadInput {+ s.UploadId = &v+ return s+}+type AbortMultipartUploadOutput struct {_ struct{} `type:"structure"`@@ -1714,6 +3925,35 @@ func (s AbortMultipartUploadOutput) GoString() string {return s.String()}+// SetRequestCharged sets the RequestCharged field's value.+func (s *AbortMultipartUploadOutput) SetRequestCharged(v string) *AbortMultipartUploadOutput {+ s.RequestCharged = &v+ return s+}++type AccelerateConfiguration struct {+ _ struct{} `type:"structure"`++ // The accelerate configuration of the bucket.+ Status *string `type:"string" enum:"BucketAccelerateStatus"`+}++// String returns the string representation+func (s AccelerateConfiguration) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s AccelerateConfiguration) GoString() string {+ return s.String()+}++// SetStatus sets the Status field's value.+func (s *AccelerateConfiguration) SetStatus(v string) *AccelerateConfiguration {+ s.Status = &v+ return s+}+type AccessControlPolicy struct {_ struct{} `type:"structure"`@@ -1733,6 +3973,38 @@ func (s AccessControlPolicy) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *AccessControlPolicy) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "AccessControlPolicy"}+ if s.Grants != nil {+ for i, v := range s.Grants {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Grants", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetGrants sets the Grants field's value.+func (s *AccessControlPolicy) SetGrants(v []*Grant) *AccessControlPolicy {+ s.Grants = v+ return s+}++// SetOwner sets the Owner field's value.+func (s *AccessControlPolicy) SetOwner(v *Owner) *AccessControlPolicy {+ s.Owner = v+ return s+}+type Bucket struct {_ struct{} `type:"structure"`@@ -1753,9 +4025,22 @@ func (s Bucket) GoString() string {return s.String()}+// SetCreationDate sets the CreationDate field's value.+func (s *Bucket) SetCreationDate(v time.Time) *Bucket {+ s.CreationDate = &v+ return s+}++// SetName sets the Name field's value.+func (s *Bucket) SetName(v string) *Bucket {+ s.Name = &v+ return s+}+type BucketLifecycleConfiguration struct {_ struct{} `type:"structure"`+ // Rules is a required fieldRules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true" required:"true"`}@@ -1769,6 +4054,35 @@ func (s BucketLifecycleConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *BucketLifecycleConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "BucketLifecycleConfiguration"}+ if s.Rules == nil {+ invalidParams.Add(request.NewErrParamRequired("Rules"))+ }+ if s.Rules != nil {+ for i, v := range s.Rules {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetRules sets the Rules field's value.+func (s *BucketLifecycleConfiguration) SetRules(v []*LifecycleRule) *BucketLifecycleConfiguration {+ s.Rules = v+ return s+}+type BucketLoggingStatus struct {_ struct{} `type:"structure"`@@ -1785,9 +4099,31 @@ func (s BucketLoggingStatus) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *BucketLoggingStatus) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "BucketLoggingStatus"}+ if s.LoggingEnabled != nil {+ if err := s.LoggingEnabled.Validate(); err != nil {+ invalidParams.AddNested("LoggingEnabled", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetLoggingEnabled sets the LoggingEnabled field's value.+func (s *BucketLoggingStatus) SetLoggingEnabled(v *LoggingEnabled) *BucketLoggingStatus {+ s.LoggingEnabled = v+ return s+}+type CORSConfiguration struct {_ struct{} `type:"structure"`+ // CORSRules is a required fieldCORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true" required:"true"`}@@ -1801,6 +4137,35 @@ func (s CORSConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *CORSConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "CORSConfiguration"}+ if s.CORSRules == nil {+ invalidParams.Add(request.NewErrParamRequired("CORSRules"))+ }+ if s.CORSRules != nil {+ for i, v := range s.CORSRules {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CORSRules", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetCORSRules sets the CORSRules field's value.+func (s *CORSConfiguration) SetCORSRules(v []*CORSRule) *CORSConfiguration {+ s.CORSRules = v+ return s+}+type CORSRule struct {_ struct{} `type:"structure"`@@ -1809,9 +4174,13 @@ type CORSRule struct {// Identifies HTTP methods that the domain/origin specified in the rule is allowed// to execute.+ //+ // AllowedMethods is a required fieldAllowedMethods []*string `locationName:"AllowedMethod" type:"list" flattened:"true" required:"true"`// One or more origins you want customers to be able to access the bucket from.+ //+ // AllowedOrigins is a required fieldAllowedOrigins []*string `locationName:"AllowedOrigin" type:"list" flattened:"true" required:"true"`// One or more headers in the response that you want customers to be able to@@ -1834,6 +4203,52 @@ func (s CORSRule) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *CORSRule) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "CORSRule"}+ if s.AllowedMethods == nil {+ invalidParams.Add(request.NewErrParamRequired("AllowedMethods"))+ }+ if s.AllowedOrigins == nil {+ invalidParams.Add(request.NewErrParamRequired("AllowedOrigins"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetAllowedHeaders sets the AllowedHeaders field's value.+func (s *CORSRule) SetAllowedHeaders(v []*string) *CORSRule {+ s.AllowedHeaders = v+ return s+}++// SetAllowedMethods sets the AllowedMethods field's value.+func (s *CORSRule) SetAllowedMethods(v []*string) *CORSRule {+ s.AllowedMethods = v+ return s+}++// SetAllowedOrigins sets the AllowedOrigins field's value.+func (s *CORSRule) SetAllowedOrigins(v []*string) *CORSRule {+ s.AllowedOrigins = v+ return s+}++// SetExposeHeaders sets the ExposeHeaders field's value.+func (s *CORSRule) SetExposeHeaders(v []*string) *CORSRule {+ s.ExposeHeaders = v+ return s+}++// SetMaxAgeSeconds sets the MaxAgeSeconds field's value.+func (s *CORSRule) SetMaxAgeSeconds(v int64) *CORSRule {+ s.MaxAgeSeconds = &v+ return s+}+type CloudFunctionConfiguration struct {_ struct{} `type:"structure"`@@ -1861,6 +4276,36 @@ func (s CloudFunctionConfiguration) GoString() string {return s.String()}+// SetCloudFunction sets the CloudFunction field's value.+func (s *CloudFunctionConfiguration) SetCloudFunction(v string) *CloudFunctionConfiguration {+ s.CloudFunction = &v+ return s+}++// SetEvent sets the Event field's value.+func (s *CloudFunctionConfiguration) SetEvent(v string) *CloudFunctionConfiguration {+ s.Event = &v+ return s+}++// SetEvents sets the Events field's value.+func (s *CloudFunctionConfiguration) SetEvents(v []*string) *CloudFunctionConfiguration {+ s.Events = v+ return s+}++// SetId sets the Id field's value.+func (s *CloudFunctionConfiguration) SetId(v string) *CloudFunctionConfiguration {+ s.Id = &v+ return s+}++// SetInvocationRole sets the InvocationRole field's value.+func (s *CloudFunctionConfiguration) SetInvocationRole(v string) *CloudFunctionConfiguration {+ s.InvocationRole = &v+ return s+}+type CommonPrefix struct {_ struct{} `type:"structure"`@@ -1877,11 +4322,19 @@ func (s CommonPrefix) GoString() string {return s.String()}+// SetPrefix sets the Prefix field's value.+func (s *CommonPrefix) SetPrefix(v string) *CommonPrefix {+ s.Prefix = &v+ return s+}+type CompleteMultipartUploadInput struct {_ struct{} `type:"structure" payload:"MultipartUpload"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`MultipartUpload *CompletedMultipartUpload `locationName:"CompleteMultipartUpload" type:"structure"`@@ -1892,6 +4345,7 @@ type CompleteMultipartUploadInput struct {// at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.htmlRequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`+ // UploadId is a required fieldUploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`}@@ -1905,13 +4359,65 @@ func (s CompleteMultipartUploadInput) GoString() string {return s.String()}-type CompleteMultipartUploadOutput struct {- _ struct{} `type:"structure"`+// Validate inspects the fields of the type to determine if they are valid.+func (s *CompleteMultipartUploadInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "CompleteMultipartUploadInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }+ if s.UploadId == nil {+ invalidParams.Add(request.NewErrParamRequired("UploadId"))+ }- Bucket *string `type:"string"`+ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}- // Entity tag of the object.- ETag *string `type:"string"`+// SetBucket sets the Bucket field's value.+func (s *CompleteMultipartUploadInput) SetBucket(v string) *CompleteMultipartUploadInput {+ s.Bucket = &v+ return s+}++// SetKey sets the Key field's value.+func (s *CompleteMultipartUploadInput) SetKey(v string) *CompleteMultipartUploadInput {+ s.Key = &v+ return s+}++// SetMultipartUpload sets the MultipartUpload field's value.+func (s *CompleteMultipartUploadInput) SetMultipartUpload(v *CompletedMultipartUpload) *CompleteMultipartUploadInput {+ s.MultipartUpload = v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *CompleteMultipartUploadInput) SetRequestPayer(v string) *CompleteMultipartUploadInput {+ s.RequestPayer = &v+ return s+}++// SetUploadId sets the UploadId field's value.+func (s *CompleteMultipartUploadInput) SetUploadId(v string) *CompleteMultipartUploadInput {+ s.UploadId = &v+ return s+}++type CompleteMultipartUploadOutput struct {+ _ struct{} `type:"structure"`++ Bucket *string `type:"string"`++ // Entity tag of the object.+ ETag *string `type:"string"`// If the object expiration is configured, this will contain the expiration// date (expiry-date) and rule ID (rule-id). The value of rule-id is URL encoded.@@ -1947,6 +4453,60 @@ func (s CompleteMultipartUploadOutput) GoString() string {return s.String()}+// SetBucket sets the Bucket field's value.+func (s *CompleteMultipartUploadOutput) SetBucket(v string) *CompleteMultipartUploadOutput {+ s.Bucket = &v+ return s+}++// SetETag sets the ETag field's value.+func (s *CompleteMultipartUploadOutput) SetETag(v string) *CompleteMultipartUploadOutput {+ s.ETag = &v+ return s+}++// SetExpiration sets the Expiration field's value.+func (s *CompleteMultipartUploadOutput) SetExpiration(v string) *CompleteMultipartUploadOutput {+ s.Expiration = &v+ return s+}++// SetKey sets the Key field's value.+func (s *CompleteMultipartUploadOutput) SetKey(v string) *CompleteMultipartUploadOutput {+ s.Key = &v+ return s+}++// SetLocation sets the Location field's value.+func (s *CompleteMultipartUploadOutput) SetLocation(v string) *CompleteMultipartUploadOutput {+ s.Location = &v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *CompleteMultipartUploadOutput) SetRequestCharged(v string) *CompleteMultipartUploadOutput {+ s.RequestCharged = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *CompleteMultipartUploadOutput) SetSSEKMSKeyId(v string) *CompleteMultipartUploadOutput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *CompleteMultipartUploadOutput) SetServerSideEncryption(v string) *CompleteMultipartUploadOutput {+ s.ServerSideEncryption = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *CompleteMultipartUploadOutput) SetVersionId(v string) *CompleteMultipartUploadOutput {+ s.VersionId = &v+ return s+}+type CompletedMultipartUpload struct {_ struct{} `type:"structure"`@@ -1963,6 +4523,12 @@ func (s CompletedMultipartUpload) GoString() string {return s.String()}+// SetParts sets the Parts field's value.+func (s *CompletedMultipartUpload) SetParts(v []*CompletedPart) *CompletedMultipartUpload {+ s.Parts = v+ return s+}+type CompletedPart struct {_ struct{} `type:"structure"`@@ -1984,6 +4550,18 @@ func (s CompletedPart) GoString() string {return s.String()}+// SetETag sets the ETag field's value.+func (s *CompletedPart) SetETag(v string) *CompletedPart {+ s.ETag = &v+ return s+}++// SetPartNumber sets the PartNumber field's value.+func (s *CompletedPart) SetPartNumber(v int64) *CompletedPart {+ s.PartNumber = &v+ return s+}+type Condition struct {_ struct{} `type:"structure"`@@ -2014,12 +4592,25 @@ func (s Condition) GoString() string {return s.String()}+// SetHttpErrorCodeReturnedEquals sets the HttpErrorCodeReturnedEquals field's value.+func (s *Condition) SetHttpErrorCodeReturnedEquals(v string) *Condition {+ s.HttpErrorCodeReturnedEquals = &v+ return s+}++// SetKeyPrefixEquals sets the KeyPrefixEquals field's value.+func (s *Condition) SetKeyPrefixEquals(v string) *Condition {+ s.KeyPrefixEquals = &v+ return s+}+type CopyObjectInput struct {_ struct{} `type:"structure"`// The canned ACL to apply to the object.ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Specifies caching behavior along the request/reply chain.@@ -2041,6 +4632,8 @@ type CopyObjectInput struct {// The name of the source bucket and key name of the source object, separated// by a slash (/). Must be URL-encoded.+ //+ // CopySource is a required fieldCopySource *string `location:"header" locationName:"x-amz-copy-source" type:"string" required:"true"`// Copies the object if its entity tag (ETag) matches the specified tag.@@ -2084,6 +4677,7 @@ type CopyObjectInput struct {// Allows grantee to write the ACL for the applicable object.GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// A map of metadata to store with the object in S3.@@ -2143,6 +4737,214 @@ func (s CopyObjectInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *CopyObjectInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "CopyObjectInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.CopySource == nil {+ invalidParams.Add(request.NewErrParamRequired("CopySource"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetACL sets the ACL field's value.+func (s *CopyObjectInput) SetACL(v string) *CopyObjectInput {+ s.ACL = &v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *CopyObjectInput) SetBucket(v string) *CopyObjectInput {+ s.Bucket = &v+ return s+}++// SetCacheControl sets the CacheControl field's value.+func (s *CopyObjectInput) SetCacheControl(v string) *CopyObjectInput {+ s.CacheControl = &v+ return s+}++// SetContentDisposition sets the ContentDisposition field's value.+func (s *CopyObjectInput) SetContentDisposition(v string) *CopyObjectInput {+ s.ContentDisposition = &v+ return s+}++// SetContentEncoding sets the ContentEncoding field's value.+func (s *CopyObjectInput) SetContentEncoding(v string) *CopyObjectInput {+ s.ContentEncoding = &v+ return s+}++// SetContentLanguage sets the ContentLanguage field's value.+func (s *CopyObjectInput) SetContentLanguage(v string) *CopyObjectInput {+ s.ContentLanguage = &v+ return s+}++// SetContentType sets the ContentType field's value.+func (s *CopyObjectInput) SetContentType(v string) *CopyObjectInput {+ s.ContentType = &v+ return s+}++// SetCopySource sets the CopySource field's value.+func (s *CopyObjectInput) SetCopySource(v string) *CopyObjectInput {+ s.CopySource = &v+ return s+}++// SetCopySourceIfMatch sets the CopySourceIfMatch field's value.+func (s *CopyObjectInput) SetCopySourceIfMatch(v string) *CopyObjectInput {+ s.CopySourceIfMatch = &v+ return s+}++// SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value.+func (s *CopyObjectInput) SetCopySourceIfModifiedSince(v time.Time) *CopyObjectInput {+ s.CopySourceIfModifiedSince = &v+ return s+}++// SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value.+func (s *CopyObjectInput) SetCopySourceIfNoneMatch(v string) *CopyObjectInput {+ s.CopySourceIfNoneMatch = &v+ return s+}++// SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value.+func (s *CopyObjectInput) SetCopySourceIfUnmodifiedSince(v time.Time) *CopyObjectInput {+ s.CopySourceIfUnmodifiedSince = &v+ return s+}++// SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value.+func (s *CopyObjectInput) SetCopySourceSSECustomerAlgorithm(v string) *CopyObjectInput {+ s.CopySourceSSECustomerAlgorithm = &v+ return s+}++// SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value.+func (s *CopyObjectInput) SetCopySourceSSECustomerKey(v string) *CopyObjectInput {+ s.CopySourceSSECustomerKey = &v+ return s+}++// SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value.+func (s *CopyObjectInput) SetCopySourceSSECustomerKeyMD5(v string) *CopyObjectInput {+ s.CopySourceSSECustomerKeyMD5 = &v+ return s+}++// SetExpires sets the Expires field's value.+func (s *CopyObjectInput) SetExpires(v time.Time) *CopyObjectInput {+ s.Expires = &v+ return s+}++// SetGrantFullControl sets the GrantFullControl field's value.+func (s *CopyObjectInput) SetGrantFullControl(v string) *CopyObjectInput {+ s.GrantFullControl = &v+ return s+}++// SetGrantRead sets the GrantRead field's value.+func (s *CopyObjectInput) SetGrantRead(v string) *CopyObjectInput {+ s.GrantRead = &v+ return s+}++// SetGrantReadACP sets the GrantReadACP field's value.+func (s *CopyObjectInput) SetGrantReadACP(v string) *CopyObjectInput {+ s.GrantReadACP = &v+ return s+}++// SetGrantWriteACP sets the GrantWriteACP field's value.+func (s *CopyObjectInput) SetGrantWriteACP(v string) *CopyObjectInput {+ s.GrantWriteACP = &v+ return s+}++// SetKey sets the Key field's value.+func (s *CopyObjectInput) SetKey(v string) *CopyObjectInput {+ s.Key = &v+ return s+}++// SetMetadata sets the Metadata field's value.+func (s *CopyObjectInput) SetMetadata(v map[string]*string) *CopyObjectInput {+ s.Metadata = v+ return s+}++// SetMetadataDirective sets the MetadataDirective field's value.+func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput {+ s.MetadataDirective = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput {+ s.RequestPayer = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *CopyObjectInput) SetSSECustomerAlgorithm(v string) *CopyObjectInput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKey sets the SSECustomerKey field's value.+func (s *CopyObjectInput) SetSSECustomerKey(v string) *CopyObjectInput {+ s.SSECustomerKey = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *CopyObjectInput) SetSSECustomerKeyMD5(v string) *CopyObjectInput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *CopyObjectInput) SetSSEKMSKeyId(v string) *CopyObjectInput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *CopyObjectInput) SetServerSideEncryption(v string) *CopyObjectInput {+ s.ServerSideEncryption = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *CopyObjectInput) SetStorageClass(v string) *CopyObjectInput {+ s.StorageClass = &v+ return s+}++// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.+func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput {+ s.WebsiteRedirectLocation = &v+ return s+}+type CopyObjectOutput struct {_ struct{} `type:"structure" payload:"CopyObjectResult"`@@ -2189,6 +4991,60 @@ func (s CopyObjectOutput) GoString() string {return s.String()}+// SetCopyObjectResult sets the CopyObjectResult field's value.+func (s *CopyObjectOutput) SetCopyObjectResult(v *CopyObjectResult) *CopyObjectOutput {+ s.CopyObjectResult = v+ return s+}++// SetCopySourceVersionId sets the CopySourceVersionId field's value.+func (s *CopyObjectOutput) SetCopySourceVersionId(v string) *CopyObjectOutput {+ s.CopySourceVersionId = &v+ return s+}++// SetExpiration sets the Expiration field's value.+func (s *CopyObjectOutput) SetExpiration(v string) *CopyObjectOutput {+ s.Expiration = &v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *CopyObjectOutput) SetRequestCharged(v string) *CopyObjectOutput {+ s.RequestCharged = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *CopyObjectOutput) SetSSECustomerAlgorithm(v string) *CopyObjectOutput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *CopyObjectOutput) SetSSECustomerKeyMD5(v string) *CopyObjectOutput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *CopyObjectOutput) SetSSEKMSKeyId(v string) *CopyObjectOutput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *CopyObjectOutput) SetServerSideEncryption(v string) *CopyObjectOutput {+ s.ServerSideEncryption = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *CopyObjectOutput) SetVersionId(v string) *CopyObjectOutput {+ s.VersionId = &v+ return s+}+type CopyObjectResult struct {_ struct{} `type:"structure"`@@ -2207,6 +5063,18 @@ func (s CopyObjectResult) GoString() string {return s.String()}+// SetETag sets the ETag field's value.+func (s *CopyObjectResult) SetETag(v string) *CopyObjectResult {+ s.ETag = &v+ return s+}++// SetLastModified sets the LastModified field's value.+func (s *CopyObjectResult) SetLastModified(v time.Time) *CopyObjectResult {+ s.LastModified = &v+ return s+}+type CopyPartResult struct {_ struct{} `type:"structure"`@@ -2227,6 +5095,18 @@ func (s CopyPartResult) GoString() string {return s.String()}+// SetETag sets the ETag field's value.+func (s *CopyPartResult) SetETag(v string) *CopyPartResult {+ s.ETag = &v+ return s+}++// SetLastModified sets the LastModified field's value.+func (s *CopyPartResult) SetLastModified(v time.Time) *CopyPartResult {+ s.LastModified = &v+ return s+}+type CreateBucketConfiguration struct {_ struct{} `type:"structure"`@@ -2245,12 +5125,19 @@ func (s CreateBucketConfiguration) GoString() string {return s.String()}+// SetLocationConstraint sets the LocationConstraint field's value.+func (s *CreateBucketConfiguration) SetLocationConstraint(v string) *CreateBucketConfiguration {+ s.LocationConstraint = &v+ return s+}+type CreateBucketInput struct {_ struct{} `type:"structure" payload:"CreateBucketConfiguration"`// The canned ACL to apply to the bucket.ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`CreateBucketConfiguration *CreateBucketConfiguration `locationName:"CreateBucketConfiguration" type:"structure"`@@ -2282,6 +5169,67 @@ func (s CreateBucketInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *CreateBucketInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "CreateBucketInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetACL sets the ACL field's value.+func (s *CreateBucketInput) SetACL(v string) *CreateBucketInput {+ s.ACL = &v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *CreateBucketInput) SetBucket(v string) *CreateBucketInput {+ s.Bucket = &v+ return s+}++// SetCreateBucketConfiguration sets the CreateBucketConfiguration field's value.+func (s *CreateBucketInput) SetCreateBucketConfiguration(v *CreateBucketConfiguration) *CreateBucketInput {+ s.CreateBucketConfiguration = v+ return s+}++// SetGrantFullControl sets the GrantFullControl field's value.+func (s *CreateBucketInput) SetGrantFullControl(v string) *CreateBucketInput {+ s.GrantFullControl = &v+ return s+}++// SetGrantRead sets the GrantRead field's value.+func (s *CreateBucketInput) SetGrantRead(v string) *CreateBucketInput {+ s.GrantRead = &v+ return s+}++// SetGrantReadACP sets the GrantReadACP field's value.+func (s *CreateBucketInput) SetGrantReadACP(v string) *CreateBucketInput {+ s.GrantReadACP = &v+ return s+}++// SetGrantWrite sets the GrantWrite field's value.+func (s *CreateBucketInput) SetGrantWrite(v string) *CreateBucketInput {+ s.GrantWrite = &v+ return s+}++// SetGrantWriteACP sets the GrantWriteACP field's value.+func (s *CreateBucketInput) SetGrantWriteACP(v string) *CreateBucketInput {+ s.GrantWriteACP = &v+ return s+}+type CreateBucketOutput struct {_ struct{} `type:"structure"`@@ -2298,12 +5246,19 @@ func (s CreateBucketOutput) GoString() string {return s.String()}+// SetLocation sets the Location field's value.+func (s *CreateBucketOutput) SetLocation(v string) *CreateBucketOutput {+ s.Location = &v+ return s+}+type CreateMultipartUploadInput struct {_ struct{} `type:"structure"`// The canned ACL to apply to the object.ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Specifies caching behavior along the request/reply chain.@@ -2338,6 +5293,7 @@ type CreateMultipartUploadInput struct {// Allows grantee to write the ACL for the applicable object.GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// A map of metadata to store with the object in S3.@@ -2393,9 +5349,167 @@ func (s CreateMultipartUploadInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *CreateMultipartUploadInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "CreateMultipartUploadInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetACL sets the ACL field's value.+func (s *CreateMultipartUploadInput) SetACL(v string) *CreateMultipartUploadInput {+ s.ACL = &v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *CreateMultipartUploadInput) SetBucket(v string) *CreateMultipartUploadInput {+ s.Bucket = &v+ return s+}++// SetCacheControl sets the CacheControl field's value.+func (s *CreateMultipartUploadInput) SetCacheControl(v string) *CreateMultipartUploadInput {+ s.CacheControl = &v+ return s+}++// SetContentDisposition sets the ContentDisposition field's value.+func (s *CreateMultipartUploadInput) SetContentDisposition(v string) *CreateMultipartUploadInput {+ s.ContentDisposition = &v+ return s+}++// SetContentEncoding sets the ContentEncoding field's value.+func (s *CreateMultipartUploadInput) SetContentEncoding(v string) *CreateMultipartUploadInput {+ s.ContentEncoding = &v+ return s+}++// SetContentLanguage sets the ContentLanguage field's value.+func (s *CreateMultipartUploadInput) SetContentLanguage(v string) *CreateMultipartUploadInput {+ s.ContentLanguage = &v+ return s+}++// SetContentType sets the ContentType field's value.+func (s *CreateMultipartUploadInput) SetContentType(v string) *CreateMultipartUploadInput {+ s.ContentType = &v+ return s+}++// SetExpires sets the Expires field's value.+func (s *CreateMultipartUploadInput) SetExpires(v time.Time) *CreateMultipartUploadInput {+ s.Expires = &v+ return s+}++// SetGrantFullControl sets the GrantFullControl field's value.+func (s *CreateMultipartUploadInput) SetGrantFullControl(v string) *CreateMultipartUploadInput {+ s.GrantFullControl = &v+ return s+}++// SetGrantRead sets the GrantRead field's value.+func (s *CreateMultipartUploadInput) SetGrantRead(v string) *CreateMultipartUploadInput {+ s.GrantRead = &v+ return s+}++// SetGrantReadACP sets the GrantReadACP field's value.+func (s *CreateMultipartUploadInput) SetGrantReadACP(v string) *CreateMultipartUploadInput {+ s.GrantReadACP = &v+ return s+}++// SetGrantWriteACP sets the GrantWriteACP field's value.+func (s *CreateMultipartUploadInput) SetGrantWriteACP(v string) *CreateMultipartUploadInput {+ s.GrantWriteACP = &v+ return s+}++// SetKey sets the Key field's value.+func (s *CreateMultipartUploadInput) SetKey(v string) *CreateMultipartUploadInput {+ s.Key = &v+ return s+}++// SetMetadata sets the Metadata field's value.+func (s *CreateMultipartUploadInput) SetMetadata(v map[string]*string) *CreateMultipartUploadInput {+ s.Metadata = v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *CreateMultipartUploadInput) SetRequestPayer(v string) *CreateMultipartUploadInput {+ s.RequestPayer = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *CreateMultipartUploadInput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadInput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKey sets the SSECustomerKey field's value.+func (s *CreateMultipartUploadInput) SetSSECustomerKey(v string) *CreateMultipartUploadInput {+ s.SSECustomerKey = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *CreateMultipartUploadInput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadInput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *CreateMultipartUploadInput) SetSSEKMSKeyId(v string) *CreateMultipartUploadInput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *CreateMultipartUploadInput) SetServerSideEncryption(v string) *CreateMultipartUploadInput {+ s.ServerSideEncryption = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *CreateMultipartUploadInput) SetStorageClass(v string) *CreateMultipartUploadInput {+ s.StorageClass = &v+ return s+}++// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.+func (s *CreateMultipartUploadInput) SetWebsiteRedirectLocation(v string) *CreateMultipartUploadInput {+ s.WebsiteRedirectLocation = &v+ return s+}+type CreateMultipartUploadOutput struct {_ struct{} `type:"structure"`+ // Date when multipart upload will become eligible for abort operation by lifecycle.+ AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp" timestampFormat:"rfc822"`++ // Id of the lifecycle rule that makes a multipart upload eligible for abort+ // operation.+ AbortRuleId *string `location:"header" locationName:"x-amz-abort-rule-id" type:"string"`+// Name of the bucket to which the multipart upload was initiated.Bucket *string `locationName:"Bucket" type:"string"`@@ -2438,9 +5552,70 @@ func (s CreateMultipartUploadOutput) GoString() string {return s.String()}+// SetAbortDate sets the AbortDate field's value.+func (s *CreateMultipartUploadOutput) SetAbortDate(v time.Time) *CreateMultipartUploadOutput {+ s.AbortDate = &v+ return s+}++// SetAbortRuleId sets the AbortRuleId field's value.+func (s *CreateMultipartUploadOutput) SetAbortRuleId(v string) *CreateMultipartUploadOutput {+ s.AbortRuleId = &v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *CreateMultipartUploadOutput) SetBucket(v string) *CreateMultipartUploadOutput {+ s.Bucket = &v+ return s+}++// SetKey sets the Key field's value.+func (s *CreateMultipartUploadOutput) SetKey(v string) *CreateMultipartUploadOutput {+ s.Key = &v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *CreateMultipartUploadOutput) SetRequestCharged(v string) *CreateMultipartUploadOutput {+ s.RequestCharged = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *CreateMultipartUploadOutput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadOutput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *CreateMultipartUploadOutput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadOutput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *CreateMultipartUploadOutput) SetSSEKMSKeyId(v string) *CreateMultipartUploadOutput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *CreateMultipartUploadOutput) SetServerSideEncryption(v string) *CreateMultipartUploadOutput {+ s.ServerSideEncryption = &v+ return s+}++// SetUploadId sets the UploadId field's value.+func (s *CreateMultipartUploadOutput) SetUploadId(v string) *CreateMultipartUploadOutput {+ s.UploadId = &v+ return s+}+type Delete struct {_ struct{} `type:"structure"`+ // Objects is a required fieldObjects []*ObjectIdentifier `locationName:"Object" type:"list" flattened:"true" required:"true"`// Element to enable quiet mode for the request. When you add this element,@@ -2458,9 +5633,45 @@ func (s Delete) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *Delete) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "Delete"}+ if s.Objects == nil {+ invalidParams.Add(request.NewErrParamRequired("Objects"))+ }+ if s.Objects != nil {+ for i, v := range s.Objects {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Objects", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetObjects sets the Objects field's value.+func (s *Delete) SetObjects(v []*ObjectIdentifier) *Delete {+ s.Objects = v+ return s+}++// SetQuiet sets the Quiet field's value.+func (s *Delete) SetQuiet(v bool) *Delete {+ s.Quiet = &v+ return s+}+type DeleteBucketCorsInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2474,6 +5685,25 @@ func (s DeleteBucketCorsInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *DeleteBucketCorsInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketCorsInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *DeleteBucketCorsInput) SetBucket(v string) *DeleteBucketCorsInput {+ s.Bucket = &v+ return s+}+type DeleteBucketCorsOutput struct {_ struct{} `type:"structure"`}@@ -2491,6 +5721,7 @@ func (s DeleteBucketCorsOutput) GoString() string {type DeleteBucketInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2504,9 +5735,29 @@ func (s DeleteBucketInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *DeleteBucketInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *DeleteBucketInput) SetBucket(v string) *DeleteBucketInput {+ s.Bucket = &v+ return s+}+type DeleteBucketLifecycleInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2520,6 +5771,25 @@ func (s DeleteBucketLifecycleInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *DeleteBucketLifecycleInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketLifecycleInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *DeleteBucketLifecycleInput) SetBucket(v string) *DeleteBucketLifecycleInput {+ s.Bucket = &v+ return s+}+type DeleteBucketLifecycleOutput struct {_ struct{} `type:"structure"`}@@ -2551,6 +5821,7 @@ func (s DeleteBucketOutput) GoString() string {type DeleteBucketPolicyInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2564,6 +5835,25 @@ func (s DeleteBucketPolicyInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *DeleteBucketPolicyInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketPolicyInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *DeleteBucketPolicyInput) SetBucket(v string) *DeleteBucketPolicyInput {+ s.Bucket = &v+ return s+}+type DeleteBucketPolicyOutput struct {_ struct{} `type:"structure"`}@@ -2581,6 +5871,7 @@ func (s DeleteBucketPolicyOutput) GoString() string {type DeleteBucketReplicationInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2594,6 +5885,25 @@ func (s DeleteBucketReplicationInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *DeleteBucketReplicationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketReplicationInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *DeleteBucketReplicationInput) SetBucket(v string) *DeleteBucketReplicationInput {+ s.Bucket = &v+ return s+}+type DeleteBucketReplicationOutput struct {_ struct{} `type:"structure"`}@@ -2611,6 +5921,7 @@ func (s DeleteBucketReplicationOutput) GoString() string {type DeleteBucketTaggingInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2624,6 +5935,25 @@ func (s DeleteBucketTaggingInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *DeleteBucketTaggingInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketTaggingInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *DeleteBucketTaggingInput) SetBucket(v string) *DeleteBucketTaggingInput {+ s.Bucket = &v+ return s+}+type DeleteBucketTaggingOutput struct {_ struct{} `type:"structure"`}@@ -2641,6 +5971,7 @@ func (s DeleteBucketTaggingOutput) GoString() string {type DeleteBucketWebsiteInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2654,6 +5985,25 @@ func (s DeleteBucketWebsiteInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *DeleteBucketWebsiteInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketWebsiteInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *DeleteBucketWebsiteInput) SetBucket(v string) *DeleteBucketWebsiteInput {+ s.Bucket = &v+ return s+}+type DeleteBucketWebsiteOutput struct {_ struct{} `type:"structure"`}@@ -2697,11 +6047,43 @@ func (s DeleteMarkerEntry) GoString() string {return s.String()}+// SetIsLatest sets the IsLatest field's value.+func (s *DeleteMarkerEntry) SetIsLatest(v bool) *DeleteMarkerEntry {+ s.IsLatest = &v+ return s+}++// SetKey sets the Key field's value.+func (s *DeleteMarkerEntry) SetKey(v string) *DeleteMarkerEntry {+ s.Key = &v+ return s+}++// SetLastModified sets the LastModified field's value.+func (s *DeleteMarkerEntry) SetLastModified(v time.Time) *DeleteMarkerEntry {+ s.LastModified = &v+ return s+}++// SetOwner sets the Owner field's value.+func (s *DeleteMarkerEntry) SetOwner(v *Owner) *DeleteMarkerEntry {+ s.Owner = v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *DeleteMarkerEntry) SetVersionId(v string) *DeleteMarkerEntry {+ s.VersionId = &v+ return s+}+type DeleteObjectInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// The concatenation of the authentication device's serial number, a space,@@ -2728,6 +6110,55 @@ func (s DeleteObjectInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *DeleteObjectInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DeleteObjectInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *DeleteObjectInput) SetBucket(v string) *DeleteObjectInput {+ s.Bucket = &v+ return s+}++// SetKey sets the Key field's value.+func (s *DeleteObjectInput) SetKey(v string) *DeleteObjectInput {+ s.Key = &v+ return s+}++// SetMFA sets the MFA field's value.+func (s *DeleteObjectInput) SetMFA(v string) *DeleteObjectInput {+ s.MFA = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *DeleteObjectInput) SetRequestPayer(v string) *DeleteObjectInput {+ s.RequestPayer = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *DeleteObjectInput) SetVersionId(v string) *DeleteObjectInput {+ s.VersionId = &v+ return s+}+type DeleteObjectOutput struct {_ struct{} `type:"structure"`@@ -2754,11 +6185,31 @@ func (s DeleteObjectOutput) GoString() string {return s.String()}+// SetDeleteMarker sets the DeleteMarker field's value.+func (s *DeleteObjectOutput) SetDeleteMarker(v bool) *DeleteObjectOutput {+ s.DeleteMarker = &v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *DeleteObjectOutput) SetRequestCharged(v string) *DeleteObjectOutput {+ s.RequestCharged = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *DeleteObjectOutput) SetVersionId(v string) *DeleteObjectOutput {+ s.VersionId = &v+ return s+}+type DeleteObjectsInput struct {_ struct{} `type:"structure" payload:"Delete"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // Delete is a required fieldDelete *Delete `locationName:"Delete" type:"structure" required:"true"`// The concatenation of the authentication device's serial number, a space,@@ -2782,6 +6233,51 @@ func (s DeleteObjectsInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *DeleteObjectsInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DeleteObjectsInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Delete == nil {+ invalidParams.Add(request.NewErrParamRequired("Delete"))+ }+ if s.Delete != nil {+ if err := s.Delete.Validate(); err != nil {+ invalidParams.AddNested("Delete", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *DeleteObjectsInput) SetBucket(v string) *DeleteObjectsInput {+ s.Bucket = &v+ return s+}++// SetDelete sets the Delete field's value.+func (s *DeleteObjectsInput) SetDelete(v *Delete) *DeleteObjectsInput {+ s.Delete = v+ return s+}++// SetMFA sets the MFA field's value.+func (s *DeleteObjectsInput) SetMFA(v string) *DeleteObjectsInput {+ s.MFA = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *DeleteObjectsInput) SetRequestPayer(v string) *DeleteObjectsInput {+ s.RequestPayer = &v+ return s+}+type DeleteObjectsOutput struct {_ struct{} `type:"structure"`@@ -2804,6 +6300,24 @@ func (s DeleteObjectsOutput) GoString() string {return s.String()}+// SetDeleted sets the Deleted field's value.+func (s *DeleteObjectsOutput) SetDeleted(v []*DeletedObject) *DeleteObjectsOutput {+ s.Deleted = v+ return s+}++// SetErrors sets the Errors field's value.+func (s *DeleteObjectsOutput) SetErrors(v []*Error) *DeleteObjectsOutput {+ s.Errors = v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *DeleteObjectsOutput) SetRequestCharged(v string) *DeleteObjectsOutput {+ s.RequestCharged = &v+ return s+}+type DeletedObject struct {_ struct{} `type:"structure"`@@ -2826,11 +6340,37 @@ func (s DeletedObject) GoString() string {return s.String()}+// SetDeleteMarker sets the DeleteMarker field's value.+func (s *DeletedObject) SetDeleteMarker(v bool) *DeletedObject {+ s.DeleteMarker = &v+ return s+}++// SetDeleteMarkerVersionId sets the DeleteMarkerVersionId field's value.+func (s *DeletedObject) SetDeleteMarkerVersionId(v string) *DeletedObject {+ s.DeleteMarkerVersionId = &v+ return s+}++// SetKey sets the Key field's value.+func (s *DeletedObject) SetKey(v string) *DeletedObject {+ s.Key = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *DeletedObject) SetVersionId(v string) *DeletedObject {+ s.VersionId = &v+ return s+}+type Destination struct {_ struct{} `type:"structure"`// Amazon resource name (ARN) of the bucket where you want Amazon S3 to store// replicas of the object identified by the rule.+ //+ // Bucket is a required fieldBucket *string `type:"string" required:"true"`// The class of storage used to store the object.@@ -2847,6 +6387,31 @@ func (s Destination) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *Destination) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "Destination"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *Destination) SetBucket(v string) *Destination {+ s.Bucket = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *Destination) SetStorageClass(v string) *Destination {+ s.StorageClass = &v+ return s+}+type Error struct {_ struct{} `type:"structure"`@@ -2869,10 +6434,36 @@ func (s Error) GoString() string {return s.String()}+// SetCode sets the Code field's value.+func (s *Error) SetCode(v string) *Error {+ s.Code = &v+ return s+}++// SetKey sets the Key field's value.+func (s *Error) SetKey(v string) *Error {+ s.Key = &v+ return s+}++// SetMessage sets the Message field's value.+func (s *Error) SetMessage(v string) *Error {+ s.Message = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *Error) SetVersionId(v string) *Error {+ s.VersionId = &v+ return s+}+type ErrorDocument struct {_ struct{} `type:"structure"`// The object key name to use when a 4XX class error occurs.+ //+ // Key is a required fieldKey *string `min:"1" type:"string" required:"true"`}@@ -2886,6 +6477,28 @@ func (s ErrorDocument) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *ErrorDocument) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "ErrorDocument"}+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetKey sets the Key field's value.+func (s *ErrorDocument) SetKey(v string) *ErrorDocument {+ s.Key = &v+ return s+}+// Container for key value pair that defines the criteria for the filter rule.type FilterRule struct {_ struct{} `type:"structure"`@@ -2894,7 +6507,6 @@ type FilterRule struct {// the filtering rule applies. Maximum prefix length can be up to 1,024 characters.// Overlapping prefixes and suffixes are not supported. For more information,// go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)- // in the Amazon Simple Storage Service Developer Guide.Name *string `type:"string" enum:"FilterRuleName"`Value *string `type:"string"`@@ -2910,9 +6522,83 @@ func (s FilterRule) GoString() string {return s.String()}+// SetName sets the Name field's value.+func (s *FilterRule) SetName(v string) *FilterRule {+ s.Name = &v+ return s+}++// SetValue sets the Value field's value.+func (s *FilterRule) SetValue(v string) *FilterRule {+ s.Value = &v+ return s+}++type GetBucketAccelerateConfigurationInput struct {+ _ struct{} `type:"structure"`++ // Name of the bucket for which the accelerate configuration is retrieved.+ //+ // Bucket is a required field+ Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+}++// String returns the string representation+func (s GetBucketAccelerateConfigurationInput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s GetBucketAccelerateConfigurationInput) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketAccelerateConfigurationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketAccelerateConfigurationInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketAccelerateConfigurationInput) SetBucket(v string) *GetBucketAccelerateConfigurationInput {+ s.Bucket = &v+ return s+}++type GetBucketAccelerateConfigurationOutput struct {+ _ struct{} `type:"structure"`++ // The accelerate configuration of the bucket.+ Status *string `type:"string" enum:"BucketAccelerateStatus"`+}++// String returns the string representation+func (s GetBucketAccelerateConfigurationOutput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s GetBucketAccelerateConfigurationOutput) GoString() string {+ return s.String()+}++// SetStatus sets the Status field's value.+func (s *GetBucketAccelerateConfigurationOutput) SetStatus(v string) *GetBucketAccelerateConfigurationOutput {+ s.Status = &v+ return s+}+type GetBucketAclInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2926,6 +6612,25 @@ func (s GetBucketAclInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketAclInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketAclInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketAclInput) SetBucket(v string) *GetBucketAclInput {+ s.Bucket = &v+ return s+}+type GetBucketAclOutput struct {_ struct{} `type:"structure"`@@ -2945,9 +6650,22 @@ func (s GetBucketAclOutput) GoString() string {return s.String()}+// SetGrants sets the Grants field's value.+func (s *GetBucketAclOutput) SetGrants(v []*Grant) *GetBucketAclOutput {+ s.Grants = v+ return s+}++// SetOwner sets the Owner field's value.+func (s *GetBucketAclOutput) SetOwner(v *Owner) *GetBucketAclOutput {+ s.Owner = v+ return s+}+type GetBucketCorsInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2961,6 +6679,25 @@ func (s GetBucketCorsInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketCorsInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketCorsInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketCorsInput) SetBucket(v string) *GetBucketCorsInput {+ s.Bucket = &v+ return s+}+type GetBucketCorsOutput struct {_ struct{} `type:"structure"`@@ -2977,9 +6714,16 @@ func (s GetBucketCorsOutput) GoString() string {return s.String()}+// SetCORSRules sets the CORSRules field's value.+func (s *GetBucketCorsOutput) SetCORSRules(v []*CORSRule) *GetBucketCorsOutput {+ s.CORSRules = v+ return s+}+type GetBucketLifecycleConfigurationInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -2993,6 +6737,25 @@ func (s GetBucketLifecycleConfigurationInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketLifecycleConfigurationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketLifecycleConfigurationInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketLifecycleConfigurationInput) SetBucket(v string) *GetBucketLifecycleConfigurationInput {+ s.Bucket = &v+ return s+}+type GetBucketLifecycleConfigurationOutput struct {_ struct{} `type:"structure"`@@ -3009,9 +6772,16 @@ func (s GetBucketLifecycleConfigurationOutput) GoString() string {return s.String()}+// SetRules sets the Rules field's value.+func (s *GetBucketLifecycleConfigurationOutput) SetRules(v []*LifecycleRule) *GetBucketLifecycleConfigurationOutput {+ s.Rules = v+ return s+}+type GetBucketLifecycleInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3025,6 +6795,25 @@ func (s GetBucketLifecycleInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketLifecycleInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketLifecycleInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketLifecycleInput) SetBucket(v string) *GetBucketLifecycleInput {+ s.Bucket = &v+ return s+}+type GetBucketLifecycleOutput struct {_ struct{} `type:"structure"`@@ -3041,9 +6830,16 @@ func (s GetBucketLifecycleOutput) GoString() string {return s.String()}+// SetRules sets the Rules field's value.+func (s *GetBucketLifecycleOutput) SetRules(v []*Rule) *GetBucketLifecycleOutput {+ s.Rules = v+ return s+}+type GetBucketLocationInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3057,6 +6853,25 @@ func (s GetBucketLocationInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketLocationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketLocationInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketLocationInput) SetBucket(v string) *GetBucketLocationInput {+ s.Bucket = &v+ return s+}+type GetBucketLocationOutput struct {_ struct{} `type:"structure"`@@ -3073,9 +6888,16 @@ func (s GetBucketLocationOutput) GoString() string {return s.String()}+// SetLocationConstraint sets the LocationConstraint field's value.+func (s *GetBucketLocationOutput) SetLocationConstraint(v string) *GetBucketLocationOutput {+ s.LocationConstraint = &v+ return s+}+type GetBucketLoggingInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3089,6 +6911,25 @@ func (s GetBucketLoggingInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketLoggingInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketLoggingInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketLoggingInput) SetBucket(v string) *GetBucketLoggingInput {+ s.Bucket = &v+ return s+}+type GetBucketLoggingOutput struct {_ struct{} `type:"structure"`@@ -3105,10 +6946,18 @@ func (s GetBucketLoggingOutput) GoString() string {return s.String()}+// SetLoggingEnabled sets the LoggingEnabled field's value.+func (s *GetBucketLoggingOutput) SetLoggingEnabled(v *LoggingEnabled) *GetBucketLoggingOutput {+ s.LoggingEnabled = v+ return s+}+type GetBucketNotificationConfigurationRequest struct {_ struct{} `type:"structure"`- // Name of the buket to get the notification configuration for.+ // Name of the bucket to get the notification configuration for.+ //+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3122,9 +6971,29 @@ func (s GetBucketNotificationConfigurationRequest) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketNotificationConfigurationRequest) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketNotificationConfigurationRequest"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketNotificationConfigurationRequest) SetBucket(v string) *GetBucketNotificationConfigurationRequest {+ s.Bucket = &v+ return s+}+type GetBucketPolicyInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3138,6 +7007,25 @@ func (s GetBucketPolicyInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketPolicyInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketPolicyInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketPolicyInput) SetBucket(v string) *GetBucketPolicyInput {+ s.Bucket = &v+ return s+}+type GetBucketPolicyOutput struct {_ struct{} `type:"structure" payload:"Policy"`@@ -3155,9 +7043,16 @@ func (s GetBucketPolicyOutput) GoString() string {return s.String()}+// SetPolicy sets the Policy field's value.+func (s *GetBucketPolicyOutput) SetPolicy(v string) *GetBucketPolicyOutput {+ s.Policy = &v+ return s+}+type GetBucketReplicationInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3171,6 +7066,25 @@ func (s GetBucketReplicationInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketReplicationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketReplicationInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketReplicationInput) SetBucket(v string) *GetBucketReplicationInput {+ s.Bucket = &v+ return s+}+type GetBucketReplicationOutput struct {_ struct{} `type:"structure" payload:"ReplicationConfiguration"`@@ -3189,9 +7103,16 @@ func (s GetBucketReplicationOutput) GoString() string {return s.String()}+// SetReplicationConfiguration sets the ReplicationConfiguration field's value.+func (s *GetBucketReplicationOutput) SetReplicationConfiguration(v *ReplicationConfiguration) *GetBucketReplicationOutput {+ s.ReplicationConfiguration = v+ return s+}+type GetBucketRequestPaymentInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3205,6 +7126,25 @@ func (s GetBucketRequestPaymentInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketRequestPaymentInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketRequestPaymentInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketRequestPaymentInput) SetBucket(v string) *GetBucketRequestPaymentInput {+ s.Bucket = &v+ return s+}+type GetBucketRequestPaymentOutput struct {_ struct{} `type:"structure"`@@ -3222,9 +7162,16 @@ func (s GetBucketRequestPaymentOutput) GoString() string {return s.String()}-type GetBucketTaggingInput struct {+// SetPayer sets the Payer field's value.+func (s *GetBucketRequestPaymentOutput) SetPayer(v string) *GetBucketRequestPaymentOutput {+ s.Payer = &v+ return s+}++type GetBucketTaggingInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3238,9 +7185,29 @@ func (s GetBucketTaggingInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketTaggingInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketTaggingInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketTaggingInput) SetBucket(v string) *GetBucketTaggingInput {+ s.Bucket = &v+ return s+}+type GetBucketTaggingOutput struct {_ struct{} `type:"structure"`+ // TagSet is a required fieldTagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"`}@@ -3254,9 +7221,16 @@ func (s GetBucketTaggingOutput) GoString() string {return s.String()}+// SetTagSet sets the TagSet field's value.+func (s *GetBucketTaggingOutput) SetTagSet(v []*Tag) *GetBucketTaggingOutput {+ s.TagSet = v+ return s+}+type GetBucketVersioningInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3270,6 +7244,25 @@ func (s GetBucketVersioningInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketVersioningInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketVersioningInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketVersioningInput) SetBucket(v string) *GetBucketVersioningInput {+ s.Bucket = &v+ return s+}+type GetBucketVersioningOutput struct {_ struct{} `type:"structure"`@@ -3292,9 +7285,22 @@ func (s GetBucketVersioningOutput) GoString() string {return s.String()}+// SetMFADelete sets the MFADelete field's value.+func (s *GetBucketVersioningOutput) SetMFADelete(v string) *GetBucketVersioningOutput {+ s.MFADelete = &v+ return s+}++// SetStatus sets the Status field's value.+func (s *GetBucketVersioningOutput) SetStatus(v string) *GetBucketVersioningOutput {+ s.Status = &v+ return s+}+type GetBucketWebsiteInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3308,6 +7314,25 @@ func (s GetBucketWebsiteInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetBucketWebsiteInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetBucketWebsiteInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetBucketWebsiteInput) SetBucket(v string) *GetBucketWebsiteInput {+ s.Bucket = &v+ return s+}+type GetBucketWebsiteOutput struct {_ struct{} `type:"structure"`@@ -3330,11 +7355,37 @@ func (s GetBucketWebsiteOutput) GoString() string {return s.String()}+// SetErrorDocument sets the ErrorDocument field's value.+func (s *GetBucketWebsiteOutput) SetErrorDocument(v *ErrorDocument) *GetBucketWebsiteOutput {+ s.ErrorDocument = v+ return s+}++// SetIndexDocument sets the IndexDocument field's value.+func (s *GetBucketWebsiteOutput) SetIndexDocument(v *IndexDocument) *GetBucketWebsiteOutput {+ s.IndexDocument = v+ return s+}++// SetRedirectAllRequestsTo sets the RedirectAllRequestsTo field's value.+func (s *GetBucketWebsiteOutput) SetRedirectAllRequestsTo(v *RedirectAllRequestsTo) *GetBucketWebsiteOutput {+ s.RedirectAllRequestsTo = v+ return s+}++// SetRoutingRules sets the RoutingRules field's value.+func (s *GetBucketWebsiteOutput) SetRoutingRules(v []*RoutingRule) *GetBucketWebsiteOutput {+ s.RoutingRules = v+ return s+}+type GetObjectAclInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// Confirms that the requester knows that she or he will be charged for the@@ -3357,6 +7408,49 @@ func (s GetObjectAclInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetObjectAclInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetObjectAclInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetObjectAclInput) SetBucket(v string) *GetObjectAclInput {+ s.Bucket = &v+ return s+}++// SetKey sets the Key field's value.+func (s *GetObjectAclInput) SetKey(v string) *GetObjectAclInput {+ s.Key = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *GetObjectAclInput) SetRequestPayer(v string) *GetObjectAclInput {+ s.RequestPayer = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *GetObjectAclInput) SetVersionId(v string) *GetObjectAclInput {+ s.VersionId = &v+ return s+}+type GetObjectAclOutput struct {_ struct{} `type:"structure"`@@ -3380,9 +7474,28 @@ func (s GetObjectAclOutput) GoString() string {return s.String()}+// SetGrants sets the Grants field's value.+func (s *GetObjectAclOutput) SetGrants(v []*Grant) *GetObjectAclOutput {+ s.Grants = v+ return s+}++// SetOwner sets the Owner field's value.+func (s *GetObjectAclOutput) SetOwner(v *Owner) *GetObjectAclOutput {+ s.Owner = v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *GetObjectAclOutput) SetRequestCharged(v string) *GetObjectAclOutput {+ s.RequestCharged = &v+ return s+}+type GetObjectInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Return the object only if its entity tag (ETag) is the same as the one specified,@@ -3401,8 +7514,14 @@ type GetObjectInput struct {// otherwise return a 412 (precondition failed).IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp" timestampFormat:"rfc822"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`+ // Part number of the object being read. This is a positive integer between+ // 1 and 10,000. Effectively performs a 'ranged' GET request for the part specified.+ // Useful for downloading just a part of an object.+ PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer"`+// Downloads the specified range bytes of an object. For more information about// the HTTP Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.Range *string `location:"header" locationName:"Range" type:"string"`@@ -3460,6 +7579,139 @@ func (s GetObjectInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetObjectInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetObjectInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetObjectInput) SetBucket(v string) *GetObjectInput {+ s.Bucket = &v+ return s+}++// SetIfMatch sets the IfMatch field's value.+func (s *GetObjectInput) SetIfMatch(v string) *GetObjectInput {+ s.IfMatch = &v+ return s+}++// SetIfModifiedSince sets the IfModifiedSince field's value.+func (s *GetObjectInput) SetIfModifiedSince(v time.Time) *GetObjectInput {+ s.IfModifiedSince = &v+ return s+}++// SetIfNoneMatch sets the IfNoneMatch field's value.+func (s *GetObjectInput) SetIfNoneMatch(v string) *GetObjectInput {+ s.IfNoneMatch = &v+ return s+}++// SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value.+func (s *GetObjectInput) SetIfUnmodifiedSince(v time.Time) *GetObjectInput {+ s.IfUnmodifiedSince = &v+ return s+}++// SetKey sets the Key field's value.+func (s *GetObjectInput) SetKey(v string) *GetObjectInput {+ s.Key = &v+ return s+}++// SetPartNumber sets the PartNumber field's value.+func (s *GetObjectInput) SetPartNumber(v int64) *GetObjectInput {+ s.PartNumber = &v+ return s+}++// SetRange sets the Range field's value.+func (s *GetObjectInput) SetRange(v string) *GetObjectInput {+ s.Range = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *GetObjectInput) SetRequestPayer(v string) *GetObjectInput {+ s.RequestPayer = &v+ return s+}++// SetResponseCacheControl sets the ResponseCacheControl field's value.+func (s *GetObjectInput) SetResponseCacheControl(v string) *GetObjectInput {+ s.ResponseCacheControl = &v+ return s+}++// SetResponseContentDisposition sets the ResponseContentDisposition field's value.+func (s *GetObjectInput) SetResponseContentDisposition(v string) *GetObjectInput {+ s.ResponseContentDisposition = &v+ return s+}++// SetResponseContentEncoding sets the ResponseContentEncoding field's value.+func (s *GetObjectInput) SetResponseContentEncoding(v string) *GetObjectInput {+ s.ResponseContentEncoding = &v+ return s+}++// SetResponseContentLanguage sets the ResponseContentLanguage field's value.+func (s *GetObjectInput) SetResponseContentLanguage(v string) *GetObjectInput {+ s.ResponseContentLanguage = &v+ return s+}++// SetResponseContentType sets the ResponseContentType field's value.+func (s *GetObjectInput) SetResponseContentType(v string) *GetObjectInput {+ s.ResponseContentType = &v+ return s+}++// SetResponseExpires sets the ResponseExpires field's value.+func (s *GetObjectInput) SetResponseExpires(v time.Time) *GetObjectInput {+ s.ResponseExpires = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *GetObjectInput) SetSSECustomerAlgorithm(v string) *GetObjectInput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKey sets the SSECustomerKey field's value.+func (s *GetObjectInput) SetSSECustomerKey(v string) *GetObjectInput {+ s.SSECustomerKey = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *GetObjectInput) SetSSECustomerKeyMD5(v string) *GetObjectInput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *GetObjectInput) SetVersionId(v string) *GetObjectInput {+ s.VersionId = &v+ return s+}+type GetObjectOutput struct {_ struct{} `type:"structure" payload:"Body"`@@ -3483,7 +7735,7 @@ type GetObjectOutput struct {ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`// Size of the body in bytes.- ContentLength *int64 `location:"header" locationName:"Content-Length" type:"integer"`+ ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`// The portion of the object returned in the response.ContentRange *string `location:"header" locationName:"Content-Range" type:"string"`@@ -3520,6 +7772,9 @@ type GetObjectOutput struct {// you can create metadata whose values are not legal HTTP headers.MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"`+ // The count of parts this object has.+ PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`+ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"`// If present, indicates that the requester was successfully charged for the@@ -3569,11 +7824,175 @@ func (s GetObjectOutput) GoString() string {return s.String()}+// SetAcceptRanges sets the AcceptRanges field's value.+func (s *GetObjectOutput) SetAcceptRanges(v string) *GetObjectOutput {+ s.AcceptRanges = &v+ return s+}++// SetBody sets the Body field's value.+func (s *GetObjectOutput) SetBody(v io.ReadCloser) *GetObjectOutput {+ s.Body = v+ return s+}++// SetCacheControl sets the CacheControl field's value.+func (s *GetObjectOutput) SetCacheControl(v string) *GetObjectOutput {+ s.CacheControl = &v+ return s+}++// SetContentDisposition sets the ContentDisposition field's value.+func (s *GetObjectOutput) SetContentDisposition(v string) *GetObjectOutput {+ s.ContentDisposition = &v+ return s+}++// SetContentEncoding sets the ContentEncoding field's value.+func (s *GetObjectOutput) SetContentEncoding(v string) *GetObjectOutput {+ s.ContentEncoding = &v+ return s+}++// SetContentLanguage sets the ContentLanguage field's value.+func (s *GetObjectOutput) SetContentLanguage(v string) *GetObjectOutput {+ s.ContentLanguage = &v+ return s+}++// SetContentLength sets the ContentLength field's value.+func (s *GetObjectOutput) SetContentLength(v int64) *GetObjectOutput {+ s.ContentLength = &v+ return s+}++// SetContentRange sets the ContentRange field's value.+func (s *GetObjectOutput) SetContentRange(v string) *GetObjectOutput {+ s.ContentRange = &v+ return s+}++// SetContentType sets the ContentType field's value.+func (s *GetObjectOutput) SetContentType(v string) *GetObjectOutput {+ s.ContentType = &v+ return s+}++// SetDeleteMarker sets the DeleteMarker field's value.+func (s *GetObjectOutput) SetDeleteMarker(v bool) *GetObjectOutput {+ s.DeleteMarker = &v+ return s+}++// SetETag sets the ETag field's value.+func (s *GetObjectOutput) SetETag(v string) *GetObjectOutput {+ s.ETag = &v+ return s+}++// SetExpiration sets the Expiration field's value.+func (s *GetObjectOutput) SetExpiration(v string) *GetObjectOutput {+ s.Expiration = &v+ return s+}++// SetExpires sets the Expires field's value.+func (s *GetObjectOutput) SetExpires(v string) *GetObjectOutput {+ s.Expires = &v+ return s+}++// SetLastModified sets the LastModified field's value.+func (s *GetObjectOutput) SetLastModified(v time.Time) *GetObjectOutput {+ s.LastModified = &v+ return s+}++// SetMetadata sets the Metadata field's value.+func (s *GetObjectOutput) SetMetadata(v map[string]*string) *GetObjectOutput {+ s.Metadata = v+ return s+}++// SetMissingMeta sets the MissingMeta field's value.+func (s *GetObjectOutput) SetMissingMeta(v int64) *GetObjectOutput {+ s.MissingMeta = &v+ return s+}++// SetPartsCount sets the PartsCount field's value.+func (s *GetObjectOutput) SetPartsCount(v int64) *GetObjectOutput {+ s.PartsCount = &v+ return s+}++// SetReplicationStatus sets the ReplicationStatus field's value.+func (s *GetObjectOutput) SetReplicationStatus(v string) *GetObjectOutput {+ s.ReplicationStatus = &v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *GetObjectOutput) SetRequestCharged(v string) *GetObjectOutput {+ s.RequestCharged = &v+ return s+}++// SetRestore sets the Restore field's value.+func (s *GetObjectOutput) SetRestore(v string) *GetObjectOutput {+ s.Restore = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *GetObjectOutput) SetSSECustomerAlgorithm(v string) *GetObjectOutput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *GetObjectOutput) SetSSECustomerKeyMD5(v string) *GetObjectOutput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *GetObjectOutput) SetSSEKMSKeyId(v string) *GetObjectOutput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *GetObjectOutput) SetServerSideEncryption(v string) *GetObjectOutput {+ s.ServerSideEncryption = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *GetObjectOutput) SetStorageClass(v string) *GetObjectOutput {+ s.StorageClass = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *GetObjectOutput) SetVersionId(v string) *GetObjectOutput {+ s.VersionId = &v+ return s+}++// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.+func (s *GetObjectOutput) SetWebsiteRedirectLocation(v string) *GetObjectOutput {+ s.WebsiteRedirectLocation = &v+ return s+}+type GetObjectTorrentInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// Confirms that the requester knows that she or he will be charged for the@@ -3593,6 +8012,43 @@ func (s GetObjectTorrentInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *GetObjectTorrentInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetObjectTorrentInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *GetObjectTorrentInput) SetBucket(v string) *GetObjectTorrentInput {+ s.Bucket = &v+ return s+}++// SetKey sets the Key field's value.+func (s *GetObjectTorrentInput) SetKey(v string) *GetObjectTorrentInput {+ s.Key = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *GetObjectTorrentInput) SetRequestPayer(v string) *GetObjectTorrentInput {+ s.RequestPayer = &v+ return s+}+type GetObjectTorrentOutput struct {_ struct{} `type:"structure" payload:"Body"`@@ -3613,6 +8069,18 @@ func (s GetObjectTorrentOutput) GoString() string {return s.String()}+// SetBody sets the Body field's value.+func (s *GetObjectTorrentOutput) SetBody(v io.ReadCloser) *GetObjectTorrentOutput {+ s.Body = v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *GetObjectTorrentOutput) SetRequestCharged(v string) *GetObjectTorrentOutput {+ s.RequestCharged = &v+ return s+}+type Grant struct {_ struct{} `type:"structure"`@@ -3632,6 +8100,33 @@ func (s Grant) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *Grant) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "Grant"}+ if s.Grantee != nil {+ if err := s.Grantee.Validate(); err != nil {+ invalidParams.AddNested("Grantee", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetGrantee sets the Grantee field's value.+func (s *Grant) SetGrantee(v *Grantee) *Grant {+ s.Grantee = v+ return s+}++// SetPermission sets the Permission field's value.+func (s *Grant) SetPermission(v string) *Grant {+ s.Permission = &v+ return s+}+type Grantee struct {_ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`@@ -3645,6 +8140,8 @@ type Grantee struct {ID *string `type:"string"`// Type of grantee+ //+ // Type is a required fieldType *string `locationName:"xsi:type" type:"string" xmlAttribute:"true" required:"true" enum:"Type"`// URI of the grantee group.@@ -3661,9 +8158,53 @@ func (s Grantee) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *Grantee) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "Grantee"}+ if s.Type == nil {+ invalidParams.Add(request.NewErrParamRequired("Type"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetDisplayName sets the DisplayName field's value.+func (s *Grantee) SetDisplayName(v string) *Grantee {+ s.DisplayName = &v+ return s+}++// SetEmailAddress sets the EmailAddress field's value.+func (s *Grantee) SetEmailAddress(v string) *Grantee {+ s.EmailAddress = &v+ return s+}++// SetID sets the ID field's value.+func (s *Grantee) SetID(v string) *Grantee {+ s.ID = &v+ return s+}++// SetType sets the Type field's value.+func (s *Grantee) SetType(v string) *Grantee {+ s.Type = &v+ return s+}++// SetURI sets the URI field's value.+func (s *Grantee) SetURI(v string) *Grantee {+ s.URI = &v+ return s+}+type HeadBucketInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`}@@ -3677,6 +8218,25 @@ func (s HeadBucketInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *HeadBucketInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "HeadBucketInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *HeadBucketInput) SetBucket(v string) *HeadBucketInput {+ s.Bucket = &v+ return s+}+type HeadBucketOutput struct {_ struct{} `type:"structure"`}@@ -3694,6 +8254,7 @@ func (s HeadBucketOutput) GoString() string {type HeadObjectInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Return the object only if its entity tag (ETag) is the same as the one specified,@@ -3712,8 +8273,15 @@ type HeadObjectInput struct {// otherwise return a 412 (precondition failed).IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp" timestampFormat:"rfc822"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`+ // Part number of the object being read. This is a positive integer between+ // 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified.+ // Useful querying about the size of the part and the number of parts in this+ // object.+ PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer"`+// Downloads the specified range bytes of an object. For more information about// the HTTP Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.Range *string `location:"header" locationName:"Range" type:"string"`@@ -3753,6 +8321,103 @@ func (s HeadObjectInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *HeadObjectInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "HeadObjectInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *HeadObjectInput) SetBucket(v string) *HeadObjectInput {+ s.Bucket = &v+ return s+}++// SetIfMatch sets the IfMatch field's value.+func (s *HeadObjectInput) SetIfMatch(v string) *HeadObjectInput {+ s.IfMatch = &v+ return s+}++// SetIfModifiedSince sets the IfModifiedSince field's value.+func (s *HeadObjectInput) SetIfModifiedSince(v time.Time) *HeadObjectInput {+ s.IfModifiedSince = &v+ return s+}++// SetIfNoneMatch sets the IfNoneMatch field's value.+func (s *HeadObjectInput) SetIfNoneMatch(v string) *HeadObjectInput {+ s.IfNoneMatch = &v+ return s+}++// SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value.+func (s *HeadObjectInput) SetIfUnmodifiedSince(v time.Time) *HeadObjectInput {+ s.IfUnmodifiedSince = &v+ return s+}++// SetKey sets the Key field's value.+func (s *HeadObjectInput) SetKey(v string) *HeadObjectInput {+ s.Key = &v+ return s+}++// SetPartNumber sets the PartNumber field's value.+func (s *HeadObjectInput) SetPartNumber(v int64) *HeadObjectInput {+ s.PartNumber = &v+ return s+}++// SetRange sets the Range field's value.+func (s *HeadObjectInput) SetRange(v string) *HeadObjectInput {+ s.Range = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *HeadObjectInput) SetRequestPayer(v string) *HeadObjectInput {+ s.RequestPayer = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *HeadObjectInput) SetSSECustomerAlgorithm(v string) *HeadObjectInput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKey sets the SSECustomerKey field's value.+func (s *HeadObjectInput) SetSSECustomerKey(v string) *HeadObjectInput {+ s.SSECustomerKey = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *HeadObjectInput) SetSSECustomerKeyMD5(v string) *HeadObjectInput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *HeadObjectInput) SetVersionId(v string) *HeadObjectInput {+ s.VersionId = &v+ return s+}+type HeadObjectOutput struct {_ struct{} `type:"structure"`@@ -3773,7 +8438,7 @@ type HeadObjectOutput struct {ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`// Size of the body in bytes.- ContentLength *int64 `location:"header" locationName:"Content-Length" type:"integer"`+ ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`// A standard MIME type describing the format of the object data.ContentType *string `location:"header" locationName:"Content-Type" type:"string"`@@ -3807,6 +8472,9 @@ type HeadObjectOutput struct {// you can create metadata whose values are not legal HTTP headers.MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"`+ // The count of parts this object has.+ PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`+ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"`// If present, indicates that the requester was successfully charged for the@@ -3856,26 +8524,197 @@ func (s HeadObjectOutput) GoString() string {return s.String()}-type IndexDocument struct {- _ struct{} `type:"structure"`+// SetAcceptRanges sets the AcceptRanges field's value.+func (s *HeadObjectOutput) SetAcceptRanges(v string) *HeadObjectOutput {+ s.AcceptRanges = &v+ return s+}- // A suffix that is appended to a request that is for a directory on the website- // endpoint (e.g. if the suffix is index.html and you make a request to samplebucket/images/- // the data that is returned will be for the object with the key name images/index.html)- // The suffix must not be empty and must not include a slash character.- Suffix *string `type:"string" required:"true"`+// SetCacheControl sets the CacheControl field's value.+func (s *HeadObjectOutput) SetCacheControl(v string) *HeadObjectOutput {+ s.CacheControl = &v+ return s}-// String returns the string representation-func (s IndexDocument) String() string {- return awsutil.Prettify(s)+// SetContentDisposition sets the ContentDisposition field's value.+func (s *HeadObjectOutput) SetContentDisposition(v string) *HeadObjectOutput {+ s.ContentDisposition = &v+ return s}-// GoString returns the string representation-func (s IndexDocument) GoString() string {+// SetContentEncoding sets the ContentEncoding field's value.+func (s *HeadObjectOutput) SetContentEncoding(v string) *HeadObjectOutput {+ s.ContentEncoding = &v+ return s+}++// SetContentLanguage sets the ContentLanguage field's value.+func (s *HeadObjectOutput) SetContentLanguage(v string) *HeadObjectOutput {+ s.ContentLanguage = &v+ return s+}++// SetContentLength sets the ContentLength field's value.+func (s *HeadObjectOutput) SetContentLength(v int64) *HeadObjectOutput {+ s.ContentLength = &v+ return s+}++// SetContentType sets the ContentType field's value.+func (s *HeadObjectOutput) SetContentType(v string) *HeadObjectOutput {+ s.ContentType = &v+ return s+}++// SetDeleteMarker sets the DeleteMarker field's value.+func (s *HeadObjectOutput) SetDeleteMarker(v bool) *HeadObjectOutput {+ s.DeleteMarker = &v+ return s+}++// SetETag sets the ETag field's value.+func (s *HeadObjectOutput) SetETag(v string) *HeadObjectOutput {+ s.ETag = &v+ return s+}++// SetExpiration sets the Expiration field's value.+func (s *HeadObjectOutput) SetExpiration(v string) *HeadObjectOutput {+ s.Expiration = &v+ return s+}++// SetExpires sets the Expires field's value.+func (s *HeadObjectOutput) SetExpires(v string) *HeadObjectOutput {+ s.Expires = &v+ return s+}++// SetLastModified sets the LastModified field's value.+func (s *HeadObjectOutput) SetLastModified(v time.Time) *HeadObjectOutput {+ s.LastModified = &v+ return s+}++// SetMetadata sets the Metadata field's value.+func (s *HeadObjectOutput) SetMetadata(v map[string]*string) *HeadObjectOutput {+ s.Metadata = v+ return s+}++// SetMissingMeta sets the MissingMeta field's value.+func (s *HeadObjectOutput) SetMissingMeta(v int64) *HeadObjectOutput {+ s.MissingMeta = &v+ return s+}++// SetPartsCount sets the PartsCount field's value.+func (s *HeadObjectOutput) SetPartsCount(v int64) *HeadObjectOutput {+ s.PartsCount = &v+ return s+}++// SetReplicationStatus sets the ReplicationStatus field's value.+func (s *HeadObjectOutput) SetReplicationStatus(v string) *HeadObjectOutput {+ s.ReplicationStatus = &v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *HeadObjectOutput) SetRequestCharged(v string) *HeadObjectOutput {+ s.RequestCharged = &v+ return s+}++// SetRestore sets the Restore field's value.+func (s *HeadObjectOutput) SetRestore(v string) *HeadObjectOutput {+ s.Restore = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *HeadObjectOutput) SetSSECustomerAlgorithm(v string) *HeadObjectOutput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *HeadObjectOutput) SetSSECustomerKeyMD5(v string) *HeadObjectOutput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *HeadObjectOutput) SetSSEKMSKeyId(v string) *HeadObjectOutput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *HeadObjectOutput) SetServerSideEncryption(v string) *HeadObjectOutput {+ s.ServerSideEncryption = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *HeadObjectOutput) SetStorageClass(v string) *HeadObjectOutput {+ s.StorageClass = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *HeadObjectOutput) SetVersionId(v string) *HeadObjectOutput {+ s.VersionId = &v+ return s+}++// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.+func (s *HeadObjectOutput) SetWebsiteRedirectLocation(v string) *HeadObjectOutput {+ s.WebsiteRedirectLocation = &v+ return s+}++type IndexDocument struct {+ _ struct{} `type:"structure"`++ // A suffix that is appended to a request that is for a directory on the website+ // endpoint (e.g. if the suffix is index.html and you make a request to samplebucket/images/+ // the data that is returned will be for the object with the key name images/index.html)+ // The suffix must not be empty and must not include a slash character.+ //+ // Suffix is a required field+ Suffix *string `type:"string" required:"true"`+}++// String returns the string representation+func (s IndexDocument) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s IndexDocument) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *IndexDocument) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "IndexDocument"}+ if s.Suffix == nil {+ invalidParams.Add(request.NewErrParamRequired("Suffix"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetSuffix sets the Suffix field's value.+func (s *IndexDocument) SetSuffix(v string) *IndexDocument {+ s.Suffix = &v+ return s+}+type Initiator struct {_ struct{} `type:"structure"`@@ -3897,6 +8736,18 @@ func (s Initiator) GoString() string {return s.String()}+// SetDisplayName sets the DisplayName field's value.+func (s *Initiator) SetDisplayName(v string) *Initiator {+ s.DisplayName = &v+ return s+}++// SetID sets the ID field's value.+func (s *Initiator) SetID(v string) *Initiator {+ s.ID = &v+ return s+}+// Container for object key name prefix and suffix filtering rules.type KeyFilter struct {_ struct{} `type:"structure"`@@ -3916,15 +8767,21 @@ func (s KeyFilter) GoString() string {return s.String()}+// SetFilterRules sets the FilterRules field's value.+func (s *KeyFilter) SetFilterRules(v []*FilterRule) *KeyFilter {+ s.FilterRules = v+ return s+}+// Container for specifying the AWS Lambda notification configuration.type LambdaFunctionConfiguration struct {_ struct{} `type:"structure"`+ // Events is a required fieldEvents []*string `locationName:"Event" type:"list" flattened:"true" required:"true"`// Container for object key name filtering rules. For information about key// name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)- // in the Amazon Simple Storage Service Developer Guide.Filter *NotificationConfigurationFilter `type:"structure"`// Optional unique identifier for configurations in a notification configuration.@@ -3933,6 +8790,8 @@ type LambdaFunctionConfiguration struct {// Lambda cloud function ARN that Amazon S3 can invoke when it detects events// of the specified type.+ //+ // LambdaFunctionArn is a required fieldLambdaFunctionArn *string `locationName:"CloudFunction" type:"string" required:"true"`}@@ -3946,9 +8805,50 @@ func (s LambdaFunctionConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *LambdaFunctionConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "LambdaFunctionConfiguration"}+ if s.Events == nil {+ invalidParams.Add(request.NewErrParamRequired("Events"))+ }+ if s.LambdaFunctionArn == nil {+ invalidParams.Add(request.NewErrParamRequired("LambdaFunctionArn"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetEvents sets the Events field's value.+func (s *LambdaFunctionConfiguration) SetEvents(v []*string) *LambdaFunctionConfiguration {+ s.Events = v+ return s+}++// SetFilter sets the Filter field's value.+func (s *LambdaFunctionConfiguration) SetFilter(v *NotificationConfigurationFilter) *LambdaFunctionConfiguration {+ s.Filter = v+ return s+}++// SetId sets the Id field's value.+func (s *LambdaFunctionConfiguration) SetId(v string) *LambdaFunctionConfiguration {+ s.Id = &v+ return s+}++// SetLambdaFunctionArn sets the LambdaFunctionArn field's value.+func (s *LambdaFunctionConfiguration) SetLambdaFunctionArn(v string) *LambdaFunctionConfiguration {+ s.LambdaFunctionArn = &v+ return s+}+type LifecycleConfiguration struct {_ struct{} `type:"structure"`+ // Rules is a required fieldRules []*Rule `locationName:"Rule" type:"list" flattened:"true" required:"true"`}@@ -3962,6 +8862,35 @@ func (s LifecycleConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *LifecycleConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "LifecycleConfiguration"}+ if s.Rules == nil {+ invalidParams.Add(request.NewErrParamRequired("Rules"))+ }+ if s.Rules != nil {+ for i, v := range s.Rules {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetRules sets the Rules field's value.+func (s *LifecycleConfiguration) SetRules(v []*Rule) *LifecycleConfiguration {+ s.Rules = v+ return s+}+type LifecycleExpiration struct {_ struct{} `type:"structure"`@@ -3972,6 +8901,12 @@ type LifecycleExpiration struct {// Indicates the lifetime, in days, of the objects that are subject to the rule.// The value must be a non-zero positive integer.Days *int64 `type:"integer"`++ // Indicates whether Amazon S3 will remove a delete marker with no noncurrent+ // versions. If set to true, the delete marker will be expired; if set to false+ // the policy takes no action. This cannot be specified with Days or Date in+ // a Lifecycle Expiration Policy.+ ExpiredObjectDeleteMarker *bool `type:"boolean"`}// String returns the string representation@@ -3984,9 +8919,31 @@ func (s LifecycleExpiration) GoString() string {return s.String()}+// SetDate sets the Date field's value.+func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration {+ s.Date = &v+ return s+}++// SetDays sets the Days field's value.+func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration {+ s.Days = &v+ return s+}++// SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field's value.+func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration {+ s.ExpiredObjectDeleteMarker = &v+ return s+}+type LifecycleRule struct {_ struct{} `type:"structure"`+ // Specifies the days since the initiation of an Incomplete Multipart Upload+ // that Lifecycle will wait before permanently removing all parts of the upload.+ AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"`+Expiration *LifecycleExpiration `type:"structure"`// Unique identifier for the rule. The value cannot be longer than 255 characters.@@ -4002,10 +8959,14 @@ type LifecycleRule struct {NoncurrentVersionTransitions []*NoncurrentVersionTransition `locationName:"NoncurrentVersionTransition" type:"list" flattened:"true"`// Prefix identifying one or more objects to which the rule applies.+ //+ // Prefix is a required fieldPrefix *string `type:"string" required:"true"`// If 'Enabled', the rule is currently being applied. If 'Disabled', the rule// is not currently being applied.+ //+ // Status is a required fieldStatus *string `type:"string" required:"true" enum:"ExpirationStatus"`Transitions []*Transition `locationName:"Transition" type:"list" flattened:"true"`@@ -4021,6 +8982,70 @@ func (s LifecycleRule) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *LifecycleRule) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "LifecycleRule"}+ if s.Prefix == nil {+ invalidParams.Add(request.NewErrParamRequired("Prefix"))+ }+ if s.Status == nil {+ invalidParams.Add(request.NewErrParamRequired("Status"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value.+func (s *LifecycleRule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *LifecycleRule {+ s.AbortIncompleteMultipartUpload = v+ return s+}++// SetExpiration sets the Expiration field's value.+func (s *LifecycleRule) SetExpiration(v *LifecycleExpiration) *LifecycleRule {+ s.Expiration = v+ return s+}++// SetID sets the ID field's value.+func (s *LifecycleRule) SetID(v string) *LifecycleRule {+ s.ID = &v+ return s+}++// SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value.+func (s *LifecycleRule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *LifecycleRule {+ s.NoncurrentVersionExpiration = v+ return s+}++// SetNoncurrentVersionTransitions sets the NoncurrentVersionTransitions field's value.+func (s *LifecycleRule) SetNoncurrentVersionTransitions(v []*NoncurrentVersionTransition) *LifecycleRule {+ s.NoncurrentVersionTransitions = v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *LifecycleRule) SetPrefix(v string) *LifecycleRule {+ s.Prefix = &v+ return s+}++// SetStatus sets the Status field's value.+func (s *LifecycleRule) SetStatus(v string) *LifecycleRule {+ s.Status = &v+ return s+}++// SetTransitions sets the Transitions field's value.+func (s *LifecycleRule) SetTransitions(v []*Transition) *LifecycleRule {+ s.Transitions = v+ return s+}+type ListBucketsInput struct {_ struct{} `type:"structure"`}@@ -4053,9 +9078,22 @@ func (s ListBucketsOutput) GoString() string {return s.String()}+// SetBuckets sets the Buckets field's value.+func (s *ListBucketsOutput) SetBuckets(v []*Bucket) *ListBucketsOutput {+ s.Buckets = v+ return s+}++// SetOwner sets the Owner field's value.+func (s *ListBucketsOutput) SetOwner(v *Owner) *ListBucketsOutput {+ s.Owner = v+ return s+}+type ListMultipartUploadsInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Character you use to group keys.@@ -4098,6 +9136,61 @@ func (s ListMultipartUploadsInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *ListMultipartUploadsInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "ListMultipartUploadsInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *ListMultipartUploadsInput) SetBucket(v string) *ListMultipartUploadsInput {+ s.Bucket = &v+ return s+}++// SetDelimiter sets the Delimiter field's value.+func (s *ListMultipartUploadsInput) SetDelimiter(v string) *ListMultipartUploadsInput {+ s.Delimiter = &v+ return s+}++// SetEncodingType sets the EncodingType field's value.+func (s *ListMultipartUploadsInput) SetEncodingType(v string) *ListMultipartUploadsInput {+ s.EncodingType = &v+ return s+}++// SetKeyMarker sets the KeyMarker field's value.+func (s *ListMultipartUploadsInput) SetKeyMarker(v string) *ListMultipartUploadsInput {+ s.KeyMarker = &v+ return s+}++// SetMaxUploads sets the MaxUploads field's value.+func (s *ListMultipartUploadsInput) SetMaxUploads(v int64) *ListMultipartUploadsInput {+ s.MaxUploads = &v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *ListMultipartUploadsInput) SetPrefix(v string) *ListMultipartUploadsInput {+ s.Prefix = &v+ return s+}++// SetUploadIdMarker sets the UploadIdMarker field's value.+func (s *ListMultipartUploadsInput) SetUploadIdMarker(v string) *ListMultipartUploadsInput {+ s.UploadIdMarker = &v+ return s+}+type ListMultipartUploadsOutput struct {_ struct{} `type:"structure"`@@ -4152,9 +9245,82 @@ func (s ListMultipartUploadsOutput) GoString() string {return s.String()}+// SetBucket sets the Bucket field's value.+func (s *ListMultipartUploadsOutput) SetBucket(v string) *ListMultipartUploadsOutput {+ s.Bucket = &v+ return s+}++// SetCommonPrefixes sets the CommonPrefixes field's value.+func (s *ListMultipartUploadsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListMultipartUploadsOutput {+ s.CommonPrefixes = v+ return s+}++// SetDelimiter sets the Delimiter field's value.+func (s *ListMultipartUploadsOutput) SetDelimiter(v string) *ListMultipartUploadsOutput {+ s.Delimiter = &v+ return s+}++// SetEncodingType sets the EncodingType field's value.+func (s *ListMultipartUploadsOutput) SetEncodingType(v string) *ListMultipartUploadsOutput {+ s.EncodingType = &v+ return s+}++// SetIsTruncated sets the IsTruncated field's value.+func (s *ListMultipartUploadsOutput) SetIsTruncated(v bool) *ListMultipartUploadsOutput {+ s.IsTruncated = &v+ return s+}++// SetKeyMarker sets the KeyMarker field's value.+func (s *ListMultipartUploadsOutput) SetKeyMarker(v string) *ListMultipartUploadsOutput {+ s.KeyMarker = &v+ return s+}++// SetMaxUploads sets the MaxUploads field's value.+func (s *ListMultipartUploadsOutput) SetMaxUploads(v int64) *ListMultipartUploadsOutput {+ s.MaxUploads = &v+ return s+}++// SetNextKeyMarker sets the NextKeyMarker field's value.+func (s *ListMultipartUploadsOutput) SetNextKeyMarker(v string) *ListMultipartUploadsOutput {+ s.NextKeyMarker = &v+ return s+}++// SetNextUploadIdMarker sets the NextUploadIdMarker field's value.+func (s *ListMultipartUploadsOutput) SetNextUploadIdMarker(v string) *ListMultipartUploadsOutput {+ s.NextUploadIdMarker = &v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *ListMultipartUploadsOutput) SetPrefix(v string) *ListMultipartUploadsOutput {+ s.Prefix = &v+ return s+}++// SetUploadIdMarker sets the UploadIdMarker field's value.+func (s *ListMultipartUploadsOutput) SetUploadIdMarker(v string) *ListMultipartUploadsOutput {+ s.UploadIdMarker = &v+ return s+}++// SetUploads sets the Uploads field's value.+func (s *ListMultipartUploadsOutput) SetUploads(v []*MultipartUpload) *ListMultipartUploadsOutput {+ s.Uploads = v+ return s+}+type ListObjectVersionsInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// A delimiter is a character you use to group keys.@@ -4192,6 +9358,61 @@ func (s ListObjectVersionsInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *ListObjectVersionsInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "ListObjectVersionsInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *ListObjectVersionsInput) SetBucket(v string) *ListObjectVersionsInput {+ s.Bucket = &v+ return s+}++// SetDelimiter sets the Delimiter field's value.+func (s *ListObjectVersionsInput) SetDelimiter(v string) *ListObjectVersionsInput {+ s.Delimiter = &v+ return s+}++// SetEncodingType sets the EncodingType field's value.+func (s *ListObjectVersionsInput) SetEncodingType(v string) *ListObjectVersionsInput {+ s.EncodingType = &v+ return s+}++// SetKeyMarker sets the KeyMarker field's value.+func (s *ListObjectVersionsInput) SetKeyMarker(v string) *ListObjectVersionsInput {+ s.KeyMarker = &v+ return s+}++// SetMaxKeys sets the MaxKeys field's value.+func (s *ListObjectVersionsInput) SetMaxKeys(v int64) *ListObjectVersionsInput {+ s.MaxKeys = &v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *ListObjectVersionsInput) SetPrefix(v string) *ListObjectVersionsInput {+ s.Prefix = &v+ return s+}++// SetVersionIdMarker sets the VersionIdMarker field's value.+func (s *ListObjectVersionsInput) SetVersionIdMarker(v string) *ListObjectVersionsInput {+ s.VersionIdMarker = &v+ return s+}+type ListObjectVersionsOutput struct {_ struct{} `type:"structure"`@@ -4241,9 +9462,88 @@ func (s ListObjectVersionsOutput) GoString() string {return s.String()}+// SetCommonPrefixes sets the CommonPrefixes field's value.+func (s *ListObjectVersionsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectVersionsOutput {+ s.CommonPrefixes = v+ return s+}++// SetDeleteMarkers sets the DeleteMarkers field's value.+func (s *ListObjectVersionsOutput) SetDeleteMarkers(v []*DeleteMarkerEntry) *ListObjectVersionsOutput {+ s.DeleteMarkers = v+ return s+}++// SetDelimiter sets the Delimiter field's value.+func (s *ListObjectVersionsOutput) SetDelimiter(v string) *ListObjectVersionsOutput {+ s.Delimiter = &v+ return s+}++// SetEncodingType sets the EncodingType field's value.+func (s *ListObjectVersionsOutput) SetEncodingType(v string) *ListObjectVersionsOutput {+ s.EncodingType = &v+ return s+}++// SetIsTruncated sets the IsTruncated field's value.+func (s *ListObjectVersionsOutput) SetIsTruncated(v bool) *ListObjectVersionsOutput {+ s.IsTruncated = &v+ return s+}++// SetKeyMarker sets the KeyMarker field's value.+func (s *ListObjectVersionsOutput) SetKeyMarker(v string) *ListObjectVersionsOutput {+ s.KeyMarker = &v+ return s+}++// SetMaxKeys sets the MaxKeys field's value.+func (s *ListObjectVersionsOutput) SetMaxKeys(v int64) *ListObjectVersionsOutput {+ s.MaxKeys = &v+ return s+}++// SetName sets the Name field's value.+func (s *ListObjectVersionsOutput) SetName(v string) *ListObjectVersionsOutput {+ s.Name = &v+ return s+}++// SetNextKeyMarker sets the NextKeyMarker field's value.+func (s *ListObjectVersionsOutput) SetNextKeyMarker(v string) *ListObjectVersionsOutput {+ s.NextKeyMarker = &v+ return s+}++// SetNextVersionIdMarker sets the NextVersionIdMarker field's value.+func (s *ListObjectVersionsOutput) SetNextVersionIdMarker(v string) *ListObjectVersionsOutput {+ s.NextVersionIdMarker = &v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *ListObjectVersionsOutput) SetPrefix(v string) *ListObjectVersionsOutput {+ s.Prefix = &v+ return s+}++// SetVersionIdMarker sets the VersionIdMarker field's value.+func (s *ListObjectVersionsOutput) SetVersionIdMarker(v string) *ListObjectVersionsOutput {+ s.VersionIdMarker = &v+ return s+}++// SetVersions sets the Versions field's value.+func (s *ListObjectVersionsOutput) SetVersions(v []*ObjectVersion) *ListObjectVersionsOutput {+ s.Versions = v+ return s+}+type ListObjectsInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// A delimiter is a character you use to group keys.@@ -4266,6 +9566,11 @@ type ListObjectsInput struct {// Limits the response to keys that begin with the specified prefix.Prefix *string `location:"querystring" locationName:"prefix" type:"string"`++ // Confirms that the requester knows that she or he will be charged for the+ // list objects request. Bucket owners need not specify this parameter in their+ // requests.+ RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`}// String returns the string representation@@ -4278,6 +9583,61 @@ func (s ListObjectsInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *ListObjectsInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "ListObjectsInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *ListObjectsInput) SetBucket(v string) *ListObjectsInput {+ s.Bucket = &v+ return s+}++// SetDelimiter sets the Delimiter field's value.+func (s *ListObjectsInput) SetDelimiter(v string) *ListObjectsInput {+ s.Delimiter = &v+ return s+}++// SetEncodingType sets the EncodingType field's value.+func (s *ListObjectsInput) SetEncodingType(v string) *ListObjectsInput {+ s.EncodingType = &v+ return s+}++// SetMarker sets the Marker field's value.+func (s *ListObjectsInput) SetMarker(v string) *ListObjectsInput {+ s.Marker = &v+ return s+}++// SetMaxKeys sets the MaxKeys field's value.+func (s *ListObjectsInput) SetMaxKeys(v int64) *ListObjectsInput {+ s.MaxKeys = &v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *ListObjectsInput) SetPrefix(v string) *ListObjectsInput {+ s.Prefix = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *ListObjectsInput) SetRequestPayer(v string) *ListObjectsInput {+ s.RequestPayer = &v+ return s+}+type ListObjectsOutput struct {_ struct{} `type:"structure"`@@ -4322,11 +9682,324 @@ func (s ListObjectsOutput) GoString() string {return s.String()}+// SetCommonPrefixes sets the CommonPrefixes field's value.+func (s *ListObjectsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsOutput {+ s.CommonPrefixes = v+ return s+}++// SetContents sets the Contents field's value.+func (s *ListObjectsOutput) SetContents(v []*Object) *ListObjectsOutput {+ s.Contents = v+ return s+}++// SetDelimiter sets the Delimiter field's value.+func (s *ListObjectsOutput) SetDelimiter(v string) *ListObjectsOutput {+ s.Delimiter = &v+ return s+}++// SetEncodingType sets the EncodingType field's value.+func (s *ListObjectsOutput) SetEncodingType(v string) *ListObjectsOutput {+ s.EncodingType = &v+ return s+}++// SetIsTruncated sets the IsTruncated field's value.+func (s *ListObjectsOutput) SetIsTruncated(v bool) *ListObjectsOutput {+ s.IsTruncated = &v+ return s+}++// SetMarker sets the Marker field's value.+func (s *ListObjectsOutput) SetMarker(v string) *ListObjectsOutput {+ s.Marker = &v+ return s+}++// SetMaxKeys sets the MaxKeys field's value.+func (s *ListObjectsOutput) SetMaxKeys(v int64) *ListObjectsOutput {+ s.MaxKeys = &v+ return s+}++// SetName sets the Name field's value.+func (s *ListObjectsOutput) SetName(v string) *ListObjectsOutput {+ s.Name = &v+ return s+}++// SetNextMarker sets the NextMarker field's value.+func (s *ListObjectsOutput) SetNextMarker(v string) *ListObjectsOutput {+ s.NextMarker = &v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *ListObjectsOutput) SetPrefix(v string) *ListObjectsOutput {+ s.Prefix = &v+ return s+}++type ListObjectsV2Input struct {+ _ struct{} `type:"structure"`++ // Name of the bucket to list.+ //+ // Bucket is a required field+ Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`++ // ContinuationToken indicates Amazon S3 that the list is being continued on+ // this bucket with a token. ContinuationToken is obfuscated and is not a real+ // key+ ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"`++ // A delimiter is a character you use to group keys.+ Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"`++ // Encoding type used by Amazon S3 to encode object keys in the response.+ EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"`++ // The owner field is not present in listV2 by default, if you want to return+ // owner field with each key in the result then set the fetch owner field to+ // true+ FetchOwner *bool `location:"querystring" locationName:"fetch-owner" type:"boolean"`++ // Sets the maximum number of keys returned in the response. The response might+ // contain fewer keys but will never contain more.+ MaxKeys *int64 `location:"querystring" locationName:"max-keys" type:"integer"`++ // Limits the response to keys that begin with the specified prefix.+ Prefix *string `location:"querystring" locationName:"prefix" type:"string"`++ // Confirms that the requester knows that she or he will be charged for the+ // list objects request in V2 style. Bucket owners need not specify this parameter+ // in their requests.+ RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`++ // StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts+ // listing after this specified key. StartAfter can be any key in the bucket+ StartAfter *string `location:"querystring" locationName:"start-after" type:"string"`+}++// String returns the string representation+func (s ListObjectsV2Input) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s ListObjectsV2Input) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *ListObjectsV2Input) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "ListObjectsV2Input"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *ListObjectsV2Input) SetBucket(v string) *ListObjectsV2Input {+ s.Bucket = &v+ return s+}++// SetContinuationToken sets the ContinuationToken field's value.+func (s *ListObjectsV2Input) SetContinuationToken(v string) *ListObjectsV2Input {+ s.ContinuationToken = &v+ return s+}++// SetDelimiter sets the Delimiter field's value.+func (s *ListObjectsV2Input) SetDelimiter(v string) *ListObjectsV2Input {+ s.Delimiter = &v+ return s+}++// SetEncodingType sets the EncodingType field's value.+func (s *ListObjectsV2Input) SetEncodingType(v string) *ListObjectsV2Input {+ s.EncodingType = &v+ return s+}++// SetFetchOwner sets the FetchOwner field's value.+func (s *ListObjectsV2Input) SetFetchOwner(v bool) *ListObjectsV2Input {+ s.FetchOwner = &v+ return s+}++// SetMaxKeys sets the MaxKeys field's value.+func (s *ListObjectsV2Input) SetMaxKeys(v int64) *ListObjectsV2Input {+ s.MaxKeys = &v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *ListObjectsV2Input) SetPrefix(v string) *ListObjectsV2Input {+ s.Prefix = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *ListObjectsV2Input) SetRequestPayer(v string) *ListObjectsV2Input {+ s.RequestPayer = &v+ return s+}++// SetStartAfter sets the StartAfter field's value.+func (s *ListObjectsV2Input) SetStartAfter(v string) *ListObjectsV2Input {+ s.StartAfter = &v+ return s+}++type ListObjectsV2Output struct {+ _ struct{} `type:"structure"`++ // CommonPrefixes contains all (if there are any) keys between Prefix and the+ // next occurrence of the string specified by delimiter+ CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"`++ // Metadata about each object returned.+ Contents []*Object `type:"list" flattened:"true"`++ // ContinuationToken indicates Amazon S3 that the list is being continued on+ // this bucket with a token. ContinuationToken is obfuscated and is not a real+ // key+ ContinuationToken *string `type:"string"`++ // A delimiter is a character you use to group keys.+ Delimiter *string `type:"string"`++ // Encoding type used by Amazon S3 to encode object keys in the response.+ EncodingType *string `type:"string" enum:"EncodingType"`++ // A flag that indicates whether or not Amazon S3 returned all of the results+ // that satisfied the search criteria.+ IsTruncated *bool `type:"boolean"`++ // KeyCount is the number of keys returned with this request. KeyCount will+ // always be less than equals to MaxKeys field. Say you ask for 50 keys, your+ // result will include less than equals 50 keys+ KeyCount *int64 `type:"integer"`++ // Sets the maximum number of keys returned in the response. The response might+ // contain fewer keys but will never contain more.+ MaxKeys *int64 `type:"integer"`++ // Name of the bucket to list.+ Name *string `type:"string"`++ // NextContinuationToken is sent when isTruncated is true which means there+ // are more keys in the bucket that can be listed. The next list requests to+ // Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken+ // is obfuscated and is not a real key+ NextContinuationToken *string `type:"string"`++ // Limits the response to keys that begin with the specified prefix.+ Prefix *string `type:"string"`++ // StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts+ // listing after this specified key. StartAfter can be any key in the bucket+ StartAfter *string `type:"string"`+}++// String returns the string representation+func (s ListObjectsV2Output) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s ListObjectsV2Output) GoString() string {+ return s.String()+}++// SetCommonPrefixes sets the CommonPrefixes field's value.+func (s *ListObjectsV2Output) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsV2Output {+ s.CommonPrefixes = v+ return s+}++// SetContents sets the Contents field's value.+func (s *ListObjectsV2Output) SetContents(v []*Object) *ListObjectsV2Output {+ s.Contents = v+ return s+}++// SetContinuationToken sets the ContinuationToken field's value.+func (s *ListObjectsV2Output) SetContinuationToken(v string) *ListObjectsV2Output {+ s.ContinuationToken = &v+ return s+}++// SetDelimiter sets the Delimiter field's value.+func (s *ListObjectsV2Output) SetDelimiter(v string) *ListObjectsV2Output {+ s.Delimiter = &v+ return s+}++// SetEncodingType sets the EncodingType field's value.+func (s *ListObjectsV2Output) SetEncodingType(v string) *ListObjectsV2Output {+ s.EncodingType = &v+ return s+}++// SetIsTruncated sets the IsTruncated field's value.+func (s *ListObjectsV2Output) SetIsTruncated(v bool) *ListObjectsV2Output {+ s.IsTruncated = &v+ return s+}++// SetKeyCount sets the KeyCount field's value.+func (s *ListObjectsV2Output) SetKeyCount(v int64) *ListObjectsV2Output {+ s.KeyCount = &v+ return s+}++// SetMaxKeys sets the MaxKeys field's value.+func (s *ListObjectsV2Output) SetMaxKeys(v int64) *ListObjectsV2Output {+ s.MaxKeys = &v+ return s+}++// SetName sets the Name field's value.+func (s *ListObjectsV2Output) SetName(v string) *ListObjectsV2Output {+ s.Name = &v+ return s+}++// SetNextContinuationToken sets the NextContinuationToken field's value.+func (s *ListObjectsV2Output) SetNextContinuationToken(v string) *ListObjectsV2Output {+ s.NextContinuationToken = &v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *ListObjectsV2Output) SetPrefix(v string) *ListObjectsV2Output {+ s.Prefix = &v+ return s+}++// SetStartAfter sets the StartAfter field's value.+func (s *ListObjectsV2Output) SetStartAfter(v string) *ListObjectsV2Output {+ s.StartAfter = &v+ return s+}+type ListPartsInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// Sets the maximum number of parts to return.@@ -4343,6 +10016,8 @@ type ListPartsInput struct {RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`// Upload ID identifying the multipart upload whose parts are being listed.+ //+ // UploadId is a required fieldUploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`}@@ -4356,9 +10031,74 @@ func (s ListPartsInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *ListPartsInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "ListPartsInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }+ if s.UploadId == nil {+ invalidParams.Add(request.NewErrParamRequired("UploadId"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *ListPartsInput) SetBucket(v string) *ListPartsInput {+ s.Bucket = &v+ return s+}++// SetKey sets the Key field's value.+func (s *ListPartsInput) SetKey(v string) *ListPartsInput {+ s.Key = &v+ return s+}++// SetMaxParts sets the MaxParts field's value.+func (s *ListPartsInput) SetMaxParts(v int64) *ListPartsInput {+ s.MaxParts = &v+ return s+}++// SetPartNumberMarker sets the PartNumberMarker field's value.+func (s *ListPartsInput) SetPartNumberMarker(v int64) *ListPartsInput {+ s.PartNumberMarker = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *ListPartsInput) SetRequestPayer(v string) *ListPartsInput {+ s.RequestPayer = &v+ return s+}++// SetUploadId sets the UploadId field's value.+func (s *ListPartsInput) SetUploadId(v string) *ListPartsInput {+ s.UploadId = &v+ return s+}+type ListPartsOutput struct {_ struct{} `type:"structure"`+ // Date when multipart upload will become eligible for abort operation by lifecycle.+ AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp" timestampFormat:"rfc822"`++ // Id of the lifecycle rule that makes a multipart upload eligible for abort+ // operation.+ AbortRuleId *string `location:"header" locationName:"x-amz-abort-rule-id" type:"string"`+// Name of the bucket to which the multipart upload was initiated.Bucket *string `type:"string"`@@ -4407,6 +10147,90 @@ func (s ListPartsOutput) GoString() string {return s.String()}+// SetAbortDate sets the AbortDate field's value.+func (s *ListPartsOutput) SetAbortDate(v time.Time) *ListPartsOutput {+ s.AbortDate = &v+ return s+}++// SetAbortRuleId sets the AbortRuleId field's value.+func (s *ListPartsOutput) SetAbortRuleId(v string) *ListPartsOutput {+ s.AbortRuleId = &v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *ListPartsOutput) SetBucket(v string) *ListPartsOutput {+ s.Bucket = &v+ return s+}++// SetInitiator sets the Initiator field's value.+func (s *ListPartsOutput) SetInitiator(v *Initiator) *ListPartsOutput {+ s.Initiator = v+ return s+}++// SetIsTruncated sets the IsTruncated field's value.+func (s *ListPartsOutput) SetIsTruncated(v bool) *ListPartsOutput {+ s.IsTruncated = &v+ return s+}++// SetKey sets the Key field's value.+func (s *ListPartsOutput) SetKey(v string) *ListPartsOutput {+ s.Key = &v+ return s+}++// SetMaxParts sets the MaxParts field's value.+func (s *ListPartsOutput) SetMaxParts(v int64) *ListPartsOutput {+ s.MaxParts = &v+ return s+}++// SetNextPartNumberMarker sets the NextPartNumberMarker field's value.+func (s *ListPartsOutput) SetNextPartNumberMarker(v int64) *ListPartsOutput {+ s.NextPartNumberMarker = &v+ return s+}++// SetOwner sets the Owner field's value.+func (s *ListPartsOutput) SetOwner(v *Owner) *ListPartsOutput {+ s.Owner = v+ return s+}++// SetPartNumberMarker sets the PartNumberMarker field's value.+func (s *ListPartsOutput) SetPartNumberMarker(v int64) *ListPartsOutput {+ s.PartNumberMarker = &v+ return s+}++// SetParts sets the Parts field's value.+func (s *ListPartsOutput) SetParts(v []*Part) *ListPartsOutput {+ s.Parts = v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *ListPartsOutput) SetRequestCharged(v string) *ListPartsOutput {+ s.RequestCharged = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *ListPartsOutput) SetStorageClass(v string) *ListPartsOutput {+ s.StorageClass = &v+ return s+}++// SetUploadId sets the UploadId field's value.+func (s *ListPartsOutput) SetUploadId(v string) *ListPartsOutput {+ s.UploadId = &v+ return s+}+type LoggingEnabled struct {_ struct{} `type:"structure"`@@ -4435,6 +10259,44 @@ func (s LoggingEnabled) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *LoggingEnabled) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "LoggingEnabled"}+ if s.TargetGrants != nil {+ for i, v := range s.TargetGrants {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetGrants", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetTargetBucket sets the TargetBucket field's value.+func (s *LoggingEnabled) SetTargetBucket(v string) *LoggingEnabled {+ s.TargetBucket = &v+ return s+}++// SetTargetGrants sets the TargetGrants field's value.+func (s *LoggingEnabled) SetTargetGrants(v []*TargetGrant) *LoggingEnabled {+ s.TargetGrants = v+ return s+}++// SetTargetPrefix sets the TargetPrefix field's value.+func (s *LoggingEnabled) SetTargetPrefix(v string) *LoggingEnabled {+ s.TargetPrefix = &v+ return s+}+type MultipartUpload struct {_ struct{} `type:"structure"`@@ -4466,6 +10328,42 @@ func (s MultipartUpload) GoString() string {return s.String()}+// SetInitiated sets the Initiated field's value.+func (s *MultipartUpload) SetInitiated(v time.Time) *MultipartUpload {+ s.Initiated = &v+ return s+}++// SetInitiator sets the Initiator field's value.+func (s *MultipartUpload) SetInitiator(v *Initiator) *MultipartUpload {+ s.Initiator = v+ return s+}++// SetKey sets the Key field's value.+func (s *MultipartUpload) SetKey(v string) *MultipartUpload {+ s.Key = &v+ return s+}++// SetOwner sets the Owner field's value.+func (s *MultipartUpload) SetOwner(v *Owner) *MultipartUpload {+ s.Owner = v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *MultipartUpload) SetStorageClass(v string) *MultipartUpload {+ s.StorageClass = &v+ return s+}++// SetUploadId sets the UploadId field's value.+func (s *MultipartUpload) SetUploadId(v string) *MultipartUpload {+ s.UploadId = &v+ return s+}+// Specifies when noncurrent object versions expire. Upon expiration, Amazon// S3 permanently deletes the noncurrent object versions. You set this lifecycle// configuration action on a bucket that has versioning enabled (or suspended)@@ -4477,8 +10375,7 @@ type NoncurrentVersionExpiration struct {// Specifies the number of days an object is noncurrent before Amazon S3 can// perform the associated action. For information about the noncurrent days// calculations, see How Amazon S3 Calculates When an Object Became Noncurrent- // (/AmazonS3/latest/dev/s3-access-control.html) in the Amazon Simple Storage- // Service Developer Guide.+ // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html)NoncurrentDays *int64 `type:"integer"`}@@ -4492,6 +10389,12 @@ func (s NoncurrentVersionExpiration) GoString() string {return s.String()}+// SetNoncurrentDays sets the NoncurrentDays field's value.+func (s *NoncurrentVersionExpiration) SetNoncurrentDays(v int64) *NoncurrentVersionExpiration {+ s.NoncurrentDays = &v+ return s+}+// Container for the transition rule that describes when noncurrent objects// transition to the STANDARD_IA or GLACIER storage class. If your bucket is// versioning-enabled (or versioning is suspended), you can set this action@@ -4503,8 +10406,7 @@ type NoncurrentVersionTransition struct {// Specifies the number of days an object is noncurrent before Amazon S3 can// perform the associated action. For information about the noncurrent days// calculations, see How Amazon S3 Calculates When an Object Became Noncurrent- // (/AmazonS3/latest/dev/s3-access-control.html) in the Amazon Simple Storage- // Service Developer Guide.+ // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html)NoncurrentDays *int64 `type:"integer"`// The class of storage used to store the object.@@ -4521,6 +10423,18 @@ func (s NoncurrentVersionTransition) GoString() string {return s.String()}+// SetNoncurrentDays sets the NoncurrentDays field's value.+func (s *NoncurrentVersionTransition) SetNoncurrentDays(v int64) *NoncurrentVersionTransition {+ s.NoncurrentDays = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersionTransition {+ s.StorageClass = &v+ return s+}+// Container for specifying the notification configuration of the bucket. If// this element is empty, notifications are turned off on the bucket.type NotificationConfiguration struct {@@ -4543,6 +10457,64 @@ func (s NotificationConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *NotificationConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "NotificationConfiguration"}+ if s.LambdaFunctionConfigurations != nil {+ for i, v := range s.LambdaFunctionConfigurations {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LambdaFunctionConfigurations", i), err.(request.ErrInvalidParams))+ }+ }+ }+ if s.QueueConfigurations != nil {+ for i, v := range s.QueueConfigurations {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueueConfigurations", i), err.(request.ErrInvalidParams))+ }+ }+ }+ if s.TopicConfigurations != nil {+ for i, v := range s.TopicConfigurations {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TopicConfigurations", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetLambdaFunctionConfigurations sets the LambdaFunctionConfigurations field's value.+func (s *NotificationConfiguration) SetLambdaFunctionConfigurations(v []*LambdaFunctionConfiguration) *NotificationConfiguration {+ s.LambdaFunctionConfigurations = v+ return s+}++// SetQueueConfigurations sets the QueueConfigurations field's value.+func (s *NotificationConfiguration) SetQueueConfigurations(v []*QueueConfiguration) *NotificationConfiguration {+ s.QueueConfigurations = v+ return s+}++// SetTopicConfigurations sets the TopicConfigurations field's value.+func (s *NotificationConfiguration) SetTopicConfigurations(v []*TopicConfiguration) *NotificationConfiguration {+ s.TopicConfigurations = v+ return s+}+type NotificationConfigurationDeprecated struct {_ struct{} `type:"structure"`@@ -4563,9 +10535,26 @@ func (s NotificationConfigurationDeprecated) GoString() string {return s.String()}+// SetCloudFunctionConfiguration sets the CloudFunctionConfiguration field's value.+func (s *NotificationConfigurationDeprecated) SetCloudFunctionConfiguration(v *CloudFunctionConfiguration) *NotificationConfigurationDeprecated {+ s.CloudFunctionConfiguration = v+ return s+}++// SetQueueConfiguration sets the QueueConfiguration field's value.+func (s *NotificationConfigurationDeprecated) SetQueueConfiguration(v *QueueConfigurationDeprecated) *NotificationConfigurationDeprecated {+ s.QueueConfiguration = v+ return s+}++// SetTopicConfiguration sets the TopicConfiguration field's value.+func (s *NotificationConfigurationDeprecated) SetTopicConfiguration(v *TopicConfigurationDeprecated) *NotificationConfigurationDeprecated {+ s.TopicConfiguration = v+ return s+}+// Container for object key name filtering rules. For information about key// name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)-// in the Amazon Simple Storage Service Developer Guide.type NotificationConfigurationFilter struct {_ struct{} `type:"structure"`@@ -4583,6 +10572,12 @@ func (s NotificationConfigurationFilter) GoString() string {return s.String()}+// SetKey sets the Key field's value.+func (s *NotificationConfigurationFilter) SetKey(v *KeyFilter) *NotificationConfigurationFilter {+ s.Key = v+ return s+}+type Object struct {_ struct{} `type:"structure"`@@ -4610,10 +10605,48 @@ func (s Object) GoString() string {return s.String()}+// SetETag sets the ETag field's value.+func (s *Object) SetETag(v string) *Object {+ s.ETag = &v+ return s+}++// SetKey sets the Key field's value.+func (s *Object) SetKey(v string) *Object {+ s.Key = &v+ return s+}++// SetLastModified sets the LastModified field's value.+func (s *Object) SetLastModified(v time.Time) *Object {+ s.LastModified = &v+ return s+}++// SetOwner sets the Owner field's value.+func (s *Object) SetOwner(v *Owner) *Object {+ s.Owner = v+ return s+}++// SetSize sets the Size field's value.+func (s *Object) SetSize(v int64) *Object {+ s.Size = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *Object) SetStorageClass(v string) *Object {+ s.StorageClass = &v+ return s+}+type ObjectIdentifier struct {_ struct{} `type:"structure"`// Key name of the object to delete.+ //+ // Key is a required fieldKey *string `min:"1" type:"string" required:"true"`// VersionId for the specific version of the object to delete.@@ -4630,6 +10663,34 @@ func (s ObjectIdentifier) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *ObjectIdentifier) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "ObjectIdentifier"}+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetKey sets the Key field's value.+func (s *ObjectIdentifier) SetKey(v string) *ObjectIdentifier {+ s.Key = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *ObjectIdentifier) SetVersionId(v string) *ObjectIdentifier {+ s.VersionId = &v+ return s+}+type ObjectVersion struct {_ struct{} `type:"structure"`@@ -4667,6 +10728,54 @@ func (s ObjectVersion) GoString() string {return s.String()}+// SetETag sets the ETag field's value.+func (s *ObjectVersion) SetETag(v string) *ObjectVersion {+ s.ETag = &v+ return s+}++// SetIsLatest sets the IsLatest field's value.+func (s *ObjectVersion) SetIsLatest(v bool) *ObjectVersion {+ s.IsLatest = &v+ return s+}++// SetKey sets the Key field's value.+func (s *ObjectVersion) SetKey(v string) *ObjectVersion {+ s.Key = &v+ return s+}++// SetLastModified sets the LastModified field's value.+func (s *ObjectVersion) SetLastModified(v time.Time) *ObjectVersion {+ s.LastModified = &v+ return s+}++// SetOwner sets the Owner field's value.+func (s *ObjectVersion) SetOwner(v *Owner) *ObjectVersion {+ s.Owner = v+ return s+}++// SetSize sets the Size field's value.+func (s *ObjectVersion) SetSize(v int64) *ObjectVersion {+ s.Size = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *ObjectVersion) SetStorageClass(v string) *ObjectVersion {+ s.StorageClass = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *ObjectVersion) SetVersionId(v string) *ObjectVersion {+ s.VersionId = &v+ return s+}+type Owner struct {_ struct{} `type:"structure"`@@ -4685,6 +10794,18 @@ func (s Owner) GoString() string {return s.String()}+// SetDisplayName sets the DisplayName field's value.+func (s *Owner) SetDisplayName(v string) *Owner {+ s.DisplayName = &v+ return s+}++// SetID sets the ID field's value.+func (s *Owner) SetID(v string) *Owner {+ s.ID = &v+ return s+}+type Part struct {_ struct{} `type:"structure"`@@ -4712,6 +10833,96 @@ func (s Part) GoString() string {return s.String()}+// SetETag sets the ETag field's value.+func (s *Part) SetETag(v string) *Part {+ s.ETag = &v+ return s+}++// SetLastModified sets the LastModified field's value.+func (s *Part) SetLastModified(v time.Time) *Part {+ s.LastModified = &v+ return s+}++// SetPartNumber sets the PartNumber field's value.+func (s *Part) SetPartNumber(v int64) *Part {+ s.PartNumber = &v+ return s+}++// SetSize sets the Size field's value.+func (s *Part) SetSize(v int64) *Part {+ s.Size = &v+ return s+}++type PutBucketAccelerateConfigurationInput struct {+ _ struct{} `type:"structure" payload:"AccelerateConfiguration"`++ // Specifies the Accelerate Configuration you want to set for the bucket.+ //+ // AccelerateConfiguration is a required field+ AccelerateConfiguration *AccelerateConfiguration `locationName:"AccelerateConfiguration" type:"structure" required:"true"`++ // Name of the bucket for which the accelerate configuration is set.+ //+ // Bucket is a required field+ Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+}++// String returns the string representation+func (s PutBucketAccelerateConfigurationInput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s PutBucketAccelerateConfigurationInput) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketAccelerateConfigurationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketAccelerateConfigurationInput"}+ if s.AccelerateConfiguration == nil {+ invalidParams.Add(request.NewErrParamRequired("AccelerateConfiguration"))+ }+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetAccelerateConfiguration sets the AccelerateConfiguration field's value.+func (s *PutBucketAccelerateConfigurationInput) SetAccelerateConfiguration(v *AccelerateConfiguration) *PutBucketAccelerateConfigurationInput {+ s.AccelerateConfiguration = v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketAccelerateConfigurationInput) SetBucket(v string) *PutBucketAccelerateConfigurationInput {+ s.Bucket = &v+ return s+}++type PutBucketAccelerateConfigurationOutput struct {+ _ struct{} `type:"structure"`+}++// String returns the string representation+func (s PutBucketAccelerateConfigurationOutput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s PutBucketAccelerateConfigurationOutput) GoString() string {+ return s.String()+}+type PutBucketAclInput struct {_ struct{} `type:"structure" payload:"AccessControlPolicy"`@@ -4720,6 +10931,7 @@ type PutBucketAclInput struct {AccessControlPolicy *AccessControlPolicy `locationName:"AccessControlPolicy" type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Allows grantee the read, write, read ACP, and write ACP permissions on the@@ -4749,6 +10961,72 @@ func (s PutBucketAclInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketAclInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketAclInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.AccessControlPolicy != nil {+ if err := s.AccessControlPolicy.Validate(); err != nil {+ invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetACL sets the ACL field's value.+func (s *PutBucketAclInput) SetACL(v string) *PutBucketAclInput {+ s.ACL = &v+ return s+}++// SetAccessControlPolicy sets the AccessControlPolicy field's value.+func (s *PutBucketAclInput) SetAccessControlPolicy(v *AccessControlPolicy) *PutBucketAclInput {+ s.AccessControlPolicy = v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketAclInput) SetBucket(v string) *PutBucketAclInput {+ s.Bucket = &v+ return s+}++// SetGrantFullControl sets the GrantFullControl field's value.+func (s *PutBucketAclInput) SetGrantFullControl(v string) *PutBucketAclInput {+ s.GrantFullControl = &v+ return s+}++// SetGrantRead sets the GrantRead field's value.+func (s *PutBucketAclInput) SetGrantRead(v string) *PutBucketAclInput {+ s.GrantRead = &v+ return s+}++// SetGrantReadACP sets the GrantReadACP field's value.+func (s *PutBucketAclInput) SetGrantReadACP(v string) *PutBucketAclInput {+ s.GrantReadACP = &v+ return s+}++// SetGrantWrite sets the GrantWrite field's value.+func (s *PutBucketAclInput) SetGrantWrite(v string) *PutBucketAclInput {+ s.GrantWrite = &v+ return s+}++// SetGrantWriteACP sets the GrantWriteACP field's value.+func (s *PutBucketAclInput) SetGrantWriteACP(v string) *PutBucketAclInput {+ s.GrantWriteACP = &v+ return s+}+type PutBucketAclOutput struct {_ struct{} `type:"structure"`}@@ -4766,8 +11044,10 @@ func (s PutBucketAclOutput) GoString() string {type PutBucketCorsInput struct {_ struct{} `type:"structure" payload:"CORSConfiguration"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // CORSConfiguration is a required fieldCORSConfiguration *CORSConfiguration `locationName:"CORSConfiguration" type:"structure" required:"true"`}@@ -4781,6 +11061,39 @@ func (s PutBucketCorsInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketCorsInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketCorsInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.CORSConfiguration == nil {+ invalidParams.Add(request.NewErrParamRequired("CORSConfiguration"))+ }+ if s.CORSConfiguration != nil {+ if err := s.CORSConfiguration.Validate(); err != nil {+ invalidParams.AddNested("CORSConfiguration", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketCorsInput) SetBucket(v string) *PutBucketCorsInput {+ s.Bucket = &v+ return s+}++// SetCORSConfiguration sets the CORSConfiguration field's value.+func (s *PutBucketCorsInput) SetCORSConfiguration(v *CORSConfiguration) *PutBucketCorsInput {+ s.CORSConfiguration = v+ return s+}+type PutBucketCorsOutput struct {_ struct{} `type:"structure"`}@@ -4798,6 +11111,7 @@ func (s PutBucketCorsOutput) GoString() string {type PutBucketLifecycleConfigurationInput struct {_ struct{} `type:"structure" payload:"LifecycleConfiguration"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`LifecycleConfiguration *BucketLifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure"`@@ -4813,6 +11127,36 @@ func (s PutBucketLifecycleConfigurationInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketLifecycleConfigurationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketLifecycleConfigurationInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.LifecycleConfiguration != nil {+ if err := s.LifecycleConfiguration.Validate(); err != nil {+ invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketLifecycleConfigurationInput) SetBucket(v string) *PutBucketLifecycleConfigurationInput {+ s.Bucket = &v+ return s+}++// SetLifecycleConfiguration sets the LifecycleConfiguration field's value.+func (s *PutBucketLifecycleConfigurationInput) SetLifecycleConfiguration(v *BucketLifecycleConfiguration) *PutBucketLifecycleConfigurationInput {+ s.LifecycleConfiguration = v+ return s+}+type PutBucketLifecycleConfigurationOutput struct {_ struct{} `type:"structure"`}@@ -4830,6 +11174,7 @@ func (s PutBucketLifecycleConfigurationOutput) GoString() string {type PutBucketLifecycleInput struct {_ struct{} `type:"structure" payload:"LifecycleConfiguration"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`LifecycleConfiguration *LifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure"`@@ -4845,6 +11190,36 @@ func (s PutBucketLifecycleInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketLifecycleInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketLifecycleInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.LifecycleConfiguration != nil {+ if err := s.LifecycleConfiguration.Validate(); err != nil {+ invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketLifecycleInput) SetBucket(v string) *PutBucketLifecycleInput {+ s.Bucket = &v+ return s+}++// SetLifecycleConfiguration sets the LifecycleConfiguration field's value.+func (s *PutBucketLifecycleInput) SetLifecycleConfiguration(v *LifecycleConfiguration) *PutBucketLifecycleInput {+ s.LifecycleConfiguration = v+ return s+}+type PutBucketLifecycleOutput struct {_ struct{} `type:"structure"`}@@ -4862,8 +11237,10 @@ func (s PutBucketLifecycleOutput) GoString() string {type PutBucketLoggingInput struct {_ struct{} `type:"structure" payload:"BucketLoggingStatus"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // BucketLoggingStatus is a required fieldBucketLoggingStatus *BucketLoggingStatus `locationName:"BucketLoggingStatus" type:"structure" required:"true"`}@@ -4877,6 +11254,39 @@ func (s PutBucketLoggingInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketLoggingInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketLoggingInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.BucketLoggingStatus == nil {+ invalidParams.Add(request.NewErrParamRequired("BucketLoggingStatus"))+ }+ if s.BucketLoggingStatus != nil {+ if err := s.BucketLoggingStatus.Validate(); err != nil {+ invalidParams.AddNested("BucketLoggingStatus", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketLoggingInput) SetBucket(v string) *PutBucketLoggingInput {+ s.Bucket = &v+ return s+}++// SetBucketLoggingStatus sets the BucketLoggingStatus field's value.+func (s *PutBucketLoggingInput) SetBucketLoggingStatus(v *BucketLoggingStatus) *PutBucketLoggingInput {+ s.BucketLoggingStatus = v+ return s+}+type PutBucketLoggingOutput struct {_ struct{} `type:"structure"`}@@ -4894,10 +11304,13 @@ func (s PutBucketLoggingOutput) GoString() string {type PutBucketNotificationConfigurationInput struct {_ struct{} `type:"structure" payload:"NotificationConfiguration"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Container for specifying the notification configuration of the bucket. If// this element is empty, notifications are turned off on the bucket.+ //+ // NotificationConfiguration is a required fieldNotificationConfiguration *NotificationConfiguration `locationName:"NotificationConfiguration" type:"structure" required:"true"`}@@ -4911,6 +11324,39 @@ func (s PutBucketNotificationConfigurationInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketNotificationConfigurationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketNotificationConfigurationInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.NotificationConfiguration == nil {+ invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration"))+ }+ if s.NotificationConfiguration != nil {+ if err := s.NotificationConfiguration.Validate(); err != nil {+ invalidParams.AddNested("NotificationConfiguration", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketNotificationConfigurationInput) SetBucket(v string) *PutBucketNotificationConfigurationInput {+ s.Bucket = &v+ return s+}++// SetNotificationConfiguration sets the NotificationConfiguration field's value.+func (s *PutBucketNotificationConfigurationInput) SetNotificationConfiguration(v *NotificationConfiguration) *PutBucketNotificationConfigurationInput {+ s.NotificationConfiguration = v+ return s+}+type PutBucketNotificationConfigurationOutput struct {_ struct{} `type:"structure"`}@@ -4928,8 +11374,10 @@ func (s PutBucketNotificationConfigurationOutput) GoString() string {type PutBucketNotificationInput struct {_ struct{} `type:"structure" payload:"NotificationConfiguration"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // NotificationConfiguration is a required fieldNotificationConfiguration *NotificationConfigurationDeprecated `locationName:"NotificationConfiguration" type:"structure" required:"true"`}@@ -4943,6 +11391,34 @@ func (s PutBucketNotificationInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketNotificationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketNotificationInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.NotificationConfiguration == nil {+ invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketNotificationInput) SetBucket(v string) *PutBucketNotificationInput {+ s.Bucket = &v+ return s+}++// SetNotificationConfiguration sets the NotificationConfiguration field's value.+func (s *PutBucketNotificationInput) SetNotificationConfiguration(v *NotificationConfigurationDeprecated) *PutBucketNotificationInput {+ s.NotificationConfiguration = v+ return s+}+type PutBucketNotificationOutput struct {_ struct{} `type:"structure"`}@@ -4960,9 +11436,12 @@ func (s PutBucketNotificationOutput) GoString() string {type PutBucketPolicyInput struct {_ struct{} `type:"structure" payload:"Policy"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// The bucket policy as a JSON document.+ //+ // Policy is a required fieldPolicy *string `type:"string" required:"true"`}@@ -4976,6 +11455,34 @@ func (s PutBucketPolicyInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketPolicyInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketPolicyInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Policy == nil {+ invalidParams.Add(request.NewErrParamRequired("Policy"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketPolicyInput) SetBucket(v string) *PutBucketPolicyInput {+ s.Bucket = &v+ return s+}++// SetPolicy sets the Policy field's value.+func (s *PutBucketPolicyInput) SetPolicy(v string) *PutBucketPolicyInput {+ s.Policy = &v+ return s+}+type PutBucketPolicyOutput struct {_ struct{} `type:"structure"`}@@ -4993,10 +11500,13 @@ func (s PutBucketPolicyOutput) GoString() string {type PutBucketReplicationInput struct {_ struct{} `type:"structure" payload:"ReplicationConfiguration"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Container for replication rules. You can add as many as 1,000 rules. Total// replication configuration size can be up to 2 MB.+ //+ // ReplicationConfiguration is a required fieldReplicationConfiguration *ReplicationConfiguration `locationName:"ReplicationConfiguration" type:"structure" required:"true"`}@@ -5010,6 +11520,39 @@ func (s PutBucketReplicationInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketReplicationInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketReplicationInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.ReplicationConfiguration == nil {+ invalidParams.Add(request.NewErrParamRequired("ReplicationConfiguration"))+ }+ if s.ReplicationConfiguration != nil {+ if err := s.ReplicationConfiguration.Validate(); err != nil {+ invalidParams.AddNested("ReplicationConfiguration", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketReplicationInput) SetBucket(v string) *PutBucketReplicationInput {+ s.Bucket = &v+ return s+}++// SetReplicationConfiguration sets the ReplicationConfiguration field's value.+func (s *PutBucketReplicationInput) SetReplicationConfiguration(v *ReplicationConfiguration) *PutBucketReplicationInput {+ s.ReplicationConfiguration = v+ return s+}+type PutBucketReplicationOutput struct {_ struct{} `type:"structure"`}@@ -5027,8 +11570,10 @@ func (s PutBucketReplicationOutput) GoString() string {type PutBucketRequestPaymentInput struct {_ struct{} `type:"structure" payload:"RequestPaymentConfiguration"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // RequestPaymentConfiguration is a required fieldRequestPaymentConfiguration *RequestPaymentConfiguration `locationName:"RequestPaymentConfiguration" type:"structure" required:"true"`}@@ -5042,6 +11587,39 @@ func (s PutBucketRequestPaymentInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketRequestPaymentInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketRequestPaymentInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.RequestPaymentConfiguration == nil {+ invalidParams.Add(request.NewErrParamRequired("RequestPaymentConfiguration"))+ }+ if s.RequestPaymentConfiguration != nil {+ if err := s.RequestPaymentConfiguration.Validate(); err != nil {+ invalidParams.AddNested("RequestPaymentConfiguration", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketRequestPaymentInput) SetBucket(v string) *PutBucketRequestPaymentInput {+ s.Bucket = &v+ return s+}++// SetRequestPaymentConfiguration sets the RequestPaymentConfiguration field's value.+func (s *PutBucketRequestPaymentInput) SetRequestPaymentConfiguration(v *RequestPaymentConfiguration) *PutBucketRequestPaymentInput {+ s.RequestPaymentConfiguration = v+ return s+}+type PutBucketRequestPaymentOutput struct {_ struct{} `type:"structure"`}@@ -5059,8 +11637,10 @@ func (s PutBucketRequestPaymentOutput) GoString() string {type PutBucketTaggingInput struct {_ struct{} `type:"structure" payload:"Tagging"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // Tagging is a required fieldTagging *Tagging `locationName:"Tagging" type:"structure" required:"true"`}@@ -5074,6 +11654,39 @@ func (s PutBucketTaggingInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketTaggingInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketTaggingInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Tagging == nil {+ invalidParams.Add(request.NewErrParamRequired("Tagging"))+ }+ if s.Tagging != nil {+ if err := s.Tagging.Validate(); err != nil {+ invalidParams.AddNested("Tagging", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketTaggingInput) SetBucket(v string) *PutBucketTaggingInput {+ s.Bucket = &v+ return s+}++// SetTagging sets the Tagging field's value.+func (s *PutBucketTaggingInput) SetTagging(v *Tagging) *PutBucketTaggingInput {+ s.Tagging = v+ return s+}+type PutBucketTaggingOutput struct {_ struct{} `type:"structure"`}@@ -5091,12 +11704,14 @@ func (s PutBucketTaggingOutput) GoString() string {type PutBucketVersioningInput struct {_ struct{} `type:"structure" payload:"VersioningConfiguration"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// The concatenation of the authentication device's serial number, a space,// and the value that is displayed on your authentication device.MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"`+ // VersioningConfiguration is a required fieldVersioningConfiguration *VersioningConfiguration `locationName:"VersioningConfiguration" type:"structure" required:"true"`}@@ -5110,6 +11725,40 @@ func (s PutBucketVersioningInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketVersioningInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketVersioningInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.VersioningConfiguration == nil {+ invalidParams.Add(request.NewErrParamRequired("VersioningConfiguration"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketVersioningInput) SetBucket(v string) *PutBucketVersioningInput {+ s.Bucket = &v+ return s+}++// SetMFA sets the MFA field's value.+func (s *PutBucketVersioningInput) SetMFA(v string) *PutBucketVersioningInput {+ s.MFA = &v+ return s+}++// SetVersioningConfiguration sets the VersioningConfiguration field's value.+func (s *PutBucketVersioningInput) SetVersioningConfiguration(v *VersioningConfiguration) *PutBucketVersioningInput {+ s.VersioningConfiguration = v+ return s+}+type PutBucketVersioningOutput struct {_ struct{} `type:"structure"`}@@ -5127,8 +11776,10 @@ func (s PutBucketVersioningOutput) GoString() string {type PutBucketWebsiteInput struct {_ struct{} `type:"structure" payload:"WebsiteConfiguration"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // WebsiteConfiguration is a required fieldWebsiteConfiguration *WebsiteConfiguration `locationName:"WebsiteConfiguration" type:"structure" required:"true"`}@@ -5142,6 +11793,39 @@ func (s PutBucketWebsiteInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutBucketWebsiteInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutBucketWebsiteInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.WebsiteConfiguration == nil {+ invalidParams.Add(request.NewErrParamRequired("WebsiteConfiguration"))+ }+ if s.WebsiteConfiguration != nil {+ if err := s.WebsiteConfiguration.Validate(); err != nil {+ invalidParams.AddNested("WebsiteConfiguration", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *PutBucketWebsiteInput) SetBucket(v string) *PutBucketWebsiteInput {+ s.Bucket = &v+ return s+}++// SetWebsiteConfiguration sets the WebsiteConfiguration field's value.+func (s *PutBucketWebsiteInput) SetWebsiteConfiguration(v *WebsiteConfiguration) *PutBucketWebsiteInput {+ s.WebsiteConfiguration = v+ return s+}+type PutBucketWebsiteOutput struct {_ struct{} `type:"structure"`}@@ -5164,6 +11848,7 @@ type PutObjectAclInput struct {AccessControlPolicy *AccessControlPolicy `locationName:"AccessControlPolicy" type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Allows grantee the read, write, read ACP, and write ACP permissions on the@@ -5182,6 +11867,7 @@ type PutObjectAclInput struct {// Allows grantee to write the ACL for the applicable bucket.GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// Confirms that the requester knows that she or he will be charged for the@@ -5189,6 +11875,9 @@ type PutObjectAclInput struct {// Documentation on downloading objects from requester pays buckets can be found// at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.htmlRequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`++ // VersionId used to reference a specific version of the object.+ VersionId *string `location:"querystring" locationName:"versionId" type:"string"`}// String returns the string representation@@ -5201,6 +11890,96 @@ func (s PutObjectAclInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutObjectAclInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutObjectAclInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }+ if s.AccessControlPolicy != nil {+ if err := s.AccessControlPolicy.Validate(); err != nil {+ invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetACL sets the ACL field's value.+func (s *PutObjectAclInput) SetACL(v string) *PutObjectAclInput {+ s.ACL = &v+ return s+}++// SetAccessControlPolicy sets the AccessControlPolicy field's value.+func (s *PutObjectAclInput) SetAccessControlPolicy(v *AccessControlPolicy) *PutObjectAclInput {+ s.AccessControlPolicy = v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *PutObjectAclInput) SetBucket(v string) *PutObjectAclInput {+ s.Bucket = &v+ return s+}++// SetGrantFullControl sets the GrantFullControl field's value.+func (s *PutObjectAclInput) SetGrantFullControl(v string) *PutObjectAclInput {+ s.GrantFullControl = &v+ return s+}++// SetGrantRead sets the GrantRead field's value.+func (s *PutObjectAclInput) SetGrantRead(v string) *PutObjectAclInput {+ s.GrantRead = &v+ return s+}++// SetGrantReadACP sets the GrantReadACP field's value.+func (s *PutObjectAclInput) SetGrantReadACP(v string) *PutObjectAclInput {+ s.GrantReadACP = &v+ return s+}++// SetGrantWrite sets the GrantWrite field's value.+func (s *PutObjectAclInput) SetGrantWrite(v string) *PutObjectAclInput {+ s.GrantWrite = &v+ return s+}++// SetGrantWriteACP sets the GrantWriteACP field's value.+func (s *PutObjectAclInput) SetGrantWriteACP(v string) *PutObjectAclInput {+ s.GrantWriteACP = &v+ return s+}++// SetKey sets the Key field's value.+func (s *PutObjectAclInput) SetKey(v string) *PutObjectAclInput {+ s.Key = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *PutObjectAclInput) SetRequestPayer(v string) *PutObjectAclInput {+ s.RequestPayer = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *PutObjectAclInput) SetVersionId(v string) *PutObjectAclInput {+ s.VersionId = &v+ return s+}+type PutObjectAclOutput struct {_ struct{} `type:"structure"`@@ -5219,6 +11998,12 @@ func (s PutObjectAclOutput) GoString() string {return s.String()}+// SetRequestCharged sets the RequestCharged field's value.+func (s *PutObjectAclOutput) SetRequestCharged(v string) *PutObjectAclOutput {+ s.RequestCharged = &v+ return s+}+type PutObjectInput struct {_ struct{} `type:"structure" payload:"Body"`@@ -5228,6 +12013,9 @@ type PutObjectInput struct {// Object data.Body io.ReadSeeker `type:"blob"`+ // Name of the bucket to which the PUT operation was initiated.+ //+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Specifies caching behavior along the request/reply chain.@@ -5246,7 +12034,7 @@ type PutObjectInput struct {// Size of the body in bytes. This parameter is useful when the size of the// body cannot be determined automatically.- ContentLength *int64 `location:"header" locationName:"Content-Length" type:"integer"`+ ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`// A standard MIME type describing the format of the object data.ContentType *string `location:"header" locationName:"Content-Type" type:"string"`@@ -5266,6 +12054,9 @@ type PutObjectInput struct {// Allows grantee to write the ACL for the applicable object.GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`+ // Object key for which the PUT operation was initiated.+ //+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// A map of metadata to store with the object in S3.@@ -5321,6 +12112,169 @@ func (s PutObjectInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *PutObjectInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "PutObjectInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetACL sets the ACL field's value.+func (s *PutObjectInput) SetACL(v string) *PutObjectInput {+ s.ACL = &v+ return s+}++// SetBody sets the Body field's value.+func (s *PutObjectInput) SetBody(v io.ReadSeeker) *PutObjectInput {+ s.Body = v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *PutObjectInput) SetBucket(v string) *PutObjectInput {+ s.Bucket = &v+ return s+}++// SetCacheControl sets the CacheControl field's value.+func (s *PutObjectInput) SetCacheControl(v string) *PutObjectInput {+ s.CacheControl = &v+ return s+}++// SetContentDisposition sets the ContentDisposition field's value.+func (s *PutObjectInput) SetContentDisposition(v string) *PutObjectInput {+ s.ContentDisposition = &v+ return s+}++// SetContentEncoding sets the ContentEncoding field's value.+func (s *PutObjectInput) SetContentEncoding(v string) *PutObjectInput {+ s.ContentEncoding = &v+ return s+}++// SetContentLanguage sets the ContentLanguage field's value.+func (s *PutObjectInput) SetContentLanguage(v string) *PutObjectInput {+ s.ContentLanguage = &v+ return s+}++// SetContentLength sets the ContentLength field's value.+func (s *PutObjectInput) SetContentLength(v int64) *PutObjectInput {+ s.ContentLength = &v+ return s+}++// SetContentType sets the ContentType field's value.+func (s *PutObjectInput) SetContentType(v string) *PutObjectInput {+ s.ContentType = &v+ return s+}++// SetExpires sets the Expires field's value.+func (s *PutObjectInput) SetExpires(v time.Time) *PutObjectInput {+ s.Expires = &v+ return s+}++// SetGrantFullControl sets the GrantFullControl field's value.+func (s *PutObjectInput) SetGrantFullControl(v string) *PutObjectInput {+ s.GrantFullControl = &v+ return s+}++// SetGrantRead sets the GrantRead field's value.+func (s *PutObjectInput) SetGrantRead(v string) *PutObjectInput {+ s.GrantRead = &v+ return s+}++// SetGrantReadACP sets the GrantReadACP field's value.+func (s *PutObjectInput) SetGrantReadACP(v string) *PutObjectInput {+ s.GrantReadACP = &v+ return s+}++// SetGrantWriteACP sets the GrantWriteACP field's value.+func (s *PutObjectInput) SetGrantWriteACP(v string) *PutObjectInput {+ s.GrantWriteACP = &v+ return s+}++// SetKey sets the Key field's value.+func (s *PutObjectInput) SetKey(v string) *PutObjectInput {+ s.Key = &v+ return s+}++// SetMetadata sets the Metadata field's value.+func (s *PutObjectInput) SetMetadata(v map[string]*string) *PutObjectInput {+ s.Metadata = v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *PutObjectInput) SetRequestPayer(v string) *PutObjectInput {+ s.RequestPayer = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *PutObjectInput) SetSSECustomerAlgorithm(v string) *PutObjectInput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKey sets the SSECustomerKey field's value.+func (s *PutObjectInput) SetSSECustomerKey(v string) *PutObjectInput {+ s.SSECustomerKey = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *PutObjectInput) SetSSECustomerKeyMD5(v string) *PutObjectInput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *PutObjectInput) SetSSEKMSKeyId(v string) *PutObjectInput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *PutObjectInput) SetServerSideEncryption(v string) *PutObjectInput {+ s.ServerSideEncryption = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *PutObjectInput) SetStorageClass(v string) *PutObjectInput {+ s.StorageClass = &v+ return s+}++// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.+func (s *PutObjectInput) SetWebsiteRedirectLocation(v string) *PutObjectInput {+ s.WebsiteRedirectLocation = &v+ return s+}+type PutObjectOutput struct {_ struct{} `type:"structure"`@@ -5367,16 +12321,64 @@ func (s PutObjectOutput) GoString() string {return s.String()}+// SetETag sets the ETag field's value.+func (s *PutObjectOutput) SetETag(v string) *PutObjectOutput {+ s.ETag = &v+ return s+}++// SetExpiration sets the Expiration field's value.+func (s *PutObjectOutput) SetExpiration(v string) *PutObjectOutput {+ s.Expiration = &v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *PutObjectOutput) SetRequestCharged(v string) *PutObjectOutput {+ s.RequestCharged = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *PutObjectOutput) SetSSECustomerAlgorithm(v string) *PutObjectOutput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *PutObjectOutput) SetSSECustomerKeyMD5(v string) *PutObjectOutput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *PutObjectOutput) SetSSEKMSKeyId(v string) *PutObjectOutput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *PutObjectOutput) SetServerSideEncryption(v string) *PutObjectOutput {+ s.ServerSideEncryption = &v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *PutObjectOutput) SetVersionId(v string) *PutObjectOutput {+ s.VersionId = &v+ return s+}+// Container for specifying an configuration when you want Amazon S3 to publish// events to an Amazon Simple Queue Service (Amazon SQS) queue.type QueueConfiguration struct {_ struct{} `type:"structure"`+ // Events is a required fieldEvents []*string `locationName:"Event" type:"list" flattened:"true" required:"true"`// Container for object key name filtering rules. For information about key// name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)- // in the Amazon Simple Storage Service Developer Guide.Filter *NotificationConfigurationFilter `type:"structure"`// Optional unique identifier for configurations in a notification configuration.@@ -5385,6 +12387,8 @@ type QueueConfiguration struct {// Amazon SQS queue ARN to which Amazon S3 will publish a message when it detects// events of specified type.+ //+ // QueueArn is a required fieldQueueArn *string `locationName:"Queue" type:"string" required:"true"`}@@ -5398,6 +12402,46 @@ func (s QueueConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *QueueConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "QueueConfiguration"}+ if s.Events == nil {+ invalidParams.Add(request.NewErrParamRequired("Events"))+ }+ if s.QueueArn == nil {+ invalidParams.Add(request.NewErrParamRequired("QueueArn"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetEvents sets the Events field's value.+func (s *QueueConfiguration) SetEvents(v []*string) *QueueConfiguration {+ s.Events = v+ return s+}++// SetFilter sets the Filter field's value.+func (s *QueueConfiguration) SetFilter(v *NotificationConfigurationFilter) *QueueConfiguration {+ s.Filter = v+ return s+}++// SetId sets the Id field's value.+func (s *QueueConfiguration) SetId(v string) *QueueConfiguration {+ s.Id = &v+ return s+}++// SetQueueArn sets the QueueArn field's value.+func (s *QueueConfiguration) SetQueueArn(v string) *QueueConfiguration {+ s.QueueArn = &v+ return s+}+type QueueConfigurationDeprecated struct {_ struct{} `type:"structure"`@@ -5423,6 +12467,30 @@ func (s QueueConfigurationDeprecated) GoString() string {return s.String()}+// SetEvent sets the Event field's value.+func (s *QueueConfigurationDeprecated) SetEvent(v string) *QueueConfigurationDeprecated {+ s.Event = &v+ return s+}++// SetEvents sets the Events field's value.+func (s *QueueConfigurationDeprecated) SetEvents(v []*string) *QueueConfigurationDeprecated {+ s.Events = v+ return s+}++// SetId sets the Id field's value.+func (s *QueueConfigurationDeprecated) SetId(v string) *QueueConfigurationDeprecated {+ s.Id = &v+ return s+}++// SetQueue sets the Queue field's value.+func (s *QueueConfigurationDeprecated) SetQueue(v string) *QueueConfigurationDeprecated {+ s.Queue = &v+ return s+}+type Redirect struct {_ struct{} `type:"structure"`@@ -5461,10 +12529,42 @@ func (s Redirect) GoString() string {return s.String()}+// SetHostName sets the HostName field's value.+func (s *Redirect) SetHostName(v string) *Redirect {+ s.HostName = &v+ return s+}++// SetHttpRedirectCode sets the HttpRedirectCode field's value.+func (s *Redirect) SetHttpRedirectCode(v string) *Redirect {+ s.HttpRedirectCode = &v+ return s+}++// SetProtocol sets the Protocol field's value.+func (s *Redirect) SetProtocol(v string) *Redirect {+ s.Protocol = &v+ return s+}++// SetReplaceKeyPrefixWith sets the ReplaceKeyPrefixWith field's value.+func (s *Redirect) SetReplaceKeyPrefixWith(v string) *Redirect {+ s.ReplaceKeyPrefixWith = &v+ return s+}++// SetReplaceKeyWith sets the ReplaceKeyWith field's value.+func (s *Redirect) SetReplaceKeyWith(v string) *Redirect {+ s.ReplaceKeyWith = &v+ return s+}+type RedirectAllRequestsTo struct {_ struct{} `type:"structure"`// Name of the host where requests will be redirected.+ //+ // HostName is a required fieldHostName *string `type:"string" required:"true"`// Protocol to use (http, https) when redirecting requests. The default is the@@ -5482,6 +12582,31 @@ func (s RedirectAllRequestsTo) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *RedirectAllRequestsTo) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "RedirectAllRequestsTo"}+ if s.HostName == nil {+ invalidParams.Add(request.NewErrParamRequired("HostName"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetHostName sets the HostName field's value.+func (s *RedirectAllRequestsTo) SetHostName(v string) *RedirectAllRequestsTo {+ s.HostName = &v+ return s+}++// SetProtocol sets the Protocol field's value.+func (s *RedirectAllRequestsTo) SetProtocol(v string) *RedirectAllRequestsTo {+ s.Protocol = &v+ return s+}+// Container for replication rules. You can add as many as 1,000 rules. Total// replication configuration size can be up to 2 MB.type ReplicationConfiguration struct {@@ -5489,10 +12614,14 @@ type ReplicationConfiguration struct {// Amazon Resource Name (ARN) of an IAM role for Amazon S3 to assume when replicating// the objects.+ //+ // Role is a required fieldRole *string `type:"string" required:"true"`// Container for information about a particular replication rule. Replication// configuration must have at least one rule and can contain up to 1,000 rules.+ //+ // Rules is a required fieldRules []*ReplicationRule `locationName:"Rule" type:"list" flattened:"true" required:"true"`}@@ -5506,9 +12635,48 @@ func (s ReplicationConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *ReplicationConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "ReplicationConfiguration"}+ if s.Role == nil {+ invalidParams.Add(request.NewErrParamRequired("Role"))+ }+ if s.Rules == nil {+ invalidParams.Add(request.NewErrParamRequired("Rules"))+ }+ if s.Rules != nil {+ for i, v := range s.Rules {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetRole sets the Role field's value.+func (s *ReplicationConfiguration) SetRole(v string) *ReplicationConfiguration {+ s.Role = &v+ return s+}++// SetRules sets the Rules field's value.+func (s *ReplicationConfiguration) SetRules(v []*ReplicationRule) *ReplicationConfiguration {+ s.Rules = v+ return s+}+type ReplicationRule struct {_ struct{} `type:"structure"`+ // Destination is a required fieldDestination *Destination `type:"structure" required:"true"`// Unique identifier for the rule. The value cannot be longer than 255 characters.@@ -5517,9 +12685,13 @@ type ReplicationRule struct {// Object keyname prefix identifying one or more objects to which the rule applies.// Maximum prefix length can be up to 1,024 characters. Overlapping prefixes// are not supported.+ //+ // Prefix is a required fieldPrefix *string `type:"string" required:"true"`// The rule is ignored if status is not Enabled.+ //+ // Status is a required fieldStatus *string `type:"string" required:"true" enum:"ReplicationRuleStatus"`}@@ -5533,10 +12705,60 @@ func (s ReplicationRule) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *ReplicationRule) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "ReplicationRule"}+ if s.Destination == nil {+ invalidParams.Add(request.NewErrParamRequired("Destination"))+ }+ if s.Prefix == nil {+ invalidParams.Add(request.NewErrParamRequired("Prefix"))+ }+ if s.Status == nil {+ invalidParams.Add(request.NewErrParamRequired("Status"))+ }+ if s.Destination != nil {+ if err := s.Destination.Validate(); err != nil {+ invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetDestination sets the Destination field's value.+func (s *ReplicationRule) SetDestination(v *Destination) *ReplicationRule {+ s.Destination = v+ return s+}++// SetID sets the ID field's value.+func (s *ReplicationRule) SetID(v string) *ReplicationRule {+ s.ID = &v+ return s+}++// SetPrefix sets the Prefix field's value.+func (s *ReplicationRule) SetPrefix(v string) *ReplicationRule {+ s.Prefix = &v+ return s+}++// SetStatus sets the Status field's value.+func (s *ReplicationRule) SetStatus(v string) *ReplicationRule {+ s.Status = &v+ return s+}+type RequestPaymentConfiguration struct {_ struct{} `type:"structure"`// Specifies who pays for the download and request fees.+ //+ // Payer is a required fieldPayer *string `type:"string" required:"true" enum:"Payer"`}@@ -5550,11 +12772,32 @@ func (s RequestPaymentConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *RequestPaymentConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "RequestPaymentConfiguration"}+ if s.Payer == nil {+ invalidParams.Add(request.NewErrParamRequired("Payer"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetPayer sets the Payer field's value.+func (s *RequestPaymentConfiguration) SetPayer(v string) *RequestPaymentConfiguration {+ s.Payer = &v+ return s+}+type RestoreObjectInput struct {_ struct{} `type:"structure" payload:"RestoreRequest"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// Confirms that the requester knows that she or he will be charged for the@@ -5578,6 +12821,60 @@ func (s RestoreObjectInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *RestoreObjectInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "RestoreObjectInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }+ if s.RestoreRequest != nil {+ if err := s.RestoreRequest.Validate(); err != nil {+ invalidParams.AddNested("RestoreRequest", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *RestoreObjectInput) SetBucket(v string) *RestoreObjectInput {+ s.Bucket = &v+ return s+}++// SetKey sets the Key field's value.+func (s *RestoreObjectInput) SetKey(v string) *RestoreObjectInput {+ s.Key = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *RestoreObjectInput) SetRequestPayer(v string) *RestoreObjectInput {+ s.RequestPayer = &v+ return s+}++// SetRestoreRequest sets the RestoreRequest field's value.+func (s *RestoreObjectInput) SetRestoreRequest(v *RestoreRequest) *RestoreObjectInput {+ s.RestoreRequest = v+ return s+}++// SetVersionId sets the VersionId field's value.+func (s *RestoreObjectInput) SetVersionId(v string) *RestoreObjectInput {+ s.VersionId = &v+ return s+}+type RestoreObjectOutput struct {_ struct{} `type:"structure"`@@ -5596,10 +12893,18 @@ func (s RestoreObjectOutput) GoString() string {return s.String()}+// SetRequestCharged sets the RequestCharged field's value.+func (s *RestoreObjectOutput) SetRequestCharged(v string) *RestoreObjectOutput {+ s.RequestCharged = &v+ return s+}+type RestoreRequest struct {_ struct{} `type:"structure"`// Lifetime of the active copy in days+ //+ // Days is a required fieldDays *int64 `type:"integer" required:"true"`}@@ -5613,6 +12918,25 @@ func (s RestoreRequest) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *RestoreRequest) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "RestoreRequest"}+ if s.Days == nil {+ invalidParams.Add(request.NewErrParamRequired("Days"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetDays sets the Days field's value.+func (s *RestoreRequest) SetDays(v int64) *RestoreRequest {+ s.Days = &v+ return s+}+type RoutingRule struct {_ struct{} `type:"structure"`@@ -5625,6 +12949,8 @@ type RoutingRule struct {// Container for redirect information. You can redirect requests to another// host, to another page, or with another protocol. In the event of an error,// you can can specify a different error code to return.+ //+ // Redirect is a required fieldRedirect *Redirect `type:"structure" required:"true"`}@@ -5638,9 +12964,38 @@ func (s RoutingRule) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *RoutingRule) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "RoutingRule"}+ if s.Redirect == nil {+ invalidParams.Add(request.NewErrParamRequired("Redirect"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetCondition sets the Condition field's value.+func (s *RoutingRule) SetCondition(v *Condition) *RoutingRule {+ s.Condition = v+ return s+}++// SetRedirect sets the Redirect field's value.+func (s *RoutingRule) SetRedirect(v *Redirect) *RoutingRule {+ s.Redirect = v+ return s+}+type Rule struct {_ struct{} `type:"structure"`+ // Specifies the days since the initiation of an Incomplete Multipart Upload+ // that Lifecycle will wait before permanently removing all parts of the upload.+ AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"`+Expiration *LifecycleExpiration `type:"structure"`// Unique identifier for the rule. The value cannot be longer than 255 characters.@@ -5653,40 +13008,112 @@ type Rule struct {// period in the object's lifetime.NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"`- // Container for the transition rule that describes when noncurrent objects- // transition to the STANDARD_IA or GLACIER storage class. If your bucket is- // versioning-enabled (or versioning is suspended), you can set this action- // to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA- // or GLACIER storage class at a specific period in the object's lifetime.- NoncurrentVersionTransition *NoncurrentVersionTransition `type:"structure"`+ // Container for the transition rule that describes when noncurrent objects+ // transition to the STANDARD_IA or GLACIER storage class. If your bucket is+ // versioning-enabled (or versioning is suspended), you can set this action+ // to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA+ // or GLACIER storage class at a specific period in the object's lifetime.+ NoncurrentVersionTransition *NoncurrentVersionTransition `type:"structure"`++ // Prefix identifying one or more objects to which the rule applies.+ //+ // Prefix is a required field+ Prefix *string `type:"string" required:"true"`++ // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule+ // is not currently being applied.+ //+ // Status is a required field+ Status *string `type:"string" required:"true" enum:"ExpirationStatus"`++ Transition *Transition `type:"structure"`+}++// String returns the string representation+func (s Rule) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s Rule) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *Rule) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "Rule"}+ if s.Prefix == nil {+ invalidParams.Add(request.NewErrParamRequired("Prefix"))+ }+ if s.Status == nil {+ invalidParams.Add(request.NewErrParamRequired("Status"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value.+func (s *Rule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *Rule {+ s.AbortIncompleteMultipartUpload = v+ return s+}++// SetExpiration sets the Expiration field's value.+func (s *Rule) SetExpiration(v *LifecycleExpiration) *Rule {+ s.Expiration = v+ return s+}++// SetID sets the ID field's value.+func (s *Rule) SetID(v string) *Rule {+ s.ID = &v+ return s+}- // Prefix identifying one or more objects to which the rule applies.- Prefix *string `type:"string" required:"true"`+// SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value.+func (s *Rule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *Rule {+ s.NoncurrentVersionExpiration = v+ return s+}- // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule- // is not currently being applied.- Status *string `type:"string" required:"true" enum:"ExpirationStatus"`+// SetNoncurrentVersionTransition sets the NoncurrentVersionTransition field's value.+func (s *Rule) SetNoncurrentVersionTransition(v *NoncurrentVersionTransition) *Rule {+ s.NoncurrentVersionTransition = v+ return s+}- Transition *Transition `type:"structure"`+// SetPrefix sets the Prefix field's value.+func (s *Rule) SetPrefix(v string) *Rule {+ s.Prefix = &v+ return s}-// String returns the string representation-func (s Rule) String() string {- return awsutil.Prettify(s)+// SetStatus sets the Status field's value.+func (s *Rule) SetStatus(v string) *Rule {+ s.Status = &v+ return s}-// GoString returns the string representation-func (s Rule) GoString() string {- return s.String()+// SetTransition sets the Transition field's value.+func (s *Rule) SetTransition(v *Transition) *Rule {+ s.Transition = v+ return s}type Tag struct {_ struct{} `type:"structure"`// Name of the tag.+ //+ // Key is a required fieldKey *string `min:"1" type:"string" required:"true"`// Value of the tag.+ //+ // Value is a required fieldValue *string `type:"string" required:"true"`}@@ -5700,9 +13127,41 @@ func (s Tag) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *Tag) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "Tag"}+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }+ if s.Value == nil {+ invalidParams.Add(request.NewErrParamRequired("Value"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetKey sets the Key field's value.+func (s *Tag) SetKey(v string) *Tag {+ s.Key = &v+ return s+}++// SetValue sets the Value field's value.+func (s *Tag) SetValue(v string) *Tag {+ s.Value = &v+ return s+}+type Tagging struct {_ struct{} `type:"structure"`+ // TagSet is a required fieldTagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"`}@@ -5716,6 +13175,35 @@ func (s Tagging) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *Tagging) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "Tagging"}+ if s.TagSet == nil {+ invalidParams.Add(request.NewErrParamRequired("TagSet"))+ }+ if s.TagSet != nil {+ for i, v := range s.TagSet {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagSet", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetTagSet sets the TagSet field's value.+func (s *Tagging) SetTagSet(v []*Tag) *Tagging {+ s.TagSet = v+ return s+}+type TargetGrant struct {_ struct{} `type:"structure"`@@ -5735,16 +13223,43 @@ func (s TargetGrant) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *TargetGrant) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "TargetGrant"}+ if s.Grantee != nil {+ if err := s.Grantee.Validate(); err != nil {+ invalidParams.AddNested("Grantee", err.(request.ErrInvalidParams))+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetGrantee sets the Grantee field's value.+func (s *TargetGrant) SetGrantee(v *Grantee) *TargetGrant {+ s.Grantee = v+ return s+}++// SetPermission sets the Permission field's value.+func (s *TargetGrant) SetPermission(v string) *TargetGrant {+ s.Permission = &v+ return s+}+// Container for specifying the configuration when you want Amazon S3 to publish// events to an Amazon Simple Notification Service (Amazon SNS) topic.type TopicConfiguration struct {_ struct{} `type:"structure"`+ // Events is a required fieldEvents []*string `locationName:"Event" type:"list" flattened:"true" required:"true"`// Container for object key name filtering rules. For information about key// name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)- // in the Amazon Simple Storage Service Developer Guide.Filter *NotificationConfigurationFilter `type:"structure"`// Optional unique identifier for configurations in a notification configuration.@@ -5753,6 +13268,8 @@ type TopicConfiguration struct {// Amazon SNS topic ARN to which Amazon S3 will publish a message when it detects// events of specified type.+ //+ // TopicArn is a required fieldTopicArn *string `locationName:"Topic" type:"string" required:"true"`}@@ -5766,6 +13283,46 @@ func (s TopicConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *TopicConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "TopicConfiguration"}+ if s.Events == nil {+ invalidParams.Add(request.NewErrParamRequired("Events"))+ }+ if s.TopicArn == nil {+ invalidParams.Add(request.NewErrParamRequired("TopicArn"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetEvents sets the Events field's value.+func (s *TopicConfiguration) SetEvents(v []*string) *TopicConfiguration {+ s.Events = v+ return s+}++// SetFilter sets the Filter field's value.+func (s *TopicConfiguration) SetFilter(v *NotificationConfigurationFilter) *TopicConfiguration {+ s.Filter = v+ return s+}++// SetId sets the Id field's value.+func (s *TopicConfiguration) SetId(v string) *TopicConfiguration {+ s.Id = &v+ return s+}++// SetTopicArn sets the TopicArn field's value.+func (s *TopicConfiguration) SetTopicArn(v string) *TopicConfiguration {+ s.TopicArn = &v+ return s+}+type TopicConfigurationDeprecated struct {_ struct{} `type:"structure"`@@ -5793,6 +13350,30 @@ func (s TopicConfigurationDeprecated) GoString() string {return s.String()}+// SetEvent sets the Event field's value.+func (s *TopicConfigurationDeprecated) SetEvent(v string) *TopicConfigurationDeprecated {+ s.Event = &v+ return s+}++// SetEvents sets the Events field's value.+func (s *TopicConfigurationDeprecated) SetEvents(v []*string) *TopicConfigurationDeprecated {+ s.Events = v+ return s+}++// SetId sets the Id field's value.+func (s *TopicConfigurationDeprecated) SetId(v string) *TopicConfigurationDeprecated {+ s.Id = &v+ return s+}++// SetTopic sets the Topic field's value.+func (s *TopicConfigurationDeprecated) SetTopic(v string) *TopicConfigurationDeprecated {+ s.Topic = &v+ return s+}+type Transition struct {_ struct{} `type:"structure"`@@ -5818,13 +13399,34 @@ func (s Transition) GoString() string {return s.String()}+// SetDate sets the Date field's value.+func (s *Transition) SetDate(v time.Time) *Transition {+ s.Date = &v+ return s+}++// SetDays sets the Days field's value.+func (s *Transition) SetDays(v int64) *Transition {+ s.Days = &v+ return s+}++// SetStorageClass sets the StorageClass field's value.+func (s *Transition) SetStorageClass(v string) *Transition {+ s.StorageClass = &v+ return s+}+type UploadPartCopyInput struct {_ struct{} `type:"structure"`+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// The name of the source bucket and key name of the source object, separated// by a slash (/). Must be URL-encoded.+ //+ // CopySource is a required fieldCopySource *string `location:"header" locationName:"x-amz-copy-source" type:"string" required:"true"`// Copies the object if its entity tag (ETag) matches the specified tag.@@ -5860,10 +13462,13 @@ type UploadPartCopyInput struct {// key was transmitted without error.CopySourceSSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5" type:"string"`+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// Part number of part being copied. This is a positive integer between 1 and// 10,000.+ //+ // PartNumber is a required fieldPartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer" required:"true"`// Confirms that the requester knows that she or he will be charged for the@@ -5889,6 +13494,8 @@ type UploadPartCopyInput struct {SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`// Upload ID identifying the multipart upload whose part is being copied.+ //+ // UploadId is a required fieldUploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`}@@ -5902,6 +13509,136 @@ func (s UploadPartCopyInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *UploadPartCopyInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "UploadPartCopyInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.CopySource == nil {+ invalidParams.Add(request.NewErrParamRequired("CopySource"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }+ if s.PartNumber == nil {+ invalidParams.Add(request.NewErrParamRequired("PartNumber"))+ }+ if s.UploadId == nil {+ invalidParams.Add(request.NewErrParamRequired("UploadId"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBucket sets the Bucket field's value.+func (s *UploadPartCopyInput) SetBucket(v string) *UploadPartCopyInput {+ s.Bucket = &v+ return s+}++// SetCopySource sets the CopySource field's value.+func (s *UploadPartCopyInput) SetCopySource(v string) *UploadPartCopyInput {+ s.CopySource = &v+ return s+}++// SetCopySourceIfMatch sets the CopySourceIfMatch field's value.+func (s *UploadPartCopyInput) SetCopySourceIfMatch(v string) *UploadPartCopyInput {+ s.CopySourceIfMatch = &v+ return s+}++// SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value.+func (s *UploadPartCopyInput) SetCopySourceIfModifiedSince(v time.Time) *UploadPartCopyInput {+ s.CopySourceIfModifiedSince = &v+ return s+}++// SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value.+func (s *UploadPartCopyInput) SetCopySourceIfNoneMatch(v string) *UploadPartCopyInput {+ s.CopySourceIfNoneMatch = &v+ return s+}++// SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value.+func (s *UploadPartCopyInput) SetCopySourceIfUnmodifiedSince(v time.Time) *UploadPartCopyInput {+ s.CopySourceIfUnmodifiedSince = &v+ return s+}++// SetCopySourceRange sets the CopySourceRange field's value.+func (s *UploadPartCopyInput) SetCopySourceRange(v string) *UploadPartCopyInput {+ s.CopySourceRange = &v+ return s+}++// SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value.+func (s *UploadPartCopyInput) SetCopySourceSSECustomerAlgorithm(v string) *UploadPartCopyInput {+ s.CopySourceSSECustomerAlgorithm = &v+ return s+}++// SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value.+func (s *UploadPartCopyInput) SetCopySourceSSECustomerKey(v string) *UploadPartCopyInput {+ s.CopySourceSSECustomerKey = &v+ return s+}++// SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value.+func (s *UploadPartCopyInput) SetCopySourceSSECustomerKeyMD5(v string) *UploadPartCopyInput {+ s.CopySourceSSECustomerKeyMD5 = &v+ return s+}++// SetKey sets the Key field's value.+func (s *UploadPartCopyInput) SetKey(v string) *UploadPartCopyInput {+ s.Key = &v+ return s+}++// SetPartNumber sets the PartNumber field's value.+func (s *UploadPartCopyInput) SetPartNumber(v int64) *UploadPartCopyInput {+ s.PartNumber = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *UploadPartCopyInput) SetRequestPayer(v string) *UploadPartCopyInput {+ s.RequestPayer = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *UploadPartCopyInput) SetSSECustomerAlgorithm(v string) *UploadPartCopyInput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKey sets the SSECustomerKey field's value.+func (s *UploadPartCopyInput) SetSSECustomerKey(v string) *UploadPartCopyInput {+ s.SSECustomerKey = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *UploadPartCopyInput) SetSSECustomerKeyMD5(v string) *UploadPartCopyInput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetUploadId sets the UploadId field's value.+func (s *UploadPartCopyInput) SetUploadId(v string) *UploadPartCopyInput {+ s.UploadId = &v+ return s+}+type UploadPartCopyOutput struct {_ struct{} `type:"structure" payload:"CopyPartResult"`@@ -5944,21 +13681,72 @@ func (s UploadPartCopyOutput) GoString() string {return s.String()}+// SetCopyPartResult sets the CopyPartResult field's value.+func (s *UploadPartCopyOutput) SetCopyPartResult(v *CopyPartResult) *UploadPartCopyOutput {+ s.CopyPartResult = v+ return s+}++// SetCopySourceVersionId sets the CopySourceVersionId field's value.+func (s *UploadPartCopyOutput) SetCopySourceVersionId(v string) *UploadPartCopyOutput {+ s.CopySourceVersionId = &v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *UploadPartCopyOutput) SetRequestCharged(v string) *UploadPartCopyOutput {+ s.RequestCharged = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *UploadPartCopyOutput) SetSSECustomerAlgorithm(v string) *UploadPartCopyOutput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *UploadPartCopyOutput) SetSSECustomerKeyMD5(v string) *UploadPartCopyOutput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *UploadPartCopyOutput) SetSSEKMSKeyId(v string) *UploadPartCopyOutput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *UploadPartCopyOutput) SetServerSideEncryption(v string) *UploadPartCopyOutput {+ s.ServerSideEncryption = &v+ return s+}+type UploadPartInput struct {_ struct{} `type:"structure" payload:"Body"`+ // Object data.Body io.ReadSeeker `type:"blob"`+ // Name of the bucket to which the multipart upload was initiated.+ //+ // Bucket is a required fieldBucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`// Size of the body in bytes. This parameter is useful when the size of the// body cannot be determined automatically.- ContentLength *int64 `location:"header" locationName:"Content-Length" type:"integer"`+ ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`+ // Object key for which the multipart upload was initiated.+ //+ // Key is a required fieldKey *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`// Part number of part being uploaded. This is a positive integer between 1// and 10,000.+ //+ // PartNumber is a required fieldPartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer" required:"true"`// Confirms that the requester knows that she or he will be charged for the@@ -5984,6 +13772,8 @@ type UploadPartInput struct {SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`// Upload ID identifying the multipart upload whose part is being uploaded.+ //+ // UploadId is a required fieldUploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`}@@ -5997,6 +13787,91 @@ func (s UploadPartInput) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *UploadPartInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "UploadPartInput"}+ if s.Bucket == nil {+ invalidParams.Add(request.NewErrParamRequired("Bucket"))+ }+ if s.Key == nil {+ invalidParams.Add(request.NewErrParamRequired("Key"))+ }+ if s.Key != nil && len(*s.Key) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))+ }+ if s.PartNumber == nil {+ invalidParams.Add(request.NewErrParamRequired("PartNumber"))+ }+ if s.UploadId == nil {+ invalidParams.Add(request.NewErrParamRequired("UploadId"))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetBody sets the Body field's value.+func (s *UploadPartInput) SetBody(v io.ReadSeeker) *UploadPartInput {+ s.Body = v+ return s+}++// SetBucket sets the Bucket field's value.+func (s *UploadPartInput) SetBucket(v string) *UploadPartInput {+ s.Bucket = &v+ return s+}++// SetContentLength sets the ContentLength field's value.+func (s *UploadPartInput) SetContentLength(v int64) *UploadPartInput {+ s.ContentLength = &v+ return s+}++// SetKey sets the Key field's value.+func (s *UploadPartInput) SetKey(v string) *UploadPartInput {+ s.Key = &v+ return s+}++// SetPartNumber sets the PartNumber field's value.+func (s *UploadPartInput) SetPartNumber(v int64) *UploadPartInput {+ s.PartNumber = &v+ return s+}++// SetRequestPayer sets the RequestPayer field's value.+func (s *UploadPartInput) SetRequestPayer(v string) *UploadPartInput {+ s.RequestPayer = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *UploadPartInput) SetSSECustomerAlgorithm(v string) *UploadPartInput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKey sets the SSECustomerKey field's value.+func (s *UploadPartInput) SetSSECustomerKey(v string) *UploadPartInput {+ s.SSECustomerKey = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *UploadPartInput) SetSSECustomerKeyMD5(v string) *UploadPartInput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetUploadId sets the UploadId field's value.+func (s *UploadPartInput) SetUploadId(v string) *UploadPartInput {+ s.UploadId = &v+ return s+}+type UploadPartOutput struct {_ struct{} `type:"structure"`@@ -6036,6 +13911,42 @@ func (s UploadPartOutput) GoString() string {return s.String()}+// SetETag sets the ETag field's value.+func (s *UploadPartOutput) SetETag(v string) *UploadPartOutput {+ s.ETag = &v+ return s+}++// SetRequestCharged sets the RequestCharged field's value.+func (s *UploadPartOutput) SetRequestCharged(v string) *UploadPartOutput {+ s.RequestCharged = &v+ return s+}++// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.+func (s *UploadPartOutput) SetSSECustomerAlgorithm(v string) *UploadPartOutput {+ s.SSECustomerAlgorithm = &v+ return s+}++// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.+func (s *UploadPartOutput) SetSSECustomerKeyMD5(v string) *UploadPartOutput {+ s.SSECustomerKeyMD5 = &v+ return s+}++// SetSSEKMSKeyId sets the SSEKMSKeyId field's value.+func (s *UploadPartOutput) SetSSEKMSKeyId(v string) *UploadPartOutput {+ s.SSEKMSKeyId = &v+ return s+}++// SetServerSideEncryption sets the ServerSideEncryption field's value.+func (s *UploadPartOutput) SetServerSideEncryption(v string) *UploadPartOutput {+ s.ServerSideEncryption = &v+ return s+}+type VersioningConfiguration struct {_ struct{} `type:"structure"`@@ -6058,6 +13969,18 @@ func (s VersioningConfiguration) GoString() string {return s.String()}+// SetMFADelete sets the MFADelete field's value.+func (s *VersioningConfiguration) SetMFADelete(v string) *VersioningConfiguration {+ s.MFADelete = &v+ return s+}++// SetStatus sets the Status field's value.+func (s *VersioningConfiguration) SetStatus(v string) *VersioningConfiguration {+ s.Status = &v+ return s+}+type WebsiteConfiguration struct {_ struct{} `type:"structure"`@@ -6080,53 +14003,138 @@ func (s WebsiteConfiguration) GoString() string {return s.String()}+// Validate inspects the fields of the type to determine if they are valid.+func (s *WebsiteConfiguration) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "WebsiteConfiguration"}+ if s.ErrorDocument != nil {+ if err := s.ErrorDocument.Validate(); err != nil {+ invalidParams.AddNested("ErrorDocument", err.(request.ErrInvalidParams))+ }+ }+ if s.IndexDocument != nil {+ if err := s.IndexDocument.Validate(); err != nil {+ invalidParams.AddNested("IndexDocument", err.(request.ErrInvalidParams))+ }+ }+ if s.RedirectAllRequestsTo != nil {+ if err := s.RedirectAllRequestsTo.Validate(); err != nil {+ invalidParams.AddNested("RedirectAllRequestsTo", err.(request.ErrInvalidParams))+ }+ }+ if s.RoutingRules != nil {+ for i, v := range s.RoutingRules {+ if v == nil {+ continue+ }+ if err := v.Validate(); err != nil {+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RoutingRules", i), err.(request.ErrInvalidParams))+ }+ }+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetErrorDocument sets the ErrorDocument field's value.+func (s *WebsiteConfiguration) SetErrorDocument(v *ErrorDocument) *WebsiteConfiguration {+ s.ErrorDocument = v+ return s+}++// SetIndexDocument sets the IndexDocument field's value.+func (s *WebsiteConfiguration) SetIndexDocument(v *IndexDocument) *WebsiteConfiguration {+ s.IndexDocument = v+ return s+}++// SetRedirectAllRequestsTo sets the RedirectAllRequestsTo field's value.+func (s *WebsiteConfiguration) SetRedirectAllRequestsTo(v *RedirectAllRequestsTo) *WebsiteConfiguration {+ s.RedirectAllRequestsTo = v+ return s+}++// SetRoutingRules sets the RoutingRules field's value.+func (s *WebsiteConfiguration) SetRoutingRules(v []*RoutingRule) *WebsiteConfiguration {+ s.RoutingRules = v+ return s+}++const (+ // BucketAccelerateStatusEnabled is a BucketAccelerateStatus enum value+ BucketAccelerateStatusEnabled = "Enabled"++ // BucketAccelerateStatusSuspended is a BucketAccelerateStatus enum value+ BucketAccelerateStatusSuspended = "Suspended"+)+const (- // @enum BucketCannedACL+ // BucketCannedACLPrivate is a BucketCannedACL enum valueBucketCannedACLPrivate = "private"- // @enum BucketCannedACL++ // BucketCannedACLPublicRead is a BucketCannedACL enum valueBucketCannedACLPublicRead = "public-read"- // @enum BucketCannedACL++ // BucketCannedACLPublicReadWrite is a BucketCannedACL enum valueBucketCannedACLPublicReadWrite = "public-read-write"- // @enum BucketCannedACL++ // BucketCannedACLAuthenticatedRead is a BucketCannedACL enum valueBucketCannedACLAuthenticatedRead = "authenticated-read")const (- // @enum BucketLocationConstraint+ // BucketLocationConstraintEu is a BucketLocationConstraint enum valueBucketLocationConstraintEu = "EU"- // @enum BucketLocationConstraint++ // BucketLocationConstraintEuWest1 is a BucketLocationConstraint enum valueBucketLocationConstraintEuWest1 = "eu-west-1"- // @enum BucketLocationConstraint++ // BucketLocationConstraintUsWest1 is a BucketLocationConstraint enum valueBucketLocationConstraintUsWest1 = "us-west-1"- // @enum BucketLocationConstraint++ // BucketLocationConstraintUsWest2 is a BucketLocationConstraint enum valueBucketLocationConstraintUsWest2 = "us-west-2"- // @enum BucketLocationConstraint++ // BucketLocationConstraintApSouth1 is a BucketLocationConstraint enum value+ BucketLocationConstraintApSouth1 = "ap-south-1"++ // BucketLocationConstraintApSoutheast1 is a BucketLocationConstraint enum valueBucketLocationConstraintApSoutheast1 = "ap-southeast-1"- // @enum BucketLocationConstraint++ // BucketLocationConstraintApSoutheast2 is a BucketLocationConstraint enum valueBucketLocationConstraintApSoutheast2 = "ap-southeast-2"- // @enum BucketLocationConstraint++ // BucketLocationConstraintApNortheast1 is a BucketLocationConstraint enum valueBucketLocationConstraintApNortheast1 = "ap-northeast-1"- // @enum BucketLocationConstraint++ // BucketLocationConstraintSaEast1 is a BucketLocationConstraint enum valueBucketLocationConstraintSaEast1 = "sa-east-1"- // @enum BucketLocationConstraint++ // BucketLocationConstraintCnNorth1 is a BucketLocationConstraint enum valueBucketLocationConstraintCnNorth1 = "cn-north-1"- // @enum BucketLocationConstraint++ // BucketLocationConstraintEuCentral1 is a BucketLocationConstraint enum valueBucketLocationConstraintEuCentral1 = "eu-central-1")const (- // @enum BucketLogsPermission+ // BucketLogsPermissionFullControl is a BucketLogsPermission enum valueBucketLogsPermissionFullControl = "FULL_CONTROL"- // @enum BucketLogsPermission++ // BucketLogsPermissionRead is a BucketLogsPermission enum valueBucketLogsPermissionRead = "READ"- // @enum BucketLogsPermission++ // BucketLogsPermissionWrite is a BucketLogsPermission enum valueBucketLogsPermissionWrite = "WRITE")const (- // @enum BucketVersioningStatus+ // BucketVersioningStatusEnabled is a BucketVersioningStatus enum valueBucketVersioningStatusEnabled = "Enabled"- // @enum BucketVersioningStatus++ // BucketVersioningStatusSuspended is a BucketVersioningStatus enum valueBucketVersioningStatusSuspended = "Suspended")@@ -6137,147 +14145,178 @@ const (// XML 1.0, you can add this parameter to request that Amazon S3 encode the// keys in the response.const (- // @enum EncodingType+ // EncodingTypeUrl is a EncodingType enum valueEncodingTypeUrl = "url")// Bucket event for which to send notifications.const (- // @enum Event+ // EventS3ReducedRedundancyLostObject is a Event enum valueEventS3ReducedRedundancyLostObject = "s3:ReducedRedundancyLostObject"- // @enum Event++ // EventS3ObjectCreated is a Event enum valueEventS3ObjectCreated = "s3:ObjectCreated:*"- // @enum Event++ // EventS3ObjectCreatedPut is a Event enum valueEventS3ObjectCreatedPut = "s3:ObjectCreated:Put"- // @enum Event++ // EventS3ObjectCreatedPost is a Event enum valueEventS3ObjectCreatedPost = "s3:ObjectCreated:Post"- // @enum Event++ // EventS3ObjectCreatedCopy is a Event enum valueEventS3ObjectCreatedCopy = "s3:ObjectCreated:Copy"- // @enum Event++ // EventS3ObjectCreatedCompleteMultipartUpload is a Event enum valueEventS3ObjectCreatedCompleteMultipartUpload = "s3:ObjectCreated:CompleteMultipartUpload"- // @enum Event++ // EventS3ObjectRemoved is a Event enum valueEventS3ObjectRemoved = "s3:ObjectRemoved:*"- // @enum Event++ // EventS3ObjectRemovedDelete is a Event enum valueEventS3ObjectRemovedDelete = "s3:ObjectRemoved:Delete"- // @enum Event++ // EventS3ObjectRemovedDeleteMarkerCreated is a Event enum valueEventS3ObjectRemovedDeleteMarkerCreated = "s3:ObjectRemoved:DeleteMarkerCreated")const (- // @enum ExpirationStatus+ // ExpirationStatusEnabled is a ExpirationStatus enum valueExpirationStatusEnabled = "Enabled"- // @enum ExpirationStatus++ // ExpirationStatusDisabled is a ExpirationStatus enum valueExpirationStatusDisabled = "Disabled")const (- // @enum FilterRuleName+ // FilterRuleNamePrefix is a FilterRuleName enum valueFilterRuleNamePrefix = "prefix"- // @enum FilterRuleName++ // FilterRuleNameSuffix is a FilterRuleName enum valueFilterRuleNameSuffix = "suffix")const (- // @enum MFADelete+ // MFADeleteEnabled is a MFADelete enum valueMFADeleteEnabled = "Enabled"- // @enum MFADelete++ // MFADeleteDisabled is a MFADelete enum valueMFADeleteDisabled = "Disabled")const (- // @enum MFADeleteStatus+ // MFADeleteStatusEnabled is a MFADeleteStatus enum valueMFADeleteStatusEnabled = "Enabled"- // @enum MFADeleteStatus++ // MFADeleteStatusDisabled is a MFADeleteStatus enum valueMFADeleteStatusDisabled = "Disabled")const (- // @enum MetadataDirective+ // MetadataDirectiveCopy is a MetadataDirective enum valueMetadataDirectiveCopy = "COPY"- // @enum MetadataDirective++ // MetadataDirectiveReplace is a MetadataDirective enum valueMetadataDirectiveReplace = "REPLACE")const (- // @enum ObjectCannedACL+ // ObjectCannedACLPrivate is a ObjectCannedACL enum valueObjectCannedACLPrivate = "private"- // @enum ObjectCannedACL++ // ObjectCannedACLPublicRead is a ObjectCannedACL enum valueObjectCannedACLPublicRead = "public-read"- // @enum ObjectCannedACL++ // ObjectCannedACLPublicReadWrite is a ObjectCannedACL enum valueObjectCannedACLPublicReadWrite = "public-read-write"- // @enum ObjectCannedACL++ // ObjectCannedACLAuthenticatedRead is a ObjectCannedACL enum valueObjectCannedACLAuthenticatedRead = "authenticated-read"- // @enum ObjectCannedACL++ // ObjectCannedACLAwsExecRead is a ObjectCannedACL enum valueObjectCannedACLAwsExecRead = "aws-exec-read"- // @enum ObjectCannedACL++ // ObjectCannedACLBucketOwnerRead is a ObjectCannedACL enum valueObjectCannedACLBucketOwnerRead = "bucket-owner-read"- // @enum ObjectCannedACL++ // ObjectCannedACLBucketOwnerFullControl is a ObjectCannedACL enum valueObjectCannedACLBucketOwnerFullControl = "bucket-owner-full-control")const (- // @enum ObjectStorageClass+ // ObjectStorageClassStandard is a ObjectStorageClass enum valueObjectStorageClassStandard = "STANDARD"- // @enum ObjectStorageClass++ // ObjectStorageClassReducedRedundancy is a ObjectStorageClass enum valueObjectStorageClassReducedRedundancy = "REDUCED_REDUNDANCY"- // @enum ObjectStorageClass++ // ObjectStorageClassGlacier is a ObjectStorageClass enum valueObjectStorageClassGlacier = "GLACIER")const (- // @enum ObjectVersionStorageClass+ // ObjectVersionStorageClassStandard is a ObjectVersionStorageClass enum valueObjectVersionStorageClassStandard = "STANDARD")const (- // @enum Payer+ // PayerRequester is a Payer enum valuePayerRequester = "Requester"- // @enum Payer++ // PayerBucketOwner is a Payer enum valuePayerBucketOwner = "BucketOwner")const (- // @enum Permission+ // PermissionFullControl is a Permission enum valuePermissionFullControl = "FULL_CONTROL"- // @enum Permission++ // PermissionWrite is a Permission enum valuePermissionWrite = "WRITE"- // @enum Permission++ // PermissionWriteAcp is a Permission enum valuePermissionWriteAcp = "WRITE_ACP"- // @enum Permission++ // PermissionRead is a Permission enum valuePermissionRead = "READ"- // @enum Permission++ // PermissionReadAcp is a Permission enum valuePermissionReadAcp = "READ_ACP")const (- // @enum Protocol+ // ProtocolHttp is a Protocol enum valueProtocolHttp = "http"- // @enum Protocol++ // ProtocolHttps is a Protocol enum valueProtocolHttps = "https")const (- // @enum ReplicationRuleStatus+ // ReplicationRuleStatusEnabled is a ReplicationRuleStatus enum valueReplicationRuleStatusEnabled = "Enabled"- // @enum ReplicationRuleStatus++ // ReplicationRuleStatusDisabled is a ReplicationRuleStatus enum valueReplicationRuleStatusDisabled = "Disabled")const (- // @enum ReplicationStatus+ // ReplicationStatusComplete is a ReplicationStatus enum valueReplicationStatusComplete = "COMPLETE"- // @enum ReplicationStatus++ // ReplicationStatusPending is a ReplicationStatus enum valueReplicationStatusPending = "PENDING"- // @enum ReplicationStatus++ // ReplicationStatusFailed is a ReplicationStatus enum valueReplicationStatusFailed = "FAILED"- // @enum ReplicationStatus++ // ReplicationStatusReplica is a ReplicationStatus enum valueReplicationStatusReplica = "REPLICA")// If present, indicates that the requester was successfully charged for the// request.const (- // @enum RequestCharged+ // RequestChargedRequester is a RequestCharged enum valueRequestChargedRequester = "requester")@@ -6286,38 +14325,44 @@ const (// Documentation on downloading objects from requester pays buckets can be found// at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.htmlconst (- // @enum RequestPayer+ // RequestPayerRequester is a RequestPayer enum valueRequestPayerRequester = "requester")const (- // @enum ServerSideEncryption+ // ServerSideEncryptionAes256 is a ServerSideEncryption enum valueServerSideEncryptionAes256 = "AES256"- // @enum ServerSideEncryption++ // ServerSideEncryptionAwsKms is a ServerSideEncryption enum valueServerSideEncryptionAwsKms = "aws:kms")const (- // @enum StorageClass+ // StorageClassStandard is a StorageClass enum valueStorageClassStandard = "STANDARD"- // @enum StorageClass++ // StorageClassReducedRedundancy is a StorageClass enum valueStorageClassReducedRedundancy = "REDUCED_REDUNDANCY"- // @enum StorageClass++ // StorageClassStandardIa is a StorageClass enum valueStorageClassStandardIa = "STANDARD_IA")const (- // @enum TransitionStorageClass+ // TransitionStorageClassGlacier is a TransitionStorageClass enum valueTransitionStorageClassGlacier = "GLACIER"- // @enum TransitionStorageClass++ // TransitionStorageClassStandardIa is a TransitionStorageClass enum valueTransitionStorageClassStandardIa = "STANDARD_IA")const (- // @enum Type+ // TypeCanonicalUser is a Type enum valueTypeCanonicalUser = "CanonicalUser"- // @enum Type++ // TypeAmazonCustomerByEmail is a Type enum valueTypeAmazonCustomerByEmail = "AmazonCustomerByEmail"- // @enum Type++ // TypeGroup is a Type enum valueTypeGroup = "Group")diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.goindex c227f242c..846334723 100644--- a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go@@ -6,32 +6,41 @@ import ()func init() {- initClient = func(c *client.Client) {- // Support building custom host-style bucket endpoints- c.Handlers.Build.PushFront(updateHostWithBucket)+ initClient = defaultInitClientFn+ initRequest = defaultInitRequestFn+}- // Require SSL when using SSE keys- c.Handlers.Validate.PushBack(validateSSERequiresSSL)- c.Handlers.Build.PushBack(computeSSEKeys)+func defaultInitClientFn(c *client.Client) {+ // Support building custom endpoints based on config+ c.Handlers.Build.PushFront(updateEndpointForS3Config)- // S3 uses custom error unmarshaling logic- c.Handlers.UnmarshalError.Clear()- c.Handlers.UnmarshalError.PushBack(unmarshalError)- }+ // Require SSL when using SSE keys+ c.Handlers.Validate.PushBack(validateSSERequiresSSL)+ c.Handlers.Build.PushBack(computeSSEKeys)++ // S3 uses custom error unmarshaling logic+ c.Handlers.UnmarshalError.Clear()+ c.Handlers.UnmarshalError.PushBack(unmarshalError)+}++func defaultInitRequestFn(r *request.Request) {+ // Add reuest handlers for specific platforms.+ // e.g. 100-continue support for PUT requests using Go 1.6+ platformRequestHandlers(r)- initRequest = func(r *request.Request) {- switch r.Operation.Name {- case opPutBucketCors, opPutBucketLifecycle, opPutBucketPolicy, opPutBucketTagging, opDeleteObjects, opPutBucketLifecycleConfiguration:- // These S3 operations require Content-MD5 to be set- r.Handlers.Build.PushBack(contentMD5)- case opGetBucketLocation:- // GetBucketLocation has custom parsing logic- r.Handlers.Unmarshal.PushFront(buildGetBucketLocation)- case opCreateBucket:- // Auto-populate LocationConstraint with current region- r.Handlers.Validate.PushFront(populateLocationConstraint)- case opCopyObject, opUploadPartCopy, opCompleteMultipartUpload:- r.Handlers.Unmarshal.PushFront(copyMultipartStatusOKUnmarhsalError)- }+ switch r.Operation.Name {+ case opPutBucketCors, opPutBucketLifecycle, opPutBucketPolicy,+ opPutBucketTagging, opDeleteObjects, opPutBucketLifecycleConfiguration,+ opPutBucketReplication:+ // These S3 operations require Content-MD5 to be set+ r.Handlers.Build.PushBack(contentMD5)+ case opGetBucketLocation:+ // GetBucketLocation has custom parsing logic+ r.Handlers.Unmarshal.PushFront(buildGetBucketLocation)+ case opCreateBucket:+ // Auto-populate LocationConstraint with current region+ r.Handlers.Validate.PushFront(populateLocationConstraint)+ case opCopyObject, opUploadPartCopy, opCompleteMultipartUpload:+ r.Handlers.Unmarshal.PushFront(copyMultipartStatusOKUnmarhsalError)}}diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.goindex b7cf4f9cc..f05d1eae9 100644--- a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go@@ -1,14 +1,145 @@package s3import (+ "bytes"+ "fmt"+ "net/url""regexp""strings""github.com/aws/aws-sdk-go/aws"+ "github.com/aws/aws-sdk-go/aws/awserr""github.com/aws/aws-sdk-go/aws/awsutil""github.com/aws/aws-sdk-go/aws/request")+// an operationBlacklist is a list of operation names that should a+// request handler should not be executed with.+type operationBlacklist []string++// Continue will return true of the Request's operation name is not+// in the blacklist. False otherwise.+func (b operationBlacklist) Continue(r *request.Request) bool {+ for i := 0; i < len(b); i++ {+ if b[i] == r.Operation.Name {+ return false+ }+ }+ return true+}++var accelerateOpBlacklist = operationBlacklist{+ opListBuckets, opCreateBucket, opDeleteBucket,+}++// Request handler to automatically add the bucket name to the endpoint domain+// if possible. This style of bucket is valid for all bucket names which are+// DNS compatible and do not contain "."+func updateEndpointForS3Config(r *request.Request) {+ forceHostStyle := aws.BoolValue(r.Config.S3ForcePathStyle)+ accelerate := aws.BoolValue(r.Config.S3UseAccelerate)++ if accelerate && accelerateOpBlacklist.Continue(r) {+ if forceHostStyle {+ if r.Config.Logger != nil {+ r.Config.Logger.Log("ERROR: aws.Config.S3UseAccelerate is not compatible with aws.Config.S3ForcePathStyle, ignoring S3ForcePathStyle.")+ }+ }+ updateEndpointForAccelerate(r)+ } else if !forceHostStyle && r.Operation.Name != opGetBucketLocation {+ updateEndpointForHostStyle(r)+ }+}++func updateEndpointForHostStyle(r *request.Request) {+ bucket, ok := bucketNameFromReqParams(r.Params)+ if !ok {+ // Ignore operation requests if the bucketname was not provided+ // if this is an input validation error the validation handler+ // will report it.+ return+ }++ if !hostCompatibleBucketName(r.HTTPRequest.URL, bucket) {+ // bucket name must be valid to put into the host+ return+ }++ moveBucketToHost(r.HTTPRequest.URL, bucket)+}++var (+ accelElem = []byte("s3-accelerate.dualstack.")+)++func updateEndpointForAccelerate(r *request.Request) {+ bucket, ok := bucketNameFromReqParams(r.Params)+ if !ok {+ // Ignore operation requests if the bucketname was not provided+ // if this is an input validation error the validation handler+ // will report it.+ return+ }++ if !hostCompatibleBucketName(r.HTTPRequest.URL, bucket) {+ r.Error = awserr.New("InvalidParameterException",+ fmt.Sprintf("bucket name %s is not compatibile with S3 Accelerate", bucket),+ nil)+ return+ }++ // Change endpoint from s3(-[a-z0-1-])?.amazonaws.com to s3-accelerate.amazonaws.com+ r.HTTPRequest.URL.Host = replaceHostRegion(r.HTTPRequest.URL.Host, "accelerate")++ if aws.BoolValue(r.Config.UseDualStack) {+ host := []byte(r.HTTPRequest.URL.Host)++ // Strip region from hostname+ if idx := bytes.Index(host, accelElem); idx >= 0 {+ start := idx + len(accelElem)+ if end := bytes.IndexByte(host[start:], '.'); end >= 0 {+ end += start + 1+ copy(host[start:], host[end:])+ host = host[:len(host)-(end-start)]+ r.HTTPRequest.URL.Host = string(host)+ }+ }+ }++ moveBucketToHost(r.HTTPRequest.URL, bucket)+}++// Attempts to retrieve the bucket name from the request input parameters.+// If no bucket is found, or the field is empty "", false will be returned.+func bucketNameFromReqParams(params interface{}) (string, bool) {+ b, _ := awsutil.ValuesAtPath(params, "Bucket")+ if len(b) == 0 {+ return "", false+ }++ if bucket, ok := b[0].(*string); ok {+ if bucketStr := aws.StringValue(bucket); bucketStr != "" {+ return bucketStr, true+ }+ }++ return "", false+}++// hostCompatibleBucketName returns true if the request should+// put the bucket in the host. This is false if S3ForcePathStyle is+// explicitly set or if the bucket is not DNS compatible.+func hostCompatibleBucketName(u *url.URL, bucket string) bool {+ // Bucket might be DNS compatible but dots in the hostname will fail+ // certificate validation, so do not use host-style.+ if u.Scheme == "https" && strings.Contains(bucket, ".") {+ return false+ }++ // if the bucket is DNS compatible+ return dnsCompatibleBucketName(bucket)+}+var reDomain = regexp.MustCompile(`^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$`)var reIPAddress = regexp.MustCompile(`^(\d+\.){3}\d+$`)@@ -20,41 +151,36 @@ func dnsCompatibleBucketName(bucket string) bool {!strings.Contains(bucket, "..")}-// hostStyleBucketName returns true if the request should put the bucket in-// the host. This is false if S3ForcePathStyle is explicitly set or if the-// bucket is not DNS compatible.-func hostStyleBucketName(r *request.Request, bucket string) bool {- if aws.BoolValue(r.Config.S3ForcePathStyle) {- return false+// moveBucketToHost moves the bucket name from the URI path to URL host.+func moveBucketToHost(u *url.URL, bucket string) {+ u.Host = bucket + "." + u.Host+ u.Path = strings.Replace(u.Path, "/{Bucket}", "", -1)+ if u.Path == "" {+ u.Path = "/"}+}- // Bucket might be DNS compatible but dots in the hostname will fail- // certificate validation, so do not use host-style.- if r.HTTPRequest.URL.Scheme == "https" && strings.Contains(bucket, ".") {- return false- }+const s3HostPrefix = "s3"- // GetBucketLocation should be able to be called from any region within- // a partition, and return the associated region of the bucket.- if r.Operation.Name == opGetBucketLocation {- return false+// replaceHostRegion replaces the S3 region string in the host with the+// value provided. If v is empty the host prefix returned will be s3.+func replaceHostRegion(host, v string) string {+ if !strings.HasPrefix(host, s3HostPrefix) {+ return host}- // Use host-style if the bucket is DNS compatible- return dnsCompatibleBucketName(bucket)-}--func updateHostWithBucket(r *request.Request) {- b, _ := awsutil.ValuesAtPath(r.Params, "Bucket")- if len(b) == 0 {- return+ suffix := host[len(s3HostPrefix):]+ for i := len(s3HostPrefix); i < len(host); i++ {+ if host[i] == '.' {+ // Trim until '.' leave the it in place.+ suffix = host[i:]+ break+ }}- if bucket := b[0].(*string); aws.StringValue(bucket) != "" && hostStyleBucketName(r, *bucket) {- r.HTTPRequest.URL.Host = *bucket + "." + r.HTTPRequest.URL.Host- r.HTTPRequest.URL.Path = strings.Replace(r.HTTPRequest.URL.Path, "/{Bucket}", "", -1)- if r.HTTPRequest.URL.Path == "" {- r.HTTPRequest.URL.Path = "/"- }+ if len(v) == 0 {+ return fmt.Sprintf("s3%s", suffix)}++ return fmt.Sprintf("s3-%s%s", v, suffix)}diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go b/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.gonew file mode 100644index 000000000..8e6f3307d--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go@@ -0,0 +1,8 @@+// +build !go1.6++package s3++import "github.com/aws/aws-sdk-go/aws/request"++func platformRequestHandlers(r *request.Request) {+}diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go b/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.gonew file mode 100644index 000000000..14d05f7b7--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go@@ -0,0 +1,28 @@+// +build go1.6++package s3++import (+ "github.com/aws/aws-sdk-go/aws"+ "github.com/aws/aws-sdk-go/aws/request"+)++func platformRequestHandlers(r *request.Request) {+ if r.Operation.HTTPMethod == "PUT" {+ // 100-Continue should only be used on put requests.+ r.Handlers.Sign.PushBack(add100Continue)+ }+}++func add100Continue(r *request.Request) {+ if aws.BoolValue(r.Config.S3Disable100Continue) {+ return+ }+ if r.HTTPRequest.ContentLength < 1024*1024*2 {+ // Ignore requests smaller than 2MB. This helps prevent delaying+ // requests unnecessarily.+ return+ }++ r.HTTPRequest.Header.Set("Expect", "100-Continue")+}diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.goindex 9e66afb34..dd13513d3 100644--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go@@ -1,6 +1,11 @@// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.-// Package s3iface provides an interface for the Amazon Simple Storage Service.+// Package s3iface provides an interface to enable mocking the Amazon Simple Storage Service service client+// for testing your code.+//+// It is important to note that this interface will have breaking changes+// when the service model is updated and adds new API operations, paginators,+// and waiters.package s3ifaceimport (@@ -8,7 +13,51 @@ import ("github.com/aws/aws-sdk-go/service/s3")-// S3API is the interface type for s3.S3.+// S3API provides an interface to enable mocking the+// s3.S3 service client's API operation,+// paginators, and waiters. This make unit testing your code that calls out+// to the SDK's service client's calls easier.+//+// The best way to use this interface is so the SDK's service client's calls+// can be stubbed out for unit testing your code with the SDK without needing+// to inject custom request handlers into the the SDK's request pipeline.+//+// // myFunc uses an SDK service client to make a request to+// // Amazon Simple Storage Service.+// func myFunc(svc s3iface.S3API) bool {+// // Make svc.AbortMultipartUpload request+// }+//+// func main() {+// sess := session.New()+// svc := s3.New(sess)+//+// myFunc(svc)+// }+//+// In your _test.go file:+//+// // Define a mock struct to be used in your unit tests of myFunc.+// type mockS3Client struct {+// s3iface.S3API+// }+// func (m *mockS3Client) AbortMultipartUpload(input *s3.AbortMultipartUploadInput) (*s3.AbortMultipartUploadOutput, error) {+// // mock response/functionality+// }+//+// TestMyFunc(t *testing.T) {+// // Setup Test+// mockSvc := &mockS3Client{}+//+// myfunc(mockSvc)+//+// // Verify myFunc's functionality+// }+//+// It is important to note that this interface will have breaking changes+// when the service model is updated and adds new API operations, paginators,+// and waiters. Its suggested to use the pattern above for testing, or using+// tooling to generate mocks to satisfy the interfaces.type S3API interface {AbortMultipartUploadRequest(*s3.AbortMultipartUploadInput) (*request.Request, *s3.AbortMultipartUploadOutput)@@ -66,6 +115,10 @@ type S3API interface {DeleteObjects(*s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error)+ GetBucketAccelerateConfigurationRequest(*s3.GetBucketAccelerateConfigurationInput) (*request.Request, *s3.GetBucketAccelerateConfigurationOutput)++ GetBucketAccelerateConfiguration(*s3.GetBucketAccelerateConfigurationInput) (*s3.GetBucketAccelerateConfigurationOutput, error)+GetBucketAclRequest(*s3.GetBucketAclInput) (*request.Request, *s3.GetBucketAclOutput)GetBucketAcl(*s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error)@@ -164,12 +217,22 @@ type S3API interface {ListObjectsPages(*s3.ListObjectsInput, func(*s3.ListObjectsOutput, bool) bool) error+ ListObjectsV2Request(*s3.ListObjectsV2Input) (*request.Request, *s3.ListObjectsV2Output)++ ListObjectsV2(*s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)++ ListObjectsV2Pages(*s3.ListObjectsV2Input, func(*s3.ListObjectsV2Output, bool) bool) error+ListPartsRequest(*s3.ListPartsInput) (*request.Request, *s3.ListPartsOutput)ListParts(*s3.ListPartsInput) (*s3.ListPartsOutput, error)ListPartsPages(*s3.ListPartsInput, func(*s3.ListPartsOutput, bool) bool) error+ PutBucketAccelerateConfigurationRequest(*s3.PutBucketAccelerateConfigurationInput) (*request.Request, *s3.PutBucketAccelerateConfigurationOutput)++ PutBucketAccelerateConfiguration(*s3.PutBucketAccelerateConfigurationInput) (*s3.PutBucketAccelerateConfigurationOutput, error)+PutBucketAclRequest(*s3.PutBucketAclInput) (*request.Request, *s3.PutBucketAclOutput)PutBucketAcl(*s3.PutBucketAclInput) (*s3.PutBucketAclOutput, error)@@ -241,6 +304,14 @@ type S3API interface {UploadPartCopyRequest(*s3.UploadPartCopyInput) (*request.Request, *s3.UploadPartCopyOutput)UploadPartCopy(*s3.UploadPartCopyInput) (*s3.UploadPartCopyOutput, error)++ WaitUntilBucketExists(*s3.HeadBucketInput) error++ WaitUntilBucketNotExists(*s3.HeadBucketInput) error++ WaitUntilObjectExists(*s3.HeadObjectInput) error++ WaitUntilObjectNotExists(*s3.HeadObjectInput) error}var _ S3API = (*s3.S3)(nil)diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.goindex 8d6d9310f..dfdee1881 100644--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go@@ -8,6 +8,7 @@ import ("strings""sync"+ "github.com/aws/aws-sdk-go/aws""github.com/aws/aws-sdk-go/aws/awserr""github.com/aws/aws-sdk-go/aws/awsutil""github.com/aws/aws-sdk-go/aws/client"@@ -34,7 +35,7 @@ type Downloader struct {PartSize int64// The number of goroutines to spin up in parallel when sending parts.- // If this is set to zero, the DefaultConcurrency value will be used.+ // If this is set to zero, the DefaultDownloadConcurrency value will be used.Concurrency int// An S3 client to use when performing downloads.@@ -49,13 +50,13 @@ type Downloader struct {//// Example:// // The session the S3 Downloader will use-// sess := session.New()+// sess, err := session.NewSession()//// // Create a downloader with the session and default options// downloader := s3manager.NewDownloader(sess)//// // Create a downloader with the session and custom options-// downloader := s3manager.NewDownloader(sess, func(d *s3manager.Uploader) {+// downloader := s3manager.NewDownloader(sess, func(d *s3manager.Downloader) {// d.PartSize = 64 * 1024 * 1024 // 64MB per part// })func NewDownloader(c client.ConfigProvider, options ...func(*Downloader)) *Downloader {@@ -77,14 +78,17 @@ func NewDownloader(c client.ConfigProvider, options ...func(*Downloader)) *Downl// to make S3 API calls.//// Example:+// // The session the S3 Downloader will use+// sess, err := session.NewSession()+//// // The S3 client the S3 Downloader will use-// s3Svc := s3.new(session.New())+// s3Svc := s3.new(sess)//// // Create a downloader with the s3 client and default options// downloader := s3manager.NewDownloaderWithClient(s3Svc)//// // Create a downloader with the s3 client and custom options-// downloader := s3manager.NewDownloaderWithClient(s3Svc, func(d *s3manager.Uploader) {+// downloader := s3manager.NewDownloaderWithClient(s3Svc, func(d *s3manager.Downloader) {// d.PartSize = 64 * 1024 * 1024 // 64MB per part// })func NewDownloaderWithClient(svc s3iface.S3API, options ...func(*Downloader)) *Downloader {@@ -100,12 +104,16 @@ func NewDownloaderWithClient(svc s3iface.S3API, options ...func(*Downloader)) *Dreturn d}+type maxRetrier interface {+ MaxRetries() int+}+// Download downloads an object in S3 and writes the payload into w using// concurrent GET requests.//// Additional functional options can be provided to configure the individual-// upload. These options are copies of the Uploader instance Upload is called from.-// Modifying the options will not impact the original Uploader instance.+// download. These options are copies of the Downloader instance Download is called from.+// Modifying the options will not impact the original Downloader instance.//// It is safe to call this method concurrently across goroutines.//@@ -118,6 +126,19 @@ func (d Downloader) Download(w io.WriterAt, input *s3.GetObjectInput, options ..option(&impl.ctx)}+ if s, ok := d.S3.(maxRetrier); ok {+ impl.partBodyMaxRetries = s.MaxRetries()+ }++ impl.totalBytes = -1+ if impl.ctx.Concurrency == 0 {+ impl.ctx.Concurrency = DefaultDownloadConcurrency+ }++ if impl.ctx.PartSize == 0 {+ impl.ctx.PartSize = DefaultDownloadPartSize+ }+return impl.download()}@@ -135,26 +156,13 @@ type downloader struct {totalBytes int64written int64err error-}--// init initializes the downloader with default options.-func (d *downloader) init() {- d.totalBytes = -1-- if d.ctx.Concurrency == 0 {- d.ctx.Concurrency = DefaultDownloadConcurrency- }- if d.ctx.PartSize == 0 {- d.ctx.PartSize = DefaultDownloadPartSize- }+ partBodyMaxRetries int}// download performs the implementation of the object download across ranged// GETs.func (d *downloader) download() (n int64, err error) {- d.init()-// Spin off first worker to check additional header informationd.getChunk()@@ -170,7 +178,7 @@ func (d *downloader) download() (n int64, err error) {// Assign workfor d.getErr() == nil {if d.pos >= total {- break // We're finished queueing chunks+ break // We're finished queuing chunks}// Queue the next range of bytes to read.@@ -211,49 +219,82 @@ func (d *downloader) downloadPart(ch chan dlchunk) {defer d.wg.Done()for {chunk, ok := <-ch- if !ok {+ if !ok || d.getErr() != nil {+ break+ }++ if err := d.downloadChunk(chunk); err != nil {+ d.setErr(err)break}- d.downloadChunk(chunk)}}// getChunk grabs a chunk of data from the body.// Not thread safe. Should only used when grabbing data on a single thread.func (d *downloader) getChunk() {+ if d.getErr() != nil {+ return+ }+chunk := dlchunk{w: d.w, start: d.pos, size: d.ctx.PartSize}d.pos += d.ctx.PartSize- d.downloadChunk(chunk)++ if err := d.downloadChunk(chunk); err != nil {+ d.setErr(err)+ }}// downloadChunk downloads the chunk froom s3-func (d *downloader) downloadChunk(chunk dlchunk) {- if d.getErr() != nil {- return- }- // Get the next byte range of data+func (d *downloader) downloadChunk(chunk dlchunk) error {in := &s3.GetObjectInput{}awsutil.Copy(in, d.in)- rng := fmt.Sprintf("bytes=%d-%d",- chunk.start, chunk.start+chunk.size-1)++ // Get the next byte range of data+ rng := fmt.Sprintf("bytes=%d-%d", chunk.start, chunk.start+chunk.size-1)in.Range = &rng- req, resp := d.ctx.S3.GetObjectRequest(in)- req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager"))- err := req.Send()+ var n int64+ var err error+ for retry := 0; retry <= d.partBodyMaxRetries; retry++ {+ req, resp := d.ctx.S3.GetObjectRequest(in)+ req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager"))- if err != nil {- d.setErr(err)- } else {+ err = req.Send()+ if err != nil {+ return err+ }d.setTotalBytes(resp) // Set total if not yet set.- n, err := io.Copy(&chunk, resp.Body)+ n, err = io.Copy(&chunk, resp.Body)resp.Body.Close()-- if err != nil {- d.setErr(err)+ if err == nil {+ break}- d.incrWritten(n)++ chunk.cur = 0+ logMessage(d.ctx.S3, aws.LogDebugWithRequestRetries,+ fmt.Sprintf("DEBUG: object part body download interrupted %s, err, %v, retrying attempt %d",+ aws.StringValue(in.Key), err, retry))+ }++ d.incrWritten(n)++ return err+}++func logMessage(svc s3iface.S3API, level aws.LogLevelType, msg string) {+ s, ok := svc.(*s3.S3)+ if !ok {+ return+ }++ if s.Config.Logger == nil {+ return+ }++ if s.Config.LogLevel.Matches(level) {+ s.Config.Logger.Log(msg)}}diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.goindex 44ee75a17..6a17e9630 100644--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go@@ -8,6 +8,7 @@ import ("sync""time"+ "github.com/aws/aws-sdk-go/aws""github.com/aws/aws-sdk-go/aws/awserr""github.com/aws/aws-sdk-go/aws/awsutil""github.com/aws/aws-sdk-go/aws/client"@@ -42,7 +43,7 @@ const DefaultUploadConcurrency = 5// u := s3manager.NewUploader(opts)// output, err := u.upload(input)// if err != nil {-// if multierr, ok := err.(MultiUploadFailure); ok {+// if multierr, ok := err.(s3manager.MultiUploadFailure); ok {// // Process error and its associated uploadID// fmt.Println("Error:", multierr.Code(), multierr.Message(), multierr.UploadID())// } else {@@ -165,7 +166,7 @@ type UploadInput struct {// requests for an object protected by AWS KMS will fail if not made via SSL// or using SigV4. Documentation on configuring any of the officially supported// AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version- SSEKMSKeyID *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`+ SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`// The Server-side encryption algorithm used when storing this object in S3// (e.g., AES256, aws:kms).@@ -208,7 +209,7 @@ type Uploader struct {PartSize int64// The number of goroutines to spin up in parallel when sending parts.- // If this is set to zero, the DefaultConcurrency value will be used.+ // If this is set to zero, the DefaultUploadConcurrency value will be used.Concurrency int// Setting this value to true will cause the SDK to avoid calling@@ -237,7 +238,7 @@ type Uploader struct {//// Example:// // The session the S3 Uploader will use-// sess := session.New()+// sess, err := session.NewSession()//// // Create an uploader with the session and default options// uploader := s3manager.NewUploader(sess)@@ -267,8 +268,11 @@ func NewUploader(c client.ConfigProvider, options ...func(*Uploader)) *Uploader// a S3 service client to make S3 API calls.//// Example:+// // The session the S3 Uploader will use+// sess, err := session.NewSession()+//// // S3 service client the Upload manager will use.-// s3Svc := s3.New(session.New())+// s3Svc := s3.New(sess)//// // Create an uploader with S3 client and default options// uploader := s3manager.NewUploaderWithClient(s3Svc)@@ -317,7 +321,7 @@ func NewUploaderWithClient(svc s3iface.S3API, options ...func(*Uploader)) *Uploa// // Perform upload with options different than the those in the Uploader.// result, err := uploader.Upload(upParams, func(u *s3manager.Uploader) {// u.PartSize = 10 * 1024 * 1024 // 10MB part size-// u.LeavePartsOnError = true // Dont delete the parts if the upload fails.+// u.LeavePartsOnError = true // Don't delete the parts if the upload fails.// })func (u Uploader) Upload(input *UploadInput, options ...func(*Uploader)) (*UploadOutput, error) {i := uploader{in: input, ctx: u}@@ -350,15 +354,15 @@ func (u *uploader) upload() (*UploadOutput, error) {}// Do one read to determine if we have more than one part- buf, err := u.nextReader()- if err == io.EOF || err == io.ErrUnexpectedEOF { // single part- return u.singlePart(buf)+ reader, _, err := u.nextReader()+ if err == io.EOF { // single part+ return u.singlePart(reader)} else if err != nil {return nil, awserr.New("ReadRequestBody", "read upload data failed", err)}mu := multiuploader{uploader: u}- return mu.upload(buf)+ return mu.upload(reader)}// init will initialize all default options.@@ -404,38 +408,49 @@ func (u *uploader) initSize() {// This operation increases the shared u.readerPos counter, but note that it// does not need to be wrapped in a mutex because nextReader is only called// from the main thread.-func (u *uploader) nextReader() (io.ReadSeeker, error) {+func (u *uploader) nextReader() (io.ReadSeeker, int, error) {+ type readerAtSeeker interface {+ io.ReaderAt+ io.ReadSeeker+ }switch r := u.in.Body.(type) {- case io.ReaderAt:+ case readerAtSeeker:var err errorn := u.ctx.PartSizeif u.totalSize >= 0 {bytesLeft := u.totalSize - u.readerPos- if bytesLeft == 0 {+ if bytesLeft <= u.ctx.PartSize {err = io.EOFn = bytesLeft- } else if bytesLeft <= u.ctx.PartSize {- err = io.ErrUnexpectedEOF- n = bytesLeft}}- buf := io.NewSectionReader(r, u.readerPos, n)+ reader := io.NewSectionReader(r, u.readerPos, n)u.readerPos += n- return buf, err+ return reader, int(n), errdefault:- packet := make([]byte, u.ctx.PartSize)- n, err := io.ReadFull(u.in.Body, packet)+ part := make([]byte, u.ctx.PartSize)+ n, err := readFillBuf(r, part)u.readerPos += int64(n)- return bytes.NewReader(packet[0:n]), err+ return bytes.NewReader(part[0:n]), n, err}}+func readFillBuf(r io.Reader, b []byte) (offset int, err error) {+ for offset < len(b) && err == nil {+ var n int+ n, err = r.Read(b[offset:])+ offset += n+ }++ return offset, err+}+// singlePart contains upload logic for uploading a single chunk via// a regular PutObject request. Multipart requests require at least two// parts, or at least 5MB of data.@@ -507,7 +522,9 @@ func (u *multiuploader) upload(firstBuf io.ReadSeeker) (*UploadOutput, error) {ch <- chunk{buf: firstBuf, num: num}// Read and queue the rest of the parts- for u.geterr() == nil {+ var err error+ for u.geterr() == nil && err == nil {+ num++// This upload exceeded maximum number of supported parts, error now.if num > int64(u.ctx.MaxUploadParts) || num > int64(MaxUploadParts) {var msg string@@ -521,22 +538,27 @@ func (u *multiuploader) upload(firstBuf io.ReadSeeker) (*UploadOutput, error) {u.seterr(awserr.New("TotalPartsExceeded", msg, nil))break}- num++-- buf, err := u.nextReader()- if err == io.EOF {- break- }- ch <- chunk{buf: buf, num: num}+ var reader io.ReadSeeker+ var nextChunkLen int+ reader, nextChunkLen, err = u.nextReader()- if err != nil && err != io.ErrUnexpectedEOF {+ if err != nil && err != io.EOF {u.seterr(awserr.New("ReadRequestBody","read multipart upload data failed",err))break}++ if nextChunkLen == 0 {+ // No need to upload empty part, if file was empty to start+ // with empty single part would of been created and never+ // started multipart upload.+ break+ }++ ch <- chunk{buf: reader, num: num}}// Close the channel, wait for workers, and complete upload@@ -554,7 +576,7 @@ func (u *multiuploader) upload(firstBuf io.ReadSeeker) (*UploadOutput, error) {}}return &UploadOutput{- Location: *complete.Location,+ Location: aws.StringValue(complete.Location),VersionID: complete.VersionId,UploadID: u.uploadID,}, nildiff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go b/vendor/github.com/aws/aws-sdk-go/service/s3/service.goindex cf01da535..5833952a2 100644--- a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/service.go@@ -7,8 +7,8 @@ import ("github.com/aws/aws-sdk-go/aws/client""github.com/aws/aws-sdk-go/aws/client/metadata""github.com/aws/aws-sdk-go/aws/request"+ "github.com/aws/aws-sdk-go/aws/signer/v4""github.com/aws/aws-sdk-go/private/protocol/restxml"- "github.com/aws/aws-sdk-go/private/signer/v4")// S3 is a client for Amazon S3.@@ -58,7 +58,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio}// Handlers- svc.Handlers.Sign.PushBack(v4.Sign)+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.goindex cd6004825..ed91c5872 100644--- a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go@@ -4,6 +4,7 @@ import ("encoding/xml""fmt""io"+ "io/ioutil""net/http""strings"@@ -20,7 +21,10 @@ type xmlErrorResponse struct {func unmarshalError(r *request.Request) {defer r.HTTPResponse.Body.Close()+ defer io.Copy(ioutil.Discard, r.HTTPResponse.Body)+ // Bucket exists in a different region, and request needs+ // to be made to the correct region.if r.HTTPResponse.StatusCode == http.StatusMovedPermanently {r.Error = awserr.NewRequestFailure(awserr.New("BucketRegionError",@@ -33,25 +37,29 @@ func unmarshalError(r *request.Request) {return}- if r.HTTPResponse.ContentLength == 0 {- // No body, use status code to generate an awserr.Error- r.Error = awserr.NewRequestFailure(- awserr.New(strings.Replace(r.HTTPResponse.Status, " ", "", -1), r.HTTPResponse.Status, nil),- r.HTTPResponse.StatusCode,- r.RequestID,- )- return- }+ var errCode, errMsg string+ // Attempt to parse error from body if it is knownresp := &xmlErrorResponse{}err := xml.NewDecoder(r.HTTPResponse.Body).Decode(resp)if err != nil && err != io.EOF {- r.Error = awserr.New("SerializationError", "failed to decode S3 XML error response", nil)+ errCode = "SerializationError"+ errMsg = "failed to decode S3 XML error response"} else {- r.Error = awserr.NewRequestFailure(- awserr.New(resp.Code, resp.Message, nil),- r.HTTPResponse.StatusCode,- r.RequestID,- )+ errCode = resp.Code+ errMsg = resp.Message}++ // Fallback to status code converted to message if still no error code+ if len(errCode) == 0 {+ statusText := http.StatusText(r.HTTPResponse.StatusCode)+ errCode = strings.Replace(statusText, " ", "", -1)+ errMsg = statusText+ }++ r.Error = awserr.NewRequestFailure(+ awserr.New(errCode, errMsg, nil),+ r.HTTPResponse.StatusCode,+ r.RequestID,+ )}diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.goindex 4879fca8a..5e16be4ba 100644--- a/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go@@ -6,6 +6,10 @@ import ("github.com/aws/aws-sdk-go/private/waiter")+// WaitUntilBucketExists uses the Amazon S3 API operation+// HeadBucket to wait for a condition to be met before returning.+// If the condition is not meet within the max attempt window an error will+// be returned.func (c *S3) WaitUntilBucketExists(input *HeadBucketInput) error {waiterCfg := waiter.Config{Operation: "HeadBucket",@@ -18,6 +22,12 @@ func (c *S3) WaitUntilBucketExists(input *HeadBucketInput) error {Argument: "",Expected: 200,},+ {+ State: "success",+ Matcher: "status",+ Argument: "",+ Expected: 301,+ },{State: "success",Matcher: "status",@@ -41,6 +51,10 @@ func (c *S3) WaitUntilBucketExists(input *HeadBucketInput) error {return w.Wait()}+// WaitUntilBucketNotExists uses the Amazon S3 API operation+// HeadBucket to wait for a condition to be met before returning.+// If the condition is not meet within the max attempt window an error will+// be returned.func (c *S3) WaitUntilBucketNotExists(input *HeadBucketInput) error {waiterCfg := waiter.Config{Operation: "HeadBucket",@@ -64,6 +78,10 @@ func (c *S3) WaitUntilBucketNotExists(input *HeadBucketInput) error {return w.Wait()}+// WaitUntilObjectExists uses the Amazon S3 API operation+// HeadObject to wait for a condition to be met before returning.+// If the condition is not meet within the max attempt window an error will+// be returned.func (c *S3) WaitUntilObjectExists(input *HeadObjectInput) error {waiterCfg := waiter.Config{Operation: "HeadObject",@@ -93,6 +111,10 @@ func (c *S3) WaitUntilObjectExists(input *HeadObjectInput) error {return w.Wait()}+// WaitUntilObjectNotExists uses the Amazon S3 API operation+// HeadObject to wait for a condition to be met before returning.+// If the condition is not meet within the max attempt window an error will+// be returned.func (c *S3) WaitUntilObjectNotExists(input *HeadObjectInput) error {waiterCfg := waiter.Config{Operation: "HeadObject",diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go b/vendor/github.com/aws/aws-sdk-go/service/sts/api.gonew file mode 100644index 000000000..7d4e143a5--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go@@ -0,0 +1,2242 @@+// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.++// Package sts provides a client for AWS Security Token Service.+package sts++import (+ "time"++ "github.com/aws/aws-sdk-go/aws/awsutil"+ "github.com/aws/aws-sdk-go/aws/request"+)++const opAssumeRole = "AssumeRole"++// AssumeRoleRequest generates a "aws/request.Request" representing the+// client's request for the AssumeRole operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See AssumeRole for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the AssumeRole method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the AssumeRoleRequest method.+// req, resp := client.AssumeRoleRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, output *AssumeRoleOutput) {+ op := &request.Operation{+ Name: opAssumeRole,+ HTTPMethod: "POST",+ HTTPPath: "/",+ }++ if input == nil {+ input = &AssumeRoleInput{}+ }++ req = c.newRequest(op, input, output)+ output = &AssumeRoleOutput{}+ req.Data = output+ return+}++// AssumeRole API operation for AWS Security Token Service.+//+// Returns a set of temporary security credentials (consisting of an access+// key ID, a secret access key, and a security token) that you can use to access+// AWS resources that you might not normally have access to. Typically, you+// use AssumeRole for cross-account access or federation. For a comparison of+// AssumeRole with the other APIs that produce temporary credentials, see Requesting+// Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)+// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)+// in the IAM User Guide.+//+// Important: You cannot call AssumeRole by using AWS root account credentials;+// access is denied. You must use credentials for an IAM user or an IAM role+// to call AssumeRole.+//+// For cross-account access, imagine that you own multiple accounts and need+// to access resources in each account. You could create long-term credentials+// in each account to access those resources. However, managing all those credentials+// and remembering which one can access which account can be time consuming.+// Instead, you can create one set of long-term credentials in one account and+// then use temporary security credentials to access all the other accounts+// by assuming roles in those accounts. For more information about roles, see+// IAM Roles (Delegation and Federation) (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html)+// in the IAM User Guide.+//+// For federation, you can, for example, grant single sign-on access to the+// AWS Management Console. If you already have an identity and authentication+// system in your corporate network, you don't have to recreate user identities+// in AWS in order to grant those user identities access to AWS. Instead, after+// a user has been authenticated, you call AssumeRole (and specify the role+// with the appropriate permissions) to get temporary security credentials for+// that user. With those temporary security credentials, you construct a sign-in+// URL that users can use to access the console. For more information, see Common+// Scenarios for Temporary Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html#sts-introduction)+// in the IAM User Guide.+//+// The temporary security credentials are valid for the duration that you specified+// when calling AssumeRole, which can be from 900 seconds (15 minutes) to a+// maximum of 3600 seconds (1 hour). The default is 1 hour.+//+// The temporary security credentials created by AssumeRole can be used to make+// API calls to any AWS service with the following exception: you cannot call+// the STS service's GetFederationToken or GetSessionToken APIs.+//+// Optionally, you can pass an IAM access policy to this operation. If you choose+// not to pass a policy, the temporary security credentials that are returned+// by the operation have the permissions that are defined in the access policy+// of the role that is being assumed. If you pass a policy to this operation,+// the temporary security credentials that are returned by the operation have+// the permissions that are allowed by both the access policy of the role that+// is being assumed, and the policy that you pass. This gives you a way to further+// restrict the permissions for the resulting temporary security credentials.+// You cannot use the passed policy to grant permissions that are in excess+// of those allowed by the access policy of the role that is being assumed.+// For more information, see Permissions for AssumeRole, AssumeRoleWithSAML,+// and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html)+// in the IAM User Guide.+//+// To assume a role, your AWS account must be trusted by the role. The trust+// relationship is defined in the role's trust policy when the role is created.+// That trust policy states which accounts are allowed to delegate access to+// this account's role.+//+// The user who wants to access the role must also have permissions delegated+// from the role's administrator. If the user is in a different account than+// the role, then the user's administrator must attach a policy that allows+// the user to call AssumeRole on the ARN of the role in the other account.+// If the user is in the same account as the role, then you can either attach+// a policy to the user (identical to the previous different account user),+// or you can add the user as a principal directly in the role's trust policy+//+// Using MFA with AssumeRole+//+// You can optionally include multi-factor authentication (MFA) information+// when you call AssumeRole. This is useful for cross-account scenarios in which+// you want to make sure that the user who is assuming the role has been authenticated+// using an AWS MFA device. In that scenario, the trust policy of the role being+// assumed includes a condition that tests for MFA authentication; if the caller+// does not include valid MFA information, the request to assume the role is+// denied. The condition in a trust policy that tests for MFA authentication+// might look like the following example.+//+// "Condition": {"Bool": {"aws:MultiFactorAuthPresent": true}}+//+// For more information, see Configuring MFA-Protected API Access (http://docs.aws.amazon.com/IAM/latest/UserGuide/MFAProtectedAPI.html)+// in the IAM User Guide guide.+//+// To use MFA with AssumeRole, you pass values for the SerialNumber and TokenCode+// parameters. The SerialNumber value identifies the user's hardware or virtual+// MFA device. The TokenCode is the time-based one-time password (TOTP) that+// the MFA devices produces.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for AWS Security Token Service's+// API operation AssumeRole for usage and error information.+//+// Returned Error Codes:+// * MalformedPolicyDocument+// The request was rejected because the policy document was malformed. The error+// message describes the specific error.+//+// * PackedPolicyTooLarge+// The request was rejected because the policy document was too large. The error+// message describes how big the policy document is, in packed form, as a percentage+// of what the API allows.+//+// * RegionDisabledException+// STS is not activated in the requested region for the account that is being+// asked to generate credentials. The account administrator must use the IAM+// console to activate STS in that region. For more information, see Activating+// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)+// in the IAM User Guide.+//+func (c *STS) AssumeRole(input *AssumeRoleInput) (*AssumeRoleOutput, error) {+ req, out := c.AssumeRoleRequest(input)+ err := req.Send()+ return out, err+}++const opAssumeRoleWithSAML = "AssumeRoleWithSAML"++// AssumeRoleWithSAMLRequest generates a "aws/request.Request" representing the+// client's request for the AssumeRoleWithSAML operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See AssumeRoleWithSAML for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the AssumeRoleWithSAML method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the AssumeRoleWithSAMLRequest method.+// req, resp := client.AssumeRoleWithSAMLRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *request.Request, output *AssumeRoleWithSAMLOutput) {+ op := &request.Operation{+ Name: opAssumeRoleWithSAML,+ HTTPMethod: "POST",+ HTTPPath: "/",+ }++ if input == nil {+ input = &AssumeRoleWithSAMLInput{}+ }++ req = c.newRequest(op, input, output)+ output = &AssumeRoleWithSAMLOutput{}+ req.Data = output+ return+}++// AssumeRoleWithSAML API operation for AWS Security Token Service.+//+// Returns a set of temporary security credentials for users who have been authenticated+// via a SAML authentication response. This operation provides a mechanism for+// tying an enterprise identity store or directory to role-based AWS access+// without user-specific credentials or configuration. For a comparison of AssumeRoleWithSAML+// with the other APIs that produce temporary credentials, see Requesting Temporary+// Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)+// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)+// in the IAM User Guide.+//+// The temporary security credentials returned by this operation consist of+// an access key ID, a secret access key, and a security token. Applications+// can use these temporary security credentials to sign calls to AWS services.+//+// The temporary security credentials are valid for the duration that you specified+// when calling AssumeRole, or until the time specified in the SAML authentication+// response's SessionNotOnOrAfter value, whichever is shorter. The duration+// can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour).+// The default is 1 hour.+//+// The temporary security credentials created by AssumeRoleWithSAML can be used+// to make API calls to any AWS service with the following exception: you cannot+// call the STS service's GetFederationToken or GetSessionToken APIs.+//+// Optionally, you can pass an IAM access policy to this operation. If you choose+// not to pass a policy, the temporary security credentials that are returned+// by the operation have the permissions that are defined in the access policy+// of the role that is being assumed. If you pass a policy to this operation,+// the temporary security credentials that are returned by the operation have+// the permissions that are allowed by the intersection of both the access policy+// of the role that is being assumed, and the policy that you pass. This means+// that both policies must grant the permission for the action to be allowed.+// This gives you a way to further restrict the permissions for the resulting+// temporary security credentials. You cannot use the passed policy to grant+// permissions that are in excess of those allowed by the access policy of the+// role that is being assumed. For more information, see Permissions for AssumeRole,+// AssumeRoleWithSAML, and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html)+// in the IAM User Guide.+//+// Before your application can call AssumeRoleWithSAML, you must configure your+// SAML identity provider (IdP) to issue the claims required by AWS. Additionally,+// you must use AWS Identity and Access Management (IAM) to create a SAML provider+// entity in your AWS account that represents your identity provider, and create+// an IAM role that specifies this SAML provider in its trust policy.+//+// Calling AssumeRoleWithSAML does not require the use of AWS security credentials.+// The identity of the caller is validated by using keys in the metadata document+// that is uploaded for the SAML provider entity for your identity provider.+//+// Calling AssumeRoleWithSAML can result in an entry in your AWS CloudTrail+// logs. The entry includes the value in the NameID element of the SAML assertion.+// We recommend that you use a NameIDType that is not associated with any personally+// identifiable information (PII). For example, you could instead use the Persistent+// Identifier (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent).+//+// For more information, see the following resources:+//+// * About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html)+// in the IAM User Guide.+//+// * Creating SAML Identity Providers (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html)+// in the IAM User Guide.+//+// * Configuring a Relying Party and Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html)+// in the IAM User Guide.+//+// * Creating a Role for SAML 2.0 Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html)+// in the IAM User Guide.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for AWS Security Token Service's+// API operation AssumeRoleWithSAML for usage and error information.+//+// Returned Error Codes:+// * MalformedPolicyDocument+// The request was rejected because the policy document was malformed. The error+// message describes the specific error.+//+// * PackedPolicyTooLarge+// The request was rejected because the policy document was too large. The error+// message describes how big the policy document is, in packed form, as a percentage+// of what the API allows.+//+// * IDPRejectedClaim+// The identity provider (IdP) reported that authentication failed. This might+// be because the claim is invalid.+//+// If this error is returned for the AssumeRoleWithWebIdentity operation, it+// can also mean that the claim has expired or has been explicitly revoked.+//+// * InvalidIdentityToken+// The web identity token that was passed could not be validated by AWS. Get+// a new identity token from the identity provider and then retry the request.+//+// * ExpiredTokenException+// The web identity token that was passed is expired or is not valid. Get a+// new identity token from the identity provider and then retry the request.+//+// * RegionDisabledException+// STS is not activated in the requested region for the account that is being+// asked to generate credentials. The account administrator must use the IAM+// console to activate STS in that region. For more information, see Activating+// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)+// in the IAM User Guide.+//+func (c *STS) AssumeRoleWithSAML(input *AssumeRoleWithSAMLInput) (*AssumeRoleWithSAMLOutput, error) {+ req, out := c.AssumeRoleWithSAMLRequest(input)+ err := req.Send()+ return out, err+}++const opAssumeRoleWithWebIdentity = "AssumeRoleWithWebIdentity"++// AssumeRoleWithWebIdentityRequest generates a "aws/request.Request" representing the+// client's request for the AssumeRoleWithWebIdentity operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See AssumeRoleWithWebIdentity for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the AssumeRoleWithWebIdentity method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the AssumeRoleWithWebIdentityRequest method.+// req, resp := client.AssumeRoleWithWebIdentityRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityInput) (req *request.Request, output *AssumeRoleWithWebIdentityOutput) {+ op := &request.Operation{+ Name: opAssumeRoleWithWebIdentity,+ HTTPMethod: "POST",+ HTTPPath: "/",+ }++ if input == nil {+ input = &AssumeRoleWithWebIdentityInput{}+ }++ req = c.newRequest(op, input, output)+ output = &AssumeRoleWithWebIdentityOutput{}+ req.Data = output+ return+}++// AssumeRoleWithWebIdentity API operation for AWS Security Token Service.+//+// Returns a set of temporary security credentials for users who have been authenticated+// in a mobile or web application with a web identity provider, such as Amazon+// Cognito, Login with Amazon, Facebook, Google, or any OpenID Connect-compatible+// identity provider.+//+// For mobile applications, we recommend that you use Amazon Cognito. You can+// use Amazon Cognito with the AWS SDK for iOS (http://aws.amazon.com/sdkforios/)+// and the AWS SDK for Android (http://aws.amazon.com/sdkforandroid/) to uniquely+// identify a user and supply the user with a consistent identity throughout+// the lifetime of an application.+//+// To learn more about Amazon Cognito, see Amazon Cognito Overview (http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-auth.html#d0e840)+// in the AWS SDK for Android Developer Guide guide and Amazon Cognito Overview+// (http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-auth.html#d0e664)+// in the AWS SDK for iOS Developer Guide.+//+// Calling AssumeRoleWithWebIdentity does not require the use of AWS security+// credentials. Therefore, you can distribute an application (for example, on+// mobile devices) that requests temporary security credentials without including+// long-term AWS credentials in the application, and without deploying server-based+// proxy services that use long-term AWS credentials. Instead, the identity+// of the caller is validated by using a token from the web identity provider.+// For a comparison of AssumeRoleWithWebIdentity with the other APIs that produce+// temporary credentials, see Requesting Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)+// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)+// in the IAM User Guide.+//+// The temporary security credentials returned by this API consist of an access+// key ID, a secret access key, and a security token. Applications can use these+// temporary security credentials to sign calls to AWS service APIs.+//+// The credentials are valid for the duration that you specified when calling+// AssumeRoleWithWebIdentity, which can be from 900 seconds (15 minutes) to+// a maximum of 3600 seconds (1 hour). The default is 1 hour.+//+// The temporary security credentials created by AssumeRoleWithWebIdentity can+// be used to make API calls to any AWS service with the following exception:+// you cannot call the STS service's GetFederationToken or GetSessionToken APIs.+//+// Optionally, you can pass an IAM access policy to this operation. If you choose+// not to pass a policy, the temporary security credentials that are returned+// by the operation have the permissions that are defined in the access policy+// of the role that is being assumed. If you pass a policy to this operation,+// the temporary security credentials that are returned by the operation have+// the permissions that are allowed by both the access policy of the role that+// is being assumed, and the policy that you pass. This gives you a way to further+// restrict the permissions for the resulting temporary security credentials.+// You cannot use the passed policy to grant permissions that are in excess+// of those allowed by the access policy of the role that is being assumed.+// For more information, see Permissions for AssumeRole, AssumeRoleWithSAML,+// and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html)+// in the IAM User Guide.+//+// Before your application can call AssumeRoleWithWebIdentity, you must have+// an identity token from a supported identity provider and create a role that+// the application can assume. The role that your application assumes must trust+// the identity provider that is associated with the identity token. In other+// words, the identity provider must be specified in the role's trust policy.+//+// Calling AssumeRoleWithWebIdentity can result in an entry in your AWS CloudTrail+// logs. The entry includes the Subject (http://openid.net/specs/openid-connect-core-1_0.html#Claims)+// of the provided Web Identity Token. We recommend that you avoid using any+// personally identifiable information (PII) in this field. For example, you+// could instead use a GUID or a pairwise identifier, as suggested in the OIDC+// specification (http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes).+//+// For more information about how to use web identity federation and the AssumeRoleWithWebIdentity+// API, see the following resources:+//+// * Using Web Identity Federation APIs for Mobile Apps (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual)+// and Federation Through a Web-based Identity Provider (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity).+//+//+// * Web Identity Federation Playground (https://web-identity-federation-playground.s3.amazonaws.com/index.html).+// This interactive website lets you walk through the process of authenticating+// via Login with Amazon, Facebook, or Google, getting temporary security+// credentials, and then using those credentials to make a request to AWS.+//+//+// * AWS SDK for iOS (http://aws.amazon.com/sdkforios/) and AWS SDK for Android+// (http://aws.amazon.com/sdkforandroid/). These toolkits contain sample+// apps that show how to invoke the identity providers, and then how to use+// the information from these providers to get and use temporary security+// credentials.+//+// * Web Identity Federation with Mobile Applications (http://aws.amazon.com/articles/4617974389850313).+// This article discusses web identity federation and shows an example of+// how to use web identity federation to get access to content in Amazon+// S3.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for AWS Security Token Service's+// API operation AssumeRoleWithWebIdentity for usage and error information.+//+// Returned Error Codes:+// * MalformedPolicyDocument+// The request was rejected because the policy document was malformed. The error+// message describes the specific error.+//+// * PackedPolicyTooLarge+// The request was rejected because the policy document was too large. The error+// message describes how big the policy document is, in packed form, as a percentage+// of what the API allows.+//+// * IDPRejectedClaim+// The identity provider (IdP) reported that authentication failed. This might+// be because the claim is invalid.+//+// If this error is returned for the AssumeRoleWithWebIdentity operation, it+// can also mean that the claim has expired or has been explicitly revoked.+//+// * IDPCommunicationError+// The request could not be fulfilled because the non-AWS identity provider+// (IDP) that was asked to verify the incoming identity token could not be reached.+// This is often a transient error caused by network conditions. Retry the request+// a limited number of times so that you don't exceed the request rate. If the+// error persists, the non-AWS identity provider might be down or not responding.+//+// * InvalidIdentityToken+// The web identity token that was passed could not be validated by AWS. Get+// a new identity token from the identity provider and then retry the request.+//+// * ExpiredTokenException+// The web identity token that was passed is expired or is not valid. Get a+// new identity token from the identity provider and then retry the request.+//+// * RegionDisabledException+// STS is not activated in the requested region for the account that is being+// asked to generate credentials. The account administrator must use the IAM+// console to activate STS in that region. For more information, see Activating+// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)+// in the IAM User Guide.+//+func (c *STS) AssumeRoleWithWebIdentity(input *AssumeRoleWithWebIdentityInput) (*AssumeRoleWithWebIdentityOutput, error) {+ req, out := c.AssumeRoleWithWebIdentityRequest(input)+ err := req.Send()+ return out, err+}++const opDecodeAuthorizationMessage = "DecodeAuthorizationMessage"++// DecodeAuthorizationMessageRequest generates a "aws/request.Request" representing the+// client's request for the DecodeAuthorizationMessage operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See DecodeAuthorizationMessage for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the DecodeAuthorizationMessage method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the DecodeAuthorizationMessageRequest method.+// req, resp := client.DecodeAuthorizationMessageRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessageInput) (req *request.Request, output *DecodeAuthorizationMessageOutput) {+ op := &request.Operation{+ Name: opDecodeAuthorizationMessage,+ HTTPMethod: "POST",+ HTTPPath: "/",+ }++ if input == nil {+ input = &DecodeAuthorizationMessageInput{}+ }++ req = c.newRequest(op, input, output)+ output = &DecodeAuthorizationMessageOutput{}+ req.Data = output+ return+}++// DecodeAuthorizationMessage API operation for AWS Security Token Service.+//+// Decodes additional information about the authorization status of a request+// from an encoded message returned in response to an AWS request.+//+// For example, if a user is not authorized to perform an action that he or+// she has requested, the request returns a Client.UnauthorizedOperation response+// (an HTTP 403 response). Some AWS actions additionally return an encoded message+// that can provide details about this authorization failure.+//+// Only certain AWS actions return an encoded authorization message. The documentation+// for an individual action indicates whether that action returns an encoded+// message in addition to returning an HTTP code.+//+// The message is encoded because the details of the authorization status can+// constitute privileged information that the user who requested the action+// should not see. To decode an authorization status message, a user must be+// granted permissions via an IAM policy to request the DecodeAuthorizationMessage+// (sts:DecodeAuthorizationMessage) action.+//+// The decoded message includes the following type of information:+//+// * Whether the request was denied due to an explicit deny or due to the+// absence of an explicit allow. For more information, see Determining Whether+// a Request is Allowed or Denied (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-denyallow)+// in the IAM User Guide.+//+// * The principal who made the request.+//+// * The requested action.+//+// * The requested resource.+//+// * The values of condition keys in the context of the user's request.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for AWS Security Token Service's+// API operation DecodeAuthorizationMessage for usage and error information.+//+// Returned Error Codes:+// * InvalidAuthorizationMessageException+// The error returned if the message passed to DecodeAuthorizationMessage was+// invalid. This can happen if the token contains invalid characters, such as+// linebreaks.+//+func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput) (*DecodeAuthorizationMessageOutput, error) {+ req, out := c.DecodeAuthorizationMessageRequest(input)+ err := req.Send()+ return out, err+}++const opGetCallerIdentity = "GetCallerIdentity"++// GetCallerIdentityRequest generates a "aws/request.Request" representing the+// client's request for the GetCallerIdentity operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetCallerIdentity for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetCallerIdentity method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetCallerIdentityRequest method.+// req, resp := client.GetCallerIdentityRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *request.Request, output *GetCallerIdentityOutput) {+ op := &request.Operation{+ Name: opGetCallerIdentity,+ HTTPMethod: "POST",+ HTTPPath: "/",+ }++ if input == nil {+ input = &GetCallerIdentityInput{}+ }++ req = c.newRequest(op, input, output)+ output = &GetCallerIdentityOutput{}+ req.Data = output+ return+}++// GetCallerIdentity API operation for AWS Security Token Service.+//+// Returns details about the IAM identity whose credentials are used to call+// the API.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for AWS Security Token Service's+// API operation GetCallerIdentity for usage and error information.+func (c *STS) GetCallerIdentity(input *GetCallerIdentityInput) (*GetCallerIdentityOutput, error) {+ req, out := c.GetCallerIdentityRequest(input)+ err := req.Send()+ return out, err+}++const opGetFederationToken = "GetFederationToken"++// GetFederationTokenRequest generates a "aws/request.Request" representing the+// client's request for the GetFederationToken operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetFederationToken for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetFederationToken method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetFederationTokenRequest method.+// req, resp := client.GetFederationTokenRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *request.Request, output *GetFederationTokenOutput) {+ op := &request.Operation{+ Name: opGetFederationToken,+ HTTPMethod: "POST",+ HTTPPath: "/",+ }++ if input == nil {+ input = &GetFederationTokenInput{}+ }++ req = c.newRequest(op, input, output)+ output = &GetFederationTokenOutput{}+ req.Data = output+ return+}++// GetFederationToken API operation for AWS Security Token Service.+//+// Returns a set of temporary security credentials (consisting of an access+// key ID, a secret access key, and a security token) for a federated user.+// A typical use is in a proxy application that gets temporary security credentials+// on behalf of distributed applications inside a corporate network. Because+// you must call the GetFederationToken action using the long-term security+// credentials of an IAM user, this call is appropriate in contexts where those+// credentials can be safely stored, usually in a server-based application.+// For a comparison of GetFederationToken with the other APIs that produce temporary+// credentials, see Requesting Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)+// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)+// in the IAM User Guide.+//+// If you are creating a mobile-based or browser-based app that can authenticate+// users using a web identity provider like Login with Amazon, Facebook, Google,+// or an OpenID Connect-compatible identity provider, we recommend that you+// use Amazon Cognito (http://aws.amazon.com/cognito/) or AssumeRoleWithWebIdentity.+// For more information, see Federation Through a Web-based Identity Provider+// (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity).+//+// The GetFederationToken action must be called by using the long-term AWS security+// credentials of an IAM user. You can also call GetFederationToken using the+// security credentials of an AWS root account, but we do not recommended it.+// Instead, we recommend that you create an IAM user for the purpose of the+// proxy application and then attach a policy to the IAM user that limits federated+// users to only the actions and resources that they need access to. For more+// information, see IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html)+// in the IAM User Guide.+//+// The temporary security credentials that are obtained by using the long-term+// credentials of an IAM user are valid for the specified duration, from 900+// seconds (15 minutes) up to a maximium of 129600 seconds (36 hours). The default+// is 43200 seconds (12 hours). Temporary credentials that are obtained by using+// AWS root account credentials have a maximum duration of 3600 seconds (1 hour).+//+// The temporary security credentials created by GetFederationToken can be used+// to make API calls to any AWS service with the following exceptions:+//+// * You cannot use these credentials to call any IAM APIs.+//+// * You cannot call any STS APIs.+//+// Permissions+//+// The permissions for the temporary security credentials returned by GetFederationToken+// are determined by a combination of the following:+//+// * The policy or policies that are attached to the IAM user whose credentials+// are used to call GetFederationToken.+//+// * The policy that is passed as a parameter in the call.+//+// The passed policy is attached to the temporary security credentials that+// result from the GetFederationToken API call--that is, to the federated user.+// When the federated user makes an AWS request, AWS evaluates the policy attached+// to the federated user in combination with the policy or policies attached+// to the IAM user whose credentials were used to call GetFederationToken. AWS+// allows the federated user's request only when both the federated user and+// the IAM user are explicitly allowed to perform the requested action. The+// passed policy cannot grant more permissions than those that are defined in+// the IAM user policy.+//+// A typical use case is that the permissions of the IAM user whose credentials+// are used to call GetFederationToken are designed to allow access to all the+// actions and resources that any federated user will need. Then, for individual+// users, you pass a policy to the operation that scopes down the permissions+// to a level that's appropriate to that individual user, using a policy that+// allows only a subset of permissions that are granted to the IAM user.+//+// If you do not pass a policy, the resulting temporary security credentials+// have no effective permissions. The only exception is when the temporary security+// credentials are used to access a resource that has a resource-based policy+// that specifically allows the federated user to access the resource.+//+// For more information about how permissions work, see Permissions for GetFederationToken+// (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getfederationtoken.html).+// For information about using GetFederationToken to create temporary security+// credentials, see GetFederationToken—Federation Through a Custom Identity+// Broker (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getfederationtoken).+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for AWS Security Token Service's+// API operation GetFederationToken for usage and error information.+//+// Returned Error Codes:+// * MalformedPolicyDocument+// The request was rejected because the policy document was malformed. The error+// message describes the specific error.+//+// * PackedPolicyTooLarge+// The request was rejected because the policy document was too large. The error+// message describes how big the policy document is, in packed form, as a percentage+// of what the API allows.+//+// * RegionDisabledException+// STS is not activated in the requested region for the account that is being+// asked to generate credentials. The account administrator must use the IAM+// console to activate STS in that region. For more information, see Activating+// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)+// in the IAM User Guide.+//+func (c *STS) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) {+ req, out := c.GetFederationTokenRequest(input)+ err := req.Send()+ return out, err+}++const opGetSessionToken = "GetSessionToken"++// GetSessionTokenRequest generates a "aws/request.Request" representing the+// client's request for the GetSessionToken operation. The "output" return+// value can be used to capture response data after the request's "Send" method+// is called.+//+// See GetSessionToken for usage and error information.+//+// Creating a request object using this method should be used when you want to inject+// custom logic into the request's lifecycle using a custom handler, or if you want to+// access properties on the request object before or after sending the request. If+// you just want the service response, call the GetSessionToken method directly+// instead.+//+// Note: You must call the "Send" method on the returned request object in order+// to execute the request.+//+// // Example sending a request using the GetSessionTokenRequest method.+// req, resp := client.GetSessionTokenRequest(params)+//+// err := req.Send()+// if err == nil { // resp is now filled+// fmt.Println(resp)+// }+//+func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request.Request, output *GetSessionTokenOutput) {+ op := &request.Operation{+ Name: opGetSessionToken,+ HTTPMethod: "POST",+ HTTPPath: "/",+ }++ if input == nil {+ input = &GetSessionTokenInput{}+ }++ req = c.newRequest(op, input, output)+ output = &GetSessionTokenOutput{}+ req.Data = output+ return+}++// GetSessionToken API operation for AWS Security Token Service.+//+// Returns a set of temporary credentials for an AWS account or IAM user. The+// credentials consist of an access key ID, a secret access key, and a security+// token. Typically, you use GetSessionToken if you want to use MFA to protect+// programmatic calls to specific AWS APIs like Amazon EC2 StopInstances. MFA-enabled+// IAM users would need to call GetSessionToken and submit an MFA code that+// is associated with their MFA device. Using the temporary security credentials+// that are returned from the call, IAM users can then make programmatic calls+// to APIs that require MFA authentication. If you do not supply a correct MFA+// code, then the API returns an access denied error. For a comparison of GetSessionToken+// with the other APIs that produce temporary credentials, see Requesting Temporary+// Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)+// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison)+// in the IAM User Guide.+//+// The GetSessionToken action must be called by using the long-term AWS security+// credentials of the AWS account or an IAM user. Credentials that are created+// by IAM users are valid for the duration that you specify, from 900 seconds+// (15 minutes) up to a maximum of 129600 seconds (36 hours), with a default+// of 43200 seconds (12 hours); credentials that are created by using account+// credentials can range from 900 seconds (15 minutes) up to a maximum of 3600+// seconds (1 hour), with a default of 1 hour.+//+// The temporary security credentials created by GetSessionToken can be used+// to make API calls to any AWS service with the following exceptions:+//+// * You cannot call any IAM APIs unless MFA authentication information is+// included in the request.+//+// * You cannot call any STS API exceptAssumeRole.+//+// We recommend that you do not call GetSessionToken with root account credentials.+// Instead, follow our best practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#create-iam-users)+// by creating one or more IAM users, giving them the necessary permissions,+// and using IAM users for everyday interaction with AWS.+//+// The permissions associated with the temporary security credentials returned+// by GetSessionToken are based on the permissions associated with account or+// IAM user whose credentials are used to call the action. If GetSessionToken+// is called using root account credentials, the temporary credentials have+// root account permissions. Similarly, if GetSessionToken is called using the+// credentials of an IAM user, the temporary credentials have the same permissions+// as the IAM user.+//+// For more information about using GetSessionToken to create temporary credentials,+// go to Temporary Credentials for Users in Untrusted Environments (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getsessiontoken)+// in the IAM User Guide.+//+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions+// with awserr.Error's Code and Message methods to get detailed information about+// the error.+//+// See the AWS API reference guide for AWS Security Token Service's+// API operation GetSessionToken for usage and error information.+//+// Returned Error Codes:+// * RegionDisabledException+// STS is not activated in the requested region for the account that is being+// asked to generate credentials. The account administrator must use the IAM+// console to activate STS in that region. For more information, see Activating+// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)+// in the IAM User Guide.+//+func (c *STS) GetSessionToken(input *GetSessionTokenInput) (*GetSessionTokenOutput, error) {+ req, out := c.GetSessionTokenRequest(input)+ err := req.Send()+ return out, err+}++type AssumeRoleInput struct {+ _ struct{} `type:"structure"`++ // The duration, in seconds, of the role session. The value can range from 900+ // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set+ // to 3600 seconds.+ //+ // This is separate from the duration of a console session that you might request+ // using the returned credentials. The request to the federation endpoint for+ // a console sign-in token takes a SessionDuration parameter that specifies+ // the maximum length of the console session, separately from the DurationSeconds+ // parameter on this API. For more information, see Creating a URL that Enables+ // Federated Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html)+ // in the IAM User Guide.+ DurationSeconds *int64 `min:"900" type:"integer"`++ // A unique identifier that is used by third parties when assuming roles in+ // their customers' accounts. For each role that the third party can assume,+ // they should instruct their customers to ensure the role's trust policy checks+ // for the external ID that the third party generated. Each time the third party+ // assumes the role, they should pass the customer's external ID. The external+ // ID is useful in order to help third parties bind a role to the customer who+ // created it. For more information about the external ID, see How to Use an+ // External ID When Granting Access to Your AWS Resources to a Third Party (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html)+ // in the IAM User Guide.+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters consisting of upper- and lower-case alphanumeric characters+ // with no spaces. You can also include underscores or any of the following+ // characters: =,.@:\/-+ ExternalId *string `min:"2" type:"string"`++ // An IAM policy in JSON format.+ //+ // This parameter is optional. If you pass a policy, the temporary security+ // credentials that are returned by the operation have the permissions that+ // are allowed by both (the intersection of) the access policy of the role that+ // is being assumed, and the policy that you pass. This gives you a way to further+ // restrict the permissions for the resulting temporary security credentials.+ // You cannot use the passed policy to grant permissions that are in excess+ // of those allowed by the access policy of the role that is being assumed.+ // For more information, see Permissions for AssumeRole, AssumeRoleWithSAML,+ // and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html)+ // in the IAM User Guide.+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters up to 2048 characters in length. The characters can be any+ // ASCII character from the space character to the end of the valid character+ // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A),+ // and carriage return (\u000D) characters.+ //+ // The policy plain text must be 2048 bytes or shorter. However, an internal+ // conversion compresses it into a packed binary format with a separate limit.+ // The PackedPolicySize response element indicates by percentage how close to+ // the upper size limit the policy is, with 100% equaling the maximum allowed+ // size.+ Policy *string `min:"1" type:"string"`++ // The Amazon Resource Name (ARN) of the role to assume.+ //+ // RoleArn is a required field+ RoleArn *string `min:"20" type:"string" required:"true"`++ // An identifier for the assumed role session.+ //+ // Use the role session name to uniquely identify a session when the same role+ // is assumed by different principals or for different reasons. In cross-account+ // scenarios, the role session name is visible to, and can be logged by the+ // account that owns the role. The role session name is also used in the ARN+ // of the assumed role principal. This means that subsequent cross-account API+ // requests using the temporary security credentials will expose the role session+ // name to the external account in their CloudTrail logs.+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters consisting of upper- and lower-case alphanumeric characters+ // with no spaces. You can also include underscores or any of the following+ // characters: =,.@-+ //+ // RoleSessionName is a required field+ RoleSessionName *string `min:"2" type:"string" required:"true"`++ // The identification number of the MFA device that is associated with the user+ // who is making the AssumeRole call. Specify this value if the trust policy+ // of the role being assumed includes a condition that requires MFA authentication.+ // The value is either the serial number for a hardware device (such as GAHT12345678)+ // or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters consisting of upper- and lower-case alphanumeric characters+ // with no spaces. You can also include underscores or any of the following+ // characters: =,.@-+ SerialNumber *string `min:"9" type:"string"`++ // The value provided by the MFA device, if the trust policy of the role being+ // assumed requires MFA (that is, if the policy includes a condition that tests+ // for MFA). If the role being assumed requires MFA and if the TokenCode value+ // is missing or expired, the AssumeRole call returns an "access denied" error.+ //+ // The format for this parameter, as described by its regex pattern, is a sequence+ // of six numeric digits.+ TokenCode *string `min:"6" type:"string"`+}++// String returns the string representation+func (s AssumeRoleInput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s AssumeRoleInput) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *AssumeRoleInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "AssumeRoleInput"}+ if s.DurationSeconds != nil && *s.DurationSeconds < 900 {+ invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))+ }+ if s.ExternalId != nil && len(*s.ExternalId) < 2 {+ invalidParams.Add(request.NewErrParamMinLen("ExternalId", 2))+ }+ if s.Policy != nil && len(*s.Policy) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Policy", 1))+ }+ if s.RoleArn == nil {+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))+ }+ if s.RoleArn != nil && len(*s.RoleArn) < 20 {+ invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))+ }+ if s.RoleSessionName == nil {+ invalidParams.Add(request.NewErrParamRequired("RoleSessionName"))+ }+ if s.RoleSessionName != nil && len(*s.RoleSessionName) < 2 {+ invalidParams.Add(request.NewErrParamMinLen("RoleSessionName", 2))+ }+ if s.SerialNumber != nil && len(*s.SerialNumber) < 9 {+ invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9))+ }+ if s.TokenCode != nil && len(*s.TokenCode) < 6 {+ invalidParams.Add(request.NewErrParamMinLen("TokenCode", 6))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetDurationSeconds sets the DurationSeconds field's value.+func (s *AssumeRoleInput) SetDurationSeconds(v int64) *AssumeRoleInput {+ s.DurationSeconds = &v+ return s+}++// SetExternalId sets the ExternalId field's value.+func (s *AssumeRoleInput) SetExternalId(v string) *AssumeRoleInput {+ s.ExternalId = &v+ return s+}++// SetPolicy sets the Policy field's value.+func (s *AssumeRoleInput) SetPolicy(v string) *AssumeRoleInput {+ s.Policy = &v+ return s+}++// SetRoleArn sets the RoleArn field's value.+func (s *AssumeRoleInput) SetRoleArn(v string) *AssumeRoleInput {+ s.RoleArn = &v+ return s+}++// SetRoleSessionName sets the RoleSessionName field's value.+func (s *AssumeRoleInput) SetRoleSessionName(v string) *AssumeRoleInput {+ s.RoleSessionName = &v+ return s+}++// SetSerialNumber sets the SerialNumber field's value.+func (s *AssumeRoleInput) SetSerialNumber(v string) *AssumeRoleInput {+ s.SerialNumber = &v+ return s+}++// SetTokenCode sets the TokenCode field's value.+func (s *AssumeRoleInput) SetTokenCode(v string) *AssumeRoleInput {+ s.TokenCode = &v+ return s+}++// Contains the response to a successful AssumeRole request, including temporary+// AWS credentials that can be used to make AWS requests.+type AssumeRoleOutput struct {+ _ struct{} `type:"structure"`++ // The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers+ // that you can use to refer to the resulting temporary security credentials.+ // For example, you can reference these credentials as a principal in a resource-based+ // policy by using the ARN or assumed role ID. The ARN and ID include the RoleSessionName+ // that you specified when you called AssumeRole.+ AssumedRoleUser *AssumedRoleUser `type:"structure"`++ // The temporary security credentials, which include an access key ID, a secret+ // access key, and a security (or session) token.+ //+ // Note: The size of the security token that STS APIs return is not fixed. We+ // strongly recommend that you make no assumptions about the maximum size. As+ // of this writing, the typical size is less than 4096 bytes, but that can vary.+ // Also, future updates to AWS might require larger sizes.+ Credentials *Credentials `type:"structure"`++ // A percentage value that indicates the size of the policy in packed form.+ // The service rejects any policy with a packed size greater than 100 percent,+ // which means the policy exceeded the allowed space.+ PackedPolicySize *int64 `type:"integer"`+}++// String returns the string representation+func (s AssumeRoleOutput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s AssumeRoleOutput) GoString() string {+ return s.String()+}++// SetAssumedRoleUser sets the AssumedRoleUser field's value.+func (s *AssumeRoleOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleOutput {+ s.AssumedRoleUser = v+ return s+}++// SetCredentials sets the Credentials field's value.+func (s *AssumeRoleOutput) SetCredentials(v *Credentials) *AssumeRoleOutput {+ s.Credentials = v+ return s+}++// SetPackedPolicySize sets the PackedPolicySize field's value.+func (s *AssumeRoleOutput) SetPackedPolicySize(v int64) *AssumeRoleOutput {+ s.PackedPolicySize = &v+ return s+}++type AssumeRoleWithSAMLInput struct {+ _ struct{} `type:"structure"`++ // The duration, in seconds, of the role session. The value can range from 900+ // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set+ // to 3600 seconds. An expiration can also be specified in the SAML authentication+ // response's SessionNotOnOrAfter value. The actual expiration time is whichever+ // value is shorter.+ //+ // This is separate from the duration of a console session that you might request+ // using the returned credentials. The request to the federation endpoint for+ // a console sign-in token takes a SessionDuration parameter that specifies+ // the maximum length of the console session, separately from the DurationSeconds+ // parameter on this API. For more information, see Enabling SAML 2.0 Federated+ // Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html)+ // in the IAM User Guide.+ DurationSeconds *int64 `min:"900" type:"integer"`++ // An IAM policy in JSON format.+ //+ // The policy parameter is optional. If you pass a policy, the temporary security+ // credentials that are returned by the operation have the permissions that+ // are allowed by both the access policy of the role that is being assumed,+ // and the policy that you pass. This gives you a way to further restrict the+ // permissions for the resulting temporary security credentials. You cannot+ // use the passed policy to grant permissions that are in excess of those allowed+ // by the access policy of the role that is being assumed. For more information,+ // Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity+ // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html)+ // in the IAM User Guide.+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters up to 2048 characters in length. The characters can be any+ // ASCII character from the space character to the end of the valid character+ // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A),+ // and carriage return (\u000D) characters.+ //+ // The policy plain text must be 2048 bytes or shorter. However, an internal+ // conversion compresses it into a packed binary format with a separate limit.+ // The PackedPolicySize response element indicates by percentage how close to+ // the upper size limit the policy is, with 100% equaling the maximum allowed+ // size.+ Policy *string `min:"1" type:"string"`++ // The Amazon Resource Name (ARN) of the SAML provider in IAM that describes+ // the IdP.+ //+ // PrincipalArn is a required field+ PrincipalArn *string `min:"20" type:"string" required:"true"`++ // The Amazon Resource Name (ARN) of the role that the caller is assuming.+ //+ // RoleArn is a required field+ RoleArn *string `min:"20" type:"string" required:"true"`++ // The base-64 encoded SAML authentication response provided by the IdP.+ //+ // For more information, see Configuring a Relying Party and Adding Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html)+ // in the Using IAM guide.+ //+ // SAMLAssertion is a required field+ SAMLAssertion *string `min:"4" type:"string" required:"true"`+}++// String returns the string representation+func (s AssumeRoleWithSAMLInput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s AssumeRoleWithSAMLInput) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *AssumeRoleWithSAMLInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "AssumeRoleWithSAMLInput"}+ if s.DurationSeconds != nil && *s.DurationSeconds < 900 {+ invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))+ }+ if s.Policy != nil && len(*s.Policy) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Policy", 1))+ }+ if s.PrincipalArn == nil {+ invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))+ }+ if s.PrincipalArn != nil && len(*s.PrincipalArn) < 20 {+ invalidParams.Add(request.NewErrParamMinLen("PrincipalArn", 20))+ }+ if s.RoleArn == nil {+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))+ }+ if s.RoleArn != nil && len(*s.RoleArn) < 20 {+ invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))+ }+ if s.SAMLAssertion == nil {+ invalidParams.Add(request.NewErrParamRequired("SAMLAssertion"))+ }+ if s.SAMLAssertion != nil && len(*s.SAMLAssertion) < 4 {+ invalidParams.Add(request.NewErrParamMinLen("SAMLAssertion", 4))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetDurationSeconds sets the DurationSeconds field's value.+func (s *AssumeRoleWithSAMLInput) SetDurationSeconds(v int64) *AssumeRoleWithSAMLInput {+ s.DurationSeconds = &v+ return s+}++// SetPolicy sets the Policy field's value.+func (s *AssumeRoleWithSAMLInput) SetPolicy(v string) *AssumeRoleWithSAMLInput {+ s.Policy = &v+ return s+}++// SetPrincipalArn sets the PrincipalArn field's value.+func (s *AssumeRoleWithSAMLInput) SetPrincipalArn(v string) *AssumeRoleWithSAMLInput {+ s.PrincipalArn = &v+ return s+}++// SetRoleArn sets the RoleArn field's value.+func (s *AssumeRoleWithSAMLInput) SetRoleArn(v string) *AssumeRoleWithSAMLInput {+ s.RoleArn = &v+ return s+}++// SetSAMLAssertion sets the SAMLAssertion field's value.+func (s *AssumeRoleWithSAMLInput) SetSAMLAssertion(v string) *AssumeRoleWithSAMLInput {+ s.SAMLAssertion = &v+ return s+}++// Contains the response to a successful AssumeRoleWithSAML request, including+// temporary AWS credentials that can be used to make AWS requests.+type AssumeRoleWithSAMLOutput struct {+ _ struct{} `type:"structure"`++ // The identifiers for the temporary security credentials that the operation+ // returns.+ AssumedRoleUser *AssumedRoleUser `type:"structure"`++ // The value of the Recipient attribute of the SubjectConfirmationData element+ // of the SAML assertion.+ Audience *string `type:"string"`++ // The temporary security credentials, which include an access key ID, a secret+ // access key, and a security (or session) token.+ //+ // Note: The size of the security token that STS APIs return is not fixed. We+ // strongly recommend that you make no assumptions about the maximum size. As+ // of this writing, the typical size is less than 4096 bytes, but that can vary.+ // Also, future updates to AWS might require larger sizes.+ Credentials *Credentials `type:"structure"`++ // The value of the Issuer element of the SAML assertion.+ Issuer *string `type:"string"`++ // A hash value based on the concatenation of the Issuer response value, the+ // AWS account ID, and the friendly name (the last part of the ARN) of the SAML+ // provider in IAM. The combination of NameQualifier and Subject can be used+ // to uniquely identify a federated user.+ //+ // The following pseudocode shows how the hash value is calculated:+ //+ // BASE64 ( SHA1 ( "https://example.com/saml" + "123456789012" + "/MySAMLIdP"+ // ) )+ NameQualifier *string `type:"string"`++ // A percentage value that indicates the size of the policy in packed form.+ // The service rejects any policy with a packed size greater than 100 percent,+ // which means the policy exceeded the allowed space.+ PackedPolicySize *int64 `type:"integer"`++ // The value of the NameID element in the Subject element of the SAML assertion.+ Subject *string `type:"string"`++ // The format of the name ID, as defined by the Format attribute in the NameID+ // element of the SAML assertion. Typical examples of the format are transient+ // or persistent.+ //+ // If the format includes the prefix urn:oasis:names:tc:SAML:2.0:nameid-format,+ // that prefix is removed. For example, urn:oasis:names:tc:SAML:2.0:nameid-format:transient+ // is returned as transient. If the format includes any other prefix, the format+ // is returned with no modifications.+ SubjectType *string `type:"string"`+}++// String returns the string representation+func (s AssumeRoleWithSAMLOutput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s AssumeRoleWithSAMLOutput) GoString() string {+ return s.String()+}++// SetAssumedRoleUser sets the AssumedRoleUser field's value.+func (s *AssumeRoleWithSAMLOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithSAMLOutput {+ s.AssumedRoleUser = v+ return s+}++// SetAudience sets the Audience field's value.+func (s *AssumeRoleWithSAMLOutput) SetAudience(v string) *AssumeRoleWithSAMLOutput {+ s.Audience = &v+ return s+}++// SetCredentials sets the Credentials field's value.+func (s *AssumeRoleWithSAMLOutput) SetCredentials(v *Credentials) *AssumeRoleWithSAMLOutput {+ s.Credentials = v+ return s+}++// SetIssuer sets the Issuer field's value.+func (s *AssumeRoleWithSAMLOutput) SetIssuer(v string) *AssumeRoleWithSAMLOutput {+ s.Issuer = &v+ return s+}++// SetNameQualifier sets the NameQualifier field's value.+func (s *AssumeRoleWithSAMLOutput) SetNameQualifier(v string) *AssumeRoleWithSAMLOutput {+ s.NameQualifier = &v+ return s+}++// SetPackedPolicySize sets the PackedPolicySize field's value.+func (s *AssumeRoleWithSAMLOutput) SetPackedPolicySize(v int64) *AssumeRoleWithSAMLOutput {+ s.PackedPolicySize = &v+ return s+}++// SetSubject sets the Subject field's value.+func (s *AssumeRoleWithSAMLOutput) SetSubject(v string) *AssumeRoleWithSAMLOutput {+ s.Subject = &v+ return s+}++// SetSubjectType sets the SubjectType field's value.+func (s *AssumeRoleWithSAMLOutput) SetSubjectType(v string) *AssumeRoleWithSAMLOutput {+ s.SubjectType = &v+ return s+}++type AssumeRoleWithWebIdentityInput struct {+ _ struct{} `type:"structure"`++ // The duration, in seconds, of the role session. The value can range from 900+ // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set+ // to 3600 seconds.+ //+ // This is separate from the duration of a console session that you might request+ // using the returned credentials. The request to the federation endpoint for+ // a console sign-in token takes a SessionDuration parameter that specifies+ // the maximum length of the console session, separately from the DurationSeconds+ // parameter on this API. For more information, see Creating a URL that Enables+ // Federated Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html)+ // in the IAM User Guide.+ DurationSeconds *int64 `min:"900" type:"integer"`++ // An IAM policy in JSON format.+ //+ // The policy parameter is optional. If you pass a policy, the temporary security+ // credentials that are returned by the operation have the permissions that+ // are allowed by both the access policy of the role that is being assumed,+ // and the policy that you pass. This gives you a way to further restrict the+ // permissions for the resulting temporary security credentials. You cannot+ // use the passed policy to grant permissions that are in excess of those allowed+ // by the access policy of the role that is being assumed. For more information,+ // see Permissions for AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html)+ // in the IAM User Guide.+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters up to 2048 characters in length. The characters can be any+ // ASCII character from the space character to the end of the valid character+ // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A),+ // and carriage return (\u000D) characters.+ //+ // The policy plain text must be 2048 bytes or shorter. However, an internal+ // conversion compresses it into a packed binary format with a separate limit.+ // The PackedPolicySize response element indicates by percentage how close to+ // the upper size limit the policy is, with 100% equaling the maximum allowed+ // size.+ Policy *string `min:"1" type:"string"`++ // The fully qualified host component of the domain name of the identity provider.+ //+ // Specify this value only for OAuth 2.0 access tokens. Currently www.amazon.com+ // and graph.facebook.com are the only supported identity providers for OAuth+ // 2.0 access tokens. Do not include URL schemes and port numbers.+ //+ // Do not specify this value for OpenID Connect ID tokens.+ ProviderId *string `min:"4" type:"string"`++ // The Amazon Resource Name (ARN) of the role that the caller is assuming.+ //+ // RoleArn is a required field+ RoleArn *string `min:"20" type:"string" required:"true"`++ // An identifier for the assumed role session. Typically, you pass the name+ // or identifier that is associated with the user who is using your application.+ // That way, the temporary security credentials that your application will use+ // are associated with that user. This session name is included as part of the+ // ARN and assumed role ID in the AssumedRoleUser response element.+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters consisting of upper- and lower-case alphanumeric characters+ // with no spaces. You can also include underscores or any of the following+ // characters: =,.@-+ //+ // RoleSessionName is a required field+ RoleSessionName *string `min:"2" type:"string" required:"true"`++ // The OAuth 2.0 access token or OpenID Connect ID token that is provided by+ // the identity provider. Your application must get this token by authenticating+ // the user who is using your application with a web identity provider before+ // the application makes an AssumeRoleWithWebIdentity call.+ //+ // WebIdentityToken is a required field+ WebIdentityToken *string `min:"4" type:"string" required:"true"`+}++// String returns the string representation+func (s AssumeRoleWithWebIdentityInput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s AssumeRoleWithWebIdentityInput) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *AssumeRoleWithWebIdentityInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "AssumeRoleWithWebIdentityInput"}+ if s.DurationSeconds != nil && *s.DurationSeconds < 900 {+ invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))+ }+ if s.Policy != nil && len(*s.Policy) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Policy", 1))+ }+ if s.ProviderId != nil && len(*s.ProviderId) < 4 {+ invalidParams.Add(request.NewErrParamMinLen("ProviderId", 4))+ }+ if s.RoleArn == nil {+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))+ }+ if s.RoleArn != nil && len(*s.RoleArn) < 20 {+ invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))+ }+ if s.RoleSessionName == nil {+ invalidParams.Add(request.NewErrParamRequired("RoleSessionName"))+ }+ if s.RoleSessionName != nil && len(*s.RoleSessionName) < 2 {+ invalidParams.Add(request.NewErrParamMinLen("RoleSessionName", 2))+ }+ if s.WebIdentityToken == nil {+ invalidParams.Add(request.NewErrParamRequired("WebIdentityToken"))+ }+ if s.WebIdentityToken != nil && len(*s.WebIdentityToken) < 4 {+ invalidParams.Add(request.NewErrParamMinLen("WebIdentityToken", 4))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetDurationSeconds sets the DurationSeconds field's value.+func (s *AssumeRoleWithWebIdentityInput) SetDurationSeconds(v int64) *AssumeRoleWithWebIdentityInput {+ s.DurationSeconds = &v+ return s+}++// SetPolicy sets the Policy field's value.+func (s *AssumeRoleWithWebIdentityInput) SetPolicy(v string) *AssumeRoleWithWebIdentityInput {+ s.Policy = &v+ return s+}++// SetProviderId sets the ProviderId field's value.+func (s *AssumeRoleWithWebIdentityInput) SetProviderId(v string) *AssumeRoleWithWebIdentityInput {+ s.ProviderId = &v+ return s+}++// SetRoleArn sets the RoleArn field's value.+func (s *AssumeRoleWithWebIdentityInput) SetRoleArn(v string) *AssumeRoleWithWebIdentityInput {+ s.RoleArn = &v+ return s+}++// SetRoleSessionName sets the RoleSessionName field's value.+func (s *AssumeRoleWithWebIdentityInput) SetRoleSessionName(v string) *AssumeRoleWithWebIdentityInput {+ s.RoleSessionName = &v+ return s+}++// SetWebIdentityToken sets the WebIdentityToken field's value.+func (s *AssumeRoleWithWebIdentityInput) SetWebIdentityToken(v string) *AssumeRoleWithWebIdentityInput {+ s.WebIdentityToken = &v+ return s+}++// Contains the response to a successful AssumeRoleWithWebIdentity request,+// including temporary AWS credentials that can be used to make AWS requests.+type AssumeRoleWithWebIdentityOutput struct {+ _ struct{} `type:"structure"`++ // The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers+ // that you can use to refer to the resulting temporary security credentials.+ // For example, you can reference these credentials as a principal in a resource-based+ // policy by using the ARN or assumed role ID. The ARN and ID include the RoleSessionName+ // that you specified when you called AssumeRole.+ AssumedRoleUser *AssumedRoleUser `type:"structure"`++ // The intended audience (also known as client ID) of the web identity token.+ // This is traditionally the client identifier issued to the application that+ // requested the web identity token.+ Audience *string `type:"string"`++ // The temporary security credentials, which include an access key ID, a secret+ // access key, and a security token.+ //+ // Note: The size of the security token that STS APIs return is not fixed. We+ // strongly recommend that you make no assumptions about the maximum size. As+ // of this writing, the typical size is less than 4096 bytes, but that can vary.+ // Also, future updates to AWS might require larger sizes.+ Credentials *Credentials `type:"structure"`++ // A percentage value that indicates the size of the policy in packed form.+ // The service rejects any policy with a packed size greater than 100 percent,+ // which means the policy exceeded the allowed space.+ PackedPolicySize *int64 `type:"integer"`++ // The issuing authority of the web identity token presented. For OpenID Connect+ // ID Tokens this contains the value of the iss field. For OAuth 2.0 access+ // tokens, this contains the value of the ProviderId parameter that was passed+ // in the AssumeRoleWithWebIdentity request.+ Provider *string `type:"string"`++ // The unique user identifier that is returned by the identity provider. This+ // identifier is associated with the WebIdentityToken that was submitted with+ // the AssumeRoleWithWebIdentity call. The identifier is typically unique to+ // the user and the application that acquired the WebIdentityToken (pairwise+ // identifier). For OpenID Connect ID tokens, this field contains the value+ // returned by the identity provider as the token's sub (Subject) claim.+ SubjectFromWebIdentityToken *string `min:"6" type:"string"`+}++// String returns the string representation+func (s AssumeRoleWithWebIdentityOutput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s AssumeRoleWithWebIdentityOutput) GoString() string {+ return s.String()+}++// SetAssumedRoleUser sets the AssumedRoleUser field's value.+func (s *AssumeRoleWithWebIdentityOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithWebIdentityOutput {+ s.AssumedRoleUser = v+ return s+}++// SetAudience sets the Audience field's value.+func (s *AssumeRoleWithWebIdentityOutput) SetAudience(v string) *AssumeRoleWithWebIdentityOutput {+ s.Audience = &v+ return s+}++// SetCredentials sets the Credentials field's value.+func (s *AssumeRoleWithWebIdentityOutput) SetCredentials(v *Credentials) *AssumeRoleWithWebIdentityOutput {+ s.Credentials = v+ return s+}++// SetPackedPolicySize sets the PackedPolicySize field's value.+func (s *AssumeRoleWithWebIdentityOutput) SetPackedPolicySize(v int64) *AssumeRoleWithWebIdentityOutput {+ s.PackedPolicySize = &v+ return s+}++// SetProvider sets the Provider field's value.+func (s *AssumeRoleWithWebIdentityOutput) SetProvider(v string) *AssumeRoleWithWebIdentityOutput {+ s.Provider = &v+ return s+}++// SetSubjectFromWebIdentityToken sets the SubjectFromWebIdentityToken field's value.+func (s *AssumeRoleWithWebIdentityOutput) SetSubjectFromWebIdentityToken(v string) *AssumeRoleWithWebIdentityOutput {+ s.SubjectFromWebIdentityToken = &v+ return s+}++// The identifiers for the temporary security credentials that the operation+// returns.+type AssumedRoleUser struct {+ _ struct{} `type:"structure"`++ // The ARN of the temporary security credentials that are returned from the+ // AssumeRole action. For more information about ARNs and how to use them in+ // policies, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)+ // in Using IAM.+ //+ // Arn is a required field+ Arn *string `min:"20" type:"string" required:"true"`++ // A unique identifier that contains the role ID and the role session name of+ // the role that is being assumed. The role ID is generated by AWS when the+ // role is created.+ //+ // AssumedRoleId is a required field+ AssumedRoleId *string `min:"2" type:"string" required:"true"`+}++// String returns the string representation+func (s AssumedRoleUser) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s AssumedRoleUser) GoString() string {+ return s.String()+}++// SetArn sets the Arn field's value.+func (s *AssumedRoleUser) SetArn(v string) *AssumedRoleUser {+ s.Arn = &v+ return s+}++// SetAssumedRoleId sets the AssumedRoleId field's value.+func (s *AssumedRoleUser) SetAssumedRoleId(v string) *AssumedRoleUser {+ s.AssumedRoleId = &v+ return s+}++// AWS credentials for API authentication.+type Credentials struct {+ _ struct{} `type:"structure"`++ // The access key ID that identifies the temporary security credentials.+ //+ // AccessKeyId is a required field+ AccessKeyId *string `min:"16" type:"string" required:"true"`++ // The date on which the current credentials expire.+ //+ // Expiration is a required field+ Expiration *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`++ // The secret access key that can be used to sign requests.+ //+ // SecretAccessKey is a required field+ SecretAccessKey *string `type:"string" required:"true"`++ // The token that users must pass to the service API to use the temporary credentials.+ //+ // SessionToken is a required field+ SessionToken *string `type:"string" required:"true"`+}++// String returns the string representation+func (s Credentials) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s Credentials) GoString() string {+ return s.String()+}++// SetAccessKeyId sets the AccessKeyId field's value.+func (s *Credentials) SetAccessKeyId(v string) *Credentials {+ s.AccessKeyId = &v+ return s+}++// SetExpiration sets the Expiration field's value.+func (s *Credentials) SetExpiration(v time.Time) *Credentials {+ s.Expiration = &v+ return s+}++// SetSecretAccessKey sets the SecretAccessKey field's value.+func (s *Credentials) SetSecretAccessKey(v string) *Credentials {+ s.SecretAccessKey = &v+ return s+}++// SetSessionToken sets the SessionToken field's value.+func (s *Credentials) SetSessionToken(v string) *Credentials {+ s.SessionToken = &v+ return s+}++type DecodeAuthorizationMessageInput struct {+ _ struct{} `type:"structure"`++ // The encoded message that was returned with the response.+ //+ // EncodedMessage is a required field+ EncodedMessage *string `min:"1" type:"string" required:"true"`+}++// String returns the string representation+func (s DecodeAuthorizationMessageInput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s DecodeAuthorizationMessageInput) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *DecodeAuthorizationMessageInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "DecodeAuthorizationMessageInput"}+ if s.EncodedMessage == nil {+ invalidParams.Add(request.NewErrParamRequired("EncodedMessage"))+ }+ if s.EncodedMessage != nil && len(*s.EncodedMessage) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("EncodedMessage", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetEncodedMessage sets the EncodedMessage field's value.+func (s *DecodeAuthorizationMessageInput) SetEncodedMessage(v string) *DecodeAuthorizationMessageInput {+ s.EncodedMessage = &v+ return s+}++// A document that contains additional information about the authorization status+// of a request from an encoded message that is returned in response to an AWS+// request.+type DecodeAuthorizationMessageOutput struct {+ _ struct{} `type:"structure"`++ // An XML document that contains the decoded message.+ DecodedMessage *string `type:"string"`+}++// String returns the string representation+func (s DecodeAuthorizationMessageOutput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s DecodeAuthorizationMessageOutput) GoString() string {+ return s.String()+}++// SetDecodedMessage sets the DecodedMessage field's value.+func (s *DecodeAuthorizationMessageOutput) SetDecodedMessage(v string) *DecodeAuthorizationMessageOutput {+ s.DecodedMessage = &v+ return s+}++// Identifiers for the federated user that is associated with the credentials.+type FederatedUser struct {+ _ struct{} `type:"structure"`++ // The ARN that specifies the federated user that is associated with the credentials.+ // For more information about ARNs and how to use them in policies, see IAM+ // Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)+ // in Using IAM.+ //+ // Arn is a required field+ Arn *string `min:"20" type:"string" required:"true"`++ // The string that identifies the federated user associated with the credentials,+ // similar to the unique ID of an IAM user.+ //+ // FederatedUserId is a required field+ FederatedUserId *string `min:"2" type:"string" required:"true"`+}++// String returns the string representation+func (s FederatedUser) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s FederatedUser) GoString() string {+ return s.String()+}++// SetArn sets the Arn field's value.+func (s *FederatedUser) SetArn(v string) *FederatedUser {+ s.Arn = &v+ return s+}++// SetFederatedUserId sets the FederatedUserId field's value.+func (s *FederatedUser) SetFederatedUserId(v string) *FederatedUser {+ s.FederatedUserId = &v+ return s+}++type GetCallerIdentityInput struct {+ _ struct{} `type:"structure"`+}++// String returns the string representation+func (s GetCallerIdentityInput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s GetCallerIdentityInput) GoString() string {+ return s.String()+}++// Contains the response to a successful GetCallerIdentity request, including+// information about the entity making the request.+type GetCallerIdentityOutput struct {+ _ struct{} `type:"structure"`++ // The AWS account ID number of the account that owns or contains the calling+ // entity.+ Account *string `type:"string"`++ // The AWS ARN associated with the calling entity.+ Arn *string `min:"20" type:"string"`++ // The unique identifier of the calling entity. The exact value depends on the+ // type of entity making the call. The values returned are those listed in the+ // aws:userid column in the Principal table (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable)+ // found on the Policy Variables reference page in the IAM User Guide.+ UserId *string `type:"string"`+}++// String returns the string representation+func (s GetCallerIdentityOutput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s GetCallerIdentityOutput) GoString() string {+ return s.String()+}++// SetAccount sets the Account field's value.+func (s *GetCallerIdentityOutput) SetAccount(v string) *GetCallerIdentityOutput {+ s.Account = &v+ return s+}++// SetArn sets the Arn field's value.+func (s *GetCallerIdentityOutput) SetArn(v string) *GetCallerIdentityOutput {+ s.Arn = &v+ return s+}++// SetUserId sets the UserId field's value.+func (s *GetCallerIdentityOutput) SetUserId(v string) *GetCallerIdentityOutput {+ s.UserId = &v+ return s+}++type GetFederationTokenInput struct {+ _ struct{} `type:"structure"`++ // The duration, in seconds, that the session should last. Acceptable durations+ // for federation sessions range from 900 seconds (15 minutes) to 129600 seconds+ // (36 hours), with 43200 seconds (12 hours) as the default. Sessions obtained+ // using AWS account (root) credentials are restricted to a maximum of 3600+ // seconds (one hour). If the specified duration is longer than one hour, the+ // session obtained by using AWS account (root) credentials defaults to one+ // hour.+ DurationSeconds *int64 `min:"900" type:"integer"`++ // The name of the federated user. The name is used as an identifier for the+ // temporary security credentials (such as Bob). For example, you can reference+ // the federated user name in a resource-based policy, such as in an Amazon+ // S3 bucket policy.+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters consisting of upper- and lower-case alphanumeric characters+ // with no spaces. You can also include underscores or any of the following+ // characters: =,.@-+ //+ // Name is a required field+ Name *string `min:"2" type:"string" required:"true"`++ // An IAM policy in JSON format that is passed with the GetFederationToken call+ // and evaluated along with the policy or policies that are attached to the+ // IAM user whose credentials are used to call GetFederationToken. The passed+ // policy is used to scope down the permissions that are available to the IAM+ // user, by allowing only a subset of the permissions that are granted to the+ // IAM user. The passed policy cannot grant more permissions than those granted+ // to the IAM user. The final permissions for the federated user are the most+ // restrictive set based on the intersection of the passed policy and the IAM+ // user policy.+ //+ // If you do not pass a policy, the resulting temporary security credentials+ // have no effective permissions. The only exception is when the temporary security+ // credentials are used to access a resource that has a resource-based policy+ // that specifically allows the federated user to access the resource.+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters up to 2048 characters in length. The characters can be any+ // ASCII character from the space character to the end of the valid character+ // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A),+ // and carriage return (\u000D) characters.+ //+ // The policy plain text must be 2048 bytes or shorter. However, an internal+ // conversion compresses it into a packed binary format with a separate limit.+ // The PackedPolicySize response element indicates by percentage how close to+ // the upper size limit the policy is, with 100% equaling the maximum allowed+ // size.+ //+ // For more information about how permissions work, see Permissions for GetFederationToken+ // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getfederationtoken.html).+ Policy *string `min:"1" type:"string"`+}++// String returns the string representation+func (s GetFederationTokenInput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s GetFederationTokenInput) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *GetFederationTokenInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetFederationTokenInput"}+ if s.DurationSeconds != nil && *s.DurationSeconds < 900 {+ invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))+ }+ if s.Name == nil {+ invalidParams.Add(request.NewErrParamRequired("Name"))+ }+ if s.Name != nil && len(*s.Name) < 2 {+ invalidParams.Add(request.NewErrParamMinLen("Name", 2))+ }+ if s.Policy != nil && len(*s.Policy) < 1 {+ invalidParams.Add(request.NewErrParamMinLen("Policy", 1))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetDurationSeconds sets the DurationSeconds field's value.+func (s *GetFederationTokenInput) SetDurationSeconds(v int64) *GetFederationTokenInput {+ s.DurationSeconds = &v+ return s+}++// SetName sets the Name field's value.+func (s *GetFederationTokenInput) SetName(v string) *GetFederationTokenInput {+ s.Name = &v+ return s+}++// SetPolicy sets the Policy field's value.+func (s *GetFederationTokenInput) SetPolicy(v string) *GetFederationTokenInput {+ s.Policy = &v+ return s+}++// Contains the response to a successful GetFederationToken request, including+// temporary AWS credentials that can be used to make AWS requests.+type GetFederationTokenOutput struct {+ _ struct{} `type:"structure"`++ // The temporary security credentials, which include an access key ID, a secret+ // access key, and a security (or session) token.+ //+ // Note: The size of the security token that STS APIs return is not fixed. We+ // strongly recommend that you make no assumptions about the maximum size. As+ // of this writing, the typical size is less than 4096 bytes, but that can vary.+ // Also, future updates to AWS might require larger sizes.+ Credentials *Credentials `type:"structure"`++ // Identifiers for the federated user associated with the credentials (such+ // as arn:aws:sts::123456789012:federated-user/Bob or 123456789012:Bob). You+ // can use the federated user's ARN in your resource-based policies, such as+ // an Amazon S3 bucket policy.+ FederatedUser *FederatedUser `type:"structure"`++ // A percentage value indicating the size of the policy in packed form. The+ // service rejects policies for which the packed size is greater than 100 percent+ // of the allowed value.+ PackedPolicySize *int64 `type:"integer"`+}++// String returns the string representation+func (s GetFederationTokenOutput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s GetFederationTokenOutput) GoString() string {+ return s.String()+}++// SetCredentials sets the Credentials field's value.+func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput {+ s.Credentials = v+ return s+}++// SetFederatedUser sets the FederatedUser field's value.+func (s *GetFederationTokenOutput) SetFederatedUser(v *FederatedUser) *GetFederationTokenOutput {+ s.FederatedUser = v+ return s+}++// SetPackedPolicySize sets the PackedPolicySize field's value.+func (s *GetFederationTokenOutput) SetPackedPolicySize(v int64) *GetFederationTokenOutput {+ s.PackedPolicySize = &v+ return s+}++type GetSessionTokenInput struct {+ _ struct{} `type:"structure"`++ // The duration, in seconds, that the credentials should remain valid. Acceptable+ // durations for IAM user sessions range from 900 seconds (15 minutes) to 129600+ // seconds (36 hours), with 43200 seconds (12 hours) as the default. Sessions+ // for AWS account owners are restricted to a maximum of 3600 seconds (one hour).+ // If the duration is longer than one hour, the session for AWS account owners+ // defaults to one hour.+ DurationSeconds *int64 `min:"900" type:"integer"`++ // The identification number of the MFA device that is associated with the IAM+ // user who is making the GetSessionToken call. Specify this value if the IAM+ // user has a policy that requires MFA authentication. The value is either the+ // serial number for a hardware device (such as GAHT12345678) or an Amazon Resource+ // Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).+ // You can find the device for an IAM user by going to the AWS Management Console+ // and viewing the user's security credentials.+ //+ // The format for this parameter, as described by its regex pattern, is a string+ // of characters consisting of upper- and lower-case alphanumeric characters+ // with no spaces. You can also include underscores or any of the following+ // characters: =,.@-+ SerialNumber *string `min:"9" type:"string"`++ // The value provided by the MFA device, if MFA is required. If any policy requires+ // the IAM user to submit an MFA code, specify this value. If MFA authentication+ // is required, and the user does not provide a code when requesting a set of+ // temporary security credentials, the user will receive an "access denied"+ // response when requesting resources that require MFA authentication.+ //+ // The format for this parameter, as described by its regex pattern, is a sequence+ // of six numeric digits.+ TokenCode *string `min:"6" type:"string"`+}++// String returns the string representation+func (s GetSessionTokenInput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s GetSessionTokenInput) GoString() string {+ return s.String()+}++// Validate inspects the fields of the type to determine if they are valid.+func (s *GetSessionTokenInput) Validate() error {+ invalidParams := request.ErrInvalidParams{Context: "GetSessionTokenInput"}+ if s.DurationSeconds != nil && *s.DurationSeconds < 900 {+ invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900))+ }+ if s.SerialNumber != nil && len(*s.SerialNumber) < 9 {+ invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9))+ }+ if s.TokenCode != nil && len(*s.TokenCode) < 6 {+ invalidParams.Add(request.NewErrParamMinLen("TokenCode", 6))+ }++ if invalidParams.Len() > 0 {+ return invalidParams+ }+ return nil+}++// SetDurationSeconds sets the DurationSeconds field's value.+func (s *GetSessionTokenInput) SetDurationSeconds(v int64) *GetSessionTokenInput {+ s.DurationSeconds = &v+ return s+}++// SetSerialNumber sets the SerialNumber field's value.+func (s *GetSessionTokenInput) SetSerialNumber(v string) *GetSessionTokenInput {+ s.SerialNumber = &v+ return s+}++// SetTokenCode sets the TokenCode field's value.+func (s *GetSessionTokenInput) SetTokenCode(v string) *GetSessionTokenInput {+ s.TokenCode = &v+ return s+}++// Contains the response to a successful GetSessionToken request, including+// temporary AWS credentials that can be used to make AWS requests.+type GetSessionTokenOutput struct {+ _ struct{} `type:"structure"`++ // The temporary security credentials, which include an access key ID, a secret+ // access key, and a security (or session) token.+ //+ // Note: The size of the security token that STS APIs return is not fixed. We+ // strongly recommend that you make no assumptions about the maximum size. As+ // of this writing, the typical size is less than 4096 bytes, but that can vary.+ // Also, future updates to AWS might require larger sizes.+ Credentials *Credentials `type:"structure"`+}++// String returns the string representation+func (s GetSessionTokenOutput) String() string {+ return awsutil.Prettify(s)+}++// GoString returns the string representation+func (s GetSessionTokenOutput) GoString() string {+ return s.String()+}++// SetCredentials sets the Credentials field's value.+func (s *GetSessionTokenOutput) SetCredentials(v *Credentials) *GetSessionTokenOutput {+ s.Credentials = v+ return s+}diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/sts/customizations.gonew file mode 100644index 000000000..4010cc7fa--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/service/sts/customizations.go@@ -0,0 +1,12 @@+package sts++import "github.com/aws/aws-sdk-go/aws/request"++func init() {+ initRequest = func(r *request.Request) {+ switch r.Operation.Name {+ case opAssumeRoleWithSAML, opAssumeRoleWithWebIdentity:+ r.Handlers.Sign.Clear() // these operations are unsigned+ }+ }+}diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go b/vendor/github.com/aws/aws-sdk-go/service/sts/service.gonew file mode 100644index 000000000..a9b9b3255--- /dev/null+++ b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go@@ -0,0 +1,130 @@+// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.++package sts++import (+ "github.com/aws/aws-sdk-go/aws"+ "github.com/aws/aws-sdk-go/aws/client"+ "github.com/aws/aws-sdk-go/aws/client/metadata"+ "github.com/aws/aws-sdk-go/aws/request"+ "github.com/aws/aws-sdk-go/aws/signer/v4"+ "github.com/aws/aws-sdk-go/private/protocol/query"+)++// The AWS Security Token Service (STS) is a web service that enables you to+// request temporary, limited-privilege credentials for AWS Identity and Access+// Management (IAM) users or for users that you authenticate (federated users).+// This guide provides descriptions of the STS API. For more detailed information+// about using this service, go to Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html).+//+// As an alternative to using the API, you can use one of the AWS SDKs, which+// consist of libraries and sample code for various programming languages and+// platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient+// way to create programmatic access to STS. For example, the SDKs take care+// of cryptographically signing requests, managing errors, and retrying requests+// automatically. For information about the AWS SDKs, including how to download+// and install them, see the Tools for Amazon Web Services page (http://aws.amazon.com/tools/).+//+// For information about setting up signatures and authorization through the+// API, go to Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html)+// in the AWS General Reference. For general information about the Query API,+// go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html)+// in Using IAM. For information about using security tokens with other AWS+// products, go to AWS Services That Work with IAM (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html)+// in the IAM User Guide.+//+// If you're new to AWS and need additional technical information about a specific+// AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/+// (http://aws.amazon.com/documentation/).+//+// Endpoints+//+// The AWS Security Token Service (STS) has a default endpoint of https://sts.amazonaws.com+// that maps to the US East (N. Virginia) region. Additional regions are available+// and are activated by default. For more information, see Activating and Deactivating+// AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)+// in the IAM User Guide.+//+// For information about STS endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sts_region)+// in the AWS General Reference.+//+// Recording API requests+//+// STS supports AWS CloudTrail, which is a service that records AWS calls for+// your AWS account and delivers log files to an Amazon S3 bucket. By using+// information collected by CloudTrail, you can determine what requests were+// successfully made to STS, who made the request, when it was made, and so+// on. To learn more about CloudTrail, including how to turn it on and find+// your log files, see the AWS CloudTrail User Guide (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html).+//The service client's operations are safe to be used concurrently.+// It is not safe to mutate any of the client's properties though.+type STS struct {+ *client.Client+}++// Used for custom client initialization logic+var initClient func(*client.Client)++// Used for custom request initialization logic+var initRequest func(*request.Request)++// A ServiceName is the name of the service the client will make API calls to.+const ServiceName = "sts"++// New creates a new instance of the STS client with a session.+// If additional configuration is needed for the client instance use the optional+// aws.Config parameter to add your extra config.+//+// Example:+// // Create a STS client from just a session.+// svc := sts.New(mySession)+//+// // Create a STS client with additional configuration+// svc := sts.New(mySession, aws.NewConfig().WithRegion("us-west-2"))+func New(p client.ConfigProvider, cfgs ...*aws.Config) *STS {+ c := p.ClientConfig(ServiceName, cfgs...)+ return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)+}++// newClient creates, initializes and returns a new service client instance.+func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *STS {+ svc := &STS{+ Client: client.New(+ cfg,+ metadata.ClientInfo{+ ServiceName: ServiceName,+ SigningRegion: signingRegion,+ Endpoint: endpoint,+ APIVersion: "2011-06-15",+ },+ handlers,+ ),+ }++ // Handlers+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)+ svc.Handlers.Build.PushBackNamed(query.BuildHandler)+ svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)+ svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)+ svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)++ // Run custom client initialization if present+ if initClient != nil {+ initClient(svc.Client)+ }++ return svc+}++// newRequest creates a new request for a STS operation and runs any+// custom request initialization.+func (c *STS) newRequest(op *request.Operation, params, data interface{}) *request.Request {+ req := c.NewRequest(op, params, data)++ // Run custom request initialization if present+ if initRequest != nil {+ initRequest(req)+ }++ return req+}diff --git a/vendor/github.com/davecgh/go-spew/LICENSE b/vendor/github.com/davecgh/go-spew/LICENSEdeleted file mode 100644index 2a7cfd2bf..000000000--- a/vendor/github.com/davecgh/go-spew/LICENSE+++ /dev/null@@ -1,13 +0,0 @@-Copyright (c) 2012-2013 Dave Collins <[email protected]>--Permission to use, copy, modify, and distribute this software for any-purpose with or without fee is hereby granted, provided that the above-copyright notice and this permission notice appear in all copies.--THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.diff --git a/vendor/github.com/davecgh/go-spew/spew/bypass.go b/vendor/github.com/davecgh/go-spew/spew/bypass.godeleted file mode 100644index 565bf5899..000000000--- a/vendor/github.com/davecgh/go-spew/spew/bypass.go+++ /dev/null@@ -1,151 +0,0 @@-// Copyright (c) 2015 Dave Collins <[email protected]>-//-// Permission to use, copy, modify, and distribute this software for any-// purpose with or without fee is hereby granted, provided that the above-// copyright notice and this permission notice appear in all copies.-//-// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES-// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF-// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR-// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES-// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN-// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF-// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.--// NOTE: Due to the following build constraints, this file will only be compiled-// when the code is not running on Google App Engine and "-tags disableunsafe"-// is not added to the go build command line.-// +build !appengine,!disableunsafe--package spew--import (- "reflect"- "unsafe"-)--const (- // UnsafeDisabled is a build-time constant which specifies whether or- // not access to the unsafe package is available.- UnsafeDisabled = false-- // ptrSize is the size of a pointer on the current arch.- ptrSize = unsafe.Sizeof((*byte)(nil))-)--var (- // offsetPtr, offsetScalar, and offsetFlag are the offsets for the- // internal reflect.Value fields. These values are valid before golang- // commit ecccf07e7f9d which changed the format. The are also valid- // after commit 82f48826c6c7 which changed the format again to mirror- // the original format. Code in the init function updates these offsets- // as necessary.- offsetPtr = uintptr(ptrSize)- offsetScalar = uintptr(0)- offsetFlag = uintptr(ptrSize * 2)-- // flagKindWidth and flagKindShift indicate various bits that the- // reflect package uses internally to track kind information.- //- // flagRO indicates whether or not the value field of a reflect.Value is- // read-only.- //- // flagIndir indicates whether the value field of a reflect.Value is- // the actual data or a pointer to the data.- //- // These values are valid before golang commit 90a7c3c86944 which- // changed their positions. Code in the init function updates these- // flags as necessary.- flagKindWidth = uintptr(5)- flagKindShift = uintptr(flagKindWidth - 1)- flagRO = uintptr(1 << 0)- flagIndir = uintptr(1 << 1)-)--func init() {- // Older versions of reflect.Value stored small integers directly in the- // ptr field (which is named val in the older versions). Versions- // between commits ecccf07e7f9d and 82f48826c6c7 added a new field named- // scalar for this purpose which unfortunately came before the flag- // field, so the offset of the flag field is different for those- // versions.- //- // This code constructs a new reflect.Value from a known small integer- // and checks if the size of the reflect.Value struct indicates it has- // the scalar field. When it does, the offsets are updated accordingly.- vv := reflect.ValueOf(0xf00)- if unsafe.Sizeof(vv) == (ptrSize * 4) {- offsetScalar = ptrSize * 2- offsetFlag = ptrSize * 3- }-- // Commit 90a7c3c86944 changed the flag positions such that the low- // order bits are the kind. This code extracts the kind from the flags- // field and ensures it's the correct type. When it's not, the flag- // order has been changed to the newer format, so the flags are updated- // accordingly.- upf := unsafe.Pointer(uintptr(unsafe.Pointer(&vv)) + offsetFlag)- upfv := *(*uintptr)(upf)- flagKindMask := uintptr((1<<flagKindWidth - 1) << flagKindShift)- if (upfv&flagKindMask)>>flagKindShift != uintptr(reflect.Int) {- flagKindShift = 0- flagRO = 1 << 5- flagIndir = 1 << 6-- // Commit adf9b30e5594 modified the flags to separate the- // flagRO flag into two bits which specifies whether or not the- // field is embedded. This causes flagIndir to move over a bit- // and means that flagRO is the combination of either of the- // original flagRO bit and the new bit.- //- // This code detects the change by extracting what used to be- // the indirect bit to ensure it's set. When it's not, the flag- // order has been changed to the newer format, so the flags are- // updated accordingly.- if upfv&flagIndir == 0 {- flagRO = 3 << 5- flagIndir = 1 << 7- }- }-}--// unsafeReflectValue converts the passed reflect.Value into a one that bypasses-// the typical safety restrictions preventing access to unaddressable and-// unexported data. It works by digging the raw pointer to the underlying-// value out of the protected value and generating a new unprotected (unsafe)-// reflect.Value to it.-//-// This allows us to check for implementations of the Stringer and error-// interfaces to be used for pretty printing ordinarily unaddressable and-// inaccessible values such as unexported struct fields.-func unsafeReflectValue(v reflect.Value) (rv reflect.Value) {- indirects := 1- vt := v.Type()- upv := unsafe.Pointer(uintptr(unsafe.Pointer(&v)) + offsetPtr)- rvf := *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&v)) + offsetFlag))- if rvf&flagIndir != 0 {- vt = reflect.PtrTo(v.Type())- indirects++- } else if offsetScalar != 0 {- // The value is in the scalar field when it's not one of the- // reference types.- switch vt.Kind() {- case reflect.Uintptr:- case reflect.Chan:- case reflect.Func:- case reflect.Map:- case reflect.Ptr:- case reflect.UnsafePointer:- default:- upv = unsafe.Pointer(uintptr(unsafe.Pointer(&v)) +- offsetScalar)- }- }-- pv := reflect.NewAt(vt, upv)- rv = pv- for i := 0; i < indirects; i++ {- rv = rv.Elem()- }- return rv-}diff --git a/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go b/vendor/github.com/davecgh/go-spew/spew/bypasssafe.godeleted file mode 100644index 457e41235..000000000--- a/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go+++ /dev/null@@ -1,37 +0,0 @@-// Copyright (c) 2015 Dave Collins <[email protected]>-//-// Permission to use, copy, modify, and distribute this software for any-// purpose with or without fee is hereby granted, provided that the above-// copyright notice and this permission notice appear in all copies.-//-// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES-// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF-// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR-// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES-// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN-// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF-// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.--// NOTE: Due to the following build constraints, this file will only be compiled-// when either the code is running on Google App Engine or "-tags disableunsafe"-// is added to the go build command line.-// +build appengine disableunsafe--package spew--import "reflect"--const (- // UnsafeDisabled is a build-time constant which specifies whether or- // not access to the unsafe package is available.- UnsafeDisabled = true-)--// unsafeReflectValue typically converts the passed reflect.Value into a one-// that bypasses the typical safety restrictions preventing access to-// unaddressable and unexported data. However, doing this relies on access to-// the unsafe package. This is a stub version which simply returns the passed-// reflect.Value when the unsafe package is not available.-func unsafeReflectValue(v reflect.Value) reflect.Value {- return v-}diff --git a/vendor/github.com/davecgh/go-spew/spew/common.go b/vendor/github.com/davecgh/go-spew/spew/common.godeleted file mode 100644index 14f02dc15..000000000--- a/vendor/github.com/davecgh/go-spew/spew/common.go+++ /dev/null@@ -1,341 +0,0 @@-/*- * Copyright (c) 2013 Dave Collins <[email protected]>- *- * Permission to use, copy, modify, and distribute this software for any- * purpose with or without fee is hereby granted, provided that the above- * copyright notice and this permission notice appear in all copies.- *- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.- */--package spew--import (- "bytes"- "fmt"- "io"- "reflect"- "sort"- "strconv"-)--// Some constants in the form of bytes to avoid string overhead. This mirrors-// the technique used in the fmt package.-var (- panicBytes = []byte("(PANIC=")- plusBytes = []byte("+")- iBytes = []byte("i")- trueBytes = []byte("true")- falseBytes = []byte("false")- interfaceBytes = []byte("(interface {})")- commaNewlineBytes = []byte(",\n")- newlineBytes = []byte("\n")- openBraceBytes = []byte("{")- openBraceNewlineBytes = []byte("{\n")- closeBraceBytes = []byte("}")- asteriskBytes = []byte("*")- colonBytes = []byte(":")- colonSpaceBytes = []byte(": ")- openParenBytes = []byte("(")- closeParenBytes = []byte(")")- spaceBytes = []byte(" ")- pointerChainBytes = []byte("->")- nilAngleBytes = []byte("<nil>")- maxNewlineBytes = []byte("<max depth reached>\n")- maxShortBytes = []byte("<max>")- circularBytes = []byte("<already shown>")- circularShortBytes = []byte("<shown>")- invalidAngleBytes = []byte("<invalid>")- openBracketBytes = []byte("[")- closeBracketBytes = []byte("]")- percentBytes = []byte("%")- precisionBytes = []byte(".")- openAngleBytes = []byte("<")- closeAngleBytes = []byte(">")- openMapBytes = []byte("map[")- closeMapBytes = []byte("]")- lenEqualsBytes = []byte("len=")- capEqualsBytes = []byte("cap=")-)--// hexDigits is used to map a decimal value to a hex digit.-var hexDigits = "0123456789abcdef"--// catchPanic handles any panics that might occur during the handleMethods-// calls.-func catchPanic(w io.Writer, v reflect.Value) {- if err := recover(); err != nil {- w.Write(panicBytes)- fmt.Fprintf(w, "%v", err)- w.Write(closeParenBytes)- }-}--// handleMethods attempts to call the Error and String methods on the underlying-// type the passed reflect.Value represents and outputes the result to Writer w.-//-// It handles panics in any called methods by catching and displaying the error-// as the formatted value.-func handleMethods(cs *ConfigState, w io.Writer, v reflect.Value) (handled bool) {- // We need an interface to check if the type implements the error or- // Stringer interface. However, the reflect package won't give us an- // interface on certain things like unexported struct fields in order- // to enforce visibility rules. We use unsafe, when it's available,- // to bypass these restrictions since this package does not mutate the- // values.- if !v.CanInterface() {- if UnsafeDisabled {- return false- }-- v = unsafeReflectValue(v)- }-- // Choose whether or not to do error and Stringer interface lookups against- // the base type or a pointer to the base type depending on settings.- // Technically calling one of these methods with a pointer receiver can- // mutate the value, however, types which choose to satisify an error or- // Stringer interface with a pointer receiver should not be mutating their- // state inside these interface methods.- if !cs.DisablePointerMethods && !UnsafeDisabled && !v.CanAddr() {- v = unsafeReflectValue(v)- }- if v.CanAddr() {- v = v.Addr()- }-- // Is it an error or Stringer?- switch iface := v.Interface().(type) {- case error:- defer catchPanic(w, v)- if cs.ContinueOnMethod {- w.Write(openParenBytes)- w.Write([]byte(iface.Error()))- w.Write(closeParenBytes)- w.Write(spaceBytes)- return false- }-- w.Write([]byte(iface.Error()))- return true-- case fmt.Stringer:- defer catchPanic(w, v)- if cs.ContinueOnMethod {- w.Write(openParenBytes)- w.Write([]byte(iface.String()))- w.Write(closeParenBytes)- w.Write(spaceBytes)- return false- }- w.Write([]byte(iface.String()))- return true- }- return false-}--// printBool outputs a boolean value as true or false to Writer w.-func printBool(w io.Writer, val bool) {- if val {- w.Write(trueBytes)- } else {- w.Write(falseBytes)- }-}--// printInt outputs a signed integer value to Writer w.-func printInt(w io.Writer, val int64, base int) {- w.Write([]byte(strconv.FormatInt(val, base)))-}--// printUint outputs an unsigned integer value to Writer w.-func printUint(w io.Writer, val uint64, base int) {- w.Write([]byte(strconv.FormatUint(val, base)))-}--// printFloat outputs a floating point value using the specified precision,-// which is expected to be 32 or 64bit, to Writer w.-func printFloat(w io.Writer, val float64, precision int) {- w.Write([]byte(strconv.FormatFloat(val, 'g', -1, precision)))-}--// printComplex outputs a complex value using the specified float precision-// for the real and imaginary parts to Writer w.-func printComplex(w io.Writer, c complex128, floatPrecision int) {- r := real(c)- w.Write(openParenBytes)- w.Write([]byte(strconv.FormatFloat(r, 'g', -1, floatPrecision)))- i := imag(c)- if i >= 0 {- w.Write(plusBytes)- }- w.Write([]byte(strconv.FormatFloat(i, 'g', -1, floatPrecision)))- w.Write(iBytes)- w.Write(closeParenBytes)-}--// printHexPtr outputs a uintptr formatted as hexidecimal with a leading '0x'-// prefix to Writer w.-func printHexPtr(w io.Writer, p uintptr) {- // Null pointer.- num := uint64(p)- if num == 0 {- w.Write(nilAngleBytes)- return- }-- // Max uint64 is 16 bytes in hex + 2 bytes for '0x' prefix- buf := make([]byte, 18)-- // It's simpler to construct the hex string right to left.- base := uint64(16)- i := len(buf) - 1- for num >= base {- buf[i] = hexDigits[num%base]- num /= base- i--- }- buf[i] = hexDigits[num]-- // Add '0x' prefix.- i--- buf[i] = 'x'- i--- buf[i] = '0'-- // Strip unused leading bytes.- buf = buf[i:]- w.Write(buf)-}--// valuesSorter implements sort.Interface to allow a slice of reflect.Value-// elements to be sorted.-type valuesSorter struct {- values []reflect.Value- strings []string // either nil or same len and values- cs *ConfigState-}--// newValuesSorter initializes a valuesSorter instance, which holds a set of-// surrogate keys on which the data should be sorted. It uses flags in-// ConfigState to decide if and how to populate those surrogate keys.-func newValuesSorter(values []reflect.Value, cs *ConfigState) sort.Interface {- vs := &valuesSorter{values: values, cs: cs}- if canSortSimply(vs.values[0].Kind()) {- return vs- }- if !cs.DisableMethods {- vs.strings = make([]string, len(values))- for i := range vs.values {- b := bytes.Buffer{}- if !handleMethods(cs, &b, vs.values[i]) {- vs.strings = nil- break- }- vs.strings[i] = b.String()- }- }- if vs.strings == nil && cs.SpewKeys {- vs.strings = make([]string, len(values))- for i := range vs.values {- vs.strings[i] = Sprintf("%#v", vs.values[i].Interface())- }- }- return vs-}--// canSortSimply tests whether a reflect.Kind is a primitive that can be sorted-// directly, or whether it should be considered for sorting by surrogate keys-// (if the ConfigState allows it).-func canSortSimply(kind reflect.Kind) bool {- // This switch parallels valueSortLess, except for the default case.- switch kind {- case reflect.Bool:- return true- case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:- return true- case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:- return true- case reflect.Float32, reflect.Float64:- return true- case reflect.String:- return true- case reflect.Uintptr:- return true- case reflect.Array:- return true- }- return false-}--// Len returns the number of values in the slice. It is part of the-// sort.Interface implementation.-func (s *valuesSorter) Len() int {- return len(s.values)-}--// Swap swaps the values at the passed indices. It is part of the-// sort.Interface implementation.-func (s *valuesSorter) Swap(i, j int) {- s.values[i], s.values[j] = s.values[j], s.values[i]- if s.strings != nil {- s.strings[i], s.strings[j] = s.strings[j], s.strings[i]- }-}--// valueSortLess returns whether the first value should sort before the second-// value. It is used by valueSorter.Less as part of the sort.Interface-// implementation.-func valueSortLess(a, b reflect.Value) bool {- switch a.Kind() {- case reflect.Bool:- return !a.Bool() && b.Bool()- case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:- return a.Int() < b.Int()- case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:- return a.Uint() < b.Uint()- case reflect.Float32, reflect.Float64:- return a.Float() < b.Float()- case reflect.String:- return a.String() < b.String()- case reflect.Uintptr:- return a.Uint() < b.Uint()- case reflect.Array:- // Compare the contents of both arrays.- l := a.Len()- for i := 0; i < l; i++ {- av := a.Index(i)- bv := b.Index(i)- if av.Interface() == bv.Interface() {- continue- }- return valueSortLess(av, bv)- }- }- return a.String() < b.String()-}--// Less returns whether the value at index i should sort before the-// value at index j. It is part of the sort.Interface implementation.-func (s *valuesSorter) Less(i, j int) bool {- if s.strings == nil {- return valueSortLess(s.values[i], s.values[j])- }- return s.strings[i] < s.strings[j]-}--// sortValues is a sort function that handles both native types and any type that-// can be converted to error or Stringer. Other inputs are sorted according to-// their Value.String() value to ensure display stability.-func sortValues(values []reflect.Value, cs *ConfigState) {- if len(values) == 0 {- return- }- sort.Sort(newValuesSorter(values, cs))-}diff --git a/vendor/github.com/davecgh/go-spew/spew/config.go b/vendor/github.com/davecgh/go-spew/spew/config.godeleted file mode 100644index ee1ab07b3..000000000--- a/vendor/github.com/davecgh/go-spew/spew/config.go+++ /dev/null@@ -1,297 +0,0 @@-/*- * Copyright (c) 2013 Dave Collins <[email protected]>- *- * Permission to use, copy, modify, and distribute this software for any- * purpose with or without fee is hereby granted, provided that the above- * copyright notice and this permission notice appear in all copies.- *- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.- */--package spew--import (- "bytes"- "fmt"- "io"- "os"-)--// ConfigState houses the configuration options used by spew to format and-// display values. There is a global instance, Config, that is used to control-// all top-level Formatter and Dump functionality. Each ConfigState instance-// provides methods equivalent to the top-level functions.-//-// The zero value for ConfigState provides no indentation. You would typically-// want to set it to a space or a tab.-//-// Alternatively, you can use NewDefaultConfig to get a ConfigState instance-// with default settings. See the documentation of NewDefaultConfig for default-// values.-type ConfigState struct {- // Indent specifies the string to use for each indentation level. The- // global config instance that all top-level functions use set this to a- // single space by default. If you would like more indentation, you might- // set this to a tab with "\t" or perhaps two spaces with " ".- Indent string-- // MaxDepth controls the maximum number of levels to descend into nested- // data structures. The default, 0, means there is no limit.- //- // NOTE: Circular data structures are properly detected, so it is not- // necessary to set this value unless you specifically want to limit deeply- // nested data structures.- MaxDepth int-- // DisableMethods specifies whether or not error and Stringer interfaces are- // invoked for types that implement them.- DisableMethods bool-- // DisablePointerMethods specifies whether or not to check for and invoke- // error and Stringer interfaces on types which only accept a pointer- // receiver when the current type is not a pointer.- //- // NOTE: This might be an unsafe action since calling one of these methods- // with a pointer receiver could technically mutate the value, however,- // in practice, types which choose to satisify an error or Stringer- // interface with a pointer receiver should not be mutating their state- // inside these interface methods. As a result, this option relies on- // access to the unsafe package, so it will not have any effect when- // running in environments without access to the unsafe package such as- // Google App Engine or with the "disableunsafe" build tag specified.- DisablePointerMethods bool-- // ContinueOnMethod specifies whether or not recursion should continue once- // a custom error or Stringer interface is invoked. The default, false,- // means it will print the results of invoking the custom error or Stringer- // interface and return immediately instead of continuing to recurse into- // the internals of the data type.- //- // NOTE: This flag does not have any effect if method invocation is disabled- // via the DisableMethods or DisablePointerMethods options.- ContinueOnMethod bool-- // SortKeys specifies map keys should be sorted before being printed. Use- // this to have a more deterministic, diffable output. Note that only- // native types (bool, int, uint, floats, uintptr and string) and types- // that support the error or Stringer interfaces (if methods are- // enabled) are supported, with other types sorted according to the- // reflect.Value.String() output which guarantees display stability.- SortKeys bool-- // SpewKeys specifies that, as a last resort attempt, map keys should- // be spewed to strings and sorted by those strings. This is only- // considered if SortKeys is true.- SpewKeys bool-}--// Config is the active configuration of the top-level functions.-// The configuration can be changed by modifying the contents of spew.Config.-var Config = ConfigState{Indent: " "}--// Errorf is a wrapper for fmt.Errorf that treats each argument as if it were-// passed with a Formatter interface returned by c.NewFormatter. It returns-// the formatted string as a value that satisfies error. See NewFormatter-// for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Errorf(format, c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Errorf(format string, a ...interface{}) (err error) {- return fmt.Errorf(format, c.convertArgs(a)...)-}--// Fprint is a wrapper for fmt.Fprint that treats each argument as if it were-// passed with a Formatter interface returned by c.NewFormatter. It returns-// the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Fprint(w, c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Fprint(w io.Writer, a ...interface{}) (n int, err error) {- return fmt.Fprint(w, c.convertArgs(a)...)-}--// Fprintf is a wrapper for fmt.Fprintf that treats each argument as if it were-// passed with a Formatter interface returned by c.NewFormatter. It returns-// the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Fprintf(w, format, c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {- return fmt.Fprintf(w, format, c.convertArgs(a)...)-}--// Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it-// passed with a Formatter interface returned by c.NewFormatter. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Fprintln(w, c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Fprintln(w io.Writer, a ...interface{}) (n int, err error) {- return fmt.Fprintln(w, c.convertArgs(a)...)-}--// Print is a wrapper for fmt.Print that treats each argument as if it were-// passed with a Formatter interface returned by c.NewFormatter. It returns-// the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Print(c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Print(a ...interface{}) (n int, err error) {- return fmt.Print(c.convertArgs(a)...)-}--// Printf is a wrapper for fmt.Printf that treats each argument as if it were-// passed with a Formatter interface returned by c.NewFormatter. It returns-// the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Printf(format, c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Printf(format string, a ...interface{}) (n int, err error) {- return fmt.Printf(format, c.convertArgs(a)...)-}--// Println is a wrapper for fmt.Println that treats each argument as if it were-// passed with a Formatter interface returned by c.NewFormatter. It returns-// the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Println(c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Println(a ...interface{}) (n int, err error) {- return fmt.Println(c.convertArgs(a)...)-}--// Sprint is a wrapper for fmt.Sprint that treats each argument as if it were-// passed with a Formatter interface returned by c.NewFormatter. It returns-// the resulting string. See NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Sprint(c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Sprint(a ...interface{}) string {- return fmt.Sprint(c.convertArgs(a)...)-}--// Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were-// passed with a Formatter interface returned by c.NewFormatter. It returns-// the resulting string. See NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Sprintf(format, c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Sprintf(format string, a ...interface{}) string {- return fmt.Sprintf(format, c.convertArgs(a)...)-}--// Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it-// were passed with a Formatter interface returned by c.NewFormatter. It-// returns the resulting string. See NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Sprintln(c.NewFormatter(a), c.NewFormatter(b))-func (c *ConfigState) Sprintln(a ...interface{}) string {- return fmt.Sprintln(c.convertArgs(a)...)-}--/*-NewFormatter returns a custom formatter that satisfies the fmt.Formatter-interface. As a result, it integrates cleanly with standard fmt package-printing functions. The formatter is useful for inline printing of smaller data-types similar to the standard %v format specifier.--The custom formatter only responds to the %v (most compact), %+v (adds pointer-addresses), %#v (adds types), and %#+v (adds types and pointer addresses) verb-combinations. Any other verbs such as %x and %q will be sent to the the-standard fmt package for formatting. In addition, the custom formatter ignores-the width and precision arguments (however they will still work on the format-specifiers not handled by the custom formatter).--Typically this function shouldn't be called directly. It is much easier to make-use of the custom formatter by calling one of the convenience functions such as-c.Printf, c.Println, or c.Printf.-*/-func (c *ConfigState) NewFormatter(v interface{}) fmt.Formatter {- return newFormatter(c, v)-}--// Fdump formats and displays the passed arguments to io.Writer w. It formats-// exactly the same as Dump.-func (c *ConfigState) Fdump(w io.Writer, a ...interface{}) {- fdump(c, w, a...)-}--/*-Dump displays the passed parameters to standard out with newlines, customizable-indentation, and additional debug information such as complete types and all-pointer addresses used to indirect to the final value. It provides the-following features over the built-in printing facilities provided by the fmt-package:-- * Pointers are dereferenced and followed- * Circular data structures are detected and handled properly- * Custom Stringer/error interfaces are optionally invoked, including- on unexported types- * Custom types which only implement the Stringer/error interfaces via- a pointer receiver are optionally invoked when passing non-pointer- variables- * Byte arrays and slices are dumped like the hexdump -C command which- includes offsets, byte values in hex, and ASCII output--The configuration options are controlled by modifying the public members-of c. See ConfigState for options documentation.--See Fdump if you would prefer dumping to an arbitrary io.Writer or Sdump to-get the formatted result as a string.-*/-func (c *ConfigState) Dump(a ...interface{}) {- fdump(c, os.Stdout, a...)-}--// Sdump returns a string with the passed arguments formatted exactly the same-// as Dump.-func (c *ConfigState) Sdump(a ...interface{}) string {- var buf bytes.Buffer- fdump(c, &buf, a...)- return buf.String()-}--// convertArgs accepts a slice of arguments and returns a slice of the same-// length with each argument converted to a spew Formatter interface using-// the ConfigState associated with s.-func (c *ConfigState) convertArgs(args []interface{}) (formatters []interface{}) {- formatters = make([]interface{}, len(args))- for index, arg := range args {- formatters[index] = newFormatter(c, arg)- }- return formatters-}--// NewDefaultConfig returns a ConfigState with the following default settings.-//-// Indent: " "-// MaxDepth: 0-// DisableMethods: false-// DisablePointerMethods: false-// ContinueOnMethod: false-// SortKeys: false-func NewDefaultConfig() *ConfigState {- return &ConfigState{Indent: " "}-}diff --git a/vendor/github.com/davecgh/go-spew/spew/doc.go b/vendor/github.com/davecgh/go-spew/spew/doc.godeleted file mode 100644index 5be0c4060..000000000--- a/vendor/github.com/davecgh/go-spew/spew/doc.go+++ /dev/null@@ -1,202 +0,0 @@-/*- * Copyright (c) 2013 Dave Collins <[email protected]>- *- * Permission to use, copy, modify, and distribute this software for any- * purpose with or without fee is hereby granted, provided that the above- * copyright notice and this permission notice appear in all copies.- *- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.- */--/*-Package spew implements a deep pretty printer for Go data structures to aid in-debugging.--A quick overview of the additional features spew provides over the built-in-printing facilities for Go data types are as follows:-- * Pointers are dereferenced and followed- * Circular data structures are detected and handled properly- * Custom Stringer/error interfaces are optionally invoked, including- on unexported types- * Custom types which only implement the Stringer/error interfaces via- a pointer receiver are optionally invoked when passing non-pointer- variables- * Byte arrays and slices are dumped like the hexdump -C command which- includes offsets, byte values in hex, and ASCII output (only when using- Dump style)--There are two different approaches spew allows for dumping Go data structures:-- * Dump style which prints with newlines, customizable indentation,- and additional debug information such as types and all pointer addresses- used to indirect to the final value- * A custom Formatter interface that integrates cleanly with the standard fmt- package and replaces %v, %+v, %#v, and %#+v to provide inline printing- similar to the default %v while providing the additional functionality- outlined above and passing unsupported format verbs such as %x and %q- along to fmt--Quick Start--This section demonstrates how to quickly get started with spew. See the-sections below for further details on formatting and configuration options.--To dump a variable with full newlines, indentation, type, and pointer-information use Dump, Fdump, or Sdump:- spew.Dump(myVar1, myVar2, ...)- spew.Fdump(someWriter, myVar1, myVar2, ...)- str := spew.Sdump(myVar1, myVar2, ...)--Alternatively, if you would prefer to use format strings with a compacted inline-printing style, use the convenience wrappers Printf, Fprintf, etc with-%v (most compact), %+v (adds pointer addresses), %#v (adds types), or-%#+v (adds types and pointer addresses):- spew.Printf("myVar1: %v -- myVar2: %+v", myVar1, myVar2)- spew.Printf("myVar3: %#v -- myVar4: %#+v", myVar3, myVar4)- spew.Fprintf(someWriter, "myVar1: %v -- myVar2: %+v", myVar1, myVar2)- spew.Fprintf(someWriter, "myVar3: %#v -- myVar4: %#+v", myVar3, myVar4)--Configuration Options--Configuration of spew is handled by fields in the ConfigState type. For-convenience, all of the top-level functions use a global state available-via the spew.Config global.--It is also possible to create a ConfigState instance that provides methods-equivalent to the top-level functions. This allows concurrent configuration-options. See the ConfigState documentation for more details.--The following configuration options are available:- * Indent- String to use for each indentation level for Dump functions.- It is a single space by default. A popular alternative is "\t".-- * MaxDepth- Maximum number of levels to descend into nested data structures.- There is no limit by default.-- * DisableMethods- Disables invocation of error and Stringer interface methods.- Method invocation is enabled by default.-- * DisablePointerMethods- Disables invocation of error and Stringer interface methods on types- which only accept pointer receivers from non-pointer variables.- Pointer method invocation is enabled by default.-- * ContinueOnMethod- Enables recursion into types after invoking error and Stringer interface- methods. Recursion after method invocation is disabled by default.-- * SortKeys- Specifies map keys should be sorted before being printed. Use- this to have a more deterministic, diffable output. Note that- only native types (bool, int, uint, floats, uintptr and string)- and types which implement error or Stringer interfaces are- supported with other types sorted according to the- reflect.Value.String() output which guarantees display- stability. Natural map order is used by default.-- * SpewKeys- Specifies that, as a last resort attempt, map keys should be- spewed to strings and sorted by those strings. This is only- considered if SortKeys is true.--Dump Usage--Simply call spew.Dump with a list of variables you want to dump:-- spew.Dump(myVar1, myVar2, ...)--You may also call spew.Fdump if you would prefer to output to an arbitrary-io.Writer. For example, to dump to standard error:-- spew.Fdump(os.Stderr, myVar1, myVar2, ...)--A third option is to call spew.Sdump to get the formatted output as a string:-- str := spew.Sdump(myVar1, myVar2, ...)--Sample Dump Output--See the Dump example for details on the setup of the types and variables being-shown here.-- (main.Foo) {- unexportedField: (*main.Bar)(0xf84002e210)({- flag: (main.Flag) flagTwo,- data: (uintptr) <nil>- }),- ExportedField: (map[interface {}]interface {}) (len=1) {- (string) (len=3) "one": (bool) true- }- }--Byte (and uint8) arrays and slices are displayed uniquely like the hexdump -C-command as shown.- ([]uint8) (len=32 cap=32) {- 00000000 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 |............... |- 00000010 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 |!"#$%&'()*+,-./0|- 00000020 31 32 |12|- }--Custom Formatter--Spew provides a custom formatter that implements the fmt.Formatter interface-so that it integrates cleanly with standard fmt package printing functions. The-formatter is useful for inline printing of smaller data types similar to the-standard %v format specifier.--The custom formatter only responds to the %v (most compact), %+v (adds pointer-addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb-combinations. Any other verbs such as %x and %q will be sent to the the-standard fmt package for formatting. In addition, the custom formatter ignores-the width and precision arguments (however they will still work on the format-specifiers not handled by the custom formatter).--Custom Formatter Usage--The simplest way to make use of the spew custom formatter is to call one of the-convenience functions such as spew.Printf, spew.Println, or spew.Printf. The-functions have syntax you are most likely already familiar with:-- spew.Printf("myVar1: %v -- myVar2: %+v", myVar1, myVar2)- spew.Printf("myVar3: %#v -- myVar4: %#+v", myVar3, myVar4)- spew.Println(myVar, myVar2)- spew.Fprintf(os.Stderr, "myVar1: %v -- myVar2: %+v", myVar1, myVar2)- spew.Fprintf(os.Stderr, "myVar3: %#v -- myVar4: %#+v", myVar3, myVar4)--See the Index for the full list convenience functions.--Sample Formatter Output--Double pointer to a uint8:- %v: <**>5- %+v: <**>(0xf8400420d0->0xf8400420c8)5- %#v: (**uint8)5- %#+v: (**uint8)(0xf8400420d0->0xf8400420c8)5--Pointer to circular struct with a uint8 field and a pointer to itself:- %v: <*>{1 <*><shown>}- %+v: <*>(0xf84003e260){ui8:1 c:<*>(0xf84003e260)<shown>}- %#v: (*main.circular){ui8:(uint8)1 c:(*main.circular)<shown>}- %#+v: (*main.circular)(0xf84003e260){ui8:(uint8)1 c:(*main.circular)(0xf84003e260)<shown>}--See the Printf example for details on the setup of variables being shown-here.--Errors--Since it is possible for custom Stringer/error interfaces to panic, spew-detects them and handles them internally by printing the panic information-inline with the output. Since spew is intended to provide deep pretty printing-capabilities on structures, it intentionally does not return any errors.-*/-package spewdiff --git a/vendor/github.com/davecgh/go-spew/spew/dump.go b/vendor/github.com/davecgh/go-spew/spew/dump.godeleted file mode 100644index a0ff95e27..000000000--- a/vendor/github.com/davecgh/go-spew/spew/dump.go+++ /dev/null@@ -1,509 +0,0 @@-/*- * Copyright (c) 2013 Dave Collins <[email protected]>- *- * Permission to use, copy, modify, and distribute this software for any- * purpose with or without fee is hereby granted, provided that the above- * copyright notice and this permission notice appear in all copies.- *- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.- */--package spew--import (- "bytes"- "encoding/hex"- "fmt"- "io"- "os"- "reflect"- "regexp"- "strconv"- "strings"-)--var (- // uint8Type is a reflect.Type representing a uint8. It is used to- // convert cgo types to uint8 slices for hexdumping.- uint8Type = reflect.TypeOf(uint8(0))-- // cCharRE is a regular expression that matches a cgo char.- // It is used to detect character arrays to hexdump them.- cCharRE = regexp.MustCompile("^.*\\._Ctype_char$")-- // cUnsignedCharRE is a regular expression that matches a cgo unsigned- // char. It is used to detect unsigned character arrays to hexdump- // them.- cUnsignedCharRE = regexp.MustCompile("^.*\\._Ctype_unsignedchar$")-- // cUint8tCharRE is a regular expression that matches a cgo uint8_t.- // It is used to detect uint8_t arrays to hexdump them.- cUint8tCharRE = regexp.MustCompile("^.*\\._Ctype_uint8_t$")-)--// dumpState contains information about the state of a dump operation.-type dumpState struct {- w io.Writer- depth int- pointers map[uintptr]int- ignoreNextType bool- ignoreNextIndent bool- cs *ConfigState-}--// indent performs indentation according to the depth level and cs.Indent-// option.-func (d *dumpState) indent() {- if d.ignoreNextIndent {- d.ignoreNextIndent = false- return- }- d.w.Write(bytes.Repeat([]byte(d.cs.Indent), d.depth))-}--// unpackValue returns values inside of non-nil interfaces when possible.-// This is useful for data types like structs, arrays, slices, and maps which-// can contain varying types packed inside an interface.-func (d *dumpState) unpackValue(v reflect.Value) reflect.Value {- if v.Kind() == reflect.Interface && !v.IsNil() {- v = v.Elem()- }- return v-}--// dumpPtr handles formatting of pointers by indirecting them as necessary.-func (d *dumpState) dumpPtr(v reflect.Value) {- // Remove pointers at or below the current depth from map used to detect- // circular refs.- for k, depth := range d.pointers {- if depth >= d.depth {- delete(d.pointers, k)- }- }-- // Keep list of all dereferenced pointers to show later.- pointerChain := make([]uintptr, 0)-- // Figure out how many levels of indirection there are by dereferencing- // pointers and unpacking interfaces down the chain while detecting circular- // references.- nilFound := false- cycleFound := false- indirects := 0- ve := v- for ve.Kind() == reflect.Ptr {- if ve.IsNil() {- nilFound = true- break- }- indirects++- addr := ve.Pointer()- pointerChain = append(pointerChain, addr)- if pd, ok := d.pointers[addr]; ok && pd < d.depth {- cycleFound = true- indirects--- break- }- d.pointers[addr] = d.depth-- ve = ve.Elem()- if ve.Kind() == reflect.Interface {- if ve.IsNil() {- nilFound = true- break- }- ve = ve.Elem()- }- }-- // Display type information.- d.w.Write(openParenBytes)- d.w.Write(bytes.Repeat(asteriskBytes, indirects))- d.w.Write([]byte(ve.Type().String()))- d.w.Write(closeParenBytes)-- // Display pointer information.- if len(pointerChain) > 0 {- d.w.Write(openParenBytes)- for i, addr := range pointerChain {- if i > 0 {- d.w.Write(pointerChainBytes)- }- printHexPtr(d.w, addr)- }- d.w.Write(closeParenBytes)- }-- // Display dereferenced value.- d.w.Write(openParenBytes)- switch {- case nilFound == true:- d.w.Write(nilAngleBytes)-- case cycleFound == true:- d.w.Write(circularBytes)-- default:- d.ignoreNextType = true- d.dump(ve)- }- d.w.Write(closeParenBytes)-}--// dumpSlice handles formatting of arrays and slices. Byte (uint8 under-// reflection) arrays and slices are dumped in hexdump -C fashion.-func (d *dumpState) dumpSlice(v reflect.Value) {- // Determine whether this type should be hex dumped or not. Also,- // for types which should be hexdumped, try to use the underlying data- // first, then fall back to trying to convert them to a uint8 slice.- var buf []uint8- doConvert := false- doHexDump := false- numEntries := v.Len()- if numEntries > 0 {- vt := v.Index(0).Type()- vts := vt.String()- switch {- // C types that need to be converted.- case cCharRE.MatchString(vts):- fallthrough- case cUnsignedCharRE.MatchString(vts):- fallthrough- case cUint8tCharRE.MatchString(vts):- doConvert = true-- // Try to use existing uint8 slices and fall back to converting- // and copying if that fails.- case vt.Kind() == reflect.Uint8:- // We need an addressable interface to convert the type- // to a byte slice. However, the reflect package won't- // give us an interface on certain things like- // unexported struct fields in order to enforce- // visibility rules. We use unsafe, when available, to- // bypass these restrictions since this package does not- // mutate the values.- vs := v- if !vs.CanInterface() || !vs.CanAddr() {- vs = unsafeReflectValue(vs)- }- if !UnsafeDisabled {- vs = vs.Slice(0, numEntries)-- // Use the existing uint8 slice if it can be- // type asserted.- iface := vs.Interface()- if slice, ok := iface.([]uint8); ok {- buf = slice- doHexDump = true- break- }- }-- // The underlying data needs to be converted if it can't- // be type asserted to a uint8 slice.- doConvert = true- }-- // Copy and convert the underlying type if needed.- if doConvert && vt.ConvertibleTo(uint8Type) {- // Convert and copy each element into a uint8 byte- // slice.- buf = make([]uint8, numEntries)- for i := 0; i < numEntries; i++ {- vv := v.Index(i)- buf[i] = uint8(vv.Convert(uint8Type).Uint())- }- doHexDump = true- }- }-- // Hexdump the entire slice as needed.- if doHexDump {- indent := strings.Repeat(d.cs.Indent, d.depth)- str := indent + hex.Dump(buf)- str = strings.Replace(str, "\n", "\n"+indent, -1)- str = strings.TrimRight(str, d.cs.Indent)- d.w.Write([]byte(str))- return- }-- // Recursively call dump for each item.- for i := 0; i < numEntries; i++ {- d.dump(d.unpackValue(v.Index(i)))- if i < (numEntries - 1) {- d.w.Write(commaNewlineBytes)- } else {- d.w.Write(newlineBytes)- }- }-}--// dump is the main workhorse for dumping a value. It uses the passed reflect-// value to figure out what kind of object we are dealing with and formats it-// appropriately. It is a recursive function, however circular data structures-// are detected and handled properly.-func (d *dumpState) dump(v reflect.Value) {- // Handle invalid reflect values immediately.- kind := v.Kind()- if kind == reflect.Invalid {- d.w.Write(invalidAngleBytes)- return- }-- // Handle pointers specially.- if kind == reflect.Ptr {- d.indent()- d.dumpPtr(v)- return- }-- // Print type information unless already handled elsewhere.- if !d.ignoreNextType {- d.indent()- d.w.Write(openParenBytes)- d.w.Write([]byte(v.Type().String()))- d.w.Write(closeParenBytes)- d.w.Write(spaceBytes)- }- d.ignoreNextType = false-- // Display length and capacity if the built-in len and cap functions- // work with the value's kind and the len/cap itself is non-zero.- valueLen, valueCap := 0, 0- switch v.Kind() {- case reflect.Array, reflect.Slice, reflect.Chan:- valueLen, valueCap = v.Len(), v.Cap()- case reflect.Map, reflect.String:- valueLen = v.Len()- }- if valueLen != 0 || valueCap != 0 {- d.w.Write(openParenBytes)- if valueLen != 0 {- d.w.Write(lenEqualsBytes)- printInt(d.w, int64(valueLen), 10)- }- if valueCap != 0 {- if valueLen != 0 {- d.w.Write(spaceBytes)- }- d.w.Write(capEqualsBytes)- printInt(d.w, int64(valueCap), 10)- }- d.w.Write(closeParenBytes)- d.w.Write(spaceBytes)- }-- // Call Stringer/error interfaces if they exist and the handle methods flag- // is enabled- if !d.cs.DisableMethods {- if (kind != reflect.Invalid) && (kind != reflect.Interface) {- if handled := handleMethods(d.cs, d.w, v); handled {- return- }- }- }-- switch kind {- case reflect.Invalid:- // Do nothing. We should never get here since invalid has already- // been handled above.-- case reflect.Bool:- printBool(d.w, v.Bool())-- case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:- printInt(d.w, v.Int(), 10)-- case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:- printUint(d.w, v.Uint(), 10)-- case reflect.Float32:- printFloat(d.w, v.Float(), 32)-- case reflect.Float64:- printFloat(d.w, v.Float(), 64)-- case reflect.Complex64:- printComplex(d.w, v.Complex(), 32)-- case reflect.Complex128:- printComplex(d.w, v.Complex(), 64)-- case reflect.Slice:- if v.IsNil() {- d.w.Write(nilAngleBytes)- break- }- fallthrough-- case reflect.Array:- d.w.Write(openBraceNewlineBytes)- d.depth++- if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) {- d.indent()- d.w.Write(maxNewlineBytes)- } else {- d.dumpSlice(v)- }- d.depth--- d.indent()- d.w.Write(closeBraceBytes)-- case reflect.String:- d.w.Write([]byte(strconv.Quote(v.String())))-- case reflect.Interface:- // The only time we should get here is for nil interfaces due to- // unpackValue calls.- if v.IsNil() {- d.w.Write(nilAngleBytes)- }-- case reflect.Ptr:- // Do nothing. We should never get here since pointers have already- // been handled above.-- case reflect.Map:- // nil maps should be indicated as different than empty maps- if v.IsNil() {- d.w.Write(nilAngleBytes)- break- }-- d.w.Write(openBraceNewlineBytes)- d.depth++- if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) {- d.indent()- d.w.Write(maxNewlineBytes)- } else {- numEntries := v.Len()- keys := v.MapKeys()- if d.cs.SortKeys {- sortValues(keys, d.cs)- }- for i, key := range keys {- d.dump(d.unpackValue(key))- d.w.Write(colonSpaceBytes)- d.ignoreNextIndent = true- d.dump(d.unpackValue(v.MapIndex(key)))- if i < (numEntries - 1) {- d.w.Write(commaNewlineBytes)- } else {- d.w.Write(newlineBytes)- }- }- }- d.depth--- d.indent()- d.w.Write(closeBraceBytes)-- case reflect.Struct:- d.w.Write(openBraceNewlineBytes)- d.depth++- if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) {- d.indent()- d.w.Write(maxNewlineBytes)- } else {- vt := v.Type()- numFields := v.NumField()- for i := 0; i < numFields; i++ {- d.indent()- vtf := vt.Field(i)- d.w.Write([]byte(vtf.Name))- d.w.Write(colonSpaceBytes)- d.ignoreNextIndent = true- d.dump(d.unpackValue(v.Field(i)))- if i < (numFields - 1) {- d.w.Write(commaNewlineBytes)- } else {- d.w.Write(newlineBytes)- }- }- }- d.depth--- d.indent()- d.w.Write(closeBraceBytes)-- case reflect.Uintptr:- printHexPtr(d.w, uintptr(v.Uint()))-- case reflect.UnsafePointer, reflect.Chan, reflect.Func:- printHexPtr(d.w, v.Pointer())-- // There were not any other types at the time this code was written, but- // fall back to letting the default fmt package handle it in case any new- // types are added.- default:- if v.CanInterface() {- fmt.Fprintf(d.w, "%v", v.Interface())- } else {- fmt.Fprintf(d.w, "%v", v.String())- }- }-}--// fdump is a helper function to consolidate the logic from the various public-// methods which take varying writers and config states.-func fdump(cs *ConfigState, w io.Writer, a ...interface{}) {- for _, arg := range a {- if arg == nil {- w.Write(interfaceBytes)- w.Write(spaceBytes)- w.Write(nilAngleBytes)- w.Write(newlineBytes)- continue- }-- d := dumpState{w: w, cs: cs}- d.pointers = make(map[uintptr]int)- d.dump(reflect.ValueOf(arg))- d.w.Write(newlineBytes)- }-}--// Fdump formats and displays the passed arguments to io.Writer w. It formats-// exactly the same as Dump.-func Fdump(w io.Writer, a ...interface{}) {- fdump(&Config, w, a...)-}--// Sdump returns a string with the passed arguments formatted exactly the same-// as Dump.-func Sdump(a ...interface{}) string {- var buf bytes.Buffer- fdump(&Config, &buf, a...)- return buf.String()-}--/*-Dump displays the passed parameters to standard out with newlines, customizable-indentation, and additional debug information such as complete types and all-pointer addresses used to indirect to the final value. It provides the-following features over the built-in printing facilities provided by the fmt-package:-- * Pointers are dereferenced and followed- * Circular data structures are detected and handled properly- * Custom Stringer/error interfaces are optionally invoked, including- on unexported types- * Custom types which only implement the Stringer/error interfaces via- a pointer receiver are optionally invoked when passing non-pointer- variables- * Byte arrays and slices are dumped like the hexdump -C command which- includes offsets, byte values in hex, and ASCII output--The configuration options are controlled by an exported package global,-spew.Config. See ConfigState for options documentation.--See Fdump if you would prefer dumping to an arbitrary io.Writer or Sdump to-get the formatted result as a string.-*/-func Dump(a ...interface{}) {- fdump(&Config, os.Stdout, a...)-}diff --git a/vendor/github.com/davecgh/go-spew/spew/format.go b/vendor/github.com/davecgh/go-spew/spew/format.godeleted file mode 100644index ecf3b80e2..000000000--- a/vendor/github.com/davecgh/go-spew/spew/format.go+++ /dev/null@@ -1,419 +0,0 @@-/*- * Copyright (c) 2013 Dave Collins <[email protected]>- *- * Permission to use, copy, modify, and distribute this software for any- * purpose with or without fee is hereby granted, provided that the above- * copyright notice and this permission notice appear in all copies.- *- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.- */--package spew--import (- "bytes"- "fmt"- "reflect"- "strconv"- "strings"-)--// supportedFlags is a list of all the character flags supported by fmt package.-const supportedFlags = "0-+# "--// formatState implements the fmt.Formatter interface and contains information-// about the state of a formatting operation. The NewFormatter function can-// be used to get a new Formatter which can be used directly as arguments-// in standard fmt package printing calls.-type formatState struct {- value interface{}- fs fmt.State- depth int- pointers map[uintptr]int- ignoreNextType bool- cs *ConfigState-}--// buildDefaultFormat recreates the original format string without precision-// and width information to pass in to fmt.Sprintf in the case of an-// unrecognized type. Unless new types are added to the language, this-// function won't ever be called.-func (f *formatState) buildDefaultFormat() (format string) {- buf := bytes.NewBuffer(percentBytes)-- for _, flag := range supportedFlags {- if f.fs.Flag(int(flag)) {- buf.WriteRune(flag)- }- }-- buf.WriteRune('v')-- format = buf.String()- return format-}--// constructOrigFormat recreates the original format string including precision-// and width information to pass along to the standard fmt package. This allows-// automatic deferral of all format strings this package doesn't support.-func (f *formatState) constructOrigFormat(verb rune) (format string) {- buf := bytes.NewBuffer(percentBytes)-- for _, flag := range supportedFlags {- if f.fs.Flag(int(flag)) {- buf.WriteRune(flag)- }- }-- if width, ok := f.fs.Width(); ok {- buf.WriteString(strconv.Itoa(width))- }-- if precision, ok := f.fs.Precision(); ok {- buf.Write(precisionBytes)- buf.WriteString(strconv.Itoa(precision))- }-- buf.WriteRune(verb)-- format = buf.String()- return format-}--// unpackValue returns values inside of non-nil interfaces when possible and-// ensures that types for values which have been unpacked from an interface-// are displayed when the show types flag is also set.-// This is useful for data types like structs, arrays, slices, and maps which-// can contain varying types packed inside an interface.-func (f *formatState) unpackValue(v reflect.Value) reflect.Value {- if v.Kind() == reflect.Interface {- f.ignoreNextType = false- if !v.IsNil() {- v = v.Elem()- }- }- return v-}--// formatPtr handles formatting of pointers by indirecting them as necessary.-func (f *formatState) formatPtr(v reflect.Value) {- // Display nil if top level pointer is nil.- showTypes := f.fs.Flag('#')- if v.IsNil() && (!showTypes || f.ignoreNextType) {- f.fs.Write(nilAngleBytes)- return- }-- // Remove pointers at or below the current depth from map used to detect- // circular refs.- for k, depth := range f.pointers {- if depth >= f.depth {- delete(f.pointers, k)- }- }-- // Keep list of all dereferenced pointers to possibly show later.- pointerChain := make([]uintptr, 0)-- // Figure out how many levels of indirection there are by derferencing- // pointers and unpacking interfaces down the chain while detecting circular- // references.- nilFound := false- cycleFound := false- indirects := 0- ve := v- for ve.Kind() == reflect.Ptr {- if ve.IsNil() {- nilFound = true- break- }- indirects++- addr := ve.Pointer()- pointerChain = append(pointerChain, addr)- if pd, ok := f.pointers[addr]; ok && pd < f.depth {- cycleFound = true- indirects--- break- }- f.pointers[addr] = f.depth-- ve = ve.Elem()- if ve.Kind() == reflect.Interface {- if ve.IsNil() {- nilFound = true- break- }- ve = ve.Elem()- }- }-- // Display type or indirection level depending on flags.- if showTypes && !f.ignoreNextType {- f.fs.Write(openParenBytes)- f.fs.Write(bytes.Repeat(asteriskBytes, indirects))- f.fs.Write([]byte(ve.Type().String()))- f.fs.Write(closeParenBytes)- } else {- if nilFound || cycleFound {- indirects += strings.Count(ve.Type().String(), "*")- }- f.fs.Write(openAngleBytes)- f.fs.Write([]byte(strings.Repeat("*", indirects)))- f.fs.Write(closeAngleBytes)- }-- // Display pointer information depending on flags.- if f.fs.Flag('+') && (len(pointerChain) > 0) {- f.fs.Write(openParenBytes)- for i, addr := range pointerChain {- if i > 0 {- f.fs.Write(pointerChainBytes)- }- printHexPtr(f.fs, addr)- }- f.fs.Write(closeParenBytes)- }-- // Display dereferenced value.- switch {- case nilFound == true:- f.fs.Write(nilAngleBytes)-- case cycleFound == true:- f.fs.Write(circularShortBytes)-- default:- f.ignoreNextType = true- f.format(ve)- }-}--// format is the main workhorse for providing the Formatter interface. It-// uses the passed reflect value to figure out what kind of object we are-// dealing with and formats it appropriately. It is a recursive function,-// however circular data structures are detected and handled properly.-func (f *formatState) format(v reflect.Value) {- // Handle invalid reflect values immediately.- kind := v.Kind()- if kind == reflect.Invalid {- f.fs.Write(invalidAngleBytes)- return- }-- // Handle pointers specially.- if kind == reflect.Ptr {- f.formatPtr(v)- return- }-- // Print type information unless already handled elsewhere.- if !f.ignoreNextType && f.fs.Flag('#') {- f.fs.Write(openParenBytes)- f.fs.Write([]byte(v.Type().String()))- f.fs.Write(closeParenBytes)- }- f.ignoreNextType = false-- // Call Stringer/error interfaces if they exist and the handle methods- // flag is enabled.- if !f.cs.DisableMethods {- if (kind != reflect.Invalid) && (kind != reflect.Interface) {- if handled := handleMethods(f.cs, f.fs, v); handled {- return- }- }- }-- switch kind {- case reflect.Invalid:- // Do nothing. We should never get here since invalid has already- // been handled above.-- case reflect.Bool:- printBool(f.fs, v.Bool())-- case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:- printInt(f.fs, v.Int(), 10)-- case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:- printUint(f.fs, v.Uint(), 10)-- case reflect.Float32:- printFloat(f.fs, v.Float(), 32)-- case reflect.Float64:- printFloat(f.fs, v.Float(), 64)-- case reflect.Complex64:- printComplex(f.fs, v.Complex(), 32)-- case reflect.Complex128:- printComplex(f.fs, v.Complex(), 64)-- case reflect.Slice:- if v.IsNil() {- f.fs.Write(nilAngleBytes)- break- }- fallthrough-- case reflect.Array:- f.fs.Write(openBracketBytes)- f.depth++- if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) {- f.fs.Write(maxShortBytes)- } else {- numEntries := v.Len()- for i := 0; i < numEntries; i++ {- if i > 0 {- f.fs.Write(spaceBytes)- }- f.ignoreNextType = true- f.format(f.unpackValue(v.Index(i)))- }- }- f.depth--- f.fs.Write(closeBracketBytes)-- case reflect.String:- f.fs.Write([]byte(v.String()))-- case reflect.Interface:- // The only time we should get here is for nil interfaces due to- // unpackValue calls.- if v.IsNil() {- f.fs.Write(nilAngleBytes)- }-- case reflect.Ptr:- // Do nothing. We should never get here since pointers have already- // been handled above.-- case reflect.Map:- // nil maps should be indicated as different than empty maps- if v.IsNil() {- f.fs.Write(nilAngleBytes)- break- }-- f.fs.Write(openMapBytes)- f.depth++- if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) {- f.fs.Write(maxShortBytes)- } else {- keys := v.MapKeys()- if f.cs.SortKeys {- sortValues(keys, f.cs)- }- for i, key := range keys {- if i > 0 {- f.fs.Write(spaceBytes)- }- f.ignoreNextType = true- f.format(f.unpackValue(key))- f.fs.Write(colonBytes)- f.ignoreNextType = true- f.format(f.unpackValue(v.MapIndex(key)))- }- }- f.depth--- f.fs.Write(closeMapBytes)-- case reflect.Struct:- numFields := v.NumField()- f.fs.Write(openBraceBytes)- f.depth++- if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) {- f.fs.Write(maxShortBytes)- } else {- vt := v.Type()- for i := 0; i < numFields; i++ {- if i > 0 {- f.fs.Write(spaceBytes)- }- vtf := vt.Field(i)- if f.fs.Flag('+') || f.fs.Flag('#') {- f.fs.Write([]byte(vtf.Name))- f.fs.Write(colonBytes)- }- f.format(f.unpackValue(v.Field(i)))- }- }- f.depth--- f.fs.Write(closeBraceBytes)-- case reflect.Uintptr:- printHexPtr(f.fs, uintptr(v.Uint()))-- case reflect.UnsafePointer, reflect.Chan, reflect.Func:- printHexPtr(f.fs, v.Pointer())-- // There were not any other types at the time this code was written, but- // fall back to letting the default fmt package handle it if any get added.- default:- format := f.buildDefaultFormat()- if v.CanInterface() {- fmt.Fprintf(f.fs, format, v.Interface())- } else {- fmt.Fprintf(f.fs, format, v.String())- }- }-}--// Format satisfies the fmt.Formatter interface. See NewFormatter for usage-// details.-func (f *formatState) Format(fs fmt.State, verb rune) {- f.fs = fs-- // Use standard formatting for verbs that are not v.- if verb != 'v' {- format := f.constructOrigFormat(verb)- fmt.Fprintf(fs, format, f.value)- return- }-- if f.value == nil {- if fs.Flag('#') {- fs.Write(interfaceBytes)- }- fs.Write(nilAngleBytes)- return- }-- f.format(reflect.ValueOf(f.value))-}--// newFormatter is a helper function to consolidate the logic from the various-// public methods which take varying config states.-func newFormatter(cs *ConfigState, v interface{}) fmt.Formatter {- fs := &formatState{value: v, cs: cs}- fs.pointers = make(map[uintptr]int)- return fs-}--/*-NewFormatter returns a custom formatter that satisfies the fmt.Formatter-interface. As a result, it integrates cleanly with standard fmt package-printing functions. The formatter is useful for inline printing of smaller data-types similar to the standard %v format specifier.--The custom formatter only responds to the %v (most compact), %+v (adds pointer-addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb-combinations. Any other verbs such as %x and %q will be sent to the the-standard fmt package for formatting. In addition, the custom formatter ignores-the width and precision arguments (however they will still work on the format-specifiers not handled by the custom formatter).--Typically this function shouldn't be called directly. It is much easier to make-use of the custom formatter by calling one of the convenience functions such as-Printf, Println, or Fprintf.-*/-func NewFormatter(v interface{}) fmt.Formatter {- return newFormatter(&Config, v)-}diff --git a/vendor/github.com/davecgh/go-spew/spew/spew.go b/vendor/github.com/davecgh/go-spew/spew/spew.godeleted file mode 100644index d8233f542..000000000--- a/vendor/github.com/davecgh/go-spew/spew/spew.go+++ /dev/null@@ -1,148 +0,0 @@-/*- * Copyright (c) 2013 Dave Collins <[email protected]>- *- * Permission to use, copy, modify, and distribute this software for any- * purpose with or without fee is hereby granted, provided that the above- * copyright notice and this permission notice appear in all copies.- *- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.- */--package spew--import (- "fmt"- "io"-)--// Errorf is a wrapper for fmt.Errorf that treats each argument as if it were-// passed with a default Formatter interface returned by NewFormatter. It-// returns the formatted string as a value that satisfies error. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Errorf(format, spew.NewFormatter(a), spew.NewFormatter(b))-func Errorf(format string, a ...interface{}) (err error) {- return fmt.Errorf(format, convertArgs(a)...)-}--// Fprint is a wrapper for fmt.Fprint that treats each argument as if it were-// passed with a default Formatter interface returned by NewFormatter. It-// returns the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Fprint(w, spew.NewFormatter(a), spew.NewFormatter(b))-func Fprint(w io.Writer, a ...interface{}) (n int, err error) {- return fmt.Fprint(w, convertArgs(a)...)-}--// Fprintf is a wrapper for fmt.Fprintf that treats each argument as if it were-// passed with a default Formatter interface returned by NewFormatter. It-// returns the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Fprintf(w, format, spew.NewFormatter(a), spew.NewFormatter(b))-func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {- return fmt.Fprintf(w, format, convertArgs(a)...)-}--// Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it-// passed with a default Formatter interface returned by NewFormatter. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Fprintln(w, spew.NewFormatter(a), spew.NewFormatter(b))-func Fprintln(w io.Writer, a ...interface{}) (n int, err error) {- return fmt.Fprintln(w, convertArgs(a)...)-}--// Print is a wrapper for fmt.Print that treats each argument as if it were-// passed with a default Formatter interface returned by NewFormatter. It-// returns the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Print(spew.NewFormatter(a), spew.NewFormatter(b))-func Print(a ...interface{}) (n int, err error) {- return fmt.Print(convertArgs(a)...)-}--// Printf is a wrapper for fmt.Printf that treats each argument as if it were-// passed with a default Formatter interface returned by NewFormatter. It-// returns the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Printf(format, spew.NewFormatter(a), spew.NewFormatter(b))-func Printf(format string, a ...interface{}) (n int, err error) {- return fmt.Printf(format, convertArgs(a)...)-}--// Println is a wrapper for fmt.Println that treats each argument as if it were-// passed with a default Formatter interface returned by NewFormatter. It-// returns the number of bytes written and any write error encountered. See-// NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Println(spew.NewFormatter(a), spew.NewFormatter(b))-func Println(a ...interface{}) (n int, err error) {- return fmt.Println(convertArgs(a)...)-}--// Sprint is a wrapper for fmt.Sprint that treats each argument as if it were-// passed with a default Formatter interface returned by NewFormatter. It-// returns the resulting string. See NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Sprint(spew.NewFormatter(a), spew.NewFormatter(b))-func Sprint(a ...interface{}) string {- return fmt.Sprint(convertArgs(a)...)-}--// Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were-// passed with a default Formatter interface returned by NewFormatter. It-// returns the resulting string. See NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Sprintf(format, spew.NewFormatter(a), spew.NewFormatter(b))-func Sprintf(format string, a ...interface{}) string {- return fmt.Sprintf(format, convertArgs(a)...)-}--// Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it-// were passed with a default Formatter interface returned by NewFormatter. It-// returns the resulting string. See NewFormatter for formatting details.-//-// This function is shorthand for the following syntax:-//-// fmt.Sprintln(spew.NewFormatter(a), spew.NewFormatter(b))-func Sprintln(a ...interface{}) string {- return fmt.Sprintln(convertArgs(a)...)-}--// convertArgs accepts a slice of arguments and returns a slice of the same-// length with each argument converted to a default spew Formatter interface.-func convertArgs(args []interface{}) (formatters []interface{}) {- formatters = make([]interface{}, len(args))- for index, arg := range args {- formatters[index] = NewFormatter(arg)- }- return formatters-}diff --git a/vendor/github.com/golang/protobuf/AUTHORS b/vendor/github.com/golang/protobuf/AUTHORSnew file mode 100644index 000000000..15167cd74--- /dev/null+++ b/vendor/github.com/golang/protobuf/AUTHORS@@ -0,0 +1,3 @@+# This source code refers to The Go Authors for copyright purposes.+# The master list of authors is in the main Go distribution,+# visible at http://tip.golang.org/AUTHORS.diff --git a/vendor/github.com/golang/protobuf/CONTRIBUTORS b/vendor/github.com/golang/protobuf/CONTRIBUTORSnew file mode 100644index 000000000..1c4577e96--- /dev/null+++ b/vendor/github.com/golang/protobuf/CONTRIBUTORS@@ -0,0 +1,3 @@+# This source code was written by the Go contributors.+# The master list of contributors is in the main Go distribution,+# visible at http://tip.golang.org/CONTRIBUTORS.diff --git a/vendor/github.com/golang/protobuf/proto/Makefile b/vendor/github.com/golang/protobuf/proto/Makefileindex f1f06564a..e2e0651a9 100644--- a/vendor/github.com/golang/protobuf/proto/Makefile+++ b/vendor/github.com/golang/protobuf/proto/Makefile@@ -39,5 +39,5 @@ test: install generate-test-pbsgenerate-test-pbs:make installmake -C testdata- protoc --go_out=Mtestdata/test.proto=github.com/golang/protobuf/proto/testdata:. proto3_proto/proto3.proto+ protoc --go_out=Mtestdata/test.proto=github.com/golang/protobuf/proto/testdata,Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any:. proto3_proto/proto3.protomakediff --git a/vendor/github.com/golang/protobuf/proto/clone.go b/vendor/github.com/golang/protobuf/proto/clone.goindex e98ddec98..e392575b3 100644--- a/vendor/github.com/golang/protobuf/proto/clone.go+++ b/vendor/github.com/golang/protobuf/proto/clone.go@@ -84,9 +84,15 @@ func mergeStruct(out, in reflect.Value) {mergeAny(out.Field(i), in.Field(i), false, sprop.Prop[i])}- if emIn, ok := in.Addr().Interface().(extendableProto); ok {- emOut := out.Addr().Interface().(extendableProto)- mergeExtension(emOut.ExtensionMap(), emIn.ExtensionMap())+ if emIn, ok := extendable(in.Addr().Interface()); ok {+ emOut, _ := extendable(out.Addr().Interface())+ mIn, muIn := emIn.extensionsRead()+ if mIn != nil {+ mOut := emOut.extensionsWrite()+ muIn.Lock()+ mergeExtension(mOut, mIn)+ muIn.Unlock()+ }}uf := in.FieldByName("XXX_unrecognized")diff --git a/vendor/github.com/golang/protobuf/proto/decode.go b/vendor/github.com/golang/protobuf/proto/decode.goindex 5810782fd..aa207298f 100644--- a/vendor/github.com/golang/protobuf/proto/decode.go+++ b/vendor/github.com/golang/protobuf/proto/decode.go@@ -61,7 +61,6 @@ var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for// int32, int64, uint32, uint64, bool, and enum// protocol buffer types.func DecodeVarint(buf []byte) (x uint64, n int) {- // x, n already 0for shift := uint(0); shift < 64; shift += 7 {if n >= len(buf) {return 0, 0@@ -78,13 +77,7 @@ func DecodeVarint(buf []byte) (x uint64, n int) {return 0, 0}-// DecodeVarint reads a varint-encoded integer from the Buffer.-// This is the format for the-// int32, int64, uint32, uint64, bool, and enum-// protocol buffer types.-func (p *Buffer) DecodeVarint() (x uint64, err error) {- // x, err already 0-+func (p *Buffer) decodeVarintSlow() (x uint64, err error) {i := p.indexl := len(p.buf)@@ -107,6 +100,107 @@ func (p *Buffer) DecodeVarint() (x uint64, err error) {return}+// DecodeVarint reads a varint-encoded integer from the Buffer.+// This is the format for the+// int32, int64, uint32, uint64, bool, and enum+// protocol buffer types.+func (p *Buffer) DecodeVarint() (x uint64, err error) {+ i := p.index+ buf := p.buf++ if i >= len(buf) {+ return 0, io.ErrUnexpectedEOF+ } else if buf[i] < 0x80 {+ p.index+++ return uint64(buf[i]), nil+ } else if len(buf)-i < 10 {+ return p.decodeVarintSlow()+ }++ var b uint64+ // we already checked the first byte+ x = uint64(buf[i]) - 0x80+ i++++ b = uint64(buf[i])+ i+++ x += b << 7+ if b&0x80 == 0 {+ goto done+ }+ x -= 0x80 << 7++ b = uint64(buf[i])+ i+++ x += b << 14+ if b&0x80 == 0 {+ goto done+ }+ x -= 0x80 << 14++ b = uint64(buf[i])+ i+++ x += b << 21+ if b&0x80 == 0 {+ goto done+ }+ x -= 0x80 << 21++ b = uint64(buf[i])+ i+++ x += b << 28+ if b&0x80 == 0 {+ goto done+ }+ x -= 0x80 << 28++ b = uint64(buf[i])+ i+++ x += b << 35+ if b&0x80 == 0 {+ goto done+ }+ x -= 0x80 << 35++ b = uint64(buf[i])+ i+++ x += b << 42+ if b&0x80 == 0 {+ goto done+ }+ x -= 0x80 << 42++ b = uint64(buf[i])+ i+++ x += b << 49+ if b&0x80 == 0 {+ goto done+ }+ x -= 0x80 << 49++ b = uint64(buf[i])+ i+++ x += b << 56+ if b&0x80 == 0 {+ goto done+ }+ x -= 0x80 << 56++ b = uint64(buf[i])+ i+++ x += b << 63+ if b&0x80 == 0 {+ goto done+ }+ // x -= 0x80 << 63 // Always zero.++ return 0, errOverflow++done:+ p.index = i+ return x, nil+}+// DecodeFixed64 reads a 64-bit integer from the Buffer.// This is the format for the// fixed64, sfixed64, and double protocol buffer types.@@ -340,6 +434,8 @@ func (p *Buffer) DecodeGroup(pb Message) error {// Buffer and places the decoded result in pb. If the struct// underlying pb does not match the data in the buffer, the results can be// unpredictable.+//+// Unlike proto.Unmarshal, this does not reset pb before starting to unmarshal.func (p *Buffer) Unmarshal(pb Message) error {// If the object can unmarshal itself, let it.if u, ok := pb.(Unmarshaler); ok {@@ -378,6 +474,11 @@ func (o *Buffer) unmarshalType(st reflect.Type, prop *StructProperties, is_groupwire := int(u & 0x7)if wire == WireEndGroup {if is_group {+ if required > 0 {+ // Not enough information to determine the exact field.+ // (See below.)+ return &RequiredNotSetError{"{Unknown}"}+ }return nil // input is satisfied}return fmt.Errorf("proto: %s: wiretype end group for non-group", st)@@ -390,11 +491,12 @@ func (o *Buffer) unmarshalType(st reflect.Type, prop *StructProperties, is_groupif !ok {// Maybe it's an extension?if prop.extendable {- if e := structPointer_Interface(base, st).(extendableProto); isExtensionField(e, int32(tag)) {+ if e, _ := extendable(structPointer_Interface(base, st)); isExtensionField(e, int32(tag)) {if err = o.skip(st, tag, wire); err == nil {- ext := e.ExtensionMap()[int32(tag)] // may be missing+ extmap := e.extensionsWrite()+ ext := extmap[int32(tag)] // may be missingext.enc = append(ext.enc, o.buf[oi:o.index]...)- e.ExtensionMap()[int32(tag)] = ext+ extmap[int32(tag)] = ext}continue}@@ -768,10 +870,11 @@ func (o *Buffer) dec_new_map(p *Properties, base structPointer) error {}}keyelem, valelem := keyptr.Elem(), valptr.Elem()- if !keyelem.IsValid() || !valelem.IsValid() {- // We did not decode the key or the value in the map entry.- // Either way, it's an invalid map entry.- return fmt.Errorf("proto: bad map data: missing key/val")+ if !keyelem.IsValid() {+ keyelem = reflect.Zero(p.mtype.Key())+ }+ if !valelem.IsValid() {+ valelem = reflect.Zero(p.mtype.Elem())}v.SetMapIndex(keyelem, valelem)diff --git a/vendor/github.com/golang/protobuf/proto/encode.go b/vendor/github.com/golang/protobuf/proto/encode.goindex 231b07401..2b30f8462 100644--- a/vendor/github.com/golang/protobuf/proto/encode.go+++ b/vendor/github.com/golang/protobuf/proto/encode.go@@ -64,8 +64,16 @@ var (// a struct with a repeated field containing a nil element.errRepeatedHasNil = errors.New("proto: repeated field has nil element")+ // errOneofHasNil is the error returned if Marshal is called with+ // a struct with a oneof field containing a nil element.+ errOneofHasNil = errors.New("proto: oneof field has nil value")+// ErrNil is the error returned if Marshal is called with nil.ErrNil = errors.New("proto: Marshal called with nil")++ // ErrTooLarge is the error returned if Marshal is called with a+ // message that encodes to >2GB.+ ErrTooLarge = errors.New("proto: message encodes to over 2 GB"))// The fundamental encoders that put bytes on the wire.@@ -74,6 +82,10 @@ var (const maxVarintBytes = 10 // maximum length of a varint+// maxMarshalSize is the largest allowed size of an encoded protobuf,+// since C++ and Java use signed int32s for the size.+const maxMarshalSize = 1<<31 - 1+// EncodeVarint returns the varint encoding of x.// This is the format for the// int32, int64, uint32, uint64, bool, and enum@@ -222,10 +234,6 @@ func Marshal(pb Message) ([]byte, error) {}p := NewBuffer(nil)err := p.Marshal(pb)- var state errorState- if err != nil && !state.shouldContinue(err, nil) {- return nil, err- }if p.buf == nil && err == nil {// Return a non-nil slice on success.return []byte{}, nil@@ -254,11 +262,8 @@ func (p *Buffer) Marshal(pb Message) error {// Can the object marshal itself?if m, ok := pb.(Marshaler); ok {data, err := m.Marshal()- if err != nil {- return err- }p.buf = append(p.buf, data...)- return nil+ return err}t, base, err := getbase(pb)@@ -270,9 +275,12 @@ func (p *Buffer) Marshal(pb Message) error {}if collectStats {- stats.Encode+++ (stats).Encode++ // Parens are to work around a goimports bug.}+ if len(p.buf) > maxMarshalSize {+ return ErrTooLarge+ }return err}@@ -294,7 +302,7 @@ func Size(pb Message) (n int) {}if collectStats {- stats.Size+++ (stats).Size++ // Parens are to work around a goimports bug.}return@@ -999,7 +1007,6 @@ func size_slice_struct_message(p *Properties, base structPointer) (n int) {if p.isMarshaler {m := structPointer_Interface(structp, p.stype).(Marshaler)data, _ := m.Marshal()- n += len(p.tagcode)n += sizeRawBytes(data)continue}@@ -1058,10 +1065,32 @@ func size_slice_struct_group(p *Properties, base structPointer) (n int) {// Encode an extension map.func (o *Buffer) enc_map(p *Properties, base structPointer) error {- v := *structPointer_ExtMap(base, p.field)- if err := encodeExtensionMap(v); err != nil {+ exts := structPointer_ExtMap(base, p.field)+ if err := encodeExtensionsMap(*exts); err != nil {+ return err+ }++ return o.enc_map_body(*exts)+}++func (o *Buffer) enc_exts(p *Properties, base structPointer) error {+ exts := structPointer_Extensions(base, p.field)++ v, mu := exts.extensionsRead()+ if v == nil {+ return nil+ }++ mu.Lock()+ defer mu.Unlock()+ if err := encodeExtensionsMap(v); err != nil {return err}++ return o.enc_map_body(v)+}++func (o *Buffer) enc_map_body(v map[int32]Extension) error {// Fast-path for common cases: zero or one extensions.if len(v) <= 1 {for _, e := range v {@@ -1084,8 +1113,13 @@ func (o *Buffer) enc_map(p *Properties, base structPointer) error {}func size_map(p *Properties, base structPointer) int {- v := *structPointer_ExtMap(base, p.field)- return sizeExtensionMap(v)+ v := structPointer_ExtMap(base, p.field)+ return extensionsMapSize(*v)+}++func size_exts(p *Properties, base structPointer) int {+ v := structPointer_Extensions(base, p.field)+ return extensionsSize(v)}// Encode a map field.@@ -1114,7 +1148,7 @@ func (o *Buffer) enc_new_map(p *Properties, base structPointer) error {if err := p.mkeyprop.enc(o, p.mkeyprop, keybase); err != nil {return err}- if err := p.mvalprop.enc(o, p.mvalprop, valbase); err != nil {+ if err := p.mvalprop.enc(o, p.mvalprop, valbase); err != nil && err != ErrNil {return err}return nil@@ -1124,11 +1158,6 @@ func (o *Buffer) enc_new_map(p *Properties, base structPointer) error {for _, key := range v.MapKeys() {val := v.MapIndex(key)- // The only illegal map entry values are nil message pointers.- if val.Kind() == reflect.Ptr && val.IsNil() {- return errors.New("proto: map has nil element")- }-keycopy.Set(key)valcopy.Set(val)@@ -1216,13 +1245,18 @@ func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error {return err}}+ if len(o.buf) > maxMarshalSize {+ return ErrTooLarge+ }}}// Do oneof fields.if prop.oneofMarshaler != nil {m := structPointer_Interface(base, prop.stype).(Message)- if err := prop.oneofMarshaler(m, o); err != nil {+ if err := prop.oneofMarshaler(m, o); err == ErrNil {+ return errOneofHasNil+ } else if err != nil {return err}}@@ -1230,6 +1264,9 @@ func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error {// Add unrecognized fields at the end.if prop.unrecField.IsValid() {v := *structPointer_Bytes(base, prop.unrecField)+ if len(o.buf)+len(v) > maxMarshalSize {+ return ErrTooLarge+ }if len(v) > 0 {o.buf = append(o.buf, v...)}diff --git a/vendor/github.com/golang/protobuf/proto/equal.go b/vendor/github.com/golang/protobuf/proto/equal.goindex f5db1def3..2ed1cf596 100644--- a/vendor/github.com/golang/protobuf/proto/equal.go+++ b/vendor/github.com/golang/protobuf/proto/equal.go@@ -54,13 +54,17 @@ Equality is defined in this way:in a proto3 .proto file, fields are not "set"; specifically,zero length proto3 "bytes" fields are equal (nil == {}).- Two repeated fields are equal iff their lengths are the same,- and their corresponding elements are equal (a "bytes" field,- although represented by []byte, is not a repeated field)+ and their corresponding elements are equal. Note a "bytes" field,+ although represented by []byte, is not a repeated field and the+ rule for the scalar fields described above applies.- Two unset fields are equal.- Two unknown field sets are equal if their currentencoded state is equal.- Two extension sets are equal iff they have correspondingelements that are pairwise equal.+ - Two map fields are equal iff their lengths are the same,+ and they contain the same set of elements. Zero-length map+ fields are equal.- Every other combination of things are not equal.The return value is undefined if a and b are not protocol buffers.@@ -121,9 +125,16 @@ func equalStruct(v1, v2 reflect.Value) bool {}}+ if em1 := v1.FieldByName("XXX_InternalExtensions"); em1.IsValid() {+ em2 := v2.FieldByName("XXX_InternalExtensions")+ if !equalExtensions(v1.Type(), em1.Interface().(XXX_InternalExtensions), em2.Interface().(XXX_InternalExtensions)) {+ return false+ }+ }+if em1 := v1.FieldByName("XXX_extensions"); em1.IsValid() {em2 := v2.FieldByName("XXX_extensions")- if !equalExtensions(v1.Type(), em1.Interface().(map[int32]Extension), em2.Interface().(map[int32]Extension)) {+ if !equalExtMap(v1.Type(), em1.Interface().(map[int32]Extension), em2.Interface().(map[int32]Extension)) {return false}}@@ -184,6 +195,13 @@ func equalAny(v1, v2 reflect.Value, prop *Properties) bool {}return truecase reflect.Ptr:+ // Maps may have nil values in them, so check for nil.+ if v1.IsNil() && v2.IsNil() {+ return true+ }+ if v1.IsNil() != v2.IsNil() {+ return false+ }return equalAny(v1.Elem(), v2.Elem(), prop)case reflect.Slice:if v1.Type().Elem().Kind() == reflect.Uint8 {@@ -223,8 +241,14 @@ func equalAny(v1, v2 reflect.Value, prop *Properties) bool {}// base is the struct type that the extensions are based on.-// em1 and em2 are extension maps.-func equalExtensions(base reflect.Type, em1, em2 map[int32]Extension) bool {+// x1 and x2 are InternalExtensions.+func equalExtensions(base reflect.Type, x1, x2 XXX_InternalExtensions) bool {+ em1, _ := x1.extensionsRead()+ em2, _ := x2.extensionsRead()+ return equalExtMap(base, em1, em2)+}++func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool {if len(em1) != len(em2) {return false}diff --git a/vendor/github.com/golang/protobuf/proto/extensions.go b/vendor/github.com/golang/protobuf/proto/extensions.goindex 054f4f1df..eaad21831 100644--- a/vendor/github.com/golang/protobuf/proto/extensions.go+++ b/vendor/github.com/golang/protobuf/proto/extensions.go@@ -52,14 +52,99 @@ type ExtensionRange struct {Start, End int32 // both inclusive}-// extendableProto is an interface implemented by any protocol buffer that may be extended.+// extendableProto is an interface implemented by any protocol buffer generated by the current+// proto compiler that may be extended.type extendableProto interface {+ Message+ ExtensionRangeArray() []ExtensionRange+ extensionsWrite() map[int32]Extension+ extensionsRead() (map[int32]Extension, sync.Locker)+}++// extendableProtoV1 is an interface implemented by a protocol buffer generated by the previous+// version of the proto compiler that may be extended.+type extendableProtoV1 interface {MessageExtensionRangeArray() []ExtensionRangeExtensionMap() map[int32]Extension}+// extensionAdapter is a wrapper around extendableProtoV1 that implements extendableProto.+type extensionAdapter struct {+ extendableProtoV1+}++func (e extensionAdapter) extensionsWrite() map[int32]Extension {+ return e.ExtensionMap()+}++func (e extensionAdapter) extensionsRead() (map[int32]Extension, sync.Locker) {+ return e.ExtensionMap(), notLocker{}+}++// notLocker is a sync.Locker whose Lock and Unlock methods are nops.+type notLocker struct{}++func (n notLocker) Lock() {}+func (n notLocker) Unlock() {}++// extendable returns the extendableProto interface for the given generated proto message.+// If the proto message has the old extension format, it returns a wrapper that implements+// the extendableProto interface.+func extendable(p interface{}) (extendableProto, bool) {+ if ep, ok := p.(extendableProto); ok {+ return ep, ok+ }+ if ep, ok := p.(extendableProtoV1); ok {+ return extensionAdapter{ep}, ok+ }+ return nil, false+}++// XXX_InternalExtensions is an internal representation of proto extensions.+//+// Each generated message struct type embeds an anonymous XXX_InternalExtensions field,+// thus gaining the unexported 'extensions' method, which can be called only from the proto package.+//+// The methods of XXX_InternalExtensions are not concurrency safe in general,+// but calls to logically read-only methods such as has and get may be executed concurrently.+type XXX_InternalExtensions struct {+ // The struct must be indirect so that if a user inadvertently copies a+ // generated message and its embedded XXX_InternalExtensions, they+ // avoid the mayhem of a copied mutex.+ //+ // The mutex serializes all logically read-only operations to p.extensionMap.+ // It is up to the client to ensure that write operations to p.extensionMap are+ // mutually exclusive with other accesses.+ p *struct {+ mu sync.Mutex+ extensionMap map[int32]Extension+ }+}++// extensionsWrite returns the extension map, creating it on first use.+func (e *XXX_InternalExtensions) extensionsWrite() map[int32]Extension {+ if e.p == nil {+ e.p = new(struct {+ mu sync.Mutex+ extensionMap map[int32]Extension+ })+ e.p.extensionMap = make(map[int32]Extension)+ }+ return e.p.extensionMap+}++// extensionsRead returns the extensions map for read-only use. It may be nil.+// The caller must hold the returned mutex's lock when accessing Elements within the map.+func (e *XXX_InternalExtensions) extensionsRead() (map[int32]Extension, sync.Locker) {+ if e.p == nil {+ return nil, nil+ }+ return e.p.extensionMap, &e.p.mu+}+var extendableProtoType = reflect.TypeOf((*extendableProto)(nil)).Elem()+var extendableProtoV1Type = reflect.TypeOf((*extendableProtoV1)(nil)).Elem()// ExtensionDesc represents an extension specification.// Used in generated code from the protocol compiler.@@ -69,6 +154,7 @@ type ExtensionDesc struct {Field int32 // field numberName string // fully-qualified name of extension, for text formattingTag string // protobuf tag style+ Filename string // name of the file in which the extension is defined}func (ed *ExtensionDesc) repeated() bool {@@ -92,8 +178,13 @@ type Extension struct {}// SetRawExtension is for testing only.-func SetRawExtension(base extendableProto, id int32, b []byte) {- base.ExtensionMap()[id] = Extension{enc: b}+func SetRawExtension(base Message, id int32, b []byte) {+ epb, ok := extendable(base)+ if !ok {+ return+ }+ extmap := epb.extensionsWrite()+ extmap[id] = Extension{enc: b}}// isExtensionField returns true iff the given field number is in an extension range.@@ -108,8 +199,12 @@ func isExtensionField(pb extendableProto, field int32) bool {// checkExtensionTypes checks that the given extension is valid for pb.func checkExtensionTypes(pb extendableProto, extension *ExtensionDesc) error {+ var pbi interface{} = pb// Check the extended type.- if a, b := reflect.TypeOf(pb), reflect.TypeOf(extension.ExtendedType); a != b {+ if ea, ok := pbi.(extensionAdapter); ok {+ pbi = ea.extendableProtoV1+ }+ if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b {return errors.New("proto: bad extended type; " + b.String() + " does not extend " + a.String())}// Check the range.@@ -155,8 +250,19 @@ func extensionProperties(ed *ExtensionDesc) *Properties {return prop}-// encodeExtensionMap encodes any unmarshaled (unencoded) extensions in m.-func encodeExtensionMap(m map[int32]Extension) error {+// encode encodes any unmarshaled (unencoded) extensions in e.+func encodeExtensions(e *XXX_InternalExtensions) error {+ m, mu := e.extensionsRead()+ if m == nil {+ return nil // fast path+ }+ mu.Lock()+ defer mu.Unlock()+ return encodeExtensionsMap(m)+}++// encode encodes any unmarshaled (unencoded) extensions in e.+func encodeExtensionsMap(m map[int32]Extension) error {for k, e := range m {if e.value == nil || e.desc == nil {// Extension is only in its encoded form.@@ -184,7 +290,17 @@ func encodeExtensionMap(m map[int32]Extension) error {return nil}-func sizeExtensionMap(m map[int32]Extension) (n int) {+func extensionsSize(e *XXX_InternalExtensions) (n int) {+ m, mu := e.extensionsRead()+ if m == nil {+ return 0+ }+ mu.Lock()+ defer mu.Unlock()+ return extensionsMapSize(m)+}++func extensionsMapSize(m map[int32]Extension) (n int) {for _, e := range m {if e.value == nil || e.desc == nil {// Extension is only in its encoded form.@@ -209,26 +325,51 @@ func sizeExtensionMap(m map[int32]Extension) (n int) {}// HasExtension returns whether the given extension is present in pb.-func HasExtension(pb extendableProto, extension *ExtensionDesc) bool {+func HasExtension(pb Message, extension *ExtensionDesc) bool {// TODO: Check types, field numbers, etc.?- _, ok := pb.ExtensionMap()[extension.Field]+ epb, ok := extendable(pb)+ if !ok {+ return false+ }+ extmap, mu := epb.extensionsRead()+ if extmap == nil {+ return false+ }+ mu.Lock()+ _, ok = extmap[extension.Field]+ mu.Unlock()return ok}// ClearExtension removes the given extension from pb.-func ClearExtension(pb extendableProto, extension *ExtensionDesc) {+func ClearExtension(pb Message, extension *ExtensionDesc) {+ epb, ok := extendable(pb)+ if !ok {+ return+ }// TODO: Check types, field numbers, etc.?- delete(pb.ExtensionMap(), extension.Field)+ extmap := epb.extensionsWrite()+ delete(extmap, extension.Field)}// GetExtension parses and returns the given extension of pb.// If the extension is not present and has no default value it returns ErrMissingExtension.-func GetExtension(pb extendableProto, extension *ExtensionDesc) (interface{}, error) {- if err := checkExtensionTypes(pb, extension); err != nil {+func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) {+ epb, ok := extendable(pb)+ if !ok {+ return nil, errors.New("proto: not an extendable proto")+ }++ if err := checkExtensionTypes(epb, extension); err != nil {return nil, err}- emap := pb.ExtensionMap()+ emap, mu := epb.extensionsRead()+ if emap == nil {+ return defaultExtensionValue(extension)+ }+ mu.Lock()+ defer mu.Unlock()e, ok := emap[extension.Field]if !ok {// defaultExtensionValue returns the default value or@@ -332,10 +473,9 @@ func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) {// GetExtensions returns a slice of the extensions present in pb that are also listed in es.// The returned slice has the same length as es; missing extensions will appear as nil elements.func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) {- epb, ok := pb.(extendableProto)+ epb, ok := extendable(pb)if !ok {- err = errors.New("proto: not an extendable proto")- return+ return nil, errors.New("proto: not an extendable proto")}extensions = make([]interface{}, len(es))for i, e := range es {@@ -350,9 +490,44 @@ func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, ereturn}+// ExtensionDescs returns a new slice containing pb's extension descriptors, in undefined order.+// For non-registered extensions, ExtensionDescs returns an incomplete descriptor containing+// just the Field field, which defines the extension's field number.+func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) {+ epb, ok := extendable(pb)+ if !ok {+ return nil, fmt.Errorf("proto: %T is not an extendable proto.Message", pb)+ }+ registeredExtensions := RegisteredExtensions(pb)++ emap, mu := epb.extensionsRead()+ if emap == nil {+ return nil, nil+ }+ mu.Lock()+ defer mu.Unlock()+ extensions := make([]*ExtensionDesc, 0, len(emap))+ for extid, e := range emap {+ desc := e.desc+ if desc == nil {+ desc = registeredExtensions[extid]+ if desc == nil {+ desc = &ExtensionDesc{Field: extid}+ }+ }++ extensions = append(extensions, desc)+ }+ return extensions, nil+}+// SetExtension sets the specified extension of pb to the specified value.-func SetExtension(pb extendableProto, extension *ExtensionDesc, value interface{}) error {- if err := checkExtensionTypes(pb, extension); err != nil {+func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error {+ epb, ok := extendable(pb)+ if !ok {+ return errors.New("proto: not an extendable proto")+ }+ if err := checkExtensionTypes(epb, extension); err != nil {return err}typ := reflect.TypeOf(extension.ExtensionType)@@ -368,10 +543,23 @@ func SetExtension(pb extendableProto, extension *ExtensionDesc, value interface{return fmt.Errorf("proto: SetExtension called with nil value of type %T", value)}- pb.ExtensionMap()[extension.Field] = Extension{desc: extension, value: value}+ extmap := epb.extensionsWrite()+ extmap[extension.Field] = Extension{desc: extension, value: value}return nil}+// ClearAllExtensions clears all extensions from pb.+func ClearAllExtensions(pb Message) {+ epb, ok := extendable(pb)+ if !ok {+ return+ }+ m := epb.extensionsWrite()+ for k := range m {+ delete(m, k)+ }+}+// A global registry of extensions.// The generated code will register the generated descriptors by calling RegisterExtension.diff --git a/vendor/github.com/golang/protobuf/proto/lib.go b/vendor/github.com/golang/protobuf/proto/lib.goindex 0de8f8dff..ac4ddbc07 100644--- a/vendor/github.com/golang/protobuf/proto/lib.go+++ b/vendor/github.com/golang/protobuf/proto/lib.go@@ -308,7 +308,7 @@ func GetStats() Stats { return stats }// temporary Buffer and are fine for most applications.type Buffer struct {buf []byte // encode/decode byte stream- index int // write point+ index int // read point// pools of basic types to amortize allocation.bools []bool@@ -889,6 +889,10 @@ func isProto3Zero(v reflect.Value) bool {return false}+// ProtoPackageIsVersion2 is referenced from generated protocol buffer files+// to assert that that code is compatible with this version of the proto package.+const ProtoPackageIsVersion2 = true+// ProtoPackageIsVersion1 is referenced from generated protocol buffer files// to assert that that code is compatible with this version of the proto package.const ProtoPackageIsVersion1 = truediff --git a/vendor/github.com/golang/protobuf/proto/message_set.go b/vendor/github.com/golang/protobuf/proto/message_set.goindex e25e01e63..fd982decd 100644--- a/vendor/github.com/golang/protobuf/proto/message_set.go+++ b/vendor/github.com/golang/protobuf/proto/message_set.go@@ -149,9 +149,21 @@ func skipVarint(buf []byte) []byte {// MarshalMessageSet encodes the extension map represented by m in the message set wire format.// It is called by generated Marshal methods on protocol buffer messages with the message_set_wire_format option.-func MarshalMessageSet(m map[int32]Extension) ([]byte, error) {- if err := encodeExtensionMap(m); err != nil {- return nil, err+func MarshalMessageSet(exts interface{}) ([]byte, error) {+ var m map[int32]Extension+ switch exts := exts.(type) {+ case *XXX_InternalExtensions:+ if err := encodeExtensions(exts); err != nil {+ return nil, err+ }+ m, _ = exts.extensionsRead()+ case map[int32]Extension:+ if err := encodeExtensionsMap(exts); err != nil {+ return nil, err+ }+ m = exts+ default:+ return nil, errors.New("proto: not an extension map")}// Sort extension IDs to provide a deterministic encoding.@@ -178,7 +190,17 @@ func MarshalMessageSet(m map[int32]Extension) ([]byte, error) {// UnmarshalMessageSet decodes the extension map encoded in buf in the message set wire format.// It is called by generated Unmarshal methods on protocol buffer messages with the message_set_wire_format option.-func UnmarshalMessageSet(buf []byte, m map[int32]Extension) error {+func UnmarshalMessageSet(buf []byte, exts interface{}) error {+ var m map[int32]Extension+ switch exts := exts.(type) {+ case *XXX_InternalExtensions:+ m = exts.extensionsWrite()+ case map[int32]Extension:+ m = exts+ default:+ return errors.New("proto: not an extension map")+ }+ms := new(messageSet)if err := Unmarshal(buf, ms); err != nil {return err@@ -209,7 +231,16 @@ func UnmarshalMessageSet(buf []byte, m map[int32]Extension) error {// MarshalMessageSetJSON encodes the extension map represented by m in JSON format.// It is called by generated MarshalJSON methods on protocol buffer messages with the message_set_wire_format option.-func MarshalMessageSetJSON(m map[int32]Extension) ([]byte, error) {+func MarshalMessageSetJSON(exts interface{}) ([]byte, error) {+ var m map[int32]Extension+ switch exts := exts.(type) {+ case *XXX_InternalExtensions:+ m, _ = exts.extensionsRead()+ case map[int32]Extension:+ m = exts+ default:+ return nil, errors.New("proto: not an extension map")+ }var b bytes.Bufferb.WriteByte('{')@@ -252,7 +283,7 @@ func MarshalMessageSetJSON(m map[int32]Extension) ([]byte, error) {// UnmarshalMessageSetJSON decodes the extension map encoded in buf in JSON format.// It is called by generated UnmarshalJSON methods on protocol buffer messages with the message_set_wire_format option.-func UnmarshalMessageSetJSON(buf []byte, m map[int32]Extension) error {+func UnmarshalMessageSetJSON(buf []byte, exts interface{}) error {// Common-case fast path.if len(buf) == 0 || bytes.Equal(buf, []byte("{}")) {return nildiff --git a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go b/vendor/github.com/golang/protobuf/proto/pointer_reflect.goindex 749919d25..fb512e2e1 100644--- a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go+++ b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go@@ -29,7 +29,7 @@// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.-// +build appengine+// +build appengine js// This file contains an implementation of proto field accesses using package reflect.// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can@@ -139,6 +139,11 @@ func structPointer_StringSlice(p structPointer, f field) *[]string {return structPointer_ifield(p, f).(*[]string)}+// Extensions returns the address of an extension map field in the struct.+func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions {+ return structPointer_ifield(p, f).(*XXX_InternalExtensions)+}+// ExtMap returns the address of an extension map field in the struct.func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension {return structPointer_ifield(p, f).(*map[int32]Extension)diff --git a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.goindex e9be0fe92..6b5567d47 100644--- a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go+++ b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go@@ -29,7 +29,7 @@// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.-// +build !appengine+// +build !appengine,!js// This file contains the implementation of the proto field accesses using package unsafe.@@ -126,6 +126,10 @@ func structPointer_StringSlice(p structPointer, f field) *[]string {}// ExtMap returns the address of an extension map field in the struct.+func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions {+ return (*XXX_InternalExtensions)(unsafe.Pointer(uintptr(p) + uintptr(f)))+}+func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension {return (*map[int32]Extension)(unsafe.Pointer(uintptr(p) + uintptr(f)))}diff --git a/vendor/github.com/golang/protobuf/proto/properties.go b/vendor/github.com/golang/protobuf/proto/properties.goindex 4fe2ec22e..ec2289c00 100644--- a/vendor/github.com/golang/protobuf/proto/properties.go+++ b/vendor/github.com/golang/protobuf/proto/properties.go@@ -473,17 +473,13 @@ func (p *Properties) setEncAndDec(typ reflect.Type, f *reflect.StructField, lockp.dec = (*Buffer).dec_slice_int64p.packedDec = (*Buffer).dec_slice_packed_int64case reflect.Uint8:- p.enc = (*Buffer).enc_slice_bytep.dec = (*Buffer).dec_slice_byte- p.size = size_slice_byte- // This is a []byte, which is either a bytes field,- // or the value of a map field. In the latter case,- // we always encode an empty []byte, so we should not- // use the proto3 enc/size funcs.- // f == nil iff this is the key/value of a map field.- if p.proto3 && f != nil {+ if p.proto3 {p.enc = (*Buffer).enc_proto3_slice_bytep.size = size_proto3_slice_byte+ } else {+ p.enc = (*Buffer).enc_slice_byte+ p.size = size_slice_byte}case reflect.Float32, reflect.Float64:switch t2.Bits() {@@ -682,7 +678,8 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {propertiesMap[t] = prop// build properties- prop.extendable = reflect.PtrTo(t).Implements(extendableProtoType)+ prop.extendable = reflect.PtrTo(t).Implements(extendableProtoType) ||+ reflect.PtrTo(t).Implements(extendableProtoV1Type)prop.unrecField = invalidFieldprop.Prop = make([]*Properties, t.NumField())prop.order = make([]int, t.NumField())@@ -693,15 +690,22 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {name := f.Namep.init(f.Type, name, f.Tag.Get("protobuf"), &f, false)- if f.Name == "XXX_extensions" { // special case+ if f.Name == "XXX_InternalExtensions" { // special case+ p.enc = (*Buffer).enc_exts+ p.dec = nil // not needed+ p.size = size_exts+ } else if f.Name == "XXX_extensions" { // special casep.enc = (*Buffer).enc_mapp.dec = nil // not neededp.size = size_map- }- if f.Name == "XXX_unrecognized" { // special case+ } else if f.Name == "XXX_unrecognized" { // special caseprop.unrecField = toField(&f)}- oneof := f.Tag.Get("protobuf_oneof") != "" // special case+ oneof := f.Tag.Get("protobuf_oneof") // special case+ if oneof != "" {+ // Oneof fields don't use the traditional protobuf tag.+ p.OrigName = oneof+ }prop.Prop[i] = pprop.order[i] = iif debug {@@ -711,7 +715,7 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {}print("\n")}- if p.enc == nil && !strings.HasPrefix(f.Name, "XXX_") && !oneof {+ if p.enc == nil && !strings.HasPrefix(f.Name, "XXX_") && oneof == "" {fmt.Fprintln(os.Stderr, "proto: no encoder for", f.Name, f.Type.String(), "[GetProperties]")}}@@ -840,7 +844,29 @@ func RegisterType(x Message, name string) {}// MessageName returns the fully-qualified proto name for the given message type.-func MessageName(x Message) string { return revProtoTypes[reflect.TypeOf(x)] }+func MessageName(x Message) string {+ type xname interface {+ XXX_MessageName() string+ }+ if m, ok := x.(xname); ok {+ return m.XXX_MessageName()+ }+ return revProtoTypes[reflect.TypeOf(x)]+}// MessageType returns the message type (pointer to struct) for a named message.func MessageType(name string) reflect.Type { return protoTypes[name] }++// A registry of all linked proto files.+var (+ protoFiles = make(map[string][]byte) // file name => fileDescriptor+)++// RegisterFile is called from generated code and maps from the+// full file name of a .proto file to its compressed FileDescriptorProto.+func RegisterFile(filename string, fileDescriptor []byte) {+ protoFiles[filename] = fileDescriptor+}++// FileDescriptor returns the compressed FileDescriptorProto for a .proto file.+func FileDescriptor(filename string) []byte { return protoFiles[filename] }diff --git a/vendor/github.com/golang/protobuf/proto/text.go b/vendor/github.com/golang/protobuf/proto/text.goindex 1cbaf86d3..965876bf0 100644--- a/vendor/github.com/golang/protobuf/proto/text.go+++ b/vendor/github.com/golang/protobuf/proto/text.go@@ -154,7 +154,7 @@ func (w *textWriter) indent() { w.ind++ }func (w *textWriter) unindent() {if w.ind == 0 {- log.Printf("proto: textWriter unindented too far")+ log.Print("proto: textWriter unindented too far")return}w.ind--@@ -175,7 +175,93 @@ type raw interface {Bytes() []byte}-func writeStruct(w *textWriter, sv reflect.Value) error {+func requiresQuotes(u string) bool {+ // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted.+ for _, ch := range u {+ switch {+ case ch == '.' || ch == '/' || ch == '_':+ continue+ case '0' <= ch && ch <= '9':+ continue+ case 'A' <= ch && ch <= 'Z':+ continue+ case 'a' <= ch && ch <= 'z':+ continue+ default:+ return true+ }+ }+ return false+}++// isAny reports whether sv is a google.protobuf.Any message+func isAny(sv reflect.Value) bool {+ type wkt interface {+ XXX_WellKnownType() string+ }+ t, ok := sv.Addr().Interface().(wkt)+ return ok && t.XXX_WellKnownType() == "Any"+}++// writeProto3Any writes an expanded google.protobuf.Any message.+//+// It returns (false, nil) if sv value can't be unmarshaled (e.g. because+// required messages are not linked in).+//+// It returns (true, error) when sv was written in expanded format or an error+// was encountered.+func (tm *TextMarshaler) writeProto3Any(w *textWriter, sv reflect.Value) (bool, error) {+ turl := sv.FieldByName("TypeUrl")+ val := sv.FieldByName("Value")+ if !turl.IsValid() || !val.IsValid() {+ return true, errors.New("proto: invalid google.protobuf.Any message")+ }++ b, ok := val.Interface().([]byte)+ if !ok {+ return true, errors.New("proto: invalid google.protobuf.Any message")+ }++ parts := strings.Split(turl.String(), "/")+ mt := MessageType(parts[len(parts)-1])+ if mt == nil {+ return false, nil+ }+ m := reflect.New(mt.Elem())+ if err := Unmarshal(b, m.Interface().(Message)); err != nil {+ return false, nil+ }+ w.Write([]byte("["))+ u := turl.String()+ if requiresQuotes(u) {+ writeString(w, u)+ } else {+ w.Write([]byte(u))+ }+ if w.compact {+ w.Write([]byte("]:<"))+ } else {+ w.Write([]byte("]: <\n"))+ w.ind+++ }+ if err := tm.writeStruct(w, m.Elem()); err != nil {+ return true, err+ }+ if w.compact {+ w.Write([]byte("> "))+ } else {+ w.ind--+ w.Write([]byte(">\n"))+ }+ return true, nil+}++func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {+ if tm.ExpandAny && isAny(sv) {+ if canExpand, err := tm.writeProto3Any(w, sv); canExpand {+ return err+ }+ }st := sv.Type()sprops := GetProperties(st)for i := 0; i < sv.NumField(); i++ {@@ -227,7 +313,7 @@ func writeStruct(w *textWriter, sv reflect.Value) error {}continue}- if err := writeAny(w, v, props); err != nil {+ if err := tm.writeAny(w, v, props); err != nil {return err}if err := w.WriteByte('\n'); err != nil {@@ -269,7 +355,7 @@ func writeStruct(w *textWriter, sv reflect.Value) error {return err}}- if err := writeAny(w, key, props.mkeyprop); err != nil {+ if err := tm.writeAny(w, key, props.mkeyprop); err != nil {return err}if err := w.WriteByte('\n'); err != nil {@@ -286,7 +372,7 @@ func writeStruct(w *textWriter, sv reflect.Value) error {return err}}- if err := writeAny(w, val, props.mvalprop); err != nil {+ if err := tm.writeAny(w, val, props.mvalprop); err != nil {return err}if err := w.WriteByte('\n'); err != nil {@@ -358,7 +444,7 @@ func writeStruct(w *textWriter, sv reflect.Value) error {}// Enums have a String method, so writeAny will work fine.- if err := writeAny(w, fv, props); err != nil {+ if err := tm.writeAny(w, fv, props); err != nil {return err}@@ -369,8 +455,8 @@ func writeStruct(w *textWriter, sv reflect.Value) error {// Extensions (the XXX_extensions field).pv := sv.Addr()- if pv.Type().Implements(extendableProtoType) {- if err := writeExtensions(w, pv); err != nil {+ if _, ok := extendable(pv.Interface()); ok {+ if err := tm.writeExtensions(w, pv); err != nil {return err}}@@ -400,7 +486,7 @@ func writeRaw(w *textWriter, b []byte) error {}// writeAny writes an arbitrary field.-func writeAny(w *textWriter, v reflect.Value, props *Properties) error {+func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error {v = reflect.Indirect(v)// Floats have special cases.@@ -427,7 +513,7 @@ func writeAny(w *textWriter, v reflect.Value, props *Properties) error {switch v.Kind() {case reflect.Slice:// Should only be a []byte; repeated fields are handled in writeStruct.- if err := writeString(w, string(v.Interface().([]byte))); err != nil {+ if err := writeString(w, string(v.Bytes())); err != nil {return err}case reflect.String:@@ -449,15 +535,15 @@ func writeAny(w *textWriter, v reflect.Value, props *Properties) error {}}w.indent()- if tm, ok := v.Interface().(encoding.TextMarshaler); ok {- text, err := tm.MarshalText()+ if etm, ok := v.Interface().(encoding.TextMarshaler); ok {+ text, err := etm.MarshalText()if err != nil {return err}if _, err = w.Write(text); err != nil {return err}- } else if err := writeStruct(w, v); err != nil {+ } else if err := tm.writeStruct(w, v); err != nil {return err}w.unindent()@@ -601,19 +687,24 @@ func (s int32Slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] }// writeExtensions writes all the extensions in pv.// pv is assumed to be a pointer to a protocol message struct that is extendable.-func writeExtensions(w *textWriter, pv reflect.Value) error {+func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error {emap := extensionMaps[pv.Type().Elem()]- ep := pv.Interface().(extendableProto)+ ep, _ := extendable(pv.Interface())// Order the extensions by ID.// This isn't strictly necessary, but it will give us// canonical output, which will also make testing easier.- m := ep.ExtensionMap()+ m, mu := ep.extensionsRead()+ if m == nil {+ return nil+ }+ mu.Lock()ids := make([]int32, 0, len(m))for id := range m {ids = append(ids, id)}sort.Sort(int32Slice(ids))+ mu.Unlock()for _, extNum := range ids {ext := m[extNum]@@ -636,13 +727,13 @@ func writeExtensions(w *textWriter, pv reflect.Value) error {// Repeated extensions will appear as a slice.if !desc.repeated() {- if err := writeExtension(w, desc.Name, pb); err != nil {+ if err := tm.writeExtension(w, desc.Name, pb); err != nil {return err}} else {v := reflect.ValueOf(pb)for i := 0; i < v.Len(); i++ {- if err := writeExtension(w, desc.Name, v.Index(i).Interface()); err != nil {+ if err := tm.writeExtension(w, desc.Name, v.Index(i).Interface()); err != nil {return err}}@@ -651,7 +742,7 @@ func writeExtensions(w *textWriter, pv reflect.Value) error {return nil}-func writeExtension(w *textWriter, name string, pb interface{}) error {+func (tm *TextMarshaler) writeExtension(w *textWriter, name string, pb interface{}) error {if _, err := fmt.Fprintf(w, "[%s]:", name); err != nil {return err}@@ -660,7 +751,7 @@ func writeExtension(w *textWriter, name string, pb interface{}) error {return err}}- if err := writeAny(w, reflect.ValueOf(pb), nil); err != nil {+ if err := tm.writeAny(w, reflect.ValueOf(pb), nil); err != nil {return err}if err := w.WriteByte('\n'); err != nil {@@ -687,12 +778,13 @@ func (w *textWriter) writeIndent() {// TextMarshaler is a configurable text format marshaler.type TextMarshaler struct {- Compact bool // use compact text format (one line).+ Compact bool // use compact text format (one line).+ ExpandAny bool // expand google.protobuf.Any messages of known types}// Marshal writes a given protocol buffer in text format.// The only errors returned are from w.-func (m *TextMarshaler) Marshal(w io.Writer, pb Message) error {+func (tm *TextMarshaler) Marshal(w io.Writer, pb Message) error {val := reflect.ValueOf(pb)if pb == nil || val.IsNil() {w.Write([]byte("<nil>"))@@ -707,11 +799,11 @@ func (m *TextMarshaler) Marshal(w io.Writer, pb Message) error {aw := &textWriter{w: ww,complete: true,- compact: m.Compact,+ compact: tm.Compact,}- if tm, ok := pb.(encoding.TextMarshaler); ok {- text, err := tm.MarshalText()+ if etm, ok := pb.(encoding.TextMarshaler); ok {+ text, err := etm.MarshalText()if err != nil {return err}@@ -725,7 +817,7 @@ func (m *TextMarshaler) Marshal(w io.Writer, pb Message) error {}// Dereference the received pointer so we don't have outer < and >.v := reflect.Indirect(val)- if err := writeStruct(aw, v); err != nil {+ if err := tm.writeStruct(aw, v); err != nil {return err}if bw != nil {@@ -735,9 +827,9 @@ func (m *TextMarshaler) Marshal(w io.Writer, pb Message) error {}// Text is the same as Marshal, but returns the string directly.-func (m *TextMarshaler) Text(pb Message) string {+func (tm *TextMarshaler) Text(pb Message) string {var buf bytes.Buffer- m.Marshal(&buf, pb)+ tm.Marshal(&buf, pb)return buf.String()}diff --git a/vendor/github.com/golang/protobuf/proto/text_parser.go b/vendor/github.com/golang/protobuf/proto/text_parser.goindex 451323262..61f83c1e1 100644--- a/vendor/github.com/golang/protobuf/proto/text_parser.go+++ b/vendor/github.com/golang/protobuf/proto/text_parser.go@@ -44,6 +44,9 @@ import ("unicode/utf8")+// Error string emitted when deserializing Any and fields are already set+const anyRepeatedlyUnpacked = "Any message unpacked multiple times, or %q already set"+type ParseError struct {Message stringLine int // 1-based line number@@ -163,7 +166,7 @@ func (p *textParser) advance() {p.cur.offset, p.cur.line = p.offset, p.linep.cur.unquoted = ""switch p.s[0] {- case '<', '>', '{', '}', ':', '[', ']', ';', ',':+ case '<', '>', '{', '}', ':', '[', ']', ';', ',', '/':// Single symbolp.cur.value, p.s = p.s[0:1], p.s[1:len(p.s)]case '"', '\'':@@ -451,7 +454,10 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error {fieldSet := make(map[string]bool)// A struct is a sequence of "name: value", terminated by one of// '>' or '}', or the end of the input. A name may also be- // "[extension]".+ // "[extension]" or "[type/url]".+ //+ // The whole struct can also be an expanded Any message, like:+ // [type/url] < ... struct contents ... >for {tok := p.next()if tok.err != nil {@@ -461,33 +467,74 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error {break}if tok.value == "[" {- // Looks like an extension.+ // Looks like an extension or an Any.//// TODO: Check whether we need to handle// namespace rooted names (e.g. ".something.Foo").- tok = p.next()- if tok.err != nil {- return tok.err+ extName, err := p.consumeExtName()+ if err != nil {+ return err+ }++ if s := strings.LastIndex(extName, "/"); s >= 0 {+ // If it contains a slash, it's an Any type URL.+ messageName := extName[s+1:]+ mt := MessageType(messageName)+ if mt == nil {+ return p.errorf("unrecognized message %q in google.protobuf.Any", messageName)+ }+ tok = p.next()+ if tok.err != nil {+ return tok.err+ }+ // consume an optional colon+ if tok.value == ":" {+ tok = p.next()+ if tok.err != nil {+ return tok.err+ }+ }+ var terminator string+ switch tok.value {+ case "<":+ terminator = ">"+ case "{":+ terminator = "}"+ default:+ return p.errorf("expected '{' or '<', found %q", tok.value)+ }+ v := reflect.New(mt.Elem())+ if pe := p.readStruct(v.Elem(), terminator); pe != nil {+ return pe+ }+ b, err := Marshal(v.Interface().(Message))+ if err != nil {+ return p.errorf("failed to marshal message of type %q: %v", messageName, err)+ }+ if fieldSet["type_url"] {+ return p.errorf(anyRepeatedlyUnpacked, "type_url")+ }+ if fieldSet["value"] {+ return p.errorf(anyRepeatedlyUnpacked, "value")+ }+ sv.FieldByName("TypeUrl").SetString(extName)+ sv.FieldByName("Value").SetBytes(b)+ fieldSet["type_url"] = true+ fieldSet["value"] = true+ continue}+var desc *ExtensionDesc// This could be faster, but it's functional.// TODO: Do something smarter than a linear scan.for _, d := range RegisteredExtensions(reflect.New(st).Interface().(Message)) {- if d.Name == tok.value {+ if d.Name == extName {desc = dbreak}}if desc == nil {- return p.errorf("unrecognized extension %q", tok.value)- }- // Check the extension terminator.- tok = p.next()- if tok.err != nil {- return tok.err- }- if tok.value != "]" {- return p.errorf("unrecognized extension terminator %q", tok.value)+ return p.errorf("unrecognized extension %q", extName)}props := &Properties{}@@ -514,7 +561,7 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error {}reqFieldErr = err}- ep := sv.Addr().Interface().(extendableProto)+ ep := sv.Addr().Interface().(Message)if !rep {SetExtension(ep, desc, ext.Interface())} else {@@ -545,7 +592,11 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error {props = oop.Propnv := reflect.New(oop.Type.Elem())dst = nv.Elem().Field(0)- sv.Field(oop.Field).Set(nv)+ field := sv.Field(oop.Field)+ if !field.IsNil() {+ return p.errorf("field '%s' would overwrite already parsed oneof '%s'", name, sv.Type().Field(oop.Field).Name)+ }+ field.Set(nv)}if !dst.IsValid() {return p.errorf("unknown field name %q in %v", name, st)@@ -566,8 +617,9 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error {// The map entry should be this sequence of tokens:// < key : KEY value : VALUE >- // Technically the "key" and "value" could come in any order,- // but in practice they won't.+ // However, implementations may omit key or value, and technically+ // we should support them in any order. See b/28924776 for a time+ // this went wrong.tok := p.next()var terminator string@@ -579,32 +631,39 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error {default:return p.errorf("expected '{' or '<', found %q", tok.value)}- if err := p.consumeToken("key"); err != nil {- return err- }- if err := p.consumeToken(":"); err != nil {- return err- }- if err := p.readAny(key, props.mkeyprop); err != nil {- return err- }- if err := p.consumeOptionalSeparator(); err != nil {- return err- }- if err := p.consumeToken("value"); err != nil {- return err- }- if err := p.checkForColon(props.mvalprop, dst.Type().Elem()); err != nil {- return err- }- if err := p.readAny(val, props.mvalprop); err != nil {- return err- }- if err := p.consumeOptionalSeparator(); err != nil {- return err- }- if err := p.consumeToken(terminator); err != nil {- return err+ for {+ tok := p.next()+ if tok.err != nil {+ return tok.err+ }+ if tok.value == terminator {+ break+ }+ switch tok.value {+ case "key":+ if err := p.consumeToken(":"); err != nil {+ return err+ }+ if err := p.readAny(key, props.mkeyprop); err != nil {+ return err+ }+ if err := p.consumeOptionalSeparator(); err != nil {+ return err+ }+ case "value":+ if err := p.checkForColon(props.mvalprop, dst.Type().Elem()); err != nil {+ return err+ }+ if err := p.readAny(val, props.mvalprop); err != nil {+ return err+ }+ if err := p.consumeOptionalSeparator(); err != nil {+ return err+ }+ default:+ p.back()+ return p.errorf(`expected "key", "value", or %q, found %q`, terminator, tok.value)+ }}dst.SetMapIndex(key, val)@@ -627,7 +686,8 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error {return err}reqFieldErr = err- } else if props.Required {+ }+ if props.Required {reqCount--}@@ -643,6 +703,35 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error {return reqFieldErr}+// consumeExtName consumes extension name or expanded Any type URL and the+// following ']'. It returns the name or URL consumed.+func (p *textParser) consumeExtName() (string, error) {+ tok := p.next()+ if tok.err != nil {+ return "", tok.err+ }++ // If extension name or type url is quoted, it's a single token.+ if len(tok.value) > 2 && isQuote(tok.value[0]) && tok.value[len(tok.value)-1] == tok.value[0] {+ name, err := unquoteC(tok.value[1:len(tok.value)-1], rune(tok.value[0]))+ if err != nil {+ return "", err+ }+ return name, p.consumeToken("]")+ }++ // Consume everything up to "]"+ var parts []string+ for tok.value != "]" {+ parts = append(parts, tok.value)+ tok = p.next()+ if tok.err != nil {+ return "", p.errorf("unrecognized type_url or extension name: %s", tok.err)+ }+ }+ return strings.Join(parts, ""), nil+}+// consumeOptionalSeparator consumes an optional semicolon or comma.// It is used in readStruct to provide backward compatibility.func (p *textParser) consumeOptionalSeparator() error {@@ -707,12 +796,12 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error {fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem()))return p.readAny(fv.Index(fv.Len()-1), props)case reflect.Bool:- // Either "true", "false", 1 or 0.+ // true/1/t/True or false/f/0/False.switch tok.value {- case "true", "1":+ case "true", "1", "t", "True":fv.SetBool(true)return nil- case "false", "0":+ case "false", "0", "f", "False":fv.SetBool(false)return nil}diff --git a/vendor/github.com/googleapis/gax-go/.gitignore b/vendor/github.com/googleapis/gax-go/.gitignorenew file mode 100644index 000000000..289bf1eb7--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/.gitignore@@ -0,0 +1 @@+*.coverdiff --git a/vendor/github.com/googleapis/gax-go/.travis.yml b/vendor/github.com/googleapis/gax-go/.travis.ymlnew file mode 100644index 000000000..6db28b6c6--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/.travis.yml@@ -0,0 +1,15 @@+sudo: false+language: go+go:+ - 1.6+ - 1.7+before_install:+ - go get golang.org/x/tools/cmd/cover+ - go get golang.org/x/tools/cmd/goimports+script:+ - gofmt -l .+ - goimports -l .+ - go tool vet .+ - go test -coverprofile=coverage.txt -covermode=atomic+after_success:+ - bash <(curl -s https://codecov.io/bash)diff --git a/vendor/github.com/googleapis/gax-go/CONTRIBUTING.md b/vendor/github.com/googleapis/gax-go/CONTRIBUTING.mdnew file mode 100644index 000000000..2827b7d3f--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/CONTRIBUTING.md@@ -0,0 +1,27 @@+Want to contribute? Great! First, read this page (including the small print at the end).++### Before you contribute+Before we can use your code, you must sign the+[Google Individual Contributor License Agreement]+(https://cla.developers.google.com/about/google-individual)+(CLA), which you can do online. The CLA is necessary mainly because you own the+copyright to your changes, even after your contribution becomes part of our+codebase, so we need your permission to use and distribute your code. We also+need to be sure of various other things—for instance that you'll tell us if you+know that your code infringes on other people's patents. You don't have to sign+the CLA until after you've submitted your code for review and a member has+approved it, but you must do it before we can put your code into our codebase.+Before you start working on a larger contribution, you should get in touch with+us first through the issue tracker with your idea so that we can help out and+possibly guide you. Coordinating up front makes it much easier to avoid+frustration later on.++### Code reviews+All submissions, including submissions by project members, require review. We+use Github pull requests for this purpose.++### The small print+Contributions made by corporations are covered by a different agreement than+the one above, the+[Software Grant and Corporate Contributor License Agreement]+(https://cla.developers.google.com/about/google-corporate).diff --git a/vendor/github.com/googleapis/gax-go/LICENSE b/vendor/github.com/googleapis/gax-go/LICENSEnew file mode 100644index 000000000..6d16b6578--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/LICENSE@@ -0,0 +1,27 @@+Copyright 2016, Google Inc.+All rights reserved.+Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are+met:++ * Redistributions of source code must retain the above copyright+notice, this list of conditions and the following disclaimer.+ * Redistributions in binary form must reproduce the above+copyright notice, this list of conditions and the following disclaimer+in the documentation and/or other materials provided with the+distribution.+ * Neither the name of Google Inc. nor the names of its+contributors may be used to endorse or promote products derived from+this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.diff --git a/vendor/github.com/googleapis/gax-go/README.md b/vendor/github.com/googleapis/gax-go/README.mdnew file mode 100644index 000000000..3cedd5be9--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/README.md@@ -0,0 +1,24 @@+Google API Extensions for Go+============================++[](https://travis-ci.org/googleapis/gax-go)+[](https://codecov.io/github/googleapis/gax-go)++Google API Extensions for Go (gax-go) is a set of modules which aids the+development of APIs for clients and servers based on `gRPC` and Google API+conventions.++Application code will rarely need to use this library directly,+but the code generated automatically from API definition files can use it+to simplify code generation and to provide more convenient and idiomatic API surface.++**This project is currently experimental and not supported.**++Go Versions+===========+This library requires Go 1.6 or above.++License+=======+BSD - please see [LICENSE](https://github.com/googleapis/gax-go/blob/master/LICENSE)+for more information.diff --git a/vendor/github.com/googleapis/gax-go/call_option.go b/vendor/github.com/googleapis/gax-go/call_option.gonew file mode 100644index 000000000..4ba1cdfe8--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/call_option.go@@ -0,0 +1,136 @@+// Copyright 2016, Google Inc.+// All rights reserved.+//+// Redistribution and use in source and binary forms, with or without+// modification, are permitted provided that the following conditions are+// met:+//+// * Redistributions of source code must retain the above copyright+// notice, this list of conditions and the following disclaimer.+// * Redistributions in binary form must reproduce the above+// copyright notice, this list of conditions and the following disclaimer+// in the documentation and/or other materials provided with the+// distribution.+// * Neither the name of Google Inc. nor the names of its+// contributors may be used to endorse or promote products derived from+// this software without specific prior written permission.+//+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++package gax++import (+ "math/rand"+ "time"++ "google.golang.org/grpc"+ "google.golang.org/grpc/codes"+)++// CallOption is an option used by Invoke to control behaviors of RPC calls.+// CallOption works by modifying relevant fields of CallSettings.+type CallOption interface {+ // Resolve applies the option by modifying cs.+ Resolve(cs *CallSettings)+}++// Retryer is used by Invoke to determine retry behavior.+type Retryer interface {+ // Retry reports whether a request should be retriedand how long to pause before retrying+ // if the previous attempt returned with err. Invoke never calls Retry with nil error.+ Retry(err error) (pause time.Duration, shouldRetry bool)+}++type retryerOption func() Retryer++func (o retryerOption) Resolve(s *CallSettings) {+ s.Retry = o+}++// WithRetry sets CallSettings.Retry to fn.+func WithRetry(fn func() Retryer) CallOption {+ return retryerOption(fn)+}++// OnCodes returns a Retryer that retries if and only if+// the previous attempt returns a GRPC error whose error code is stored in cc.+// Pause times between retries are specified by bo.+//+// bo is only used for its parameters; each Retryer has its own copy.+func OnCodes(cc []codes.Code, bo Backoff) Retryer {+ return &boRetryer{+ backoff: bo,+ codes: append([]codes.Code(nil), cc...),+ }+}++type boRetryer struct {+ backoff Backoff+ codes []codes.Code+}++func (r *boRetryer) Retry(err error) (time.Duration, bool) {+ c := grpc.Code(err)+ for _, rc := range r.codes {+ if c == rc {+ return r.backoff.Pause(), true+ }+ }+ return 0, false+}++// Backoff implements exponential backoff.+// The wait time between retries is a random value between 0 and the "retry envelope".+// The envelope starts at Initial and increases by the factor of Multiplier every retry,+// but is capped at Max.+type Backoff struct {+ // Initial is the initial value of the retry envelope, defaults to 1 second.+ Initial time.Duration++ // Max is the maximum value of the retry envelope, defaults to 30 seconds.+ Max time.Duration++ // Multiplier is the factor by which the retry envelope increases.+ // It should be greater than 1 and defaults to 2.+ Multiplier float64++ // cur is the current retry envelope+ cur time.Duration+}++func (bo *Backoff) Pause() time.Duration {+ if bo.Initial == 0 {+ bo.Initial = time.Second+ }+ if bo.cur == 0 {+ bo.cur = bo.Initial+ }+ if bo.Max == 0 {+ bo.Max = 30 * time.Second+ }+ if bo.Multiplier < 1 {+ bo.Multiplier = 2+ }+ d := time.Duration(rand.Int63n(int64(bo.cur)))+ bo.cur = time.Duration(float64(bo.cur) * bo.Multiplier)+ if bo.cur > bo.Max {+ bo.cur = bo.Max+ }+ return d+}++type CallSettings struct {+ // Retry returns a Retryer to be used to control retry logic of a method call.+ // If Retry is nil or the returned Retryer is nil, the call will not be retried.+ Retry func() Retryer+}diff --git a/vendor/github.com/googleapis/gax-go/gax.go b/vendor/github.com/googleapis/gax-go/gax.gonew file mode 100644index 000000000..5ebedff0d--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/gax.go@@ -0,0 +1,40 @@+// Copyright 2016, Google Inc.+// All rights reserved.+//+// Redistribution and use in source and binary forms, with or without+// modification, are permitted provided that the following conditions are+// met:+//+// * Redistributions of source code must retain the above copyright+// notice, this list of conditions and the following disclaimer.+// * Redistributions in binary form must reproduce the above+// copyright notice, this list of conditions and the following disclaimer+// in the documentation and/or other materials provided with the+// distribution.+// * Neither the name of Google Inc. nor the names of its+// contributors may be used to endorse or promote products derived from+// this software without specific prior written permission.+//+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++// Package gax contains a set of modules which aid the development of APIs+// for clients and servers based on gRPC and Google API conventions.+//+// Application code will rarely need to use this library directly.+// However, code generated automatically from API definition files can use it+// to simplify code generation and to provide more convenient and idiomatic API surfaces.+//+// This project is currently experimental and not supported.+package gax++const Version = "0.1.0"diff --git a/vendor/github.com/googleapis/gax-go/invoke.go b/vendor/github.com/googleapis/gax-go/invoke.gonew file mode 100644index 000000000..d2134e1df--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/invoke.go@@ -0,0 +1,90 @@+// Copyright 2016, Google Inc.+// All rights reserved.+//+// Redistribution and use in source and binary forms, with or without+// modification, are permitted provided that the following conditions are+// met:+//+// * Redistributions of source code must retain the above copyright+// notice, this list of conditions and the following disclaimer.+// * Redistributions in binary form must reproduce the above+// copyright notice, this list of conditions and the following disclaimer+// in the documentation and/or other materials provided with the+// distribution.+// * Neither the name of Google Inc. nor the names of its+// contributors may be used to endorse or promote products derived from+// this software without specific prior written permission.+//+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++package gax++import (+ "time"++ "golang.org/x/net/context"+)++// A user defined call stub.+type APICall func(context.Context) error++// Invoke calls the given APICall,+// performing retries as specified by opts, if any.+func Invoke(ctx context.Context, call APICall, opts ...CallOption) error {+ var settings CallSettings+ for _, opt := range opts {+ opt.Resolve(&settings)+ }+ return invoke(ctx, call, settings, Sleep)+}++// Sleep is similar to time.Sleep, but it can be interrupted by ctx.Done() closing.+// If interrupted, Sleep returns ctx.Err().+func Sleep(ctx context.Context, d time.Duration) error {+ t := time.NewTimer(d)+ select {+ case <-ctx.Done():+ t.Stop()+ return ctx.Err()+ case <-t.C:+ return nil+ }+}++type sleeper func(ctx context.Context, d time.Duration) error++// invoke implements Invoke, taking an additional sleeper argument for testing.+func invoke(ctx context.Context, call APICall, settings CallSettings, sp sleeper) error {+ var retryer Retryer+ for {+ err := call(ctx)+ if err == nil {+ return nil+ }+ if settings.Retry == nil {+ return err+ }+ if retryer == nil {+ if r := settings.Retry(); r != nil {+ retryer = r+ } else {+ return err+ }+ }+ if d, ok := retryer.Retry(err); !ok {+ return err+ } else if err = sp(ctx, d); err != nil {+ return err+ }+ }+}diff --git a/vendor/github.com/googleapis/gax-go/path_template.go b/vendor/github.com/googleapis/gax-go/path_template.gonew file mode 100644index 000000000..41bda94cb--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/path_template.go@@ -0,0 +1,176 @@+// Copyright 2016, Google Inc.+// All rights reserved.+//+// Redistribution and use in source and binary forms, with or without+// modification, are permitted provided that the following conditions are+// met:+//+// * Redistributions of source code must retain the above copyright+// notice, this list of conditions and the following disclaimer.+// * Redistributions in binary form must reproduce the above+// copyright notice, this list of conditions and the following disclaimer+// in the documentation and/or other materials provided with the+// distribution.+// * Neither the name of Google Inc. nor the names of its+// contributors may be used to endorse or promote products derived from+// this software without specific prior written permission.+//+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++package gax++import (+ "errors"+ "fmt"+ "strings"+)++type matcher interface {+ match([]string) (int, error)+ String() string+}++type segment struct {+ matcher+ name string+}++type labelMatcher string++func (ls labelMatcher) match(segments []string) (int, error) {+ if len(segments) == 0 {+ return 0, fmt.Errorf("expected %s but no more segments found", ls)+ }+ if segments[0] != string(ls) {+ return 0, fmt.Errorf("expected %s but got %s", ls, segments[0])+ }+ return 1, nil+}++func (ls labelMatcher) String() string {+ return string(ls)+}++type wildcardMatcher int++func (wm wildcardMatcher) match(segments []string) (int, error) {+ if len(segments) == 0 {+ return 0, errors.New("no more segments found")+ }+ return 1, nil+}++func (wm wildcardMatcher) String() string {+ return "*"+}++type pathWildcardMatcher int++func (pwm pathWildcardMatcher) match(segments []string) (int, error) {+ length := len(segments) - int(pwm)+ if length <= 0 {+ return 0, errors.New("not sufficient segments are supplied for path wildcard")+ }+ return length, nil+}++func (pwm pathWildcardMatcher) String() string {+ return "**"+}++type ParseError struct {+ Pos int+ Template string+ Message string+}++func (pe ParseError) Error() string {+ return fmt.Sprintf("at %d of template '%s', %s", pe.Pos, pe.Template, pe.Message)+}++// PathTemplate manages the template to build and match with paths used+// by API services. It holds a template and variable names in it, and+// it can extract matched patterns from a path string or build a path+// string from a binding.+//+// See http.proto in github.com/googleapis/googleapis/ for the details of+// the template syntax.+type PathTemplate struct {+ segments []segment+}++// NewPathTemplate parses a path template, and returns a PathTemplate+// instance if successful.+func NewPathTemplate(template string) (*PathTemplate, error) {+ return parsePathTemplate(template)+}++// MustCompilePathTemplate is like NewPathTemplate but panics if the+// expression cannot be parsed. It simplifies safe initialization of+// global variables holding compiled regular expressions.+func MustCompilePathTemplate(template string) *PathTemplate {+ pt, err := NewPathTemplate(template)+ if err != nil {+ panic(err)+ }+ return pt+}++// Match attempts to match the given path with the template, and returns+// the mapping of the variable name to the matched pattern string.+func (pt *PathTemplate) Match(path string) (map[string]string, error) {+ paths := strings.Split(path, "/")+ values := map[string]string{}+ for _, segment := range pt.segments {+ length, err := segment.match(paths)+ if err != nil {+ return nil, err+ }+ if segment.name != "" {+ value := strings.Join(paths[:length], "/")+ if oldValue, ok := values[segment.name]; ok {+ values[segment.name] = oldValue + "/" + value+ } else {+ values[segment.name] = value+ }+ }+ paths = paths[length:]+ }+ if len(paths) != 0 {+ return nil, fmt.Errorf("Trailing path %s remains after the matching", strings.Join(paths, "/"))+ }+ return values, nil+}++// Render creates a path string from its template and the binding from+// the variable name to the value.+func (pt *PathTemplate) Render(binding map[string]string) (string, error) {+ result := make([]string, 0, len(pt.segments))+ var lastVariableName string+ for _, segment := range pt.segments {+ name := segment.name+ if lastVariableName != "" && name == lastVariableName {+ continue+ }+ lastVariableName = name+ if name == "" {+ result = append(result, segment.String())+ } else if value, ok := binding[name]; ok {+ result = append(result, value)+ } else {+ return "", fmt.Errorf("%s is not found", name)+ }+ }+ built := strings.Join(result, "/")+ return built, nil+}diff --git a/vendor/github.com/googleapis/gax-go/path_template_parser.go b/vendor/github.com/googleapis/gax-go/path_template_parser.gonew file mode 100644index 000000000..79c8e759c--- /dev/null+++ b/vendor/github.com/googleapis/gax-go/path_template_parser.go@@ -0,0 +1,227 @@+// Copyright 2016, Google Inc.+// All rights reserved.+//+// Redistribution and use in source and binary forms, with or without+// modification, are permitted provided that the following conditions are+// met:+//+// * Redistributions of source code must retain the above copyright+// notice, this list of conditions and the following disclaimer.+// * Redistributions in binary form must reproduce the above+// copyright notice, this list of conditions and the following disclaimer+// in the documentation and/or other materials provided with the+// distribution.+// * Neither the name of Google Inc. nor the names of its+// contributors may be used to endorse or promote products derived from+// this software without specific prior written permission.+//+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++package gax++import (+ "fmt"+ "io"+ "strings"+)++// This parser follows the syntax of path templates, from+// https://github.com/googleapis/googleapis/blob/master/google/api/http.proto.+// The differences are that there is no custom verb, we allow the initial slash+// to be absent, and that we are not strict as+// https://tools.ietf.org/html/rfc6570 about the characters in identifiers and+// literals.++type pathTemplateParser struct {+ r *strings.Reader+ runeCount int // the number of the current rune in the original string+ nextVar int // the number to use for the next unnamed variable+ seenName map[string]bool // names we've seen already+ seenPathWildcard bool // have we seen "**" already?+}++func parsePathTemplate(template string) (pt *PathTemplate, err error) {+ p := &pathTemplateParser{+ r: strings.NewReader(template),+ seenName: map[string]bool{},+ }++ // Handle panics with strings like errors.+ // See pathTemplateParser.error, below.+ defer func() {+ if x := recover(); x != nil {+ errmsg, ok := x.(errString)+ if !ok {+ panic(x)+ }+ pt = nil+ err = ParseError{p.runeCount, template, string(errmsg)}+ }+ }()++ segs := p.template()+ // If there is a path wildcard, set its length. We can't do this+ // until we know how many segments we've got all together.+ for i, seg := range segs {+ if _, ok := seg.matcher.(pathWildcardMatcher); ok {+ segs[i].matcher = pathWildcardMatcher(len(segs) - i - 1)+ break+ }+ }+ return &PathTemplate{segments: segs}, nil++}++// Used to indicate errors "thrown" by this parser. We don't use string because+// many parts of the standard library panic with strings.+type errString string++// Terminates parsing immediately with an error.+func (p *pathTemplateParser) error(msg string) {+ panic(errString(msg))+}++// Template = [ "/" ] Segments+func (p *pathTemplateParser) template() []segment {+ var segs []segment+ if p.consume('/') {+ // Initial '/' needs an initial empty matcher.+ segs = append(segs, segment{matcher: labelMatcher("")})+ }+ return append(segs, p.segments("")...)+}++// Segments = Segment { "/" Segment }+func (p *pathTemplateParser) segments(name string) []segment {+ var segs []segment+ for {+ subsegs := p.segment(name)+ segs = append(segs, subsegs...)+ if !p.consume('/') {+ break+ }+ }+ return segs+}++// Segment = "*" | "**" | LITERAL | Variable+func (p *pathTemplateParser) segment(name string) []segment {+ if p.consume('*') {+ if name == "" {+ name = fmt.Sprintf("$%d", p.nextVar)+ p.nextVar+++ }+ if p.consume('*') {+ if p.seenPathWildcard {+ p.error("multiple '**' disallowed")+ }+ p.seenPathWildcard = true+ // We'll change 0 to the right number at the end.+ return []segment{{name: name, matcher: pathWildcardMatcher(0)}}+ }+ return []segment{{name: name, matcher: wildcardMatcher(0)}}+ }+ if p.consume('{') {+ if name != "" {+ p.error("recursive named bindings are not allowed")+ }+ return p.variable()+ }+ return []segment{{name: name, matcher: labelMatcher(p.literal())}}+}++// Variable = "{" FieldPath [ "=" Segments ] "}"+// "{" is already consumed.+func (p *pathTemplateParser) variable() []segment {+ // Simplification: treat FieldPath as LITERAL, instead of IDENT { '.' IDENT }+ name := p.literal()+ if p.seenName[name] {+ p.error(name + " appears multiple times")+ }+ p.seenName[name] = true+ var segs []segment+ if p.consume('=') {+ segs = p.segments(name)+ } else {+ // "{var}" is equivalent to "{var=*}"+ segs = []segment{{name: name, matcher: wildcardMatcher(0)}}+ }+ if !p.consume('}') {+ p.error("expected '}'")+ }+ return segs+}++// A literal is any sequence of characters other than a few special ones.+// The list of stop characters is not quite the same as in the template RFC.+func (p *pathTemplateParser) literal() string {+ lit := p.consumeUntil("/*}{=")+ if lit == "" {+ p.error("empty literal")+ }+ return lit+}++// Read runes until EOF or one of the runes in stopRunes is encountered.+// If the latter, unread the stop rune. Return the accumulated runes as a string.+func (p *pathTemplateParser) consumeUntil(stopRunes string) string {+ var runes []rune+ for {+ r, ok := p.readRune()+ if !ok {+ break+ }+ if strings.IndexRune(stopRunes, r) >= 0 {+ p.unreadRune()+ break+ }+ runes = append(runes, r)+ }+ return string(runes)+}++// If the next rune is r, consume it and return true.+// Otherwise, leave the input unchanged and return false.+func (p *pathTemplateParser) consume(r rune) bool {+ rr, ok := p.readRune()+ if !ok {+ return false+ }+ if r == rr {+ return true+ }+ p.unreadRune()+ return false+}++// Read the next rune from the input. Return it.+// The second return value is false at EOF.+func (p *pathTemplateParser) readRune() (rune, bool) {+ r, _, err := p.r.ReadRune()+ if err == io.EOF {+ return r, false+ }+ if err != nil {+ p.error(err.Error())+ }+ p.runeCount+++ return r, true+}++// Put the last rune that was read back on the input.+func (p *pathTemplateParser) unreadRune() {+ if err := p.r.UnreadRune(); err != nil {+ p.error(err.Error())+ }+ p.runeCount--+}diff --git a/vendor/github.com/ncw/go-acd/nodes.go b/vendor/github.com/ncw/go-acd/nodes.goindex cc2f32124..55011f98e 100644--- a/vendor/github.com/ncw/go-acd/nodes.go+++ b/vendor/github.com/ncw/go-acd/nodes.go@@ -11,6 +11,7 @@ import ("errors""fmt""io"+ "io/ioutil""mime/multipart""net/http""net/url"@@ -612,9 +613,20 @@ func (f *Folder) WalkNodes(names ...string) (*Node, []*http.Response, error) {// Put stores the data read from in at path as name on the Amazon Cloud Drive.// Errors if the file already exists on the drive.func (s *NodesService) putOrOverwrite(in io.Reader, httpVerb, url, name, metadata string) (*File, *http.Response, error) {+ var bodyReader io.Reader+bodyReader, bodyWriter := io.Pipe()writer := multipart.NewWriter(bodyWriter)contentType := writer.FormDataContentType()+ contentLength := int64(-1)++ buf := make([]byte, 1)+ n, err := io.ReadFull(in, buf)+ isZeroLength := err == io.EOF+ if !isZeroLength && err != nil {+ return nil, nil, err+ }+ in = io.MultiReader(bytes.NewReader(buf[:n]), in)errChan := make(chan error, 1)go func() {@@ -641,62 +653,22 @@ func (s *NodesService) putOrOverwrite(in io.Reader, httpVerb, url, name, metadaterrChan <- writer.Close()}()- req, err := s.client.NewContentRequest(httpVerb, url, bodyReader)- if err != nil {- return nil, nil, err- }-- req.Header.Add("Content-Type", contentType)-- file := &File{&Node{service: s}}- resp, err := s.client.Do(req, file)- if err != nil {- return nil, resp, err- }-- err = <-errChan- if err != nil {- return nil, resp, err- }-- return file, resp, err-}--// Put stores the data read from in at path as name on the Amazon Cloud Drive.-// Errors if the file already exists on the drive.-func (s *NodesService) putOrOverwriteSized(in io.Reader, fileSize int64, httpVerb, url, name, metadata string) (*File, *http.Response, error) {- var err error- bodyBuf := bytes.NewBufferString("")- bodyWriter := multipart.NewWriter(bodyBuf)-- // use the bodyWriter to write the Part headers to the buffer- if metadata != "" {- err = bodyWriter.WriteField("metadata", string(metadata))+ if isZeroLength {+ buf, err := ioutil.ReadAll(bodyReader)if err != nil {return nil, nil, err}+ bodyReader = bytes.NewReader(buf)+ contentLength = int64(len(buf))}- _, err = bodyWriter.CreateFormFile("content", name)- if err != nil {- return nil, nil, err- }-- // need to know the boundary to properly close the part myself.- boundary := bodyWriter.Boundary()- closeBuf := bytes.NewBufferString(fmt.Sprintf("\r\n--%s--\r\n", boundary))- // use multi-reader to defer the reading of the file data- // until writing to the socket buffer.- requestReader := io.MultiReader(bodyBuf, in, closeBuf)-- req, err := s.client.NewContentRequest(httpVerb, url, requestReader)+ req, err := s.client.NewContentRequest(httpVerb, url, bodyReader)if err != nil {return nil, nil, err}- // Set headers for multipart, and Content Length- req.Header.Add("Content-Type", "multipart/form-data; boundary="+boundary)- req.ContentLength = fileSize + int64(bodyBuf.Len()) + int64(closeBuf.Len())+ req.ContentLength = contentLength+ req.Header.Add("Content-Type", contentType)file := &File{&Node{service: s}}resp, err := s.client.Do(req, file)@@ -709,8 +681,6 @@ func (s *NodesService) putOrOverwriteSized(in io.Reader, fileSize int64, httpVer// Put stores the data read from in at path as name on the Amazon Cloud Drive.// Errors if the file already exists on the drive.-//-// Can't put file with 0 length file (works sometimes)func (f *Folder) Put(in io.Reader, name string) (*File, *http.Response, error) {metadata := createNode{Name: name,@@ -725,8 +695,6 @@ func (f *Folder) Put(in io.Reader, name string) (*File, *http.Response, error) {}// Overwrite updates the file contents from in-//-// Can't overwrite with 0 length file (works sometimes)func (f *File) Overwrite(in io.Reader) (*File, *http.Response, error) {url := fmt.Sprintf("nodes/%s/content", *f.Id)return f.service.putOrOverwrite(in, "PUT", url, *f.Name, "")@@ -734,23 +702,17 @@ func (f *File) Overwrite(in io.Reader) (*File, *http.Response, error) {// PutSized stores the data read from in at path as name on the Amazon// Cloud Drive. Errors if the file already exists on the drive.-func (f *Folder) PutSized(in io.Reader, size int64, name string) (*File, *http.Response, error) {- metadata := createNode{- Name: name,- Kind: "FILE",- Parents: []string{*f.Id},- }- metadataJSON, err := json.Marshal(&metadata)- if err != nil {- return nil, nil, err- }- return f.service.putOrOverwriteSized(in, size, "POST", "nodes?suppress=deduplication", name, string(metadataJSON))+//+// Deprecated: no longer needed - just use Put+func (f *Folder) PutSized(in io.Reader, _ int64, name string) (*File, *http.Response, error) {+ return f.Put(in, name)}// OverwriteSized updates the file contents from in-func (f *File) OverwriteSized(in io.Reader, size int64) (*File, *http.Response, error) {- url := fmt.Sprintf("nodes/%s/content", *f.Id)- return f.service.putOrOverwriteSized(in, size, "PUT", url, *f.Name, "")+//+// Deprecated: no longer needed - just use Overwrite+func (f *File) OverwriteSized(in io.Reader, _ int64) (*File, *http.Response, error) {+ return f.Overwrite(in)}// Upload stores the content of file at path as name on the Amazon Cloud Drive.diff --git a/vendor/github.com/pmezard/go-difflib/LICENSE b/vendor/github.com/pmezard/go-difflib/LICENSEdeleted file mode 100644index c67dad612..000000000--- a/vendor/github.com/pmezard/go-difflib/LICENSE+++ /dev/null@@ -1,27 +0,0 @@-Copyright (c) 2013, Patrick Mezard-All rights reserved.--Redistribution and use in source and binary forms, with or without-modification, are permitted provided that the following conditions are-met:-- Redistributions of source code must retain the above copyright-notice, this list of conditions and the following disclaimer.- Redistributions in binary form must reproduce the above copyright-notice, this list of conditions and the following disclaimer in the-documentation and/or other materials provided with the distribution.- The names of its contributors may not be used to endorse or promote-products derived from this software without specific prior written-permission.--THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT-HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.diff --git a/vendor/github.com/pmezard/go-difflib/difflib/difflib.go b/vendor/github.com/pmezard/go-difflib/difflib/difflib.godeleted file mode 100644index 003e99fad..000000000--- a/vendor/github.com/pmezard/go-difflib/difflib/difflib.go+++ /dev/null@@ -1,772 +0,0 @@-// Package difflib is a partial port of Python difflib module.-//-// It provides tools to compare sequences of strings and generate textual diffs.-//-// The following class and functions have been ported:-//-// - SequenceMatcher-//-// - unified_diff-//-// - context_diff-//-// Getting unified diffs was the main goal of the port. Keep in mind this code-// is mostly suitable to output text differences in a human friendly way, there-// are no guarantees generated diffs are consumable by patch(1).-package difflib--import (- "bufio"- "bytes"- "fmt"- "io"- "strings"-)--func min(a, b int) int {- if a < b {- return a- }- return b-}--func max(a, b int) int {- if a > b {- return a- }- return b-}--func calculateRatio(matches, length int) float64 {- if length > 0 {- return 2.0 * float64(matches) / float64(length)- }- return 1.0-}--type Match struct {- A int- B int- Size int-}--type OpCode struct {- Tag byte- I1 int- I2 int- J1 int- J2 int-}--// SequenceMatcher compares sequence of strings. The basic-// algorithm predates, and is a little fancier than, an algorithm-// published in the late 1980's by Ratcliff and Obershelp under the-// hyperbolic name "gestalt pattern matching". The basic idea is to find-// the longest contiguous matching subsequence that contains no "junk"-// elements (R-O doesn't address junk). The same idea is then applied-// recursively to the pieces of the sequences to the left and to the right-// of the matching subsequence. This does not yield minimal edit-// sequences, but does tend to yield matches that "look right" to people.-//-// SequenceMatcher tries to compute a "human-friendly diff" between two-// sequences. Unlike e.g. UNIX(tm) diff, the fundamental notion is the-// longest *contiguous* & junk-free matching subsequence. That's what-// catches peoples' eyes. The Windows(tm) windiff has another interesting-// notion, pairing up elements that appear uniquely in each sequence.-// That, and the method here, appear to yield more intuitive difference-// reports than does diff. This method appears to be the least vulnerable-// to synching up on blocks of "junk lines", though (like blank lines in-// ordinary text files, or maybe "<P>" lines in HTML files). That may be-// because this is the only method of the 3 that has a *concept* of-// "junk" <wink>.-//-// Timing: Basic R-O is cubic time worst case and quadratic time expected-// case. SequenceMatcher is quadratic time for the worst case and has-// expected-case behavior dependent in a complicated way on how many-// elements the sequences have in common; best case time is linear.-type SequenceMatcher struct {- a []string- b []string- b2j map[string][]int- IsJunk func(string) bool- autoJunk bool- bJunk map[string]struct{}- matchingBlocks []Match- fullBCount map[string]int- bPopular map[string]struct{}- opCodes []OpCode-}--func NewMatcher(a, b []string) *SequenceMatcher {- m := SequenceMatcher{autoJunk: true}- m.SetSeqs(a, b)- return &m-}--func NewMatcherWithJunk(a, b []string, autoJunk bool,- isJunk func(string) bool) *SequenceMatcher {-- m := SequenceMatcher{IsJunk: isJunk, autoJunk: autoJunk}- m.SetSeqs(a, b)- return &m-}--// Set two sequences to be compared.-func (m *SequenceMatcher) SetSeqs(a, b []string) {- m.SetSeq1(a)- m.SetSeq2(b)-}--// Set the first sequence to be compared. The second sequence to be compared is-// not changed.-//-// SequenceMatcher computes and caches detailed information about the second-// sequence, so if you want to compare one sequence S against many sequences,-// use .SetSeq2(s) once and call .SetSeq1(x) repeatedly for each of the other-// sequences.-//-// See also SetSeqs() and SetSeq2().-func (m *SequenceMatcher) SetSeq1(a []string) {- if &a == &m.a {- return- }- m.a = a- m.matchingBlocks = nil- m.opCodes = nil-}--// Set the second sequence to be compared. The first sequence to be compared is-// not changed.-func (m *SequenceMatcher) SetSeq2(b []string) {- if &b == &m.b {- return- }- m.b = b- m.matchingBlocks = nil- m.opCodes = nil- m.fullBCount = nil- m.chainB()-}--func (m *SequenceMatcher) chainB() {- // Populate line -> index mapping- b2j := map[string][]int{}- for i, s := range m.b {- indices := b2j[s]- indices = append(indices, i)- b2j[s] = indices- }-- // Purge junk elements- m.bJunk = map[string]struct{}{}- if m.IsJunk != nil {- junk := m.bJunk- for s, _ := range b2j {- if m.IsJunk(s) {- junk[s] = struct{}{}- }- }- for s, _ := range junk {- delete(b2j, s)- }- }-- // Purge remaining popular elements- popular := map[string]struct{}{}- n := len(m.b)- if m.autoJunk && n >= 200 {- ntest := n/100 + 1- for s, indices := range b2j {- if len(indices) > ntest {- popular[s] = struct{}{}- }- }- for s, _ := range popular {- delete(b2j, s)- }- }- m.bPopular = popular- m.b2j = b2j-}--func (m *SequenceMatcher) isBJunk(s string) bool {- _, ok := m.bJunk[s]- return ok-}--// Find longest matching block in a[alo:ahi] and b[blo:bhi].-//-// If IsJunk is not defined:-//-// Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where-// alo <= i <= i+k <= ahi-// blo <= j <= j+k <= bhi-// and for all (i',j',k') meeting those conditions,-// k >= k'-// i <= i'-// and if i == i', j <= j'-//-// In other words, of all maximal matching blocks, return one that-// starts earliest in a, and of all those maximal matching blocks that-// start earliest in a, return the one that starts earliest in b.-//-// If IsJunk is defined, first the longest matching block is-// determined as above, but with the additional restriction that no-// junk element appears in the block. Then that block is extended as-// far as possible by matching (only) junk elements on both sides. So-// the resulting block never matches on junk except as identical junk-// happens to be adjacent to an "interesting" match.-//-// If no blocks match, return (alo, blo, 0).-func (m *SequenceMatcher) findLongestMatch(alo, ahi, blo, bhi int) Match {- // CAUTION: stripping common prefix or suffix would be incorrect.- // E.g.,- // ab- // acab- // Longest matching block is "ab", but if common prefix is- // stripped, it's "a" (tied with "b"). UNIX(tm) diff does so- // strip, so ends up claiming that ab is changed to acab by- // inserting "ca" in the middle. That's minimal but unintuitive:- // "it's obvious" that someone inserted "ac" at the front.- // Windiff ends up at the same place as diff, but by pairing up- // the unique 'b's and then matching the first two 'a's.- besti, bestj, bestsize := alo, blo, 0-- // find longest junk-free match- // during an iteration of the loop, j2len[j] = length of longest- // junk-free match ending with a[i-1] and b[j]- j2len := map[int]int{}- for i := alo; i != ahi; i++ {- // look at all instances of a[i] in b; note that because- // b2j has no junk keys, the loop is skipped if a[i] is junk- newj2len := map[int]int{}- for _, j := range m.b2j[m.a[i]] {- // a[i] matches b[j]- if j < blo {- continue- }- if j >= bhi {- break- }- k := j2len[j-1] + 1- newj2len[j] = k- if k > bestsize {- besti, bestj, bestsize = i-k+1, j-k+1, k- }- }- j2len = newj2len- }-- // Extend the best by non-junk elements on each end. In particular,- // "popular" non-junk elements aren't in b2j, which greatly speeds- // the inner loop above, but also means "the best" match so far- // doesn't contain any junk *or* popular non-junk elements.- for besti > alo && bestj > blo && !m.isBJunk(m.b[bestj-1]) &&- m.a[besti-1] == m.b[bestj-1] {- besti, bestj, bestsize = besti-1, bestj-1, bestsize+1- }- for besti+bestsize < ahi && bestj+bestsize < bhi &&- !m.isBJunk(m.b[bestj+bestsize]) &&- m.a[besti+bestsize] == m.b[bestj+bestsize] {- bestsize += 1- }-- // Now that we have a wholly interesting match (albeit possibly- // empty!), we may as well suck up the matching junk on each- // side of it too. Can't think of a good reason not to, and it- // saves post-processing the (possibly considerable) expense of- // figuring out what to do with it. In the case of an empty- // interesting match, this is clearly the right thing to do,- // because no other kind of match is possible in the regions.- for besti > alo && bestj > blo && m.isBJunk(m.b[bestj-1]) &&- m.a[besti-1] == m.b[bestj-1] {- besti, bestj, bestsize = besti-1, bestj-1, bestsize+1- }- for besti+bestsize < ahi && bestj+bestsize < bhi &&- m.isBJunk(m.b[bestj+bestsize]) &&- m.a[besti+bestsize] == m.b[bestj+bestsize] {- bestsize += 1- }-- return Match{A: besti, B: bestj, Size: bestsize}-}--// Return list of triples describing matching subsequences.-//-// Each triple is of the form (i, j, n), and means that-// a[i:i+n] == b[j:j+n]. The triples are monotonically increasing in-// i and in j. It's also guaranteed that if (i, j, n) and (i', j', n') are-// adjacent triples in the list, and the second is not the last triple in the-// list, then i+n != i' or j+n != j'. IOW, adjacent triples never describe-// adjacent equal blocks.-//-// The last triple is a dummy, (len(a), len(b), 0), and is the only-// triple with n==0.-func (m *SequenceMatcher) GetMatchingBlocks() []Match {- if m.matchingBlocks != nil {- return m.matchingBlocks- }-- var matchBlocks func(alo, ahi, blo, bhi int, matched []Match) []Match- matchBlocks = func(alo, ahi, blo, bhi int, matched []Match) []Match {- match := m.findLongestMatch(alo, ahi, blo, bhi)- i, j, k := match.A, match.B, match.Size- if match.Size > 0 {- if alo < i && blo < j {- matched = matchBlocks(alo, i, blo, j, matched)- }- matched = append(matched, match)- if i+k < ahi && j+k < bhi {- matched = matchBlocks(i+k, ahi, j+k, bhi, matched)- }- }- return matched- }- matched := matchBlocks(0, len(m.a), 0, len(m.b), nil)-- // It's possible that we have adjacent equal blocks in the- // matching_blocks list now.- nonAdjacent := []Match{}- i1, j1, k1 := 0, 0, 0- for _, b := range matched {- // Is this block adjacent to i1, j1, k1?- i2, j2, k2 := b.A, b.B, b.Size- if i1+k1 == i2 && j1+k1 == j2 {- // Yes, so collapse them -- this just increases the length of- // the first block by the length of the second, and the first- // block so lengthened remains the block to compare against.- k1 += k2- } else {- // Not adjacent. Remember the first block (k1==0 means it's- // the dummy we started with), and make the second block the- // new block to compare against.- if k1 > 0 {- nonAdjacent = append(nonAdjacent, Match{i1, j1, k1})- }- i1, j1, k1 = i2, j2, k2- }- }- if k1 > 0 {- nonAdjacent = append(nonAdjacent, Match{i1, j1, k1})- }-- nonAdjacent = append(nonAdjacent, Match{len(m.a), len(m.b), 0})- m.matchingBlocks = nonAdjacent- return m.matchingBlocks-}--// Return list of 5-tuples describing how to turn a into b.-//-// Each tuple is of the form (tag, i1, i2, j1, j2). The first tuple-// has i1 == j1 == 0, and remaining tuples have i1 == the i2 from the-// tuple preceding it, and likewise for j1 == the previous j2.-//-// The tags are characters, with these meanings:-//-// 'r' (replace): a[i1:i2] should be replaced by b[j1:j2]-//-// 'd' (delete): a[i1:i2] should be deleted, j1==j2 in this case.-//-// 'i' (insert): b[j1:j2] should be inserted at a[i1:i1], i1==i2 in this case.-//-// 'e' (equal): a[i1:i2] == b[j1:j2]-func (m *SequenceMatcher) GetOpCodes() []OpCode {- if m.opCodes != nil {- return m.opCodes- }- i, j := 0, 0- matching := m.GetMatchingBlocks()- opCodes := make([]OpCode, 0, len(matching))- for _, m := range matching {- // invariant: we've pumped out correct diffs to change- // a[:i] into b[:j], and the next matching block is- // a[ai:ai+size] == b[bj:bj+size]. So we need to pump- // out a diff to change a[i:ai] into b[j:bj], pump out- // the matching block, and move (i,j) beyond the match- ai, bj, size := m.A, m.B, m.Size- tag := byte(0)- if i < ai && j < bj {- tag = 'r'- } else if i < ai {- tag = 'd'- } else if j < bj {- tag = 'i'- }- if tag > 0 {- opCodes = append(opCodes, OpCode{tag, i, ai, j, bj})- }- i, j = ai+size, bj+size- // the list of matching blocks is terminated by a- // sentinel with size 0- if size > 0 {- opCodes = append(opCodes, OpCode{'e', ai, i, bj, j})- }- }- m.opCodes = opCodes- return m.opCodes-}--// Isolate change clusters by eliminating ranges with no changes.-//-// Return a generator of groups with up to n lines of context.-// Each group is in the same format as returned by GetOpCodes().-func (m *SequenceMatcher) GetGroupedOpCodes(n int) [][]OpCode {- if n < 0 {- n = 3- }- codes := m.GetOpCodes()- if len(codes) == 0 {- codes = []OpCode{OpCode{'e', 0, 1, 0, 1}}- }- // Fixup leading and trailing groups if they show no changes.- if codes[0].Tag == 'e' {- c := codes[0]- i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2- codes[0] = OpCode{c.Tag, max(i1, i2-n), i2, max(j1, j2-n), j2}- }- if codes[len(codes)-1].Tag == 'e' {- c := codes[len(codes)-1]- i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2- codes[len(codes)-1] = OpCode{c.Tag, i1, min(i2, i1+n), j1, min(j2, j1+n)}- }- nn := n + n- groups := [][]OpCode{}- group := []OpCode{}- for _, c := range codes {- i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2- // End the current group and start a new one whenever- // there is a large range with no changes.- if c.Tag == 'e' && i2-i1 > nn {- group = append(group, OpCode{c.Tag, i1, min(i2, i1+n),- j1, min(j2, j1+n)})- groups = append(groups, group)- group = []OpCode{}- i1, j1 = max(i1, i2-n), max(j1, j2-n)- }- group = append(group, OpCode{c.Tag, i1, i2, j1, j2})- }- if len(group) > 0 && !(len(group) == 1 && group[0].Tag == 'e') {- groups = append(groups, group)- }- return groups-}--// Return a measure of the sequences' similarity (float in [0,1]).-//-// Where T is the total number of elements in both sequences, and-// M is the number of matches, this is 2.0*M / T.-// Note that this is 1 if the sequences are identical, and 0 if-// they have nothing in common.-//-// .Ratio() is expensive to compute if you haven't already computed-// .GetMatchingBlocks() or .GetOpCodes(), in which case you may-// want to try .QuickRatio() or .RealQuickRation() first to get an-// upper bound.-func (m *SequenceMatcher) Ratio() float64 {- matches := 0- for _, m := range m.GetMatchingBlocks() {- matches += m.Size- }- return calculateRatio(matches, len(m.a)+len(m.b))-}--// Return an upper bound on ratio() relatively quickly.-//-// This isn't defined beyond that it is an upper bound on .Ratio(), and-// is faster to compute.-func (m *SequenceMatcher) QuickRatio() float64 {- // viewing a and b as multisets, set matches to the cardinality- // of their intersection; this counts the number of matches- // without regard to order, so is clearly an upper bound- if m.fullBCount == nil {- m.fullBCount = map[string]int{}- for _, s := range m.b {- m.fullBCount[s] = m.fullBCount[s] + 1- }- }-- // avail[x] is the number of times x appears in 'b' less the- // number of times we've seen it in 'a' so far ... kinda- avail := map[string]int{}- matches := 0- for _, s := range m.a {- n, ok := avail[s]- if !ok {- n = m.fullBCount[s]- }- avail[s] = n - 1- if n > 0 {- matches += 1- }- }- return calculateRatio(matches, len(m.a)+len(m.b))-}--// Return an upper bound on ratio() very quickly.-//-// This isn't defined beyond that it is an upper bound on .Ratio(), and-// is faster to compute than either .Ratio() or .QuickRatio().-func (m *SequenceMatcher) RealQuickRatio() float64 {- la, lb := len(m.a), len(m.b)- return calculateRatio(min(la, lb), la+lb)-}--// Convert range to the "ed" format-func formatRangeUnified(start, stop int) string {- // Per the diff spec at http://www.unix.org/single_unix_specification/- beginning := start + 1 // lines start numbering with one- length := stop - start- if length == 1 {- return fmt.Sprintf("%d", beginning)- }- if length == 0 {- beginning -= 1 // empty ranges begin at line just before the range- }- return fmt.Sprintf("%d,%d", beginning, length)-}--// Unified diff parameters-type UnifiedDiff struct {- A []string // First sequence lines- FromFile string // First file name- FromDate string // First file time- B []string // Second sequence lines- ToFile string // Second file name- ToDate string // Second file time- Eol string // Headers end of line, defaults to LF- Context int // Number of context lines-}--// Compare two sequences of lines; generate the delta as a unified diff.-//-// Unified diffs are a compact way of showing line changes and a few-// lines of context. The number of context lines is set by 'n' which-// defaults to three.-//-// By default, the diff control lines (those with ---, +++, or @@) are-// created with a trailing newline. This is helpful so that inputs-// created from file.readlines() result in diffs that are suitable for-// file.writelines() since both the inputs and outputs have trailing-// newlines.-//-// For inputs that do not have trailing newlines, set the lineterm-// argument to "" so that the output will be uniformly newline free.-//-// The unidiff format normally has a header for filenames and modification-// times. Any or all of these may be specified using strings for-// 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'.-// The modification times are normally expressed in the ISO 8601 format.-func WriteUnifiedDiff(writer io.Writer, diff UnifiedDiff) error {- buf := bufio.NewWriter(writer)- defer buf.Flush()- wf := func(format string, args ...interface{}) error {- _, err := buf.WriteString(fmt.Sprintf(format, args...))- return err- }- ws := func(s string) error {- _, err := buf.WriteString(s)- return err- }-- if len(diff.Eol) == 0 {- diff.Eol = "\n"- }-- started := false- m := NewMatcher(diff.A, diff.B)- for _, g := range m.GetGroupedOpCodes(diff.Context) {- if !started {- started = true- fromDate := ""- if len(diff.FromDate) > 0 {- fromDate = "\t" + diff.FromDate- }- toDate := ""- if len(diff.ToDate) > 0 {- toDate = "\t" + diff.ToDate- }- if diff.FromFile != "" || diff.ToFile != "" {- err := wf("--- %s%s%s", diff.FromFile, fromDate, diff.Eol)- if err != nil {- return err- }- err = wf("+++ %s%s%s", diff.ToFile, toDate, diff.Eol)- if err != nil {- return err- }- }- }- first, last := g[0], g[len(g)-1]- range1 := formatRangeUnified(first.I1, last.I2)- range2 := formatRangeUnified(first.J1, last.J2)- if err := wf("@@ -%s +%s @@%s", range1, range2, diff.Eol); err != nil {- return err- }- for _, c := range g {- i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2- if c.Tag == 'e' {- for _, line := range diff.A[i1:i2] {- if err := ws(" " + line); err != nil {- return err- }- }- continue- }- if c.Tag == 'r' || c.Tag == 'd' {- for _, line := range diff.A[i1:i2] {- if err := ws("-" + line); err != nil {- return err- }- }- }- if c.Tag == 'r' || c.Tag == 'i' {- for _, line := range diff.B[j1:j2] {- if err := ws("+" + line); err != nil {- return err- }- }- }- }- }- return nil-}--// Like WriteUnifiedDiff but returns the diff a string.-func GetUnifiedDiffString(diff UnifiedDiff) (string, error) {- w := &bytes.Buffer{}- err := WriteUnifiedDiff(w, diff)- return string(w.Bytes()), err-}--// Convert range to the "ed" format.-func formatRangeContext(start, stop int) string {- // Per the diff spec at http://www.unix.org/single_unix_specification/- beginning := start + 1 // lines start numbering with one- length := stop - start- if length == 0 {- beginning -= 1 // empty ranges begin at line just before the range- }- if length <= 1 {- return fmt.Sprintf("%d", beginning)- }- return fmt.Sprintf("%d,%d", beginning, beginning+length-1)-}--type ContextDiff UnifiedDiff--// Compare two sequences of lines; generate the delta as a context diff.-//-// Context diffs are a compact way of showing line changes and a few-// lines of context. The number of context lines is set by diff.Context-// which defaults to three.-//-// By default, the diff control lines (those with *** or ---) are-// created with a trailing newline.-//-// For inputs that do not have trailing newlines, set the diff.Eol-// argument to "" so that the output will be uniformly newline free.-//-// The context diff format normally has a header for filenames and-// modification times. Any or all of these may be specified using-// strings for diff.FromFile, diff.ToFile, diff.FromDate, diff.ToDate.-// The modification times are normally expressed in the ISO 8601 format.-// If not specified, the strings default to blanks.-func WriteContextDiff(writer io.Writer, diff ContextDiff) error {- buf := bufio.NewWriter(writer)- defer buf.Flush()- var diffErr error- wf := func(format string, args ...interface{}) {- _, err := buf.WriteString(fmt.Sprintf(format, args...))- if diffErr == nil && err != nil {- diffErr = err- }- }- ws := func(s string) {- _, err := buf.WriteString(s)- if diffErr == nil && err != nil {- diffErr = err- }- }-- if len(diff.Eol) == 0 {- diff.Eol = "\n"- }-- prefix := map[byte]string{- 'i': "+ ",- 'd': "- ",- 'r': "! ",- 'e': " ",- }-- started := false- m := NewMatcher(diff.A, diff.B)- for _, g := range m.GetGroupedOpCodes(diff.Context) {- if !started {- started = true- fromDate := ""- if len(diff.FromDate) > 0 {- fromDate = "\t" + diff.FromDate- }- toDate := ""- if len(diff.ToDate) > 0 {- toDate = "\t" + diff.ToDate- }- if diff.FromFile != "" || diff.ToFile != "" {- wf("*** %s%s%s", diff.FromFile, fromDate, diff.Eol)- wf("--- %s%s%s", diff.ToFile, toDate, diff.Eol)- }- }-- first, last := g[0], g[len(g)-1]- ws("***************" + diff.Eol)-- range1 := formatRangeContext(first.I1, last.I2)- wf("*** %s ****%s", range1, diff.Eol)- for _, c := range g {- if c.Tag == 'r' || c.Tag == 'd' {- for _, cc := range g {- if cc.Tag == 'i' {- continue- }- for _, line := range diff.A[cc.I1:cc.I2] {- ws(prefix[cc.Tag] + line)- }- }- break- }- }-- range2 := formatRangeContext(first.J1, last.J2)- wf("--- %s ----%s", range2, diff.Eol)- for _, c := range g {- if c.Tag == 'r' || c.Tag == 'i' {- for _, cc := range g {- if cc.Tag == 'd' {- continue- }- for _, line := range diff.B[cc.J1:cc.J2] {- ws(prefix[cc.Tag] + line)- }- }- break- }- }- }- return diffErr-}--// Like WriteContextDiff but returns the diff a string.-func GetContextDiffString(diff ContextDiff) (string, error) {- w := &bytes.Buffer{}- err := WriteContextDiff(w, diff)- return string(w.Bytes()), err-}--// Split a string on "\n" while preserving them. The output can be used-// as input for UnifiedDiff and ContextDiff structures.-func SplitLines(s string) []string {- lines := strings.SplitAfter(s, "\n")- lines[len(lines)-1] += "\n"- return lines-}diff --git a/vendor/github.com/spf13/cobra/doc/man_docs.md b/vendor/github.com/spf13/cobra/doc/man_docs.mdindex 5fe957a35..d568d9a03 100644--- a/vendor/github.com/spf13/cobra/doc/man_docs.md+++ b/vendor/github.com/spf13/cobra/doc/man_docs.md@@ -15,7 +15,7 @@ func main() {Use: "test",Short: "my test program",}- header := &cobra.GenManHeader{+ header := &doc.GenManHeader{Title: "MINE",Section: "3",}@@ -23,4 +23,4 @@ func main() {}```-That will get you a man page `/tmp/test.1`+That will get you a man page `/tmp/test.3`diff --git a/vendor/github.com/stretchr/testify/LICENCE.txt b/vendor/github.com/stretchr/testify/LICENCE.txtdeleted file mode 100644index 473b670a7..000000000--- a/vendor/github.com/stretchr/testify/LICENCE.txt+++ /dev/null@@ -1,22 +0,0 @@-Copyright (c) 2012 - 2013 Mat Ryer and Tyler Bunnell--Please consider promoting this project if you find it useful.--Permission is hereby granted, free of charge, to any person-obtaining a copy of this software and associated documentation-files (the "Software"), to deal in the Software without restriction,-including without limitation the rights to use, copy, modify, merge,-publish, distribute, sublicense, and/or sell copies of the Software,-and to permit persons to whom the Software is furnished to do so,-subject to the following conditions:--The above copyright notice and this permission notice shall be included-in all copies or substantial portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT-OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE-OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.diff --git a/vendor/github.com/stretchr/testify/LICENSE b/vendor/github.com/stretchr/testify/LICENSEdeleted file mode 100644index 473b670a7..000000000--- a/vendor/github.com/stretchr/testify/LICENSE+++ /dev/null@@ -1,22 +0,0 @@-Copyright (c) 2012 - 2013 Mat Ryer and Tyler Bunnell--Please consider promoting this project if you find it useful.--Permission is hereby granted, free of charge, to any person-obtaining a copy of this software and associated documentation-files (the "Software"), to deal in the Software without restriction,-including without limitation the rights to use, copy, modify, merge,-publish, distribute, sublicense, and/or sell copies of the Software,-and to permit persons to whom the Software is furnished to do so,-subject to the following conditions:--The above copyright notice and this permission notice shall be included-in all copies or substantial portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT-OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE-OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.diff --git a/vendor/github.com/stretchr/testify/assert/assertion_forward.go b/vendor/github.com/stretchr/testify/assert/assertion_forward.godeleted file mode 100644index e6a796046..000000000--- a/vendor/github.com/stretchr/testify/assert/assertion_forward.go+++ /dev/null@@ -1,387 +0,0 @@-/*-* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen-* THIS FILE MUST NOT BE EDITED BY HAND-*/--package assert--import (-- http "net/http"- url "net/url"- time "time"-)---// Condition uses a Comparison to assert a complex condition.-func (a *Assertions) Condition(comp Comparison, msgAndArgs ...interface{}) bool {- return Condition(a.t, comp, msgAndArgs...)-}---// Contains asserts that the specified string, list(array, slice...) or map contains the-// specified substring or element.-//-// a.Contains("Hello World", "World", "But 'Hello World' does contain 'World'")-// a.Contains(["Hello", "World"], "World", "But ["Hello", "World"] does contain 'World'")-// a.Contains({"Hello": "World"}, "Hello", "But {'Hello': 'World'} does contain 'Hello'")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Contains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool {- return Contains(a.t, s, contains, msgAndArgs...)-}---// Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either-// a slice or a channel with len == 0.-//-// a.Empty(obj)-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Empty(object interface{}, msgAndArgs ...interface{}) bool {- return Empty(a.t, object, msgAndArgs...)-}---// Equal asserts that two objects are equal.-//-// a.Equal(123, 123, "123 and 123 should be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Equal(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool {- return Equal(a.t, expected, actual, msgAndArgs...)-}---// EqualError asserts that a function returned an error (i.e. not `nil`)-// and that it is equal to the provided error.-//-// actualObj, err := SomeFunction()-// if assert.Error(t, err, "An error was expected") {-// assert.Equal(t, err, expectedError)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) EqualError(theError error, errString string, msgAndArgs ...interface{}) bool {- return EqualError(a.t, theError, errString, msgAndArgs...)-}---// EqualValues asserts that two objects are equal or convertable to the same types-// and equal.-//-// a.EqualValues(uint32(123), int32(123), "123 and 123 should be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) EqualValues(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool {- return EqualValues(a.t, expected, actual, msgAndArgs...)-}---// Error asserts that a function returned an error (i.e. not `nil`).-//-// actualObj, err := SomeFunction()-// if a.Error(err, "An error was expected") {-// assert.Equal(t, err, expectedError)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Error(err error, msgAndArgs ...interface{}) bool {- return Error(a.t, err, msgAndArgs...)-}---// Exactly asserts that two objects are equal is value and type.-//-// a.Exactly(int32(123), int64(123), "123 and 123 should NOT be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Exactly(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool {- return Exactly(a.t, expected, actual, msgAndArgs...)-}---// Fail reports a failure through-func (a *Assertions) Fail(failureMessage string, msgAndArgs ...interface{}) bool {- return Fail(a.t, failureMessage, msgAndArgs...)-}---// FailNow fails test-func (a *Assertions) FailNow(failureMessage string, msgAndArgs ...interface{}) bool {- return FailNow(a.t, failureMessage, msgAndArgs...)-}---// False asserts that the specified value is false.-//-// a.False(myBool, "myBool should be false")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) False(value bool, msgAndArgs ...interface{}) bool {- return False(a.t, value, msgAndArgs...)-}---// HTTPBodyContains asserts that a specified handler returns a-// body that contains a string.-//-// a.HTTPBodyContains(myHandler, "www.google.com", nil, "I'm Feeling Lucky")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPBodyContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}) bool {- return HTTPBodyContains(a.t, handler, method, url, values, str)-}---// HTTPBodyNotContains asserts that a specified handler returns a-// body that does not contain a string.-//-// a.HTTPBodyNotContains(myHandler, "www.google.com", nil, "I'm Feeling Lucky")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPBodyNotContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}) bool {- return HTTPBodyNotContains(a.t, handler, method, url, values, str)-}---// HTTPError asserts that a specified handler returns an error status code.-//-// a.HTTPError(myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}}-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPError(handler http.HandlerFunc, method string, url string, values url.Values) bool {- return HTTPError(a.t, handler, method, url, values)-}---// HTTPRedirect asserts that a specified handler returns a redirect status code.-//-// a.HTTPRedirect(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}}-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPRedirect(handler http.HandlerFunc, method string, url string, values url.Values) bool {- return HTTPRedirect(a.t, handler, method, url, values)-}---// HTTPSuccess asserts that a specified handler returns a success status code.-//-// a.HTTPSuccess(myHandler, "POST", "http://www.google.com", nil)-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPSuccess(handler http.HandlerFunc, method string, url string, values url.Values) bool {- return HTTPSuccess(a.t, handler, method, url, values)-}---// Implements asserts that an object is implemented by the specified interface.-//-// a.Implements((*MyInterface)(nil), new(MyObject), "MyObject")-func (a *Assertions) Implements(interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) bool {- return Implements(a.t, interfaceObject, object, msgAndArgs...)-}---// InDelta asserts that the two numerals are within delta of each other.-//-// a.InDelta(math.Pi, (22 / 7.0), 0.01)-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) InDelta(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {- return InDelta(a.t, expected, actual, delta, msgAndArgs...)-}---// InDeltaSlice is the same as InDelta, except it compares two slices.-func (a *Assertions) InDeltaSlice(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {- return InDeltaSlice(a.t, expected, actual, delta, msgAndArgs...)-}---// InEpsilon asserts that expected and actual have a relative error less than epsilon-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) InEpsilon(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool {- return InEpsilon(a.t, expected, actual, epsilon, msgAndArgs...)-}---// InEpsilonSlice is the same as InEpsilon, except it compares two slices.-func (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {- return InEpsilonSlice(a.t, expected, actual, delta, msgAndArgs...)-}---// IsType asserts that the specified objects are of the same type.-func (a *Assertions) IsType(expectedType interface{}, object interface{}, msgAndArgs ...interface{}) bool {- return IsType(a.t, expectedType, object, msgAndArgs...)-}---// JSONEq asserts that two JSON strings are equivalent.-//-// a.JSONEq(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) JSONEq(expected string, actual string, msgAndArgs ...interface{}) bool {- return JSONEq(a.t, expected, actual, msgAndArgs...)-}---// Len asserts that the specified object has specific length.-// Len also fails if the object has a type that len() not accept.-//-// a.Len(mySlice, 3, "The size of slice is not 3")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{}) bool {- return Len(a.t, object, length, msgAndArgs...)-}---// Nil asserts that the specified object is nil.-//-// a.Nil(err, "err should be nothing")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Nil(object interface{}, msgAndArgs ...interface{}) bool {- return Nil(a.t, object, msgAndArgs...)-}---// NoError asserts that a function returned no error (i.e. `nil`).-//-// actualObj, err := SomeFunction()-// if a.NoError(err) {-// assert.Equal(t, actualObj, expectedObj)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NoError(err error, msgAndArgs ...interface{}) bool {- return NoError(a.t, err, msgAndArgs...)-}---// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the-// specified substring or element.-//-// a.NotContains("Hello World", "Earth", "But 'Hello World' does NOT contain 'Earth'")-// a.NotContains(["Hello", "World"], "Earth", "But ['Hello', 'World'] does NOT contain 'Earth'")-// a.NotContains({"Hello": "World"}, "Earth", "But {'Hello': 'World'} does NOT contain 'Earth'")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotContains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool {- return NotContains(a.t, s, contains, msgAndArgs...)-}---// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either-// a slice or a channel with len == 0.-//-// if a.NotEmpty(obj) {-// assert.Equal(t, "two", obj[1])-// }-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotEmpty(object interface{}, msgAndArgs ...interface{}) bool {- return NotEmpty(a.t, object, msgAndArgs...)-}---// NotEqual asserts that the specified values are NOT equal.-//-// a.NotEqual(obj1, obj2, "two objects shouldn't be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotEqual(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool {- return NotEqual(a.t, expected, actual, msgAndArgs...)-}---// NotNil asserts that the specified object is not nil.-//-// a.NotNil(err, "err should be something")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{}) bool {- return NotNil(a.t, object, msgAndArgs...)-}---// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.-//-// a.NotPanics(func(){-// RemainCalm()-// }, "Calling RemainCalm() should NOT panic")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotPanics(f PanicTestFunc, msgAndArgs ...interface{}) bool {- return NotPanics(a.t, f, msgAndArgs...)-}---// NotRegexp asserts that a specified regexp does not match a string.-//-// a.NotRegexp(regexp.MustCompile("starts"), "it's starting")-// a.NotRegexp("^start", "it's not starting")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotRegexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool {- return NotRegexp(a.t, rx, str, msgAndArgs...)-}---// NotZero asserts that i is not the zero value for its type and returns the truth.-func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) bool {- return NotZero(a.t, i, msgAndArgs...)-}---// Panics asserts that the code inside the specified PanicTestFunc panics.-//-// a.Panics(func(){-// GoCrazy()-// }, "Calling GoCrazy() should panic")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Panics(f PanicTestFunc, msgAndArgs ...interface{}) bool {- return Panics(a.t, f, msgAndArgs...)-}---// Regexp asserts that a specified regexp matches a string.-//-// a.Regexp(regexp.MustCompile("start"), "it's starting")-// a.Regexp("start...$", "it's not starting")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool {- return Regexp(a.t, rx, str, msgAndArgs...)-}---// True asserts that the specified value is true.-//-// a.True(myBool, "myBool should be true")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) True(value bool, msgAndArgs ...interface{}) bool {- return True(a.t, value, msgAndArgs...)-}---// WithinDuration asserts that the two times are within duration delta of each other.-//-// a.WithinDuration(time.Now(), time.Now(), 10*time.Second, "The difference should not be more than 10s")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) WithinDuration(expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...interface{}) bool {- return WithinDuration(a.t, expected, actual, delta, msgAndArgs...)-}---// Zero asserts that i is the zero value for its type and returns the truth.-func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) bool {- return Zero(a.t, i, msgAndArgs...)-}diff --git a/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl b/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpldeleted file mode 100644index 99f9acfbb..000000000--- a/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl+++ /dev/null@@ -1,4 +0,0 @@-{{.CommentWithoutT "a"}}-func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool {- return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}})-}diff --git a/vendor/github.com/stretchr/testify/assert/assertions.go b/vendor/github.com/stretchr/testify/assert/assertions.godeleted file mode 100644index d7c16c590..000000000--- a/vendor/github.com/stretchr/testify/assert/assertions.go+++ /dev/null@@ -1,1004 +0,0 @@-package assert--import (- "bufio"- "bytes"- "encoding/json"- "fmt"- "math"- "reflect"- "regexp"- "runtime"- "strings"- "time"- "unicode"- "unicode/utf8"-- "github.com/davecgh/go-spew/spew"- "github.com/pmezard/go-difflib/difflib"-)--// TestingT is an interface wrapper around *testing.T-type TestingT interface {- Errorf(format string, args ...interface{})-}--// Comparison a custom function that returns true on success and false on failure-type Comparison func() (success bool)--/*- Helper functions-*/--// ObjectsAreEqual determines if two objects are considered equal.-//-// This function does no assertion of any kind.-func ObjectsAreEqual(expected, actual interface{}) bool {-- if expected == nil || actual == nil {- return expected == actual- }-- return reflect.DeepEqual(expected, actual)--}--// ObjectsAreEqualValues gets whether two objects are equal, or if their-// values are equal.-func ObjectsAreEqualValues(expected, actual interface{}) bool {- if ObjectsAreEqual(expected, actual) {- return true- }-- actualType := reflect.TypeOf(actual)- if actualType == nil {- return false- }- expectedValue := reflect.ValueOf(expected)- if expectedValue.IsValid() && expectedValue.Type().ConvertibleTo(actualType) {- // Attempt comparison after type conversion- return reflect.DeepEqual(expectedValue.Convert(actualType).Interface(), actual)- }-- return false-}--/* CallerInfo is necessary because the assert functions use the testing object-internally, causing it to print the file:line of the assert method, rather than where-the problem actually occured in calling code.*/--// CallerInfo returns an array of strings containing the file and line number-// of each stack frame leading from the current test to the assert call that-// failed.-func CallerInfo() []string {-- pc := uintptr(0)- file := ""- line := 0- ok := false- name := ""-- callers := []string{}- for i := 0; ; i++ {- pc, file, line, ok = runtime.Caller(i)- if !ok {- return nil- }-- // This is a huge edge case, but it will panic if this is the case, see #180- if file == "<autogenerated>" {- break- }-- parts := strings.Split(file, "/")- dir := parts[len(parts)-2]- file = parts[len(parts)-1]- if (dir != "assert" && dir != "mock" && dir != "require") || file == "mock_test.go" {- callers = append(callers, fmt.Sprintf("%s:%d", file, line))- }-- f := runtime.FuncForPC(pc)- if f == nil {- break- }- name = f.Name()- // Drop the package- segments := strings.Split(name, ".")- name = segments[len(segments)-1]- if isTest(name, "Test") ||- isTest(name, "Benchmark") ||- isTest(name, "Example") {- break- }- }-- return callers-}--// Stolen from the `go test` tool.-// isTest tells whether name looks like a test (or benchmark, according to prefix).-// It is a Test (say) if there is a character after Test that is not a lower-case letter.-// We don't want TesticularCancer.-func isTest(name, prefix string) bool {- if !strings.HasPrefix(name, prefix) {- return false- }- if len(name) == len(prefix) { // "Test" is ok- return true- }- rune, _ := utf8.DecodeRuneInString(name[len(prefix):])- return !unicode.IsLower(rune)-}--// getWhitespaceString returns a string that is long enough to overwrite the default-// output from the go testing framework.-func getWhitespaceString() string {-- _, file, line, ok := runtime.Caller(1)- if !ok {- return ""- }- parts := strings.Split(file, "/")- file = parts[len(parts)-1]-- return strings.Repeat(" ", len(fmt.Sprintf("%s:%d: ", file, line)))--}--func messageFromMsgAndArgs(msgAndArgs ...interface{}) string {- if len(msgAndArgs) == 0 || msgAndArgs == nil {- return ""- }- if len(msgAndArgs) == 1 {- return msgAndArgs[0].(string)- }- if len(msgAndArgs) > 1 {- return fmt.Sprintf(msgAndArgs[0].(string), msgAndArgs[1:]...)- }- return ""-}--// Indents all lines of the message by appending a number of tabs to each line, in an output format compatible with Go's-// test printing (see inner comment for specifics)-func indentMessageLines(message string, tabs int) string {- outBuf := new(bytes.Buffer)-- for i, scanner := 0, bufio.NewScanner(strings.NewReader(message)); scanner.Scan(); i++ {- if i != 0 {- outBuf.WriteRune('\n')- }- for ii := 0; ii < tabs; ii++ {- outBuf.WriteRune('\t')- // Bizarrely, all lines except the first need one fewer tabs prepended, so deliberately advance the counter- // by 1 prematurely.- if ii == 0 && i > 0 {- ii++- }- }- outBuf.WriteString(scanner.Text())- }-- return outBuf.String()-}--type failNower interface {- FailNow()-}--// FailNow fails test-func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) bool {- Fail(t, failureMessage, msgAndArgs...)-- // We cannot extend TestingT with FailNow() and- // maintain backwards compatibility, so we fallback- // to panicking when FailNow is not available in- // TestingT.- // See issue #263-- if t, ok := t.(failNower); ok {- t.FailNow()- } else {- panic("test failed and t is missing `FailNow()`")- }- return false-}--// Fail reports a failure through-func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) bool {-- message := messageFromMsgAndArgs(msgAndArgs...)-- errorTrace := strings.Join(CallerInfo(), "\n\r\t\t\t")- if len(message) > 0 {- t.Errorf("\r%s\r\tError Trace:\t%s\n"+- "\r\tError:%s\n"+- "\r\tMessages:\t%s\n\r",- getWhitespaceString(),- errorTrace,- indentMessageLines(failureMessage, 2),- message)- } else {- t.Errorf("\r%s\r\tError Trace:\t%s\n"+- "\r\tError:%s\n\r",- getWhitespaceString(),- errorTrace,- indentMessageLines(failureMessage, 2))- }-- return false-}--// Implements asserts that an object is implemented by the specified interface.-//-// assert.Implements(t, (*MyInterface)(nil), new(MyObject), "MyObject")-func Implements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) bool {-- interfaceType := reflect.TypeOf(interfaceObject).Elem()-- if !reflect.TypeOf(object).Implements(interfaceType) {- return Fail(t, fmt.Sprintf("%T must implement %v", object, interfaceType), msgAndArgs...)- }-- return true--}--// IsType asserts that the specified objects are of the same type.-func IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{}) bool {-- if !ObjectsAreEqual(reflect.TypeOf(object), reflect.TypeOf(expectedType)) {- return Fail(t, fmt.Sprintf("Object expected to be of type %v, but was %v", reflect.TypeOf(expectedType), reflect.TypeOf(object)), msgAndArgs...)- }-- return true-}--// Equal asserts that two objects are equal.-//-// assert.Equal(t, 123, 123, "123 and 123 should be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {-- if !ObjectsAreEqual(expected, actual) {- diff := diff(expected, actual)- return Fail(t, fmt.Sprintf("Not equal: %#v (expected)\n"+- " != %#v (actual)%s", expected, actual, diff), msgAndArgs...)- }-- return true--}--// EqualValues asserts that two objects are equal or convertable to the same types-// and equal.-//-// assert.EqualValues(t, uint32(123), int32(123), "123 and 123 should be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func EqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {-- if !ObjectsAreEqualValues(expected, actual) {- return Fail(t, fmt.Sprintf("Not equal: %#v (expected)\n"+- " != %#v (actual)", expected, actual), msgAndArgs...)- }-- return true--}--// Exactly asserts that two objects are equal is value and type.-//-// assert.Exactly(t, int32(123), int64(123), "123 and 123 should NOT be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func Exactly(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {-- aType := reflect.TypeOf(expected)- bType := reflect.TypeOf(actual)-- if aType != bType {- return Fail(t, fmt.Sprintf("Types expected to match exactly\n\r\t%v != %v", aType, bType), msgAndArgs...)- }-- return Equal(t, expected, actual, msgAndArgs...)--}--// NotNil asserts that the specified object is not nil.-//-// assert.NotNil(t, err, "err should be something")-//-// Returns whether the assertion was successful (true) or not (false).-func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) bool {- if !isNil(object) {- return true- }- return Fail(t, "Expected value not to be nil.", msgAndArgs...)-}--// isNil checks if a specified object is nil or not, without Failing.-func isNil(object interface{}) bool {- if object == nil {- return true- }-- value := reflect.ValueOf(object)- kind := value.Kind()- if kind >= reflect.Chan && kind <= reflect.Slice && value.IsNil() {- return true- }-- return false-}--// Nil asserts that the specified object is nil.-//-// assert.Nil(t, err, "err should be nothing")-//-// Returns whether the assertion was successful (true) or not (false).-func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) bool {- if isNil(object) {- return true- }- return Fail(t, fmt.Sprintf("Expected nil, but got: %#v", object), msgAndArgs...)-}--var numericZeros = []interface{}{- int(0),- int8(0),- int16(0),- int32(0),- int64(0),- uint(0),- uint8(0),- uint16(0),- uint32(0),- uint64(0),- float32(0),- float64(0),-}--// isEmpty gets whether the specified object is considered empty or not.-func isEmpty(object interface{}) bool {-- if object == nil {- return true- } else if object == "" {- return true- } else if object == false {- return true- }-- for _, v := range numericZeros {- if object == v {- return true- }- }-- objValue := reflect.ValueOf(object)-- switch objValue.Kind() {- case reflect.Map:- fallthrough- case reflect.Slice, reflect.Chan:- {- return (objValue.Len() == 0)- }- case reflect.Struct:- switch object.(type) {- case time.Time:- return object.(time.Time).IsZero()- }- case reflect.Ptr:- {- if objValue.IsNil() {- return true- }- switch object.(type) {- case *time.Time:- return object.(*time.Time).IsZero()- default:- return false- }- }- }- return false-}--// Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either-// a slice or a channel with len == 0.-//-// assert.Empty(t, obj)-//-// Returns whether the assertion was successful (true) or not (false).-func Empty(t TestingT, object interface{}, msgAndArgs ...interface{}) bool {-- pass := isEmpty(object)- if !pass {- Fail(t, fmt.Sprintf("Should be empty, but was %v", object), msgAndArgs...)- }-- return pass--}--// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either-// a slice or a channel with len == 0.-//-// if assert.NotEmpty(t, obj) {-// assert.Equal(t, "two", obj[1])-// }-//-// Returns whether the assertion was successful (true) or not (false).-func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{}) bool {-- pass := !isEmpty(object)- if !pass {- Fail(t, fmt.Sprintf("Should NOT be empty, but was %v", object), msgAndArgs...)- }-- return pass--}--// getLen try to get length of object.-// return (false, 0) if impossible.-func getLen(x interface{}) (ok bool, length int) {- v := reflect.ValueOf(x)- defer func() {- if e := recover(); e != nil {- ok = false- }- }()- return true, v.Len()-}--// Len asserts that the specified object has specific length.-// Len also fails if the object has a type that len() not accept.-//-// assert.Len(t, mySlice, 3, "The size of slice is not 3")-//-// Returns whether the assertion was successful (true) or not (false).-func Len(t TestingT, object interface{}, length int, msgAndArgs ...interface{}) bool {- ok, l := getLen(object)- if !ok {- return Fail(t, fmt.Sprintf("\"%s\" could not be applied builtin len()", object), msgAndArgs...)- }-- if l != length {- return Fail(t, fmt.Sprintf("\"%s\" should have %d item(s), but has %d", object, length, l), msgAndArgs...)- }- return true-}--// True asserts that the specified value is true.-//-// assert.True(t, myBool, "myBool should be true")-//-// Returns whether the assertion was successful (true) or not (false).-func True(t TestingT, value bool, msgAndArgs ...interface{}) bool {-- if value != true {- return Fail(t, "Should be true", msgAndArgs...)- }-- return true--}--// False asserts that the specified value is false.-//-// assert.False(t, myBool, "myBool should be false")-//-// Returns whether the assertion was successful (true) or not (false).-func False(t TestingT, value bool, msgAndArgs ...interface{}) bool {-- if value != false {- return Fail(t, "Should be false", msgAndArgs...)- }-- return true--}--// NotEqual asserts that the specified values are NOT equal.-//-// assert.NotEqual(t, obj1, obj2, "two objects shouldn't be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func NotEqual(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {-- if ObjectsAreEqual(expected, actual) {- return Fail(t, fmt.Sprintf("Should not be: %#v\n", actual), msgAndArgs...)- }-- return true--}--// containsElement try loop over the list check if the list includes the element.-// return (false, false) if impossible.-// return (true, false) if element was not found.-// return (true, true) if element was found.-func includeElement(list interface{}, element interface{}) (ok, found bool) {-- listValue := reflect.ValueOf(list)- elementValue := reflect.ValueOf(element)- defer func() {- if e := recover(); e != nil {- ok = false- found = false- }- }()-- if reflect.TypeOf(list).Kind() == reflect.String {- return true, strings.Contains(listValue.String(), elementValue.String())- }-- if reflect.TypeOf(list).Kind() == reflect.Map {- mapKeys := listValue.MapKeys()- for i := 0; i < len(mapKeys); i++ {- if ObjectsAreEqual(mapKeys[i].Interface(), element) {- return true, true- }- }- return true, false- }-- for i := 0; i < listValue.Len(); i++ {- if ObjectsAreEqual(listValue.Index(i).Interface(), element) {- return true, true- }- }- return true, false--}--// Contains asserts that the specified string, list(array, slice...) or map contains the-// specified substring or element.-//-// assert.Contains(t, "Hello World", "World", "But 'Hello World' does contain 'World'")-// assert.Contains(t, ["Hello", "World"], "World", "But ["Hello", "World"] does contain 'World'")-// assert.Contains(t, {"Hello": "World"}, "Hello", "But {'Hello': 'World'} does contain 'Hello'")-//-// Returns whether the assertion was successful (true) or not (false).-func Contains(t TestingT, s, contains interface{}, msgAndArgs ...interface{}) bool {-- ok, found := includeElement(s, contains)- if !ok {- return Fail(t, fmt.Sprintf("\"%s\" could not be applied builtin len()", s), msgAndArgs...)- }- if !found {- return Fail(t, fmt.Sprintf("\"%s\" does not contain \"%s\"", s, contains), msgAndArgs...)- }-- return true--}--// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the-// specified substring or element.-//-// assert.NotContains(t, "Hello World", "Earth", "But 'Hello World' does NOT contain 'Earth'")-// assert.NotContains(t, ["Hello", "World"], "Earth", "But ['Hello', 'World'] does NOT contain 'Earth'")-// assert.NotContains(t, {"Hello": "World"}, "Earth", "But {'Hello': 'World'} does NOT contain 'Earth'")-//-// Returns whether the assertion was successful (true) or not (false).-func NotContains(t TestingT, s, contains interface{}, msgAndArgs ...interface{}) bool {-- ok, found := includeElement(s, contains)- if !ok {- return Fail(t, fmt.Sprintf("\"%s\" could not be applied builtin len()", s), msgAndArgs...)- }- if found {- return Fail(t, fmt.Sprintf("\"%s\" should not contain \"%s\"", s, contains), msgAndArgs...)- }-- return true--}--// Condition uses a Comparison to assert a complex condition.-func Condition(t TestingT, comp Comparison, msgAndArgs ...interface{}) bool {- result := comp()- if !result {- Fail(t, "Condition failed!", msgAndArgs...)- }- return result-}--// PanicTestFunc defines a func that should be passed to the assert.Panics and assert.NotPanics-// methods, and represents a simple func that takes no arguments, and returns nothing.-type PanicTestFunc func()--// didPanic returns true if the function passed to it panics. Otherwise, it returns false.-func didPanic(f PanicTestFunc) (bool, interface{}) {-- didPanic := false- var message interface{}- func() {-- defer func() {- if message = recover(); message != nil {- didPanic = true- }- }()-- // call the target function- f()-- }()-- return didPanic, message--}--// Panics asserts that the code inside the specified PanicTestFunc panics.-//-// assert.Panics(t, func(){-// GoCrazy()-// }, "Calling GoCrazy() should panic")-//-// Returns whether the assertion was successful (true) or not (false).-func Panics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool {-- if funcDidPanic, panicValue := didPanic(f); !funcDidPanic {- return Fail(t, fmt.Sprintf("func %#v should panic\n\r\tPanic value:\t%v", f, panicValue), msgAndArgs...)- }-- return true-}--// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.-//-// assert.NotPanics(t, func(){-// RemainCalm()-// }, "Calling RemainCalm() should NOT panic")-//-// Returns whether the assertion was successful (true) or not (false).-func NotPanics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool {-- if funcDidPanic, panicValue := didPanic(f); funcDidPanic {- return Fail(t, fmt.Sprintf("func %#v should not panic\n\r\tPanic value:\t%v", f, panicValue), msgAndArgs...)- }-- return true-}--// WithinDuration asserts that the two times are within duration delta of each other.-//-// assert.WithinDuration(t, time.Now(), time.Now(), 10*time.Second, "The difference should not be more than 10s")-//-// Returns whether the assertion was successful (true) or not (false).-func WithinDuration(t TestingT, expected, actual time.Time, delta time.Duration, msgAndArgs ...interface{}) bool {-- dt := expected.Sub(actual)- if dt < -delta || dt > delta {- return Fail(t, fmt.Sprintf("Max difference between %v and %v allowed is %v, but difference was %v", expected, actual, delta, dt), msgAndArgs...)- }-- return true-}--func toFloat(x interface{}) (float64, bool) {- var xf float64- xok := true-- switch xn := x.(type) {- case uint8:- xf = float64(xn)- case uint16:- xf = float64(xn)- case uint32:- xf = float64(xn)- case uint64:- xf = float64(xn)- case int:- xf = float64(xn)- case int8:- xf = float64(xn)- case int16:- xf = float64(xn)- case int32:- xf = float64(xn)- case int64:- xf = float64(xn)- case float32:- xf = float64(xn)- case float64:- xf = float64(xn)- default:- xok = false- }-- return xf, xok-}--// InDelta asserts that the two numerals are within delta of each other.-//-// assert.InDelta(t, math.Pi, (22 / 7.0), 0.01)-//-// Returns whether the assertion was successful (true) or not (false).-func InDelta(t TestingT, expected, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {-- af, aok := toFloat(expected)- bf, bok := toFloat(actual)-- if !aok || !bok {- return Fail(t, fmt.Sprintf("Parameters must be numerical"), msgAndArgs...)- }-- if math.IsNaN(af) {- return Fail(t, fmt.Sprintf("Actual must not be NaN"), msgAndArgs...)- }-- if math.IsNaN(bf) {- return Fail(t, fmt.Sprintf("Expected %v with delta %v, but was NaN", expected, delta), msgAndArgs...)- }-- dt := af - bf- if dt < -delta || dt > delta {- return Fail(t, fmt.Sprintf("Max difference between %v and %v allowed is %v, but difference was %v", expected, actual, delta, dt), msgAndArgs...)- }-- return true-}--// InDeltaSlice is the same as InDelta, except it compares two slices.-func InDeltaSlice(t TestingT, expected, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {- if expected == nil || actual == nil ||- reflect.TypeOf(actual).Kind() != reflect.Slice ||- reflect.TypeOf(expected).Kind() != reflect.Slice {- return Fail(t, fmt.Sprintf("Parameters must be slice"), msgAndArgs...)- }-- actualSlice := reflect.ValueOf(actual)- expectedSlice := reflect.ValueOf(expected)-- for i := 0; i < actualSlice.Len(); i++ {- result := InDelta(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), delta)- if !result {- return result- }- }-- return true-}--func calcRelativeError(expected, actual interface{}) (float64, error) {- af, aok := toFloat(expected)- if !aok {- return 0, fmt.Errorf("expected value %q cannot be converted to float", expected)- }- if af == 0 {- return 0, fmt.Errorf("expected value must have a value other than zero to calculate the relative error")- }- bf, bok := toFloat(actual)- if !bok {- return 0, fmt.Errorf("expected value %q cannot be converted to float", actual)- }-- return math.Abs(af-bf) / math.Abs(af), nil-}--// InEpsilon asserts that expected and actual have a relative error less than epsilon-//-// Returns whether the assertion was successful (true) or not (false).-func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool {- actualEpsilon, err := calcRelativeError(expected, actual)- if err != nil {- return Fail(t, err.Error(), msgAndArgs...)- }- if actualEpsilon > epsilon {- return Fail(t, fmt.Sprintf("Relative error is too high: %#v (expected)\n"+- " < %#v (actual)", actualEpsilon, epsilon), msgAndArgs...)- }-- return true-}--// InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.-func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool {- if expected == nil || actual == nil ||- reflect.TypeOf(actual).Kind() != reflect.Slice ||- reflect.TypeOf(expected).Kind() != reflect.Slice {- return Fail(t, fmt.Sprintf("Parameters must be slice"), msgAndArgs...)- }-- actualSlice := reflect.ValueOf(actual)- expectedSlice := reflect.ValueOf(expected)-- for i := 0; i < actualSlice.Len(); i++ {- result := InEpsilon(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), epsilon)- if !result {- return result- }- }-- return true-}--/*- Errors-*/--// NoError asserts that a function returned no error (i.e. `nil`).-//-// actualObj, err := SomeFunction()-// if assert.NoError(t, err) {-// assert.Equal(t, actualObj, expectedObj)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool {- if isNil(err) {- return true- }-- return Fail(t, fmt.Sprintf("Received unexpected error %q", err), msgAndArgs...)-}--// Error asserts that a function returned an error (i.e. not `nil`).-//-// actualObj, err := SomeFunction()-// if assert.Error(t, err, "An error was expected") {-// assert.Equal(t, err, expectedError)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func Error(t TestingT, err error, msgAndArgs ...interface{}) bool {-- message := messageFromMsgAndArgs(msgAndArgs...)- return NotNil(t, err, "An error is expected but got nil. %s", message)--}--// EqualError asserts that a function returned an error (i.e. not `nil`)-// and that it is equal to the provided error.-//-// actualObj, err := SomeFunction()-// if assert.Error(t, err, "An error was expected") {-// assert.Equal(t, err, expectedError)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func EqualError(t TestingT, theError error, errString string, msgAndArgs ...interface{}) bool {-- message := messageFromMsgAndArgs(msgAndArgs...)- if !NotNil(t, theError, "An error is expected but got nil. %s", message) {- return false- }- s := "An error with value \"%s\" is expected but got \"%s\". %s"- return Equal(t, errString, theError.Error(),- s, errString, theError.Error(), message)-}--// matchRegexp return true if a specified regexp matches a string.-func matchRegexp(rx interface{}, str interface{}) bool {-- var r *regexp.Regexp- if rr, ok := rx.(*regexp.Regexp); ok {- r = rr- } else {- r = regexp.MustCompile(fmt.Sprint(rx))- }-- return (r.FindStringIndex(fmt.Sprint(str)) != nil)--}--// Regexp asserts that a specified regexp matches a string.-//-// assert.Regexp(t, regexp.MustCompile("start"), "it's starting")-// assert.Regexp(t, "start...$", "it's not starting")-//-// Returns whether the assertion was successful (true) or not (false).-func Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) bool {-- match := matchRegexp(rx, str)-- if !match {- Fail(t, fmt.Sprintf("Expect \"%v\" to match \"%v\"", str, rx), msgAndArgs...)- }-- return match-}--// NotRegexp asserts that a specified regexp does not match a string.-//-// assert.NotRegexp(t, regexp.MustCompile("starts"), "it's starting")-// assert.NotRegexp(t, "^start", "it's not starting")-//-// Returns whether the assertion was successful (true) or not (false).-func NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) bool {- match := matchRegexp(rx, str)-- if match {- Fail(t, fmt.Sprintf("Expect \"%v\" to NOT match \"%v\"", str, rx), msgAndArgs...)- }-- return !match--}--// Zero asserts that i is the zero value for its type and returns the truth.-func Zero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool {- if i != nil && !reflect.DeepEqual(i, reflect.Zero(reflect.TypeOf(i)).Interface()) {- return Fail(t, fmt.Sprintf("Should be zero, but was %v", i), msgAndArgs...)- }- return true-}--// NotZero asserts that i is not the zero value for its type and returns the truth.-func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool {- if i == nil || reflect.DeepEqual(i, reflect.Zero(reflect.TypeOf(i)).Interface()) {- return Fail(t, fmt.Sprintf("Should not be zero, but was %v", i), msgAndArgs...)- }- return true-}--// JSONEq asserts that two JSON strings are equivalent.-//-// assert.JSONEq(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)-//-// Returns whether the assertion was successful (true) or not (false).-func JSONEq(t TestingT, expected string, actual string, msgAndArgs ...interface{}) bool {- var expectedJSONAsInterface, actualJSONAsInterface interface{}-- if err := json.Unmarshal([]byte(expected), &expectedJSONAsInterface); err != nil {- return Fail(t, fmt.Sprintf("Expected value ('%s') is not valid json.\nJSON parsing error: '%s'", expected, err.Error()), msgAndArgs...)- }-- if err := json.Unmarshal([]byte(actual), &actualJSONAsInterface); err != nil {- return Fail(t, fmt.Sprintf("Input ('%s') needs to be valid json.\nJSON parsing error: '%s'", actual, err.Error()), msgAndArgs...)- }-- return Equal(t, expectedJSONAsInterface, actualJSONAsInterface, msgAndArgs...)-}--func typeAndKind(v interface{}) (reflect.Type, reflect.Kind) {- t := reflect.TypeOf(v)- k := t.Kind()-- if k == reflect.Ptr {- t = t.Elem()- k = t.Kind()- }- return t, k-}--// diff returns a diff of both values as long as both are of the same type and-// are a struct, map, slice or array. Otherwise it returns an empty string.-func diff(expected interface{}, actual interface{}) string {- if expected == nil || actual == nil {- return ""- }-- et, ek := typeAndKind(expected)- at, _ := typeAndKind(actual)-- if et != at {- return ""- }-- if ek != reflect.Struct && ek != reflect.Map && ek != reflect.Slice && ek != reflect.Array {- return ""- }-- spew.Config.SortKeys = true- e := spew.Sdump(expected)- a := spew.Sdump(actual)-- diff, _ := difflib.GetUnifiedDiffString(difflib.UnifiedDiff{- A: difflib.SplitLines(e),- B: difflib.SplitLines(a),- FromFile: "Expected",- FromDate: "",- ToFile: "Actual",- ToDate: "",- Context: 1,- })-- return "\n\nDiff:\n" + diff-}diff --git a/vendor/github.com/stretchr/testify/assert/doc.go b/vendor/github.com/stretchr/testify/assert/doc.godeleted file mode 100644index c9dccc4d6..000000000--- a/vendor/github.com/stretchr/testify/assert/doc.go+++ /dev/null@@ -1,45 +0,0 @@-// Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.-//-// Example Usage-//-// The following is a complete example using assert in a standard test function:-// import (-// "testing"-// "github.com/stretchr/testify/assert"-// )-//-// func TestSomething(t *testing.T) {-//-// var a string = "Hello"-// var b string = "Hello"-//-// assert.Equal(t, a, b, "The two words should be the same.")-//-// }-//-// if you assert many times, use the format below:-//-// import (-// "testing"-// "github.com/stretchr/testify/assert"-// )-//-// func TestSomething(t *testing.T) {-// assert := assert.New(t)-//-// var a string = "Hello"-// var b string = "Hello"-//-// assert.Equal(a, b, "The two words should be the same.")-// }-//-// Assertions-//-// Assertions allow you to easily write test code, and are global funcs in the `assert` package.-// All assertion functions take, as the first argument, the `*testing.T` object provided by the-// testing framework. This allows the assertion funcs to write the failings and other details to-// the correct place.-//-// Every assertion function also takes an optional string message as the final argument,-// allowing custom error messages to be appended to the message the assertion method outputs.-package assertdiff --git a/vendor/github.com/stretchr/testify/assert/errors.go b/vendor/github.com/stretchr/testify/assert/errors.godeleted file mode 100644index ac9dc9d1d..000000000--- a/vendor/github.com/stretchr/testify/assert/errors.go+++ /dev/null@@ -1,10 +0,0 @@-package assert--import (- "errors"-)--// AnError is an error instance useful for testing. If the code does not care-// about error specifics, and only needs to return the error for example, this-// error should be used to make the test code more readable.-var AnError = errors.New("assert.AnError general error for testing")diff --git a/vendor/github.com/stretchr/testify/assert/forward_assertions.go b/vendor/github.com/stretchr/testify/assert/forward_assertions.godeleted file mode 100644index b867e95ea..000000000--- a/vendor/github.com/stretchr/testify/assert/forward_assertions.go+++ /dev/null@@ -1,16 +0,0 @@-package assert--// Assertions provides assertion methods around the-// TestingT interface.-type Assertions struct {- t TestingT-}--// New makes a new Assertions object for the specified TestingT.-func New(t TestingT) *Assertions {- return &Assertions{- t: t,- }-}--//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpldiff --git a/vendor/github.com/stretchr/testify/assert/http_assertions.go b/vendor/github.com/stretchr/testify/assert/http_assertions.godeleted file mode 100644index e1b9442b5..000000000--- a/vendor/github.com/stretchr/testify/assert/http_assertions.go+++ /dev/null@@ -1,106 +0,0 @@-package assert--import (- "fmt"- "net/http"- "net/http/httptest"- "net/url"- "strings"-)--// httpCode is a helper that returns HTTP code of the response. It returns -1-// if building a new request fails.-func httpCode(handler http.HandlerFunc, method, url string, values url.Values) int {- w := httptest.NewRecorder()- req, err := http.NewRequest(method, url+"?"+values.Encode(), nil)- if err != nil {- return -1- }- handler(w, req)- return w.Code-}--// HTTPSuccess asserts that a specified handler returns a success status code.-//-// assert.HTTPSuccess(t, myHandler, "POST", "http://www.google.com", nil)-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPSuccess(t TestingT, handler http.HandlerFunc, method, url string, values url.Values) bool {- code := httpCode(handler, method, url, values)- if code == -1 {- return false- }- return code >= http.StatusOK && code <= http.StatusPartialContent-}--// HTTPRedirect asserts that a specified handler returns a redirect status code.-//-// assert.HTTPRedirect(t, myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}}-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPRedirect(t TestingT, handler http.HandlerFunc, method, url string, values url.Values) bool {- code := httpCode(handler, method, url, values)- if code == -1 {- return false- }- return code >= http.StatusMultipleChoices && code <= http.StatusTemporaryRedirect-}--// HTTPError asserts that a specified handler returns an error status code.-//-// assert.HTTPError(t, myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}}-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPError(t TestingT, handler http.HandlerFunc, method, url string, values url.Values) bool {- code := httpCode(handler, method, url, values)- if code == -1 {- return false- }- return code >= http.StatusBadRequest-}--// HTTPBody is a helper that returns HTTP body of the response. It returns-// empty string if building a new request fails.-func HTTPBody(handler http.HandlerFunc, method, url string, values url.Values) string {- w := httptest.NewRecorder()- req, err := http.NewRequest(method, url+"?"+values.Encode(), nil)- if err != nil {- return ""- }- handler(w, req)- return w.Body.String()-}--// HTTPBodyContains asserts that a specified handler returns a-// body that contains a string.-//-// assert.HTTPBodyContains(t, myHandler, "www.google.com", nil, "I'm Feeling Lucky")-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, str interface{}) bool {- body := HTTPBody(handler, method, url, values)-- contains := strings.Contains(body, fmt.Sprint(str))- if !contains {- Fail(t, fmt.Sprintf("Expected response body for \"%s\" to contain \"%s\" but found \"%s\"", url+"?"+values.Encode(), str, body))- }-- return contains-}--// HTTPBodyNotContains asserts that a specified handler returns a-// body that does not contain a string.-//-// assert.HTTPBodyNotContains(t, myHandler, "www.google.com", nil, "I'm Feeling Lucky")-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, str interface{}) bool {- body := HTTPBody(handler, method, url, values)-- contains := strings.Contains(body, fmt.Sprint(str))- if contains {- Fail(t, "Expected response body for %s to NOT contain \"%s\" but found \"%s\"", url+"?"+values.Encode(), str, body)- }-- return !contains-}diff --git a/vendor/github.com/stretchr/testify/require/doc.go b/vendor/github.com/stretchr/testify/require/doc.godeleted file mode 100644index 169de3922..000000000--- a/vendor/github.com/stretchr/testify/require/doc.go+++ /dev/null@@ -1,28 +0,0 @@-// Package require implements the same assertions as the `assert` package but-// stops test execution when a test fails.-//-// Example Usage-//-// The following is a complete example using require in a standard test function:-// import (-// "testing"-// "github.com/stretchr/testify/require"-// )-//-// func TestSomething(t *testing.T) {-//-// var a string = "Hello"-// var b string = "Hello"-//-// require.Equal(t, a, b, "The two words should be the same.")-//-// }-//-// Assertions-//-// The `require` package have same global functions as in the `assert` package,-// but instead of returning a boolean result they call `t.FailNow()`.-//-// Every assertion function also takes an optional string message as the final argument,-// allowing custom error messages to be appended to the message the assertion method outputs.-package requirediff --git a/vendor/github.com/stretchr/testify/require/forward_requirements.go b/vendor/github.com/stretchr/testify/require/forward_requirements.godeleted file mode 100644index d3c2ab9bc..000000000--- a/vendor/github.com/stretchr/testify/require/forward_requirements.go+++ /dev/null@@ -1,16 +0,0 @@-package require--// Assertions provides assertion methods around the-// TestingT interface.-type Assertions struct {- t TestingT-}--// New makes a new Assertions object for the specified TestingT.-func New(t TestingT) *Assertions {- return &Assertions{- t: t,- }-}--//go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpldiff --git a/vendor/github.com/stretchr/testify/require/require.go b/vendor/github.com/stretchr/testify/require/require.godeleted file mode 100644index 1bcfcb0d9..000000000--- a/vendor/github.com/stretchr/testify/require/require.go+++ /dev/null@@ -1,464 +0,0 @@-/*-* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen-* THIS FILE MUST NOT BE EDITED BY HAND-*/--package require--import (-- assert "github.com/stretchr/testify/assert"- http "net/http"- url "net/url"- time "time"-)---// Condition uses a Comparison to assert a complex condition.-func Condition(t TestingT, comp assert.Comparison, msgAndArgs ...interface{}) {- if !assert.Condition(t, comp, msgAndArgs...) {- t.FailNow()- }-}---// Contains asserts that the specified string, list(array, slice...) or map contains the-// specified substring or element.-//-// assert.Contains(t, "Hello World", "World", "But 'Hello World' does contain 'World'")-// assert.Contains(t, ["Hello", "World"], "World", "But ["Hello", "World"] does contain 'World'")-// assert.Contains(t, {"Hello": "World"}, "Hello", "But {'Hello': 'World'} does contain 'Hello'")-//-// Returns whether the assertion was successful (true) or not (false).-func Contains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{}) {- if !assert.Contains(t, s, contains, msgAndArgs...) {- t.FailNow()- }-}---// Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either-// a slice or a channel with len == 0.-//-// assert.Empty(t, obj)-//-// Returns whether the assertion was successful (true) or not (false).-func Empty(t TestingT, object interface{}, msgAndArgs ...interface{}) {- if !assert.Empty(t, object, msgAndArgs...) {- t.FailNow()- }-}---// Equal asserts that two objects are equal.-//-// assert.Equal(t, 123, 123, "123 and 123 should be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func Equal(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {- if !assert.Equal(t, expected, actual, msgAndArgs...) {- t.FailNow()- }-}---// EqualError asserts that a function returned an error (i.e. not `nil`)-// and that it is equal to the provided error.-//-// actualObj, err := SomeFunction()-// if assert.Error(t, err, "An error was expected") {-// assert.Equal(t, err, expectedError)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func EqualError(t TestingT, theError error, errString string, msgAndArgs ...interface{}) {- if !assert.EqualError(t, theError, errString, msgAndArgs...) {- t.FailNow()- }-}---// EqualValues asserts that two objects are equal or convertable to the same types-// and equal.-//-// assert.EqualValues(t, uint32(123), int32(123), "123 and 123 should be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func EqualValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {- if !assert.EqualValues(t, expected, actual, msgAndArgs...) {- t.FailNow()- }-}---// Error asserts that a function returned an error (i.e. not `nil`).-//-// actualObj, err := SomeFunction()-// if assert.Error(t, err, "An error was expected") {-// assert.Equal(t, err, expectedError)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func Error(t TestingT, err error, msgAndArgs ...interface{}) {- if !assert.Error(t, err, msgAndArgs...) {- t.FailNow()- }-}---// Exactly asserts that two objects are equal is value and type.-//-// assert.Exactly(t, int32(123), int64(123), "123 and 123 should NOT be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func Exactly(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {- if !assert.Exactly(t, expected, actual, msgAndArgs...) {- t.FailNow()- }-}---// Fail reports a failure through-func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) {- if !assert.Fail(t, failureMessage, msgAndArgs...) {- t.FailNow()- }-}---// FailNow fails test-func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) {- if !assert.FailNow(t, failureMessage, msgAndArgs...) {- t.FailNow()- }-}---// False asserts that the specified value is false.-//-// assert.False(t, myBool, "myBool should be false")-//-// Returns whether the assertion was successful (true) or not (false).-func False(t TestingT, value bool, msgAndArgs ...interface{}) {- if !assert.False(t, value, msgAndArgs...) {- t.FailNow()- }-}---// HTTPBodyContains asserts that a specified handler returns a-// body that contains a string.-//-// assert.HTTPBodyContains(t, myHandler, "www.google.com", nil, "I'm Feeling Lucky")-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}) {- if !assert.HTTPBodyContains(t, handler, method, url, values, str) {- t.FailNow()- }-}---// HTTPBodyNotContains asserts that a specified handler returns a-// body that does not contain a string.-//-// assert.HTTPBodyNotContains(t, myHandler, "www.google.com", nil, "I'm Feeling Lucky")-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}) {- if !assert.HTTPBodyNotContains(t, handler, method, url, values, str) {- t.FailNow()- }-}---// HTTPError asserts that a specified handler returns an error status code.-//-// assert.HTTPError(t, myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}}-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPError(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values) {- if !assert.HTTPError(t, handler, method, url, values) {- t.FailNow()- }-}---// HTTPRedirect asserts that a specified handler returns a redirect status code.-//-// assert.HTTPRedirect(t, myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}}-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPRedirect(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values) {- if !assert.HTTPRedirect(t, handler, method, url, values) {- t.FailNow()- }-}---// HTTPSuccess asserts that a specified handler returns a success status code.-//-// assert.HTTPSuccess(t, myHandler, "POST", "http://www.google.com", nil)-//-// Returns whether the assertion was successful (true) or not (false).-func HTTPSuccess(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values) {- if !assert.HTTPSuccess(t, handler, method, url, values) {- t.FailNow()- }-}---// Implements asserts that an object is implemented by the specified interface.-//-// assert.Implements(t, (*MyInterface)(nil), new(MyObject), "MyObject")-func Implements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) {- if !assert.Implements(t, interfaceObject, object, msgAndArgs...) {- t.FailNow()- }-}---// InDelta asserts that the two numerals are within delta of each other.-//-// assert.InDelta(t, math.Pi, (22 / 7.0), 0.01)-//-// Returns whether the assertion was successful (true) or not (false).-func InDelta(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {- if !assert.InDelta(t, expected, actual, delta, msgAndArgs...) {- t.FailNow()- }-}---// InDeltaSlice is the same as InDelta, except it compares two slices.-func InDeltaSlice(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {- if !assert.InDeltaSlice(t, expected, actual, delta, msgAndArgs...) {- t.FailNow()- }-}---// InEpsilon asserts that expected and actual have a relative error less than epsilon-//-// Returns whether the assertion was successful (true) or not (false).-func InEpsilon(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {- if !assert.InEpsilon(t, expected, actual, epsilon, msgAndArgs...) {- t.FailNow()- }-}---// InEpsilonSlice is the same as InEpsilon, except it compares two slices.-func InEpsilonSlice(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {- if !assert.InEpsilonSlice(t, expected, actual, delta, msgAndArgs...) {- t.FailNow()- }-}---// IsType asserts that the specified objects are of the same type.-func IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{}) {- if !assert.IsType(t, expectedType, object, msgAndArgs...) {- t.FailNow()- }-}---// JSONEq asserts that two JSON strings are equivalent.-//-// assert.JSONEq(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)-//-// Returns whether the assertion was successful (true) or not (false).-func JSONEq(t TestingT, expected string, actual string, msgAndArgs ...interface{}) {- if !assert.JSONEq(t, expected, actual, msgAndArgs...) {- t.FailNow()- }-}---// Len asserts that the specified object has specific length.-// Len also fails if the object has a type that len() not accept.-//-// assert.Len(t, mySlice, 3, "The size of slice is not 3")-//-// Returns whether the assertion was successful (true) or not (false).-func Len(t TestingT, object interface{}, length int, msgAndArgs ...interface{}) {- if !assert.Len(t, object, length, msgAndArgs...) {- t.FailNow()- }-}---// Nil asserts that the specified object is nil.-//-// assert.Nil(t, err, "err should be nothing")-//-// Returns whether the assertion was successful (true) or not (false).-func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) {- if !assert.Nil(t, object, msgAndArgs...) {- t.FailNow()- }-}---// NoError asserts that a function returned no error (i.e. `nil`).-//-// actualObj, err := SomeFunction()-// if assert.NoError(t, err) {-// assert.Equal(t, actualObj, expectedObj)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func NoError(t TestingT, err error, msgAndArgs ...interface{}) {- if !assert.NoError(t, err, msgAndArgs...) {- t.FailNow()- }-}---// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the-// specified substring or element.-//-// assert.NotContains(t, "Hello World", "Earth", "But 'Hello World' does NOT contain 'Earth'")-// assert.NotContains(t, ["Hello", "World"], "Earth", "But ['Hello', 'World'] does NOT contain 'Earth'")-// assert.NotContains(t, {"Hello": "World"}, "Earth", "But {'Hello': 'World'} does NOT contain 'Earth'")-//-// Returns whether the assertion was successful (true) or not (false).-func NotContains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{}) {- if !assert.NotContains(t, s, contains, msgAndArgs...) {- t.FailNow()- }-}---// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either-// a slice or a channel with len == 0.-//-// if assert.NotEmpty(t, obj) {-// assert.Equal(t, "two", obj[1])-// }-//-// Returns whether the assertion was successful (true) or not (false).-func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{}) {- if !assert.NotEmpty(t, object, msgAndArgs...) {- t.FailNow()- }-}---// NotEqual asserts that the specified values are NOT equal.-//-// assert.NotEqual(t, obj1, obj2, "two objects shouldn't be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func NotEqual(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {- if !assert.NotEqual(t, expected, actual, msgAndArgs...) {- t.FailNow()- }-}---// NotNil asserts that the specified object is not nil.-//-// assert.NotNil(t, err, "err should be something")-//-// Returns whether the assertion was successful (true) or not (false).-func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) {- if !assert.NotNil(t, object, msgAndArgs...) {- t.FailNow()- }-}---// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.-//-// assert.NotPanics(t, func(){-// RemainCalm()-// }, "Calling RemainCalm() should NOT panic")-//-// Returns whether the assertion was successful (true) or not (false).-func NotPanics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{}) {- if !assert.NotPanics(t, f, msgAndArgs...) {- t.FailNow()- }-}---// NotRegexp asserts that a specified regexp does not match a string.-//-// assert.NotRegexp(t, regexp.MustCompile("starts"), "it's starting")-// assert.NotRegexp(t, "^start", "it's not starting")-//-// Returns whether the assertion was successful (true) or not (false).-func NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) {- if !assert.NotRegexp(t, rx, str, msgAndArgs...) {- t.FailNow()- }-}---// NotZero asserts that i is not the zero value for its type and returns the truth.-func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) {- if !assert.NotZero(t, i, msgAndArgs...) {- t.FailNow()- }-}---// Panics asserts that the code inside the specified PanicTestFunc panics.-//-// assert.Panics(t, func(){-// GoCrazy()-// }, "Calling GoCrazy() should panic")-//-// Returns whether the assertion was successful (true) or not (false).-func Panics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{}) {- if !assert.Panics(t, f, msgAndArgs...) {- t.FailNow()- }-}---// Regexp asserts that a specified regexp matches a string.-//-// assert.Regexp(t, regexp.MustCompile("start"), "it's starting")-// assert.Regexp(t, "start...$", "it's not starting")-//-// Returns whether the assertion was successful (true) or not (false).-func Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) {- if !assert.Regexp(t, rx, str, msgAndArgs...) {- t.FailNow()- }-}---// True asserts that the specified value is true.-//-// assert.True(t, myBool, "myBool should be true")-//-// Returns whether the assertion was successful (true) or not (false).-func True(t TestingT, value bool, msgAndArgs ...interface{}) {- if !assert.True(t, value, msgAndArgs...) {- t.FailNow()- }-}---// WithinDuration asserts that the two times are within duration delta of each other.-//-// assert.WithinDuration(t, time.Now(), time.Now(), 10*time.Second, "The difference should not be more than 10s")-//-// Returns whether the assertion was successful (true) or not (false).-func WithinDuration(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...interface{}) {- if !assert.WithinDuration(t, expected, actual, delta, msgAndArgs...) {- t.FailNow()- }-}---// Zero asserts that i is the zero value for its type and returns the truth.-func Zero(t TestingT, i interface{}, msgAndArgs ...interface{}) {- if !assert.Zero(t, i, msgAndArgs...) {- t.FailNow()- }-}diff --git a/vendor/github.com/stretchr/testify/require/require.go.tmpl b/vendor/github.com/stretchr/testify/require/require.go.tmpldeleted file mode 100644index ab1b1e9fd..000000000--- a/vendor/github.com/stretchr/testify/require/require.go.tmpl+++ /dev/null@@ -1,6 +0,0 @@-{{.Comment}}-func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {- if !assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) {- t.FailNow()- }-}diff --git a/vendor/github.com/stretchr/testify/require/require_forward.go b/vendor/github.com/stretchr/testify/require/require_forward.godeleted file mode 100644index 58324f105..000000000--- a/vendor/github.com/stretchr/testify/require/require_forward.go+++ /dev/null@@ -1,388 +0,0 @@-/*-* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen-* THIS FILE MUST NOT BE EDITED BY HAND-*/--package require--import (-- assert "github.com/stretchr/testify/assert"- http "net/http"- url "net/url"- time "time"-)---// Condition uses a Comparison to assert a complex condition.-func (a *Assertions) Condition(comp assert.Comparison, msgAndArgs ...interface{}) {- Condition(a.t, comp, msgAndArgs...)-}---// Contains asserts that the specified string, list(array, slice...) or map contains the-// specified substring or element.-//-// a.Contains("Hello World", "World", "But 'Hello World' does contain 'World'")-// a.Contains(["Hello", "World"], "World", "But ["Hello", "World"] does contain 'World'")-// a.Contains({"Hello": "World"}, "Hello", "But {'Hello': 'World'} does contain 'Hello'")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Contains(s interface{}, contains interface{}, msgAndArgs ...interface{}) {- Contains(a.t, s, contains, msgAndArgs...)-}---// Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either-// a slice or a channel with len == 0.-//-// a.Empty(obj)-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Empty(object interface{}, msgAndArgs ...interface{}) {- Empty(a.t, object, msgAndArgs...)-}---// Equal asserts that two objects are equal.-//-// a.Equal(123, 123, "123 and 123 should be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Equal(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {- Equal(a.t, expected, actual, msgAndArgs...)-}---// EqualError asserts that a function returned an error (i.e. not `nil`)-// and that it is equal to the provided error.-//-// actualObj, err := SomeFunction()-// if assert.Error(t, err, "An error was expected") {-// assert.Equal(t, err, expectedError)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) EqualError(theError error, errString string, msgAndArgs ...interface{}) {- EqualError(a.t, theError, errString, msgAndArgs...)-}---// EqualValues asserts that two objects are equal or convertable to the same types-// and equal.-//-// a.EqualValues(uint32(123), int32(123), "123 and 123 should be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) EqualValues(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {- EqualValues(a.t, expected, actual, msgAndArgs...)-}---// Error asserts that a function returned an error (i.e. not `nil`).-//-// actualObj, err := SomeFunction()-// if a.Error(err, "An error was expected") {-// assert.Equal(t, err, expectedError)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Error(err error, msgAndArgs ...interface{}) {- Error(a.t, err, msgAndArgs...)-}---// Exactly asserts that two objects are equal is value and type.-//-// a.Exactly(int32(123), int64(123), "123 and 123 should NOT be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Exactly(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {- Exactly(a.t, expected, actual, msgAndArgs...)-}---// Fail reports a failure through-func (a *Assertions) Fail(failureMessage string, msgAndArgs ...interface{}) {- Fail(a.t, failureMessage, msgAndArgs...)-}---// FailNow fails test-func (a *Assertions) FailNow(failureMessage string, msgAndArgs ...interface{}) {- FailNow(a.t, failureMessage, msgAndArgs...)-}---// False asserts that the specified value is false.-//-// a.False(myBool, "myBool should be false")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) False(value bool, msgAndArgs ...interface{}) {- False(a.t, value, msgAndArgs...)-}---// HTTPBodyContains asserts that a specified handler returns a-// body that contains a string.-//-// a.HTTPBodyContains(myHandler, "www.google.com", nil, "I'm Feeling Lucky")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPBodyContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}) {- HTTPBodyContains(a.t, handler, method, url, values, str)-}---// HTTPBodyNotContains asserts that a specified handler returns a-// body that does not contain a string.-//-// a.HTTPBodyNotContains(myHandler, "www.google.com", nil, "I'm Feeling Lucky")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPBodyNotContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}) {- HTTPBodyNotContains(a.t, handler, method, url, values, str)-}---// HTTPError asserts that a specified handler returns an error status code.-//-// a.HTTPError(myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}}-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPError(handler http.HandlerFunc, method string, url string, values url.Values) {- HTTPError(a.t, handler, method, url, values)-}---// HTTPRedirect asserts that a specified handler returns a redirect status code.-//-// a.HTTPRedirect(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}}-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPRedirect(handler http.HandlerFunc, method string, url string, values url.Values) {- HTTPRedirect(a.t, handler, method, url, values)-}---// HTTPSuccess asserts that a specified handler returns a success status code.-//-// a.HTTPSuccess(myHandler, "POST", "http://www.google.com", nil)-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) HTTPSuccess(handler http.HandlerFunc, method string, url string, values url.Values) {- HTTPSuccess(a.t, handler, method, url, values)-}---// Implements asserts that an object is implemented by the specified interface.-//-// a.Implements((*MyInterface)(nil), new(MyObject), "MyObject")-func (a *Assertions) Implements(interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) {- Implements(a.t, interfaceObject, object, msgAndArgs...)-}---// InDelta asserts that the two numerals are within delta of each other.-//-// a.InDelta(math.Pi, (22 / 7.0), 0.01)-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) InDelta(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {- InDelta(a.t, expected, actual, delta, msgAndArgs...)-}---// InDeltaSlice is the same as InDelta, except it compares two slices.-func (a *Assertions) InDeltaSlice(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {- InDeltaSlice(a.t, expected, actual, delta, msgAndArgs...)-}---// InEpsilon asserts that expected and actual have a relative error less than epsilon-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) InEpsilon(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {- InEpsilon(a.t, expected, actual, epsilon, msgAndArgs...)-}---// InEpsilonSlice is the same as InEpsilon, except it compares two slices.-func (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {- InEpsilonSlice(a.t, expected, actual, delta, msgAndArgs...)-}---// IsType asserts that the specified objects are of the same type.-func (a *Assertions) IsType(expectedType interface{}, object interface{}, msgAndArgs ...interface{}) {- IsType(a.t, expectedType, object, msgAndArgs...)-}---// JSONEq asserts that two JSON strings are equivalent.-//-// a.JSONEq(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) JSONEq(expected string, actual string, msgAndArgs ...interface{}) {- JSONEq(a.t, expected, actual, msgAndArgs...)-}---// Len asserts that the specified object has specific length.-// Len also fails if the object has a type that len() not accept.-//-// a.Len(mySlice, 3, "The size of slice is not 3")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{}) {- Len(a.t, object, length, msgAndArgs...)-}---// Nil asserts that the specified object is nil.-//-// a.Nil(err, "err should be nothing")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Nil(object interface{}, msgAndArgs ...interface{}) {- Nil(a.t, object, msgAndArgs...)-}---// NoError asserts that a function returned no error (i.e. `nil`).-//-// actualObj, err := SomeFunction()-// if a.NoError(err) {-// assert.Equal(t, actualObj, expectedObj)-// }-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NoError(err error, msgAndArgs ...interface{}) {- NoError(a.t, err, msgAndArgs...)-}---// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the-// specified substring or element.-//-// a.NotContains("Hello World", "Earth", "But 'Hello World' does NOT contain 'Earth'")-// a.NotContains(["Hello", "World"], "Earth", "But ['Hello', 'World'] does NOT contain 'Earth'")-// a.NotContains({"Hello": "World"}, "Earth", "But {'Hello': 'World'} does NOT contain 'Earth'")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotContains(s interface{}, contains interface{}, msgAndArgs ...interface{}) {- NotContains(a.t, s, contains, msgAndArgs...)-}---// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either-// a slice or a channel with len == 0.-//-// if a.NotEmpty(obj) {-// assert.Equal(t, "two", obj[1])-// }-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotEmpty(object interface{}, msgAndArgs ...interface{}) {- NotEmpty(a.t, object, msgAndArgs...)-}---// NotEqual asserts that the specified values are NOT equal.-//-// a.NotEqual(obj1, obj2, "two objects shouldn't be equal")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotEqual(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {- NotEqual(a.t, expected, actual, msgAndArgs...)-}---// NotNil asserts that the specified object is not nil.-//-// a.NotNil(err, "err should be something")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{}) {- NotNil(a.t, object, msgAndArgs...)-}---// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.-//-// a.NotPanics(func(){-// RemainCalm()-// }, "Calling RemainCalm() should NOT panic")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotPanics(f assert.PanicTestFunc, msgAndArgs ...interface{}) {- NotPanics(a.t, f, msgAndArgs...)-}---// NotRegexp asserts that a specified regexp does not match a string.-//-// a.NotRegexp(regexp.MustCompile("starts"), "it's starting")-// a.NotRegexp("^start", "it's not starting")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) NotRegexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) {- NotRegexp(a.t, rx, str, msgAndArgs...)-}---// NotZero asserts that i is not the zero value for its type and returns the truth.-func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) {- NotZero(a.t, i, msgAndArgs...)-}---// Panics asserts that the code inside the specified PanicTestFunc panics.-//-// a.Panics(func(){-// GoCrazy()-// }, "Calling GoCrazy() should panic")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Panics(f assert.PanicTestFunc, msgAndArgs ...interface{}) {- Panics(a.t, f, msgAndArgs...)-}---// Regexp asserts that a specified regexp matches a string.-//-// a.Regexp(regexp.MustCompile("start"), "it's starting")-// a.Regexp("start...$", "it's not starting")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) {- Regexp(a.t, rx, str, msgAndArgs...)-}---// True asserts that the specified value is true.-//-// a.True(myBool, "myBool should be true")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) True(value bool, msgAndArgs ...interface{}) {- True(a.t, value, msgAndArgs...)-}---// WithinDuration asserts that the two times are within duration delta of each other.-//-// a.WithinDuration(time.Now(), time.Now(), 10*time.Second, "The difference should not be more than 10s")-//-// Returns whether the assertion was successful (true) or not (false).-func (a *Assertions) WithinDuration(expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...interface{}) {- WithinDuration(a.t, expected, actual, delta, msgAndArgs...)-}---// Zero asserts that i is the zero value for its type and returns the truth.-func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) {- Zero(a.t, i, msgAndArgs...)-}diff --git a/vendor/github.com/stretchr/testify/require/require_forward.go.tmpl b/vendor/github.com/stretchr/testify/require/require_forward.go.tmpldeleted file mode 100644index b93569e0a..000000000--- a/vendor/github.com/stretchr/testify/require/require_forward.go.tmpl+++ /dev/null@@ -1,4 +0,0 @@-{{.CommentWithoutT "a"}}-func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) {- {{.DocInfo.Name}}(a.t, {{.ForwardedParams}})-}diff --git a/vendor/github.com/stretchr/testify/require/requirements.go b/vendor/github.com/stretchr/testify/require/requirements.godeleted file mode 100644index 41147562d..000000000--- a/vendor/github.com/stretchr/testify/require/requirements.go+++ /dev/null@@ -1,9 +0,0 @@-package require--// TestingT is an interface wrapper around *testing.T-type TestingT interface {- Errorf(format string, args ...interface{})- FailNow()-}--//go:generate go run ../_codegen/main.go -output-package=require -template=require.go.tmpldiff --git a/vendor/golang.org/x/crypto/AUTHORS b/vendor/golang.org/x/crypto/AUTHORSnew file mode 100644index 000000000..15167cd74--- /dev/null+++ b/vendor/golang.org/x/crypto/AUTHORS@@ -0,0 +1,3 @@+# This source code refers to The Go Authors for copyright purposes.+# The master list of authors is in the main Go distribution,+# visible at http://tip.golang.org/AUTHORS.diff --git a/vendor/golang.org/x/crypto/CONTRIBUTORS b/vendor/golang.org/x/crypto/CONTRIBUTORSnew file mode 100644index 000000000..1c4577e96--- /dev/null+++ b/vendor/golang.org/x/crypto/CONTRIBUTORS@@ -0,0 +1,3 @@+# This source code was written by the Go contributors.+# The master list of contributors is in the main Go distribution,+# visible at http://tip.golang.org/CONTRIBUTORS.diff --git a/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go b/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.goindex ed46ba2f2..646886477 100644--- a/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go+++ b/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go@@ -13,7 +13,7 @@ example, by using nonce 1 for the first message, nonce 2 for the secondmessage, etc. Nonces are long enough that randomly generated nonces havenegligible risk of collision.-This package is interoperable with NaCl: http://nacl.cr.yp.to/secretbox.html.+This package is interoperable with NaCl: https://nacl.cr.yp.to/secretbox.html.*/package secretboxdiff --git a/vendor/golang.org/x/crypto/poly1305/const_amd64.s b/vendor/golang.org/x/crypto/poly1305/const_amd64.sdeleted file mode 100644index 8e861f337..000000000--- a/vendor/golang.org/x/crypto/poly1305/const_amd64.s+++ /dev/null@@ -1,45 +0,0 @@-// Copyright 2012 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.--// This code was translated into a form compatible with 6a from the public-// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html--// +build amd64,!gccgo,!appengine--DATA ·SCALE(SB)/8, $0x37F4000000000000-GLOBL ·SCALE(SB), 8, $8-DATA ·TWO32(SB)/8, $0x41F0000000000000-GLOBL ·TWO32(SB), 8, $8-DATA ·TWO64(SB)/8, $0x43F0000000000000-GLOBL ·TWO64(SB), 8, $8-DATA ·TWO96(SB)/8, $0x45F0000000000000-GLOBL ·TWO96(SB), 8, $8-DATA ·ALPHA32(SB)/8, $0x45E8000000000000-GLOBL ·ALPHA32(SB), 8, $8-DATA ·ALPHA64(SB)/8, $0x47E8000000000000-GLOBL ·ALPHA64(SB), 8, $8-DATA ·ALPHA96(SB)/8, $0x49E8000000000000-GLOBL ·ALPHA96(SB), 8, $8-DATA ·ALPHA130(SB)/8, $0x4C08000000000000-GLOBL ·ALPHA130(SB), 8, $8-DATA ·DOFFSET0(SB)/8, $0x4330000000000000-GLOBL ·DOFFSET0(SB), 8, $8-DATA ·DOFFSET1(SB)/8, $0x4530000000000000-GLOBL ·DOFFSET1(SB), 8, $8-DATA ·DOFFSET2(SB)/8, $0x4730000000000000-GLOBL ·DOFFSET2(SB), 8, $8-DATA ·DOFFSET3(SB)/8, $0x4930000000000000-GLOBL ·DOFFSET3(SB), 8, $8-DATA ·DOFFSET3MINUSTWO128(SB)/8, $0x492FFFFE00000000-GLOBL ·DOFFSET3MINUSTWO128(SB), 8, $8-DATA ·HOFFSET0(SB)/8, $0x43300001FFFFFFFB-GLOBL ·HOFFSET0(SB), 8, $8-DATA ·HOFFSET1(SB)/8, $0x45300001FFFFFFFE-GLOBL ·HOFFSET1(SB), 8, $8-DATA ·HOFFSET2(SB)/8, $0x47300001FFFFFFFE-GLOBL ·HOFFSET2(SB), 8, $8-DATA ·HOFFSET3(SB)/8, $0x49300003FFFFFFFE-GLOBL ·HOFFSET3(SB), 8, $8-DATA ·ROUNDING(SB)/2, $0x137f-GLOBL ·ROUNDING(SB), 8, $2diff --git a/vendor/golang.org/x/crypto/poly1305/poly1305_amd64.s b/vendor/golang.org/x/crypto/poly1305/poly1305_amd64.sdeleted file mode 100644index f8d4ee928..000000000--- a/vendor/golang.org/x/crypto/poly1305/poly1305_amd64.s+++ /dev/null@@ -1,497 +0,0 @@-// Copyright 2012 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.--// This code was translated into a form compatible with 6a from the public-// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html--// +build amd64,!gccgo,!appengine--// func poly1305(out *[16]byte, m *byte, mlen uint64, key *[32]key)-TEXT ·poly1305(SB),0,$224-32- MOVQ out+0(FP),DI- MOVQ m+8(FP),SI- MOVQ mlen+16(FP),DX- MOVQ key+24(FP),CX-- MOVQ SP,R11- MOVQ $31,R9- NOTQ R9- ANDQ R9,SP- ADDQ $32,SP-- MOVQ R11,32(SP)- MOVQ R12,40(SP)- MOVQ R13,48(SP)- MOVQ R14,56(SP)- MOVQ R15,64(SP)- MOVQ BX,72(SP)- MOVQ BP,80(SP)- FLDCW ·ROUNDING(SB)- MOVL 0(CX),R8- MOVL 4(CX),R9- MOVL 8(CX),AX- MOVL 12(CX),R10- MOVQ DI,88(SP)- MOVQ CX,96(SP)- MOVL $0X43300000,108(SP)- MOVL $0X45300000,116(SP)- MOVL $0X47300000,124(SP)- MOVL $0X49300000,132(SP)- ANDL $0X0FFFFFFF,R8- ANDL $0X0FFFFFFC,R9- ANDL $0X0FFFFFFC,AX- ANDL $0X0FFFFFFC,R10- MOVL R8,104(SP)- MOVL R9,112(SP)- MOVL AX,120(SP)- MOVL R10,128(SP)- FMOVD 104(SP), F0- FSUBD ·DOFFSET0(SB), F0- FMOVD 112(SP), F0- FSUBD ·DOFFSET1(SB), F0- FMOVD 120(SP), F0- FSUBD ·DOFFSET2(SB), F0- FMOVD 128(SP), F0- FSUBD ·DOFFSET3(SB), F0- FXCHD F0, F3- FMOVDP F0, 136(SP)- FXCHD F0, F1- FMOVD F0, 144(SP)- FMULD ·SCALE(SB), F0- FMOVDP F0, 152(SP)- FMOVD F0, 160(SP)- FMULD ·SCALE(SB), F0- FMOVDP F0, 168(SP)- FMOVD F0, 176(SP)- FMULD ·SCALE(SB), F0- FMOVDP F0, 184(SP)- FLDZ- FLDZ- FLDZ- FLDZ- CMPQ DX,$16- JB ADDATMOST15BYTES- INITIALATLEAST16BYTES:- MOVL 12(SI),DI- MOVL 8(SI),CX- MOVL 4(SI),R8- MOVL 0(SI),R9- MOVL DI,128(SP)- MOVL CX,120(SP)- MOVL R8,112(SP)- MOVL R9,104(SP)- ADDQ $16,SI- SUBQ $16,DX- FXCHD F0, F3- FADDD 128(SP), F0- FSUBD ·DOFFSET3MINUSTWO128(SB), F0- FXCHD F0, F1- FADDD 112(SP), F0- FSUBD ·DOFFSET1(SB), F0- FXCHD F0, F2- FADDD 120(SP), F0- FSUBD ·DOFFSET2(SB), F0- FXCHD F0, F3- FADDD 104(SP), F0- FSUBD ·DOFFSET0(SB), F0- CMPQ DX,$16- JB MULTIPLYADDATMOST15BYTES- MULTIPLYADDATLEAST16BYTES:- MOVL 12(SI),DI- MOVL 8(SI),CX- MOVL 4(SI),R8- MOVL 0(SI),R9- MOVL DI,128(SP)- MOVL CX,120(SP)- MOVL R8,112(SP)- MOVL R9,104(SP)- ADDQ $16,SI- SUBQ $16,DX- FMOVD ·ALPHA130(SB), F0- FADDD F2,F0- FSUBD ·ALPHA130(SB), F0- FSUBD F0,F2- FMULD ·SCALE(SB), F0- FMOVD ·ALPHA32(SB), F0- FADDD F2,F0- FSUBD ·ALPHA32(SB), F0- FSUBD F0,F2- FXCHD F0, F2- FADDDP F0,F1- FMOVD ·ALPHA64(SB), F0- FADDD F4,F0- FSUBD ·ALPHA64(SB), F0- FSUBD F0,F4- FMOVD ·ALPHA96(SB), F0- FADDD F6,F0- FSUBD ·ALPHA96(SB), F0- FSUBD F0,F6- FXCHD F0, F6- FADDDP F0,F1- FXCHD F0, F3- FADDDP F0,F5- FXCHD F0, F3- FADDDP F0,F1- FMOVD 176(SP), F0- FMULD F3,F0- FMOVD 160(SP), F0- FMULD F4,F0- FMOVD 144(SP), F0- FMULD F5,F0- FMOVD 136(SP), F0- FMULDP F0,F6- FMOVD 160(SP), F0- FMULD F4,F0- FADDDP F0,F3- FMOVD 144(SP), F0- FMULD F4,F0- FADDDP F0,F2- FMOVD 136(SP), F0- FMULD F4,F0- FADDDP F0,F1- FMOVD 184(SP), F0- FMULDP F0,F4- FXCHD F0, F3- FADDDP F0,F5- FMOVD 144(SP), F0- FMULD F4,F0- FADDDP F0,F2- FMOVD 136(SP), F0- FMULD F4,F0- FADDDP F0,F1- FMOVD 184(SP), F0- FMULD F4,F0- FADDDP F0,F3- FMOVD 168(SP), F0- FMULDP F0,F4- FXCHD F0, F3- FADDDP F0,F4- FMOVD 136(SP), F0- FMULD F5,F0- FADDDP F0,F1- FXCHD F0, F3- FMOVD 184(SP), F0- FMULD F5,F0- FADDDP F0,F3- FXCHD F0, F1- FMOVD 168(SP), F0- FMULD F5,F0- FADDDP F0,F1- FMOVD 152(SP), F0- FMULDP F0,F5- FXCHD F0, F4- FADDDP F0,F1- CMPQ DX,$16- FXCHD F0, F2- FMOVD 128(SP), F0- FSUBD ·DOFFSET3MINUSTWO128(SB), F0- FADDDP F0,F1- FXCHD F0, F1- FMOVD 120(SP), F0- FSUBD ·DOFFSET2(SB), F0- FADDDP F0,F1- FXCHD F0, F3- FMOVD 112(SP), F0- FSUBD ·DOFFSET1(SB), F0- FADDDP F0,F1- FXCHD F0, F2- FMOVD 104(SP), F0- FSUBD ·DOFFSET0(SB), F0- FADDDP F0,F1- JAE MULTIPLYADDATLEAST16BYTES- MULTIPLYADDATMOST15BYTES:- FMOVD ·ALPHA130(SB), F0- FADDD F2,F0- FSUBD ·ALPHA130(SB), F0- FSUBD F0,F2- FMULD ·SCALE(SB), F0- FMOVD ·ALPHA32(SB), F0- FADDD F2,F0- FSUBD ·ALPHA32(SB), F0- FSUBD F0,F2- FMOVD ·ALPHA64(SB), F0- FADDD F5,F0- FSUBD ·ALPHA64(SB), F0- FSUBD F0,F5- FMOVD ·ALPHA96(SB), F0- FADDD F7,F0- FSUBD ·ALPHA96(SB), F0- FSUBD F0,F7- FXCHD F0, F7- FADDDP F0,F1- FXCHD F0, F5- FADDDP F0,F1- FXCHD F0, F3- FADDDP F0,F5- FADDDP F0,F1- FMOVD 176(SP), F0- FMULD F1,F0- FMOVD 160(SP), F0- FMULD F2,F0- FMOVD 144(SP), F0- FMULD F3,F0- FMOVD 136(SP), F0- FMULDP F0,F4- FMOVD 160(SP), F0- FMULD F5,F0- FADDDP F0,F3- FMOVD 144(SP), F0- FMULD F5,F0- FADDDP F0,F2- FMOVD 136(SP), F0- FMULD F5,F0- FADDDP F0,F1- FMOVD 184(SP), F0- FMULDP F0,F5- FXCHD F0, F4- FADDDP F0,F3- FMOVD 144(SP), F0- FMULD F5,F0- FADDDP F0,F2- FMOVD 136(SP), F0- FMULD F5,F0- FADDDP F0,F1- FMOVD 184(SP), F0- FMULD F5,F0- FADDDP F0,F4- FMOVD 168(SP), F0- FMULDP F0,F5- FXCHD F0, F4- FADDDP F0,F2- FMOVD 136(SP), F0- FMULD F5,F0- FADDDP F0,F1- FMOVD 184(SP), F0- FMULD F5,F0- FADDDP F0,F4- FMOVD 168(SP), F0- FMULD F5,F0- FADDDP F0,F3- FMOVD 152(SP), F0- FMULDP F0,F5- FXCHD F0, F4- FADDDP F0,F1- ADDATMOST15BYTES:- CMPQ DX,$0- JE NOMOREBYTES- MOVL $0,0(SP)- MOVL $0, 4 (SP)- MOVL $0, 8 (SP)- MOVL $0, 12 (SP)- LEAQ 0(SP),DI- MOVQ DX,CX- REP; MOVSB- MOVB $1,0(DI)- MOVL 12 (SP),DI- MOVL 8 (SP),SI- MOVL 4 (SP),DX- MOVL 0(SP),CX- MOVL DI,128(SP)- MOVL SI,120(SP)- MOVL DX,112(SP)- MOVL CX,104(SP)- FXCHD F0, F3- FADDD 128(SP), F0- FSUBD ·DOFFSET3(SB), F0- FXCHD F0, F2- FADDD 120(SP), F0- FSUBD ·DOFFSET2(SB), F0- FXCHD F0, F1- FADDD 112(SP), F0- FSUBD ·DOFFSET1(SB), F0- FXCHD F0, F3- FADDD 104(SP), F0- FSUBD ·DOFFSET0(SB), F0- FMOVD ·ALPHA130(SB), F0- FADDD F3,F0- FSUBD ·ALPHA130(SB), F0- FSUBD F0,F3- FMULD ·SCALE(SB), F0- FMOVD ·ALPHA32(SB), F0- FADDD F2,F0- FSUBD ·ALPHA32(SB), F0- FSUBD F0,F2- FMOVD ·ALPHA64(SB), F0- FADDD F6,F0- FSUBD ·ALPHA64(SB), F0- FSUBD F0,F6- FMOVD ·ALPHA96(SB), F0- FADDD F5,F0- FSUBD ·ALPHA96(SB), F0- FSUBD F0,F5- FXCHD F0, F4- FADDDP F0,F3- FXCHD F0, F6- FADDDP F0,F1- FXCHD F0, F3- FADDDP F0,F5- FXCHD F0, F3- FADDDP F0,F1- FMOVD 176(SP), F0- FMULD F3,F0- FMOVD 160(SP), F0- FMULD F4,F0- FMOVD 144(SP), F0- FMULD F5,F0- FMOVD 136(SP), F0- FMULDP F0,F6- FMOVD 160(SP), F0- FMULD F5,F0- FADDDP F0,F3- FMOVD 144(SP), F0- FMULD F5,F0- FADDDP F0,F2- FMOVD 136(SP), F0- FMULD F5,F0- FADDDP F0,F1- FMOVD 184(SP), F0- FMULDP F0,F5- FXCHD F0, F4- FADDDP F0,F5- FMOVD 144(SP), F0- FMULD F6,F0- FADDDP F0,F2- FMOVD 136(SP), F0- FMULD F6,F0- FADDDP F0,F1- FMOVD 184(SP), F0- FMULD F6,F0- FADDDP F0,F4- FMOVD 168(SP), F0- FMULDP F0,F6- FXCHD F0, F5- FADDDP F0,F4- FMOVD 136(SP), F0- FMULD F2,F0- FADDDP F0,F1- FMOVD 184(SP), F0- FMULD F2,F0- FADDDP F0,F5- FMOVD 168(SP), F0- FMULD F2,F0- FADDDP F0,F3- FMOVD 152(SP), F0- FMULDP F0,F2- FXCHD F0, F1- FADDDP F0,F3- FXCHD F0, F3- FXCHD F0, F2- NOMOREBYTES:- MOVL $0,R10- FMOVD ·ALPHA130(SB), F0- FADDD F4,F0- FSUBD ·ALPHA130(SB), F0- FSUBD F0,F4- FMULD ·SCALE(SB), F0- FMOVD ·ALPHA32(SB), F0- FADDD F2,F0- FSUBD ·ALPHA32(SB), F0- FSUBD F0,F2- FMOVD ·ALPHA64(SB), F0- FADDD F4,F0- FSUBD ·ALPHA64(SB), F0- FSUBD F0,F4- FMOVD ·ALPHA96(SB), F0- FADDD F6,F0- FSUBD ·ALPHA96(SB), F0- FXCHD F0, F6- FSUBD F6,F0- FXCHD F0, F4- FADDDP F0,F3- FXCHD F0, F4- FADDDP F0,F1- FXCHD F0, F2- FADDDP F0,F3- FXCHD F0, F4- FADDDP F0,F3- FXCHD F0, F3- FADDD ·HOFFSET0(SB), F0- FXCHD F0, F3- FADDD ·HOFFSET1(SB), F0- FXCHD F0, F1- FADDD ·HOFFSET2(SB), F0- FXCHD F0, F2- FADDD ·HOFFSET3(SB), F0- FXCHD F0, F3- FMOVDP F0, 104(SP)- FMOVDP F0, 112(SP)- FMOVDP F0, 120(SP)- FMOVDP F0, 128(SP)- MOVL 108(SP),DI- ANDL $63,DI- MOVL 116(SP),SI- ANDL $63,SI- MOVL 124(SP),DX- ANDL $63,DX- MOVL 132(SP),CX- ANDL $63,CX- MOVL 112(SP),R8- ADDL DI,R8- MOVQ R8,112(SP)- MOVL 120(SP),DI- ADCL SI,DI- MOVQ DI,120(SP)- MOVL 128(SP),DI- ADCL DX,DI- MOVQ DI,128(SP)- MOVL R10,DI- ADCL CX,DI- MOVQ DI,136(SP)- MOVQ $5,DI- MOVL 104(SP),SI- ADDL SI,DI- MOVQ DI,104(SP)- MOVL R10,DI- MOVQ 112(SP),DX- ADCL DX,DI- MOVQ DI,112(SP)- MOVL R10,DI- MOVQ 120(SP),CX- ADCL CX,DI- MOVQ DI,120(SP)- MOVL R10,DI- MOVQ 128(SP),R8- ADCL R8,DI- MOVQ DI,128(SP)- MOVQ $0XFFFFFFFC,DI- MOVQ 136(SP),R9- ADCL R9,DI- SARL $16,DI- MOVQ DI,R9- XORL $0XFFFFFFFF,R9- ANDQ DI,SI- MOVQ 104(SP),AX- ANDQ R9,AX- ORQ AX,SI- ANDQ DI,DX- MOVQ 112(SP),AX- ANDQ R9,AX- ORQ AX,DX- ANDQ DI,CX- MOVQ 120(SP),AX- ANDQ R9,AX- ORQ AX,CX- ANDQ DI,R8- MOVQ 128(SP),DI- ANDQ R9,DI- ORQ DI,R8- MOVQ 88(SP),DI- MOVQ 96(SP),R9- ADDL 16(R9),SI- ADCL 20(R9),DX- ADCL 24(R9),CX- ADCL 28(R9),R8- MOVL SI,0(DI)- MOVL DX,4(DI)- MOVL CX,8(DI)- MOVL R8,12(DI)- MOVQ 32(SP),R11- MOVQ 40(SP),R12- MOVQ 48(SP),R13- MOVQ 56(SP),R14- MOVQ 64(SP),R15- MOVQ 72(SP),BX- MOVQ 80(SP),BP- MOVQ R11,SP- RETdiff --git a/vendor/golang.org/x/crypto/poly1305/poly1305_arm.s b/vendor/golang.org/x/crypto/poly1305/poly1305_arm.sdeleted file mode 100644index c15386744..000000000--- a/vendor/golang.org/x/crypto/poly1305/poly1305_arm.s+++ /dev/null@@ -1,379 +0,0 @@-// Copyright 2015 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.--// This code was translated into a form compatible with 5a from the public-// domain source by Andrew Moon: github.com/floodyberry/poly1305-opt/blob/master/app/extensions/poly1305.--// +build arm,!gccgo,!appengine--DATA poly1305_init_constants_armv6<>+0x00(SB)/4, $0x3ffffff-DATA poly1305_init_constants_armv6<>+0x04(SB)/4, $0x3ffff03-DATA poly1305_init_constants_armv6<>+0x08(SB)/4, $0x3ffc0ff-DATA poly1305_init_constants_armv6<>+0x0c(SB)/4, $0x3f03fff-DATA poly1305_init_constants_armv6<>+0x10(SB)/4, $0x00fffff-GLOBL poly1305_init_constants_armv6<>(SB), 8, $20--// Warning: the linker may use R11 to synthesize certain instructions. Please-// take care and verify that no synthetic instructions use it.--TEXT poly1305_init_ext_armv6<>(SB),4,$-4- MOVM.DB.W [R4-R11], (R13)- MOVM.IA.W (R1), [R2-R5]- MOVW $poly1305_init_constants_armv6<>(SB), R7- MOVW R2, R8- MOVW R2>>26, R9- MOVW R3>>20, g- MOVW R4>>14, R11- MOVW R5>>8, R12- ORR R3<<6, R9, R9- ORR R4<<12, g, g- ORR R5<<18, R11, R11- MOVM.IA (R7), [R2-R6]- AND R8, R2, R2- AND R9, R3, R3- AND g, R4, R4- AND R11, R5, R5- AND R12, R6, R6- MOVM.IA.W [R2-R6], (R0)- EOR R2, R2, R2- EOR R3, R3, R3- EOR R4, R4, R4- EOR R5, R5, R5- EOR R6, R6, R6- MOVM.IA.W [R2-R6], (R0)- MOVM.IA.W (R1), [R2-R5]- MOVM.IA [R2-R6], (R0)- MOVM.IA.W (R13), [R4-R11]- RET--#define MOVW_UNALIGNED(Rsrc, Rdst, Rtmp, offset) \- MOVBU (offset+0)(Rsrc), Rtmp; \- MOVBU Rtmp, (offset+0)(Rdst); \- MOVBU (offset+1)(Rsrc), Rtmp; \- MOVBU Rtmp, (offset+1)(Rdst); \- MOVBU (offset+2)(Rsrc), Rtmp; \- MOVBU Rtmp, (offset+2)(Rdst); \- MOVBU (offset+3)(Rsrc), Rtmp; \- MOVBU Rtmp, (offset+3)(Rdst)--TEXT poly1305_blocks_armv6<>(SB),4,$-4- MOVM.DB.W [R4, R5, R6, R7, R8, R9, g, R11, R14], (R13)- SUB $128, R13- MOVW R0, 36(R13)- MOVW R1, 40(R13)- MOVW R2, 44(R13)- MOVW R1, R14- MOVW R2, R12- MOVW 56(R0), R8- WORD $0xe1180008 // TST R8, R8 not working see issue 5921- EOR R6, R6, R6- MOVW.EQ $(1<<24), R6- MOVW R6, 32(R13)- ADD $64, R13, g- MOVM.IA (R0), [R0-R9]- MOVM.IA [R0-R4], (g)- CMP $16, R12- BLO poly1305_blocks_armv6_done-poly1305_blocks_armv6_mainloop:- WORD $0xe31e0003 // TST R14, #3 not working see issue 5921- BEQ poly1305_blocks_armv6_mainloop_aligned- ADD $48, R13, g- MOVW_UNALIGNED(R14, g, R0, 0)- MOVW_UNALIGNED(R14, g, R0, 4)- MOVW_UNALIGNED(R14, g, R0, 8)- MOVW_UNALIGNED(R14, g, R0, 12)- MOVM.IA (g), [R0-R3]- ADD $16, R14- B poly1305_blocks_armv6_mainloop_loaded-poly1305_blocks_armv6_mainloop_aligned:- MOVM.IA.W (R14), [R0-R3]-poly1305_blocks_armv6_mainloop_loaded:- MOVW R0>>26, g- MOVW R1>>20, R11- MOVW R2>>14, R12- MOVW R14, 40(R13)- MOVW R3>>8, R4- ORR R1<<6, g, g- ORR R2<<12, R11, R11- ORR R3<<18, R12, R12- BIC $0xfc000000, R0, R0- BIC $0xfc000000, g, g- MOVW 32(R13), R3- BIC $0xfc000000, R11, R11- BIC $0xfc000000, R12, R12- ADD R0, R5, R5- ADD g, R6, R6- ORR R3, R4, R4- ADD R11, R7, R7- ADD $64, R13, R14- ADD R12, R8, R8- ADD R4, R9, R9- MOVM.IA (R14), [R0-R4]- MULLU R4, R5, (R11, g)- MULLU R3, R5, (R14, R12)- MULALU R3, R6, (R11, g)- MULALU R2, R6, (R14, R12)- MULALU R2, R7, (R11, g)- MULALU R1, R7, (R14, R12)- ADD R4<<2, R4, R4- ADD R3<<2, R3, R3- MULALU R1, R8, (R11, g)- MULALU R0, R8, (R14, R12)- MULALU R0, R9, (R11, g)- MULALU R4, R9, (R14, R12)- MOVW g, 24(R13)- MOVW R11, 28(R13)- MOVW R12, 16(R13)- MOVW R14, 20(R13)- MULLU R2, R5, (R11, g)- MULLU R1, R5, (R14, R12)- MULALU R1, R6, (R11, g)- MULALU R0, R6, (R14, R12)- MULALU R0, R7, (R11, g)- MULALU R4, R7, (R14, R12)- ADD R2<<2, R2, R2- ADD R1<<2, R1, R1- MULALU R4, R8, (R11, g)- MULALU R3, R8, (R14, R12)- MULALU R3, R9, (R11, g)- MULALU R2, R9, (R14, R12)- MOVW g, 8(R13)- MOVW R11, 12(R13)- MOVW R12, 0(R13)- MOVW R14, w+4(SP)- MULLU R0, R5, (R11, g)- MULALU R4, R6, (R11, g)- MULALU R3, R7, (R11, g)- MULALU R2, R8, (R11, g)- MULALU R1, R9, (R11, g)- MOVM.IA (R13), [R0-R7]- MOVW g>>26, R12- MOVW R4>>26, R14- ORR R11<<6, R12, R12- ORR R5<<6, R14, R14- BIC $0xfc000000, g, g- BIC $0xfc000000, R4, R4- ADD.S R12, R0, R0- ADC $0, R1, R1- ADD.S R14, R6, R6- ADC $0, R7, R7- MOVW R0>>26, R12- MOVW R6>>26, R14- ORR R1<<6, R12, R12- ORR R7<<6, R14, R14- BIC $0xfc000000, R0, R0- BIC $0xfc000000, R6, R6- ADD R14<<2, R14, R14- ADD.S R12, R2, R2- ADC $0, R3, R3- ADD R14, g, g- MOVW R2>>26, R12- MOVW g>>26, R14- ORR R3<<6, R12, R12- BIC $0xfc000000, g, R5- BIC $0xfc000000, R2, R7- ADD R12, R4, R4- ADD R14, R0, R0- MOVW R4>>26, R12- BIC $0xfc000000, R4, R8- ADD R12, R6, R9- MOVW w+44(SP), R12- MOVW w+40(SP), R14- MOVW R0, R6- CMP $32, R12- SUB $16, R12, R12- MOVW R12, 44(R13)- BHS poly1305_blocks_armv6_mainloop-poly1305_blocks_armv6_done:- MOVW 36(R13), R12- MOVW R5, 20(R12)- MOVW R6, 24(R12)- MOVW R7, 28(R12)- MOVW R8, 32(R12)- MOVW R9, 36(R12)- ADD $128, R13, R13- MOVM.IA.W (R13), [R4, R5, R6, R7, R8, R9, g, R11, R14]- RET--#define MOVHUP_UNALIGNED(Rsrc, Rdst, Rtmp) \- MOVBU.P 1(Rsrc), Rtmp; \- MOVBU.P Rtmp, 1(Rdst); \- MOVBU.P 1(Rsrc), Rtmp; \- MOVBU.P Rtmp, 1(Rdst)--#define MOVWP_UNALIGNED(Rsrc, Rdst, Rtmp) \- MOVHUP_UNALIGNED(Rsrc, Rdst, Rtmp); \- MOVHUP_UNALIGNED(Rsrc, Rdst, Rtmp)--TEXT poly1305_finish_ext_armv6<>(SB),4,$-4- MOVM.DB.W [R4, R5, R6, R7, R8, R9, g, R11, R14], (R13)- SUB $16, R13, R13- MOVW R0, R5- MOVW R1, R6- MOVW R2, R7- MOVW R3, R8- AND.S R2, R2, R2- BEQ poly1305_finish_ext_armv6_noremaining- EOR R0, R0- MOVW R13, R9- MOVW R0, 0(R13)- MOVW R0, 4(R13)- MOVW R0, 8(R13)- MOVW R0, 12(R13)- WORD $0xe3110003 // TST R1, #3 not working see issue 5921- BEQ poly1305_finish_ext_armv6_aligned- WORD $0xe3120008 // TST R2, #8 not working see issue 5921- BEQ poly1305_finish_ext_armv6_skip8- MOVWP_UNALIGNED(R1, R9, g)- MOVWP_UNALIGNED(R1, R9, g)-poly1305_finish_ext_armv6_skip8:- WORD $0xe3120004 // TST $4, R2 not working see issue 5921- BEQ poly1305_finish_ext_armv6_skip4- MOVWP_UNALIGNED(R1, R9, g)-poly1305_finish_ext_armv6_skip4:- WORD $0xe3120002 // TST $2, R2 not working see issue 5921- BEQ poly1305_finish_ext_armv6_skip2- MOVHUP_UNALIGNED(R1, R9, g)- B poly1305_finish_ext_armv6_skip2-poly1305_finish_ext_armv6_aligned:- WORD $0xe3120008 // TST R2, #8 not working see issue 5921- BEQ poly1305_finish_ext_armv6_skip8_aligned- MOVM.IA.W (R1), [g-R11]- MOVM.IA.W [g-R11], (R9)-poly1305_finish_ext_armv6_skip8_aligned:- WORD $0xe3120004 // TST $4, R2 not working see issue 5921- BEQ poly1305_finish_ext_armv6_skip4_aligned- MOVW.P 4(R1), g- MOVW.P g, 4(R9)-poly1305_finish_ext_armv6_skip4_aligned:- WORD $0xe3120002 // TST $2, R2 not working see issue 5921- BEQ poly1305_finish_ext_armv6_skip2- MOVHU.P 2(R1), g- MOVH.P g, 2(R9)-poly1305_finish_ext_armv6_skip2:- WORD $0xe3120001 // TST $1, R2 not working see issue 5921- BEQ poly1305_finish_ext_armv6_skip1- MOVBU.P 1(R1), g- MOVBU.P g, 1(R9)-poly1305_finish_ext_armv6_skip1:- MOVW $1, R11- MOVBU R11, 0(R9)- MOVW R11, 56(R5)- MOVW R5, R0- MOVW R13, R1- MOVW $16, R2- BL poly1305_blocks_armv6<>(SB)-poly1305_finish_ext_armv6_noremaining:- MOVW 20(R5), R0- MOVW 24(R5), R1- MOVW 28(R5), R2- MOVW 32(R5), R3- MOVW 36(R5), R4- MOVW R4>>26, R12- BIC $0xfc000000, R4, R4- ADD R12<<2, R12, R12- ADD R12, R0, R0- MOVW R0>>26, R12- BIC $0xfc000000, R0, R0- ADD R12, R1, R1- MOVW R1>>26, R12- BIC $0xfc000000, R1, R1- ADD R12, R2, R2- MOVW R2>>26, R12- BIC $0xfc000000, R2, R2- ADD R12, R3, R3- MOVW R3>>26, R12- BIC $0xfc000000, R3, R3- ADD R12, R4, R4- ADD $5, R0, R6- MOVW R6>>26, R12- BIC $0xfc000000, R6, R6- ADD R12, R1, R7- MOVW R7>>26, R12- BIC $0xfc000000, R7, R7- ADD R12, R2, g- MOVW g>>26, R12- BIC $0xfc000000, g, g- ADD R12, R3, R11- MOVW $-(1<<26), R12- ADD R11>>26, R12, R12- BIC $0xfc000000, R11, R11- ADD R12, R4, R14- MOVW R14>>31, R12- SUB $1, R12- AND R12, R6, R6- AND R12, R7, R7- AND R12, g, g- AND R12, R11, R11- AND R12, R14, R14- MVN R12, R12- AND R12, R0, R0- AND R12, R1, R1- AND R12, R2, R2- AND R12, R3, R3- AND R12, R4, R4- ORR R6, R0, R0- ORR R7, R1, R1- ORR g, R2, R2- ORR R11, R3, R3- ORR R14, R4, R4- ORR R1<<26, R0, R0- MOVW R1>>6, R1- ORR R2<<20, R1, R1- MOVW R2>>12, R2- ORR R3<<14, R2, R2- MOVW R3>>18, R3- ORR R4<<8, R3, R3- MOVW 40(R5), R6- MOVW 44(R5), R7- MOVW 48(R5), g- MOVW 52(R5), R11- ADD.S R6, R0, R0- ADC.S R7, R1, R1- ADC.S g, R2, R2- ADC.S R11, R3, R3- MOVM.IA [R0-R3], (R8)- MOVW R5, R12- EOR R0, R0, R0- EOR R1, R1, R1- EOR R2, R2, R2- EOR R3, R3, R3- EOR R4, R4, R4- EOR R5, R5, R5- EOR R6, R6, R6- EOR R7, R7, R7- MOVM.IA.W [R0-R7], (R12)- MOVM.IA [R0-R7], (R12)- ADD $16, R13, R13- MOVM.IA.W (R13), [R4, R5, R6, R7, R8, R9, g, R11, R14]- RET--// func poly1305_auth_armv6(out *[16]byte, m *byte, mlen uint32, key *[32]key)-TEXT ·poly1305_auth_armv6(SB),0,$280-16- MOVW out+0(FP), R4- MOVW m+4(FP), R5- MOVW mlen+8(FP), R6- MOVW key+12(FP), R7-- MOVW R13, R8- BIC $63, R13- SUB $64, R13, R13- MOVW R13, R0- MOVW R7, R1- BL poly1305_init_ext_armv6<>(SB)- BIC.S $15, R6, R2- BEQ poly1305_auth_armv6_noblocks- MOVW R13, R0- MOVW R5, R1- ADD R2, R5, R5- SUB R2, R6, R6- BL poly1305_blocks_armv6<>(SB)-poly1305_auth_armv6_noblocks:- MOVW R13, R0- MOVW R5, R1- MOVW R6, R2- MOVW R4, R3- BL poly1305_finish_ext_armv6<>(SB)- MOVW R8, R13- RETdiff --git a/vendor/golang.org/x/crypto/poly1305/sum_amd64.go b/vendor/golang.org/x/crypto/poly1305/sum_amd64.goindex 6775c703f..4dd72fe79 100644--- a/vendor/golang.org/x/crypto/poly1305/sum_amd64.go+++ b/vendor/golang.org/x/crypto/poly1305/sum_amd64.go@@ -6,10 +6,8 @@package poly1305-// This function is implemented in poly1305_amd64.s-+// This function is implemented in sum_amd64.s//go:noescape-func poly1305(out *[16]byte, m *byte, mlen uint64, key *[32]byte)// Sum generates an authenticator for m using a one-time key and puts thediff --git a/vendor/golang.org/x/crypto/poly1305/sum_amd64.s b/vendor/golang.org/x/crypto/poly1305/sum_amd64.snew file mode 100644index 000000000..bc75c61af--- /dev/null+++ b/vendor/golang.org/x/crypto/poly1305/sum_amd64.s@@ -0,0 +1,125 @@+// Copyright 2012 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.++// +build amd64,!gccgo,!appengine++#include "textflag.h"++#define POLY1305_ADD(msg, h0, h1, h2) \+ ADDQ 0(msg), h0; \+ ADCQ 8(msg), h1; \+ ADCQ $1, h2; \+ LEAQ 16(msg), msg++#define POLY1305_MUL(h0, h1, h2, r0, r1, t0, t1, t2, t3) \+ MOVQ r0, AX; \+ MULQ h0; \+ MOVQ AX, t0; \+ MOVQ DX, t1; \+ MOVQ r0, AX; \+ MULQ h1; \+ ADDQ AX, t1; \+ ADCQ $0, DX; \+ MOVQ r0, t2; \+ IMULQ h2, t2; \+ ADDQ DX, t2; \+ \+ MOVQ r1, AX; \+ MULQ h0; \+ ADDQ AX, t1; \+ ADCQ $0, DX; \+ MOVQ DX, h0; \+ MOVQ r1, t3; \+ IMULQ h2, t3; \+ MOVQ r1, AX; \+ MULQ h1; \+ ADDQ AX, t2; \+ ADCQ DX, t3; \+ ADDQ h0, t2; \+ ADCQ $0, t3; \+ \+ MOVQ t0, h0; \+ MOVQ t1, h1; \+ MOVQ t2, h2; \+ ANDQ $3, h2; \+ MOVQ t2, t0; \+ ANDQ $0xFFFFFFFFFFFFFFFC, t0; \+ ADDQ t0, h0; \+ ADCQ t3, h1; \+ ADCQ $0, h2; \+ SHRQ $2, t3, t2; \+ SHRQ $2, t3; \+ ADDQ t2, h0; \+ ADCQ t3, h1; \+ ADCQ $0, h2++DATA poly1305Mask<>+0x00(SB)/8, $0x0FFFFFFC0FFFFFFF+DATA poly1305Mask<>+0x08(SB)/8, $0x0FFFFFFC0FFFFFFC+GLOBL poly1305Mask<>(SB), RODATA, $16++// func poly1305(out *[16]byte, m *byte, mlen uint64, key *[32]key)+TEXT ·poly1305(SB), $0-32+ MOVQ out+0(FP), DI+ MOVQ m+8(FP), SI+ MOVQ mlen+16(FP), R15+ MOVQ key+24(FP), AX++ MOVQ 0(AX), R11+ MOVQ 8(AX), R12+ ANDQ poly1305Mask<>(SB), R11 // r0+ ANDQ poly1305Mask<>+8(SB), R12 // r1+ XORQ R8, R8 // h0+ XORQ R9, R9 // h1+ XORQ R10, R10 // h2++ CMPQ R15, $16+ JB bytes_between_0_and_15++loop:+ POLY1305_ADD(SI, R8, R9, R10)++multiply:+ POLY1305_MUL(R8, R9, R10, R11, R12, BX, CX, R13, R14)+ SUBQ $16, R15+ CMPQ R15, $16+ JAE loop++bytes_between_0_and_15:+ TESTQ R15, R15+ JZ done+ MOVQ $1, BX+ XORQ CX, CX+ XORQ R13, R13+ ADDQ R15, SI++flush_buffer:+ SHLQ $8, BX, CX+ SHLQ $8, BX+ MOVB -1(SI), R13+ XORQ R13, BX+ DECQ SI+ DECQ R15+ JNZ flush_buffer++ ADDQ BX, R8+ ADCQ CX, R9+ ADCQ $0, R10+ MOVQ $16, R15+ JMP multiply++done:+ MOVQ R8, AX+ MOVQ R9, BX+ SUBQ $0xFFFFFFFFFFFFFFFB, AX+ SBBQ $0xFFFFFFFFFFFFFFFF, BX+ SBBQ $3, R10+ CMOVQCS R8, AX+ CMOVQCS R9, BX+ MOVQ key+24(FP), R8+ ADDQ 16(R8), AX+ ADCQ 24(R8), BX++ MOVQ AX, 0(DI)+ MOVQ BX, 8(DI)+ RETdiff --git a/vendor/golang.org/x/crypto/poly1305/sum_arm.go b/vendor/golang.org/x/crypto/poly1305/sum_arm.goindex 50b979c24..5dc321c2f 100644--- a/vendor/golang.org/x/crypto/poly1305/sum_arm.go+++ b/vendor/golang.org/x/crypto/poly1305/sum_arm.go@@ -2,14 +2,12 @@// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.-// +build arm,!gccgo,!appengine+// +build arm,!gccgo,!appengine,!naclpackage poly1305-// This function is implemented in poly1305_arm.s-+// This function is implemented in sum_arm.s//go:noescape-func poly1305_auth_armv6(out *[16]byte, m *byte, mlen uint32, key *[32]byte)// Sum generates an authenticator for m using a one-time key and puts thediff --git a/vendor/golang.org/x/crypto/poly1305/sum_arm.s b/vendor/golang.org/x/crypto/poly1305/sum_arm.snew file mode 100644index 000000000..93167b271--- /dev/null+++ b/vendor/golang.org/x/crypto/poly1305/sum_arm.s@@ -0,0 +1,427 @@+// Copyright 2015 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.++// +build arm,!gccgo,!appengine,!nacl++#include "textflag.h"++// This code was translated into a form compatible with 5a from the public+// domain source by Andrew Moon: github.com/floodyberry/poly1305-opt/blob/master/app/extensions/poly1305.++DATA poly1305_init_constants_armv6<>+0x00(SB)/4, $0x3ffffff+DATA poly1305_init_constants_armv6<>+0x04(SB)/4, $0x3ffff03+DATA poly1305_init_constants_armv6<>+0x08(SB)/4, $0x3ffc0ff+DATA poly1305_init_constants_armv6<>+0x0c(SB)/4, $0x3f03fff+DATA poly1305_init_constants_armv6<>+0x10(SB)/4, $0x00fffff+GLOBL poly1305_init_constants_armv6<>(SB), 8, $20++// Warning: the linker may use R11 to synthesize certain instructions. Please+// take care and verify that no synthetic instructions use it.++TEXT poly1305_init_ext_armv6<>(SB), NOSPLIT, $0+ // Needs 16 bytes of stack and 64 bytes of space pointed to by R0. (It+ // might look like it's only 60 bytes of space but the final four bytes+ // will be written by another function.) We need to skip over four+ // bytes of stack because that's saving the value of 'g'.+ ADD $4, R13, R8+ MOVM.IB [R4-R7], (R8)+ MOVM.IA.W (R1), [R2-R5]+ MOVW $poly1305_init_constants_armv6<>(SB), R7+ MOVW R2, R8+ MOVW R2>>26, R9+ MOVW R3>>20, g+ MOVW R4>>14, R11+ MOVW R5>>8, R12+ ORR R3<<6, R9, R9+ ORR R4<<12, g, g+ ORR R5<<18, R11, R11+ MOVM.IA (R7), [R2-R6]+ AND R8, R2, R2+ AND R9, R3, R3+ AND g, R4, R4+ AND R11, R5, R5+ AND R12, R6, R6+ MOVM.IA.W [R2-R6], (R0)+ EOR R2, R2, R2+ EOR R3, R3, R3+ EOR R4, R4, R4+ EOR R5, R5, R5+ EOR R6, R6, R6+ MOVM.IA.W [R2-R6], (R0)+ MOVM.IA.W (R1), [R2-R5]+ MOVM.IA [R2-R6], (R0)+ ADD $20, R13, R0+ MOVM.DA (R0), [R4-R7]+ RET++#define MOVW_UNALIGNED(Rsrc, Rdst, Rtmp, offset) \+ MOVBU (offset+0)(Rsrc), Rtmp; \+ MOVBU Rtmp, (offset+0)(Rdst); \+ MOVBU (offset+1)(Rsrc), Rtmp; \+ MOVBU Rtmp, (offset+1)(Rdst); \+ MOVBU (offset+2)(Rsrc), Rtmp; \+ MOVBU Rtmp, (offset+2)(Rdst); \+ MOVBU (offset+3)(Rsrc), Rtmp; \+ MOVBU Rtmp, (offset+3)(Rdst)++TEXT poly1305_blocks_armv6<>(SB), NOSPLIT, $0+ // Needs 24 bytes of stack for saved registers and then 88 bytes of+ // scratch space after that. We assume that 24 bytes at (R13) have+ // already been used: four bytes for the link register saved in the+ // prelude of poly1305_auth_armv6, four bytes for saving the value of g+ // in that function and 16 bytes of scratch space used around+ // poly1305_finish_ext_armv6_skip1.+ ADD $24, R13, R12+ MOVM.IB [R4-R8, R14], (R12)+ MOVW R0, 88(R13)+ MOVW R1, 92(R13)+ MOVW R2, 96(R13)+ MOVW R1, R14+ MOVW R2, R12+ MOVW 56(R0), R8+ WORD $0xe1180008 // TST R8, R8 not working see issue 5921+ EOR R6, R6, R6+ MOVW.EQ $(1<<24), R6+ MOVW R6, 84(R13)+ ADD $116, R13, g+ MOVM.IA (R0), [R0-R9]+ MOVM.IA [R0-R4], (g)+ CMP $16, R12+ BLO poly1305_blocks_armv6_done++poly1305_blocks_armv6_mainloop:+ WORD $0xe31e0003 // TST R14, #3 not working see issue 5921+ BEQ poly1305_blocks_armv6_mainloop_aligned+ ADD $100, R13, g+ MOVW_UNALIGNED(R14, g, R0, 0)+ MOVW_UNALIGNED(R14, g, R0, 4)+ MOVW_UNALIGNED(R14, g, R0, 8)+ MOVW_UNALIGNED(R14, g, R0, 12)+ MOVM.IA (g), [R0-R3]+ ADD $16, R14+ B poly1305_blocks_armv6_mainloop_loaded++poly1305_blocks_armv6_mainloop_aligned:+ MOVM.IA.W (R14), [R0-R3]++poly1305_blocks_armv6_mainloop_loaded:+ MOVW R0>>26, g+ MOVW R1>>20, R11+ MOVW R2>>14, R12+ MOVW R14, 92(R13)+ MOVW R3>>8, R4+ ORR R1<<6, g, g+ ORR R2<<12, R11, R11+ ORR R3<<18, R12, R12+ BIC $0xfc000000, R0, R0+ BIC $0xfc000000, g, g+ MOVW 84(R13), R3+ BIC $0xfc000000, R11, R11+ BIC $0xfc000000, R12, R12+ ADD R0, R5, R5+ ADD g, R6, R6+ ORR R3, R4, R4+ ADD R11, R7, R7+ ADD $116, R13, R14+ ADD R12, R8, R8+ ADD R4, R9, R9+ MOVM.IA (R14), [R0-R4]+ MULLU R4, R5, (R11, g)+ MULLU R3, R5, (R14, R12)+ MULALU R3, R6, (R11, g)+ MULALU R2, R6, (R14, R12)+ MULALU R2, R7, (R11, g)+ MULALU R1, R7, (R14, R12)+ ADD R4<<2, R4, R4+ ADD R3<<2, R3, R3+ MULALU R1, R8, (R11, g)+ MULALU R0, R8, (R14, R12)+ MULALU R0, R9, (R11, g)+ MULALU R4, R9, (R14, R12)+ MOVW g, 76(R13)+ MOVW R11, 80(R13)+ MOVW R12, 68(R13)+ MOVW R14, 72(R13)+ MULLU R2, R5, (R11, g)+ MULLU R1, R5, (R14, R12)+ MULALU R1, R6, (R11, g)+ MULALU R0, R6, (R14, R12)+ MULALU R0, R7, (R11, g)+ MULALU R4, R7, (R14, R12)+ ADD R2<<2, R2, R2+ ADD R1<<2, R1, R1+ MULALU R4, R8, (R11, g)+ MULALU R3, R8, (R14, R12)+ MULALU R3, R9, (R11, g)+ MULALU R2, R9, (R14, R12)+ MOVW g, 60(R13)+ MOVW R11, 64(R13)+ MOVW R12, 52(R13)+ MOVW R14, 56(R13)+ MULLU R0, R5, (R11, g)+ MULALU R4, R6, (R11, g)+ MULALU R3, R7, (R11, g)+ MULALU R2, R8, (R11, g)+ MULALU R1, R9, (R11, g)+ ADD $52, R13, R0+ MOVM.IA (R0), [R0-R7]+ MOVW g>>26, R12+ MOVW R4>>26, R14+ ORR R11<<6, R12, R12+ ORR R5<<6, R14, R14+ BIC $0xfc000000, g, g+ BIC $0xfc000000, R4, R4+ ADD.S R12, R0, R0+ ADC $0, R1, R1+ ADD.S R14, R6, R6+ ADC $0, R7, R7+ MOVW R0>>26, R12+ MOVW R6>>26, R14+ ORR R1<<6, R12, R12+ ORR R7<<6, R14, R14+ BIC $0xfc000000, R0, R0+ BIC $0xfc000000, R6, R6+ ADD R14<<2, R14, R14+ ADD.S R12, R2, R2+ ADC $0, R3, R3+ ADD R14, g, g+ MOVW R2>>26, R12+ MOVW g>>26, R14+ ORR R3<<6, R12, R12+ BIC $0xfc000000, g, R5+ BIC $0xfc000000, R2, R7+ ADD R12, R4, R4+ ADD R14, R0, R0+ MOVW R4>>26, R12+ BIC $0xfc000000, R4, R8+ ADD R12, R6, R9+ MOVW 96(R13), R12+ MOVW 92(R13), R14+ MOVW R0, R6+ CMP $32, R12+ SUB $16, R12, R12+ MOVW R12, 96(R13)+ BHS poly1305_blocks_armv6_mainloop++poly1305_blocks_armv6_done:+ MOVW 88(R13), R12+ MOVW R5, 20(R12)+ MOVW R6, 24(R12)+ MOVW R7, 28(R12)+ MOVW R8, 32(R12)+ MOVW R9, 36(R12)+ ADD $48, R13, R0+ MOVM.DA (R0), [R4-R8, R14]+ RET++#define MOVHUP_UNALIGNED(Rsrc, Rdst, Rtmp) \+ MOVBU.P 1(Rsrc), Rtmp; \+ MOVBU.P Rtmp, 1(Rdst); \+ MOVBU.P 1(Rsrc), Rtmp; \+ MOVBU.P Rtmp, 1(Rdst)++#define MOVWP_UNALIGNED(Rsrc, Rdst, Rtmp) \+ MOVHUP_UNALIGNED(Rsrc, Rdst, Rtmp); \+ MOVHUP_UNALIGNED(Rsrc, Rdst, Rtmp)++// func poly1305_auth_armv6(out *[16]byte, m *byte, mlen uint32, key *[32]key)+TEXT ·poly1305_auth_armv6(SB), $196-16+ // The value 196, just above, is the sum of 64 (the size of the context+ // structure) and 132 (the amount of stack needed).+ //+ // At this point, the stack pointer (R13) has been moved down. It+ // points to the saved link register and there's 196 bytes of free+ // space above it.+ //+ // The stack for this function looks like:+ //+ // +---------------------+ // |+ // | 64 bytes of context structure+ // |+ // +---------------------+ // |+ // | 112 bytes for poly1305_blocks_armv6+ // |+ // +---------------------+ // | 16 bytes of final block, constructed at+ // | poly1305_finish_ext_armv6_skip8+ // +---------------------+ // | four bytes of saved 'g'+ // +---------------------+ // | lr, saved by prelude <- R13 points here+ // +---------------------+ MOVW g, 4(R13)++ MOVW out+0(FP), R4+ MOVW m+4(FP), R5+ MOVW mlen+8(FP), R6+ MOVW key+12(FP), R7++ ADD $136, R13, R0 // 136 = 4 + 4 + 16 + 112+ MOVW R7, R1++ // poly1305_init_ext_armv6 will write to the stack from R13+4, but+ // that's ok because none of the other values have been written yet.+ BL poly1305_init_ext_armv6<>(SB)+ BIC.S $15, R6, R2+ BEQ poly1305_auth_armv6_noblocks+ ADD $136, R13, R0+ MOVW R5, R1+ ADD R2, R5, R5+ SUB R2, R6, R6+ BL poly1305_blocks_armv6<>(SB)++poly1305_auth_armv6_noblocks:+ ADD $136, R13, R0+ MOVW R5, R1+ MOVW R6, R2+ MOVW R4, R3++ MOVW R0, R5+ MOVW R1, R6+ MOVW R2, R7+ MOVW R3, R8+ AND.S R2, R2, R2+ BEQ poly1305_finish_ext_armv6_noremaining+ EOR R0, R0+ ADD $8, R13, R9 // 8 = offset to 16 byte scratch space+ MOVW R0, (R9)+ MOVW R0, 4(R9)+ MOVW R0, 8(R9)+ MOVW R0, 12(R9)+ WORD $0xe3110003 // TST R1, #3 not working see issue 5921+ BEQ poly1305_finish_ext_armv6_aligned+ WORD $0xe3120008 // TST R2, #8 not working see issue 5921+ BEQ poly1305_finish_ext_armv6_skip8+ MOVWP_UNALIGNED(R1, R9, g)+ MOVWP_UNALIGNED(R1, R9, g)++poly1305_finish_ext_armv6_skip8:+ WORD $0xe3120004 // TST $4, R2 not working see issue 5921+ BEQ poly1305_finish_ext_armv6_skip4+ MOVWP_UNALIGNED(R1, R9, g)++poly1305_finish_ext_armv6_skip4:+ WORD $0xe3120002 // TST $2, R2 not working see issue 5921+ BEQ poly1305_finish_ext_armv6_skip2+ MOVHUP_UNALIGNED(R1, R9, g)+ B poly1305_finish_ext_armv6_skip2++poly1305_finish_ext_armv6_aligned:+ WORD $0xe3120008 // TST R2, #8 not working see issue 5921+ BEQ poly1305_finish_ext_armv6_skip8_aligned+ MOVM.IA.W (R1), [g-R11]+ MOVM.IA.W [g-R11], (R9)++poly1305_finish_ext_armv6_skip8_aligned:+ WORD $0xe3120004 // TST $4, R2 not working see issue 5921+ BEQ poly1305_finish_ext_armv6_skip4_aligned+ MOVW.P 4(R1), g+ MOVW.P g, 4(R9)++poly1305_finish_ext_armv6_skip4_aligned:+ WORD $0xe3120002 // TST $2, R2 not working see issue 5921+ BEQ poly1305_finish_ext_armv6_skip2+ MOVHU.P 2(R1), g+ MOVH.P g, 2(R9)++poly1305_finish_ext_armv6_skip2:+ WORD $0xe3120001 // TST $1, R2 not working see issue 5921+ BEQ poly1305_finish_ext_armv6_skip1+ MOVBU.P 1(R1), g+ MOVBU.P g, 1(R9)++poly1305_finish_ext_armv6_skip1:+ MOVW $1, R11+ MOVBU R11, 0(R9)+ MOVW R11, 56(R5)+ MOVW R5, R0+ ADD $8, R13, R1+ MOVW $16, R2+ BL poly1305_blocks_armv6<>(SB)++poly1305_finish_ext_armv6_noremaining:+ MOVW 20(R5), R0+ MOVW 24(R5), R1+ MOVW 28(R5), R2+ MOVW 32(R5), R3+ MOVW 36(R5), R4+ MOVW R4>>26, R12+ BIC $0xfc000000, R4, R4+ ADD R12<<2, R12, R12+ ADD R12, R0, R0+ MOVW R0>>26, R12+ BIC $0xfc000000, R0, R0+ ADD R12, R1, R1+ MOVW R1>>26, R12+ BIC $0xfc000000, R1, R1+ ADD R12, R2, R2+ MOVW R2>>26, R12+ BIC $0xfc000000, R2, R2+ ADD R12, R3, R3+ MOVW R3>>26, R12+ BIC $0xfc000000, R3, R3+ ADD R12, R4, R4+ ADD $5, R0, R6+ MOVW R6>>26, R12+ BIC $0xfc000000, R6, R6+ ADD R12, R1, R7+ MOVW R7>>26, R12+ BIC $0xfc000000, R7, R7+ ADD R12, R2, g+ MOVW g>>26, R12+ BIC $0xfc000000, g, g+ ADD R12, R3, R11+ MOVW $-(1<<26), R12+ ADD R11>>26, R12, R12+ BIC $0xfc000000, R11, R11+ ADD R12, R4, R9+ MOVW R9>>31, R12+ SUB $1, R12+ AND R12, R6, R6+ AND R12, R7, R7+ AND R12, g, g+ AND R12, R11, R11+ AND R12, R9, R9+ MVN R12, R12+ AND R12, R0, R0+ AND R12, R1, R1+ AND R12, R2, R2+ AND R12, R3, R3+ AND R12, R4, R4+ ORR R6, R0, R0+ ORR R7, R1, R1+ ORR g, R2, R2+ ORR R11, R3, R3+ ORR R9, R4, R4+ ORR R1<<26, R0, R0+ MOVW R1>>6, R1+ ORR R2<<20, R1, R1+ MOVW R2>>12, R2+ ORR R3<<14, R2, R2+ MOVW R3>>18, R3+ ORR R4<<8, R3, R3+ MOVW 40(R5), R6+ MOVW 44(R5), R7+ MOVW 48(R5), g+ MOVW 52(R5), R11+ ADD.S R6, R0, R0+ ADC.S R7, R1, R1+ ADC.S g, R2, R2+ ADC.S R11, R3, R3+ MOVM.IA [R0-R3], (R8)+ MOVW R5, R12+ EOR R0, R0, R0+ EOR R1, R1, R1+ EOR R2, R2, R2+ EOR R3, R3, R3+ EOR R4, R4, R4+ EOR R5, R5, R5+ EOR R6, R6, R6+ EOR R7, R7, R7+ MOVM.IA.W [R0-R7], (R12)+ MOVM.IA [R0-R7], (R12)+ MOVW 4(R13), g+ RETdiff --git a/vendor/golang.org/x/crypto/poly1305/sum_ref.go b/vendor/golang.org/x/crypto/poly1305/sum_ref.goindex 0b24fc78b..dbe50e78a 100644--- a/vendor/golang.org/x/crypto/poly1305/sum_ref.go+++ b/vendor/golang.org/x/crypto/poly1305/sum_ref.go@@ -2,7 +2,7 @@// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.-// +build !amd64,!arm gccgo appengine+// +build !amd64,!arm gccgo appengine naclpackage poly1305diff --git a/vendor/golang.org/x/crypto/salsa20/salsa/salsa2020_amd64.s b/vendor/golang.org/x/crypto/salsa20/salsa/salsa2020_amd64.sindex 6e1df9639..083fe3857 100644--- a/vendor/golang.org/x/crypto/salsa20/salsa/salsa2020_amd64.s+++ b/vendor/golang.org/x/crypto/salsa20/salsa/salsa2020_amd64.s@@ -8,26 +8,20 @@// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html// func salsa2020XORKeyStream(out, in *byte, n uint64, nonce, key *byte)-TEXT ·salsa2020XORKeyStream(SB),0,$512-40+// This needs up to 64 bytes at 360(SP); hence the non-obvious frame size.+TEXT ·salsa2020XORKeyStream(SB),0,$456-40 // frame = 424 + 32 byte alignmentMOVQ out+0(FP),DIMOVQ in+8(FP),SIMOVQ n+16(FP),DXMOVQ nonce+24(FP),CXMOVQ key+32(FP),R8- MOVQ SP,R11- MOVQ $31,R9- NOTQ R9- ANDQ R9,SP- ADDQ $32,SP+ MOVQ SP,R12+ MOVQ SP,R9+ ADDQ $31, R9+ ANDQ $~31, R9+ MOVQ R9, SP- MOVQ R11,352(SP)- MOVQ R12,360(SP)- MOVQ R13,368(SP)- MOVQ R14,376(SP)- MOVQ R15,384(SP)- MOVQ BX,392(SP)- MOVQ BP,400(SP)MOVQ DX,R9MOVQ CX,DXMOVQ R8,R10@@ -133,7 +127,7 @@ TEXT ·salsa2020XORKeyStream(SB),0,$512-40SHRQ $32,CXMOVL DX,16(SP)MOVL CX, 36 (SP)- MOVQ R9,408(SP)+ MOVQ R9,352(SP)MOVQ $20,DXMOVOA 64(SP),X0MOVOA 80(SP),X1@@ -650,7 +644,7 @@ TEXT ·salsa2020XORKeyStream(SB),0,$512-40MOVL CX,244(DI)MOVL R8,248(DI)MOVL R9,252(DI)- MOVQ 408(SP),R9+ MOVQ 352(SP),R9SUBQ $256,R9ADDQ $256,SIADDQ $256,DI@@ -662,13 +656,13 @@ TEXT ·salsa2020XORKeyStream(SB),0,$512-40CMPQ R9,$64JAE NOCOPYMOVQ DI,DX- LEAQ 416(SP),DI+ LEAQ 360(SP),DIMOVQ R9,CXREP; MOVSB- LEAQ 416(SP),DI- LEAQ 416(SP),SI+ LEAQ 360(SP),DI+ LEAQ 360(SP),SINOCOPY:- MOVQ R9,408(SP)+ MOVQ R9,352(SP)MOVOA 48(SP),X0MOVOA 0(SP),X1MOVOA 16(SP),X2@@ -867,7 +861,7 @@ TEXT ·salsa2020XORKeyStream(SB),0,$512-40MOVL R8,44(DI)MOVL R9,28(DI)MOVL AX,12(DI)- MOVQ 408(SP),R9+ MOVQ 352(SP),R9MOVL 16(SP),CXMOVL 36 (SP),R8ADDQ $1,CX@@ -886,14 +880,7 @@ TEXT ·salsa2020XORKeyStream(SB),0,$512-40REP; MOVSBBYTESATLEAST64:DONE:- MOVQ 352(SP),R11- MOVQ 360(SP),R12- MOVQ 368(SP),R13- MOVQ 376(SP),R14- MOVQ 384(SP),R15- MOVQ 392(SP),BX- MOVQ 400(SP),BP- MOVQ R11,SP+ MOVQ R12,SPRETBYTESATLEAST65:SUBQ $64,R9diff --git a/vendor/golang.org/x/crypto/scrypt/scrypt.go b/vendor/golang.org/x/crypto/scrypt/scrypt.goindex 30737b0a6..8c0eb0df5 100644--- a/vendor/golang.org/x/crypto/scrypt/scrypt.go+++ b/vendor/golang.org/x/crypto/scrypt/scrypt.go@@ -218,7 +218,7 @@ func smix(b []byte, r, N int, v, xy []uint32) {// For example, you can get a derived key for e.g. AES-256 (which needs a// 32-byte key) by doing://-// dk := scrypt.Key([]byte("some password"), salt, 16384, 8, 1, 32)+// dk, err := scrypt.Key([]byte("some password"), salt, 16384, 8, 1, 32)//// The recommended parameters for interactive logins as of 2009 are N=16384,// r=8, p=1. They should be increased as memory latency and CPU parallelismdiff --git a/vendor/golang.org/x/crypto/ssh/terminal/util.go b/vendor/golang.org/x/crypto/ssh/terminal/util.goindex 0763c9a97..7e60b31a2 100644--- a/vendor/golang.org/x/crypto/ssh/terminal/util.go+++ b/vendor/golang.org/x/crypto/ssh/terminal/util.go@@ -44,8 +44,13 @@ func MakeRaw(fd int) (*State, error) {}newState := oldState.termios- newState.Iflag &^= syscall.ISTRIP | syscall.INLCR | syscall.ICRNL | syscall.IGNCR | syscall.IXON | syscall.IXOFF- newState.Lflag &^= syscall.ECHO | syscall.ICANON | syscall.ISIG+ // This attempts to replicate the behaviour documented for cfmakeraw in+ // the termios(3) manpage.+ newState.Iflag &^= syscall.IGNBRK | syscall.BRKINT | syscall.PARMRK | syscall.ISTRIP | syscall.INLCR | syscall.IGNCR | syscall.ICRNL | syscall.IXON+ newState.Oflag &^= syscall.OPOST+ newState.Lflag &^= syscall.ECHO | syscall.ECHONL | syscall.ICANON | syscall.ISIG | syscall.IEXTEN+ newState.Cflag &^= syscall.CSIZE | syscall.PARENB+ newState.Cflag |= syscall.CS8if _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), ioctlWriteTermios, uintptr(unsafe.Pointer(&newState)), 0, 0, 0); err != 0 {return nil, err}diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go b/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.gonew file mode 100644index 000000000..799f049f0--- /dev/null+++ b/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go@@ -0,0 +1,58 @@+// Copyright 2016 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++// Package terminal provides support functions for dealing with terminals, as+// commonly found on UNIX systems.+//+// Putting a terminal into raw mode is the most common requirement:+//+// oldState, err := terminal.MakeRaw(0)+// if err != nil {+// panic(err)+// }+// defer terminal.Restore(0, oldState)+package terminal++import (+ "fmt"+ "runtime"+)++type State struct{}++// IsTerminal returns true if the given file descriptor is a terminal.+func IsTerminal(fd int) bool {+ return false+}++// MakeRaw put the terminal connected to the given file descriptor into raw+// mode and returns the previous state of the terminal so that it can be+// restored.+func MakeRaw(fd int) (*State, error) {+ return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)+}++// GetState returns the current state of a terminal which may be useful to+// restore the terminal after a signal.+func GetState(fd int) (*State, error) {+ return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)+}++// Restore restores the terminal connected to the given file descriptor to a+// previous state.+func Restore(fd int, state *State) error {+ return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)+}++// GetSize returns the dimensions of the given terminal.+func GetSize(fd int) (width, height int, err error) {+ return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)+}++// ReadPassword reads a line of input from a terminal without local echo. This+// is commonly used for inputting passwords and other sensitive data. The slice+// returned does not include the \n.+func ReadPassword(fd int) ([]byte, error) {+ return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)+}diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go b/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.gonew file mode 100644index 000000000..90d374ad5--- /dev/null+++ b/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go@@ -0,0 +1,73 @@+// Copyright 2015 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.++// +build solaris++package terminal++import (+ "golang.org/x/sys/unix"+ "io"+ "syscall"+)++// State contains the state of a terminal.+type State struct {+ termios syscall.Termios+}++// IsTerminal returns true if the given file descriptor is a terminal.+func IsTerminal(fd int) bool {+ // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c+ var termio unix.Termio+ err := unix.IoctlSetTermio(fd, unix.TCGETA, &termio)+ return err == nil+}++// ReadPassword reads a line of input from a terminal without local echo. This+// is commonly used for inputting passwords and other sensitive data. The slice+// returned does not include the \n.+func ReadPassword(fd int) ([]byte, error) {+ // see also: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libast/common/uwin/getpass.c+ val, err := unix.IoctlGetTermios(fd, unix.TCGETS)+ if err != nil {+ return nil, err+ }+ oldState := *val++ newState := oldState+ newState.Lflag &^= syscall.ECHO+ newState.Lflag |= syscall.ICANON | syscall.ISIG+ newState.Iflag |= syscall.ICRNL+ err = unix.IoctlSetTermios(fd, unix.TCSETS, &newState)+ if err != nil {+ return nil, err+ }++ defer unix.IoctlSetTermios(fd, unix.TCSETS, &oldState)++ var buf [16]byte+ var ret []byte+ for {+ n, err := syscall.Read(fd, buf[:])+ if err != nil {+ return nil, err+ }+ if n == 0 {+ if len(ret) == 0 {+ return nil, io.EOF+ }+ break+ }+ if buf[n-1] == '\n' {+ n--+ }+ ret = append(ret, buf[:n]...)+ if n < len(buf) {+ break+ }+ }++ return ret, nil+}diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.goindex 2dd6c3d97..ae9fa9ec1 100644--- a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go+++ b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go@@ -87,8 +87,8 @@ func MakeRaw(fd int) (*State, error) {if e != 0 {return nil, error(e)}- st &^= (enableEchoInput | enableProcessedInput | enableLineInput | enableProcessedOutput)- _, _, e = syscall.Syscall(procSetConsoleMode.Addr(), 2, uintptr(fd), uintptr(st), 0)+ raw := st &^ (enableEchoInput | enableProcessedInput | enableLineInput | enableProcessedOutput)+ _, _, e = syscall.Syscall(procSetConsoleMode.Addr(), 2, uintptr(fd), uintptr(raw), 0)if e != 0 {return nil, error(e)}diff --git a/vendor/golang.org/x/net/AUTHORS b/vendor/golang.org/x/net/AUTHORSnew file mode 100644index 000000000..15167cd74--- /dev/null+++ b/vendor/golang.org/x/net/AUTHORS@@ -0,0 +1,3 @@+# This source code refers to The Go Authors for copyright purposes.+# The master list of authors is in the main Go distribution,+# visible at http://tip.golang.org/AUTHORS.diff --git a/vendor/golang.org/x/net/CONTRIBUTORS b/vendor/golang.org/x/net/CONTRIBUTORSnew file mode 100644index 000000000..1c4577e96--- /dev/null+++ b/vendor/golang.org/x/net/CONTRIBUTORS@@ -0,0 +1,3 @@+# This source code was written by the Go contributors.+# The master list of contributors is in the main Go distribution,+# visible at http://tip.golang.org/CONTRIBUTORS.diff --git a/vendor/golang.org/x/net/context/context.go b/vendor/golang.org/x/net/context/context.goindex 11bd8d34e..ea1a7cd53 100644--- a/vendor/golang.org/x/net/context/context.go+++ b/vendor/golang.org/x/net/context/context.go@@ -36,12 +36,7 @@// Contexts.package context-import (- "errors"- "fmt"- "sync"- "time"-)+import "time"// A Context carries a deadline, a cancelation signal, and other values across// API boundaries.@@ -66,7 +61,7 @@ type Context interface {//// // Stream generates values with DoSomething and sends them to out// // until DoSomething returns an error or ctx.Done is closed.- // func Stream(ctx context.Context, out <-chan Value) error {+ // func Stream(ctx context.Context, out chan<- Value) error {// for {// v, err := DoSomething(ctx)// if err != nil {@@ -138,48 +133,6 @@ type Context interface {Value(key interface{}) interface{}}-// Canceled is the error returned by Context.Err when the context is canceled.-var Canceled = errors.New("context canceled")--// DeadlineExceeded is the error returned by Context.Err when the context's-// deadline passes.-var DeadlineExceeded = errors.New("context deadline exceeded")--// An emptyCtx is never canceled, has no values, and has no deadline. It is not-// struct{}, since vars of this type must have distinct addresses.-type emptyCtx int--func (*emptyCtx) Deadline() (deadline time.Time, ok bool) {- return-}--func (*emptyCtx) Done() <-chan struct{} {- return nil-}--func (*emptyCtx) Err() error {- return nil-}--func (*emptyCtx) Value(key interface{}) interface{} {- return nil-}--func (e *emptyCtx) String() string {- switch e {- case background:- return "context.Background"- case todo:- return "context.TODO"- }- return "unknown empty Context"-}--var (- background = new(emptyCtx)- todo = new(emptyCtx)-)-// Background returns a non-nil, empty Context. It is never canceled, has no// values, and has no deadline. It is typically used by the main function,// initialization, and tests, and as the top-level Context for incoming@@ -201,247 +154,3 @@ func TODO() Context {// A CancelFunc does not wait for the work to stop.// After the first call, subsequent calls to a CancelFunc do nothing.type CancelFunc func()--// WithCancel returns a copy of parent with a new Done channel. The returned-// context's Done channel is closed when the returned cancel function is called-// or when the parent context's Done channel is closed, whichever happens first.-//-// Canceling this context releases resources associated with it, so code should-// call cancel as soon as the operations running in this Context complete.-func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {- c := newCancelCtx(parent)- propagateCancel(parent, &c)- return &c, func() { c.cancel(true, Canceled) }-}--// newCancelCtx returns an initialized cancelCtx.-func newCancelCtx(parent Context) cancelCtx {- return cancelCtx{- Context: parent,- done: make(chan struct{}),- }-}--// propagateCancel arranges for child to be canceled when parent is.-func propagateCancel(parent Context, child canceler) {- if parent.Done() == nil {- return // parent is never canceled- }- if p, ok := parentCancelCtx(parent); ok {- p.mu.Lock()- if p.err != nil {- // parent has already been canceled- child.cancel(false, p.err)- } else {- if p.children == nil {- p.children = make(map[canceler]bool)- }- p.children[child] = true- }- p.mu.Unlock()- } else {- go func() {- select {- case <-parent.Done():- child.cancel(false, parent.Err())- case <-child.Done():- }- }()- }-}--// parentCancelCtx follows a chain of parent references until it finds a-// *cancelCtx. This function understands how each of the concrete types in this-// package represents its parent.-func parentCancelCtx(parent Context) (*cancelCtx, bool) {- for {- switch c := parent.(type) {- case *cancelCtx:- return c, true- case *timerCtx:- return &c.cancelCtx, true- case *valueCtx:- parent = c.Context- default:- return nil, false- }- }-}--// removeChild removes a context from its parent.-func removeChild(parent Context, child canceler) {- p, ok := parentCancelCtx(parent)- if !ok {- return- }- p.mu.Lock()- if p.children != nil {- delete(p.children, child)- }- p.mu.Unlock()-}--// A canceler is a context type that can be canceled directly. The-// implementations are *cancelCtx and *timerCtx.-type canceler interface {- cancel(removeFromParent bool, err error)- Done() <-chan struct{}-}--// A cancelCtx can be canceled. When canceled, it also cancels any children-// that implement canceler.-type cancelCtx struct {- Context-- done chan struct{} // closed by the first cancel call.-- mu sync.Mutex- children map[canceler]bool // set to nil by the first cancel call- err error // set to non-nil by the first cancel call-}--func (c *cancelCtx) Done() <-chan struct{} {- return c.done-}--func (c *cancelCtx) Err() error {- c.mu.Lock()- defer c.mu.Unlock()- return c.err-}--func (c *cancelCtx) String() string {- return fmt.Sprintf("%v.WithCancel", c.Context)-}--// cancel closes c.done, cancels each of c's children, and, if-// removeFromParent is true, removes c from its parent's children.-func (c *cancelCtx) cancel(removeFromParent bool, err error) {- if err == nil {- panic("context: internal error: missing cancel error")- }- c.mu.Lock()- if c.err != nil {- c.mu.Unlock()- return // already canceled- }- c.err = err- close(c.done)- for child := range c.children {- // NOTE: acquiring the child's lock while holding parent's lock.- child.cancel(false, err)- }- c.children = nil- c.mu.Unlock()-- if removeFromParent {- removeChild(c.Context, c)- }-}--// WithDeadline returns a copy of the parent context with the deadline adjusted-// to be no later than d. If the parent's deadline is already earlier than d,-// WithDeadline(parent, d) is semantically equivalent to parent. The returned-// context's Done channel is closed when the deadline expires, when the returned-// cancel function is called, or when the parent context's Done channel is-// closed, whichever happens first.-//-// Canceling this context releases resources associated with it, so code should-// call cancel as soon as the operations running in this Context complete.-func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) {- if cur, ok := parent.Deadline(); ok && cur.Before(deadline) {- // The current deadline is already sooner than the new one.- return WithCancel(parent)- }- c := &timerCtx{- cancelCtx: newCancelCtx(parent),- deadline: deadline,- }- propagateCancel(parent, c)- d := deadline.Sub(time.Now())- if d <= 0 {- c.cancel(true, DeadlineExceeded) // deadline has already passed- return c, func() { c.cancel(true, Canceled) }- }- c.mu.Lock()- defer c.mu.Unlock()- if c.err == nil {- c.timer = time.AfterFunc(d, func() {- c.cancel(true, DeadlineExceeded)- })- }- return c, func() { c.cancel(true, Canceled) }-}--// A timerCtx carries a timer and a deadline. It embeds a cancelCtx to-// implement Done and Err. It implements cancel by stopping its timer then-// delegating to cancelCtx.cancel.-type timerCtx struct {- cancelCtx- timer *time.Timer // Under cancelCtx.mu.-- deadline time.Time-}--func (c *timerCtx) Deadline() (deadline time.Time, ok bool) {- return c.deadline, true-}--func (c *timerCtx) String() string {- return fmt.Sprintf("%v.WithDeadline(%s [%s])", c.cancelCtx.Context, c.deadline, c.deadline.Sub(time.Now()))-}--func (c *timerCtx) cancel(removeFromParent bool, err error) {- c.cancelCtx.cancel(false, err)- if removeFromParent {- // Remove this timerCtx from its parent cancelCtx's children.- removeChild(c.cancelCtx.Context, c)- }- c.mu.Lock()- if c.timer != nil {- c.timer.Stop()- c.timer = nil- }- c.mu.Unlock()-}--// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)).-//-// Canceling this context releases resources associated with it, so code should-// call cancel as soon as the operations running in this Context complete:-//-// func slowOperationWithTimeout(ctx context.Context) (Result, error) {-// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)-// defer cancel() // releases resources if slowOperation completes before timeout elapses-// return slowOperation(ctx)-// }-func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {- return WithDeadline(parent, time.Now().Add(timeout))-}--// WithValue returns a copy of parent in which the value associated with key is-// val.-//-// Use context Values only for request-scoped data that transits processes and-// APIs, not for passing optional parameters to functions.-func WithValue(parent Context, key interface{}, val interface{}) Context {- return &valueCtx{parent, key, val}-}--// A valueCtx carries a key-value pair. It implements Value for that key and-// delegates all other calls to the embedded Context.-type valueCtx struct {- Context- key, val interface{}-}--func (c *valueCtx) String() string {- return fmt.Sprintf("%v.WithValue(%#v, %#v)", c.Context, c.key, c.val)-}--func (c *valueCtx) Value(key interface{}) interface{} {- if c.key == key {- return c.val- }- return c.Context.Value(key)-}diff --git a/vendor/golang.org/x/net/context/ctxhttp/cancelreq.go b/vendor/golang.org/x/net/context/ctxhttp/cancelreq.godeleted file mode 100644index e3170e333..000000000--- a/vendor/golang.org/x/net/context/ctxhttp/cancelreq.go+++ /dev/null@@ -1,19 +0,0 @@-// Copyright 2015 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.--// +build go1.5--package ctxhttp--import "net/http"--func canceler(client *http.Client, req *http.Request) func() {- // TODO(djd): Respect any existing value of req.Cancel.- ch := make(chan struct{})- req.Cancel = ch-- return func() {- close(ch)- }-}diff --git a/vendor/golang.org/x/net/context/ctxhttp/cancelreq_go14.go b/vendor/golang.org/x/net/context/ctxhttp/cancelreq_go14.godeleted file mode 100644index 56bcbadb8..000000000--- a/vendor/golang.org/x/net/context/ctxhttp/cancelreq_go14.go+++ /dev/null@@ -1,23 +0,0 @@-// Copyright 2015 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.--// +build !go1.5--package ctxhttp--import "net/http"--type requestCanceler interface {- CancelRequest(*http.Request)-}--func canceler(client *http.Client, req *http.Request) func() {- rc, ok := client.Transport.(requestCanceler)- if !ok {- return func() {}- }- return func() {- rc.CancelRequest(req)- }-}diff --git a/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go b/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.goindex 26a5e19ac..22eabffe5 100644--- a/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go+++ b/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go@@ -1,7 +1,9 @@-// Copyright 2015 The Go Authors. All rights reserved.+// Copyright 2016 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.+// +build go1.7+// Package ctxhttp provides helper functions for performing context-aware HTTP requests.package ctxhttp@@ -14,71 +16,28 @@ import ("golang.org/x/net/context")-func nop() {}--var (- testHookContextDoneBeforeHeaders = nop- testHookDoReturned = nop- testHookDidBodyClose = nop-)--// Do sends an HTTP request with the provided http.Client and returns an HTTP response.+// Do sends an HTTP request with the provided http.Client and returns+// an HTTP response.+//// If the client is nil, http.DefaultClient is used.-// If the context is canceled or times out, ctx.Err() will be returned.+//+// The provided ctx must be non-nil. If it is canceled or times out,+// ctx.Err() will be returned.func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {if client == nil {client = http.DefaultClient}-- // Request cancelation changed in Go 1.5, see cancelreq.go and cancelreq_go14.go.- cancel := canceler(client, req)-- type responseAndError struct {- resp *http.Response- err error- }- result := make(chan responseAndError, 1)-- go func() {- resp, err := client.Do(req)- testHookDoReturned()- result <- responseAndError{resp, err}- }()-- var resp *http.Response-- select {- case <-ctx.Done():- testHookContextDoneBeforeHeaders()- cancel()- // Clean up after the goroutine calling client.Do:- go func() {- if r := <-result; r.resp != nil {- testHookDidBodyClose()- r.resp.Body.Close()- }- }()- return nil, ctx.Err()- case r := <-result:- var err error- resp, err = r.resp, r.err- if err != nil {- return resp, err- }- }-- c := make(chan struct{})- go func() {+ resp, err := client.Do(req.WithContext(ctx))+ // If we got an error, and the context has been canceled,+ // the context's error is probably more useful.+ if err != nil {select {case <-ctx.Done():- cancel()- case <-c:- // The response's Body is closed.+ err = ctx.Err()+ default:}- }()- resp.Body = ¬ifyingReader{resp.Body, c}-- return resp, nil+ }+ return resp, err}// Get issues a GET request via the Do function.@@ -113,28 +72,3 @@ func Post(ctx context.Context, client *http.Client, url string, bodyType string,func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error) {return Post(ctx, client, url, "application/x-www-form-urlencoded", strings.NewReader(data.Encode()))}--// notifyingReader is an io.ReadCloser that closes the notify channel after-// Close is called or a Read fails on the underlying ReadCloser.-type notifyingReader struct {- io.ReadCloser- notify chan<- struct{}-}--func (r *notifyingReader) Read(p []byte) (int, error) {- n, err := r.ReadCloser.Read(p)- if err != nil && r.notify != nil {- close(r.notify)- r.notify = nil- }- return n, err-}--func (r *notifyingReader) Close() error {- err := r.ReadCloser.Close()- if r.notify != nil {- close(r.notify)- r.notify = nil- }- return err-}diff --git a/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go b/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.gonew file mode 100644index 000000000..7564b2032--- /dev/null+++ b/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go@@ -0,0 +1,147 @@+// Copyright 2015 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.++// +build !go1.7++package ctxhttp++import (+ "io"+ "net/http"+ "net/url"+ "strings"++ "golang.org/x/net/context"+)++func nop() {}++var (+ testHookContextDoneBeforeHeaders = nop+ testHookDoReturned = nop+ testHookDidBodyClose = nop+)++// Do sends an HTTP request with the provided http.Client and returns an HTTP response.+// If the client is nil, http.DefaultClient is used.+// If the context is canceled or times out, ctx.Err() will be returned.+func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {+ if client == nil {+ client = http.DefaultClient+ }++ // TODO(djd): Respect any existing value of req.Cancel.+ cancel := make(chan struct{})+ req.Cancel = cancel++ type responseAndError struct {+ resp *http.Response+ err error+ }+ result := make(chan responseAndError, 1)++ // Make local copies of test hooks closed over by goroutines below.+ // Prevents data races in tests.+ testHookDoReturned := testHookDoReturned+ testHookDidBodyClose := testHookDidBodyClose++ go func() {+ resp, err := client.Do(req)+ testHookDoReturned()+ result <- responseAndError{resp, err}+ }()++ var resp *http.Response++ select {+ case <-ctx.Done():+ testHookContextDoneBeforeHeaders()+ close(cancel)+ // Clean up after the goroutine calling client.Do:+ go func() {+ if r := <-result; r.resp != nil {+ testHookDidBodyClose()+ r.resp.Body.Close()+ }+ }()+ return nil, ctx.Err()+ case r := <-result:+ var err error+ resp, err = r.resp, r.err+ if err != nil {+ return resp, err+ }+ }++ c := make(chan struct{})+ go func() {+ select {+ case <-ctx.Done():+ close(cancel)+ case <-c:+ // The response's Body is closed.+ }+ }()+ resp.Body = ¬ifyingReader{resp.Body, c}++ return resp, nil+}++// Get issues a GET request via the Do function.+func Get(ctx context.Context, client *http.Client, url string) (*http.Response, error) {+ req, err := http.NewRequest("GET", url, nil)+ if err != nil {+ return nil, err+ }+ return Do(ctx, client, req)+}++// Head issues a HEAD request via the Do function.+func Head(ctx context.Context, client *http.Client, url string) (*http.Response, error) {+ req, err := http.NewRequest("HEAD", url, nil)+ if err != nil {+ return nil, err+ }+ return Do(ctx, client, req)+}++// Post issues a POST request via the Do function.+func Post(ctx context.Context, client *http.Client, url string, bodyType string, body io.Reader) (*http.Response, error) {+ req, err := http.NewRequest("POST", url, body)+ if err != nil {+ return nil, err+ }+ req.Header.Set("Content-Type", bodyType)+ return Do(ctx, client, req)+}++// PostForm issues a POST request via the Do function.+func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error) {+ return Post(ctx, client, url, "application/x-www-form-urlencoded", strings.NewReader(data.Encode()))+}++// notifyingReader is an io.ReadCloser that closes the notify channel after+// Close is called or a Read fails on the underlying ReadCloser.+type notifyingReader struct {+ io.ReadCloser+ notify chan<- struct{}+}++func (r *notifyingReader) Read(p []byte) (int, error) {+ n, err := r.ReadCloser.Read(p)+ if err != nil && r.notify != nil {+ close(r.notify)+ r.notify = nil+ }+ return n, err+}++func (r *notifyingReader) Close() error {+ err := r.ReadCloser.Close()+ if r.notify != nil {+ close(r.notify)+ r.notify = nil+ }+ return err+}diff --git a/vendor/golang.org/x/net/context/go17.go b/vendor/golang.org/x/net/context/go17.gonew file mode 100644index 000000000..f8cda19ad--- /dev/null+++ b/vendor/golang.org/x/net/context/go17.go@@ -0,0 +1,72 @@+// Copyright 2016 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.++// +build go1.7++package context++import (+ "context" // standard library's context, as of Go 1.7+ "time"+)++var (+ todo = context.TODO()+ background = context.Background()+)++// Canceled is the error returned by Context.Err when the context is canceled.+var Canceled = context.Canceled++// DeadlineExceeded is the error returned by Context.Err when the context's+// deadline passes.+var DeadlineExceeded = context.DeadlineExceeded++// WithCancel returns a copy of parent with a new Done channel. The returned+// context's Done channel is closed when the returned cancel function is called+// or when the parent context's Done channel is closed, whichever happens first.+//+// Canceling this context releases resources associated with it, so code should+// call cancel as soon as the operations running in this Context complete.+func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {+ ctx, f := context.WithCancel(parent)+ return ctx, CancelFunc(f)+}++// WithDeadline returns a copy of the parent context with the deadline adjusted+// to be no later than d. If the parent's deadline is already earlier than d,+// WithDeadline(parent, d) is semantically equivalent to parent. The returned+// context's Done channel is closed when the deadline expires, when the returned+// cancel function is called, or when the parent context's Done channel is+// closed, whichever happens first.+//+// Canceling this context releases resources associated with it, so code should+// call cancel as soon as the operations running in this Context complete.+func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) {+ ctx, f := context.WithDeadline(parent, deadline)+ return ctx, CancelFunc(f)+}++// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)).+//+// Canceling this context releases resources associated with it, so code should+// call cancel as soon as the operations running in this Context complete:+//+// func slowOperationWithTimeout(ctx context.Context) (Result, error) {+// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)+// defer cancel() // releases resources if slowOperation completes before timeout elapses+// return slowOperation(ctx)+// }+func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {+ return WithDeadline(parent, time.Now().Add(timeout))+}++// WithValue returns a copy of parent in which the value associated with key is+// val.+//+// Use context Values only for request-scoped data that transits processes and+// APIs, not for passing optional parameters to functions.+func WithValue(parent Context, key interface{}, val interface{}) Context {+ return context.WithValue(parent, key, val)+}diff --git a/vendor/golang.org/x/net/context/pre_go17.go b/vendor/golang.org/x/net/context/pre_go17.gonew file mode 100644index 000000000..5a30acabd--- /dev/null+++ b/vendor/golang.org/x/net/context/pre_go17.go@@ -0,0 +1,300 @@+// Copyright 2014 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.++// +build !go1.7++package context++import (+ "errors"+ "fmt"+ "sync"+ "time"+)++// An emptyCtx is never canceled, has no values, and has no deadline. It is not+// struct{}, since vars of this type must have distinct addresses.+type emptyCtx int++func (*emptyCtx) Deadline() (deadline time.Time, ok bool) {+ return+}++func (*emptyCtx) Done() <-chan struct{} {+ return nil+}++func (*emptyCtx) Err() error {+ return nil+}++func (*emptyCtx) Value(key interface{}) interface{} {+ return nil+}++func (e *emptyCtx) String() string {+ switch e {+ case background:+ return "context.Background"+ case todo:+ return "context.TODO"+ }+ return "unknown empty Context"+}++var (+ background = new(emptyCtx)+ todo = new(emptyCtx)+)++// Canceled is the error returned by Context.Err when the context is canceled.+var Canceled = errors.New("context canceled")++// DeadlineExceeded is the error returned by Context.Err when the context's+// deadline passes.+var DeadlineExceeded = errors.New("context deadline exceeded")++// WithCancel returns a copy of parent with a new Done channel. The returned+// context's Done channel is closed when the returned cancel function is called+// or when the parent context's Done channel is closed, whichever happens first.+//+// Canceling this context releases resources associated with it, so code should+// call cancel as soon as the operations running in this Context complete.+func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {+ c := newCancelCtx(parent)+ propagateCancel(parent, c)+ return c, func() { c.cancel(true, Canceled) }+}++// newCancelCtx returns an initialized cancelCtx.+func newCancelCtx(parent Context) *cancelCtx {+ return &cancelCtx{+ Context: parent,+ done: make(chan struct{}),+ }+}++// propagateCancel arranges for child to be canceled when parent is.+func propagateCancel(parent Context, child canceler) {+ if parent.Done() == nil {+ return // parent is never canceled+ }+ if p, ok := parentCancelCtx(parent); ok {+ p.mu.Lock()+ if p.err != nil {+ // parent has already been canceled+ child.cancel(false, p.err)+ } else {+ if p.children == nil {+ p.children = make(map[canceler]bool)+ }+ p.children[child] = true+ }+ p.mu.Unlock()+ } else {+ go func() {+ select {+ case <-parent.Done():+ child.cancel(false, parent.Err())+ case <-child.Done():+ }+ }()+ }+}++// parentCancelCtx follows a chain of parent references until it finds a+// *cancelCtx. This function understands how each of the concrete types in this+// package represents its parent.+func parentCancelCtx(parent Context) (*cancelCtx, bool) {+ for {+ switch c := parent.(type) {+ case *cancelCtx:+ return c, true+ case *timerCtx:+ return c.cancelCtx, true+ case *valueCtx:+ parent = c.Context+ default:+ return nil, false+ }+ }+}++// removeChild removes a context from its parent.+func removeChild(parent Context, child canceler) {+ p, ok := parentCancelCtx(parent)+ if !ok {+ return+ }+ p.mu.Lock()+ if p.children != nil {+ delete(p.children, child)+ }+ p.mu.Unlock()+}++// A canceler is a context type that can be canceled directly. The+// implementations are *cancelCtx and *timerCtx.+type canceler interface {+ cancel(removeFromParent bool, err error)+ Done() <-chan struct{}+}++// A cancelCtx can be canceled. When canceled, it also cancels any children+// that implement canceler.+type cancelCtx struct {+ Context++ done chan struct{} // closed by the first cancel call.++ mu sync.Mutex+ children map[canceler]bool // set to nil by the first cancel call+ err error // set to non-nil by the first cancel call+}++func (c *cancelCtx) Done() <-chan struct{} {+ return c.done+}++func (c *cancelCtx) Err() error {+ c.mu.Lock()+ defer c.mu.Unlock()+ return c.err+}++func (c *cancelCtx) String() string {+ return fmt.Sprintf("%v.WithCancel", c.Context)+}++// cancel closes c.done, cancels each of c's children, and, if+// removeFromParent is true, removes c from its parent's children.+func (c *cancelCtx) cancel(removeFromParent bool, err error) {+ if err == nil {+ panic("context: internal error: missing cancel error")+ }+ c.mu.Lock()+ if c.err != nil {+ c.mu.Unlock()+ return // already canceled+ }+ c.err = err+ close(c.done)+ for child := range c.children {+ // NOTE: acquiring the child's lock while holding parent's lock.+ child.cancel(false, err)+ }+ c.children = nil+ c.mu.Unlock()++ if removeFromParent {+ removeChild(c.Context, c)+ }+}++// WithDeadline returns a copy of the parent context with the deadline adjusted+// to be no later than d. If the parent's deadline is already earlier than d,+// WithDeadline(parent, d) is semantically equivalent to parent. The returned+// context's Done channel is closed when the deadline expires, when the returned+// cancel function is called, or when the parent context's Done channel is+// closed, whichever happens first.+//+// Canceling this context releases resources associated with it, so code should+// call cancel as soon as the operations running in this Context complete.+func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) {+ if cur, ok := parent.Deadline(); ok && cur.Before(deadline) {+ // The current deadline is already sooner than the new one.+ return WithCancel(parent)+ }+ c := &timerCtx{+ cancelCtx: newCancelCtx(parent),+ deadline: deadline,+ }+ propagateCancel(parent, c)+ d := deadline.Sub(time.Now())+ if d <= 0 {+ c.cancel(true, DeadlineExceeded) // deadline has already passed+ return c, func() { c.cancel(true, Canceled) }+ }+ c.mu.Lock()+ defer c.mu.Unlock()+ if c.err == nil {+ c.timer = time.AfterFunc(d, func() {+ c.cancel(true, DeadlineExceeded)+ })+ }+ return c, func() { c.cancel(true, Canceled) }+}++// A timerCtx carries a timer and a deadline. It embeds a cancelCtx to+// implement Done and Err. It implements cancel by stopping its timer then+// delegating to cancelCtx.cancel.+type timerCtx struct {+ *cancelCtx+ timer *time.Timer // Under cancelCtx.mu.++ deadline time.Time+}++func (c *timerCtx) Deadline() (deadline time.Time, ok bool) {+ return c.deadline, true+}++func (c *timerCtx) String() string {+ return fmt.Sprintf("%v.WithDeadline(%s [%s])", c.cancelCtx.Context, c.deadline, c.deadline.Sub(time.Now()))+}++func (c *timerCtx) cancel(removeFromParent bool, err error) {+ c.cancelCtx.cancel(false, err)+ if removeFromParent {+ // Remove this timerCtx from its parent cancelCtx's children.+ removeChild(c.cancelCtx.Context, c)+ }+ c.mu.Lock()+ if c.timer != nil {+ c.timer.Stop()+ c.timer = nil+ }+ c.mu.Unlock()+}++// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)).+//+// Canceling this context releases resources associated with it, so code should+// call cancel as soon as the operations running in this Context complete:+//+// func slowOperationWithTimeout(ctx context.Context) (Result, error) {+// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)+// defer cancel() // releases resources if slowOperation completes before timeout elapses+// return slowOperation(ctx)+// }+func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {+ return WithDeadline(parent, time.Now().Add(timeout))+}++// WithValue returns a copy of parent in which the value associated with key is+// val.+//+// Use context Values only for request-scoped data that transits processes and+// APIs, not for passing optional parameters to functions.+func WithValue(parent Context, key interface{}, val interface{}) Context {+ return &valueCtx{parent, key, val}+}++// A valueCtx carries a key-value pair. It implements Value for that key and+// delegates all other calls to the embedded Context.+type valueCtx struct {+ Context+ key, val interface{}+}++func (c *valueCtx) String() string {+ return fmt.Sprintf("%v.WithValue(%#v, %#v)", c.Context, c.key, c.val)+}++func (c *valueCtx) Value(key interface{}) interface{} {+ if c.key == key {+ return c.val+ }+ return c.Context.Value(key)+}diff --git a/vendor/golang.org/x/net/http2/.gitignore b/vendor/golang.org/x/net/http2/.gitignorenew file mode 100644index 000000000..190f12234--- /dev/null+++ b/vendor/golang.org/x/net/http2/.gitignore@@ -0,0 +1,2 @@+*~+h2i/h2idiff --git a/vendor/golang.org/x/net/http2/Dockerfile b/vendor/golang.org/x/net/http2/Dockerfilenew file mode 100644index 000000000..53fc52579--- /dev/null+++ b/vendor/golang.org/x/net/http2/Dockerfile@@ -0,0 +1,51 @@+#+# This Dockerfile builds a recent curl with HTTP/2 client support, using+# a recent nghttp2 build.+#+# See the Makefile for how to tag it. If Docker and that image is found, the+# Go tests use this curl binary for integration tests.+#++FROM ubuntu:trusty++RUN apt-get update && \+ apt-get upgrade -y && \+ apt-get install -y git-core build-essential wget++RUN apt-get install -y --no-install-recommends \+ autotools-dev libtool pkg-config zlib1g-dev \+ libcunit1-dev libssl-dev libxml2-dev libevent-dev \+ automake autoconf++# The list of packages nghttp2 recommends for h2load:+RUN apt-get install -y --no-install-recommends make binutils \+ autoconf automake autotools-dev \+ libtool pkg-config zlib1g-dev libcunit1-dev libssl-dev libxml2-dev \+ libev-dev libevent-dev libjansson-dev libjemalloc-dev \+ cython python3.4-dev python-setuptools++# Note: setting NGHTTP2_VER before the git clone, so an old git clone isn't cached:+ENV NGHTTP2_VER 895da9a+RUN cd /root && git clone https://github.com/tatsuhiro-t/nghttp2.git++WORKDIR /root/nghttp2+RUN git reset --hard $NGHTTP2_VER+RUN autoreconf -i+RUN automake+RUN autoconf+RUN ./configure+RUN make+RUN make install++WORKDIR /root+RUN wget http://curl.haxx.se/download/curl-7.45.0.tar.gz+RUN tar -zxvf curl-7.45.0.tar.gz+WORKDIR /root/curl-7.45.0+RUN ./configure --with-ssl --with-nghttp2=/usr/local+RUN make+RUN make install+RUN ldconfig++CMD ["-h"]+ENTRYPOINT ["/usr/local/bin/curl"]+diff --git a/vendor/golang.org/x/net/http2/Makefile b/vendor/golang.org/x/net/http2/Makefilenew file mode 100644index 000000000..55fd826f7--- /dev/null+++ b/vendor/golang.org/x/net/http2/Makefile@@ -0,0 +1,3 @@+curlimage:+ docker build -t gohttp2/curl .+diff --git a/vendor/golang.org/x/net/http2/README b/vendor/golang.org/x/net/http2/READMEnew file mode 100644index 000000000..360d5aa37--- /dev/null+++ b/vendor/golang.org/x/net/http2/README@@ -0,0 +1,20 @@+This is a work-in-progress HTTP/2 implementation for Go.++It will eventually live in the Go standard library and won't require+any changes to your code to use. It will just be automatic.++Status:++* The server support is pretty good. A few things are missing+ but are being worked on.+* The client work has just started but shares a lot of code+ is coming along much quicker.++Docs are at https://godoc.org/golang.org/x/net/http2++Demo test server at https://http2.golang.org/++Help & bug reports welcome!++Contributing: https://golang.org/doc/contribute.html+Bugs: https://golang.org/issue/new?title=x/net/http2:+diff --git a/vendor/golang.org/x/net/http2/client_conn_pool.go b/vendor/golang.org/x/net/http2/client_conn_pool.gonew file mode 100644index 000000000..b13941258--- /dev/null+++ b/vendor/golang.org/x/net/http2/client_conn_pool.go@@ -0,0 +1,256 @@+// Copyright 2015 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.++// Transport code's client connection pooling.++package http2++import (+ "crypto/tls"+ "net/http"+ "sync"+)++// ClientConnPool manages a pool of HTTP/2 client connections.+type ClientConnPool interface {+ GetClientConn(req *http.Request, addr string) (*ClientConn, error)+ MarkDead(*ClientConn)+}++// clientConnPoolIdleCloser is the interface implemented by ClientConnPool+// implementations which can close their idle connections.+type clientConnPoolIdleCloser interface {+ ClientConnPool+ closeIdleConnections()+}++var (+ _ clientConnPoolIdleCloser = (*clientConnPool)(nil)+ _ clientConnPoolIdleCloser = noDialClientConnPool{}+)++// TODO: use singleflight for dialing and addConnCalls?+type clientConnPool struct {+ t *Transport++ mu sync.Mutex // TODO: maybe switch to RWMutex+ // TODO: add support for sharing conns based on cert names+ // (e.g. share conn for googleapis.com and appspot.com)+ conns map[string][]*ClientConn // key is host:port+ dialing map[string]*dialCall // currently in-flight dials+ keys map[*ClientConn][]string+ addConnCalls map[string]*addConnCall // in-flight addConnIfNeede calls+}++func (p *clientConnPool) GetClientConn(req *http.Request, addr string) (*ClientConn, error) {+ return p.getClientConn(req, addr, dialOnMiss)+}++const (+ dialOnMiss = true+ noDialOnMiss = false+)++func (p *clientConnPool) getClientConn(req *http.Request, addr string, dialOnMiss bool) (*ClientConn, error) {+ if isConnectionCloseRequest(req) && dialOnMiss {+ // It gets its own connection.+ const singleUse = true+ cc, err := p.t.dialClientConn(addr, singleUse)+ if err != nil {+ return nil, err+ }+ return cc, nil+ }+ p.mu.Lock()+ for _, cc := range p.conns[addr] {+ if cc.CanTakeNewRequest() {+ p.mu.Unlock()+ return cc, nil+ }+ }+ if !dialOnMiss {+ p.mu.Unlock()+ return nil, ErrNoCachedConn+ }+ call := p.getStartDialLocked(addr)+ p.mu.Unlock()+ <-call.done+ return call.res, call.err+}++// dialCall is an in-flight Transport dial call to a host.+type dialCall struct {+ p *clientConnPool+ done chan struct{} // closed when done+ res *ClientConn // valid after done is closed+ err error // valid after done is closed+}++// requires p.mu is held.+func (p *clientConnPool) getStartDialLocked(addr string) *dialCall {+ if call, ok := p.dialing[addr]; ok {+ // A dial is already in-flight. Don't start another.+ return call+ }+ call := &dialCall{p: p, done: make(chan struct{})}+ if p.dialing == nil {+ p.dialing = make(map[string]*dialCall)+ }+ p.dialing[addr] = call+ go call.dial(addr)+ return call+}++// run in its own goroutine.+func (c *dialCall) dial(addr string) {+ const singleUse = false // shared conn+ c.res, c.err = c.p.t.dialClientConn(addr, singleUse)+ close(c.done)++ c.p.mu.Lock()+ delete(c.p.dialing, addr)+ if c.err == nil {+ c.p.addConnLocked(addr, c.res)+ }+ c.p.mu.Unlock()+}++// addConnIfNeeded makes a NewClientConn out of c if a connection for key doesn't+// already exist. It coalesces concurrent calls with the same key.+// This is used by the http1 Transport code when it creates a new connection. Because+// the http1 Transport doesn't de-dup TCP dials to outbound hosts (because it doesn't know+// the protocol), it can get into a situation where it has multiple TLS connections.+// This code decides which ones live or die.+// The return value used is whether c was used.+// c is never closed.+func (p *clientConnPool) addConnIfNeeded(key string, t *Transport, c *tls.Conn) (used bool, err error) {+ p.mu.Lock()+ for _, cc := range p.conns[key] {+ if cc.CanTakeNewRequest() {+ p.mu.Unlock()+ return false, nil+ }+ }+ call, dup := p.addConnCalls[key]+ if !dup {+ if p.addConnCalls == nil {+ p.addConnCalls = make(map[string]*addConnCall)+ }+ call = &addConnCall{+ p: p,+ done: make(chan struct{}),+ }+ p.addConnCalls[key] = call+ go call.run(t, key, c)+ }+ p.mu.Unlock()++ <-call.done+ if call.err != nil {+ return false, call.err+ }+ return !dup, nil+}++type addConnCall struct {+ p *clientConnPool+ done chan struct{} // closed when done+ err error+}++func (c *addConnCall) run(t *Transport, key string, tc *tls.Conn) {+ cc, err := t.NewClientConn(tc)++ p := c.p+ p.mu.Lock()+ if err != nil {+ c.err = err+ } else {+ p.addConnLocked(key, cc)+ }+ delete(p.addConnCalls, key)+ p.mu.Unlock()+ close(c.done)+}++func (p *clientConnPool) addConn(key string, cc *ClientConn) {+ p.mu.Lock()+ p.addConnLocked(key, cc)+ p.mu.Unlock()+}++// p.mu must be held+func (p *clientConnPool) addConnLocked(key string, cc *ClientConn) {+ for _, v := range p.conns[key] {+ if v == cc {+ return+ }+ }+ if p.conns == nil {+ p.conns = make(map[string][]*ClientConn)+ }+ if p.keys == nil {+ p.keys = make(map[*ClientConn][]string)+ }+ p.conns[key] = append(p.conns[key], cc)+ p.keys[cc] = append(p.keys[cc], key)+}++func (p *clientConnPool) MarkDead(cc *ClientConn) {+ p.mu.Lock()+ defer p.mu.Unlock()+ for _, key := range p.keys[cc] {+ vv, ok := p.conns[key]+ if !ok {+ continue+ }+ newList := filterOutClientConn(vv, cc)+ if len(newList) > 0 {+ p.conns[key] = newList+ } else {+ delete(p.conns, key)+ }+ }+ delete(p.keys, cc)+}++func (p *clientConnPool) closeIdleConnections() {+ p.mu.Lock()+ defer p.mu.Unlock()+ // TODO: don't close a cc if it was just added to the pool+ // milliseconds ago and has never been used. There's currently+ // a small race window with the HTTP/1 Transport's integration+ // where it can add an idle conn just before using it, and+ // somebody else can concurrently call CloseIdleConns and+ // break some caller's RoundTrip.+ for _, vv := range p.conns {+ for _, cc := range vv {+ cc.closeIfIdle()+ }+ }+}++func filterOutClientConn(in []*ClientConn, exclude *ClientConn) []*ClientConn {+ out := in[:0]+ for _, v := range in {+ if v != exclude {+ out = append(out, v)+ }+ }+ // If we filtered it out, zero out the last item to prevent+ // the GC from seeing it.+ if len(in) != len(out) {+ in[len(in)-1] = nil+ }+ return out+}++// noDialClientConnPool is an implementation of http2.ClientConnPool+// which never dials. We let the HTTP/1.1 client dial and use its TLS+// connection instead.+type noDialClientConnPool struct{ *clientConnPool }++func (p noDialClientConnPool) GetClientConn(req *http.Request, addr string) (*ClientConn, error) {+ return p.getClientConn(req, addr, noDialOnMiss)+}diff --git a/vendor/golang.org/x/net/http2/configure_transport.go b/vendor/golang.org/x/net/http2/configure_transport.gonew file mode 100644index 000000000..4f720f530--- /dev/null+++ b/vendor/golang.org/x/net/http2/configure_transport.go@@ -0,0 +1,80 @@+// Copyright 2015 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.++// +build go1.6++package http2++import (+ "crypto/tls"+ "fmt"+ "net/http"+)++func configureTransport(t1 *http.Transport) (*Transport, error) {+ connPool := new(clientConnPool)+ t2 := &Transport{+ ConnPool: noDialClientConnPool{connPool},+ t1: t1,+ }+ connPool.t = t2+ if err := registerHTTPSProtocol(t1, noDialH2RoundTripper{t2}); err != nil {+ return nil, err+ }+ if t1.TLSClientConfig == nil {+ t1.TLSClientConfig = new(tls.Config)+ }+ if !strSliceContains(t1.TLSClientConfig.NextProtos, "h2") {+ t1.TLSClientConfig.NextProtos = append([]string{"h2"}, t1.TLSClientConfig.NextProtos...)+ }+ if !strSliceContains(t1.TLSClientConfig.NextProtos, "http/1.1") {+ t1.TLSClientConfig.NextProtos = append(t1.TLSClientConfig.NextProtos, "http/1.1")+ }+ upgradeFn := func(authority string, c *tls.Conn) http.RoundTripper {+ addr := authorityAddr("https", authority)+ if used, err := connPool.addConnIfNeeded(addr, t2, c); err != nil {+ go c.Close()+ return erringRoundTripper{err}+ } else if !used {+ // Turns out we don't need this c.+ // For example, two goroutines made requests to the same host+ // at the same time, both kicking off TCP dials. (since protocol+ // was unknown)+ go c.Close()+ }+ return t2+ }+ if m := t1.TLSNextProto; len(m) == 0 {+ t1.TLSNextProto = map[string]func(string, *tls.Conn) http.RoundTripper{+ "h2": upgradeFn,+ }+ } else {+ m["h2"] = upgradeFn+ }+ return t2, nil+}++// registerHTTPSProtocol calls Transport.RegisterProtocol but+// convering panics into errors.+func registerHTTPSProtocol(t *http.Transport, rt http.RoundTripper) (err error) {+ defer func() {+ if e := recover(); e != nil {+ err = fmt.Errorf("%v", e)+ }+ }()+ t.RegisterProtocol("https", rt)+ return nil+}++// noDialH2RoundTripper is a RoundTripper which only tries to complete the request+// if there's already has a cached connection to the host.+type noDialH2RoundTripper struct{ t *Transport }++func (rt noDialH2RoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {+ res, err := rt.t.RoundTrip(req)+ if err == ErrNoCachedConn {+ return nil, http.ErrSkipAltProtocol+ }+ return res, err+}diff --git a/vendor/golang.org/x/net/http2/errors.go b/vendor/golang.org/x/net/http2/errors.gonew file mode 100644index 000000000..20fd7626a--- /dev/null+++ b/vendor/golang.org/x/net/http2/errors.go@@ -0,0 +1,130 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package http2++import (+ "errors"+ "fmt"+)++// An ErrCode is an unsigned 32-bit error code as defined in the HTTP/2 spec.+type ErrCode uint32++const (+ ErrCodeNo ErrCode = 0x0+ ErrCodeProtocol ErrCode = 0x1+ ErrCodeInternal ErrCode = 0x2+ ErrCodeFlowControl ErrCode = 0x3+ ErrCodeSettingsTimeout ErrCode = 0x4+ ErrCodeStreamClosed ErrCode = 0x5+ ErrCodeFrameSize ErrCode = 0x6+ ErrCodeRefusedStream ErrCode = 0x7+ ErrCodeCancel ErrCode = 0x8+ ErrCodeCompression ErrCode = 0x9+ ErrCodeConnect ErrCode = 0xa+ ErrCodeEnhanceYourCalm ErrCode = 0xb+ ErrCodeInadequateSecurity ErrCode = 0xc+ ErrCodeHTTP11Required ErrCode = 0xd+)++var errCodeName = map[ErrCode]string{+ ErrCodeNo: "NO_ERROR",+ ErrCodeProtocol: "PROTOCOL_ERROR",+ ErrCodeInternal: "INTERNAL_ERROR",+ ErrCodeFlowControl: "FLOW_CONTROL_ERROR",+ ErrCodeSettingsTimeout: "SETTINGS_TIMEOUT",+ ErrCodeStreamClosed: "STREAM_CLOSED",+ ErrCodeFrameSize: "FRAME_SIZE_ERROR",+ ErrCodeRefusedStream: "REFUSED_STREAM",+ ErrCodeCancel: "CANCEL",+ ErrCodeCompression: "COMPRESSION_ERROR",+ ErrCodeConnect: "CONNECT_ERROR",+ ErrCodeEnhanceYourCalm: "ENHANCE_YOUR_CALM",+ ErrCodeInadequateSecurity: "INADEQUATE_SECURITY",+ ErrCodeHTTP11Required: "HTTP_1_1_REQUIRED",+}++func (e ErrCode) String() string {+ if s, ok := errCodeName[e]; ok {+ return s+ }+ return fmt.Sprintf("unknown error code 0x%x", uint32(e))+}++// ConnectionError is an error that results in the termination of the+// entire connection.+type ConnectionError ErrCode++func (e ConnectionError) Error() string { return fmt.Sprintf("connection error: %s", ErrCode(e)) }++// StreamError is an error that only affects one stream within an+// HTTP/2 connection.+type StreamError struct {+ StreamID uint32+ Code ErrCode+ Cause error // optional additional detail+}++func streamError(id uint32, code ErrCode) StreamError {+ return StreamError{StreamID: id, Code: code}+}++func (e StreamError) Error() string {+ if e.Cause != nil {+ return fmt.Sprintf("stream error: stream ID %d; %v; %v", e.StreamID, e.Code, e.Cause)+ }+ return fmt.Sprintf("stream error: stream ID %d; %v", e.StreamID, e.Code)+}++// 6.9.1 The Flow Control Window+// "If a sender receives a WINDOW_UPDATE that causes a flow control+// window to exceed this maximum it MUST terminate either the stream+// or the connection, as appropriate. For streams, [...]; for the+// connection, a GOAWAY frame with a FLOW_CONTROL_ERROR code."+type goAwayFlowError struct{}++func (goAwayFlowError) Error() string { return "connection exceeded flow control window size" }++// connErrorReason wraps a ConnectionError with an informative error about why it occurs.++// Errors of this type are only returned by the frame parser functions+// and converted into ConnectionError(ErrCodeProtocol).+type connError struct {+ Code ErrCode+ Reason string+}++func (e connError) Error() string {+ return fmt.Sprintf("http2: connection error: %v: %v", e.Code, e.Reason)+}++type pseudoHeaderError string++func (e pseudoHeaderError) Error() string {+ return fmt.Sprintf("invalid pseudo-header %q", string(e))+}++type duplicatePseudoHeaderError string++func (e duplicatePseudoHeaderError) Error() string {+ return fmt.Sprintf("duplicate pseudo-header %q", string(e))+}++type headerFieldNameError string++func (e headerFieldNameError) Error() string {+ return fmt.Sprintf("invalid header field name %q", string(e))+}++type headerFieldValueError string++func (e headerFieldValueError) Error() string {+ return fmt.Sprintf("invalid header field value %q", string(e))+}++var (+ errMixPseudoHeaderTypes = errors.New("mix of request and response pseudo headers")+ errPseudoAfterRegular = errors.New("pseudo header field after regular")+)diff --git a/vendor/golang.org/x/net/http2/fixed_buffer.go b/vendor/golang.org/x/net/http2/fixed_buffer.gonew file mode 100644index 000000000..47da0f0bf--- /dev/null+++ b/vendor/golang.org/x/net/http2/fixed_buffer.go@@ -0,0 +1,60 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package http2++import (+ "errors"+)++// fixedBuffer is an io.ReadWriter backed by a fixed size buffer.+// It never allocates, but moves old data as new data is written.+type fixedBuffer struct {+ buf []byte+ r, w int+}++var (+ errReadEmpty = errors.New("read from empty fixedBuffer")+ errWriteFull = errors.New("write on full fixedBuffer")+)++// Read copies bytes from the buffer into p.+// It is an error to read when no data is available.+func (b *fixedBuffer) Read(p []byte) (n int, err error) {+ if b.r == b.w {+ return 0, errReadEmpty+ }+ n = copy(p, b.buf[b.r:b.w])+ b.r += n+ if b.r == b.w {+ b.r = 0+ b.w = 0+ }+ return n, nil+}++// Len returns the number of bytes of the unread portion of the buffer.+func (b *fixedBuffer) Len() int {+ return b.w - b.r+}++// Write copies bytes from p into the buffer.+// It is an error to write more data than the buffer can hold.+func (b *fixedBuffer) Write(p []byte) (n int, err error) {+ // Slide existing data to beginning.+ if b.r > 0 && len(p) > len(b.buf)-b.w {+ copy(b.buf, b.buf[b.r:b.w])+ b.w -= b.r+ b.r = 0+ }++ // Write new data.+ n = copy(b.buf[b.w:], p)+ b.w += n+ if n < len(p) {+ err = errWriteFull+ }+ return n, err+}diff --git a/vendor/golang.org/x/net/http2/flow.go b/vendor/golang.org/x/net/http2/flow.gonew file mode 100644index 000000000..957de2542--- /dev/null+++ b/vendor/golang.org/x/net/http2/flow.go@@ -0,0 +1,50 @@+// Copyright 2014 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.++// Flow control++package http2++// flow is the flow control window's size.+type flow struct {+ // n is the number of DATA bytes we're allowed to send.+ // A flow is kept both on a conn and a per-stream.+ n int32++ // conn points to the shared connection-level flow that is+ // shared by all streams on that conn. It is nil for the flow+ // that's on the conn directly.+ conn *flow+}++func (f *flow) setConnFlow(cf *flow) { f.conn = cf }++func (f *flow) available() int32 {+ n := f.n+ if f.conn != nil && f.conn.n < n {+ n = f.conn.n+ }+ return n+}++func (f *flow) take(n int32) {+ if n > f.available() {+ panic("internal error: took too much")+ }+ f.n -= n+ if f.conn != nil {+ f.conn.n -= n+ }+}++// add adds n bytes (positive or negative) to the flow control window.+// It returns false if the sum would exceed 2^31-1.+func (f *flow) add(n int32) bool {+ remain := (1<<31 - 1) - f.n+ if n > remain {+ return false+ }+ f.n += n+ return true+}diff --git a/vendor/golang.org/x/net/http2/frame.go b/vendor/golang.org/x/net/http2/frame.gonew file mode 100644index 000000000..b0c79b01a--- /dev/null+++ b/vendor/golang.org/x/net/http2/frame.go@@ -0,0 +1,1539 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package http2++import (+ "bytes"+ "encoding/binary"+ "errors"+ "fmt"+ "io"+ "log"+ "strings"+ "sync"++ "golang.org/x/net/http2/hpack"+ "golang.org/x/net/lex/httplex"+)++const frameHeaderLen = 9++var padZeros = make([]byte, 255) // zeros for padding++// A FrameType is a registered frame type as defined in+// http://http2.github.io/http2-spec/#rfc.section.11.2+type FrameType uint8++const (+ FrameData FrameType = 0x0+ FrameHeaders FrameType = 0x1+ FramePriority FrameType = 0x2+ FrameRSTStream FrameType = 0x3+ FrameSettings FrameType = 0x4+ FramePushPromise FrameType = 0x5+ FramePing FrameType = 0x6+ FrameGoAway FrameType = 0x7+ FrameWindowUpdate FrameType = 0x8+ FrameContinuation FrameType = 0x9+)++var frameName = map[FrameType]string{+ FrameData: "DATA",+ FrameHeaders: "HEADERS",+ FramePriority: "PRIORITY",+ FrameRSTStream: "RST_STREAM",+ FrameSettings: "SETTINGS",+ FramePushPromise: "PUSH_PROMISE",+ FramePing: "PING",+ FrameGoAway: "GOAWAY",+ FrameWindowUpdate: "WINDOW_UPDATE",+ FrameContinuation: "CONTINUATION",+}++func (t FrameType) String() string {+ if s, ok := frameName[t]; ok {+ return s+ }+ return fmt.Sprintf("UNKNOWN_FRAME_TYPE_%d", uint8(t))+}++// Flags is a bitmask of HTTP/2 flags.+// The meaning of flags varies depending on the frame type.+type Flags uint8++// Has reports whether f contains all (0 or more) flags in v.+func (f Flags) Has(v Flags) bool {+ return (f & v) == v+}++// Frame-specific FrameHeader flag bits.+const (+ // Data Frame+ FlagDataEndStream Flags = 0x1+ FlagDataPadded Flags = 0x8++ // Headers Frame+ FlagHeadersEndStream Flags = 0x1+ FlagHeadersEndHeaders Flags = 0x4+ FlagHeadersPadded Flags = 0x8+ FlagHeadersPriority Flags = 0x20++ // Settings Frame+ FlagSettingsAck Flags = 0x1++ // Ping Frame+ FlagPingAck Flags = 0x1++ // Continuation Frame+ FlagContinuationEndHeaders Flags = 0x4++ FlagPushPromiseEndHeaders Flags = 0x4+ FlagPushPromisePadded Flags = 0x8+)++var flagName = map[FrameType]map[Flags]string{+ FrameData: {+ FlagDataEndStream: "END_STREAM",+ FlagDataPadded: "PADDED",+ },+ FrameHeaders: {+ FlagHeadersEndStream: "END_STREAM",+ FlagHeadersEndHeaders: "END_HEADERS",+ FlagHeadersPadded: "PADDED",+ FlagHeadersPriority: "PRIORITY",+ },+ FrameSettings: {+ FlagSettingsAck: "ACK",+ },+ FramePing: {+ FlagPingAck: "ACK",+ },+ FrameContinuation: {+ FlagContinuationEndHeaders: "END_HEADERS",+ },+ FramePushPromise: {+ FlagPushPromiseEndHeaders: "END_HEADERS",+ FlagPushPromisePadded: "PADDED",+ },+}++// a frameParser parses a frame given its FrameHeader and payload+// bytes. The length of payload will always equal fh.Length (which+// might be 0).+type frameParser func(fh FrameHeader, payload []byte) (Frame, error)++var frameParsers = map[FrameType]frameParser{+ FrameData: parseDataFrame,+ FrameHeaders: parseHeadersFrame,+ FramePriority: parsePriorityFrame,+ FrameRSTStream: parseRSTStreamFrame,+ FrameSettings: parseSettingsFrame,+ FramePushPromise: parsePushPromise,+ FramePing: parsePingFrame,+ FrameGoAway: parseGoAwayFrame,+ FrameWindowUpdate: parseWindowUpdateFrame,+ FrameContinuation: parseContinuationFrame,+}++func typeFrameParser(t FrameType) frameParser {+ if f := frameParsers[t]; f != nil {+ return f+ }+ return parseUnknownFrame+}++// A FrameHeader is the 9 byte header of all HTTP/2 frames.+//+// See http://http2.github.io/http2-spec/#FrameHeader+type FrameHeader struct {+ valid bool // caller can access []byte fields in the Frame++ // Type is the 1 byte frame type. There are ten standard frame+ // types, but extension frame types may be written by WriteRawFrame+ // and will be returned by ReadFrame (as UnknownFrame).+ Type FrameType++ // Flags are the 1 byte of 8 potential bit flags per frame.+ // They are specific to the frame type.+ Flags Flags++ // Length is the length of the frame, not including the 9 byte header.+ // The maximum size is one byte less than 16MB (uint24), but only+ // frames up to 16KB are allowed without peer agreement.+ Length uint32++ // StreamID is which stream this frame is for. Certain frames+ // are not stream-specific, in which case this field is 0.+ StreamID uint32+}++// Header returns h. It exists so FrameHeaders can be embedded in other+// specific frame types and implement the Frame interface.+func (h FrameHeader) Header() FrameHeader { return h }++func (h FrameHeader) String() string {+ var buf bytes.Buffer+ buf.WriteString("[FrameHeader ")+ h.writeDebug(&buf)+ buf.WriteByte(']')+ return buf.String()+}++func (h FrameHeader) writeDebug(buf *bytes.Buffer) {+ buf.WriteString(h.Type.String())+ if h.Flags != 0 {+ buf.WriteString(" flags=")+ set := 0+ for i := uint8(0); i < 8; i++ {+ if h.Flags&(1<<i) == 0 {+ continue+ }+ set+++ if set > 1 {+ buf.WriteByte('|')+ }+ name := flagName[h.Type][Flags(1<<i)]+ if name != "" {+ buf.WriteString(name)+ } else {+ fmt.Fprintf(buf, "0x%x", 1<<i)+ }+ }+ }+ if h.StreamID != 0 {+ fmt.Fprintf(buf, " stream=%d", h.StreamID)+ }+ fmt.Fprintf(buf, " len=%d", h.Length)+}++func (h *FrameHeader) checkValid() {+ if !h.valid {+ panic("Frame accessor called on non-owned Frame")+ }+}++func (h *FrameHeader) invalidate() { h.valid = false }++// frame header bytes.+// Used only by ReadFrameHeader.+var fhBytes = sync.Pool{+ New: func() interface{} {+ buf := make([]byte, frameHeaderLen)+ return &buf+ },+}++// ReadFrameHeader reads 9 bytes from r and returns a FrameHeader.+// Most users should use Framer.ReadFrame instead.+func ReadFrameHeader(r io.Reader) (FrameHeader, error) {+ bufp := fhBytes.Get().(*[]byte)+ defer fhBytes.Put(bufp)+ return readFrameHeader(*bufp, r)+}++func readFrameHeader(buf []byte, r io.Reader) (FrameHeader, error) {+ _, err := io.ReadFull(r, buf[:frameHeaderLen])+ if err != nil {+ return FrameHeader{}, err+ }+ return FrameHeader{+ Length: (uint32(buf[0])<<16 | uint32(buf[1])<<8 | uint32(buf[2])),+ Type: FrameType(buf[3]),+ Flags: Flags(buf[4]),+ StreamID: binary.BigEndian.Uint32(buf[5:]) & (1<<31 - 1),+ valid: true,+ }, nil+}++// A Frame is the base interface implemented by all frame types.+// Callers will generally type-assert the specific frame type:+// *HeadersFrame, *SettingsFrame, *WindowUpdateFrame, etc.+//+// Frames are only valid until the next call to Framer.ReadFrame.+type Frame interface {+ Header() FrameHeader++ // invalidate is called by Framer.ReadFrame to make this+ // frame's buffers as being invalid, since the subsequent+ // frame will reuse them.+ invalidate()+}++// A Framer reads and writes Frames.+type Framer struct {+ r io.Reader+ lastFrame Frame+ errDetail error++ // lastHeaderStream is non-zero if the last frame was an+ // unfinished HEADERS/CONTINUATION.+ lastHeaderStream uint32++ maxReadSize uint32+ headerBuf [frameHeaderLen]byte++ // TODO: let getReadBuf be configurable, and use a less memory-pinning+ // allocator in server.go to minimize memory pinned for many idle conns.+ // Will probably also need to make frame invalidation have a hook too.+ getReadBuf func(size uint32) []byte+ readBuf []byte // cache for default getReadBuf++ maxWriteSize uint32 // zero means unlimited; TODO: implement++ w io.Writer+ wbuf []byte++ // AllowIllegalWrites permits the Framer's Write methods to+ // write frames that do not conform to the HTTP/2 spec. This+ // permits using the Framer to test other HTTP/2+ // implementations' conformance to the spec.+ // If false, the Write methods will prefer to return an error+ // rather than comply.+ AllowIllegalWrites bool++ // AllowIllegalReads permits the Framer's ReadFrame method+ // to return non-compliant frames or frame orders.+ // This is for testing and permits using the Framer to test+ // other HTTP/2 implementations' conformance to the spec.+ // It is not compatible with ReadMetaHeaders.+ AllowIllegalReads bool++ // ReadMetaHeaders if non-nil causes ReadFrame to merge+ // HEADERS and CONTINUATION frames together and return+ // MetaHeadersFrame instead.+ ReadMetaHeaders *hpack.Decoder++ // MaxHeaderListSize is the http2 MAX_HEADER_LIST_SIZE.+ // It's used only if ReadMetaHeaders is set; 0 means a sane default+ // (currently 16MB)+ // If the limit is hit, MetaHeadersFrame.Truncated is set true.+ MaxHeaderListSize uint32++ // TODO: track which type of frame & with which flags was sent+ // last. Then return an error (unless AllowIllegalWrites) if+ // we're in the middle of a header block and a+ // non-Continuation or Continuation on a different stream is+ // attempted to be written.++ logReads bool++ debugFramer *Framer // only use for logging written writes+ debugFramerBuf *bytes.Buffer+}++func (fr *Framer) maxHeaderListSize() uint32 {+ if fr.MaxHeaderListSize == 0 {+ return 16 << 20 // sane default, per docs+ }+ return fr.MaxHeaderListSize+}++func (f *Framer) startWrite(ftype FrameType, flags Flags, streamID uint32) {+ // Write the FrameHeader.+ f.wbuf = append(f.wbuf[:0],+ 0, // 3 bytes of length, filled in in endWrite+ 0,+ 0,+ byte(ftype),+ byte(flags),+ byte(streamID>>24),+ byte(streamID>>16),+ byte(streamID>>8),+ byte(streamID))+}++func (f *Framer) endWrite() error {+ // Now that we know the final size, fill in the FrameHeader in+ // the space previously reserved for it. Abuse append.+ length := len(f.wbuf) - frameHeaderLen+ if length >= (1 << 24) {+ return ErrFrameTooLarge+ }+ _ = append(f.wbuf[:0],+ byte(length>>16),+ byte(length>>8),+ byte(length))+ if logFrameWrites {+ f.logWrite()+ }++ n, err := f.w.Write(f.wbuf)+ if err == nil && n != len(f.wbuf) {+ err = io.ErrShortWrite+ }+ return err+}++func (f *Framer) logWrite() {+ if f.debugFramer == nil {+ f.debugFramerBuf = new(bytes.Buffer)+ f.debugFramer = NewFramer(nil, f.debugFramerBuf)+ f.debugFramer.logReads = false // we log it ourselves, saying "wrote" below+ // Let us read anything, even if we accidentally wrote it+ // in the wrong order:+ f.debugFramer.AllowIllegalReads = true+ }+ f.debugFramerBuf.Write(f.wbuf)+ fr, err := f.debugFramer.ReadFrame()+ if err != nil {+ log.Printf("http2: Framer %p: failed to decode just-written frame", f)+ return+ }+ log.Printf("http2: Framer %p: wrote %v", f, summarizeFrame(fr))+}++func (f *Framer) writeByte(v byte) { f.wbuf = append(f.wbuf, v) }+func (f *Framer) writeBytes(v []byte) { f.wbuf = append(f.wbuf, v...) }+func (f *Framer) writeUint16(v uint16) { f.wbuf = append(f.wbuf, byte(v>>8), byte(v)) }+func (f *Framer) writeUint32(v uint32) {+ f.wbuf = append(f.wbuf, byte(v>>24), byte(v>>16), byte(v>>8), byte(v))+}++const (+ minMaxFrameSize = 1 << 14+ maxFrameSize = 1<<24 - 1+)++// NewFramer returns a Framer that writes frames to w and reads them from r.+func NewFramer(w io.Writer, r io.Reader) *Framer {+ fr := &Framer{+ w: w,+ r: r,+ logReads: logFrameReads,+ }+ fr.getReadBuf = func(size uint32) []byte {+ if cap(fr.readBuf) >= int(size) {+ return fr.readBuf[:size]+ }+ fr.readBuf = make([]byte, size)+ return fr.readBuf+ }+ fr.SetMaxReadFrameSize(maxFrameSize)+ return fr+}++// SetMaxReadFrameSize sets the maximum size of a frame+// that will be read by a subsequent call to ReadFrame.+// It is the caller's responsibility to advertise this+// limit with a SETTINGS frame.+func (fr *Framer) SetMaxReadFrameSize(v uint32) {+ if v > maxFrameSize {+ v = maxFrameSize+ }+ fr.maxReadSize = v+}++// ErrorDetail returns a more detailed error of the last error+// returned by Framer.ReadFrame. For instance, if ReadFrame+// returns a StreamError with code PROTOCOL_ERROR, ErrorDetail+// will say exactly what was invalid. ErrorDetail is not guaranteed+// to return a non-nil value and like the rest of the http2 package,+// its return value is not protected by an API compatibility promise.+// ErrorDetail is reset after the next call to ReadFrame.+func (fr *Framer) ErrorDetail() error {+ return fr.errDetail+}++// ErrFrameTooLarge is returned from Framer.ReadFrame when the peer+// sends a frame that is larger than declared with SetMaxReadFrameSize.+var ErrFrameTooLarge = errors.New("http2: frame too large")++// terminalReadFrameError reports whether err is an unrecoverable+// error from ReadFrame and no other frames should be read.+func terminalReadFrameError(err error) bool {+ if _, ok := err.(StreamError); ok {+ return false+ }+ return err != nil+}++// ReadFrame reads a single frame. The returned Frame is only valid+// until the next call to ReadFrame.+//+// If the frame is larger than previously set with SetMaxReadFrameSize, the+// returned error is ErrFrameTooLarge. Other errors may be of type+// ConnectionError, StreamError, or anything else from the underlying+// reader.+func (fr *Framer) ReadFrame() (Frame, error) {+ fr.errDetail = nil+ if fr.lastFrame != nil {+ fr.lastFrame.invalidate()+ }+ fh, err := readFrameHeader(fr.headerBuf[:], fr.r)+ if err != nil {+ return nil, err+ }+ if fh.Length > fr.maxReadSize {+ return nil, ErrFrameTooLarge+ }+ payload := fr.getReadBuf(fh.Length)+ if _, err := io.ReadFull(fr.r, payload); err != nil {+ return nil, err+ }+ f, err := typeFrameParser(fh.Type)(fh, payload)+ if err != nil {+ if ce, ok := err.(connError); ok {+ return nil, fr.connError(ce.Code, ce.Reason)+ }+ return nil, err+ }+ if err := fr.checkFrameOrder(f); err != nil {+ return nil, err+ }+ if fr.logReads {+ log.Printf("http2: Framer %p: read %v", fr, summarizeFrame(f))+ }+ if fh.Type == FrameHeaders && fr.ReadMetaHeaders != nil {+ return fr.readMetaFrame(f.(*HeadersFrame))+ }+ return f, nil+}++// connError returns ConnectionError(code) but first+// stashes away a public reason to the caller can optionally relay it+// to the peer before hanging up on them. This might help others debug+// their implementations.+func (fr *Framer) connError(code ErrCode, reason string) error {+ fr.errDetail = errors.New(reason)+ return ConnectionError(code)+}++// checkFrameOrder reports an error if f is an invalid frame to return+// next from ReadFrame. Mostly it checks whether HEADERS and+// CONTINUATION frames are contiguous.+func (fr *Framer) checkFrameOrder(f Frame) error {+ last := fr.lastFrame+ fr.lastFrame = f+ if fr.AllowIllegalReads {+ return nil+ }++ fh := f.Header()+ if fr.lastHeaderStream != 0 {+ if fh.Type != FrameContinuation {+ return fr.connError(ErrCodeProtocol,+ fmt.Sprintf("got %s for stream %d; expected CONTINUATION following %s for stream %d",+ fh.Type, fh.StreamID,+ last.Header().Type, fr.lastHeaderStream))+ }+ if fh.StreamID != fr.lastHeaderStream {+ return fr.connError(ErrCodeProtocol,+ fmt.Sprintf("got CONTINUATION for stream %d; expected stream %d",+ fh.StreamID, fr.lastHeaderStream))+ }+ } else if fh.Type == FrameContinuation {+ return fr.connError(ErrCodeProtocol, fmt.Sprintf("unexpected CONTINUATION for stream %d", fh.StreamID))+ }++ switch fh.Type {+ case FrameHeaders, FrameContinuation:+ if fh.Flags.Has(FlagHeadersEndHeaders) {+ fr.lastHeaderStream = 0+ } else {+ fr.lastHeaderStream = fh.StreamID+ }+ }++ return nil+}++// A DataFrame conveys arbitrary, variable-length sequences of octets+// associated with a stream.+// See http://http2.github.io/http2-spec/#rfc.section.6.1+type DataFrame struct {+ FrameHeader+ data []byte+}++func (f *DataFrame) StreamEnded() bool {+ return f.FrameHeader.Flags.Has(FlagDataEndStream)+}++// Data returns the frame's data octets, not including any padding+// size byte or padding suffix bytes.+// The caller must not retain the returned memory past the next+// call to ReadFrame.+func (f *DataFrame) Data() []byte {+ f.checkValid()+ return f.data+}++func parseDataFrame(fh FrameHeader, payload []byte) (Frame, error) {+ if fh.StreamID == 0 {+ // DATA frames MUST be associated with a stream. If a+ // DATA frame is received whose stream identifier+ // field is 0x0, the recipient MUST respond with a+ // connection error (Section 5.4.1) of type+ // PROTOCOL_ERROR.+ return nil, connError{ErrCodeProtocol, "DATA frame with stream ID 0"}+ }+ f := &DataFrame{+ FrameHeader: fh,+ }+ var padSize byte+ if fh.Flags.Has(FlagDataPadded) {+ var err error+ payload, padSize, err = readByte(payload)+ if err != nil {+ return nil, err+ }+ }+ if int(padSize) > len(payload) {+ // If the length of the padding is greater than the+ // length of the frame payload, the recipient MUST+ // treat this as a connection error.+ // Filed: https://github.com/http2/http2-spec/issues/610+ return nil, connError{ErrCodeProtocol, "pad size larger than data payload"}+ }+ f.data = payload[:len(payload)-int(padSize)]+ return f, nil+}++var (+ errStreamID = errors.New("invalid stream ID")+ errDepStreamID = errors.New("invalid dependent stream ID")+ errPadLength = errors.New("pad length too large")+)++func validStreamIDOrZero(streamID uint32) bool {+ return streamID&(1<<31) == 0+}++func validStreamID(streamID uint32) bool {+ return streamID != 0 && streamID&(1<<31) == 0+}++// WriteData writes a DATA frame.+//+// It will perform exactly one Write to the underlying Writer.+// It is the caller's responsibility not to violate the maximum frame size+// and to not call other Write methods concurrently.+func (f *Framer) WriteData(streamID uint32, endStream bool, data []byte) error {+ return f.WriteDataPadded(streamID, endStream, data, nil)+}++// WriteData writes a DATA frame with optional padding.+//+// If pad is nil, the padding bit is not sent.+// The length of pad must not exceed 255 bytes.+//+// It will perform exactly one Write to the underlying Writer.+// It is the caller's responsibility not to violate the maximum frame size+// and to not call other Write methods concurrently.+func (f *Framer) WriteDataPadded(streamID uint32, endStream bool, data, pad []byte) error {+ if !validStreamID(streamID) && !f.AllowIllegalWrites {+ return errStreamID+ }+ if len(pad) > 255 {+ return errPadLength+ }+ var flags Flags+ if endStream {+ flags |= FlagDataEndStream+ }+ if pad != nil {+ flags |= FlagDataPadded+ }+ f.startWrite(FrameData, flags, streamID)+ if pad != nil {+ f.wbuf = append(f.wbuf, byte(len(pad)))+ }+ f.wbuf = append(f.wbuf, data...)+ f.wbuf = append(f.wbuf, pad...)+ return f.endWrite()+}++// A SettingsFrame conveys configuration parameters that affect how+// endpoints communicate, such as preferences and constraints on peer+// behavior.+//+// See http://http2.github.io/http2-spec/#SETTINGS+type SettingsFrame struct {+ FrameHeader+ p []byte+}++func parseSettingsFrame(fh FrameHeader, p []byte) (Frame, error) {+ if fh.Flags.Has(FlagSettingsAck) && fh.Length > 0 {+ // When this (ACK 0x1) bit is set, the payload of the+ // SETTINGS frame MUST be empty. Receipt of a+ // SETTINGS frame with the ACK flag set and a length+ // field value other than 0 MUST be treated as a+ // connection error (Section 5.4.1) of type+ // FRAME_SIZE_ERROR.+ return nil, ConnectionError(ErrCodeFrameSize)+ }+ if fh.StreamID != 0 {+ // SETTINGS frames always apply to a connection,+ // never a single stream. The stream identifier for a+ // SETTINGS frame MUST be zero (0x0). If an endpoint+ // receives a SETTINGS frame whose stream identifier+ // field is anything other than 0x0, the endpoint MUST+ // respond with a connection error (Section 5.4.1) of+ // type PROTOCOL_ERROR.+ return nil, ConnectionError(ErrCodeProtocol)+ }+ if len(p)%6 != 0 {+ // Expecting even number of 6 byte settings.+ return nil, ConnectionError(ErrCodeFrameSize)+ }+ f := &SettingsFrame{FrameHeader: fh, p: p}+ if v, ok := f.Value(SettingInitialWindowSize); ok && v > (1<<31)-1 {+ // Values above the maximum flow control window size of 2^31 - 1 MUST+ // be treated as a connection error (Section 5.4.1) of type+ // FLOW_CONTROL_ERROR.+ return nil, ConnectionError(ErrCodeFlowControl)+ }+ return f, nil+}++func (f *SettingsFrame) IsAck() bool {+ return f.FrameHeader.Flags.Has(FlagSettingsAck)+}++func (f *SettingsFrame) Value(s SettingID) (v uint32, ok bool) {+ f.checkValid()+ buf := f.p+ for len(buf) > 0 {+ settingID := SettingID(binary.BigEndian.Uint16(buf[:2]))+ if settingID == s {+ return binary.BigEndian.Uint32(buf[2:6]), true+ }+ buf = buf[6:]+ }+ return 0, false+}++// ForeachSetting runs fn for each setting.+// It stops and returns the first error.+func (f *SettingsFrame) ForeachSetting(fn func(Setting) error) error {+ f.checkValid()+ buf := f.p+ for len(buf) > 0 {+ if err := fn(Setting{+ SettingID(binary.BigEndian.Uint16(buf[:2])),+ binary.BigEndian.Uint32(buf[2:6]),+ }); err != nil {+ return err+ }+ buf = buf[6:]+ }+ return nil+}++// WriteSettings writes a SETTINGS frame with zero or more settings+// specified and the ACK bit not set.+//+// It will perform exactly one Write to the underlying Writer.+// It is the caller's responsibility to not call other Write methods concurrently.+func (f *Framer) WriteSettings(settings ...Setting) error {+ f.startWrite(FrameSettings, 0, 0)+ for _, s := range settings {+ f.writeUint16(uint16(s.ID))+ f.writeUint32(s.Val)+ }+ return f.endWrite()+}++// WriteSettingsAck writes an empty SETTINGS frame with the ACK bit set.+//+// It will perform exactly one Write to the underlying Writer.+// It is the caller's responsibility to not call other Write methods concurrently.+func (f *Framer) WriteSettingsAck() error {+ f.startWrite(FrameSettings, FlagSettingsAck, 0)+ return f.endWrite()+}++// A PingFrame is a mechanism for measuring a minimal round trip time+// from the sender, as well as determining whether an idle connection+// is still functional.+// See http://http2.github.io/http2-spec/#rfc.section.6.7+type PingFrame struct {+ FrameHeader+ Data [8]byte+}++func (f *PingFrame) IsAck() bool { return f.Flags.Has(FlagPingAck) }++func parsePingFrame(fh FrameHeader, payload []byte) (Frame, error) {+ if len(payload) != 8 {+ return nil, ConnectionError(ErrCodeFrameSize)+ }+ if fh.StreamID != 0 {+ return nil, ConnectionError(ErrCodeProtocol)+ }+ f := &PingFrame{FrameHeader: fh}+ copy(f.Data[:], payload)+ return f, nil+}++func (f *Framer) WritePing(ack bool, data [8]byte) error {+ var flags Flags+ if ack {+ flags = FlagPingAck+ }+ f.startWrite(FramePing, flags, 0)+ f.writeBytes(data[:])+ return f.endWrite()+}++// A GoAwayFrame informs the remote peer to stop creating streams on this connection.+// See http://http2.github.io/http2-spec/#rfc.section.6.8+type GoAwayFrame struct {+ FrameHeader+ LastStreamID uint32+ ErrCode ErrCode+ debugData []byte+}++// DebugData returns any debug data in the GOAWAY frame. Its contents+// are not defined.+// The caller must not retain the returned memory past the next+// call to ReadFrame.+func (f *GoAwayFrame) DebugData() []byte {+ f.checkValid()+ return f.debugData+}++func parseGoAwayFrame(fh FrameHeader, p []byte) (Frame, error) {+ if fh.StreamID != 0 {+ return nil, ConnectionError(ErrCodeProtocol)+ }+ if len(p) < 8 {+ return nil, ConnectionError(ErrCodeFrameSize)+ }+ return &GoAwayFrame{+ FrameHeader: fh,+ LastStreamID: binary.BigEndian.Uint32(p[:4]) & (1<<31 - 1),+ ErrCode: ErrCode(binary.BigEndian.Uint32(p[4:8])),+ debugData: p[8:],+ }, nil+}++func (f *Framer) WriteGoAway(maxStreamID uint32, code ErrCode, debugData []byte) error {+ f.startWrite(FrameGoAway, 0, 0)+ f.writeUint32(maxStreamID & (1<<31 - 1))+ f.writeUint32(uint32(code))+ f.writeBytes(debugData)+ return f.endWrite()+}++// An UnknownFrame is the frame type returned when the frame type is unknown+// or no specific frame type parser exists.+type UnknownFrame struct {+ FrameHeader+ p []byte+}++// Payload returns the frame's payload (after the header). It is not+// valid to call this method after a subsequent call to+// Framer.ReadFrame, nor is it valid to retain the returned slice.+// The memory is owned by the Framer and is invalidated when the next+// frame is read.+func (f *UnknownFrame) Payload() []byte {+ f.checkValid()+ return f.p+}++func parseUnknownFrame(fh FrameHeader, p []byte) (Frame, error) {+ return &UnknownFrame{fh, p}, nil+}++// A WindowUpdateFrame is used to implement flow control.+// See http://http2.github.io/http2-spec/#rfc.section.6.9+type WindowUpdateFrame struct {+ FrameHeader+ Increment uint32 // never read with high bit set+}++func parseWindowUpdateFrame(fh FrameHeader, p []byte) (Frame, error) {+ if len(p) != 4 {+ return nil, ConnectionError(ErrCodeFrameSize)+ }+ inc := binary.BigEndian.Uint32(p[:4]) & 0x7fffffff // mask off high reserved bit+ if inc == 0 {+ // A receiver MUST treat the receipt of a+ // WINDOW_UPDATE frame with an flow control window+ // increment of 0 as a stream error (Section 5.4.2) of+ // type PROTOCOL_ERROR; errors on the connection flow+ // control window MUST be treated as a connection+ // error (Section 5.4.1).+ if fh.StreamID == 0 {+ return nil, ConnectionError(ErrCodeProtocol)+ }+ return nil, streamError(fh.StreamID, ErrCodeProtocol)+ }+ return &WindowUpdateFrame{+ FrameHeader: fh,+ Increment: inc,+ }, nil+}++// WriteWindowUpdate writes a WINDOW_UPDATE frame.+// The increment value must be between 1 and 2,147,483,647, inclusive.+// If the Stream ID is zero, the window update applies to the+// connection as a whole.+func (f *Framer) WriteWindowUpdate(streamID, incr uint32) error {+ // "The legal range for the increment to the flow control window is 1 to 2^31-1 (2,147,483,647) octets."+ if (incr < 1 || incr > 2147483647) && !f.AllowIllegalWrites {+ return errors.New("illegal window increment value")+ }+ f.startWrite(FrameWindowUpdate, 0, streamID)+ f.writeUint32(incr)+ return f.endWrite()+}++// A HeadersFrame is used to open a stream and additionally carries a+// header block fragment.+type HeadersFrame struct {+ FrameHeader++ // Priority is set if FlagHeadersPriority is set in the FrameHeader.+ Priority PriorityParam++ headerFragBuf []byte // not owned+}++func (f *HeadersFrame) HeaderBlockFragment() []byte {+ f.checkValid()+ return f.headerFragBuf+}++func (f *HeadersFrame) HeadersEnded() bool {+ return f.FrameHeader.Flags.Has(FlagHeadersEndHeaders)+}++func (f *HeadersFrame) StreamEnded() bool {+ return f.FrameHeader.Flags.Has(FlagHeadersEndStream)+}++func (f *HeadersFrame) HasPriority() bool {+ return f.FrameHeader.Flags.Has(FlagHeadersPriority)+}++func parseHeadersFrame(fh FrameHeader, p []byte) (_ Frame, err error) {+ hf := &HeadersFrame{+ FrameHeader: fh,+ }+ if fh.StreamID == 0 {+ // HEADERS frames MUST be associated with a stream. If a HEADERS frame+ // is received whose stream identifier field is 0x0, the recipient MUST+ // respond with a connection error (Section 5.4.1) of type+ // PROTOCOL_ERROR.+ return nil, connError{ErrCodeProtocol, "HEADERS frame with stream ID 0"}+ }+ var padLength uint8+ if fh.Flags.Has(FlagHeadersPadded) {+ if p, padLength, err = readByte(p); err != nil {+ return+ }+ }+ if fh.Flags.Has(FlagHeadersPriority) {+ var v uint32+ p, v, err = readUint32(p)+ if err != nil {+ return nil, err+ }+ hf.Priority.StreamDep = v & 0x7fffffff+ hf.Priority.Exclusive = (v != hf.Priority.StreamDep) // high bit was set+ p, hf.Priority.Weight, err = readByte(p)+ if err != nil {+ return nil, err+ }+ }+ if len(p)-int(padLength) <= 0 {+ return nil, streamError(fh.StreamID, ErrCodeProtocol)+ }+ hf.headerFragBuf = p[:len(p)-int(padLength)]+ return hf, nil+}++// HeadersFrameParam are the parameters for writing a HEADERS frame.+type HeadersFrameParam struct {+ // StreamID is the required Stream ID to initiate.+ StreamID uint32+ // BlockFragment is part (or all) of a Header Block.+ BlockFragment []byte++ // EndStream indicates that the header block is the last that+ // the endpoint will send for the identified stream. Setting+ // this flag causes the stream to enter one of "half closed"+ // states.+ EndStream bool++ // EndHeaders indicates that this frame contains an entire+ // header block and is not followed by any+ // CONTINUATION frames.+ EndHeaders bool++ // PadLength is the optional number of bytes of zeros to add+ // to this frame.+ PadLength uint8++ // Priority, if non-zero, includes stream priority information+ // in the HEADER frame.+ Priority PriorityParam+}++// WriteHeaders writes a single HEADERS frame.+//+// This is a low-level header writing method. Encoding headers and+// splitting them into any necessary CONTINUATION frames is handled+// elsewhere.+//+// It will perform exactly one Write to the underlying Writer.+// It is the caller's responsibility to not call other Write methods concurrently.+func (f *Framer) WriteHeaders(p HeadersFrameParam) error {+ if !validStreamID(p.StreamID) && !f.AllowIllegalWrites {+ return errStreamID+ }+ var flags Flags+ if p.PadLength != 0 {+ flags |= FlagHeadersPadded+ }+ if p.EndStream {+ flags |= FlagHeadersEndStream+ }+ if p.EndHeaders {+ flags |= FlagHeadersEndHeaders+ }+ if !p.Priority.IsZero() {+ flags |= FlagHeadersPriority+ }+ f.startWrite(FrameHeaders, flags, p.StreamID)+ if p.PadLength != 0 {+ f.writeByte(p.PadLength)+ }+ if !p.Priority.IsZero() {+ v := p.Priority.StreamDep+ if !validStreamIDOrZero(v) && !f.AllowIllegalWrites {+ return errDepStreamID+ }+ if p.Priority.Exclusive {+ v |= 1 << 31+ }+ f.writeUint32(v)+ f.writeByte(p.Priority.Weight)+ }+ f.wbuf = append(f.wbuf, p.BlockFragment...)+ f.wbuf = append(f.wbuf, padZeros[:p.PadLength]...)+ return f.endWrite()+}++// A PriorityFrame specifies the sender-advised priority of a stream.+// See http://http2.github.io/http2-spec/#rfc.section.6.3+type PriorityFrame struct {+ FrameHeader+ PriorityParam+}++// PriorityParam are the stream prioritzation parameters.+type PriorityParam struct {+ // StreamDep is a 31-bit stream identifier for the+ // stream that this stream depends on. Zero means no+ // dependency.+ StreamDep uint32++ // Exclusive is whether the dependency is exclusive.+ Exclusive bool++ // Weight is the stream's zero-indexed weight. It should be+ // set together with StreamDep, or neither should be set. Per+ // the spec, "Add one to the value to obtain a weight between+ // 1 and 256."+ Weight uint8+}++func (p PriorityParam) IsZero() bool {+ return p == PriorityParam{}+}++func parsePriorityFrame(fh FrameHeader, payload []byte) (Frame, error) {+ if fh.StreamID == 0 {+ return nil, connError{ErrCodeProtocol, "PRIORITY frame with stream ID 0"}+ }+ if len(payload) != 5 {+ return nil, connError{ErrCodeFrameSize, fmt.Sprintf("PRIORITY frame payload size was %d; want 5", len(payload))}+ }+ v := binary.BigEndian.Uint32(payload[:4])+ streamID := v & 0x7fffffff // mask off high bit+ return &PriorityFrame{+ FrameHeader: fh,+ PriorityParam: PriorityParam{+ Weight: payload[4],+ StreamDep: streamID,+ Exclusive: streamID != v, // was high bit set?+ },+ }, nil+}++// WritePriority writes a PRIORITY frame.+//+// It will perform exactly one Write to the underlying Writer.+// It is the caller's responsibility to not call other Write methods concurrently.+func (f *Framer) WritePriority(streamID uint32, p PriorityParam) error {+ if !validStreamID(streamID) && !f.AllowIllegalWrites {+ return errStreamID+ }+ if !validStreamIDOrZero(p.StreamDep) {+ return errDepStreamID+ }+ f.startWrite(FramePriority, 0, streamID)+ v := p.StreamDep+ if p.Exclusive {+ v |= 1 << 31+ }+ f.writeUint32(v)+ f.writeByte(p.Weight)+ return f.endWrite()+}++// A RSTStreamFrame allows for abnormal termination of a stream.+// See http://http2.github.io/http2-spec/#rfc.section.6.4+type RSTStreamFrame struct {+ FrameHeader+ ErrCode ErrCode+}++func parseRSTStreamFrame(fh FrameHeader, p []byte) (Frame, error) {+ if len(p) != 4 {+ return nil, ConnectionError(ErrCodeFrameSize)+ }+ if fh.StreamID == 0 {+ return nil, ConnectionError(ErrCodeProtocol)+ }+ return &RSTStreamFrame{fh, ErrCode(binary.BigEndian.Uint32(p[:4]))}, nil+}++// WriteRSTStream writes a RST_STREAM frame.+//+// It will perform exactly one Write to the underlying Writer.+// It is the caller's responsibility to not call other Write methods concurrently.+func (f *Framer) WriteRSTStream(streamID uint32, code ErrCode) error {+ if !validStreamID(streamID) && !f.AllowIllegalWrites {+ return errStreamID+ }+ f.startWrite(FrameRSTStream, 0, streamID)+ f.writeUint32(uint32(code))+ return f.endWrite()+}++// A ContinuationFrame is used to continue a sequence of header block fragments.+// See http://http2.github.io/http2-spec/#rfc.section.6.10+type ContinuationFrame struct {+ FrameHeader+ headerFragBuf []byte+}++func parseContinuationFrame(fh FrameHeader, p []byte) (Frame, error) {+ if fh.StreamID == 0 {+ return nil, connError{ErrCodeProtocol, "CONTINUATION frame with stream ID 0"}+ }+ return &ContinuationFrame{fh, p}, nil+}++func (f *ContinuationFrame) HeaderBlockFragment() []byte {+ f.checkValid()+ return f.headerFragBuf+}++func (f *ContinuationFrame) HeadersEnded() bool {+ return f.FrameHeader.Flags.Has(FlagContinuationEndHeaders)+}++// WriteContinuation writes a CONTINUATION frame.+//+// It will perform exactly one Write to the underlying Writer.+// It is the caller's responsibility to not call other Write methods concurrently.+func (f *Framer) WriteContinuation(streamID uint32, endHeaders bool, headerBlockFragment []byte) error {+ if !validStreamID(streamID) && !f.AllowIllegalWrites {+ return errStreamID+ }+ var flags Flags+ if endHeaders {+ flags |= FlagContinuationEndHeaders+ }+ f.startWrite(FrameContinuation, flags, streamID)+ f.wbuf = append(f.wbuf, headerBlockFragment...)+ return f.endWrite()+}++// A PushPromiseFrame is used to initiate a server stream.+// See http://http2.github.io/http2-spec/#rfc.section.6.6+type PushPromiseFrame struct {+ FrameHeader+ PromiseID uint32+ headerFragBuf []byte // not owned+}++func (f *PushPromiseFrame) HeaderBlockFragment() []byte {+ f.checkValid()+ return f.headerFragBuf+}++func (f *PushPromiseFrame) HeadersEnded() bool {+ return f.FrameHeader.Flags.Has(FlagPushPromiseEndHeaders)+}++func parsePushPromise(fh FrameHeader, p []byte) (_ Frame, err error) {+ pp := &PushPromiseFrame{+ FrameHeader: fh,+ }+ if pp.StreamID == 0 {+ // PUSH_PROMISE frames MUST be associated with an existing,+ // peer-initiated stream. The stream identifier of a+ // PUSH_PROMISE frame indicates the stream it is associated+ // with. If the stream identifier field specifies the value+ // 0x0, a recipient MUST respond with a connection error+ // (Section 5.4.1) of type PROTOCOL_ERROR.+ return nil, ConnectionError(ErrCodeProtocol)+ }+ // The PUSH_PROMISE frame includes optional padding.+ // Padding fields and flags are identical to those defined for DATA frames+ var padLength uint8+ if fh.Flags.Has(FlagPushPromisePadded) {+ if p, padLength, err = readByte(p); err != nil {+ return+ }+ }++ p, pp.PromiseID, err = readUint32(p)+ if err != nil {+ return+ }+ pp.PromiseID = pp.PromiseID & (1<<31 - 1)++ if int(padLength) > len(p) {+ // like the DATA frame, error out if padding is longer than the body.+ return nil, ConnectionError(ErrCodeProtocol)+ }+ pp.headerFragBuf = p[:len(p)-int(padLength)]+ return pp, nil+}++// PushPromiseParam are the parameters for writing a PUSH_PROMISE frame.+type PushPromiseParam struct {+ // StreamID is the required Stream ID to initiate.+ StreamID uint32++ // PromiseID is the required Stream ID which this+ // Push Promises+ PromiseID uint32++ // BlockFragment is part (or all) of a Header Block.+ BlockFragment []byte++ // EndHeaders indicates that this frame contains an entire+ // header block and is not followed by any+ // CONTINUATION frames.+ EndHeaders bool++ // PadLength is the optional number of bytes of zeros to add+ // to this frame.+ PadLength uint8+}++// WritePushPromise writes a single PushPromise Frame.+//+// As with Header Frames, This is the low level call for writing+// individual frames. Continuation frames are handled elsewhere.+//+// It will perform exactly one Write to the underlying Writer.+// It is the caller's responsibility to not call other Write methods concurrently.+func (f *Framer) WritePushPromise(p PushPromiseParam) error {+ if !validStreamID(p.StreamID) && !f.AllowIllegalWrites {+ return errStreamID+ }+ var flags Flags+ if p.PadLength != 0 {+ flags |= FlagPushPromisePadded+ }+ if p.EndHeaders {+ flags |= FlagPushPromiseEndHeaders+ }+ f.startWrite(FramePushPromise, flags, p.StreamID)+ if p.PadLength != 0 {+ f.writeByte(p.PadLength)+ }+ if !validStreamID(p.PromiseID) && !f.AllowIllegalWrites {+ return errStreamID+ }+ f.writeUint32(p.PromiseID)+ f.wbuf = append(f.wbuf, p.BlockFragment...)+ f.wbuf = append(f.wbuf, padZeros[:p.PadLength]...)+ return f.endWrite()+}++// WriteRawFrame writes a raw frame. This can be used to write+// extension frames unknown to this package.+func (f *Framer) WriteRawFrame(t FrameType, flags Flags, streamID uint32, payload []byte) error {+ f.startWrite(t, flags, streamID)+ f.writeBytes(payload)+ return f.endWrite()+}++func readByte(p []byte) (remain []byte, b byte, err error) {+ if len(p) == 0 {+ return nil, 0, io.ErrUnexpectedEOF+ }+ return p[1:], p[0], nil+}++func readUint32(p []byte) (remain []byte, v uint32, err error) {+ if len(p) < 4 {+ return nil, 0, io.ErrUnexpectedEOF+ }+ return p[4:], binary.BigEndian.Uint32(p[:4]), nil+}++type streamEnder interface {+ StreamEnded() bool+}++type headersEnder interface {+ HeadersEnded() bool+}++type headersOrContinuation interface {+ headersEnder+ HeaderBlockFragment() []byte+}++// A MetaHeadersFrame is the representation of one HEADERS frame and+// zero or more contiguous CONTINUATION frames and the decoding of+// their HPACK-encoded contents.+//+// This type of frame does not appear on the wire and is only returned+// by the Framer when Framer.ReadMetaHeaders is set.+type MetaHeadersFrame struct {+ *HeadersFrame++ // Fields are the fields contained in the HEADERS and+ // CONTINUATION frames. The underlying slice is owned by the+ // Framer and must not be retained after the next call to+ // ReadFrame.+ //+ // Fields are guaranteed to be in the correct http2 order and+ // not have unknown pseudo header fields or invalid header+ // field names or values. Required pseudo header fields may be+ // missing, however. Use the MetaHeadersFrame.Pseudo accessor+ // method access pseudo headers.+ Fields []hpack.HeaderField++ // Truncated is whether the max header list size limit was hit+ // and Fields is incomplete. The hpack decoder state is still+ // valid, however.+ Truncated bool+}++// PseudoValue returns the given pseudo header field's value.+// The provided pseudo field should not contain the leading colon.+func (mh *MetaHeadersFrame) PseudoValue(pseudo string) string {+ for _, hf := range mh.Fields {+ if !hf.IsPseudo() {+ return ""+ }+ if hf.Name[1:] == pseudo {+ return hf.Value+ }+ }+ return ""+}++// RegularFields returns the regular (non-pseudo) header fields of mh.+// The caller does not own the returned slice.+func (mh *MetaHeadersFrame) RegularFields() []hpack.HeaderField {+ for i, hf := range mh.Fields {+ if !hf.IsPseudo() {+ return mh.Fields[i:]+ }+ }+ return nil+}++// PseudoFields returns the pseudo header fields of mh.+// The caller does not own the returned slice.+func (mh *MetaHeadersFrame) PseudoFields() []hpack.HeaderField {+ for i, hf := range mh.Fields {+ if !hf.IsPseudo() {+ return mh.Fields[:i]+ }+ }+ return mh.Fields+}++func (mh *MetaHeadersFrame) checkPseudos() error {+ var isRequest, isResponse bool+ pf := mh.PseudoFields()+ for i, hf := range pf {+ switch hf.Name {+ case ":method", ":path", ":scheme", ":authority":+ isRequest = true+ case ":status":+ isResponse = true+ default:+ return pseudoHeaderError(hf.Name)+ }+ // Check for duplicates.+ // This would be a bad algorithm, but N is 4.+ // And this doesn't allocate.+ for _, hf2 := range pf[:i] {+ if hf.Name == hf2.Name {+ return duplicatePseudoHeaderError(hf.Name)+ }+ }+ }+ if isRequest && isResponse {+ return errMixPseudoHeaderTypes+ }+ return nil+}++func (fr *Framer) maxHeaderStringLen() int {+ v := fr.maxHeaderListSize()+ if uint32(int(v)) == v {+ return int(v)+ }+ // They had a crazy big number for MaxHeaderBytes anyway,+ // so give them unlimited header lengths:+ return 0+}++// readMetaFrame returns 0 or more CONTINUATION frames from fr and+// merge them into into the provided hf and returns a MetaHeadersFrame+// with the decoded hpack values.+func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) {+ if fr.AllowIllegalReads {+ return nil, errors.New("illegal use of AllowIllegalReads with ReadMetaHeaders")+ }+ mh := &MetaHeadersFrame{+ HeadersFrame: hf,+ }+ var remainSize = fr.maxHeaderListSize()+ var sawRegular bool++ var invalid error // pseudo header field errors+ hdec := fr.ReadMetaHeaders+ hdec.SetEmitEnabled(true)+ hdec.SetMaxStringLength(fr.maxHeaderStringLen())+ hdec.SetEmitFunc(func(hf hpack.HeaderField) {+ if VerboseLogs && logFrameReads {+ log.Printf("http2: decoded hpack field %+v", hf)+ }+ if !httplex.ValidHeaderFieldValue(hf.Value) {+ invalid = headerFieldValueError(hf.Value)+ }+ isPseudo := strings.HasPrefix(hf.Name, ":")+ if isPseudo {+ if sawRegular {+ invalid = errPseudoAfterRegular+ }+ } else {+ sawRegular = true+ if !validWireHeaderFieldName(hf.Name) {+ invalid = headerFieldNameError(hf.Name)+ }+ }++ if invalid != nil {+ hdec.SetEmitEnabled(false)+ return+ }++ size := hf.Size()+ if size > remainSize {+ hdec.SetEmitEnabled(false)+ mh.Truncated = true+ return+ }+ remainSize -= size++ mh.Fields = append(mh.Fields, hf)+ })+ // Lose reference to MetaHeadersFrame:+ defer hdec.SetEmitFunc(func(hf hpack.HeaderField) {})++ var hc headersOrContinuation = hf+ for {+ frag := hc.HeaderBlockFragment()+ if _, err := hdec.Write(frag); err != nil {+ return nil, ConnectionError(ErrCodeCompression)+ }++ if hc.HeadersEnded() {+ break+ }+ if f, err := fr.ReadFrame(); err != nil {+ return nil, err+ } else {+ hc = f.(*ContinuationFrame) // guaranteed by checkFrameOrder+ }+ }++ mh.HeadersFrame.headerFragBuf = nil+ mh.HeadersFrame.invalidate()++ if err := hdec.Close(); err != nil {+ return nil, ConnectionError(ErrCodeCompression)+ }+ if invalid != nil {+ fr.errDetail = invalid+ if VerboseLogs {+ log.Printf("http2: invalid header: %v", invalid)+ }+ return nil, StreamError{mh.StreamID, ErrCodeProtocol, invalid}+ }+ if err := mh.checkPseudos(); err != nil {+ fr.errDetail = err+ if VerboseLogs {+ log.Printf("http2: invalid pseudo headers: %v", err)+ }+ return nil, StreamError{mh.StreamID, ErrCodeProtocol, err}+ }+ return mh, nil+}++func summarizeFrame(f Frame) string {+ var buf bytes.Buffer+ f.Header().writeDebug(&buf)+ switch f := f.(type) {+ case *SettingsFrame:+ n := 0+ f.ForeachSetting(func(s Setting) error {+ n+++ if n == 1 {+ buf.WriteString(", settings:")+ }+ fmt.Fprintf(&buf, " %v=%v,", s.ID, s.Val)+ return nil+ })+ if n > 0 {+ buf.Truncate(buf.Len() - 1) // remove trailing comma+ }+ case *DataFrame:+ data := f.Data()+ const max = 256+ if len(data) > max {+ data = data[:max]+ }+ fmt.Fprintf(&buf, " data=%q", data)+ if len(f.Data()) > max {+ fmt.Fprintf(&buf, " (%d bytes omitted)", len(f.Data())-max)+ }+ case *WindowUpdateFrame:+ if f.StreamID == 0 {+ buf.WriteString(" (conn)")+ }+ fmt.Fprintf(&buf, " incr=%v", f.Increment)+ case *PingFrame:+ fmt.Fprintf(&buf, " ping=%q", f.Data[:])+ case *GoAwayFrame:+ fmt.Fprintf(&buf, " LastStreamID=%v ErrCode=%v Debug=%q",+ f.LastStreamID, f.ErrCode, f.debugData)+ case *RSTStreamFrame:+ fmt.Fprintf(&buf, " ErrCode=%v", f.ErrCode)+ }+ return buf.String()+}diff --git a/vendor/golang.org/x/net/http2/go16.go b/vendor/golang.org/x/net/http2/go16.gonew file mode 100644index 000000000..2b72855f5--- /dev/null+++ b/vendor/golang.org/x/net/http2/go16.go@@ -0,0 +1,43 @@+// Copyright 2016 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.++// +build go1.6++package http2++import (+ "crypto/tls"+ "net/http"+ "time"+)++func transportExpectContinueTimeout(t1 *http.Transport) time.Duration {+ return t1.ExpectContinueTimeout+}++// isBadCipher reports whether the cipher is blacklisted by the HTTP/2 spec.+func isBadCipher(cipher uint16) bool {+ switch cipher {+ case tls.TLS_RSA_WITH_RC4_128_SHA,+ tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA,+ tls.TLS_RSA_WITH_AES_128_CBC_SHA,+ tls.TLS_RSA_WITH_AES_256_CBC_SHA,+ tls.TLS_RSA_WITH_AES_128_GCM_SHA256,+ tls.TLS_RSA_WITH_AES_256_GCM_SHA384,+ tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,+ tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,+ tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,+ tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA,+ tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,+ tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,+ tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA:+ // Reject cipher suites from Appendix A.+ // "This list includes those cipher suites that do not+ // offer an ephemeral key exchange and those that are+ // based on the TLS null, stream or block cipher type"+ return true+ default:+ return false+ }+}diff --git a/vendor/golang.org/x/net/http2/go17.go b/vendor/golang.org/x/net/http2/go17.gonew file mode 100644index 000000000..47b7fae08--- /dev/null+++ b/vendor/golang.org/x/net/http2/go17.go@@ -0,0 +1,106 @@+// Copyright 2016 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.++// +build go1.7++package http2++import (+ "context"+ "net"+ "net/http"+ "net/http/httptrace"+ "time"+)++type contextContext interface {+ context.Context+}++func serverConnBaseContext(c net.Conn, opts *ServeConnOpts) (ctx contextContext, cancel func()) {+ ctx, cancel = context.WithCancel(context.Background())+ ctx = context.WithValue(ctx, http.LocalAddrContextKey, c.LocalAddr())+ if hs := opts.baseConfig(); hs != nil {+ ctx = context.WithValue(ctx, http.ServerContextKey, hs)+ }+ return+}++func contextWithCancel(ctx contextContext) (_ contextContext, cancel func()) {+ return context.WithCancel(ctx)+}++func requestWithContext(req *http.Request, ctx contextContext) *http.Request {+ return req.WithContext(ctx)+}++type clientTrace httptrace.ClientTrace++func reqContext(r *http.Request) context.Context { return r.Context() }++func (t *Transport) idleConnTimeout() time.Duration {+ if t.t1 != nil {+ return t.t1.IdleConnTimeout+ }+ return 0+}++func setResponseUncompressed(res *http.Response) { res.Uncompressed = true }++func traceGotConn(req *http.Request, cc *ClientConn) {+ trace := httptrace.ContextClientTrace(req.Context())+ if trace == nil || trace.GotConn == nil {+ return+ }+ ci := httptrace.GotConnInfo{Conn: cc.tconn}+ cc.mu.Lock()+ ci.Reused = cc.nextStreamID > 1+ ci.WasIdle = len(cc.streams) == 0 && ci.Reused+ if ci.WasIdle && !cc.lastActive.IsZero() {+ ci.IdleTime = time.Now().Sub(cc.lastActive)+ }+ cc.mu.Unlock()++ trace.GotConn(ci)+}++func traceWroteHeaders(trace *clientTrace) {+ if trace != nil && trace.WroteHeaders != nil {+ trace.WroteHeaders()+ }+}++func traceGot100Continue(trace *clientTrace) {+ if trace != nil && trace.Got100Continue != nil {+ trace.Got100Continue()+ }+}++func traceWait100Continue(trace *clientTrace) {+ if trace != nil && trace.Wait100Continue != nil {+ trace.Wait100Continue()+ }+}++func traceWroteRequest(trace *clientTrace, err error) {+ if trace != nil && trace.WroteRequest != nil {+ trace.WroteRequest(httptrace.WroteRequestInfo{Err: err})+ }+}++func traceFirstResponseByte(trace *clientTrace) {+ if trace != nil && trace.GotFirstResponseByte != nil {+ trace.GotFirstResponseByte()+ }+}++func requestTrace(req *http.Request) *clientTrace {+ trace := httptrace.ContextClientTrace(req.Context())+ return (*clientTrace)(trace)+}++// Ping sends a PING frame to the server and waits for the ack.+func (cc *ClientConn) Ping(ctx context.Context) error {+ return cc.ping(ctx)+}diff --git a/vendor/golang.org/x/net/http2/go17_not18.go b/vendor/golang.org/x/net/http2/go17_not18.gonew file mode 100644index 000000000..b4c52ecec--- /dev/null+++ b/vendor/golang.org/x/net/http2/go17_not18.go@@ -0,0 +1,36 @@+// Copyright 2016 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.++// +build go1.7,!go1.8++package http2++import "crypto/tls"++// temporary copy of Go 1.7's private tls.Config.clone:+func cloneTLSConfig(c *tls.Config) *tls.Config {+ return &tls.Config{+ Rand: c.Rand,+ Time: c.Time,+ Certificates: c.Certificates,+ NameToCertificate: c.NameToCertificate,+ GetCertificate: c.GetCertificate,+ RootCAs: c.RootCAs,+ NextProtos: c.NextProtos,+ ServerName: c.ServerName,+ ClientAuth: c.ClientAuth,+ ClientCAs: c.ClientCAs,+ InsecureSkipVerify: c.InsecureSkipVerify,+ CipherSuites: c.CipherSuites,+ PreferServerCipherSuites: c.PreferServerCipherSuites,+ SessionTicketsDisabled: c.SessionTicketsDisabled,+ SessionTicketKey: c.SessionTicketKey,+ ClientSessionCache: c.ClientSessionCache,+ MinVersion: c.MinVersion,+ MaxVersion: c.MaxVersion,+ CurvePreferences: c.CurvePreferences,+ DynamicRecordSizingDisabled: c.DynamicRecordSizingDisabled,+ Renegotiation: c.Renegotiation,+ }+}diff --git a/vendor/golang.org/x/net/http2/go18.go b/vendor/golang.org/x/net/http2/go18.gonew file mode 100644index 000000000..8c0dd2508--- /dev/null+++ b/vendor/golang.org/x/net/http2/go18.go@@ -0,0 +1,41 @@+// Copyright 2015 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.++// +build go1.8++package http2++import (+ "crypto/tls"+ "net/http"+)++func cloneTLSConfig(c *tls.Config) *tls.Config { return c.Clone() }++var _ http.Pusher = (*responseWriter)(nil)++// Push implements http.Pusher.+func (w *responseWriter) Push(target string, opts *http.PushOptions) error {+ internalOpts := pushOptions{}+ if opts != nil {+ internalOpts.Method = opts.Method+ internalOpts.Header = opts.Header+ }+ return w.push(target, internalOpts)+}++func configureServer18(h1 *http.Server, h2 *Server) error {+ if h2.IdleTimeout == 0 {+ if h1.IdleTimeout != 0 {+ h2.IdleTimeout = h1.IdleTimeout+ } else {+ h2.IdleTimeout = h1.ReadTimeout+ }+ }+ return nil+}++func shouldLogPanic(panicValue interface{}) bool {+ return panicValue != nil && panicValue != http.ErrAbortHandler+}diff --git a/vendor/golang.org/x/net/http2/gotrack.go b/vendor/golang.org/x/net/http2/gotrack.gonew file mode 100644index 000000000..9933c9f8c--- /dev/null+++ b/vendor/golang.org/x/net/http2/gotrack.go@@ -0,0 +1,170 @@+// Copyright 2014 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.++// Defensive debug-only utility to track that functions run on the+// goroutine that they're supposed to.++package http2++import (+ "bytes"+ "errors"+ "fmt"+ "os"+ "runtime"+ "strconv"+ "sync"+)++var DebugGoroutines = os.Getenv("DEBUG_HTTP2_GOROUTINES") == "1"++type goroutineLock uint64++func newGoroutineLock() goroutineLock {+ if !DebugGoroutines {+ return 0+ }+ return goroutineLock(curGoroutineID())+}++func (g goroutineLock) check() {+ if !DebugGoroutines {+ return+ }+ if curGoroutineID() != uint64(g) {+ panic("running on the wrong goroutine")+ }+}++func (g goroutineLock) checkNotOn() {+ if !DebugGoroutines {+ return+ }+ if curGoroutineID() == uint64(g) {+ panic("running on the wrong goroutine")+ }+}++var goroutineSpace = []byte("goroutine ")++func curGoroutineID() uint64 {+ bp := littleBuf.Get().(*[]byte)+ defer littleBuf.Put(bp)+ b := *bp+ b = b[:runtime.Stack(b, false)]+ // Parse the 4707 out of "goroutine 4707 ["+ b = bytes.TrimPrefix(b, goroutineSpace)+ i := bytes.IndexByte(b, ' ')+ if i < 0 {+ panic(fmt.Sprintf("No space found in %q", b))+ }+ b = b[:i]+ n, err := parseUintBytes(b, 10, 64)+ if err != nil {+ panic(fmt.Sprintf("Failed to parse goroutine ID out of %q: %v", b, err))+ }+ return n+}++var littleBuf = sync.Pool{+ New: func() interface{} {+ buf := make([]byte, 64)+ return &buf+ },+}++// parseUintBytes is like strconv.ParseUint, but using a []byte.+func parseUintBytes(s []byte, base int, bitSize int) (n uint64, err error) {+ var cutoff, maxVal uint64++ if bitSize == 0 {+ bitSize = int(strconv.IntSize)+ }++ s0 := s+ switch {+ case len(s) < 1:+ err = strconv.ErrSyntax+ goto Error++ case 2 <= base && base <= 36:+ // valid base; nothing to do++ case base == 0:+ // Look for octal, hex prefix.+ switch {+ case s[0] == '0' && len(s) > 1 && (s[1] == 'x' || s[1] == 'X'):+ base = 16+ s = s[2:]+ if len(s) < 1 {+ err = strconv.ErrSyntax+ goto Error+ }+ case s[0] == '0':+ base = 8+ default:+ base = 10+ }++ default:+ err = errors.New("invalid base " + strconv.Itoa(base))+ goto Error+ }++ n = 0+ cutoff = cutoff64(base)+ maxVal = 1<<uint(bitSize) - 1++ for i := 0; i < len(s); i++ {+ var v byte+ d := s[i]+ switch {+ case '0' <= d && d <= '9':+ v = d - '0'+ case 'a' <= d && d <= 'z':+ v = d - 'a' + 10+ case 'A' <= d && d <= 'Z':+ v = d - 'A' + 10+ default:+ n = 0+ err = strconv.ErrSyntax+ goto Error+ }+ if int(v) >= base {+ n = 0+ err = strconv.ErrSyntax+ goto Error+ }++ if n >= cutoff {+ // n*base overflows+ n = 1<<64 - 1+ err = strconv.ErrRange+ goto Error+ }+ n *= uint64(base)++ n1 := n + uint64(v)+ if n1 < n || n1 > maxVal {+ // n+v overflows+ n = 1<<64 - 1+ err = strconv.ErrRange+ goto Error+ }+ n = n1+ }++ return n, nil++Error:+ return n, &strconv.NumError{Func: "ParseUint", Num: string(s0), Err: err}+}++// Return the first number n such that n*base >= 1<<64.+func cutoff64(base int) uint64 {+ if base < 2 {+ return 0+ }+ return (1<<64-1)/uint64(base) + 1+}diff --git a/vendor/golang.org/x/net/http2/headermap.go b/vendor/golang.org/x/net/http2/headermap.gonew file mode 100644index 000000000..c2805f6ac--- /dev/null+++ b/vendor/golang.org/x/net/http2/headermap.go@@ -0,0 +1,78 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package http2++import (+ "net/http"+ "strings"+)++var (+ commonLowerHeader = map[string]string{} // Go-Canonical-Case -> lower-case+ commonCanonHeader = map[string]string{} // lower-case -> Go-Canonical-Case+)++func init() {+ for _, v := range []string{+ "accept",+ "accept-charset",+ "accept-encoding",+ "accept-language",+ "accept-ranges",+ "age",+ "access-control-allow-origin",+ "allow",+ "authorization",+ "cache-control",+ "content-disposition",+ "content-encoding",+ "content-language",+ "content-length",+ "content-location",+ "content-range",+ "content-type",+ "cookie",+ "date",+ "etag",+ "expect",+ "expires",+ "from",+ "host",+ "if-match",+ "if-modified-since",+ "if-none-match",+ "if-unmodified-since",+ "last-modified",+ "link",+ "location",+ "max-forwards",+ "proxy-authenticate",+ "proxy-authorization",+ "range",+ "referer",+ "refresh",+ "retry-after",+ "server",+ "set-cookie",+ "strict-transport-security",+ "trailer",+ "transfer-encoding",+ "user-agent",+ "vary",+ "via",+ "www-authenticate",+ } {+ chk := http.CanonicalHeaderKey(v)+ commonLowerHeader[chk] = v+ commonCanonHeader[v] = chk+ }+}++func lowerHeader(v string) string {+ if s, ok := commonLowerHeader[v]; ok {+ return s+ }+ return strings.ToLower(v)+}diff --git a/vendor/golang.org/x/net/http2/hpack/encode.go b/vendor/golang.org/x/net/http2/hpack/encode.gonew file mode 100644index 000000000..f9bb03398--- /dev/null+++ b/vendor/golang.org/x/net/http2/hpack/encode.go@@ -0,0 +1,251 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package hpack++import (+ "io"+)++const (+ uint32Max = ^uint32(0)+ initialHeaderTableSize = 4096+)++type Encoder struct {+ dynTab dynamicTable+ // minSize is the minimum table size set by+ // SetMaxDynamicTableSize after the previous Header Table Size+ // Update.+ minSize uint32+ // maxSizeLimit is the maximum table size this encoder+ // supports. This will protect the encoder from too large+ // size.+ maxSizeLimit uint32+ // tableSizeUpdate indicates whether "Header Table Size+ // Update" is required.+ tableSizeUpdate bool+ w io.Writer+ buf []byte+}++// NewEncoder returns a new Encoder which performs HPACK encoding. An+// encoded data is written to w.+func NewEncoder(w io.Writer) *Encoder {+ e := &Encoder{+ minSize: uint32Max,+ maxSizeLimit: initialHeaderTableSize,+ tableSizeUpdate: false,+ w: w,+ }+ e.dynTab.setMaxSize(initialHeaderTableSize)+ return e+}++// WriteField encodes f into a single Write to e's underlying Writer.+// This function may also produce bytes for "Header Table Size Update"+// if necessary. If produced, it is done before encoding f.+func (e *Encoder) WriteField(f HeaderField) error {+ e.buf = e.buf[:0]++ if e.tableSizeUpdate {+ e.tableSizeUpdate = false+ if e.minSize < e.dynTab.maxSize {+ e.buf = appendTableSize(e.buf, e.minSize)+ }+ e.minSize = uint32Max+ e.buf = appendTableSize(e.buf, e.dynTab.maxSize)+ }++ idx, nameValueMatch := e.searchTable(f)+ if nameValueMatch {+ e.buf = appendIndexed(e.buf, idx)+ } else {+ indexing := e.shouldIndex(f)+ if indexing {+ e.dynTab.add(f)+ }++ if idx == 0 {+ e.buf = appendNewName(e.buf, f, indexing)+ } else {+ e.buf = appendIndexedName(e.buf, f, idx, indexing)+ }+ }+ n, err := e.w.Write(e.buf)+ if err == nil && n != len(e.buf) {+ err = io.ErrShortWrite+ }+ return err+}++// searchTable searches f in both stable and dynamic header tables.+// The static header table is searched first. Only when there is no+// exact match for both name and value, the dynamic header table is+// then searched. If there is no match, i is 0. If both name and value+// match, i is the matched index and nameValueMatch becomes true. If+// only name matches, i points to that index and nameValueMatch+// becomes false.+func (e *Encoder) searchTable(f HeaderField) (i uint64, nameValueMatch bool) {+ for idx, hf := range staticTable {+ if !constantTimeStringCompare(hf.Name, f.Name) {+ continue+ }+ if i == 0 {+ i = uint64(idx + 1)+ }+ if f.Sensitive {+ continue+ }+ if !constantTimeStringCompare(hf.Value, f.Value) {+ continue+ }+ i = uint64(idx + 1)+ nameValueMatch = true+ return+ }++ j, nameValueMatch := e.dynTab.search(f)+ if nameValueMatch || (i == 0 && j != 0) {+ i = j + uint64(len(staticTable))+ }+ return+}++// SetMaxDynamicTableSize changes the dynamic header table size to v.+// The actual size is bounded by the value passed to+// SetMaxDynamicTableSizeLimit.+func (e *Encoder) SetMaxDynamicTableSize(v uint32) {+ if v > e.maxSizeLimit {+ v = e.maxSizeLimit+ }+ if v < e.minSize {+ e.minSize = v+ }+ e.tableSizeUpdate = true+ e.dynTab.setMaxSize(v)+}++// SetMaxDynamicTableSizeLimit changes the maximum value that can be+// specified in SetMaxDynamicTableSize to v. By default, it is set to+// 4096, which is the same size of the default dynamic header table+// size described in HPACK specification. If the current maximum+// dynamic header table size is strictly greater than v, "Header Table+// Size Update" will be done in the next WriteField call and the+// maximum dynamic header table size is truncated to v.+func (e *Encoder) SetMaxDynamicTableSizeLimit(v uint32) {+ e.maxSizeLimit = v+ if e.dynTab.maxSize > v {+ e.tableSizeUpdate = true+ e.dynTab.setMaxSize(v)+ }+}++// shouldIndex reports whether f should be indexed.+func (e *Encoder) shouldIndex(f HeaderField) bool {+ return !f.Sensitive && f.Size() <= e.dynTab.maxSize+}++// appendIndexed appends index i, as encoded in "Indexed Header Field"+// representation, to dst and returns the extended buffer.+func appendIndexed(dst []byte, i uint64) []byte {+ first := len(dst)+ dst = appendVarInt(dst, 7, i)+ dst[first] |= 0x80+ return dst+}++// appendNewName appends f, as encoded in one of "Literal Header field+// - New Name" representation variants, to dst and returns the+// extended buffer.+//+// If f.Sensitive is true, "Never Indexed" representation is used. If+// f.Sensitive is false and indexing is true, "Inremental Indexing"+// representation is used.+func appendNewName(dst []byte, f HeaderField, indexing bool) []byte {+ dst = append(dst, encodeTypeByte(indexing, f.Sensitive))+ dst = appendHpackString(dst, f.Name)+ return appendHpackString(dst, f.Value)+}++// appendIndexedName appends f and index i referring indexed name+// entry, as encoded in one of "Literal Header field - Indexed Name"+// representation variants, to dst and returns the extended buffer.+//+// If f.Sensitive is true, "Never Indexed" representation is used. If+// f.Sensitive is false and indexing is true, "Incremental Indexing"+// representation is used.+func appendIndexedName(dst []byte, f HeaderField, i uint64, indexing bool) []byte {+ first := len(dst)+ var n byte+ if indexing {+ n = 6+ } else {+ n = 4+ }+ dst = appendVarInt(dst, n, i)+ dst[first] |= encodeTypeByte(indexing, f.Sensitive)+ return appendHpackString(dst, f.Value)+}++// appendTableSize appends v, as encoded in "Header Table Size Update"+// representation, to dst and returns the extended buffer.+func appendTableSize(dst []byte, v uint32) []byte {+ first := len(dst)+ dst = appendVarInt(dst, 5, uint64(v))+ dst[first] |= 0x20+ return dst+}++// appendVarInt appends i, as encoded in variable integer form using n+// bit prefix, to dst and returns the extended buffer.+//+// See+// http://http2.github.io/http2-spec/compression.html#integer.representation+func appendVarInt(dst []byte, n byte, i uint64) []byte {+ k := uint64((1 << n) - 1)+ if i < k {+ return append(dst, byte(i))+ }+ dst = append(dst, byte(k))+ i -= k+ for ; i >= 128; i >>= 7 {+ dst = append(dst, byte(0x80|(i&0x7f)))+ }+ return append(dst, byte(i))+}++// appendHpackString appends s, as encoded in "String Literal"+// representation, to dst and returns the the extended buffer.+//+// s will be encoded in Huffman codes only when it produces strictly+// shorter byte string.+func appendHpackString(dst []byte, s string) []byte {+ huffmanLength := HuffmanEncodeLength(s)+ if huffmanLength < uint64(len(s)) {+ first := len(dst)+ dst = appendVarInt(dst, 7, huffmanLength)+ dst = AppendHuffmanString(dst, s)+ dst[first] |= 0x80+ } else {+ dst = appendVarInt(dst, 7, uint64(len(s)))+ dst = append(dst, s...)+ }+ return dst+}++// encodeTypeByte returns type byte. If sensitive is true, type byte+// for "Never Indexed" representation is returned. If sensitive is+// false and indexing is true, type byte for "Incremental Indexing"+// representation is returned. Otherwise, type byte for "Without+// Indexing" is returned.+func encodeTypeByte(indexing, sensitive bool) byte {+ if sensitive {+ return 0x10+ }+ if indexing {+ return 0x40+ }+ return 0+}diff --git a/vendor/golang.org/x/net/http2/hpack/hpack.go b/vendor/golang.org/x/net/http2/hpack/hpack.gonew file mode 100644index 000000000..135b9f62c--- /dev/null+++ b/vendor/golang.org/x/net/http2/hpack/hpack.go@@ -0,0 +1,542 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++// Package hpack implements HPACK, a compression format for+// efficiently representing HTTP header fields in the context of HTTP/2.+//+// See http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-09+package hpack++import (+ "bytes"+ "errors"+ "fmt"+)++// A DecodingError is something the spec defines as a decoding error.+type DecodingError struct {+ Err error+}++func (de DecodingError) Error() string {+ return fmt.Sprintf("decoding error: %v", de.Err)+}++// An InvalidIndexError is returned when an encoder references a table+// entry before the static table or after the end of the dynamic table.+type InvalidIndexError int++func (e InvalidIndexError) Error() string {+ return fmt.Sprintf("invalid indexed representation index %d", int(e))+}++// A HeaderField is a name-value pair. Both the name and value are+// treated as opaque sequences of octets.+type HeaderField struct {+ Name, Value string++ // Sensitive means that this header field should never be+ // indexed.+ Sensitive bool+}++// IsPseudo reports whether the header field is an http2 pseudo header.+// That is, it reports whether it starts with a colon.+// It is not otherwise guaranteed to be a valid pseudo header field,+// though.+func (hf HeaderField) IsPseudo() bool {+ return len(hf.Name) != 0 && hf.Name[0] == ':'+}++func (hf HeaderField) String() string {+ var suffix string+ if hf.Sensitive {+ suffix = " (sensitive)"+ }+ return fmt.Sprintf("header field %q = %q%s", hf.Name, hf.Value, suffix)+}++// Size returns the size of an entry per RFC 7541 section 4.1.+func (hf HeaderField) Size() uint32 {+ // http://http2.github.io/http2-spec/compression.html#rfc.section.4.1+ // "The size of the dynamic table is the sum of the size of+ // its entries. The size of an entry is the sum of its name's+ // length in octets (as defined in Section 5.2), its value's+ // length in octets (see Section 5.2), plus 32. The size of+ // an entry is calculated using the length of the name and+ // value without any Huffman encoding applied."++ // This can overflow if somebody makes a large HeaderField+ // Name and/or Value by hand, but we don't care, because that+ // won't happen on the wire because the encoding doesn't allow+ // it.+ return uint32(len(hf.Name) + len(hf.Value) + 32)+}++// A Decoder is the decoding context for incremental processing of+// header blocks.+type Decoder struct {+ dynTab dynamicTable+ emit func(f HeaderField)++ emitEnabled bool // whether calls to emit are enabled+ maxStrLen int // 0 means unlimited++ // buf is the unparsed buffer. It's only written to+ // saveBuf if it was truncated in the middle of a header+ // block. Because it's usually not owned, we can only+ // process it under Write.+ buf []byte // not owned; only valid during Write++ // saveBuf is previous data passed to Write which we weren't able+ // to fully parse before. Unlike buf, we own this data.+ saveBuf bytes.Buffer+}++// NewDecoder returns a new decoder with the provided maximum dynamic+// table size. The emitFunc will be called for each valid field+// parsed, in the same goroutine as calls to Write, before Write returns.+func NewDecoder(maxDynamicTableSize uint32, emitFunc func(f HeaderField)) *Decoder {+ d := &Decoder{+ emit: emitFunc,+ emitEnabled: true,+ }+ d.dynTab.allowedMaxSize = maxDynamicTableSize+ d.dynTab.setMaxSize(maxDynamicTableSize)+ return d+}++// ErrStringLength is returned by Decoder.Write when the max string length+// (as configured by Decoder.SetMaxStringLength) would be violated.+var ErrStringLength = errors.New("hpack: string too long")++// SetMaxStringLength sets the maximum size of a HeaderField name or+// value string. If a string exceeds this length (even after any+// decompression), Write will return ErrStringLength.+// A value of 0 means unlimited and is the default from NewDecoder.+func (d *Decoder) SetMaxStringLength(n int) {+ d.maxStrLen = n+}++// SetEmitFunc changes the callback used when new header fields+// are decoded.+// It must be non-nil. It does not affect EmitEnabled.+func (d *Decoder) SetEmitFunc(emitFunc func(f HeaderField)) {+ d.emit = emitFunc+}++// SetEmitEnabled controls whether the emitFunc provided to NewDecoder+// should be called. The default is true.+//+// This facility exists to let servers enforce MAX_HEADER_LIST_SIZE+// while still decoding and keeping in-sync with decoder state, but+// without doing unnecessary decompression or generating unnecessary+// garbage for header fields past the limit.+func (d *Decoder) SetEmitEnabled(v bool) { d.emitEnabled = v }++// EmitEnabled reports whether calls to the emitFunc provided to NewDecoder+// are currently enabled. The default is true.+func (d *Decoder) EmitEnabled() bool { return d.emitEnabled }++// TODO: add method *Decoder.Reset(maxSize, emitFunc) to let callers re-use Decoders and their+// underlying buffers for garbage reasons.++func (d *Decoder) SetMaxDynamicTableSize(v uint32) {+ d.dynTab.setMaxSize(v)+}++// SetAllowedMaxDynamicTableSize sets the upper bound that the encoded+// stream (via dynamic table size updates) may set the maximum size+// to.+func (d *Decoder) SetAllowedMaxDynamicTableSize(v uint32) {+ d.dynTab.allowedMaxSize = v+}++type dynamicTable struct {+ // ents is the FIFO described at+ // http://http2.github.io/http2-spec/compression.html#rfc.section.2.3.2+ // The newest (low index) is append at the end, and items are+ // evicted from the front.+ ents []HeaderField+ size uint32+ maxSize uint32 // current maxSize+ allowedMaxSize uint32 // maxSize may go up to this, inclusive+}++func (dt *dynamicTable) setMaxSize(v uint32) {+ dt.maxSize = v+ dt.evict()+}++// TODO: change dynamicTable to be a struct with a slice and a size int field,+// per http://http2.github.io/http2-spec/compression.html#rfc.section.4.1:+//+//+// Then make add increment the size. maybe the max size should move from Decoder to+// dynamicTable and add should return an ok bool if there was enough space.+//+// Later we'll need a remove operation on dynamicTable.++func (dt *dynamicTable) add(f HeaderField) {+ dt.ents = append(dt.ents, f)+ dt.size += f.Size()+ dt.evict()+}++// If we're too big, evict old stuff (front of the slice)+func (dt *dynamicTable) evict() {+ base := dt.ents // keep base pointer of slice+ for dt.size > dt.maxSize {+ dt.size -= dt.ents[0].Size()+ dt.ents = dt.ents[1:]+ }++ // Shift slice contents down if we evicted things.+ if len(dt.ents) != len(base) {+ copy(base, dt.ents)+ dt.ents = base[:len(dt.ents)]+ }+}++// constantTimeStringCompare compares string a and b in a constant+// time manner.+func constantTimeStringCompare(a, b string) bool {+ if len(a) != len(b) {+ return false+ }++ c := byte(0)++ for i := 0; i < len(a); i++ {+ c |= a[i] ^ b[i]+ }++ return c == 0+}++// Search searches f in the table. The return value i is 0 if there is+// no name match. If there is name match or name/value match, i is the+// index of that entry (1-based). If both name and value match,+// nameValueMatch becomes true.+func (dt *dynamicTable) search(f HeaderField) (i uint64, nameValueMatch bool) {+ l := len(dt.ents)+ for j := l - 1; j >= 0; j-- {+ ent := dt.ents[j]+ if !constantTimeStringCompare(ent.Name, f.Name) {+ continue+ }+ if i == 0 {+ i = uint64(l - j)+ }+ if f.Sensitive {+ continue+ }+ if !constantTimeStringCompare(ent.Value, f.Value) {+ continue+ }+ i = uint64(l - j)+ nameValueMatch = true+ return+ }+ return+}++func (d *Decoder) maxTableIndex() int {+ return len(d.dynTab.ents) + len(staticTable)+}++func (d *Decoder) at(i uint64) (hf HeaderField, ok bool) {+ if i < 1 {+ return+ }+ if i > uint64(d.maxTableIndex()) {+ return+ }+ if i <= uint64(len(staticTable)) {+ return staticTable[i-1], true+ }+ dents := d.dynTab.ents+ return dents[len(dents)-(int(i)-len(staticTable))], true+}++// Decode decodes an entire block.+//+// TODO: remove this method and make it incremental later? This is+// easier for debugging now.+func (d *Decoder) DecodeFull(p []byte) ([]HeaderField, error) {+ var hf []HeaderField+ saveFunc := d.emit+ defer func() { d.emit = saveFunc }()+ d.emit = func(f HeaderField) { hf = append(hf, f) }+ if _, err := d.Write(p); err != nil {+ return nil, err+ }+ if err := d.Close(); err != nil {+ return nil, err+ }+ return hf, nil+}++func (d *Decoder) Close() error {+ if d.saveBuf.Len() > 0 {+ d.saveBuf.Reset()+ return DecodingError{errors.New("truncated headers")}+ }+ return nil+}++func (d *Decoder) Write(p []byte) (n int, err error) {+ if len(p) == 0 {+ // Prevent state machine CPU attacks (making us redo+ // work up to the point of finding out we don't have+ // enough data)+ return+ }+ // Only copy the data if we have to. Optimistically assume+ // that p will contain a complete header block.+ if d.saveBuf.Len() == 0 {+ d.buf = p+ } else {+ d.saveBuf.Write(p)+ d.buf = d.saveBuf.Bytes()+ d.saveBuf.Reset()+ }++ for len(d.buf) > 0 {+ err = d.parseHeaderFieldRepr()+ if err == errNeedMore {+ // Extra paranoia, making sure saveBuf won't+ // get too large. All the varint and string+ // reading code earlier should already catch+ // overlong things and return ErrStringLength,+ // but keep this as a last resort.+ const varIntOverhead = 8 // conservative+ if d.maxStrLen != 0 && int64(len(d.buf)) > 2*(int64(d.maxStrLen)+varIntOverhead) {+ return 0, ErrStringLength+ }+ d.saveBuf.Write(d.buf)+ return len(p), nil+ }+ if err != nil {+ break+ }+ }+ return len(p), err+}++// errNeedMore is an internal sentinel error value that means the+// buffer is truncated and we need to read more data before we can+// continue parsing.+var errNeedMore = errors.New("need more data")++type indexType int++const (+ indexedTrue indexType = iota+ indexedFalse+ indexedNever+)++func (v indexType) indexed() bool { return v == indexedTrue }+func (v indexType) sensitive() bool { return v == indexedNever }++// returns errNeedMore if there isn't enough data available.+// any other error is fatal.+// consumes d.buf iff it returns nil.+// precondition: must be called with len(d.buf) > 0+func (d *Decoder) parseHeaderFieldRepr() error {+ b := d.buf[0]+ switch {+ case b&128 != 0:+ // Indexed representation.+ // High bit set?+ // http://http2.github.io/http2-spec/compression.html#rfc.section.6.1+ return d.parseFieldIndexed()+ case b&192 == 64:+ // 6.2.1 Literal Header Field with Incremental Indexing+ // 0b10xxxxxx: top two bits are 10+ // http://http2.github.io/http2-spec/compression.html#rfc.section.6.2.1+ return d.parseFieldLiteral(6, indexedTrue)+ case b&240 == 0:+ // 6.2.2 Literal Header Field without Indexing+ // 0b0000xxxx: top four bits are 0000+ // http://http2.github.io/http2-spec/compression.html#rfc.section.6.2.2+ return d.parseFieldLiteral(4, indexedFalse)+ case b&240 == 16:+ // 6.2.3 Literal Header Field never Indexed+ // 0b0001xxxx: top four bits are 0001+ // http://http2.github.io/http2-spec/compression.html#rfc.section.6.2.3+ return d.parseFieldLiteral(4, indexedNever)+ case b&224 == 32:+ // 6.3 Dynamic Table Size Update+ // Top three bits are '001'.+ // http://http2.github.io/http2-spec/compression.html#rfc.section.6.3+ return d.parseDynamicTableSizeUpdate()+ }++ return DecodingError{errors.New("invalid encoding")}+}++// (same invariants and behavior as parseHeaderFieldRepr)+func (d *Decoder) parseFieldIndexed() error {+ buf := d.buf+ idx, buf, err := readVarInt(7, buf)+ if err != nil {+ return err+ }+ hf, ok := d.at(idx)+ if !ok {+ return DecodingError{InvalidIndexError(idx)}+ }+ d.buf = buf+ return d.callEmit(HeaderField{Name: hf.Name, Value: hf.Value})+}++// (same invariants and behavior as parseHeaderFieldRepr)+func (d *Decoder) parseFieldLiteral(n uint8, it indexType) error {+ buf := d.buf+ nameIdx, buf, err := readVarInt(n, buf)+ if err != nil {+ return err+ }++ var hf HeaderField+ wantStr := d.emitEnabled || it.indexed()+ if nameIdx > 0 {+ ihf, ok := d.at(nameIdx)+ if !ok {+ return DecodingError{InvalidIndexError(nameIdx)}+ }+ hf.Name = ihf.Name+ } else {+ hf.Name, buf, err = d.readString(buf, wantStr)+ if err != nil {+ return err+ }+ }+ hf.Value, buf, err = d.readString(buf, wantStr)+ if err != nil {+ return err+ }+ d.buf = buf+ if it.indexed() {+ d.dynTab.add(hf)+ }+ hf.Sensitive = it.sensitive()+ return d.callEmit(hf)+}++func (d *Decoder) callEmit(hf HeaderField) error {+ if d.maxStrLen != 0 {+ if len(hf.Name) > d.maxStrLen || len(hf.Value) > d.maxStrLen {+ return ErrStringLength+ }+ }+ if d.emitEnabled {+ d.emit(hf)+ }+ return nil+}++// (same invariants and behavior as parseHeaderFieldRepr)+func (d *Decoder) parseDynamicTableSizeUpdate() error {+ buf := d.buf+ size, buf, err := readVarInt(5, buf)+ if err != nil {+ return err+ }+ if size > uint64(d.dynTab.allowedMaxSize) {+ return DecodingError{errors.New("dynamic table size update too large")}+ }+ d.dynTab.setMaxSize(uint32(size))+ d.buf = buf+ return nil+}++var errVarintOverflow = DecodingError{errors.New("varint integer overflow")}++// readVarInt reads an unsigned variable length integer off the+// beginning of p. n is the parameter as described in+// http://http2.github.io/http2-spec/compression.html#rfc.section.5.1.+//+// n must always be between 1 and 8.+//+// The returned remain buffer is either a smaller suffix of p, or err != nil.+// The error is errNeedMore if p doesn't contain a complete integer.+func readVarInt(n byte, p []byte) (i uint64, remain []byte, err error) {+ if n < 1 || n > 8 {+ panic("bad n")+ }+ if len(p) == 0 {+ return 0, p, errNeedMore+ }+ i = uint64(p[0])+ if n < 8 {+ i &= (1 << uint64(n)) - 1+ }+ if i < (1<<uint64(n))-1 {+ return i, p[1:], nil+ }++ origP := p+ p = p[1:]+ var m uint64+ for len(p) > 0 {+ b := p[0]+ p = p[1:]+ i += uint64(b&127) << m+ if b&128 == 0 {+ return i, p, nil+ }+ m += 7+ if m >= 63 { // TODO: proper overflow check. making this up.+ return 0, origP, errVarintOverflow+ }+ }+ return 0, origP, errNeedMore+}++// readString decodes an hpack string from p.+//+// wantStr is whether s will be used. If false, decompression and+// []byte->string garbage are skipped if s will be ignored+// anyway. This does mean that huffman decoding errors for non-indexed+// strings past the MAX_HEADER_LIST_SIZE are ignored, but the server+// is returning an error anyway, and because they're not indexed, the error+// won't affect the decoding state.+func (d *Decoder) readString(p []byte, wantStr bool) (s string, remain []byte, err error) {+ if len(p) == 0 {+ return "", p, errNeedMore+ }+ isHuff := p[0]&128 != 0+ strLen, p, err := readVarInt(7, p)+ if err != nil {+ return "", p, err+ }+ if d.maxStrLen != 0 && strLen > uint64(d.maxStrLen) {+ return "", nil, ErrStringLength+ }+ if uint64(len(p)) < strLen {+ return "", p, errNeedMore+ }+ if !isHuff {+ if wantStr {+ s = string(p[:strLen])+ }+ return s, p[strLen:], nil+ }++ if wantStr {+ buf := bufPool.Get().(*bytes.Buffer)+ buf.Reset() // don't trust others+ defer bufPool.Put(buf)+ if err := huffmanDecode(buf, d.maxStrLen, p[:strLen]); err != nil {+ buf.Reset()+ return "", nil, err+ }+ s = buf.String()+ buf.Reset() // be nice to GC+ }+ return s, p[strLen:], nil+}diff --git a/vendor/golang.org/x/net/http2/hpack/huffman.go b/vendor/golang.org/x/net/http2/hpack/huffman.gonew file mode 100644index 000000000..8850e3946--- /dev/null+++ b/vendor/golang.org/x/net/http2/hpack/huffman.go@@ -0,0 +1,212 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package hpack++import (+ "bytes"+ "errors"+ "io"+ "sync"+)++var bufPool = sync.Pool{+ New: func() interface{} { return new(bytes.Buffer) },+}++// HuffmanDecode decodes the string in v and writes the expanded+// result to w, returning the number of bytes written to w and the+// Write call's return value. At most one Write call is made.+func HuffmanDecode(w io.Writer, v []byte) (int, error) {+ buf := bufPool.Get().(*bytes.Buffer)+ buf.Reset()+ defer bufPool.Put(buf)+ if err := huffmanDecode(buf, 0, v); err != nil {+ return 0, err+ }+ return w.Write(buf.Bytes())+}++// HuffmanDecodeToString decodes the string in v.+func HuffmanDecodeToString(v []byte) (string, error) {+ buf := bufPool.Get().(*bytes.Buffer)+ buf.Reset()+ defer bufPool.Put(buf)+ if err := huffmanDecode(buf, 0, v); err != nil {+ return "", err+ }+ return buf.String(), nil+}++// ErrInvalidHuffman is returned for errors found decoding+// Huffman-encoded strings.+var ErrInvalidHuffman = errors.New("hpack: invalid Huffman-encoded data")++// huffmanDecode decodes v to buf.+// If maxLen is greater than 0, attempts to write more to buf than+// maxLen bytes will return ErrStringLength.+func huffmanDecode(buf *bytes.Buffer, maxLen int, v []byte) error {+ n := rootHuffmanNode+ // cur is the bit buffer that has not been fed into n.+ // cbits is the number of low order bits in cur that are valid.+ // sbits is the number of bits of the symbol prefix being decoded.+ cur, cbits, sbits := uint(0), uint8(0), uint8(0)+ for _, b := range v {+ cur = cur<<8 | uint(b)+ cbits += 8+ sbits += 8+ for cbits >= 8 {+ idx := byte(cur >> (cbits - 8))+ n = n.children[idx]+ if n == nil {+ return ErrInvalidHuffman+ }+ if n.children == nil {+ if maxLen != 0 && buf.Len() == maxLen {+ return ErrStringLength+ }+ buf.WriteByte(n.sym)+ cbits -= n.codeLen+ n = rootHuffmanNode+ sbits = cbits+ } else {+ cbits -= 8+ }+ }+ }+ for cbits > 0 {+ n = n.children[byte(cur<<(8-cbits))]+ if n == nil {+ return ErrInvalidHuffman+ }+ if n.children != nil || n.codeLen > cbits {+ break+ }+ if maxLen != 0 && buf.Len() == maxLen {+ return ErrStringLength+ }+ buf.WriteByte(n.sym)+ cbits -= n.codeLen+ n = rootHuffmanNode+ sbits = cbits+ }+ if sbits > 7 {+ // Either there was an incomplete symbol, or overlong padding.+ // Both are decoding errors per RFC 7541 section 5.2.+ return ErrInvalidHuffman+ }+ if mask := uint(1<<cbits - 1); cur&mask != mask {+ // Trailing bits must be a prefix of EOS per RFC 7541 section 5.2.+ return ErrInvalidHuffman+ }++ return nil+}++type node struct {+ // children is non-nil for internal nodes+ children []*node++ // The following are only valid if children is nil:+ codeLen uint8 // number of bits that led to the output of sym+ sym byte // output symbol+}++func newInternalNode() *node {+ return &node{children: make([]*node, 256)}+}++var rootHuffmanNode = newInternalNode()++func init() {+ if len(huffmanCodes) != 256 {+ panic("unexpected size")+ }+ for i, code := range huffmanCodes {+ addDecoderNode(byte(i), code, huffmanCodeLen[i])+ }+}++func addDecoderNode(sym byte, code uint32, codeLen uint8) {+ cur := rootHuffmanNode+ for codeLen > 8 {+ codeLen -= 8+ i := uint8(code >> codeLen)+ if cur.children[i] == nil {+ cur.children[i] = newInternalNode()+ }+ cur = cur.children[i]+ }+ shift := 8 - codeLen+ start, end := int(uint8(code<<shift)), int(1<<shift)+ for i := start; i < start+end; i++ {+ cur.children[i] = &node{sym: sym, codeLen: codeLen}+ }+}++// AppendHuffmanString appends s, as encoded in Huffman codes, to dst+// and returns the extended buffer.+func AppendHuffmanString(dst []byte, s string) []byte {+ rembits := uint8(8)++ for i := 0; i < len(s); i++ {+ if rembits == 8 {+ dst = append(dst, 0)+ }+ dst, rembits = appendByteToHuffmanCode(dst, rembits, s[i])+ }++ if rembits < 8 {+ // special EOS symbol+ code := uint32(0x3fffffff)+ nbits := uint8(30)++ t := uint8(code >> (nbits - rembits))+ dst[len(dst)-1] |= t+ }++ return dst+}++// HuffmanEncodeLength returns the number of bytes required to encode+// s in Huffman codes. The result is round up to byte boundary.+func HuffmanEncodeLength(s string) uint64 {+ n := uint64(0)+ for i := 0; i < len(s); i++ {+ n += uint64(huffmanCodeLen[s[i]])+ }+ return (n + 7) / 8+}++// appendByteToHuffmanCode appends Huffman code for c to dst and+// returns the extended buffer and the remaining bits in the last+// element. The appending is not byte aligned and the remaining bits+// in the last element of dst is given in rembits.+func appendByteToHuffmanCode(dst []byte, rembits uint8, c byte) ([]byte, uint8) {+ code := huffmanCodes[c]+ nbits := huffmanCodeLen[c]++ for {+ if rembits > nbits {+ t := uint8(code << (rembits - nbits))+ dst[len(dst)-1] |= t+ rembits -= nbits+ break+ }++ t := uint8(code >> (nbits - rembits))+ dst[len(dst)-1] |= t++ nbits -= rembits+ rembits = 8++ if nbits == 0 {+ break+ }++ dst = append(dst, 0)+ }++ return dst, rembits+}diff --git a/vendor/golang.org/x/net/http2/hpack/tables.go b/vendor/golang.org/x/net/http2/hpack/tables.gonew file mode 100644index 000000000..b9283a023--- /dev/null+++ b/vendor/golang.org/x/net/http2/hpack/tables.go@@ -0,0 +1,352 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package hpack++func pair(name, value string) HeaderField {+ return HeaderField{Name: name, Value: value}+}++// http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-07#appendix-B+var staticTable = [...]HeaderField{+ pair(":authority", ""), // index 1 (1-based)+ pair(":method", "GET"),+ pair(":method", "POST"),+ pair(":path", "/"),+ pair(":path", "/index.html"),+ pair(":scheme", "http"),+ pair(":scheme", "https"),+ pair(":status", "200"),+ pair(":status", "204"),+ pair(":status", "206"),+ pair(":status", "304"),+ pair(":status", "400"),+ pair(":status", "404"),+ pair(":status", "500"),+ pair("accept-charset", ""),+ pair("accept-encoding", "gzip, deflate"),+ pair("accept-language", ""),+ pair("accept-ranges", ""),+ pair("accept", ""),+ pair("access-control-allow-origin", ""),+ pair("age", ""),+ pair("allow", ""),+ pair("authorization", ""),+ pair("cache-control", ""),+ pair("content-disposition", ""),+ pair("content-encoding", ""),+ pair("content-language", ""),+ pair("content-length", ""),+ pair("content-location", ""),+ pair("content-range", ""),+ pair("content-type", ""),+ pair("cookie", ""),+ pair("date", ""),+ pair("etag", ""),+ pair("expect", ""),+ pair("expires", ""),+ pair("from", ""),+ pair("host", ""),+ pair("if-match", ""),+ pair("if-modified-since", ""),+ pair("if-none-match", ""),+ pair("if-range", ""),+ pair("if-unmodified-since", ""),+ pair("last-modified", ""),+ pair("link", ""),+ pair("location", ""),+ pair("max-forwards", ""),+ pair("proxy-authenticate", ""),+ pair("proxy-authorization", ""),+ pair("range", ""),+ pair("referer", ""),+ pair("refresh", ""),+ pair("retry-after", ""),+ pair("server", ""),+ pair("set-cookie", ""),+ pair("strict-transport-security", ""),+ pair("transfer-encoding", ""),+ pair("user-agent", ""),+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0x7ffffe1,+ 0x3ffffe7,+ 0x7ffffe2,+ 0xfffff2,+ 0x1fffe4,+ 0x1fffe5,+ 0x3ffffe8,+ 0x3ffffe9,+ 0xffffffd,+ 0x7ffffe3,+ 0x7ffffe4,+ 0x7ffffe5,+ 0xfffec,+ 0xfffff3,+ 0xfffed,+ 0x1fffe6,+ 0x3fffe9,+ 0x1fffe7,+ 0x1fffe8,+ 0x7ffff3,+ 0x3fffea,+ 0x3fffeb,+ 0x1ffffee,+ 0x1ffffef,+ 0xfffff4,+ 0xfffff5,+ 0x3ffffea,+ 0x7ffff4,+ 0x3ffffeb,+ 0x7ffffe6,+ 0x3ffffec,+ 0x3ffffed,+ 0x7ffffe7,+ 0x7ffffe8,+ 0x7ffffe9,+ 0x7ffffea,+ 0x7ffffeb,+ 0xffffffe,+ 0x7ffffec,+ 0x7ffffed,+ 0x7ffffee,+ 0x7ffffef,+ 0x7fffff0,+ 0x3ffffee,+}++var huffmanCodeLen = [256]uint8{+ 13, 23, 28, 28, 28, 28, 28, 28, 28, 24, 30, 28, 28, 30, 28, 28,+ 28, 28, 28, 28, 28, 28, 30, 28, 28, 28, 28, 28, 28, 28, 28, 28,+ 6, 10, 10, 12, 13, 6, 8, 11, 10, 10, 8, 11, 8, 6, 6, 6,+ 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 8, 15, 6, 12, 10,+ 13, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,+ 7, 7, 7, 7, 7, 7, 7, 7, 8, 7, 8, 13, 19, 13, 14, 6,+ 15, 5, 6, 5, 6, 5, 6, 6, 6, 5, 7, 7, 6, 6, 6, 5,+ 6, 7, 6, 5, 5, 6, 7, 7, 7, 7, 7, 15, 11, 14, 13, 28,+ 20, 22, 20, 20, 22, 22, 22, 23, 22, 23, 23, 23, 23, 23, 24, 23,+ 24, 24, 22, 23, 24, 23, 23, 23, 23, 21, 22, 23, 22, 23, 23, 24,+ 22, 21, 20, 22, 22, 23, 23, 21, 23, 22, 22, 24, 21, 22, 23, 23,+ 21, 21, 22, 21, 23, 22, 23, 23, 20, 22, 22, 22, 23, 22, 22, 23,+ 26, 26, 20, 19, 22, 23, 22, 25, 26, 26, 26, 27, 27, 26, 24, 25,+ 19, 21, 26, 27, 27, 26, 27, 24, 21, 21, 26, 26, 28, 27, 27, 27,+ 20, 24, 20, 21, 22, 21, 21, 23, 22, 22, 25, 25, 24, 24, 26, 23,+ 26, 27, 26, 26, 27, 27, 27, 27, 27, 28, 27, 27, 27, 27, 27, 26,+}diff --git a/vendor/golang.org/x/net/http2/http2.go b/vendor/golang.org/x/net/http2/http2.gonew file mode 100644index 000000000..a91fed570--- /dev/null+++ b/vendor/golang.org/x/net/http2/http2.go@@ -0,0 +1,387 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++// Package http2 implements the HTTP/2 protocol.+//+// This package is low-level and intended to be used directly by very+// few people. Most users will use it indirectly through the automatic+// use by the net/http package (from Go 1.6 and later).+// For use in earlier Go versions see ConfigureServer. (Transport support+// requires Go 1.6 or later)+//+// See https://http2.github.io/ for more information on HTTP/2.+//+// See https://http2.golang.org/ for a test server running this code.+//+package http2++import (+ "bufio"+ "crypto/tls"+ "errors"+ "fmt"+ "io"+ "net/http"+ "os"+ "sort"+ "strconv"+ "strings"+ "sync"++ "golang.org/x/net/lex/httplex"+)++var (+ VerboseLogs bool+ logFrameWrites bool+ logFrameReads bool+ inTests bool+)++func init() {+ e := os.Getenv("GODEBUG")+ if strings.Contains(e, "http2debug=1") {+ VerboseLogs = true+ }+ if strings.Contains(e, "http2debug=2") {+ VerboseLogs = true+ logFrameWrites = true+ logFrameReads = true+ }+}++const (+ // ClientPreface is the string that must be sent by new+ // connections from clients.+ ClientPreface = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"++ // SETTINGS_MAX_FRAME_SIZE default+ // http://http2.github.io/http2-spec/#rfc.section.6.5.2+ initialMaxFrameSize = 16384++ // NextProtoTLS is the NPN/ALPN protocol negotiated during+ // HTTP/2's TLS setup.+ NextProtoTLS = "h2"++ // http://http2.github.io/http2-spec/#SettingValues+ initialHeaderTableSize = 4096++ initialWindowSize = 65535 // 6.9.2 Initial Flow Control Window Size++ defaultMaxReadFrameSize = 1 << 20+)++var (+ clientPreface = []byte(ClientPreface)+)++type streamState int++// HTTP/2 stream states.+//+// See http://tools.ietf.org/html/rfc7540#section-5.1.+//+// For simplicity, the server code merges "reserved (local)" into+// "half-closed (remote)". This is one less state transition to track.+// The only downside is that we send PUSH_PROMISEs slightly less+// liberally than allowable. More discussion here:+// https://lists.w3.org/Archives/Public/ietf-http-wg/2016JulSep/0599.html+//+// "reserved (remote)" is omitted since the client code does not+// support server push.+const (+ stateIdle streamState = iota+ stateOpen+ stateHalfClosedLocal+ stateHalfClosedRemote+ stateClosed+)++var stateName = [...]string{+ stateIdle: "Idle",+ stateOpen: "Open",+ stateHalfClosedLocal: "HalfClosedLocal",+ stateHalfClosedRemote: "HalfClosedRemote",+ stateClosed: "Closed",+}++func (st streamState) String() string {+ return stateName[st]+}++// Setting is a setting parameter: which setting it is, and its value.+type Setting struct {+ // ID is which setting is being set.+ // See http://http2.github.io/http2-spec/#SettingValues+ ID SettingID++ // Val is the value.+ Val uint32+}++func (s Setting) String() string {+ return fmt.Sprintf("[%v = %d]", s.ID, s.Val)+}++// Valid reports whether the setting is valid.+func (s Setting) Valid() error {+ // Limits and error codes from 6.5.2 Defined SETTINGS Parameters+ switch s.ID {+ case SettingEnablePush:+ if s.Val != 1 && s.Val != 0 {+ return ConnectionError(ErrCodeProtocol)+ }+ case SettingInitialWindowSize:+ if s.Val > 1<<31-1 {+ return ConnectionError(ErrCodeFlowControl)+ }+ case SettingMaxFrameSize:+ if s.Val < 16384 || s.Val > 1<<24-1 {+ return ConnectionError(ErrCodeProtocol)+ }+ }+ return nil+}++// A SettingID is an HTTP/2 setting as defined in+// http://http2.github.io/http2-spec/#iana-settings+type SettingID uint16++const (+ SettingHeaderTableSize SettingID = 0x1+ SettingEnablePush SettingID = 0x2+ SettingMaxConcurrentStreams SettingID = 0x3+ SettingInitialWindowSize SettingID = 0x4+ SettingMaxFrameSize SettingID = 0x5+ SettingMaxHeaderListSize SettingID = 0x6+)++var settingName = map[SettingID]string{+ SettingHeaderTableSize: "HEADER_TABLE_SIZE",+ SettingEnablePush: "ENABLE_PUSH",+ SettingMaxConcurrentStreams: "MAX_CONCURRENT_STREAMS",+ SettingInitialWindowSize: "INITIAL_WINDOW_SIZE",+ SettingMaxFrameSize: "MAX_FRAME_SIZE",+ SettingMaxHeaderListSize: "MAX_HEADER_LIST_SIZE",+}++func (s SettingID) String() string {+ if v, ok := settingName[s]; ok {+ return v+ }+ return fmt.Sprintf("UNKNOWN_SETTING_%d", uint16(s))+}++var (+ errInvalidHeaderFieldName = errors.New("http2: invalid header field name")+ errInvalidHeaderFieldValue = errors.New("http2: invalid header field value")+)++// validWireHeaderFieldName reports whether v is a valid header field+// name (key). See httplex.ValidHeaderName for the base rules.+//+// Further, http2 says:+// "Just as in HTTP/1.x, header field names are strings of ASCII+// characters that are compared in a case-insensitive+// fashion. However, header field names MUST be converted to+// lowercase prior to their encoding in HTTP/2. "+func validWireHeaderFieldName(v string) bool {+ if len(v) == 0 {+ return false+ }+ for _, r := range v {+ if !httplex.IsTokenRune(r) {+ return false+ }+ if 'A' <= r && r <= 'Z' {+ return false+ }+ }+ return true+}++var httpCodeStringCommon = map[int]string{} // n -> strconv.Itoa(n)++func init() {+ for i := 100; i <= 999; i++ {+ if v := http.StatusText(i); v != "" {+ httpCodeStringCommon[i] = strconv.Itoa(i)+ }+ }+}++func httpCodeString(code int) string {+ if s, ok := httpCodeStringCommon[code]; ok {+ return s+ }+ return strconv.Itoa(code)+}++// from pkg io+type stringWriter interface {+ WriteString(s string) (n int, err error)+}++// A gate lets two goroutines coordinate their activities.+type gate chan struct{}++func (g gate) Done() { g <- struct{}{} }+func (g gate) Wait() { <-g }++// A closeWaiter is like a sync.WaitGroup but only goes 1 to 0 (open to closed).+type closeWaiter chan struct{}++// Init makes a closeWaiter usable.+// It exists because so a closeWaiter value can be placed inside a+// larger struct and have the Mutex and Cond's memory in the same+// allocation.+func (cw *closeWaiter) Init() {+ *cw = make(chan struct{})+}++// Close marks the closeWaiter as closed and unblocks any waiters.+func (cw closeWaiter) Close() {+ close(cw)+}++// Wait waits for the closeWaiter to become closed.+func (cw closeWaiter) Wait() {+ <-cw+}++// bufferedWriter is a buffered writer that writes to w.+// Its buffered writer is lazily allocated as needed, to minimize+// idle memory usage with many connections.+type bufferedWriter struct {+ w io.Writer // immutable+ bw *bufio.Writer // non-nil when data is buffered+}++func newBufferedWriter(w io.Writer) *bufferedWriter {+ return &bufferedWriter{w: w}+}++// bufWriterPoolBufferSize is the size of bufio.Writer's+// buffers created using bufWriterPool.+//+// TODO: pick a less arbitrary value? this is a bit under+// (3 x typical 1500 byte MTU) at least. Other than that,+// not much thought went into it.+const bufWriterPoolBufferSize = 4 << 10++var bufWriterPool = sync.Pool{+ New: func() interface{} {+ return bufio.NewWriterSize(nil, bufWriterPoolBufferSize)+ },+}++func (w *bufferedWriter) Available() int {+ if w.bw == nil {+ return bufWriterPoolBufferSize+ }+ return w.bw.Available()+}++func (w *bufferedWriter) Write(p []byte) (n int, err error) {+ if w.bw == nil {+ bw := bufWriterPool.Get().(*bufio.Writer)+ bw.Reset(w.w)+ w.bw = bw+ }+ return w.bw.Write(p)+}++func (w *bufferedWriter) Flush() error {+ bw := w.bw+ if bw == nil {+ return nil+ }+ err := bw.Flush()+ bw.Reset(nil)+ bufWriterPool.Put(bw)+ w.bw = nil+ return err+}++func mustUint31(v int32) uint32 {+ if v < 0 || v > 2147483647 {+ panic("out of range")+ }+ return uint32(v)+}++// bodyAllowedForStatus reports whether a given response status code+// permits a body. See RFC 2616, section 4.4.+func bodyAllowedForStatus(status int) bool {+ switch {+ case status >= 100 && status <= 199:+ return false+ case status == 204:+ return false+ case status == 304:+ return false+ }+ return true+}++type httpError struct {+ msg string+ timeout bool+}++func (e *httpError) Error() string { return e.msg }+func (e *httpError) Timeout() bool { return e.timeout }+func (e *httpError) Temporary() bool { return true }++var errTimeout error = &httpError{msg: "http2: timeout awaiting response headers", timeout: true}++type connectionStater interface {+ ConnectionState() tls.ConnectionState+}++var sorterPool = sync.Pool{New: func() interface{} { return new(sorter) }}++type sorter struct {+ v []string // owned by sorter+}++func (s *sorter) Len() int { return len(s.v) }+func (s *sorter) Swap(i, j int) { s.v[i], s.v[j] = s.v[j], s.v[i] }+func (s *sorter) Less(i, j int) bool { return s.v[i] < s.v[j] }++// Keys returns the sorted keys of h.+//+// The returned slice is only valid until s used again or returned to+// its pool.+func (s *sorter) Keys(h http.Header) []string {+ keys := s.v[:0]+ for k := range h {+ keys = append(keys, k)+ }+ s.v = keys+ sort.Sort(s)+ return keys+}++func (s *sorter) SortStrings(ss []string) {+ // Our sorter works on s.v, which sorter owns, so+ // stash it away while we sort the user's buffer.+ save := s.v+ s.v = ss+ sort.Sort(s)+ s.v = save+}++// validPseudoPath reports whether v is a valid :path pseudo-header+// value. It must be either:+//+// *) a non-empty string starting with '/', but not with with "//",+// *) the string '*', for OPTIONS requests.+//+// For now this is only used a quick check for deciding when to clean+// up Opaque URLs before sending requests from the Transport.+// See golang.org/issue/16847+func validPseudoPath(v string) bool {+ return (len(v) > 0 && v[0] == '/' && (len(v) == 1 || v[1] != '/')) || v == "*"+}diff --git a/vendor/golang.org/x/net/http2/not_go16.go b/vendor/golang.org/x/net/http2/not_go16.gonew file mode 100644index 000000000..efd2e1282--- /dev/null+++ b/vendor/golang.org/x/net/http2/not_go16.go@@ -0,0 +1,46 @@+// Copyright 2015 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.++// +build !go1.6++package http2++import (+ "crypto/tls"+ "net/http"+ "time"+)++func configureTransport(t1 *http.Transport) (*Transport, error) {+ return nil, errTransportVersion+}++func transportExpectContinueTimeout(t1 *http.Transport) time.Duration {+ return 0++}++// isBadCipher reports whether the cipher is blacklisted by the HTTP/2 spec.+func isBadCipher(cipher uint16) bool {+ switch cipher {+ case tls.TLS_RSA_WITH_RC4_128_SHA,+ tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA,+ tls.TLS_RSA_WITH_AES_128_CBC_SHA,+ tls.TLS_RSA_WITH_AES_256_CBC_SHA,+ tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,+ tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,+ tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,+ tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA,+ tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,+ tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,+ tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA:+ // Reject cipher suites from Appendix A.+ // "This list includes those cipher suites that do not+ // offer an ephemeral key exchange and those that are+ // based on the TLS null, stream or block cipher type"+ return true+ default:+ return false+ }+}diff --git a/vendor/golang.org/x/net/http2/not_go17.go b/vendor/golang.org/x/net/http2/not_go17.gonew file mode 100644index 000000000..140434a79--- /dev/null+++ b/vendor/golang.org/x/net/http2/not_go17.go@@ -0,0 +1,87 @@+// Copyright 2016 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.++// +build !go1.7++package http2++import (+ "crypto/tls"+ "net"+ "net/http"+ "time"+)++type contextContext interface {+ Done() <-chan struct{}+ Err() error+}++type fakeContext struct{}++func (fakeContext) Done() <-chan struct{} { return nil }+func (fakeContext) Err() error { panic("should not be called") }++func reqContext(r *http.Request) fakeContext {+ return fakeContext{}+}++func setResponseUncompressed(res *http.Response) {+ // Nothing.+}++type clientTrace struct{}++func requestTrace(*http.Request) *clientTrace { return nil }+func traceGotConn(*http.Request, *ClientConn) {}+func traceFirstResponseByte(*clientTrace) {}+func traceWroteHeaders(*clientTrace) {}+func traceWroteRequest(*clientTrace, error) {}+func traceGot100Continue(trace *clientTrace) {}+func traceWait100Continue(trace *clientTrace) {}++func nop() {}++func serverConnBaseContext(c net.Conn, opts *ServeConnOpts) (ctx contextContext, cancel func()) {+ return nil, nop+}++func contextWithCancel(ctx contextContext) (_ contextContext, cancel func()) {+ return ctx, nop+}++func requestWithContext(req *http.Request, ctx contextContext) *http.Request {+ return req+}++// temporary copy of Go 1.6's private tls.Config.clone:+func cloneTLSConfig(c *tls.Config) *tls.Config {+ return &tls.Config{+ Rand: c.Rand,+ Time: c.Time,+ Certificates: c.Certificates,+ NameToCertificate: c.NameToCertificate,+ GetCertificate: c.GetCertificate,+ RootCAs: c.RootCAs,+ NextProtos: c.NextProtos,+ ServerName: c.ServerName,+ ClientAuth: c.ClientAuth,+ ClientCAs: c.ClientCAs,+ InsecureSkipVerify: c.InsecureSkipVerify,+ CipherSuites: c.CipherSuites,+ PreferServerCipherSuites: c.PreferServerCipherSuites,+ SessionTicketsDisabled: c.SessionTicketsDisabled,+ SessionTicketKey: c.SessionTicketKey,+ ClientSessionCache: c.ClientSessionCache,+ MinVersion: c.MinVersion,+ MaxVersion: c.MaxVersion,+ CurvePreferences: c.CurvePreferences,+ }+}++func (cc *ClientConn) Ping(ctx contextContext) error {+ return cc.ping(ctx)+}++func (t *Transport) idleConnTimeout() time.Duration { return 0 }diff --git a/vendor/golang.org/x/net/http2/not_go18.go b/vendor/golang.org/x/net/http2/not_go18.gonew file mode 100644index 000000000..2e600dc35--- /dev/null+++ b/vendor/golang.org/x/net/http2/not_go18.go@@ -0,0 +1,18 @@+// Copyright 2016 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.++// +build !go1.8++package http2++import "net/http"++func configureServer18(h1 *http.Server, h2 *Server) error {+ // No IdleTimeout to sync prior to Go 1.8.+ return nil+}++func shouldLogPanic(panicValue interface{}) bool {+ return panicValue != nil+}diff --git a/vendor/golang.org/x/net/http2/pipe.go b/vendor/golang.org/x/net/http2/pipe.gonew file mode 100644index 000000000..53b7a1daf--- /dev/null+++ b/vendor/golang.org/x/net/http2/pipe.go@@ -0,0 +1,153 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package http2++import (+ "errors"+ "io"+ "sync"+)++// pipe is a goroutine-safe io.Reader/io.Writer pair. It's like+// io.Pipe except there are no PipeReader/PipeWriter halves, and the+// underlying buffer is an interface. (io.Pipe is always unbuffered)+type pipe struct {+ mu sync.Mutex+ c sync.Cond // c.L lazily initialized to &p.mu+ b pipeBuffer+ err error // read error once empty. non-nil means closed.+ breakErr error // immediate read error (caller doesn't see rest of b)+ donec chan struct{} // closed on error+ readFn func() // optional code to run in Read before error+}++type pipeBuffer interface {+ Len() int+ io.Writer+ io.Reader+}++func (p *pipe) Len() int {+ p.mu.Lock()+ defer p.mu.Unlock()+ return p.b.Len()+}++// Read waits until data is available and copies bytes+// from the buffer into p.+func (p *pipe) Read(d []byte) (n int, err error) {+ p.mu.Lock()+ defer p.mu.Unlock()+ if p.c.L == nil {+ p.c.L = &p.mu+ }+ for {+ if p.breakErr != nil {+ return 0, p.breakErr+ }+ if p.b.Len() > 0 {+ return p.b.Read(d)+ }+ if p.err != nil {+ if p.readFn != nil {+ p.readFn() // e.g. copy trailers+ p.readFn = nil // not sticky like p.err+ }+ return 0, p.err+ }+ p.c.Wait()+ }+}++var errClosedPipeWrite = errors.New("write on closed buffer")++// Write copies bytes from p into the buffer and wakes a reader.+// It is an error to write more data than the buffer can hold.+func (p *pipe) Write(d []byte) (n int, err error) {+ p.mu.Lock()+ defer p.mu.Unlock()+ if p.c.L == nil {+ p.c.L = &p.mu+ }+ defer p.c.Signal()+ if p.err != nil {+ return 0, errClosedPipeWrite+ }+ return p.b.Write(d)+}++// CloseWithError causes the next Read (waking up a current blocked+// Read if needed) to return the provided err after all data has been+// read.+//+// The error must be non-nil.+func (p *pipe) CloseWithError(err error) { p.closeWithError(&p.err, err, nil) }++// BreakWithError causes the next Read (waking up a current blocked+// Read if needed) to return the provided err immediately, without+// waiting for unread data.+func (p *pipe) BreakWithError(err error) { p.closeWithError(&p.breakErr, err, nil) }++// closeWithErrorAndCode is like CloseWithError but also sets some code to run+// in the caller's goroutine before returning the error.+func (p *pipe) closeWithErrorAndCode(err error, fn func()) { p.closeWithError(&p.err, err, fn) }++func (p *pipe) closeWithError(dst *error, err error, fn func()) {+ if err == nil {+ panic("err must be non-nil")+ }+ p.mu.Lock()+ defer p.mu.Unlock()+ if p.c.L == nil {+ p.c.L = &p.mu+ }+ defer p.c.Signal()+ if *dst != nil {+ // Already been done.+ return+ }+ p.readFn = fn+ *dst = err+ p.closeDoneLocked()+}++// requires p.mu be held.+func (p *pipe) closeDoneLocked() {+ if p.donec == nil {+ return+ }+ // Close if unclosed. This isn't racy since we always+ // hold p.mu while closing.+ select {+ case <-p.donec:+ default:+ close(p.donec)+ }+}++// Err returns the error (if any) first set by BreakWithError or CloseWithError.+func (p *pipe) Err() error {+ p.mu.Lock()+ defer p.mu.Unlock()+ if p.breakErr != nil {+ return p.breakErr+ }+ return p.err+}++// Done returns a channel which is closed if and when this pipe is closed+// with CloseWithError.+func (p *pipe) Done() <-chan struct{} {+ p.mu.Lock()+ defer p.mu.Unlock()+ if p.donec == nil {+ p.donec = make(chan struct{})+ if p.err != nil || p.breakErr != nil {+ // Already hit an error.+ p.closeDoneLocked()+ }+ }+ return p.donec+}diff --git a/vendor/golang.org/x/net/http2/server.go b/vendor/golang.org/x/net/http2/server.gonew file mode 100644index 000000000..0b6b4b08d--- /dev/null+++ b/vendor/golang.org/x/net/http2/server.go@@ -0,0 +1,2704 @@+// Copyright 2014 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.++// TODO: turn off the serve goroutine when idle, so+// an idle conn only has the readFrames goroutine active. (which could+// also be optimized probably to pin less memory in crypto/tls). This+// would involve tracking when the serve goroutine is active (atomic+// int32 read/CAS probably?) and starting it up when frames arrive,+// and shutting it down when all handlers exit. the occasional PING+// packets could use time.AfterFunc to call sc.wakeStartServeLoop()+// (which is a no-op if already running) and then queue the PING write+// as normal. The serve loop would then exit in most cases (if no+// Handlers running) and not be woken up again until the PING packet+// returns.++// TODO (maybe): add a mechanism for Handlers to going into+// half-closed-local mode (rw.(io.Closer) test?) but not exit their+// handler, and continue to be able to read from the+// Request.Body. This would be a somewhat semantic change from HTTP/1+// (or at least what we expose in net/http), so I'd probably want to+// add it there too. For now, this package says that returning from+// the Handler ServeHTTP function means you're both done reading and+// done writing, without a way to stop just one or the other.++package http2++import (+ "bufio"+ "bytes"+ "crypto/tls"+ "errors"+ "fmt"+ "io"+ "log"+ "math"+ "net"+ "net/http"+ "net/textproto"+ "net/url"+ "os"+ "reflect"+ "runtime"+ "strconv"+ "strings"+ "sync"+ "time"++ "golang.org/x/net/http2/hpack"+)++const (+ prefaceTimeout = 10 * time.Second+ firstSettingsTimeout = 2 * time.Second // should be in-flight with preface anyway+ handlerChunkWriteSize = 4 << 10+ defaultMaxStreams = 250 // TODO: make this 100 as the GFE seems to?+)++var (+ errClientDisconnected = errors.New("client disconnected")+ errClosedBody = errors.New("body closed by handler")+ errHandlerComplete = errors.New("http2: request body closed due to handler exiting")+ errStreamClosed = errors.New("http2: stream closed")+)++var responseWriterStatePool = sync.Pool{+ New: func() interface{} {+ rws := &responseWriterState{}+ rws.bw = bufio.NewWriterSize(chunkWriter{rws}, handlerChunkWriteSize)+ return rws+ },+}++// Test hooks.+var (+ testHookOnConn func()+ testHookGetServerConn func(*serverConn)+ testHookOnPanicMu *sync.Mutex // nil except in tests+ testHookOnPanic func(sc *serverConn, panicVal interface{}) (rePanic bool)+)++// Server is an HTTP/2 server.+type Server struct {+ // MaxHandlers limits the number of http.Handler ServeHTTP goroutines+ // which may run at a time over all connections.+ // Negative or zero no limit.+ // TODO: implement+ MaxHandlers int++ // MaxConcurrentStreams optionally specifies the number of+ // concurrent streams that each client may have open at a+ // time. This is unrelated to the number of http.Handler goroutines+ // which may be active globally, which is MaxHandlers.+ // If zero, MaxConcurrentStreams defaults to at least 100, per+ // the HTTP/2 spec's recommendations.+ MaxConcurrentStreams uint32++ // MaxReadFrameSize optionally specifies the largest frame+ // this server is willing to read. A valid value is between+ // 16k and 16M, inclusive. If zero or otherwise invalid, a+ // default value is used.+ MaxReadFrameSize uint32++ // PermitProhibitedCipherSuites, if true, permits the use of+ // cipher suites prohibited by the HTTP/2 spec.+ PermitProhibitedCipherSuites bool++ // IdleTimeout specifies how long until idle clients should be+ // closed with a GOAWAY frame. PING frames are not considered+ // activity for the purposes of IdleTimeout.+ IdleTimeout time.Duration++ // NewWriteScheduler constructs a write scheduler for a connection.+ // If nil, a default scheduler is chosen.+ NewWriteScheduler func() WriteScheduler+}++func (s *Server) maxReadFrameSize() uint32 {+ if v := s.MaxReadFrameSize; v >= minMaxFrameSize && v <= maxFrameSize {+ return v+ }+ return defaultMaxReadFrameSize+}++func (s *Server) maxConcurrentStreams() uint32 {+ if v := s.MaxConcurrentStreams; v > 0 {+ return v+ }+ return defaultMaxStreams+}++// ConfigureServer adds HTTP/2 support to a net/http Server.+//+// The configuration conf may be nil.+//+// ConfigureServer must be called before s begins serving.+func ConfigureServer(s *http.Server, conf *Server) error {+ if s == nil {+ panic("nil *http.Server")+ }+ if conf == nil {+ conf = new(Server)+ }+ if err := configureServer18(s, conf); err != nil {+ return err+ }++ if s.TLSConfig == nil {+ s.TLSConfig = new(tls.Config)+ } else if s.TLSConfig.CipherSuites != nil {+ // If they already provided a CipherSuite list, return+ // an error if it has a bad order or is missing+ // ECDHE_RSA_WITH_AES_128_GCM_SHA256.+ const requiredCipher = tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256+ haveRequired := false+ sawBad := false+ for i, cs := range s.TLSConfig.CipherSuites {+ if cs == requiredCipher {+ haveRequired = true+ }+ if isBadCipher(cs) {+ sawBad = true+ } else if sawBad {+ return fmt.Errorf("http2: TLSConfig.CipherSuites index %d contains an HTTP/2-approved cipher suite (%#04x), but it comes after unapproved cipher suites. With this configuration, clients that don't support previous, approved cipher suites may be given an unapproved one and reject the connection.", i, cs)+ }+ }+ if !haveRequired {+ return fmt.Errorf("http2: TLSConfig.CipherSuites is missing HTTP/2-required TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256")+ }+ }++ // Note: not setting MinVersion to tls.VersionTLS12,+ // as we don't want to interfere with HTTP/1.1 traffic+ // on the user's server. We enforce TLS 1.2 later once+ // we accept a connection. Ideally this should be done+ // during next-proto selection, but using TLS <1.2 with+ // HTTP/2 is still the client's bug.++ s.TLSConfig.PreferServerCipherSuites = true++ haveNPN := false+ for _, p := range s.TLSConfig.NextProtos {+ if p == NextProtoTLS {+ haveNPN = true+ break+ }+ }+ if !haveNPN {+ s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, NextProtoTLS)+ }++ if s.TLSNextProto == nil {+ s.TLSNextProto = map[string]func(*http.Server, *tls.Conn, http.Handler){}+ }+ protoHandler := func(hs *http.Server, c *tls.Conn, h http.Handler) {+ if testHookOnConn != nil {+ testHookOnConn()+ }+ conf.ServeConn(c, &ServeConnOpts{+ Handler: h,+ BaseConfig: hs,+ })+ }+ s.TLSNextProto[NextProtoTLS] = protoHandler+ return nil+}++// ServeConnOpts are options for the Server.ServeConn method.+type ServeConnOpts struct {+ // BaseConfig optionally sets the base configuration+ // for values. If nil, defaults are used.+ BaseConfig *http.Server++ // Handler specifies which handler to use for processing+ // requests. If nil, BaseConfig.Handler is used. If BaseConfig+ // or BaseConfig.Handler is nil, http.DefaultServeMux is used.+ Handler http.Handler+}++func (o *ServeConnOpts) baseConfig() *http.Server {+ if o != nil && o.BaseConfig != nil {+ return o.BaseConfig+ }+ return new(http.Server)+}++func (o *ServeConnOpts) handler() http.Handler {+ if o != nil {+ if o.Handler != nil {+ return o.Handler+ }+ if o.BaseConfig != nil && o.BaseConfig.Handler != nil {+ return o.BaseConfig.Handler+ }+ }+ return http.DefaultServeMux+}++// ServeConn serves HTTP/2 requests on the provided connection and+// blocks until the connection is no longer readable.+//+// ServeConn starts speaking HTTP/2 assuming that c has not had any+// reads or writes. It writes its initial settings frame and expects+// to be able to read the preface and settings frame from the+// client. If c has a ConnectionState method like a *tls.Conn, the+// ConnectionState is used to verify the TLS ciphersuite and to set+// the Request.TLS field in Handlers.+//+// ServeConn does not support h2c by itself. Any h2c support must be+// implemented in terms of providing a suitably-behaving net.Conn.+//+// The opts parameter is optional. If nil, default values are used.+func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) {+ baseCtx, cancel := serverConnBaseContext(c, opts)+ defer cancel()++ sc := &serverConn{+ srv: s,+ hs: opts.baseConfig(),+ conn: c,+ baseCtx: baseCtx,+ remoteAddrStr: c.RemoteAddr().String(),+ bw: newBufferedWriter(c),+ handler: opts.handler(),+ streams: make(map[uint32]*stream),+ readFrameCh: make(chan readFrameResult),+ wantWriteFrameCh: make(chan FrameWriteRequest, 8),+ wantStartPushCh: make(chan startPushRequest, 8),+ wroteFrameCh: make(chan frameWriteResult, 1), // buffered; one send in writeFrameAsync+ bodyReadCh: make(chan bodyReadMsg), // buffering doesn't matter either way+ doneServing: make(chan struct{}),+ clientMaxStreams: math.MaxUint32, // Section 6.5.2: "Initially, there is no limit to this value"+ advMaxStreams: s.maxConcurrentStreams(),+ initialWindowSize: initialWindowSize,+ maxFrameSize: initialMaxFrameSize,+ headerTableSize: initialHeaderTableSize,+ serveG: newGoroutineLock(),+ pushEnabled: true,+ }++ if s.NewWriteScheduler != nil {+ sc.writeSched = s.NewWriteScheduler()+ } else {+ sc.writeSched = NewRandomWriteScheduler()+ }++ sc.flow.add(initialWindowSize)+ sc.inflow.add(initialWindowSize)+ sc.hpackEncoder = hpack.NewEncoder(&sc.headerWriteBuf)++ fr := NewFramer(sc.bw, c)+ fr.ReadMetaHeaders = hpack.NewDecoder(initialHeaderTableSize, nil)+ fr.MaxHeaderListSize = sc.maxHeaderListSize()+ fr.SetMaxReadFrameSize(s.maxReadFrameSize())+ sc.framer = fr++ if tc, ok := c.(connectionStater); ok {+ sc.tlsState = new(tls.ConnectionState)+ *sc.tlsState = tc.ConnectionState()+ // 9.2 Use of TLS Features+ // An implementation of HTTP/2 over TLS MUST use TLS+ // 1.2 or higher with the restrictions on feature set+ // and cipher suite described in this section. Due to+ // implementation limitations, it might not be+ // possible to fail TLS negotiation. An endpoint MUST+ // immediately terminate an HTTP/2 connection that+ // does not meet the TLS requirements described in+ // this section with a connection error (Section+ // 5.4.1) of type INADEQUATE_SECURITY.+ if sc.tlsState.Version < tls.VersionTLS12 {+ sc.rejectConn(ErrCodeInadequateSecurity, "TLS version too low")+ return+ }++ if sc.tlsState.ServerName == "" {+ // Client must use SNI, but we don't enforce that anymore,+ // since it was causing problems when connecting to bare IP+ // addresses during development.+ //+ // TODO: optionally enforce? Or enforce at the time we receive+ // a new request, and verify the the ServerName matches the :authority?+ // But that precludes proxy situations, perhaps.+ //+ // So for now, do nothing here again.+ }++ if !s.PermitProhibitedCipherSuites && isBadCipher(sc.tlsState.CipherSuite) {+ // "Endpoints MAY choose to generate a connection error+ // (Section 5.4.1) of type INADEQUATE_SECURITY if one of+ // the prohibited cipher suites are negotiated."+ //+ // We choose that. In my opinion, the spec is weak+ // here. It also says both parties must support at least+ // TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 so there's no+ // excuses here. If we really must, we could allow an+ // "AllowInsecureWeakCiphers" option on the server later.+ // Let's see how it plays out first.+ sc.rejectConn(ErrCodeInadequateSecurity, fmt.Sprintf("Prohibited TLS 1.2 Cipher Suite: %x", sc.tlsState.CipherSuite))+ return+ }+ }++ if hook := testHookGetServerConn; hook != nil {+ hook(sc)+ }+ sc.serve()+}++func (sc *serverConn) rejectConn(err ErrCode, debug string) {+ sc.vlogf("http2: server rejecting conn: %v, %s", err, debug)+ // ignoring errors. hanging up anyway.+ sc.framer.WriteGoAway(0, err, []byte(debug))+ sc.bw.Flush()+ sc.conn.Close()+}++type serverConn struct {+ // Immutable:+ srv *Server+ hs *http.Server+ conn net.Conn+ bw *bufferedWriter // writing to conn+ handler http.Handler+ baseCtx contextContext+ framer *Framer+ doneServing chan struct{} // closed when serverConn.serve ends+ readFrameCh chan readFrameResult // written by serverConn.readFrames+ wantWriteFrameCh chan FrameWriteRequest // from handlers -> serve+ wantStartPushCh chan startPushRequest // from handlers -> serve+ wroteFrameCh chan frameWriteResult // from writeFrameAsync -> serve, tickles more frame writes+ bodyReadCh chan bodyReadMsg // from handlers -> serve+ testHookCh chan func(int) // code to run on the serve loop+ flow flow // conn-wide (not stream-specific) outbound flow control+ inflow flow // conn-wide inbound flow control+ tlsState *tls.ConnectionState // shared by all handlers, like net/http+ remoteAddrStr string+ writeSched WriteScheduler++ // Everything following is owned by the serve loop; use serveG.check():+ serveG goroutineLock // used to verify funcs are on serve()+ pushEnabled bool+ sawFirstSettings bool // got the initial SETTINGS frame after the preface+ needToSendSettingsAck bool+ unackedSettings int // how many SETTINGS have we sent without ACKs?+ clientMaxStreams uint32 // SETTINGS_MAX_CONCURRENT_STREAMS from client (our PUSH_PROMISE limit)+ advMaxStreams uint32 // our SETTINGS_MAX_CONCURRENT_STREAMS advertised the client+ curClientStreams uint32 // number of open streams initiated by the client+ curPushedStreams uint32 // number of open streams initiated by server push+ maxClientStreamID uint32 // max ever seen from client (odd), or 0 if there have been no client requests+ maxPushPromiseID uint32 // ID of the last push promise (even), or 0 if there have been no pushes+ streams map[uint32]*stream+ initialWindowSize int32+ maxFrameSize int32+ headerTableSize uint32+ peerMaxHeaderListSize uint32 // zero means unknown (default)+ canonHeader map[string]string // http2-lower-case -> Go-Canonical-Case+ writingFrame bool // started writing a frame (on serve goroutine or separate)+ writingFrameAsync bool // started a frame on its own goroutine but haven't heard back on wroteFrameCh+ needsFrameFlush bool // last frame write wasn't a flush+ inGoAway bool // we've started to or sent GOAWAY+ inFrameScheduleLoop bool // whether we're in the scheduleFrameWrite loop+ needToSendGoAway bool // we need to schedule a GOAWAY frame write+ goAwayCode ErrCode+ shutdownTimerCh <-chan time.Time // nil until used+ shutdownTimer *time.Timer // nil until used+ idleTimer *time.Timer // nil if unused+ idleTimerCh <-chan time.Time // nil if unused++ // Owned by the writeFrameAsync goroutine:+ headerWriteBuf bytes.Buffer+ hpackEncoder *hpack.Encoder+}++func (sc *serverConn) maxHeaderListSize() uint32 {+ n := sc.hs.MaxHeaderBytes+ if n <= 0 {+ n = http.DefaultMaxHeaderBytes+ }+ // http2's count is in a slightly different unit and includes 32 bytes per pair.+ // So, take the net/http.Server value and pad it up a bit, assuming 10 headers.+ const perFieldOverhead = 32 // per http2 spec+ const typicalHeaders = 10 // conservative+ return uint32(n + typicalHeaders*perFieldOverhead)+}++// stream represents a stream. This is the minimal metadata needed by+// the serve goroutine. Most of the actual stream state is owned by+// the http.Handler's goroutine in the responseWriter. Because the+// responseWriter's responseWriterState is recycled at the end of a+// handler, this struct intentionally has no pointer to the+// *responseWriter{,State} itself, as the Handler ending nils out the+// responseWriter's state field.+type stream struct {+ // immutable:+ sc *serverConn+ id uint32+ body *pipe // non-nil if expecting DATA frames+ cw closeWaiter // closed wait stream transitions to closed state+ ctx contextContext+ cancelCtx func()++ // owned by serverConn's serve loop:+ bodyBytes int64 // body bytes seen so far+ declBodyBytes int64 // or -1 if undeclared+ flow flow // limits writing from Handler to client+ inflow flow // what the client is allowed to POST/etc to us+ parent *stream // or nil+ numTrailerValues int64+ weight uint8+ state streamState+ sentReset bool // only true once detached from streams map+ gotReset bool // only true once detacted from streams map+ gotTrailerHeader bool // HEADER frame for trailers was seen+ wroteHeaders bool // whether we wrote headers (not status 100)+ reqBuf []byte // if non-nil, body pipe buffer to return later at EOF++ trailer http.Header // accumulated trailers+ reqTrailer http.Header // handler's Request.Trailer+}++func (sc *serverConn) Framer() *Framer { return sc.framer }+func (sc *serverConn) CloseConn() error { return sc.conn.Close() }+func (sc *serverConn) Flush() error { return sc.bw.Flush() }+func (sc *serverConn) HeaderEncoder() (*hpack.Encoder, *bytes.Buffer) {+ return sc.hpackEncoder, &sc.headerWriteBuf+}++func (sc *serverConn) state(streamID uint32) (streamState, *stream) {+ sc.serveG.check()+ // http://tools.ietf.org/html/rfc7540#section-5.1+ if st, ok := sc.streams[streamID]; ok {+ return st.state, st+ }+ // "The first use of a new stream identifier implicitly closes all+ // streams in the "idle" state that might have been initiated by+ // that peer with a lower-valued stream identifier. For example, if+ // a client sends a HEADERS frame on stream 7 without ever sending a+ // frame on stream 5, then stream 5 transitions to the "closed"+ // state when the first frame for stream 7 is sent or received."+ if streamID%2 == 1 {+ if streamID <= sc.maxClientStreamID {+ return stateClosed, nil+ }+ } else {+ if streamID <= sc.maxPushPromiseID {+ return stateClosed, nil+ }+ }+ return stateIdle, nil+}++// setConnState calls the net/http ConnState hook for this connection, if configured.+// Note that the net/http package does StateNew and StateClosed for us.+// There is currently no plan for StateHijacked or hijacking HTTP/2 connections.+func (sc *serverConn) setConnState(state http.ConnState) {+ if sc.hs.ConnState != nil {+ sc.hs.ConnState(sc.conn, state)+ }+}++func (sc *serverConn) vlogf(format string, args ...interface{}) {+ if VerboseLogs {+ sc.logf(format, args...)+ }+}++func (sc *serverConn) logf(format string, args ...interface{}) {+ if lg := sc.hs.ErrorLog; lg != nil {+ lg.Printf(format, args...)+ } else {+ log.Printf(format, args...)+ }+}++// errno returns v's underlying uintptr, else 0.+//+// TODO: remove this helper function once http2 can use build+// tags. See comment in isClosedConnError.+func errno(v error) uintptr {+ if rv := reflect.ValueOf(v); rv.Kind() == reflect.Uintptr {+ return uintptr(rv.Uint())+ }+ return 0+}++// isClosedConnError reports whether err is an error from use of a closed+// network connection.+func isClosedConnError(err error) bool {+ if err == nil {+ return false+ }++ // TODO: remove this string search and be more like the Windows+ // case below. That might involve modifying the standard library+ // to return better error types.+ str := err.Error()+ if strings.Contains(str, "use of closed network connection") {+ return true+ }++ // TODO(bradfitz): x/tools/cmd/bundle doesn't really support+ // build tags, so I can't make an http2_windows.go file with+ // Windows-specific stuff. Fix that and move this, once we+ // have a way to bundle this into std's net/http somehow.+ if runtime.GOOS == "windows" {+ if oe, ok := err.(*net.OpError); ok && oe.Op == "read" {+ if se, ok := oe.Err.(*os.SyscallError); ok && se.Syscall == "wsarecv" {+ const WSAECONNABORTED = 10053+ const WSAECONNRESET = 10054+ if n := errno(se.Err); n == WSAECONNRESET || n == WSAECONNABORTED {+ return true+ }+ }+ }+ }+ return false+}++func (sc *serverConn) condlogf(err error, format string, args ...interface{}) {+ if err == nil {+ return+ }+ if err == io.EOF || err == io.ErrUnexpectedEOF || isClosedConnError(err) {+ // Boring, expected errors.+ sc.vlogf(format, args...)+ } else {+ sc.logf(format, args...)+ }+}++func (sc *serverConn) canonicalHeader(v string) string {+ sc.serveG.check()+ cv, ok := commonCanonHeader[v]+ if ok {+ return cv+ }+ cv, ok = sc.canonHeader[v]+ if ok {+ return cv+ }+ if sc.canonHeader == nil {+ sc.canonHeader = make(map[string]string)+ }+ cv = http.CanonicalHeaderKey(v)+ sc.canonHeader[v] = cv+ return cv+}++type readFrameResult struct {+ f Frame // valid until readMore is called+ err error++ // readMore should be called once the consumer no longer needs or+ // retains f. After readMore, f is invalid and more frames can be+ // read.+ readMore func()+}++// readFrames is the loop that reads incoming frames.+// It takes care to only read one frame at a time, blocking until the+// consumer is done with the frame.+// It's run on its own goroutine.+func (sc *serverConn) readFrames() {+ gate := make(gate)+ gateDone := gate.Done+ for {+ f, err := sc.framer.ReadFrame()+ select {+ case sc.readFrameCh <- readFrameResult{f, err, gateDone}:+ case <-sc.doneServing:+ return+ }+ select {+ case <-gate:+ case <-sc.doneServing:+ return+ }+ if terminalReadFrameError(err) {+ return+ }+ }+}++// frameWriteResult is the message passed from writeFrameAsync to the serve goroutine.+type frameWriteResult struct {+ wr FrameWriteRequest // what was written (or attempted)+ err error // result of the writeFrame call+}++// writeFrameAsync runs in its own goroutine and writes a single frame+// and then reports when it's done.+// At most one goroutine can be running writeFrameAsync at a time per+// serverConn.+func (sc *serverConn) writeFrameAsync(wr FrameWriteRequest) {+ err := wr.write.writeFrame(sc)+ sc.wroteFrameCh <- frameWriteResult{wr, err}+}++func (sc *serverConn) closeAllStreamsOnConnClose() {+ sc.serveG.check()+ for _, st := range sc.streams {+ sc.closeStream(st, errClientDisconnected)+ }+}++func (sc *serverConn) stopShutdownTimer() {+ sc.serveG.check()+ if t := sc.shutdownTimer; t != nil {+ t.Stop()+ }+}++func (sc *serverConn) notePanic() {+ // Note: this is for serverConn.serve panicking, not http.Handler code.+ if testHookOnPanicMu != nil {+ testHookOnPanicMu.Lock()+ defer testHookOnPanicMu.Unlock()+ }+ if testHookOnPanic != nil {+ if e := recover(); e != nil {+ if testHookOnPanic(sc, e) {+ panic(e)+ }+ }+ }+}++func (sc *serverConn) serve() {+ sc.serveG.check()+ defer sc.notePanic()+ defer sc.conn.Close()+ defer sc.closeAllStreamsOnConnClose()+ defer sc.stopShutdownTimer()+ defer close(sc.doneServing) // unblocks handlers trying to send++ if VerboseLogs {+ sc.vlogf("http2: server connection from %v on %p", sc.conn.RemoteAddr(), sc.hs)+ }++ sc.writeFrame(FrameWriteRequest{+ write: writeSettings{+ {SettingMaxFrameSize, sc.srv.maxReadFrameSize()},+ {SettingMaxConcurrentStreams, sc.advMaxStreams},+ {SettingMaxHeaderListSize, sc.maxHeaderListSize()},++ // TODO: more actual settings, notably+ // SettingInitialWindowSize, but then we also+ // want to bump up the conn window size the+ // same amount here right after the settings+ },+ })+ sc.unackedSettings++++ if err := sc.readPreface(); err != nil {+ sc.condlogf(err, "http2: server: error reading preface from client %v: %v", sc.conn.RemoteAddr(), err)+ return+ }+ // Now that we've got the preface, get us out of the+ // "StateNew" state. We can't go directly to idle, though.+ // Active means we read some data and anticipate a request. We'll+ // do another Active when we get a HEADERS frame.+ sc.setConnState(http.StateActive)+ sc.setConnState(http.StateIdle)++ if sc.srv.IdleTimeout != 0 {+ sc.idleTimer = time.NewTimer(sc.srv.IdleTimeout)+ defer sc.idleTimer.Stop()+ sc.idleTimerCh = sc.idleTimer.C+ }++ var gracefulShutdownCh <-chan struct{}+ if sc.hs != nil {+ gracefulShutdownCh = h1ServerShutdownChan(sc.hs)+ }++ go sc.readFrames() // closed by defer sc.conn.Close above++ settingsTimer := time.NewTimer(firstSettingsTimeout)+ loopNum := 0+ for {+ loopNum+++ select {+ case wr := <-sc.wantWriteFrameCh:+ sc.writeFrame(wr)+ case spr := <-sc.wantStartPushCh:+ sc.startPush(spr)+ case res := <-sc.wroteFrameCh:+ sc.wroteFrame(res)+ case res := <-sc.readFrameCh:+ if !sc.processFrameFromReader(res) {+ return+ }+ res.readMore()+ if settingsTimer.C != nil {+ settingsTimer.Stop()+ settingsTimer.C = nil+ }+ case m := <-sc.bodyReadCh:+ sc.noteBodyRead(m.st, m.n)+ case <-settingsTimer.C:+ sc.logf("timeout waiting for SETTINGS frames from %v", sc.conn.RemoteAddr())+ return+ case <-gracefulShutdownCh:+ gracefulShutdownCh = nil+ sc.startGracefulShutdown()+ case <-sc.shutdownTimerCh:+ sc.vlogf("GOAWAY close timer fired; closing conn from %v", sc.conn.RemoteAddr())+ return+ case <-sc.idleTimerCh:+ sc.vlogf("connection is idle")+ sc.goAway(ErrCodeNo)+ case fn := <-sc.testHookCh:+ fn(loopNum)+ }++ if sc.inGoAway && sc.curClientStreams == 0 && !sc.needToSendGoAway && !sc.writingFrame {+ return+ }+ }+}++// readPreface reads the ClientPreface greeting from the peer+// or returns an error on timeout or an invalid greeting.+func (sc *serverConn) readPreface() error {+ errc := make(chan error, 1)+ go func() {+ // Read the client preface+ buf := make([]byte, len(ClientPreface))+ if _, err := io.ReadFull(sc.conn, buf); err != nil {+ errc <- err+ } else if !bytes.Equal(buf, clientPreface) {+ errc <- fmt.Errorf("bogus greeting %q", buf)+ } else {+ errc <- nil+ }+ }()+ timer := time.NewTimer(prefaceTimeout) // TODO: configurable on *Server?+ defer timer.Stop()+ select {+ case <-timer.C:+ return errors.New("timeout waiting for client preface")+ case err := <-errc:+ if err == nil {+ if VerboseLogs {+ sc.vlogf("http2: server: client %v said hello", sc.conn.RemoteAddr())+ }+ }+ return err+ }+}++var errChanPool = sync.Pool{+ New: func() interface{} { return make(chan error, 1) },+}++var writeDataPool = sync.Pool{+ New: func() interface{} { return new(writeData) },+}++// writeDataFromHandler writes DATA response frames from a handler on+// the given stream.+func (sc *serverConn) writeDataFromHandler(stream *stream, data []byte, endStream bool) error {+ ch := errChanPool.Get().(chan error)+ writeArg := writeDataPool.Get().(*writeData)+ *writeArg = writeData{stream.id, data, endStream}+ err := sc.writeFrameFromHandler(FrameWriteRequest{+ write: writeArg,+ stream: stream,+ done: ch,+ })+ if err != nil {+ return err+ }+ var frameWriteDone bool // the frame write is done (successfully or not)+ select {+ case err = <-ch:+ frameWriteDone = true+ case <-sc.doneServing:+ return errClientDisconnected+ case <-stream.cw:+ // If both ch and stream.cw were ready (as might+ // happen on the final Write after an http.Handler+ // ends), prefer the write result. Otherwise this+ // might just be us successfully closing the stream.+ // The writeFrameAsync and serve goroutines guarantee+ // that the ch send will happen before the stream.cw+ // close.+ select {+ case err = <-ch:+ frameWriteDone = true+ default:+ return errStreamClosed+ }+ }+ errChanPool.Put(ch)+ if frameWriteDone {+ writeDataPool.Put(writeArg)+ }+ return err+}++// writeFrameFromHandler sends wr to sc.wantWriteFrameCh, but aborts+// if the connection has gone away.+//+// This must not be run from the serve goroutine itself, else it might+// deadlock writing to sc.wantWriteFrameCh (which is only mildly+// buffered and is read by serve itself). If you're on the serve+// goroutine, call writeFrame instead.+func (sc *serverConn) writeFrameFromHandler(wr FrameWriteRequest) error {+ sc.serveG.checkNotOn() // NOT+ select {+ case sc.wantWriteFrameCh <- wr:+ return nil+ case <-sc.doneServing:+ // Serve loop is gone.+ // Client has closed their connection to the server.+ return errClientDisconnected+ }+}++// writeFrame schedules a frame to write and sends it if there's nothing+// already being written.+//+// There is no pushback here (the serve goroutine never blocks). It's+// the http.Handlers that block, waiting for their previous frames to+// make it onto the wire+//+// If you're not on the serve goroutine, use writeFrameFromHandler instead.+func (sc *serverConn) writeFrame(wr FrameWriteRequest) {+ sc.serveG.check()++ var ignoreWrite bool++ // Don't send a 100-continue response if we've already sent headers.+ // See golang.org/issue/14030.+ switch wr.write.(type) {+ case *writeResHeaders:+ wr.stream.wroteHeaders = true+ case write100ContinueHeadersFrame:+ if wr.stream.wroteHeaders {+ ignoreWrite = true+ }+ }++ if !ignoreWrite {+ sc.writeSched.Push(wr)+ }+ sc.scheduleFrameWrite()+}++// startFrameWrite starts a goroutine to write wr (in a separate+// goroutine since that might block on the network), and updates the+// serve goroutine's state about the world, updated from info in wr.+func (sc *serverConn) startFrameWrite(wr FrameWriteRequest) {+ sc.serveG.check()+ if sc.writingFrame {+ panic("internal error: can only be writing one frame at a time")+ }++ st := wr.stream+ if st != nil {+ switch st.state {+ case stateHalfClosedLocal:+ panic("internal error: attempt to send frame on half-closed-local stream")+ case stateClosed:+ if st.sentReset || st.gotReset {+ // Skip this frame.+ sc.scheduleFrameWrite()+ return+ }+ panic(fmt.Sprintf("internal error: attempt to send a write %v on a closed stream", wr))+ }+ }+ if wpp, ok := wr.write.(*writePushPromise); ok {+ var err error+ wpp.promisedID, err = wpp.allocatePromisedID()+ if err != nil {+ sc.writingFrameAsync = false+ if wr.done != nil {+ wr.done <- err+ }+ return+ }+ }++ sc.writingFrame = true+ sc.needsFrameFlush = true+ if wr.write.staysWithinBuffer(sc.bw.Available()) {+ sc.writingFrameAsync = false+ err := wr.write.writeFrame(sc)+ sc.wroteFrame(frameWriteResult{wr, err})+ } else {+ sc.writingFrameAsync = true+ go sc.writeFrameAsync(wr)+ }+}++// errHandlerPanicked is the error given to any callers blocked in a read from+// Request.Body when the main goroutine panics. Since most handlers read in the+// the main ServeHTTP goroutine, this will show up rarely.+var errHandlerPanicked = errors.New("http2: handler panicked")++// wroteFrame is called on the serve goroutine with the result of+// whatever happened on writeFrameAsync.+func (sc *serverConn) wroteFrame(res frameWriteResult) {+ sc.serveG.check()+ if !sc.writingFrame {+ panic("internal error: expected to be already writing a frame")+ }+ sc.writingFrame = false+ sc.writingFrameAsync = false++ wr := res.wr+ st := wr.stream++ closeStream := endsStream(wr.write)++ if _, ok := wr.write.(handlerPanicRST); ok {+ sc.closeStream(st, errHandlerPanicked)+ }++ // Reply (if requested) to the blocked ServeHTTP goroutine.+ if ch := wr.done; ch != nil {+ select {+ case ch <- res.err:+ default:+ panic(fmt.Sprintf("unbuffered done channel passed in for type %T", wr.write))+ }+ }+ wr.write = nil // prevent use (assume it's tainted after wr.done send)++ if closeStream {+ if st == nil {+ panic("internal error: expecting non-nil stream")+ }+ switch st.state {+ case stateOpen:+ // Here we would go to stateHalfClosedLocal in+ // theory, but since our handler is done and+ // the net/http package provides no mechanism+ // for closing a ResponseWriter while still+ // reading data (see possible TODO at top of+ // this file), we go into closed state here+ // anyway, after telling the peer we're+ // hanging up on them.+ st.state = stateHalfClosedLocal // won't last long, but necessary for closeStream via resetStream+ errCancel := streamError(st.id, ErrCodeCancel)+ sc.resetStream(errCancel)+ case stateHalfClosedRemote:+ sc.closeStream(st, errHandlerComplete)+ }+ }++ sc.scheduleFrameWrite()+}++// scheduleFrameWrite tickles the frame writing scheduler.+//+// If a frame is already being written, nothing happens. This will be called again+// when the frame is done being written.+//+// If a frame isn't being written we need to send one, the best frame+// to send is selected, preferring first things that aren't+// stream-specific (e.g. ACKing settings), and then finding the+// highest priority stream.+//+// If a frame isn't being written and there's nothing else to send, we+// flush the write buffer.+func (sc *serverConn) scheduleFrameWrite() {+ sc.serveG.check()+ if sc.writingFrame || sc.inFrameScheduleLoop {+ return+ }+ sc.inFrameScheduleLoop = true+ for !sc.writingFrameAsync {+ if sc.needToSendGoAway {+ sc.needToSendGoAway = false+ sc.startFrameWrite(FrameWriteRequest{+ write: &writeGoAway{+ maxStreamID: sc.maxClientStreamID,+ code: sc.goAwayCode,+ },+ })+ continue+ }+ if sc.needToSendSettingsAck {+ sc.needToSendSettingsAck = false+ sc.startFrameWrite(FrameWriteRequest{write: writeSettingsAck{}})+ continue+ }+ if !sc.inGoAway || sc.goAwayCode == ErrCodeNo {+ if wr, ok := sc.writeSched.Pop(); ok {+ sc.startFrameWrite(wr)+ continue+ }+ }+ if sc.needsFrameFlush {+ sc.startFrameWrite(FrameWriteRequest{write: flushFrameWriter{}})+ sc.needsFrameFlush = false // after startFrameWrite, since it sets this true+ continue+ }+ break+ }+ sc.inFrameScheduleLoop = false+}++// startGracefulShutdown sends a GOAWAY with ErrCodeNo to tell the+// client we're gracefully shutting down. The connection isn't closed+// until all current streams are done.+func (sc *serverConn) startGracefulShutdown() {+ sc.goAwayIn(ErrCodeNo, 0)+}++func (sc *serverConn) goAway(code ErrCode) {+ sc.serveG.check()+ var forceCloseIn time.Duration+ if code != ErrCodeNo {+ forceCloseIn = 250 * time.Millisecond+ } else {+ // TODO: configurable+ forceCloseIn = 1 * time.Second+ }+ sc.goAwayIn(code, forceCloseIn)+}++func (sc *serverConn) goAwayIn(code ErrCode, forceCloseIn time.Duration) {+ sc.serveG.check()+ if sc.inGoAway {+ return+ }+ if forceCloseIn != 0 {+ sc.shutDownIn(forceCloseIn)+ }+ sc.inGoAway = true+ sc.needToSendGoAway = true+ sc.goAwayCode = code+ sc.scheduleFrameWrite()+}++func (sc *serverConn) shutDownIn(d time.Duration) {+ sc.serveG.check()+ sc.shutdownTimer = time.NewTimer(d)+ sc.shutdownTimerCh = sc.shutdownTimer.C+}++func (sc *serverConn) resetStream(se StreamError) {+ sc.serveG.check()+ sc.writeFrame(FrameWriteRequest{write: se})+ if st, ok := sc.streams[se.StreamID]; ok {+ st.sentReset = true+ sc.closeStream(st, se)+ }+}++// processFrameFromReader processes the serve loop's read from readFrameCh from the+// frame-reading goroutine.+// processFrameFromReader returns whether the connection should be kept open.+func (sc *serverConn) processFrameFromReader(res readFrameResult) bool {+ sc.serveG.check()+ err := res.err+ if err != nil {+ if err == ErrFrameTooLarge {+ sc.goAway(ErrCodeFrameSize)+ return true // goAway will close the loop+ }+ clientGone := err == io.EOF || err == io.ErrUnexpectedEOF || isClosedConnError(err)+ if clientGone {+ // TODO: could we also get into this state if+ // the peer does a half close+ // (e.g. CloseWrite) because they're done+ // sending frames but they're still wanting+ // our open replies? Investigate.+ // TODO: add CloseWrite to crypto/tls.Conn first+ // so we have a way to test this? I suppose+ // just for testing we could have a non-TLS mode.+ return false+ }+ } else {+ f := res.f+ if VerboseLogs {+ sc.vlogf("http2: server read frame %v", summarizeFrame(f))+ }+ err = sc.processFrame(f)+ if err == nil {+ return true+ }+ }++ switch ev := err.(type) {+ case StreamError:+ sc.resetStream(ev)+ return true+ case goAwayFlowError:+ sc.goAway(ErrCodeFlowControl)+ return true+ case ConnectionError:+ sc.logf("http2: server connection error from %v: %v", sc.conn.RemoteAddr(), ev)+ sc.goAway(ErrCode(ev))+ return true // goAway will handle shutdown+ default:+ if res.err != nil {+ sc.vlogf("http2: server closing client connection; error reading frame from client %s: %v", sc.conn.RemoteAddr(), err)+ } else {+ sc.logf("http2: server closing client connection: %v", err)+ }+ return false+ }+}++func (sc *serverConn) processFrame(f Frame) error {+ sc.serveG.check()++ // First frame received must be SETTINGS.+ if !sc.sawFirstSettings {+ if _, ok := f.(*SettingsFrame); !ok {+ return ConnectionError(ErrCodeProtocol)+ }+ sc.sawFirstSettings = true+ }++ switch f := f.(type) {+ case *SettingsFrame:+ return sc.processSettings(f)+ case *MetaHeadersFrame:+ return sc.processHeaders(f)+ case *WindowUpdateFrame:+ return sc.processWindowUpdate(f)+ case *PingFrame:+ return sc.processPing(f)+ case *DataFrame:+ return sc.processData(f)+ case *RSTStreamFrame:+ return sc.processResetStream(f)+ case *PriorityFrame:+ return sc.processPriority(f)+ case *GoAwayFrame:+ return sc.processGoAway(f)+ case *PushPromiseFrame:+ // A client cannot push. Thus, servers MUST treat the receipt of a PUSH_PROMISE+ // frame as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.+ return ConnectionError(ErrCodeProtocol)+ default:+ sc.vlogf("http2: server ignoring frame: %v", f.Header())+ return nil+ }+}++func (sc *serverConn) processPing(f *PingFrame) error {+ sc.serveG.check()+ if f.IsAck() {+ // 6.7 PING: " An endpoint MUST NOT respond to PING frames+ // containing this flag."+ return nil+ }+ if f.StreamID != 0 {+ // "PING frames are not associated with any individual+ // stream. If a PING frame is received with a stream+ // identifier field value other than 0x0, the recipient MUST+ // respond with a connection error (Section 5.4.1) of type+ // PROTOCOL_ERROR."+ return ConnectionError(ErrCodeProtocol)+ }+ if sc.inGoAway && sc.goAwayCode != ErrCodeNo {+ return nil+ }+ sc.writeFrame(FrameWriteRequest{write: writePingAck{f}})+ return nil+}++func (sc *serverConn) processWindowUpdate(f *WindowUpdateFrame) error {+ sc.serveG.check()+ switch {+ case f.StreamID != 0: // stream-level flow control+ state, st := sc.state(f.StreamID)+ if state == stateIdle {+ // Section 5.1: "Receiving any frame other than HEADERS+ // or PRIORITY on a stream in this state MUST be+ // treated as a connection error (Section 5.4.1) of+ // type PROTOCOL_ERROR."+ return ConnectionError(ErrCodeProtocol)+ }+ if st == nil {+ // "WINDOW_UPDATE can be sent by a peer that has sent a+ // frame bearing the END_STREAM flag. This means that a+ // receiver could receive a WINDOW_UPDATE frame on a "half+ // closed (remote)" or "closed" stream. A receiver MUST+ // NOT treat this as an error, see Section 5.1."+ return nil+ }+ if !st.flow.add(int32(f.Increment)) {+ return streamError(f.StreamID, ErrCodeFlowControl)+ }+ default: // connection-level flow control+ if !sc.flow.add(int32(f.Increment)) {+ return goAwayFlowError{}+ }+ }+ sc.scheduleFrameWrite()+ return nil+}++func (sc *serverConn) processResetStream(f *RSTStreamFrame) error {+ sc.serveG.check()++ state, st := sc.state(f.StreamID)+ if state == stateIdle {+ // 6.4 "RST_STREAM frames MUST NOT be sent for a+ // stream in the "idle" state. If a RST_STREAM frame+ // identifying an idle stream is received, the+ // recipient MUST treat this as a connection error+ // (Section 5.4.1) of type PROTOCOL_ERROR.+ return ConnectionError(ErrCodeProtocol)+ }+ if st != nil {+ st.gotReset = true+ st.cancelCtx()+ sc.closeStream(st, streamError(f.StreamID, f.ErrCode))+ }+ return nil+}++func (sc *serverConn) closeStream(st *stream, err error) {+ sc.serveG.check()+ if st.state == stateIdle || st.state == stateClosed {+ panic(fmt.Sprintf("invariant; can't close stream in state %v", st.state))+ }+ st.state = stateClosed+ if st.isPushed() {+ sc.curPushedStreams--+ } else {+ sc.curClientStreams--+ }+ delete(sc.streams, st.id)+ if len(sc.streams) == 0 {+ sc.setConnState(http.StateIdle)+ if sc.srv.IdleTimeout != 0 {+ sc.idleTimer.Reset(sc.srv.IdleTimeout)+ }+ if h1ServerKeepAlivesDisabled(sc.hs) {+ sc.startGracefulShutdown()+ }+ }+ if p := st.body; p != nil {+ // Return any buffered unread bytes worth of conn-level flow control.+ // See golang.org/issue/16481+ sc.sendWindowUpdate(nil, p.Len())++ p.CloseWithError(err)+ }+ st.cw.Close() // signals Handler's CloseNotifier, unblocks writes, etc+ sc.writeSched.CloseStream(st.id)+}++func (sc *serverConn) processSettings(f *SettingsFrame) error {+ sc.serveG.check()+ if f.IsAck() {+ sc.unackedSettings--+ if sc.unackedSettings < 0 {+ // Why is the peer ACKing settings we never sent?+ // The spec doesn't mention this case, but+ // hang up on them anyway.+ return ConnectionError(ErrCodeProtocol)+ }+ return nil+ }+ if err := f.ForeachSetting(sc.processSetting); err != nil {+ return err+ }+ sc.needToSendSettingsAck = true+ sc.scheduleFrameWrite()+ return nil+}++func (sc *serverConn) processSetting(s Setting) error {+ sc.serveG.check()+ if err := s.Valid(); err != nil {+ return err+ }+ if VerboseLogs {+ sc.vlogf("http2: server processing setting %v", s)+ }+ switch s.ID {+ case SettingHeaderTableSize:+ sc.headerTableSize = s.Val+ sc.hpackEncoder.SetMaxDynamicTableSize(s.Val)+ case SettingEnablePush:+ sc.pushEnabled = s.Val != 0+ case SettingMaxConcurrentStreams:+ sc.clientMaxStreams = s.Val+ case SettingInitialWindowSize:+ return sc.processSettingInitialWindowSize(s.Val)+ case SettingMaxFrameSize:+ sc.maxFrameSize = int32(s.Val) // the maximum valid s.Val is < 2^31+ case SettingMaxHeaderListSize:+ sc.peerMaxHeaderListSize = s.Val+ default:+ // Unknown setting: "An endpoint that receives a SETTINGS+ // frame with any unknown or unsupported identifier MUST+ // ignore that setting."+ if VerboseLogs {+ sc.vlogf("http2: server ignoring unknown setting %v", s)+ }+ }+ return nil+}++func (sc *serverConn) processSettingInitialWindowSize(val uint32) error {+ sc.serveG.check()+ // Note: val already validated to be within range by+ // processSetting's Valid call.++ // "A SETTINGS frame can alter the initial flow control window+ // size for all current streams. When the value of+ // SETTINGS_INITIAL_WINDOW_SIZE changes, a receiver MUST+ // adjust the size of all stream flow control windows that it+ // maintains by the difference between the new value and the+ // old value."+ old := sc.initialWindowSize+ sc.initialWindowSize = int32(val)+ growth := sc.initialWindowSize - old // may be negative+ for _, st := range sc.streams {+ if !st.flow.add(growth) {+ // 6.9.2 Initial Flow Control Window Size+ // "An endpoint MUST treat a change to+ // SETTINGS_INITIAL_WINDOW_SIZE that causes any flow+ // control window to exceed the maximum size as a+ // connection error (Section 5.4.1) of type+ // FLOW_CONTROL_ERROR."+ return ConnectionError(ErrCodeFlowControl)+ }+ }+ return nil+}++func (sc *serverConn) processData(f *DataFrame) error {+ sc.serveG.check()+ if sc.inGoAway && sc.goAwayCode != ErrCodeNo {+ return nil+ }+ data := f.Data()++ // "If a DATA frame is received whose stream is not in "open"+ // or "half closed (local)" state, the recipient MUST respond+ // with a stream error (Section 5.4.2) of type STREAM_CLOSED."+ id := f.Header().StreamID+ state, st := sc.state(id)+ if id == 0 || state == stateIdle {+ // Section 5.1: "Receiving any frame other than HEADERS+ // or PRIORITY on a stream in this state MUST be+ // treated as a connection error (Section 5.4.1) of+ // type PROTOCOL_ERROR."+ return ConnectionError(ErrCodeProtocol)+ }+ if st == nil || state != stateOpen || st.gotTrailerHeader {+ // This includes sending a RST_STREAM if the stream is+ // in stateHalfClosedLocal (which currently means that+ // the http.Handler returned, so it's done reading &+ // done writing). Try to stop the client from sending+ // more DATA.++ // But still enforce their connection-level flow control,+ // and return any flow control bytes since we're not going+ // to consume them.+ if sc.inflow.available() < int32(f.Length) {+ return streamError(id, ErrCodeFlowControl)+ }+ // Deduct the flow control from inflow, since we're+ // going to immediately add it back in+ // sendWindowUpdate, which also schedules sending the+ // frames.+ sc.inflow.take(int32(f.Length))+ sc.sendWindowUpdate(nil, int(f.Length)) // conn-level++ return streamError(id, ErrCodeStreamClosed)+ }+ if st.body == nil {+ panic("internal error: should have a body in this state")+ }++ // Sender sending more than they'd declared?+ if st.declBodyBytes != -1 && st.bodyBytes+int64(len(data)) > st.declBodyBytes {+ st.body.CloseWithError(fmt.Errorf("sender tried to send more than declared Content-Length of %d bytes", st.declBodyBytes))+ return streamError(id, ErrCodeStreamClosed)+ }+ if f.Length > 0 {+ // Check whether the client has flow control quota.+ if st.inflow.available() < int32(f.Length) {+ return streamError(id, ErrCodeFlowControl)+ }+ st.inflow.take(int32(f.Length))++ if len(data) > 0 {+ wrote, err := st.body.Write(data)+ if err != nil {+ return streamError(id, ErrCodeStreamClosed)+ }+ if wrote != len(data) {+ panic("internal error: bad Writer")+ }+ st.bodyBytes += int64(len(data))+ }++ // Return any padded flow control now, since we won't+ // refund it later on body reads.+ if pad := int32(f.Length) - int32(len(data)); pad > 0 {+ sc.sendWindowUpdate32(nil, pad)+ sc.sendWindowUpdate32(st, pad)+ }+ }+ if f.StreamEnded() {+ st.endStream()+ }+ return nil+}++func (sc *serverConn) processGoAway(f *GoAwayFrame) error {+ sc.serveG.check()+ if f.ErrCode != ErrCodeNo {+ sc.logf("http2: received GOAWAY %+v, starting graceful shutdown", f)+ } else {+ sc.vlogf("http2: received GOAWAY %+v, starting graceful shutdown", f)+ }+ sc.startGracefulShutdown()+ // http://tools.ietf.org/html/rfc7540#section-6.8+ // We should not create any new streams, which means we should disable push.+ sc.pushEnabled = false+ return nil+}++// isPushed reports whether the stream is server-initiated.+func (st *stream) isPushed() bool {+ return st.id%2 == 0+}++// endStream closes a Request.Body's pipe. It is called when a DATA+// frame says a request body is over (or after trailers).+func (st *stream) endStream() {+ sc := st.sc+ sc.serveG.check()++ if st.declBodyBytes != -1 && st.declBodyBytes != st.bodyBytes {+ st.body.CloseWithError(fmt.Errorf("request declared a Content-Length of %d but only wrote %d bytes",+ st.declBodyBytes, st.bodyBytes))+ } else {+ st.body.closeWithErrorAndCode(io.EOF, st.copyTrailersToHandlerRequest)+ st.body.CloseWithError(io.EOF)+ }+ st.state = stateHalfClosedRemote+}++// copyTrailersToHandlerRequest is run in the Handler's goroutine in+// its Request.Body.Read just before it gets io.EOF.+func (st *stream) copyTrailersToHandlerRequest() {+ for k, vv := range st.trailer {+ if _, ok := st.reqTrailer[k]; ok {+ // Only copy it over it was pre-declared.+ st.reqTrailer[k] = vv+ }+ }+}++func (sc *serverConn) processHeaders(f *MetaHeadersFrame) error {+ sc.serveG.check()+ id := f.StreamID+ if sc.inGoAway {+ // Ignore.+ return nil+ }+ // http://tools.ietf.org/html/rfc7540#section-5.1.1+ // Streams initiated by a client MUST use odd-numbered stream+ // identifiers. [...] An endpoint that receives an unexpected+ // stream identifier MUST respond with a connection error+ // (Section 5.4.1) of type PROTOCOL_ERROR.+ if id%2 != 1 {+ return ConnectionError(ErrCodeProtocol)+ }+ // A HEADERS frame can be used to create a new stream or+ // send a trailer for an open one. If we already have a stream+ // open, let it process its own HEADERS frame (trailers at this+ // point, if it's valid).+ if st := sc.streams[f.StreamID]; st != nil {+ return st.processTrailerHeaders(f)+ }++ // [...] The identifier of a newly established stream MUST be+ // numerically greater than all streams that the initiating+ // endpoint has opened or reserved. [...] An endpoint that+ // receives an unexpected stream identifier MUST respond with+ // a connection error (Section 5.4.1) of type PROTOCOL_ERROR.+ if id <= sc.maxClientStreamID {+ return ConnectionError(ErrCodeProtocol)+ }+ sc.maxClientStreamID = id++ if sc.idleTimer != nil {+ sc.idleTimer.Stop()+ }++ // http://tools.ietf.org/html/rfc7540#section-5.1.2+ // [...] Endpoints MUST NOT exceed the limit set by their peer. An+ // endpoint that receives a HEADERS frame that causes their+ // advertised concurrent stream limit to be exceeded MUST treat+ // this as a stream error (Section 5.4.2) of type PROTOCOL_ERROR+ // or REFUSED_STREAM.+ if sc.curClientStreams+1 > sc.advMaxStreams {+ if sc.unackedSettings == 0 {+ // They should know better.+ return streamError(id, ErrCodeProtocol)+ }+ // Assume it's a network race, where they just haven't+ // received our last SETTINGS update. But actually+ // this can't happen yet, because we don't yet provide+ // a way for users to adjust server parameters at+ // runtime.+ return streamError(id, ErrCodeRefusedStream)+ }++ initialState := stateOpen+ if f.StreamEnded() {+ initialState = stateHalfClosedRemote+ }+ st := sc.newStream(id, 0, initialState)++ if f.HasPriority() {+ if err := checkPriority(f.StreamID, f.Priority); err != nil {+ return err+ }+ sc.writeSched.AdjustStream(st.id, f.Priority)+ }++ rw, req, err := sc.newWriterAndRequest(st, f)+ if err != nil {+ return err+ }+ st.reqTrailer = req.Trailer+ if st.reqTrailer != nil {+ st.trailer = make(http.Header)+ }+ st.body = req.Body.(*requestBody).pipe // may be nil+ st.declBodyBytes = req.ContentLength++ handler := sc.handler.ServeHTTP+ if f.Truncated {+ // Their header list was too long. Send a 431 error.+ handler = handleHeaderListTooLong+ } else if err := checkValidHTTP2RequestHeaders(req.Header); err != nil {+ handler = new400Handler(err)+ }++ // The net/http package sets the read deadline from the+ // http.Server.ReadTimeout during the TLS handshake, but then+ // passes the connection off to us with the deadline already+ // set. Disarm it here after the request headers are read,+ // similar to how the http1 server works. Here it's+ // technically more like the http1 Server's ReadHeaderTimeout+ // (in Go 1.8), though. That's a more sane option anyway.+ if sc.hs.ReadTimeout != 0 {+ sc.conn.SetReadDeadline(time.Time{})+ }++ go sc.runHandler(rw, req, handler)+ return nil+}++func (st *stream) processTrailerHeaders(f *MetaHeadersFrame) error {+ sc := st.sc+ sc.serveG.check()+ if st.gotTrailerHeader {+ return ConnectionError(ErrCodeProtocol)+ }+ st.gotTrailerHeader = true+ if !f.StreamEnded() {+ return streamError(st.id, ErrCodeProtocol)+ }++ if len(f.PseudoFields()) > 0 {+ return streamError(st.id, ErrCodeProtocol)+ }+ if st.trailer != nil {+ for _, hf := range f.RegularFields() {+ key := sc.canonicalHeader(hf.Name)+ if !ValidTrailerHeader(key) {+ // TODO: send more details to the peer somehow. But http2 has+ // no way to send debug data at a stream level. Discuss with+ // HTTP folk.+ return streamError(st.id, ErrCodeProtocol)+ }+ st.trailer[key] = append(st.trailer[key], hf.Value)+ }+ }+ st.endStream()+ return nil+}++func checkPriority(streamID uint32, p PriorityParam) error {+ if streamID == p.StreamDep {+ // Section 5.3.1: "A stream cannot depend on itself. An endpoint MUST treat+ // this as a stream error (Section 5.4.2) of type PROTOCOL_ERROR."+ // Section 5.3.3 says that a stream can depend on one of its dependencies,+ // so it's only self-dependencies that are forbidden.+ return streamError(streamID, ErrCodeProtocol)+ }+ return nil+}++func (sc *serverConn) processPriority(f *PriorityFrame) error {+ if sc.inGoAway {+ return nil+ }+ if err := checkPriority(f.StreamID, f.PriorityParam); err != nil {+ return err+ }+ sc.writeSched.AdjustStream(f.StreamID, f.PriorityParam)+ return nil+}++func (sc *serverConn) newStream(id, pusherID uint32, state streamState) *stream {+ sc.serveG.check()+ if id == 0 {+ panic("internal error: cannot create stream with id 0")+ }++ ctx, cancelCtx := contextWithCancel(sc.baseCtx)+ st := &stream{+ sc: sc,+ id: id,+ state: state,+ ctx: ctx,+ cancelCtx: cancelCtx,+ }+ st.cw.Init()+ st.flow.conn = &sc.flow // link to conn-level counter+ st.flow.add(sc.initialWindowSize)+ st.inflow.conn = &sc.inflow // link to conn-level counter+ st.inflow.add(initialWindowSize) // TODO: update this when we send a higher initial window size in the initial settings++ sc.streams[id] = st+ sc.writeSched.OpenStream(st.id, OpenStreamOptions{PusherID: pusherID})+ if st.isPushed() {+ sc.curPushedStreams+++ } else {+ sc.curClientStreams+++ }+ if sc.curClientStreams+sc.curPushedStreams == 1 {+ sc.setConnState(http.StateActive)+ }++ return st+}++func (sc *serverConn) newWriterAndRequest(st *stream, f *MetaHeadersFrame) (*responseWriter, *http.Request, error) {+ sc.serveG.check()++ rp := requestParam{+ method: f.PseudoValue("method"),+ scheme: f.PseudoValue("scheme"),+ authority: f.PseudoValue("authority"),+ path: f.PseudoValue("path"),+ }++ isConnect := rp.method == "CONNECT"+ if isConnect {+ if rp.path != "" || rp.scheme != "" || rp.authority == "" {+ return nil, nil, streamError(f.StreamID, ErrCodeProtocol)+ }+ } else if rp.method == "" || rp.path == "" || (rp.scheme != "https" && rp.scheme != "http") {+ // See 8.1.2.6 Malformed Requests and Responses:+ //+ // Malformed requests or responses that are detected+ // MUST be treated as a stream error (Section 5.4.2)+ // of type PROTOCOL_ERROR."+ //+ // 8.1.2.3 Request Pseudo-Header Fields+ // "All HTTP/2 requests MUST include exactly one valid+ // value for the :method, :scheme, and :path+ // pseudo-header fields"+ return nil, nil, streamError(f.StreamID, ErrCodeProtocol)+ }++ bodyOpen := !f.StreamEnded()+ if rp.method == "HEAD" && bodyOpen {+ // HEAD requests can't have bodies+ return nil, nil, streamError(f.StreamID, ErrCodeProtocol)+ }++ rp.header = make(http.Header)+ for _, hf := range f.RegularFields() {+ rp.header.Add(sc.canonicalHeader(hf.Name), hf.Value)+ }+ if rp.authority == "" {+ rp.authority = rp.header.Get("Host")+ }++ rw, req, err := sc.newWriterAndRequestNoBody(st, rp)+ if err != nil {+ return nil, nil, err+ }+ if bodyOpen {+ st.reqBuf = getRequestBodyBuf()+ req.Body.(*requestBody).pipe = &pipe{+ b: &fixedBuffer{buf: st.reqBuf},+ }++ if vv, ok := rp.header["Content-Length"]; ok {+ req.ContentLength, _ = strconv.ParseInt(vv[0], 10, 64)+ } else {+ req.ContentLength = -1+ }+ }+ return rw, req, nil+}++type requestParam struct {+ method string+ scheme, authority, path string+ header http.Header+}++func (sc *serverConn) newWriterAndRequestNoBody(st *stream, rp requestParam) (*responseWriter, *http.Request, error) {+ sc.serveG.check()++ var tlsState *tls.ConnectionState // nil if not scheme https+ if rp.scheme == "https" {+ tlsState = sc.tlsState+ }++ needsContinue := rp.header.Get("Expect") == "100-continue"+ if needsContinue {+ rp.header.Del("Expect")+ }+ // Merge Cookie headers into one "; "-delimited value.+ if cookies := rp.header["Cookie"]; len(cookies) > 1 {+ rp.header.Set("Cookie", strings.Join(cookies, "; "))+ }++ // Setup Trailers+ var trailer http.Header+ for _, v := range rp.header["Trailer"] {+ for _, key := range strings.Split(v, ",") {+ key = http.CanonicalHeaderKey(strings.TrimSpace(key))+ switch key {+ case "Transfer-Encoding", "Trailer", "Content-Length":+ // Bogus. (copy of http1 rules)+ // Ignore.+ default:+ if trailer == nil {+ trailer = make(http.Header)+ }+ trailer[key] = nil+ }+ }+ }+ delete(rp.header, "Trailer")++ var url_ *url.URL+ var requestURI string+ if rp.method == "CONNECT" {+ url_ = &url.URL{Host: rp.authority}+ requestURI = rp.authority // mimic HTTP/1 server behavior+ } else {+ var err error+ url_, err = url.ParseRequestURI(rp.path)+ if err != nil {+ return nil, nil, streamError(st.id, ErrCodeProtocol)+ }+ requestURI = rp.path+ }++ body := &requestBody{+ conn: sc,+ stream: st,+ needsContinue: needsContinue,+ }+ req := &http.Request{+ Method: rp.method,+ URL: url_,+ RemoteAddr: sc.remoteAddrStr,+ Header: rp.header,+ RequestURI: requestURI,+ Proto: "HTTP/2.0",+ ProtoMajor: 2,+ ProtoMinor: 0,+ TLS: tlsState,+ Host: rp.authority,+ Body: body,+ Trailer: trailer,+ }+ req = requestWithContext(req, st.ctx)++ rws := responseWriterStatePool.Get().(*responseWriterState)+ bwSave := rws.bw+ *rws = responseWriterState{} // zero all the fields+ rws.conn = sc+ rws.bw = bwSave+ rws.bw.Reset(chunkWriter{rws})+ rws.stream = st+ rws.req = req+ rws.body = body++ rw := &responseWriter{rws: rws}+ return rw, req, nil+}++var reqBodyCache = make(chan []byte, 8)++func getRequestBodyBuf() []byte {+ select {+ case b := <-reqBodyCache:+ return b+ default:+ return make([]byte, initialWindowSize)+ }+}++func putRequestBodyBuf(b []byte) {+ select {+ case reqBodyCache <- b:+ default:+ }+}++// Run on its own goroutine.+func (sc *serverConn) runHandler(rw *responseWriter, req *http.Request, handler func(http.ResponseWriter, *http.Request)) {+ didPanic := true+ defer func() {+ rw.rws.stream.cancelCtx()+ if didPanic {+ e := recover()+ sc.writeFrameFromHandler(FrameWriteRequest{+ write: handlerPanicRST{rw.rws.stream.id},+ stream: rw.rws.stream,+ })+ // Same as net/http:+ if shouldLogPanic(e) {+ const size = 64 << 10+ buf := make([]byte, size)+ buf = buf[:runtime.Stack(buf, false)]+ sc.logf("http2: panic serving %v: %v\n%s", sc.conn.RemoteAddr(), e, buf)+ }+ return+ }+ rw.handlerDone()+ }()+ handler(rw, req)+ didPanic = false+}++func handleHeaderListTooLong(w http.ResponseWriter, r *http.Request) {+ // 10.5.1 Limits on Header Block Size:+ // .. "A server that receives a larger header block than it is+ // willing to handle can send an HTTP 431 (Request Header Fields Too+ // Large) status code"+ const statusRequestHeaderFieldsTooLarge = 431 // only in Go 1.6++ w.WriteHeader(statusRequestHeaderFieldsTooLarge)+ io.WriteString(w, "<h1>HTTP Error 431</h1><p>Request Header Field(s) Too Large</p>")+}++// called from handler goroutines.+// h may be nil.+func (sc *serverConn) writeHeaders(st *stream, headerData *writeResHeaders) error {+ sc.serveG.checkNotOn() // NOT on+ var errc chan error+ if headerData.h != nil {+ // If there's a header map (which we don't own), so we have to block on+ // waiting for this frame to be written, so an http.Flush mid-handler+ // writes out the correct value of keys, before a handler later potentially+ // mutates it.+ errc = errChanPool.Get().(chan error)+ }+ if err := sc.writeFrameFromHandler(FrameWriteRequest{+ write: headerData,+ stream: st,+ done: errc,+ }); err != nil {+ return err+ }+ if errc != nil {+ select {+ case err := <-errc:+ errChanPool.Put(errc)+ return err+ case <-sc.doneServing:+ return errClientDisconnected+ case <-st.cw:+ return errStreamClosed+ }+ }+ return nil+}++// called from handler goroutines.+func (sc *serverConn) write100ContinueHeaders(st *stream) {+ sc.writeFrameFromHandler(FrameWriteRequest{+ write: write100ContinueHeadersFrame{st.id},+ stream: st,+ })+}++// A bodyReadMsg tells the server loop that the http.Handler read n+// bytes of the DATA from the client on the given stream.+type bodyReadMsg struct {+ st *stream+ n int+}++// called from handler goroutines.+// Notes that the handler for the given stream ID read n bytes of its body+// and schedules flow control tokens to be sent.+func (sc *serverConn) noteBodyReadFromHandler(st *stream, n int, err error) {+ sc.serveG.checkNotOn() // NOT on+ if n > 0 {+ select {+ case sc.bodyReadCh <- bodyReadMsg{st, n}:+ case <-sc.doneServing:+ }+ }+ if err == io.EOF {+ if buf := st.reqBuf; buf != nil {+ st.reqBuf = nil // shouldn't matter; field unused by other+ putRequestBodyBuf(buf)+ }+ }+}++func (sc *serverConn) noteBodyRead(st *stream, n int) {+ sc.serveG.check()+ sc.sendWindowUpdate(nil, n) // conn-level+ if st.state != stateHalfClosedRemote && st.state != stateClosed {+ // Don't send this WINDOW_UPDATE if the stream is closed+ // remotely.+ sc.sendWindowUpdate(st, n)+ }+}++// st may be nil for conn-level+func (sc *serverConn) sendWindowUpdate(st *stream, n int) {+ sc.serveG.check()+ // "The legal range for the increment to the flow control+ // window is 1 to 2^31-1 (2,147,483,647) octets."+ // A Go Read call on 64-bit machines could in theory read+ // a larger Read than this. Very unlikely, but we handle it here+ // rather than elsewhere for now.+ const maxUint31 = 1<<31 - 1+ for n >= maxUint31 {+ sc.sendWindowUpdate32(st, maxUint31)+ n -= maxUint31+ }+ sc.sendWindowUpdate32(st, int32(n))+}++// st may be nil for conn-level+func (sc *serverConn) sendWindowUpdate32(st *stream, n int32) {+ sc.serveG.check()+ if n == 0 {+ return+ }+ if n < 0 {+ panic("negative update")+ }+ var streamID uint32+ if st != nil {+ streamID = st.id+ }+ sc.writeFrame(FrameWriteRequest{+ write: writeWindowUpdate{streamID: streamID, n: uint32(n)},+ stream: st,+ })+ var ok bool+ if st == nil {+ ok = sc.inflow.add(n)+ } else {+ ok = st.inflow.add(n)+ }+ if !ok {+ panic("internal error; sent too many window updates without decrements?")+ }+}++// requestBody is the Handler's Request.Body type.+// Read and Close may be called concurrently.+type requestBody struct {+ stream *stream+ conn *serverConn+ closed bool // for use by Close only+ sawEOF bool // for use by Read only+ pipe *pipe // non-nil if we have a HTTP entity message body+ needsContinue bool // need to send a 100-continue+}++func (b *requestBody) Close() error {+ if b.pipe != nil && !b.closed {+ b.pipe.BreakWithError(errClosedBody)+ }+ b.closed = true+ return nil+}++func (b *requestBody) Read(p []byte) (n int, err error) {+ if b.needsContinue {+ b.needsContinue = false+ b.conn.write100ContinueHeaders(b.stream)+ }+ if b.pipe == nil || b.sawEOF {+ return 0, io.EOF+ }+ n, err = b.pipe.Read(p)+ if err == io.EOF {+ b.sawEOF = true+ }+ if b.conn == nil && inTests {+ return+ }+ b.conn.noteBodyReadFromHandler(b.stream, n, err)+ return+}++// responseWriter is the http.ResponseWriter implementation. It's+// intentionally small (1 pointer wide) to minimize garbage. The+// responseWriterState pointer inside is zeroed at the end of a+// request (in handlerDone) and calls on the responseWriter thereafter+// simply crash (caller's mistake), but the much larger responseWriterState+// and buffers are reused between multiple requests.+type responseWriter struct {+ rws *responseWriterState+}++// Optional http.ResponseWriter interfaces implemented.+var (+ _ http.CloseNotifier = (*responseWriter)(nil)+ _ http.Flusher = (*responseWriter)(nil)+ _ stringWriter = (*responseWriter)(nil)+)++type responseWriterState struct {+ // immutable within a request:+ stream *stream+ req *http.Request+ body *requestBody // to close at end of request, if DATA frames didn't+ conn *serverConn++ // TODO: adjust buffer writing sizes based on server config, frame size updates from peer, etc+ bw *bufio.Writer // writing to a chunkWriter{this *responseWriterState}++ // mutated by http.Handler goroutine:+ handlerHeader http.Header // nil until called+ snapHeader http.Header // snapshot of handlerHeader at WriteHeader time+ trailers []string // set in writeChunk+ status int // status code passed to WriteHeader+ wroteHeader bool // WriteHeader called (explicitly or implicitly). Not necessarily sent to user yet.+ sentHeader bool // have we sent the header frame?+ handlerDone bool // handler has finished++ sentContentLen int64 // non-zero if handler set a Content-Length header+ wroteBytes int64++ closeNotifierMu sync.Mutex // guards closeNotifierCh+ closeNotifierCh chan bool // nil until first used+}++type chunkWriter struct{ rws *responseWriterState }++func (cw chunkWriter) Write(p []byte) (n int, err error) { return cw.rws.writeChunk(p) }++func (rws *responseWriterState) hasTrailers() bool { return len(rws.trailers) != 0 }++// declareTrailer is called for each Trailer header when the+// response header is written. It notes that a header will need to be+// written in the trailers at the end of the response.+func (rws *responseWriterState) declareTrailer(k string) {+ k = http.CanonicalHeaderKey(k)+ if !ValidTrailerHeader(k) {+ // Forbidden by RFC 2616 14.40.+ rws.conn.logf("ignoring invalid trailer %q", k)+ return+ }+ if !strSliceContains(rws.trailers, k) {+ rws.trailers = append(rws.trailers, k)+ }+}++// writeChunk writes chunks from the bufio.Writer. But because+// bufio.Writer may bypass its chunking, sometimes p may be+// arbitrarily large.+//+// writeChunk is also responsible (on the first chunk) for sending the+// HEADER response.+func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) {+ if !rws.wroteHeader {+ rws.writeHeader(200)+ }++ isHeadResp := rws.req.Method == "HEAD"+ if !rws.sentHeader {+ rws.sentHeader = true+ var ctype, clen string+ if clen = rws.snapHeader.Get("Content-Length"); clen != "" {+ rws.snapHeader.Del("Content-Length")+ clen64, err := strconv.ParseInt(clen, 10, 64)+ if err == nil && clen64 >= 0 {+ rws.sentContentLen = clen64+ } else {+ clen = ""+ }+ }+ if clen == "" && rws.handlerDone && bodyAllowedForStatus(rws.status) && (len(p) > 0 || !isHeadResp) {+ clen = strconv.Itoa(len(p))+ }+ _, hasContentType := rws.snapHeader["Content-Type"]+ if !hasContentType && bodyAllowedForStatus(rws.status) {+ ctype = http.DetectContentType(p)+ }+ var date string+ if _, ok := rws.snapHeader["Date"]; !ok {+ // TODO(bradfitz): be faster here, like net/http? measure.+ date = time.Now().UTC().Format(http.TimeFormat)+ }++ for _, v := range rws.snapHeader["Trailer"] {+ foreachHeaderElement(v, rws.declareTrailer)+ }++ endStream := (rws.handlerDone && !rws.hasTrailers() && len(p) == 0) || isHeadResp+ err = rws.conn.writeHeaders(rws.stream, &writeResHeaders{+ streamID: rws.stream.id,+ httpResCode: rws.status,+ h: rws.snapHeader,+ endStream: endStream,+ contentType: ctype,+ contentLength: clen,+ date: date,+ })+ if err != nil {+ return 0, err+ }+ if endStream {+ return 0, nil+ }+ }+ if isHeadResp {+ return len(p), nil+ }+ if len(p) == 0 && !rws.handlerDone {+ return 0, nil+ }++ if rws.handlerDone {+ rws.promoteUndeclaredTrailers()+ }++ endStream := rws.handlerDone && !rws.hasTrailers()+ if len(p) > 0 || endStream {+ // only send a 0 byte DATA frame if we're ending the stream.+ if err := rws.conn.writeDataFromHandler(rws.stream, p, endStream); err != nil {+ return 0, err+ }+ }++ if rws.handlerDone && rws.hasTrailers() {+ err = rws.conn.writeHeaders(rws.stream, &writeResHeaders{+ streamID: rws.stream.id,+ h: rws.handlerHeader,+ trailers: rws.trailers,+ endStream: true,+ })+ return len(p), err+ }+ return len(p), nil+}++// TrailerPrefix is a magic prefix for ResponseWriter.Header map keys+// that, if present, signals that the map entry is actually for+// the response trailers, and not the response headers. The prefix+// is stripped after the ServeHTTP call finishes and the values are+// sent in the trailers.+//+// This mechanism is intended only for trailers that are not known+// prior to the headers being written. If the set of trailers is fixed+// or known before the header is written, the normal Go trailers mechanism+// is preferred:+// https://golang.org/pkg/net/http/#ResponseWriter+// https://golang.org/pkg/net/http/#example_ResponseWriter_trailers+const TrailerPrefix = "Trailer:"++// promoteUndeclaredTrailers permits http.Handlers to set trailers+// after the header has already been flushed. Because the Go+// ResponseWriter interface has no way to set Trailers (only the+// Header), and because we didn't want to expand the ResponseWriter+// interface, and because nobody used trailers, and because RFC 2616+// says you SHOULD (but not must) predeclare any trailers in the+// header, the official ResponseWriter rules said trailers in Go must+// be predeclared, and then we reuse the same ResponseWriter.Header()+// map to mean both Headers and Trailers. When it's time to write the+// Trailers, we pick out the fields of Headers that were declared as+// trailers. That worked for a while, until we found the first major+// user of Trailers in the wild: gRPC (using them only over http2),+// and gRPC libraries permit setting trailers mid-stream without+// predeclarnig them. So: change of plans. We still permit the old+// way, but we also permit this hack: if a Header() key begins with+// "Trailer:", the suffix of that key is a Trailer. Because ':' is an+// invalid token byte anyway, there is no ambiguity. (And it's already+// filtered out) It's mildly hacky, but not terrible.+//+// This method runs after the Handler is done and promotes any Header+// fields to be trailers.+func (rws *responseWriterState) promoteUndeclaredTrailers() {+ for k, vv := range rws.handlerHeader {+ if !strings.HasPrefix(k, TrailerPrefix) {+ continue+ }+ trailerKey := strings.TrimPrefix(k, TrailerPrefix)+ rws.declareTrailer(trailerKey)+ rws.handlerHeader[http.CanonicalHeaderKey(trailerKey)] = vv+ }++ if len(rws.trailers) > 1 {+ sorter := sorterPool.Get().(*sorter)+ sorter.SortStrings(rws.trailers)+ sorterPool.Put(sorter)+ }+}++func (w *responseWriter) Flush() {+ rws := w.rws+ if rws == nil {+ panic("Header called after Handler finished")+ }+ if rws.bw.Buffered() > 0 {+ if err := rws.bw.Flush(); err != nil {+ // Ignore the error. The frame writer already knows.+ return+ }+ } else {+ // The bufio.Writer won't call chunkWriter.Write+ // (writeChunk with zero bytes, so we have to do it+ // ourselves to force the HTTP response header and/or+ // final DATA frame (with END_STREAM) to be sent.+ rws.writeChunk(nil)+ }+}++func (w *responseWriter) CloseNotify() <-chan bool {+ rws := w.rws+ if rws == nil {+ panic("CloseNotify called after Handler finished")+ }+ rws.closeNotifierMu.Lock()+ ch := rws.closeNotifierCh+ if ch == nil {+ ch = make(chan bool, 1)+ rws.closeNotifierCh = ch+ cw := rws.stream.cw+ go func() {+ cw.Wait() // wait for close+ ch <- true+ }()+ }+ rws.closeNotifierMu.Unlock()+ return ch+}++func (w *responseWriter) Header() http.Header {+ rws := w.rws+ if rws == nil {+ panic("Header called after Handler finished")+ }+ if rws.handlerHeader == nil {+ rws.handlerHeader = make(http.Header)+ }+ return rws.handlerHeader+}++func (w *responseWriter) WriteHeader(code int) {+ rws := w.rws+ if rws == nil {+ panic("WriteHeader called after Handler finished")+ }+ rws.writeHeader(code)+}++func (rws *responseWriterState) writeHeader(code int) {+ if !rws.wroteHeader {+ rws.wroteHeader = true+ rws.status = code+ if len(rws.handlerHeader) > 0 {+ rws.snapHeader = cloneHeader(rws.handlerHeader)+ }+ }+}++func cloneHeader(h http.Header) http.Header {+ h2 := make(http.Header, len(h))+ for k, vv := range h {+ vv2 := make([]string, len(vv))+ copy(vv2, vv)+ h2[k] = vv2+ }+ return h2+}++// The Life Of A Write is like this:+//+// * Handler calls w.Write or w.WriteString ->+// * -> rws.bw (*bufio.Writer) ->+// * (Handler migth call Flush)+// * -> chunkWriter{rws}+// * -> responseWriterState.writeChunk(p []byte)+// * -> responseWriterState.writeChunk (most of the magic; see comment there)+func (w *responseWriter) Write(p []byte) (n int, err error) {+ return w.write(len(p), p, "")+}++func (w *responseWriter) WriteString(s string) (n int, err error) {+ return w.write(len(s), nil, s)+}++// either dataB or dataS is non-zero.+func (w *responseWriter) write(lenData int, dataB []byte, dataS string) (n int, err error) {+ rws := w.rws+ if rws == nil {+ panic("Write called after Handler finished")+ }+ if !rws.wroteHeader {+ w.WriteHeader(200)+ }+ if !bodyAllowedForStatus(rws.status) {+ return 0, http.ErrBodyNotAllowed+ }+ rws.wroteBytes += int64(len(dataB)) + int64(len(dataS)) // only one can be set+ if rws.sentContentLen != 0 && rws.wroteBytes > rws.sentContentLen {+ // TODO: send a RST_STREAM+ return 0, errors.New("http2: handler wrote more than declared Content-Length")+ }++ if dataB != nil {+ return rws.bw.Write(dataB)+ } else {+ return rws.bw.WriteString(dataS)+ }+}++func (w *responseWriter) handlerDone() {+ rws := w.rws+ rws.handlerDone = true+ w.Flush()+ w.rws = nil+ responseWriterStatePool.Put(rws)+}++// Push errors.+var (+ ErrRecursivePush = errors.New("http2: recursive push not allowed")+ ErrPushLimitReached = errors.New("http2: push would exceed peer's SETTINGS_MAX_CONCURRENT_STREAMS")+)++// pushOptions is the internal version of http.PushOptions, which we+// cannot include here because it's only defined in Go 1.8 and later.+type pushOptions struct {+ Method string+ Header http.Header+}++func (w *responseWriter) push(target string, opts pushOptions) error {+ st := w.rws.stream+ sc := st.sc+ sc.serveG.checkNotOn()++ // No recursive pushes: "PUSH_PROMISE frames MUST only be sent on a peer-initiated stream."+ // http://tools.ietf.org/html/rfc7540#section-6.6+ if st.isPushed() {+ return ErrRecursivePush+ }++ // Default options.+ if opts.Method == "" {+ opts.Method = "GET"+ }+ if opts.Header == nil {+ opts.Header = http.Header{}+ }+ wantScheme := "http"+ if w.rws.req.TLS != nil {+ wantScheme = "https"+ }++ // Validate the request.+ u, err := url.Parse(target)+ if err != nil {+ return err+ }+ if u.Scheme == "" {+ if !strings.HasPrefix(target, "/") {+ return fmt.Errorf("target must be an absolute URL or an absolute path: %q", target)+ }+ u.Scheme = wantScheme+ u.Host = w.rws.req.Host+ } else {+ if u.Scheme != wantScheme {+ return fmt.Errorf("cannot push URL with scheme %q from request with scheme %q", u.Scheme, wantScheme)+ }+ if u.Host == "" {+ return errors.New("URL must have a host")+ }+ }+ for k := range opts.Header {+ if strings.HasPrefix(k, ":") {+ return fmt.Errorf("promised request headers cannot include pseudo header %q", k)+ }+ // These headers are meaningful only if the request has a body,+ // but PUSH_PROMISE requests cannot have a body.+ // http://tools.ietf.org/html/rfc7540#section-8.2+ // Also disallow Host, since the promised URL must be absolute.+ switch strings.ToLower(k) {+ case "content-length", "content-encoding", "trailer", "te", "expect", "host":+ return fmt.Errorf("promised request headers cannot include %q", k)+ }+ }+ if err := checkValidHTTP2RequestHeaders(opts.Header); err != nil {+ return err+ }++ // The RFC effectively limits promised requests to GET and HEAD:+ // "Promised requests MUST be cacheable [GET, HEAD, or POST], and MUST be safe [GET or HEAD]"+ // http://tools.ietf.org/html/rfc7540#section-8.2+ if opts.Method != "GET" && opts.Method != "HEAD" {+ return fmt.Errorf("method %q must be GET or HEAD", opts.Method)+ }++ msg := startPushRequest{+ parent: st,+ method: opts.Method,+ url: u,+ header: cloneHeader(opts.Header),+ done: errChanPool.Get().(chan error),+ }++ select {+ case <-sc.doneServing:+ return errClientDisconnected+ case <-st.cw:+ return errStreamClosed+ case sc.wantStartPushCh <- msg:+ }++ select {+ case <-sc.doneServing:+ return errClientDisconnected+ case <-st.cw:+ return errStreamClosed+ case err := <-msg.done:+ errChanPool.Put(msg.done)+ return err+ }+}++type startPushRequest struct {+ parent *stream+ method string+ url *url.URL+ header http.Header+ done chan error+}++func (sc *serverConn) startPush(msg startPushRequest) {+ sc.serveG.check()++ // http://tools.ietf.org/html/rfc7540#section-6.6.+ // PUSH_PROMISE frames MUST only be sent on a peer-initiated stream that+ // is in either the "open" or "half-closed (remote)" state.+ if msg.parent.state != stateOpen && msg.parent.state != stateHalfClosedRemote {+ // responseWriter.Push checks that the stream is peer-initiaed.+ msg.done <- errStreamClosed+ return+ }++ // http://tools.ietf.org/html/rfc7540#section-6.6.+ if !sc.pushEnabled {+ msg.done <- http.ErrNotSupported+ return+ }++ // PUSH_PROMISE frames must be sent in increasing order by stream ID, so+ // we allocate an ID for the promised stream lazily, when the PUSH_PROMISE+ // is written. Once the ID is allocated, we start the request handler.+ allocatePromisedID := func() (uint32, error) {+ sc.serveG.check()++ // Check this again, just in case. Technically, we might have received+ // an updated SETTINGS by the time we got around to writing this frame.+ if !sc.pushEnabled {+ return 0, http.ErrNotSupported+ }+ // http://tools.ietf.org/html/rfc7540#section-6.5.2.+ if sc.curPushedStreams+1 > sc.clientMaxStreams {+ return 0, ErrPushLimitReached+ }++ // http://tools.ietf.org/html/rfc7540#section-5.1.1.+ // Streams initiated by the server MUST use even-numbered identifiers.+ // A server that is unable to establish a new stream identifier can send a GOAWAY+ // frame so that the client is forced to open a new connection for new streams.+ if sc.maxPushPromiseID+2 >= 1<<31 {+ sc.startGracefulShutdown()+ return 0, ErrPushLimitReached+ }+ sc.maxPushPromiseID += 2+ promisedID := sc.maxPushPromiseID++ // http://tools.ietf.org/html/rfc7540#section-8.2.+ // Strictly speaking, the new stream should start in "reserved (local)", then+ // transition to "half closed (remote)" after sending the initial HEADERS, but+ // we start in "half closed (remote)" for simplicity.+ // See further comments at the definition of stateHalfClosedRemote.+ promised := sc.newStream(promisedID, msg.parent.id, stateHalfClosedRemote)+ rw, req, err := sc.newWriterAndRequestNoBody(promised, requestParam{+ method: msg.method,+ scheme: msg.url.Scheme,+ authority: msg.url.Host,+ path: msg.url.RequestURI(),+ header: msg.header,+ })+ if err != nil {+ // Should not happen, since we've already validated msg.url.+ panic(fmt.Sprintf("newWriterAndRequestNoBody(%+v): %v", msg.url, err))+ }++ go sc.runHandler(rw, req, sc.handler.ServeHTTP)+ return promisedID, nil+ }++ sc.writeFrame(FrameWriteRequest{+ write: &writePushPromise{+ streamID: msg.parent.id,+ method: msg.method,+ url: msg.url,+ h: msg.header,+ allocatePromisedID: allocatePromisedID,+ },+ stream: msg.parent,+ done: msg.done,+ })+}++// foreachHeaderElement splits v according to the "#rule" construction+// in RFC 2616 section 2.1 and calls fn for each non-empty element.+func foreachHeaderElement(v string, fn func(string)) {+ v = textproto.TrimString(v)+ if v == "" {+ return+ }+ if !strings.Contains(v, ",") {+ fn(v)+ return+ }+ for _, f := range strings.Split(v, ",") {+ if f = textproto.TrimString(f); f != "" {+ fn(f)+ }+ }+}++// From http://httpwg.org/specs/rfc7540.html#rfc.section.8.1.2.2+var connHeaders = []string{+ "Connection",+ "Keep-Alive",+ "Proxy-Connection",+ "Transfer-Encoding",+ "Upgrade",+}++// checkValidHTTP2RequestHeaders checks whether h is a valid HTTP/2 request,+// per RFC 7540 Section 8.1.2.2.+// The returned error is reported to users.+func checkValidHTTP2RequestHeaders(h http.Header) error {+ for _, k := range connHeaders {+ if _, ok := h[k]; ok {+ return fmt.Errorf("request header %q is not valid in HTTP/2", k)+ }+ }+ te := h["Te"]+ if len(te) > 0 && (len(te) > 1 || (te[0] != "trailers" && te[0] != "")) {+ return errors.New(`request header "TE" may only be "trailers" in HTTP/2`)+ }+ return nil+}++func new400Handler(err error) http.HandlerFunc {+ return func(w http.ResponseWriter, r *http.Request) {+ http.Error(w, err.Error(), http.StatusBadRequest)+ }+}++// ValidTrailerHeader reports whether name is a valid header field name to appear+// in trailers.+// See: http://tools.ietf.org/html/rfc7230#section-4.1.2+func ValidTrailerHeader(name string) bool {+ name = http.CanonicalHeaderKey(name)+ if strings.HasPrefix(name, "If-") || badTrailer[name] {+ return false+ }+ return true+}++var badTrailer = map[string]bool{+ "Authorization": true,+ "Cache-Control": true,+ "Connection": true,+ "Content-Encoding": true,+ "Content-Length": true,+ "Content-Range": true,+ "Content-Type": true,+ "Expect": true,+ "Host": true,+ "Keep-Alive": true,+ "Max-Forwards": true,+ "Pragma": true,+ "Proxy-Authenticate": true,+ "Proxy-Authorization": true,+ "Proxy-Connection": true,+ "Range": true,+ "Realm": true,+ "Te": true,+ "Trailer": true,+ "Transfer-Encoding": true,+ "Www-Authenticate": true,+}++// h1ServerShutdownChan returns a channel that will be closed when the+// provided *http.Server wants to shut down.+//+// This is a somewhat hacky way to get at http1 innards. It works+// when the http2 code is bundled into the net/http package in the+// standard library. The alternatives ended up making the cmd/go tool+// depend on http Servers. This is the lightest option for now.+// This is tested via the TestServeShutdown* tests in net/http.+func h1ServerShutdownChan(hs *http.Server) <-chan struct{} {+ if fn := testh1ServerShutdownChan; fn != nil {+ return fn(hs)+ }+ var x interface{} = hs+ type I interface {+ getDoneChan() <-chan struct{}+ }+ if hs, ok := x.(I); ok {+ return hs.getDoneChan()+ }+ return nil+}++// optional test hook for h1ServerShutdownChan.+var testh1ServerShutdownChan func(hs *http.Server) <-chan struct{}++// h1ServerKeepAlivesDisabled reports whether hs has its keep-alives+// disabled. See comments on h1ServerShutdownChan above for why+// the code is written this way.+func h1ServerKeepAlivesDisabled(hs *http.Server) bool {+ var x interface{} = hs+ type I interface {+ doKeepAlives() bool+ }+ if hs, ok := x.(I); ok {+ return !hs.doKeepAlives()+ }+ return false+}diff --git a/vendor/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.gonew file mode 100644index 000000000..8f5f84412--- /dev/null+++ b/vendor/golang.org/x/net/http2/transport.go@@ -0,0 +1,2076 @@+// Copyright 2015 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.++// Transport code.++package http2++import (+ "bufio"+ "bytes"+ "compress/gzip"+ "crypto/rand"+ "crypto/tls"+ "errors"+ "fmt"+ "io"+ "io/ioutil"+ "log"+ "math"+ "net"+ "net/http"+ "sort"+ "strconv"+ "strings"+ "sync"+ "time"++ "golang.org/x/net/http2/hpack"+ "golang.org/x/net/idna"+ "golang.org/x/net/lex/httplex"+)++const (+ // transportDefaultConnFlow is how many connection-level flow control+ // tokens we give the server at start-up, past the default 64k.+ transportDefaultConnFlow = 1 << 30++ // transportDefaultStreamFlow is how many stream-level flow+ // control tokens we announce to the peer, and how many bytes+ // we buffer per stream.+ transportDefaultStreamFlow = 4 << 20++ // transportDefaultStreamMinRefresh is the minimum number of bytes we'll send+ // a stream-level WINDOW_UPDATE for at a time.+ transportDefaultStreamMinRefresh = 4 << 10++ defaultUserAgent = "Go-http-client/2.0"+)++// Transport is an HTTP/2 Transport.+//+// A Transport internally caches connections to servers. It is safe+// for concurrent use by multiple goroutines.+type Transport struct {+ // DialTLS specifies an optional dial function for creating+ // TLS connections for requests.+ //+ // If DialTLS is nil, tls.Dial is used.+ //+ // If the returned net.Conn has a ConnectionState method like tls.Conn,+ // it will be used to set http.Response.TLS.+ DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error)++ // TLSClientConfig specifies the TLS configuration to use with+ // tls.Client. If nil, the default configuration is used.+ TLSClientConfig *tls.Config++ // ConnPool optionally specifies an alternate connection pool to use.+ // If nil, the default is used.+ ConnPool ClientConnPool++ // DisableCompression, if true, prevents the Transport from+ // requesting compression with an "Accept-Encoding: gzip"+ // request header when the Request contains no existing+ // Accept-Encoding value. If the Transport requests gzip on+ // its own and gets a gzipped response, it's transparently+ // decoded in the Response.Body. However, if the user+ // explicitly requested gzip it is not automatically+ // uncompressed.+ DisableCompression bool++ // AllowHTTP, if true, permits HTTP/2 requests using the insecure,+ // plain-text "http" scheme. Note that this does not enable h2c support.+ AllowHTTP bool++ // MaxHeaderListSize is the http2 SETTINGS_MAX_HEADER_LIST_SIZE to+ // send in the initial settings frame. It is how many bytes+ // of response headers are allow. Unlike the http2 spec, zero here+ // means to use a default limit (currently 10MB). If you actually+ // want to advertise an ulimited value to the peer, Transport+ // interprets the highest possible value here (0xffffffff or 1<<32-1)+ // to mean no limit.+ MaxHeaderListSize uint32++ // t1, if non-nil, is the standard library Transport using+ // this transport. Its settings are used (but not its+ // RoundTrip method, etc).+ t1 *http.Transport++ connPoolOnce sync.Once+ connPoolOrDef ClientConnPool // non-nil version of ConnPool+}++func (t *Transport) maxHeaderListSize() uint32 {+ if t.MaxHeaderListSize == 0 {+ return 10 << 20+ }+ if t.MaxHeaderListSize == 0xffffffff {+ return 0+ }+ return t.MaxHeaderListSize+}++func (t *Transport) disableCompression() bool {+ return t.DisableCompression || (t.t1 != nil && t.t1.DisableCompression)+}++var errTransportVersion = errors.New("http2: ConfigureTransport is only supported starting at Go 1.6")++// ConfigureTransport configures a net/http HTTP/1 Transport to use HTTP/2.+// It requires Go 1.6 or later and returns an error if the net/http package is too old+// or if t1 has already been HTTP/2-enabled.+func ConfigureTransport(t1 *http.Transport) error {+ _, err := configureTransport(t1) // in configure_transport.go (go1.6) or not_go16.go+ return err+}++func (t *Transport) connPool() ClientConnPool {+ t.connPoolOnce.Do(t.initConnPool)+ return t.connPoolOrDef+}++func (t *Transport) initConnPool() {+ if t.ConnPool != nil {+ t.connPoolOrDef = t.ConnPool+ } else {+ t.connPoolOrDef = &clientConnPool{t: t}+ }+}++// ClientConn is the state of a single HTTP/2 client connection to an+// HTTP/2 server.+type ClientConn struct {+ t *Transport+ tconn net.Conn // usually *tls.Conn, except specialized impls+ tlsState *tls.ConnectionState // nil only for specialized impls+ singleUse bool // whether being used for a single http.Request++ // readLoop goroutine fields:+ readerDone chan struct{} // closed on error+ readerErr error // set before readerDone is closed++ idleTimeout time.Duration // or 0 for never+ idleTimer *time.Timer++ mu sync.Mutex // guards following+ cond *sync.Cond // hold mu; broadcast on flow/closed changes+ flow flow // our conn-level flow control quota (cs.flow is per stream)+ inflow flow // peer's conn-level flow control+ closed bool+ wantSettingsAck bool // we sent a SETTINGS frame and haven't heard back+ goAway *GoAwayFrame // if non-nil, the GoAwayFrame we received+ goAwayDebug string // goAway frame's debug data, retained as a string+ streams map[uint32]*clientStream // client-initiated+ nextStreamID uint32+ pings map[[8]byte]chan struct{} // in flight ping data to notification channel+ bw *bufio.Writer+ br *bufio.Reader+ fr *Framer+ lastActive time.Time+ // Settings from peer: (also guarded by mu)+ maxFrameSize uint32+ maxConcurrentStreams uint32+ initialWindowSize uint32++ hbuf bytes.Buffer // HPACK encoder writes into this+ henc *hpack.Encoder+ freeBuf [][]byte++ wmu sync.Mutex // held while writing; acquire AFTER mu if holding both+ werr error // first write error that has occurred+}++// clientStream is the state for a single HTTP/2 stream. One of these+// is created for each Transport.RoundTrip call.+type clientStream struct {+ cc *ClientConn+ req *http.Request+ trace *clientTrace // or nil+ ID uint32+ resc chan resAndError+ bufPipe pipe // buffered pipe with the flow-controlled response payload+ requestedGzip bool+ on100 func() // optional code to run if get a 100 continue response++ flow flow // guarded by cc.mu+ inflow flow // guarded by cc.mu+ bytesRemain int64 // -1 means unknown; owned by transportResponseBody.Read+ readErr error // sticky read error; owned by transportResponseBody.Read+ stopReqBody error // if non-nil, stop writing req body; guarded by cc.mu+ didReset bool // whether we sent a RST_STREAM to the server; guarded by cc.mu++ peerReset chan struct{} // closed on peer reset+ resetErr error // populated before peerReset is closed++ done chan struct{} // closed when stream remove from cc.streams map; close calls guarded by cc.mu++ // owned by clientConnReadLoop:+ firstByte bool // got the first response byte+ pastHeaders bool // got first MetaHeadersFrame (actual headers)+ pastTrailers bool // got optional second MetaHeadersFrame (trailers)++ trailer http.Header // accumulated trailers+ resTrailer *http.Header // client's Response.Trailer+}++// awaitRequestCancel runs in its own goroutine and waits for the user+// to cancel a RoundTrip request, its context to expire, or for the+// request to be done (any way it might be removed from the cc.streams+// map: peer reset, successful completion, TCP connection breakage,+// etc)+func (cs *clientStream) awaitRequestCancel(req *http.Request) {+ ctx := reqContext(req)+ if req.Cancel == nil && ctx.Done() == nil {+ return+ }+ select {+ case <-req.Cancel:+ cs.cancelStream()+ cs.bufPipe.CloseWithError(errRequestCanceled)+ case <-ctx.Done():+ cs.cancelStream()+ cs.bufPipe.CloseWithError(ctx.Err())+ case <-cs.done:+ }+}++func (cs *clientStream) cancelStream() {+ cs.cc.mu.Lock()+ didReset := cs.didReset+ cs.didReset = true+ cs.cc.mu.Unlock()++ if !didReset {+ cs.cc.writeStreamReset(cs.ID, ErrCodeCancel, nil)+ }+}++// checkResetOrDone reports any error sent in a RST_STREAM frame by the+// server, or errStreamClosed if the stream is complete.+func (cs *clientStream) checkResetOrDone() error {+ select {+ case <-cs.peerReset:+ return cs.resetErr+ case <-cs.done:+ return errStreamClosed+ default:+ return nil+ }+}++func (cs *clientStream) abortRequestBodyWrite(err error) {+ if err == nil {+ panic("nil error")+ }+ cc := cs.cc+ cc.mu.Lock()+ cs.stopReqBody = err+ cc.cond.Broadcast()+ cc.mu.Unlock()+}++type stickyErrWriter struct {+ w io.Writer+ err *error+}++func (sew stickyErrWriter) Write(p []byte) (n int, err error) {+ if *sew.err != nil {+ return 0, *sew.err+ }+ n, err = sew.w.Write(p)+ *sew.err = err+ return+}++var ErrNoCachedConn = errors.New("http2: no cached connection was available")++// RoundTripOpt are options for the Transport.RoundTripOpt method.+type RoundTripOpt struct {+ // OnlyCachedConn controls whether RoundTripOpt may+ // create a new TCP connection. If set true and+ // no cached connection is available, RoundTripOpt+ // will return ErrNoCachedConn.+ OnlyCachedConn bool+}++func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {+ return t.RoundTripOpt(req, RoundTripOpt{})+}++// authorityAddr returns a given authority (a host/IP, or host:port / ip:port)+// and returns a host:port. The port 443 is added if needed.+func authorityAddr(scheme string, authority string) (addr string) {+ host, port, err := net.SplitHostPort(authority)+ if err != nil { // authority didn't have a port+ port = "443"+ if scheme == "http" {+ port = "80"+ }+ host = authority+ }+ if a, err := idna.ToASCII(host); err == nil {+ host = a+ }+ return net.JoinHostPort(host, port)+}++// RoundTripOpt is like RoundTrip, but takes options.+func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Response, error) {+ if !(req.URL.Scheme == "https" || (req.URL.Scheme == "http" && t.AllowHTTP)) {+ return nil, errors.New("http2: unsupported scheme")+ }++ addr := authorityAddr(req.URL.Scheme, req.URL.Host)+ for {+ cc, err := t.connPool().GetClientConn(req, addr)+ if err != nil {+ t.vlogf("http2: Transport failed to get client conn for %s: %v", addr, err)+ return nil, err+ }+ traceGotConn(req, cc)+ res, err := cc.RoundTrip(req)+ if shouldRetryRequest(req, err) {+ continue+ }+ if err != nil {+ t.vlogf("RoundTrip failure: %v", err)+ return nil, err+ }+ return res, nil+ }+}++// CloseIdleConnections closes any connections which were previously+// connected from previous requests but are now sitting idle.+// It does not interrupt any connections currently in use.+func (t *Transport) CloseIdleConnections() {+ if cp, ok := t.connPool().(clientConnPoolIdleCloser); ok {+ cp.closeIdleConnections()+ }+}++var (+ errClientConnClosed = errors.New("http2: client conn is closed")+ errClientConnUnusable = errors.New("http2: client conn not usable")+)++func shouldRetryRequest(req *http.Request, err error) bool {+ // TODO: retry GET requests (no bodies) more aggressively, if shutdown+ // before response.+ return err == errClientConnUnusable+}++func (t *Transport) dialClientConn(addr string, singleUse bool) (*ClientConn, error) {+ host, _, err := net.SplitHostPort(addr)+ if err != nil {+ return nil, err+ }+ tconn, err := t.dialTLS()("tcp", addr, t.newTLSConfig(host))+ if err != nil {+ return nil, err+ }+ return t.newClientConn(tconn, singleUse)+}++func (t *Transport) newTLSConfig(host string) *tls.Config {+ cfg := new(tls.Config)+ if t.TLSClientConfig != nil {+ *cfg = *cloneTLSConfig(t.TLSClientConfig)+ }+ if !strSliceContains(cfg.NextProtos, NextProtoTLS) {+ cfg.NextProtos = append([]string{NextProtoTLS}, cfg.NextProtos...)+ }+ if cfg.ServerName == "" {+ cfg.ServerName = host+ }+ return cfg+}++func (t *Transport) dialTLS() func(string, string, *tls.Config) (net.Conn, error) {+ if t.DialTLS != nil {+ return t.DialTLS+ }+ return t.dialTLSDefault+}++func (t *Transport) dialTLSDefault(network, addr string, cfg *tls.Config) (net.Conn, error) {+ cn, err := tls.Dial(network, addr, cfg)+ if err != nil {+ return nil, err+ }+ if err := cn.Handshake(); err != nil {+ return nil, err+ }+ if !cfg.InsecureSkipVerify {+ if err := cn.VerifyHostname(cfg.ServerName); err != nil {+ return nil, err+ }+ }+ state := cn.ConnectionState()+ if p := state.NegotiatedProtocol; p != NextProtoTLS {+ return nil, fmt.Errorf("http2: unexpected ALPN protocol %q; want %q", p, NextProtoTLS)+ }+ if !state.NegotiatedProtocolIsMutual {+ return nil, errors.New("http2: could not negotiate protocol mutually")+ }+ return cn, nil+}++// disableKeepAlives reports whether connections should be closed as+// soon as possible after handling the first request.+func (t *Transport) disableKeepAlives() bool {+ return t.t1 != nil && t.t1.DisableKeepAlives+}++func (t *Transport) expectContinueTimeout() time.Duration {+ if t.t1 == nil {+ return 0+ }+ return transportExpectContinueTimeout(t.t1)+}++func (t *Transport) NewClientConn(c net.Conn) (*ClientConn, error) {+ return t.newClientConn(c, false)+}++func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, error) {+ cc := &ClientConn{+ t: t,+ tconn: c,+ readerDone: make(chan struct{}),+ nextStreamID: 1,+ maxFrameSize: 16 << 10, // spec default+ initialWindowSize: 65535, // spec default+ maxConcurrentStreams: 1000, // "infinite", per spec. 1000 seems good enough.+ streams: make(map[uint32]*clientStream),+ singleUse: singleUse,+ wantSettingsAck: true,+ pings: make(map[[8]byte]chan struct{}),+ }+ if d := t.idleConnTimeout(); d != 0 {+ cc.idleTimeout = d+ cc.idleTimer = time.AfterFunc(d, cc.onIdleTimeout)+ }+ if VerboseLogs {+ t.vlogf("http2: Transport creating client conn %p to %v", cc, c.RemoteAddr())+ }++ cc.cond = sync.NewCond(&cc.mu)+ cc.flow.add(int32(initialWindowSize))++ // TODO: adjust this writer size to account for frame size ++ // MTU + crypto/tls record padding.+ cc.bw = bufio.NewWriter(stickyErrWriter{c, &cc.werr})+ cc.br = bufio.NewReader(c)+ cc.fr = NewFramer(cc.bw, cc.br)+ cc.fr.ReadMetaHeaders = hpack.NewDecoder(initialHeaderTableSize, nil)+ cc.fr.MaxHeaderListSize = t.maxHeaderListSize()++ // TODO: SetMaxDynamicTableSize, SetMaxDynamicTableSizeLimit on+ // henc in response to SETTINGS frames?+ cc.henc = hpack.NewEncoder(&cc.hbuf)++ if cs, ok := c.(connectionStater); ok {+ state := cs.ConnectionState()+ cc.tlsState = &state+ }++ initialSettings := []Setting{+ {ID: SettingEnablePush, Val: 0},+ {ID: SettingInitialWindowSize, Val: transportDefaultStreamFlow},+ }+ if max := t.maxHeaderListSize(); max != 0 {+ initialSettings = append(initialSettings, Setting{ID: SettingMaxHeaderListSize, Val: max})+ }++ cc.bw.Write(clientPreface)+ cc.fr.WriteSettings(initialSettings...)+ cc.fr.WriteWindowUpdate(0, transportDefaultConnFlow)+ cc.inflow.add(transportDefaultConnFlow + initialWindowSize)+ cc.bw.Flush()+ if cc.werr != nil {+ return nil, cc.werr+ }++ go cc.readLoop()+ return cc, nil+}++func (cc *ClientConn) setGoAway(f *GoAwayFrame) {+ cc.mu.Lock()+ defer cc.mu.Unlock()++ old := cc.goAway+ cc.goAway = f++ // Merge the previous and current GoAway error frames.+ if cc.goAwayDebug == "" {+ cc.goAwayDebug = string(f.DebugData())+ }+ if old != nil && old.ErrCode != ErrCodeNo {+ cc.goAway.ErrCode = old.ErrCode+ }+}++func (cc *ClientConn) CanTakeNewRequest() bool {+ cc.mu.Lock()+ defer cc.mu.Unlock()+ return cc.canTakeNewRequestLocked()+}++func (cc *ClientConn) canTakeNewRequestLocked() bool {+ if cc.singleUse && cc.nextStreamID > 1 {+ return false+ }+ return cc.goAway == nil && !cc.closed &&+ int64(len(cc.streams)+1) < int64(cc.maxConcurrentStreams) &&+ cc.nextStreamID < math.MaxInt32+}++// onIdleTimeout is called from a time.AfterFunc goroutine. It will+// only be called when we're idle, but because we're coming from a new+// goroutine, there could be a new request coming in at the same time,+// so this simply calls the synchronized closeIfIdle to shut down this+// connection. The timer could just call closeIfIdle, but this is more+// clear.+func (cc *ClientConn) onIdleTimeout() {+ cc.closeIfIdle()+}++func (cc *ClientConn) closeIfIdle() {+ cc.mu.Lock()+ if len(cc.streams) > 0 {+ cc.mu.Unlock()+ return+ }+ cc.closed = true+ nextID := cc.nextStreamID+ // TODO: do clients send GOAWAY too? maybe? Just Close:+ cc.mu.Unlock()++ if VerboseLogs {+ cc.vlogf("http2: Transport closing idle conn %p (forSingleUse=%v, maxStream=%v)", cc, cc.singleUse, nextID-2)+ }+ cc.tconn.Close()+}++const maxAllocFrameSize = 512 << 10++// frameBuffer returns a scratch buffer suitable for writing DATA frames.+// They're capped at the min of the peer's max frame size or 512KB+// (kinda arbitrarily), but definitely capped so we don't allocate 4GB+// bufers.+func (cc *ClientConn) frameScratchBuffer() []byte {+ cc.mu.Lock()+ size := cc.maxFrameSize+ if size > maxAllocFrameSize {+ size = maxAllocFrameSize+ }+ for i, buf := range cc.freeBuf {+ if len(buf) >= int(size) {+ cc.freeBuf[i] = nil+ cc.mu.Unlock()+ return buf[:size]+ }+ }+ cc.mu.Unlock()+ return make([]byte, size)+}++func (cc *ClientConn) putFrameScratchBuffer(buf []byte) {+ cc.mu.Lock()+ defer cc.mu.Unlock()+ const maxBufs = 4 // arbitrary; 4 concurrent requests per conn? investigate.+ if len(cc.freeBuf) < maxBufs {+ cc.freeBuf = append(cc.freeBuf, buf)+ return+ }+ for i, old := range cc.freeBuf {+ if old == nil {+ cc.freeBuf[i] = buf+ return+ }+ }+ // forget about it.+}++// errRequestCanceled is a copy of net/http's errRequestCanceled because it's not+// exported. At least they'll be DeepEqual for h1-vs-h2 comparisons tests.+var errRequestCanceled = errors.New("net/http: request canceled")++func commaSeparatedTrailers(req *http.Request) (string, error) {+ keys := make([]string, 0, len(req.Trailer))+ for k := range req.Trailer {+ k = http.CanonicalHeaderKey(k)+ switch k {+ case "Transfer-Encoding", "Trailer", "Content-Length":+ return "", &badStringError{"invalid Trailer key", k}+ }+ keys = append(keys, k)+ }+ if len(keys) > 0 {+ sort.Strings(keys)+ // TODO: could do better allocation-wise here, but trailers are rare,+ // so being lazy for now.+ return strings.Join(keys, ","), nil+ }+ return "", nil+}++func (cc *ClientConn) responseHeaderTimeout() time.Duration {+ if cc.t.t1 != nil {+ return cc.t.t1.ResponseHeaderTimeout+ }+ // No way to do this (yet?) with just an http2.Transport. Probably+ // no need. Request.Cancel this is the new way. We only need to support+ // this for compatibility with the old http.Transport fields when+ // we're doing transparent http2.+ return 0+}++// checkConnHeaders checks whether req has any invalid connection-level headers.+// per RFC 7540 section 8.1.2.2: Connection-Specific Header Fields.+// Certain headers are special-cased as okay but not transmitted later.+func checkConnHeaders(req *http.Request) error {+ if v := req.Header.Get("Upgrade"); v != "" {+ return fmt.Errorf("http2: invalid Upgrade request header: %q", req.Header["Upgrade"])+ }+ if vv := req.Header["Transfer-Encoding"]; len(vv) > 0 && (len(vv) > 1 || vv[0] != "" && vv[0] != "chunked") {+ return fmt.Errorf("http2: invalid Transfer-Encoding request header: %q", vv)+ }+ if vv := req.Header["Connection"]; len(vv) > 0 && (len(vv) > 1 || vv[0] != "" && vv[0] != "close" && vv[0] != "keep-alive") {+ return fmt.Errorf("http2: invalid Connection request header: %q", vv)+ }+ return nil+}++// actualContentLength returns a sanitized version of+// req.ContentLength, where 0 actually means zero (not unknown) and -1+// means unknown.+func actualContentLength(req *http.Request) int64 {+ if req.Body == nil {+ return 0+ }+ if req.ContentLength != 0 {+ return req.ContentLength+ }+ return -1+}++func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) {+ if err := checkConnHeaders(req); err != nil {+ return nil, err+ }+ if cc.idleTimer != nil {+ cc.idleTimer.Stop()+ }++ trailers, err := commaSeparatedTrailers(req)+ if err != nil {+ return nil, err+ }+ hasTrailers := trailers != ""++ cc.mu.Lock()+ cc.lastActive = time.Now()+ if cc.closed || !cc.canTakeNewRequestLocked() {+ cc.mu.Unlock()+ return nil, errClientConnUnusable+ }++ body := req.Body+ hasBody := body != nil+ contentLen := actualContentLength(req)++ // TODO(bradfitz): this is a copy of the logic in net/http. Unify somewhere?+ var requestedGzip bool+ if !cc.t.disableCompression() &&+ req.Header.Get("Accept-Encoding") == "" &&+ req.Header.Get("Range") == "" &&+ req.Method != "HEAD" {+ // Request gzip only, not deflate. Deflate is ambiguous and+ // not as universally supported anyway.+ // See: http://www.gzip.org/zlib/zlib_faq.html#faq38+ //+ // Note that we don't request this for HEAD requests,+ // due to a bug in nginx:+ // http://trac.nginx.org/nginx/ticket/358+ // https://golang.org/issue/5522+ //+ // We don't request gzip if the request is for a range, since+ // auto-decoding a portion of a gzipped document will just fail+ // anyway. See https://golang.org/issue/8923+ requestedGzip = true+ }++ // we send: HEADERS{1}, CONTINUATION{0,} + DATA{0,} (DATA is+ // sent by writeRequestBody below, along with any Trailers,+ // again in form HEADERS{1}, CONTINUATION{0,})+ hdrs, err := cc.encodeHeaders(req, requestedGzip, trailers, contentLen)+ if err != nil {+ cc.mu.Unlock()+ return nil, err+ }++ cs := cc.newStream()+ cs.req = req+ cs.trace = requestTrace(req)+ cs.requestedGzip = requestedGzip+ bodyWriter := cc.t.getBodyWriterState(cs, body)+ cs.on100 = bodyWriter.on100++ cc.wmu.Lock()+ endStream := !hasBody && !hasTrailers+ werr := cc.writeHeaders(cs.ID, endStream, hdrs)+ cc.wmu.Unlock()+ traceWroteHeaders(cs.trace)+ cc.mu.Unlock()++ if werr != nil {+ if hasBody {+ req.Body.Close() // per RoundTripper contract+ bodyWriter.cancel()+ }+ cc.forgetStreamID(cs.ID)+ // Don't bother sending a RST_STREAM (our write already failed;+ // no need to keep writing)+ traceWroteRequest(cs.trace, werr)+ return nil, werr+ }++ var respHeaderTimer <-chan time.Time+ if hasBody {+ bodyWriter.scheduleBodyWrite()+ } else {+ traceWroteRequest(cs.trace, nil)+ if d := cc.responseHeaderTimeout(); d != 0 {+ timer := time.NewTimer(d)+ defer timer.Stop()+ respHeaderTimer = timer.C+ }+ }++ readLoopResCh := cs.resc+ bodyWritten := false+ ctx := reqContext(req)++ handleReadLoopResponse := func(re resAndError) (*http.Response, error) {+ res := re.res+ if re.err != nil || res.StatusCode > 299 {+ // On error or status code 3xx, 4xx, 5xx, etc abort any+ // ongoing write, assuming that the server doesn't care+ // about our request body. If the server replied with 1xx or+ // 2xx, however, then assume the server DOES potentially+ // want our body (e.g. full-duplex streaming:+ // golang.org/issue/13444). If it turns out the server+ // doesn't, they'll RST_STREAM us soon enough. This is a+ // heuristic to avoid adding knobs to Transport. Hopefully+ // we can keep it.+ bodyWriter.cancel()+ cs.abortRequestBodyWrite(errStopReqBodyWrite)+ }+ if re.err != nil {+ cc.forgetStreamID(cs.ID)+ return nil, re.err+ }+ res.Request = req+ res.TLS = cc.tlsState+ return res, nil+ }++ for {+ select {+ case re := <-readLoopResCh:+ return handleReadLoopResponse(re)+ case <-respHeaderTimer:+ cc.forgetStreamID(cs.ID)+ if !hasBody || bodyWritten {+ cc.writeStreamReset(cs.ID, ErrCodeCancel, nil)+ } else {+ bodyWriter.cancel()+ cs.abortRequestBodyWrite(errStopReqBodyWriteAndCancel)+ }+ return nil, errTimeout+ case <-ctx.Done():+ cc.forgetStreamID(cs.ID)+ if !hasBody || bodyWritten {+ cc.writeStreamReset(cs.ID, ErrCodeCancel, nil)+ } else {+ bodyWriter.cancel()+ cs.abortRequestBodyWrite(errStopReqBodyWriteAndCancel)+ }+ return nil, ctx.Err()+ case <-req.Cancel:+ cc.forgetStreamID(cs.ID)+ if !hasBody || bodyWritten {+ cc.writeStreamReset(cs.ID, ErrCodeCancel, nil)+ } else {+ bodyWriter.cancel()+ cs.abortRequestBodyWrite(errStopReqBodyWriteAndCancel)+ }+ return nil, errRequestCanceled+ case <-cs.peerReset:+ // processResetStream already removed the+ // stream from the streams map; no need for+ // forgetStreamID.+ return nil, cs.resetErr+ case err := <-bodyWriter.resc:+ // Prefer the read loop's response, if available. Issue 16102.+ select {+ case re := <-readLoopResCh:+ return handleReadLoopResponse(re)+ default:+ }+ if err != nil {+ return nil, err+ }+ bodyWritten = true+ if d := cc.responseHeaderTimeout(); d != 0 {+ timer := time.NewTimer(d)+ defer timer.Stop()+ respHeaderTimer = timer.C+ }+ }+ }+}++// requires cc.wmu be held+func (cc *ClientConn) writeHeaders(streamID uint32, endStream bool, hdrs []byte) error {+ first := true // first frame written (HEADERS is first, then CONTINUATION)+ frameSize := int(cc.maxFrameSize)+ for len(hdrs) > 0 && cc.werr == nil {+ chunk := hdrs+ if len(chunk) > frameSize {+ chunk = chunk[:frameSize]+ }+ hdrs = hdrs[len(chunk):]+ endHeaders := len(hdrs) == 0+ if first {+ cc.fr.WriteHeaders(HeadersFrameParam{+ StreamID: streamID,+ BlockFragment: chunk,+ EndStream: endStream,+ EndHeaders: endHeaders,+ })+ first = false+ } else {+ cc.fr.WriteContinuation(streamID, endHeaders, chunk)+ }+ }+ // TODO(bradfitz): this Flush could potentially block (as+ // could the WriteHeaders call(s) above), which means they+ // wouldn't respond to Request.Cancel being readable. That's+ // rare, but this should probably be in a goroutine.+ cc.bw.Flush()+ return cc.werr+}++// internal error values; they don't escape to callers+var (+ // abort request body write; don't send cancel+ errStopReqBodyWrite = errors.New("http2: aborting request body write")++ // abort request body write, but send stream reset of cancel.+ errStopReqBodyWriteAndCancel = errors.New("http2: canceling request")+)++func (cs *clientStream) writeRequestBody(body io.Reader, bodyCloser io.Closer) (err error) {+ cc := cs.cc+ sentEnd := false // whether we sent the final DATA frame w/ END_STREAM+ buf := cc.frameScratchBuffer()+ defer cc.putFrameScratchBuffer(buf)++ defer func() {+ traceWroteRequest(cs.trace, err)+ // TODO: write h12Compare test showing whether+ // Request.Body is closed by the Transport,+ // and in multiple cases: server replies <=299 and >299+ // while still writing request body+ cerr := bodyCloser.Close()+ if err == nil {+ err = cerr+ }+ }()++ req := cs.req+ hasTrailers := req.Trailer != nil++ var sawEOF bool+ for !sawEOF {+ n, err := body.Read(buf)+ if err == io.EOF {+ sawEOF = true+ err = nil+ } else if err != nil {+ return err+ }++ remain := buf[:n]+ for len(remain) > 0 && err == nil {+ var allowed int32+ allowed, err = cs.awaitFlowControl(len(remain))+ switch {+ case err == errStopReqBodyWrite:+ return err+ case err == errStopReqBodyWriteAndCancel:+ cc.writeStreamReset(cs.ID, ErrCodeCancel, nil)+ return err+ case err != nil:+ return err+ }+ cc.wmu.Lock()+ data := remain[:allowed]+ remain = remain[allowed:]+ sentEnd = sawEOF && len(remain) == 0 && !hasTrailers+ err = cc.fr.WriteData(cs.ID, sentEnd, data)+ if err == nil {+ // TODO(bradfitz): this flush is for latency, not bandwidth.+ // Most requests won't need this. Make this opt-in or+ // opt-out? Use some heuristic on the body type? Nagel-like+ // timers? Based on 'n'? Only last chunk of this for loop,+ // unless flow control tokens are low? For now, always.+ // If we change this, see comment below.+ err = cc.bw.Flush()+ }+ cc.wmu.Unlock()+ }+ if err != nil {+ return err+ }+ }++ if sentEnd {+ // Already sent END_STREAM (which implies we have no+ // trailers) and flushed, because currently all+ // WriteData frames above get a flush. So we're done.+ return nil+ }++ var trls []byte+ if hasTrailers {+ cc.mu.Lock()+ defer cc.mu.Unlock()+ trls = cc.encodeTrailers(req)+ }++ cc.wmu.Lock()+ defer cc.wmu.Unlock()++ // Two ways to send END_STREAM: either with trailers, or+ // with an empty DATA frame.+ if len(trls) > 0 {+ err = cc.writeHeaders(cs.ID, true, trls)+ } else {+ err = cc.fr.WriteData(cs.ID, true, nil)+ }+ if ferr := cc.bw.Flush(); ferr != nil && err == nil {+ err = ferr+ }+ return err+}++// awaitFlowControl waits for [1, min(maxBytes, cc.cs.maxFrameSize)] flow+// control tokens from the server.+// It returns either the non-zero number of tokens taken or an error+// if the stream is dead.+func (cs *clientStream) awaitFlowControl(maxBytes int) (taken int32, err error) {+ cc := cs.cc+ cc.mu.Lock()+ defer cc.mu.Unlock()+ for {+ if cc.closed {+ return 0, errClientConnClosed+ }+ if cs.stopReqBody != nil {+ return 0, cs.stopReqBody+ }+ if err := cs.checkResetOrDone(); err != nil {+ return 0, err+ }+ if a := cs.flow.available(); a > 0 {+ take := a+ if int(take) > maxBytes {++ take = int32(maxBytes) // can't truncate int; take is int32+ }+ if take > int32(cc.maxFrameSize) {+ take = int32(cc.maxFrameSize)+ }+ cs.flow.take(take)+ return take, nil+ }+ cc.cond.Wait()+ }+}++type badStringError struct {+ what string+ str string+}++func (e *badStringError) Error() string { return fmt.Sprintf("%s %q", e.what, e.str) }++// requires cc.mu be held.+func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trailers string, contentLength int64) ([]byte, error) {+ cc.hbuf.Reset()++ host := req.Host+ if host == "" {+ host = req.URL.Host+ }+ host, err := httplex.PunycodeHostPort(host)+ if err != nil {+ return nil, err+ }++ var path string+ if req.Method != "CONNECT" {+ path = req.URL.RequestURI()+ if !validPseudoPath(path) {+ orig := path+ path = strings.TrimPrefix(path, req.URL.Scheme+"://"+host)+ if !validPseudoPath(path) {+ if req.URL.Opaque != "" {+ return nil, fmt.Errorf("invalid request :path %q from URL.Opaque = %q", orig, req.URL.Opaque)+ } else {+ return nil, fmt.Errorf("invalid request :path %q", orig)+ }+ }+ }+ }++ // Check for any invalid headers and return an error before we+ // potentially pollute our hpack state. (We want to be able to+ // continue to reuse the hpack encoder for future requests)+ for k, vv := range req.Header {+ if !httplex.ValidHeaderFieldName(k) {+ return nil, fmt.Errorf("invalid HTTP header name %q", k)+ }+ for _, v := range vv {+ if !httplex.ValidHeaderFieldValue(v) {+ return nil, fmt.Errorf("invalid HTTP header value %q for header %q", v, k)+ }+ }+ }++ // 8.1.2.3 Request Pseudo-Header Fields+ // The :path pseudo-header field includes the path and query parts of the+ // target URI (the path-absolute production and optionally a '?' character+ // followed by the query production (see Sections 3.3 and 3.4 of+ // [RFC3986]).+ cc.writeHeader(":authority", host)+ cc.writeHeader(":method", req.Method)+ if req.Method != "CONNECT" {+ cc.writeHeader(":path", path)+ cc.writeHeader(":scheme", req.URL.Scheme)+ }+ if trailers != "" {+ cc.writeHeader("trailer", trailers)+ }++ var didUA bool+ for k, vv := range req.Header {+ lowKey := strings.ToLower(k)+ switch lowKey {+ case "host", "content-length":+ // Host is :authority, already sent.+ // Content-Length is automatic, set below.+ continue+ case "connection", "proxy-connection", "transfer-encoding", "upgrade", "keep-alive":+ // Per 8.1.2.2 Connection-Specific Header+ // Fields, don't send connection-specific+ // fields. We have already checked if any+ // are error-worthy so just ignore the rest.+ continue+ case "user-agent":+ // Match Go's http1 behavior: at most one+ // User-Agent. If set to nil or empty string,+ // then omit it. Otherwise if not mentioned,+ // include the default (below).+ didUA = true+ if len(vv) < 1 {+ continue+ }+ vv = vv[:1]+ if vv[0] == "" {+ continue+ }+ }+ for _, v := range vv {+ cc.writeHeader(lowKey, v)+ }+ }+ if shouldSendReqContentLength(req.Method, contentLength) {+ cc.writeHeader("content-length", strconv.FormatInt(contentLength, 10))+ }+ if addGzipHeader {+ cc.writeHeader("accept-encoding", "gzip")+ }+ if !didUA {+ cc.writeHeader("user-agent", defaultUserAgent)+ }+ return cc.hbuf.Bytes(), nil+}++// shouldSendReqContentLength reports whether the http2.Transport should send+// a "content-length" request header. This logic is basically a copy of the net/http+// transferWriter.shouldSendContentLength.+// The contentLength is the corrected contentLength (so 0 means actually 0, not unknown).+// -1 means unknown.+func shouldSendReqContentLength(method string, contentLength int64) bool {+ if contentLength > 0 {+ return true+ }+ if contentLength < 0 {+ return false+ }+ // For zero bodies, whether we send a content-length depends on the method.+ // It also kinda doesn't matter for http2 either way, with END_STREAM.+ switch method {+ case "POST", "PUT", "PATCH":+ return true+ default:+ return false+ }+}++// requires cc.mu be held.+func (cc *ClientConn) encodeTrailers(req *http.Request) []byte {+ cc.hbuf.Reset()+ for k, vv := range req.Trailer {+ // Transfer-Encoding, etc.. have already been filter at the+ // start of RoundTrip+ lowKey := strings.ToLower(k)+ for _, v := range vv {+ cc.writeHeader(lowKey, v)+ }+ }+ return cc.hbuf.Bytes()+}++func (cc *ClientConn) writeHeader(name, value string) {+ if VerboseLogs {+ log.Printf("http2: Transport encoding header %q = %q", name, value)+ }+ cc.henc.WriteField(hpack.HeaderField{Name: name, Value: value})+}++type resAndError struct {+ res *http.Response+ err error+}++// requires cc.mu be held.+func (cc *ClientConn) newStream() *clientStream {+ cs := &clientStream{+ cc: cc,+ ID: cc.nextStreamID,+ resc: make(chan resAndError, 1),+ peerReset: make(chan struct{}),+ done: make(chan struct{}),+ }+ cs.flow.add(int32(cc.initialWindowSize))+ cs.flow.setConnFlow(&cc.flow)+ cs.inflow.add(transportDefaultStreamFlow)+ cs.inflow.setConnFlow(&cc.inflow)+ cc.nextStreamID += 2+ cc.streams[cs.ID] = cs+ return cs+}++func (cc *ClientConn) forgetStreamID(id uint32) {+ cc.streamByID(id, true)+}++func (cc *ClientConn) streamByID(id uint32, andRemove bool) *clientStream {+ cc.mu.Lock()+ defer cc.mu.Unlock()+ cs := cc.streams[id]+ if andRemove && cs != nil && !cc.closed {+ cc.lastActive = time.Now()+ delete(cc.streams, id)+ if len(cc.streams) == 0 && cc.idleTimer != nil {+ cc.idleTimer.Reset(cc.idleTimeout)+ }+ close(cs.done)+ cc.cond.Broadcast() // wake up checkResetOrDone via clientStream.awaitFlowControl+ }+ return cs+}++// clientConnReadLoop is the state owned by the clientConn's frame-reading readLoop.+type clientConnReadLoop struct {+ cc *ClientConn+ activeRes map[uint32]*clientStream // keyed by streamID+ closeWhenIdle bool+}++// readLoop runs in its own goroutine and reads and dispatches frames.+func (cc *ClientConn) readLoop() {+ rl := &clientConnReadLoop{+ cc: cc,+ activeRes: make(map[uint32]*clientStream),+ }++ defer rl.cleanup()+ cc.readerErr = rl.run()+ if ce, ok := cc.readerErr.(ConnectionError); ok {+ cc.wmu.Lock()+ cc.fr.WriteGoAway(0, ErrCode(ce), nil)+ cc.wmu.Unlock()+ }+}++// GoAwayError is returned by the Transport when the server closes the+// TCP connection after sending a GOAWAY frame.+type GoAwayError struct {+ LastStreamID uint32+ ErrCode ErrCode+ DebugData string+}++func (e GoAwayError) Error() string {+ return fmt.Sprintf("http2: server sent GOAWAY and closed the connection; LastStreamID=%v, ErrCode=%v, debug=%q",+ e.LastStreamID, e.ErrCode, e.DebugData)+}++func isEOFOrNetReadError(err error) bool {+ if err == io.EOF {+ return true+ }+ ne, ok := err.(*net.OpError)+ return ok && ne.Op == "read"+}++func (rl *clientConnReadLoop) cleanup() {+ cc := rl.cc+ defer cc.tconn.Close()+ defer cc.t.connPool().MarkDead(cc)+ defer close(cc.readerDone)++ if cc.idleTimer != nil {+ cc.idleTimer.Stop()+ }++ // Close any response bodies if the server closes prematurely.+ // TODO: also do this if we've written the headers but not+ // gotten a response yet.+ err := cc.readerErr+ cc.mu.Lock()+ if cc.goAway != nil && isEOFOrNetReadError(err) {+ err = GoAwayError{+ LastStreamID: cc.goAway.LastStreamID,+ ErrCode: cc.goAway.ErrCode,+ DebugData: cc.goAwayDebug,+ }+ } else if err == io.EOF {+ err = io.ErrUnexpectedEOF+ }+ for _, cs := range rl.activeRes {+ cs.bufPipe.CloseWithError(err)+ }+ for _, cs := range cc.streams {+ select {+ case cs.resc <- resAndError{err: err}:+ default:+ }+ close(cs.done)+ }+ cc.closed = true+ cc.cond.Broadcast()+ cc.mu.Unlock()+}++func (rl *clientConnReadLoop) run() error {+ cc := rl.cc+ rl.closeWhenIdle = cc.t.disableKeepAlives() || cc.singleUse+ gotReply := false // ever saw a HEADERS reply+ gotSettings := false+ for {+ f, err := cc.fr.ReadFrame()+ if err != nil {+ cc.vlogf("http2: Transport readFrame error on conn %p: (%T) %v", cc, err, err)+ }+ if se, ok := err.(StreamError); ok {+ if cs := cc.streamByID(se.StreamID, true /*ended; remove it*/); cs != nil {+ cs.cc.writeStreamReset(cs.ID, se.Code, err)+ if se.Cause == nil {+ se.Cause = cc.fr.errDetail+ }+ rl.endStreamError(cs, se)+ }+ continue+ } else if err != nil {+ return err+ }+ if VerboseLogs {+ cc.vlogf("http2: Transport received %s", summarizeFrame(f))+ }+ if !gotSettings {+ if _, ok := f.(*SettingsFrame); !ok {+ cc.logf("protocol error: received %T before a SETTINGS frame", f)+ return ConnectionError(ErrCodeProtocol)+ }+ gotSettings = true+ }+ maybeIdle := false // whether frame might transition us to idle++ switch f := f.(type) {+ case *MetaHeadersFrame:+ err = rl.processHeaders(f)+ maybeIdle = true+ gotReply = true+ case *DataFrame:+ err = rl.processData(f)+ maybeIdle = true+ case *GoAwayFrame:+ err = rl.processGoAway(f)+ maybeIdle = true+ case *RSTStreamFrame:+ err = rl.processResetStream(f)+ maybeIdle = true+ case *SettingsFrame:+ err = rl.processSettings(f)+ case *PushPromiseFrame:+ err = rl.processPushPromise(f)+ case *WindowUpdateFrame:+ err = rl.processWindowUpdate(f)+ case *PingFrame:+ err = rl.processPing(f)+ default:+ cc.logf("Transport: unhandled response frame type %T", f)+ }+ if err != nil {+ if VerboseLogs {+ cc.vlogf("http2: Transport conn %p received error from processing frame %v: %v", cc, summarizeFrame(f), err)+ }+ return err+ }+ if rl.closeWhenIdle && gotReply && maybeIdle && len(rl.activeRes) == 0 {+ cc.closeIfIdle()+ }+ }+}++func (rl *clientConnReadLoop) processHeaders(f *MetaHeadersFrame) error {+ cc := rl.cc+ cs := cc.streamByID(f.StreamID, f.StreamEnded())+ if cs == nil {+ // We'd get here if we canceled a request while the+ // server had its response still in flight. So if this+ // was just something we canceled, ignore it.+ return nil+ }+ if !cs.firstByte {+ if cs.trace != nil {+ // TODO(bradfitz): move first response byte earlier,+ // when we first read the 9 byte header, not waiting+ // until all the HEADERS+CONTINUATION frames have been+ // merged. This works for now.+ traceFirstResponseByte(cs.trace)+ }+ cs.firstByte = true+ }+ if !cs.pastHeaders {+ cs.pastHeaders = true+ } else {+ return rl.processTrailers(cs, f)+ }++ res, err := rl.handleResponse(cs, f)+ if err != nil {+ if _, ok := err.(ConnectionError); ok {+ return err+ }+ // Any other error type is a stream error.+ cs.cc.writeStreamReset(f.StreamID, ErrCodeProtocol, err)+ cs.resc <- resAndError{err: err}+ return nil // return nil from process* funcs to keep conn alive+ }+ if res == nil {+ // (nil, nil) special case. See handleResponse docs.+ return nil+ }+ if res.Body != noBody {+ rl.activeRes[cs.ID] = cs+ }+ cs.resTrailer = &res.Trailer+ cs.resc <- resAndError{res: res}+ return nil+}++// may return error types nil, or ConnectionError. Any other error value+// is a StreamError of type ErrCodeProtocol. The returned error in that case+// is the detail.+//+// As a special case, handleResponse may return (nil, nil) to skip the+// frame (currently only used for 100 expect continue). This special+// case is going away after Issue 13851 is fixed.+func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFrame) (*http.Response, error) {+ if f.Truncated {+ return nil, errResponseHeaderListSize+ }++ status := f.PseudoValue("status")+ if status == "" {+ return nil, errors.New("missing status pseudo header")+ }+ statusCode, err := strconv.Atoi(status)+ if err != nil {+ return nil, errors.New("malformed non-numeric status pseudo header")+ }++ if statusCode == 100 {+ traceGot100Continue(cs.trace)+ if cs.on100 != nil {+ cs.on100() // forces any write delay timer to fire+ }+ cs.pastHeaders = false // do it all again+ return nil, nil+ }++ header := make(http.Header)+ res := &http.Response{+ Proto: "HTTP/2.0",+ ProtoMajor: 2,+ Header: header,+ StatusCode: statusCode,+ Status: status + " " + http.StatusText(statusCode),+ }+ for _, hf := range f.RegularFields() {+ key := http.CanonicalHeaderKey(hf.Name)+ if key == "Trailer" {+ t := res.Trailer+ if t == nil {+ t = make(http.Header)+ res.Trailer = t+ }+ foreachHeaderElement(hf.Value, func(v string) {+ t[http.CanonicalHeaderKey(v)] = nil+ })+ } else {+ header[key] = append(header[key], hf.Value)+ }+ }++ streamEnded := f.StreamEnded()+ isHead := cs.req.Method == "HEAD"+ if !streamEnded || isHead {+ res.ContentLength = -1+ if clens := res.Header["Content-Length"]; len(clens) == 1 {+ if clen64, err := strconv.ParseInt(clens[0], 10, 64); err == nil {+ res.ContentLength = clen64+ } else {+ // TODO: care? unlike http/1, it won't mess up our framing, so it's+ // more safe smuggling-wise to ignore.+ }+ } else if len(clens) > 1 {+ // TODO: care? unlike http/1, it won't mess up our framing, so it's+ // more safe smuggling-wise to ignore.+ }+ }++ if streamEnded || isHead {+ res.Body = noBody+ return res, nil+ }++ buf := new(bytes.Buffer) // TODO(bradfitz): recycle this garbage+ cs.bufPipe = pipe{b: buf}+ cs.bytesRemain = res.ContentLength+ res.Body = transportResponseBody{cs}+ go cs.awaitRequestCancel(cs.req)++ if cs.requestedGzip && res.Header.Get("Content-Encoding") == "gzip" {+ res.Header.Del("Content-Encoding")+ res.Header.Del("Content-Length")+ res.ContentLength = -1+ res.Body = &gzipReader{body: res.Body}+ setResponseUncompressed(res)+ }+ return res, nil+}++func (rl *clientConnReadLoop) processTrailers(cs *clientStream, f *MetaHeadersFrame) error {+ if cs.pastTrailers {+ // Too many HEADERS frames for this stream.+ return ConnectionError(ErrCodeProtocol)+ }+ cs.pastTrailers = true+ if !f.StreamEnded() {+ // We expect that any headers for trailers also+ // has END_STREAM.+ return ConnectionError(ErrCodeProtocol)+ }+ if len(f.PseudoFields()) > 0 {+ // No pseudo header fields are defined for trailers.+ // TODO: ConnectionError might be overly harsh? Check.+ return ConnectionError(ErrCodeProtocol)+ }++ trailer := make(http.Header)+ for _, hf := range f.RegularFields() {+ key := http.CanonicalHeaderKey(hf.Name)+ trailer[key] = append(trailer[key], hf.Value)+ }+ cs.trailer = trailer++ rl.endStream(cs)+ return nil+}++// transportResponseBody is the concrete type of Transport.RoundTrip's+// Response.Body. It is an io.ReadCloser. On Read, it reads from cs.body.+// On Close it sends RST_STREAM if EOF wasn't already seen.+type transportResponseBody struct {+ cs *clientStream+}++func (b transportResponseBody) Read(p []byte) (n int, err error) {+ cs := b.cs+ cc := cs.cc++ if cs.readErr != nil {+ return 0, cs.readErr+ }+ n, err = b.cs.bufPipe.Read(p)+ if cs.bytesRemain != -1 {+ if int64(n) > cs.bytesRemain {+ n = int(cs.bytesRemain)+ if err == nil {+ err = errors.New("net/http: server replied with more than declared Content-Length; truncated")+ cc.writeStreamReset(cs.ID, ErrCodeProtocol, err)+ }+ cs.readErr = err+ return int(cs.bytesRemain), err+ }+ cs.bytesRemain -= int64(n)+ if err == io.EOF && cs.bytesRemain > 0 {+ err = io.ErrUnexpectedEOF+ cs.readErr = err+ return n, err+ }+ }+ if n == 0 {+ // No flow control tokens to send back.+ return+ }++ cc.mu.Lock()+ defer cc.mu.Unlock()++ var connAdd, streamAdd int32+ // Check the conn-level first, before the stream-level.+ if v := cc.inflow.available(); v < transportDefaultConnFlow/2 {+ connAdd = transportDefaultConnFlow - v+ cc.inflow.add(connAdd)+ }+ if err == nil { // No need to refresh if the stream is over or failed.+ // Consider any buffered body data (read from the conn but not+ // consumed by the client) when computing flow control for this+ // stream.+ v := int(cs.inflow.available()) + cs.bufPipe.Len()+ if v < transportDefaultStreamFlow-transportDefaultStreamMinRefresh {+ streamAdd = int32(transportDefaultStreamFlow - v)+ cs.inflow.add(streamAdd)+ }+ }+ if connAdd != 0 || streamAdd != 0 {+ cc.wmu.Lock()+ defer cc.wmu.Unlock()+ if connAdd != 0 {+ cc.fr.WriteWindowUpdate(0, mustUint31(connAdd))+ }+ if streamAdd != 0 {+ cc.fr.WriteWindowUpdate(cs.ID, mustUint31(streamAdd))+ }+ cc.bw.Flush()+ }+ return+}++var errClosedResponseBody = errors.New("http2: response body closed")++func (b transportResponseBody) Close() error {+ cs := b.cs+ cc := cs.cc++ serverSentStreamEnd := cs.bufPipe.Err() == io.EOF+ unread := cs.bufPipe.Len()++ if unread > 0 || !serverSentStreamEnd {+ cc.mu.Lock()+ cc.wmu.Lock()+ if !serverSentStreamEnd {+ cc.fr.WriteRSTStream(cs.ID, ErrCodeCancel)+ }+ // Return connection-level flow control.+ if unread > 0 {+ cc.inflow.add(int32(unread))+ cc.fr.WriteWindowUpdate(0, uint32(unread))+ }+ cc.bw.Flush()+ cc.wmu.Unlock()+ cc.mu.Unlock()+ }++ cs.bufPipe.BreakWithError(errClosedResponseBody)+ return nil+}++func (rl *clientConnReadLoop) processData(f *DataFrame) error {+ cc := rl.cc+ cs := cc.streamByID(f.StreamID, f.StreamEnded())+ data := f.Data()+ if cs == nil {+ cc.mu.Lock()+ neverSent := cc.nextStreamID+ cc.mu.Unlock()+ if f.StreamID >= neverSent {+ // We never asked for this.+ cc.logf("http2: Transport received unsolicited DATA frame; closing connection")+ return ConnectionError(ErrCodeProtocol)+ }+ // We probably did ask for this, but canceled. Just ignore it.+ // TODO: be stricter here? only silently ignore things which+ // we canceled, but not things which were closed normally+ // by the peer? Tough without accumulating too much state.++ // But at least return their flow control:+ if f.Length > 0 {+ cc.mu.Lock()+ cc.inflow.add(int32(f.Length))+ cc.mu.Unlock()++ cc.wmu.Lock()+ cc.fr.WriteWindowUpdate(0, uint32(f.Length))+ cc.bw.Flush()+ cc.wmu.Unlock()+ }+ return nil+ }+ if f.Length > 0 {+ if len(data) > 0 && cs.bufPipe.b == nil {+ // Data frame after it's already closed?+ cc.logf("http2: Transport received DATA frame for closed stream; closing connection")+ return ConnectionError(ErrCodeProtocol)+ }++ // Check connection-level flow control.+ cc.mu.Lock()+ if cs.inflow.available() >= int32(f.Length) {+ cs.inflow.take(int32(f.Length))+ } else {+ cc.mu.Unlock()+ return ConnectionError(ErrCodeFlowControl)+ }+ // Return any padded flow control now, since we won't+ // refund it later on body reads.+ if pad := int32(f.Length) - int32(len(data)); pad > 0 {+ cs.inflow.add(pad)+ cc.inflow.add(pad)+ cc.wmu.Lock()+ cc.fr.WriteWindowUpdate(0, uint32(pad))+ cc.fr.WriteWindowUpdate(cs.ID, uint32(pad))+ cc.bw.Flush()+ cc.wmu.Unlock()+ }+ didReset := cs.didReset+ cc.mu.Unlock()++ if len(data) > 0 && !didReset {+ if _, err := cs.bufPipe.Write(data); err != nil {+ rl.endStreamError(cs, err)+ return err+ }+ }+ }++ if f.StreamEnded() {+ rl.endStream(cs)+ }+ return nil+}++var errInvalidTrailers = errors.New("http2: invalid trailers")++func (rl *clientConnReadLoop) endStream(cs *clientStream) {+ // TODO: check that any declared content-length matches, like+ // server.go's (*stream).endStream method.+ rl.endStreamError(cs, nil)+}++func (rl *clientConnReadLoop) endStreamError(cs *clientStream, err error) {+ var code func()+ if err == nil {+ err = io.EOF+ code = cs.copyTrailers+ }+ cs.bufPipe.closeWithErrorAndCode(err, code)+ delete(rl.activeRes, cs.ID)+ if isConnectionCloseRequest(cs.req) {+ rl.closeWhenIdle = true+ }++ select {+ case cs.resc <- resAndError{err: err}:+ default:+ }+}++func (cs *clientStream) copyTrailers() {+ for k, vv := range cs.trailer {+ t := cs.resTrailer+ if *t == nil {+ *t = make(http.Header)+ }+ (*t)[k] = vv+ }+}++func (rl *clientConnReadLoop) processGoAway(f *GoAwayFrame) error {+ cc := rl.cc+ cc.t.connPool().MarkDead(cc)+ if f.ErrCode != 0 {+ // TODO: deal with GOAWAY more. particularly the error code+ cc.vlogf("transport got GOAWAY with error code = %v", f.ErrCode)+ }+ cc.setGoAway(f)+ return nil+}++func (rl *clientConnReadLoop) processSettings(f *SettingsFrame) error {+ cc := rl.cc+ cc.mu.Lock()+ defer cc.mu.Unlock()++ if f.IsAck() {+ if cc.wantSettingsAck {+ cc.wantSettingsAck = false+ return nil+ }+ return ConnectionError(ErrCodeProtocol)+ }++ err := f.ForeachSetting(func(s Setting) error {+ switch s.ID {+ case SettingMaxFrameSize:+ cc.maxFrameSize = s.Val+ case SettingMaxConcurrentStreams:+ cc.maxConcurrentStreams = s.Val+ case SettingInitialWindowSize:+ // Values above the maximum flow-control+ // window size of 2^31-1 MUST be treated as a+ // connection error (Section 5.4.1) of type+ // FLOW_CONTROL_ERROR.+ if s.Val > math.MaxInt32 {+ return ConnectionError(ErrCodeFlowControl)+ }++ // Adjust flow control of currently-open+ // frames by the difference of the old initial+ // window size and this one.+ delta := int32(s.Val) - int32(cc.initialWindowSize)+ for _, cs := range cc.streams {+ cs.flow.add(delta)+ }+ cc.cond.Broadcast()++ cc.initialWindowSize = s.Val+ default:+ // TODO(bradfitz): handle more settings? SETTINGS_HEADER_TABLE_SIZE probably.+ cc.vlogf("Unhandled Setting: %v", s)+ }+ return nil+ })+ if err != nil {+ return err+ }++ cc.wmu.Lock()+ defer cc.wmu.Unlock()++ cc.fr.WriteSettingsAck()+ cc.bw.Flush()+ return cc.werr+}++func (rl *clientConnReadLoop) processWindowUpdate(f *WindowUpdateFrame) error {+ cc := rl.cc+ cs := cc.streamByID(f.StreamID, false)+ if f.StreamID != 0 && cs == nil {+ return nil+ }++ cc.mu.Lock()+ defer cc.mu.Unlock()++ fl := &cc.flow+ if cs != nil {+ fl = &cs.flow+ }+ if !fl.add(int32(f.Increment)) {+ return ConnectionError(ErrCodeFlowControl)+ }+ cc.cond.Broadcast()+ return nil+}++func (rl *clientConnReadLoop) processResetStream(f *RSTStreamFrame) error {+ cs := rl.cc.streamByID(f.StreamID, true)+ if cs == nil {+ // TODO: return error if server tries to RST_STEAM an idle stream+ return nil+ }+ select {+ case <-cs.peerReset:+ // Already reset.+ // This is the only goroutine+ // which closes this, so there+ // isn't a race.+ default:+ err := streamError(cs.ID, f.ErrCode)+ cs.resetErr = err+ close(cs.peerReset)+ cs.bufPipe.CloseWithError(err)+ cs.cc.cond.Broadcast() // wake up checkResetOrDone via clientStream.awaitFlowControl+ }+ delete(rl.activeRes, cs.ID)+ return nil+}++// Ping sends a PING frame to the server and waits for the ack.+// Public implementation is in go17.go and not_go17.go+func (cc *ClientConn) ping(ctx contextContext) error {+ c := make(chan struct{})+ // Generate a random payload+ var p [8]byte+ for {+ if _, err := rand.Read(p[:]); err != nil {+ return err+ }+ cc.mu.Lock()+ // check for dup before insert+ if _, found := cc.pings[p]; !found {+ cc.pings[p] = c+ cc.mu.Unlock()+ break+ }+ cc.mu.Unlock()+ }+ cc.wmu.Lock()+ if err := cc.fr.WritePing(false, p); err != nil {+ cc.wmu.Unlock()+ return err+ }+ if err := cc.bw.Flush(); err != nil {+ cc.wmu.Unlock()+ return err+ }+ cc.wmu.Unlock()+ select {+ case <-c:+ return nil+ case <-ctx.Done():+ return ctx.Err()+ case <-cc.readerDone:+ // connection closed+ return cc.readerErr+ }+}++func (rl *clientConnReadLoop) processPing(f *PingFrame) error {+ if f.IsAck() {+ cc := rl.cc+ cc.mu.Lock()+ defer cc.mu.Unlock()+ // If ack, notify listener if any+ if c, ok := cc.pings[f.Data]; ok {+ close(c)+ delete(cc.pings, f.Data)+ }+ return nil+ }+ cc := rl.cc+ cc.wmu.Lock()+ defer cc.wmu.Unlock()+ if err := cc.fr.WritePing(true, f.Data); err != nil {+ return err+ }+ return cc.bw.Flush()+}++func (rl *clientConnReadLoop) processPushPromise(f *PushPromiseFrame) error {+ // We told the peer we don't want them.+ // Spec says:+ // "PUSH_PROMISE MUST NOT be sent if the SETTINGS_ENABLE_PUSH+ // setting of the peer endpoint is set to 0. An endpoint that+ // has set this setting and has received acknowledgement MUST+ // treat the receipt of a PUSH_PROMISE frame as a connection+ // error (Section 5.4.1) of type PROTOCOL_ERROR."+ return ConnectionError(ErrCodeProtocol)+}++func (cc *ClientConn) writeStreamReset(streamID uint32, code ErrCode, err error) {+ // TODO: map err to more interesting error codes, once the+ // HTTP community comes up with some. But currently for+ // RST_STREAM there's no equivalent to GOAWAY frame's debug+ // data, and the error codes are all pretty vague ("cancel").+ cc.wmu.Lock()+ cc.fr.WriteRSTStream(streamID, code)+ cc.bw.Flush()+ cc.wmu.Unlock()+}++var (+ errResponseHeaderListSize = errors.New("http2: response header list larger than advertised limit")+ errPseudoTrailers = errors.New("http2: invalid pseudo header in trailers")+)++func (cc *ClientConn) logf(format string, args ...interface{}) {+ cc.t.logf(format, args...)+}++func (cc *ClientConn) vlogf(format string, args ...interface{}) {+ cc.t.vlogf(format, args...)+}++func (t *Transport) vlogf(format string, args ...interface{}) {+ if VerboseLogs {+ t.logf(format, args...)+ }+}++func (t *Transport) logf(format string, args ...interface{}) {+ log.Printf(format, args...)+}++var noBody io.ReadCloser = ioutil.NopCloser(bytes.NewReader(nil))++func strSliceContains(ss []string, s string) bool {+ for _, v := range ss {+ if v == s {+ return true+ }+ }+ return false+}++type erringRoundTripper struct{ err error }++func (rt erringRoundTripper) RoundTrip(*http.Request) (*http.Response, error) { return nil, rt.err }++// gzipReader wraps a response body so it can lazily+// call gzip.NewReader on the first call to Read+type gzipReader struct {+ body io.ReadCloser // underlying Response.Body+ zr *gzip.Reader // lazily-initialized gzip reader+ zerr error // sticky error+}++func (gz *gzipReader) Read(p []byte) (n int, err error) {+ if gz.zerr != nil {+ return 0, gz.zerr+ }+ if gz.zr == nil {+ gz.zr, err = gzip.NewReader(gz.body)+ if err != nil {+ gz.zerr = err+ return 0, err+ }+ }+ return gz.zr.Read(p)+}++func (gz *gzipReader) Close() error {+ return gz.body.Close()+}++type errorReader struct{ err error }++func (r errorReader) Read(p []byte) (int, error) { return 0, r.err }++// bodyWriterState encapsulates various state around the Transport's writing+// of the request body, particularly regarding doing delayed writes of the body+// when the request contains "Expect: 100-continue".+type bodyWriterState struct {+ cs *clientStream+ timer *time.Timer // if non-nil, we're doing a delayed write+ fnonce *sync.Once // to call fn with+ fn func() // the code to run in the goroutine, writing the body+ resc chan error // result of fn's execution+ delay time.Duration // how long we should delay a delayed write for+}++func (t *Transport) getBodyWriterState(cs *clientStream, body io.Reader) (s bodyWriterState) {+ s.cs = cs+ if body == nil {+ return+ }+ resc := make(chan error, 1)+ s.resc = resc+ s.fn = func() {+ resc <- cs.writeRequestBody(body, cs.req.Body)+ }+ s.delay = t.expectContinueTimeout()+ if s.delay == 0 ||+ !httplex.HeaderValuesContainsToken(+ cs.req.Header["Expect"],+ "100-continue") {+ return+ }+ s.fnonce = new(sync.Once)++ // Arm the timer with a very large duration, which we'll+ // intentionally lower later. It has to be large now because+ // we need a handle to it before writing the headers, but the+ // s.delay value is defined to not start until after the+ // request headers were written.+ const hugeDuration = 365 * 24 * time.Hour+ s.timer = time.AfterFunc(hugeDuration, func() {+ s.fnonce.Do(s.fn)+ })+ return+}++func (s bodyWriterState) cancel() {+ if s.timer != nil {+ s.timer.Stop()+ }+}++func (s bodyWriterState) on100() {+ if s.timer == nil {+ // If we didn't do a delayed write, ignore the server's+ // bogus 100 continue response.+ return+ }+ s.timer.Stop()+ go func() { s.fnonce.Do(s.fn) }()+}++// scheduleBodyWrite starts writing the body, either immediately (in+// the common case) or after the delay timeout. It should not be+// called until after the headers have been written.+func (s bodyWriterState) scheduleBodyWrite() {+ if s.timer == nil {+ // We're not doing a delayed write (see+ // getBodyWriterState), so just start the writing+ // goroutine immediately.+ go s.fn()+ return+ }+ traceWait100Continue(s.cs.trace)+ if s.timer.Stop() {+ s.timer.Reset(s.delay)+ }+}++// isConnectionCloseRequest reports whether req should use its own+// connection for a single request and then close the connection.+func isConnectionCloseRequest(req *http.Request) bool {+ return req.Close || httplex.HeaderValuesContainsToken(req.Header["Connection"], "close")+}diff --git a/vendor/golang.org/x/net/http2/write.go b/vendor/golang.org/x/net/http2/write.gonew file mode 100644index 000000000..1c135fdf7--- /dev/null+++ b/vendor/golang.org/x/net/http2/write.go@@ -0,0 +1,369 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package http2++import (+ "bytes"+ "fmt"+ "log"+ "net/http"+ "net/url"+ "time"++ "golang.org/x/net/http2/hpack"+ "golang.org/x/net/lex/httplex"+)++// writeFramer is implemented by any type that is used to write frames.+type writeFramer interface {+ writeFrame(writeContext) error++ // staysWithinBuffer reports whether this writer promises that+ // it will only write less than or equal to size bytes, and it+ // won't Flush the write context.+ staysWithinBuffer(size int) bool+}++// writeContext is the interface needed by the various frame writer+// types below. All the writeFrame methods below are scheduled via the+// frame writing scheduler (see writeScheduler in writesched.go).+//+// This interface is implemented by *serverConn.+//+// TODO: decide whether to a) use this in the client code (which didn't+// end up using this yet, because it has a simpler design, not+// currently implementing priorities), or b) delete this and+// make the server code a bit more concrete.+type writeContext interface {+ Framer() *Framer+ Flush() error+ CloseConn() error+ // HeaderEncoder returns an HPACK encoder that writes to the+ // returned buffer.+ HeaderEncoder() (*hpack.Encoder, *bytes.Buffer)+}++// endsStream reports whether the given frame writer w will locally+// close the stream.+func endsStream(w writeFramer) bool {+ switch v := w.(type) {+ case *writeData:+ return v.endStream+ case *writeResHeaders:+ return v.endStream+ case nil:+ // This can only happen if the caller reuses w after it's+ // been intentionally nil'ed out to prevent use. Keep this+ // here to catch future refactoring breaking it.+ panic("endsStream called on nil writeFramer")+ }+ return false+}++type flushFrameWriter struct{}++func (flushFrameWriter) writeFrame(ctx writeContext) error {+ return ctx.Flush()+}++func (flushFrameWriter) staysWithinBuffer(max int) bool { return false }++type writeSettings []Setting++func (s writeSettings) staysWithinBuffer(max int) bool {+ const settingSize = 6 // uint16 + uint32+ return frameHeaderLen+settingSize*len(s) <= max++}++func (s writeSettings) writeFrame(ctx writeContext) error {+ return ctx.Framer().WriteSettings([]Setting(s)...)+}++type writeGoAway struct {+ maxStreamID uint32+ code ErrCode+}++func (p *writeGoAway) writeFrame(ctx writeContext) error {+ err := ctx.Framer().WriteGoAway(p.maxStreamID, p.code, nil)+ if p.code != 0 {+ ctx.Flush() // ignore error: we're hanging up on them anyway+ time.Sleep(50 * time.Millisecond)+ ctx.CloseConn()+ }+ return err+}++func (*writeGoAway) staysWithinBuffer(max int) bool { return false } // flushes++type writeData struct {+ streamID uint32+ p []byte+ endStream bool+}++func (w *writeData) String() string {+ return fmt.Sprintf("writeData(stream=%d, p=%d, endStream=%v)", w.streamID, len(w.p), w.endStream)+}++func (w *writeData) writeFrame(ctx writeContext) error {+ return ctx.Framer().WriteData(w.streamID, w.endStream, w.p)+}++func (w *writeData) staysWithinBuffer(max int) bool {+ return frameHeaderLen+len(w.p) <= max+}++// handlerPanicRST is the message sent from handler goroutines when+// the handler panics.+type handlerPanicRST struct {+ StreamID uint32+}++func (hp handlerPanicRST) writeFrame(ctx writeContext) error {+ return ctx.Framer().WriteRSTStream(hp.StreamID, ErrCodeInternal)+}++func (hp handlerPanicRST) staysWithinBuffer(max int) bool { return frameHeaderLen+4 <= max }++func (se StreamError) writeFrame(ctx writeContext) error {+ return ctx.Framer().WriteRSTStream(se.StreamID, se.Code)+}++func (se StreamError) staysWithinBuffer(max int) bool { return frameHeaderLen+4 <= max }++type writePingAck struct{ pf *PingFrame }++func (w writePingAck) writeFrame(ctx writeContext) error {+ return ctx.Framer().WritePing(true, w.pf.Data)+}++func (w writePingAck) staysWithinBuffer(max int) bool { return frameHeaderLen+len(w.pf.Data) <= max }++type writeSettingsAck struct{}++func (writeSettingsAck) writeFrame(ctx writeContext) error {+ return ctx.Framer().WriteSettingsAck()+}++func (writeSettingsAck) staysWithinBuffer(max int) bool { return frameHeaderLen <= max }++// splitHeaderBlock splits headerBlock into fragments so that each fragment fits+// in a single frame, then calls fn for each fragment. firstFrag/lastFrag are true+// for the first/last fragment, respectively.+func splitHeaderBlock(ctx writeContext, headerBlock []byte, fn func(ctx writeContext, frag []byte, firstFrag, lastFrag bool) error) error {+ // For now we're lazy and just pick the minimum MAX_FRAME_SIZE+ // that all peers must support (16KB). Later we could care+ // more and send larger frames if the peer advertised it, but+ // there's little point. Most headers are small anyway (so we+ // generally won't have CONTINUATION frames), and extra frames+ // only waste 9 bytes anyway.+ const maxFrameSize = 16384++ first := true+ for len(headerBlock) > 0 {+ frag := headerBlock+ if len(frag) > maxFrameSize {+ frag = frag[:maxFrameSize]+ }+ headerBlock = headerBlock[len(frag):]+ if err := fn(ctx, frag, first, len(headerBlock) == 0); err != nil {+ return err+ }+ first = false+ }+ return nil+}++// writeResHeaders is a request to write a HEADERS and 0+ CONTINUATION frames+// for HTTP response headers or trailers from a server handler.+type writeResHeaders struct {+ streamID uint32+ httpResCode int // 0 means no ":status" line+ h http.Header // may be nil+ trailers []string // if non-nil, which keys of h to write. nil means all.+ endStream bool++ date string+ contentType string+ contentLength string+}++func encKV(enc *hpack.Encoder, k, v string) {+ if VerboseLogs {+ log.Printf("http2: server encoding header %q = %q", k, v)+ }+ enc.WriteField(hpack.HeaderField{Name: k, Value: v})+}++func (w *writeResHeaders) staysWithinBuffer(max int) bool {+ // TODO: this is a common one. It'd be nice to return true+ // here and get into the fast path if we could be clever and+ // calculate the size fast enough, or at least a conservative+ // uppper bound that usually fires. (Maybe if w.h and+ // w.trailers are nil, so we don't need to enumerate it.)+ // Otherwise I'm afraid that just calculating the length to+ // answer this question would be slower than the ~2µs benefit.+ return false+}++func (w *writeResHeaders) writeFrame(ctx writeContext) error {+ enc, buf := ctx.HeaderEncoder()+ buf.Reset()++ if w.httpResCode != 0 {+ encKV(enc, ":status", httpCodeString(w.httpResCode))+ }++ encodeHeaders(enc, w.h, w.trailers)++ if w.contentType != "" {+ encKV(enc, "content-type", w.contentType)+ }+ if w.contentLength != "" {+ encKV(enc, "content-length", w.contentLength)+ }+ if w.date != "" {+ encKV(enc, "date", w.date)+ }++ headerBlock := buf.Bytes()+ if len(headerBlock) == 0 && w.trailers == nil {+ panic("unexpected empty hpack")+ }++ return splitHeaderBlock(ctx, headerBlock, w.writeHeaderBlock)+}++func (w *writeResHeaders) writeHeaderBlock(ctx writeContext, frag []byte, firstFrag, lastFrag bool) error {+ if firstFrag {+ return ctx.Framer().WriteHeaders(HeadersFrameParam{+ StreamID: w.streamID,+ BlockFragment: frag,+ EndStream: w.endStream,+ EndHeaders: lastFrag,+ })+ } else {+ return ctx.Framer().WriteContinuation(w.streamID, lastFrag, frag)+ }+}++// writePushPromise is a request to write a PUSH_PROMISE and 0+ CONTINUATION frames.+type writePushPromise struct {+ streamID uint32 // pusher stream+ method string // for :method+ url *url.URL // for :scheme, :authority, :path+ h http.Header++ // Creates an ID for a pushed stream. This runs on serveG just before+ // the frame is written. The returned ID is copied to promisedID.+ allocatePromisedID func() (uint32, error)+ promisedID uint32+}++func (w *writePushPromise) staysWithinBuffer(max int) bool {+ // TODO: see writeResHeaders.staysWithinBuffer+ return false+}++func (w *writePushPromise) writeFrame(ctx writeContext) error {+ enc, buf := ctx.HeaderEncoder()+ buf.Reset()++ encKV(enc, ":method", w.method)+ encKV(enc, ":scheme", w.url.Scheme)+ encKV(enc, ":authority", w.url.Host)+ encKV(enc, ":path", w.url.RequestURI())+ encodeHeaders(enc, w.h, nil)++ headerBlock := buf.Bytes()+ if len(headerBlock) == 0 {+ panic("unexpected empty hpack")+ }++ return splitHeaderBlock(ctx, headerBlock, w.writeHeaderBlock)+}++func (w *writePushPromise) writeHeaderBlock(ctx writeContext, frag []byte, firstFrag, lastFrag bool) error {+ if firstFrag {+ return ctx.Framer().WritePushPromise(PushPromiseParam{+ StreamID: w.streamID,+ PromiseID: w.promisedID,+ BlockFragment: frag,+ EndHeaders: lastFrag,+ })+ } else {+ return ctx.Framer().WriteContinuation(w.streamID, lastFrag, frag)+ }+}++type write100ContinueHeadersFrame struct {+ streamID uint32+}++func (w write100ContinueHeadersFrame) writeFrame(ctx writeContext) error {+ enc, buf := ctx.HeaderEncoder()+ buf.Reset()+ encKV(enc, ":status", "100")+ return ctx.Framer().WriteHeaders(HeadersFrameParam{+ StreamID: w.streamID,+ BlockFragment: buf.Bytes(),+ EndStream: false,+ EndHeaders: true,+ })+}++func (w write100ContinueHeadersFrame) staysWithinBuffer(max int) bool {+ // Sloppy but conservative:+ return 9+2*(len(":status")+len("100")) <= max+}++type writeWindowUpdate struct {+ streamID uint32 // or 0 for conn-level+ n uint32+}++func (wu writeWindowUpdate) staysWithinBuffer(max int) bool { return frameHeaderLen+4 <= max }++func (wu writeWindowUpdate) writeFrame(ctx writeContext) error {+ return ctx.Framer().WriteWindowUpdate(wu.streamID, wu.n)+}++// encodeHeaders encodes an http.Header. If keys is not nil, then (k, h[k])+// is encoded only only if k is in keys.+func encodeHeaders(enc *hpack.Encoder, h http.Header, keys []string) {+ if keys == nil {+ sorter := sorterPool.Get().(*sorter)+ // Using defer here, since the returned keys from the+ // sorter.Keys method is only valid until the sorter+ // is returned:+ defer sorterPool.Put(sorter)+ keys = sorter.Keys(h)+ }+ for _, k := range keys {+ vv := h[k]+ k = lowerHeader(k)+ if !validWireHeaderFieldName(k) {+ // Skip it as backup paranoia. Per+ // golang.org/issue/14048, these should+ // already be rejected at a higher level.+ continue+ }+ isTE := k == "transfer-encoding"+ for _, v := range vv {+ if !httplex.ValidHeaderFieldValue(v) {+ // TODO: return an error? golang.org/issue/14048+ // For now just omit it.+ continue+ }+ // TODO: more of "8.1.2.2 Connection-Specific Header Fields"+ if isTE && v != "trailers" {+ continue+ }+ encKV(enc, k, v)+ }+ }+}diff --git a/vendor/golang.org/x/net/http2/writesched.go b/vendor/golang.org/x/net/http2/writesched.gonew file mode 100644index 000000000..caa77c7cb--- /dev/null+++ b/vendor/golang.org/x/net/http2/writesched.go@@ -0,0 +1,228 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package http2++import "fmt"++// WriteScheduler is the interface implemented by HTTP/2 write schedulers.+// Methods are never called concurrently.+type WriteScheduler interface {+ // OpenStream opens a new stream in the write scheduler.+ // It is illegal to call this with streamID=0 or with a streamID that is+ // already open -- the call may panic.+ OpenStream(streamID uint32, options OpenStreamOptions)++ // CloseStream closes a stream in the write scheduler. Any frames queued on+ // this stream should be discarded. It is illegal to call this on a stream+ // that is not open -- the call may panic.+ CloseStream(streamID uint32)++ // AdjustStream adjusts the priority of the given stream. This may be called+ // on a stream that has not yet been opened or has been closed. Note that+ // RFC 7540 allows PRIORITY frames to be sent on streams in any state. See:+ // https://tools.ietf.org/html/rfc7540#section-5.1+ AdjustStream(streamID uint32, priority PriorityParam)++ // Push queues a frame in the scheduler. In most cases, this will not be+ // called with wr.StreamID()!=0 unless that stream is currently open. The one+ // exception is RST_STREAM frames, which may be sent on idle or closed streams.+ Push(wr FrameWriteRequest)++ // Pop dequeues the next frame to write. Returns false if no frames can+ // be written. Frames with a given wr.StreamID() are Pop'd in the same+ // order they are Push'd.+ Pop() (wr FrameWriteRequest, ok bool)+}++// OpenStreamOptions specifies extra options for WriteScheduler.OpenStream.+type OpenStreamOptions struct {+ // PusherID is zero if the stream was initiated by the client. Otherwise,+ // PusherID names the stream that pushed the newly opened stream.+ PusherID uint32+}++// FrameWriteRequest is a request to write a frame.+type FrameWriteRequest struct {+ // write is the interface value that does the writing, once the+ // WriteScheduler has selected this frame to write. The write+ // functions are all defined in write.go.+ write writeFramer++ // stream is the stream on which this frame will be written.+ // nil for non-stream frames like PING and SETTINGS.+ stream *stream++ // done, if non-nil, must be a buffered channel with space for+ // 1 message and is sent the return value from write (or an+ // earlier error) when the frame has been written.+ done chan error+}++// StreamID returns the id of the stream this frame will be written to.+// 0 is used for non-stream frames such as PING and SETTINGS.+func (wr FrameWriteRequest) StreamID() uint32 {+ if wr.stream == nil {+ if se, ok := wr.write.(StreamError); ok {+ // (*serverConn).resetStream doesn't set+ // stream because it doesn't necessarily have+ // one. So special case this type of write+ // message.+ return se.StreamID+ }+ return 0+ }+ return wr.stream.id+}++// DataSize returns the number of flow control bytes that must be consumed+// to write this entire frame. This is 0 for non-DATA frames.+func (wr FrameWriteRequest) DataSize() int {+ if wd, ok := wr.write.(*writeData); ok {+ return len(wd.p)+ }+ return 0+}++// Consume consumes min(n, available) bytes from this frame, where available+// is the number of flow control bytes available on the stream. Consume returns+// 0, 1, or 2 frames, where the integer return value gives the number of frames+// returned.+//+// If flow control prevents consuming any bytes, this returns (_, _, 0). If+// the entire frame was consumed, this returns (wr, _, 1). Otherwise, this+// returns (consumed, rest, 2), where 'consumed' contains the consumed bytes and+// 'rest' contains the remaining bytes. The consumed bytes are deducted from the+// underlying stream's flow control budget.+func (wr FrameWriteRequest) Consume(n int32) (FrameWriteRequest, FrameWriteRequest, int) {+ var empty FrameWriteRequest++ // Non-DATA frames are always consumed whole.+ wd, ok := wr.write.(*writeData)+ if !ok || len(wd.p) == 0 {+ return wr, empty, 1+ }++ // Might need to split after applying limits.+ allowed := wr.stream.flow.available()+ if n < allowed {+ allowed = n+ }+ if wr.stream.sc.maxFrameSize < allowed {+ allowed = wr.stream.sc.maxFrameSize+ }+ if allowed <= 0 {+ return empty, empty, 0+ }+ if len(wd.p) > int(allowed) {+ wr.stream.flow.take(allowed)+ consumed := FrameWriteRequest{+ stream: wr.stream,+ write: &writeData{+ streamID: wd.streamID,+ p: wd.p[:allowed],+ // Even if the original had endStream set, there+ // are bytes remaining because len(wd.p) > allowed,+ // so we know endStream is false.+ endStream: false,+ },+ // Our caller is blocking on the final DATA frame, not+ // this intermediate frame, so no need to wait.+ done: nil,+ }+ rest := FrameWriteRequest{+ stream: wr.stream,+ write: &writeData{+ streamID: wd.streamID,+ p: wd.p[allowed:],+ endStream: wd.endStream,+ },+ done: wr.done,+ }+ return consumed, rest, 2+ }++ // The frame is consumed whole.+ // NB: This cast cannot overflow because allowed is <= math.MaxInt32.+ wr.stream.flow.take(int32(len(wd.p)))+ return wr, empty, 1+}++// String is for debugging only.+func (wr FrameWriteRequest) String() string {+ var des string+ if s, ok := wr.write.(fmt.Stringer); ok {+ des = s.String()+ } else {+ des = fmt.Sprintf("%T", wr.write)+ }+ return fmt.Sprintf("[FrameWriteRequest stream=%d, ch=%v, writer=%v]", wr.StreamID(), wr.done != nil, des)+}++// writeQueue is used by implementations of WriteScheduler.+type writeQueue struct {+ s []FrameWriteRequest+}++func (q *writeQueue) empty() bool { return len(q.s) == 0 }++func (q *writeQueue) push(wr FrameWriteRequest) {+ q.s = append(q.s, wr)+}++func (q *writeQueue) shift() FrameWriteRequest {+ if len(q.s) == 0 {+ panic("invalid use of queue")+ }+ wr := q.s[0]+ // TODO: less copy-happy queue.+ copy(q.s, q.s[1:])+ q.s[len(q.s)-1] = FrameWriteRequest{}+ q.s = q.s[:len(q.s)-1]+ return wr+}++// consume consumes up to n bytes from q.s[0]. If the frame is+// entirely consumed, it is removed from the queue. If the frame+// is partially consumed, the frame is kept with the consumed+// bytes removed. Returns true iff any bytes were consumed.+func (q *writeQueue) consume(n int32) (FrameWriteRequest, bool) {+ if len(q.s) == 0 {+ return FrameWriteRequest{}, false+ }+ consumed, rest, numresult := q.s[0].Consume(n)+ switch numresult {+ case 0:+ return FrameWriteRequest{}, false+ case 1:+ q.shift()+ case 2:+ q.s[0] = rest+ }+ return consumed, true+}++type writeQueuePool []*writeQueue++// put inserts an unused writeQueue into the pool.+func (p *writeQueuePool) put(q *writeQueue) {+ for i := range q.s {+ q.s[i] = FrameWriteRequest{}+ }+ q.s = q.s[:0]+ *p = append(*p, q)+}++// get returns an empty writeQueue.+func (p *writeQueuePool) get() *writeQueue {+ ln := len(*p)+ if ln == 0 {+ return new(writeQueue)+ }+ x := ln - 1+ q := (*p)[x]+ (*p)[x] = nil+ *p = (*p)[:x]+ return q+}diff --git a/vendor/golang.org/x/net/http2/writesched_priority.go b/vendor/golang.org/x/net/http2/writesched_priority.gonew file mode 100644index 000000000..01132721b--- /dev/null+++ b/vendor/golang.org/x/net/http2/writesched_priority.go@@ -0,0 +1,452 @@+// Copyright 2016 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package http2++import (+ "fmt"+ "math"+ "sort"+)++// RFC 7540, Section 5.3.5: the default weight is 16.+const priorityDefaultWeight = 15 // 16 = 15 + 1++// PriorityWriteSchedulerConfig configures a priorityWriteScheduler.+type PriorityWriteSchedulerConfig struct {+ // MaxClosedNodesInTree controls the maximum number of closed streams to+ // retain in the priority tree. Setting this to zero saves a small amount+ // of memory at the cost of performance.+ //+ // See RFC 7540, Section 5.3.4:+ // "It is possible for a stream to become closed while prioritization+ // information ... is in transit. ... This potentially creates suboptimal+ // prioritization, since the stream could be given a priority that is+ // different from what is intended. To avoid these problems, an endpoint+ // SHOULD retain stream prioritization state for a period after streams+ // become closed. The longer state is retained, the lower the chance that+ // streams are assigned incorrect or default priority values."+ MaxClosedNodesInTree int++ // MaxIdleNodesInTree controls the maximum number of idle streams to+ // retain in the priority tree. Setting this to zero saves a small amount+ // of memory at the cost of performance.+ //+ // See RFC 7540, Section 5.3.4:+ // Similarly, streams that are in the "idle" state can be assigned+ // priority or become a parent of other streams. This allows for the+ // creation of a grouping node in the dependency tree, which enables+ // more flexible expressions of priority. Idle streams begin with a+ // default priority (Section 5.3.5).+ MaxIdleNodesInTree int++ // ThrottleOutOfOrderWrites enables write throttling to help ensure that+ // data is delivered in priority order. This works around a race where+ // stream B depends on stream A and both streams are about to call Write+ // to queue DATA frames. If B wins the race, a naive scheduler would eagerly+ // write as much data from B as possible, but this is suboptimal because A+ // is a higher-priority stream. With throttling enabled, we write a small+ // amount of data from B to minimize the amount of bandwidth that B can+ // steal from A.+ ThrottleOutOfOrderWrites bool+}++// NewPriorityWriteScheduler constructs a WriteScheduler that schedules+// frames by following HTTP/2 priorities as described in RFC 7340 Section 5.3.+// If cfg is nil, default options are used.+func NewPriorityWriteScheduler(cfg *PriorityWriteSchedulerConfig) WriteScheduler {+ if cfg == nil {+ // For justification of these defaults, see:+ // https://docs.google.com/document/d/1oLhNg1skaWD4_DtaoCxdSRN5erEXrH-KnLrMwEpOtFY+ cfg = &PriorityWriteSchedulerConfig{+ MaxClosedNodesInTree: 10,+ MaxIdleNodesInTree: 10,+ ThrottleOutOfOrderWrites: false,+ }+ }++ ws := &priorityWriteScheduler{+ nodes: make(map[uint32]*priorityNode),+ maxClosedNodesInTree: cfg.MaxClosedNodesInTree,+ maxIdleNodesInTree: cfg.MaxIdleNodesInTree,+ enableWriteThrottle: cfg.ThrottleOutOfOrderWrites,+ }+ ws.nodes[0] = &ws.root+ if cfg.ThrottleOutOfOrderWrites {+ ws.writeThrottleLimit = 1024+ } else {+ ws.writeThrottleLimit = math.MaxInt32+ }+ return ws+}++type priorityNodeState int++const (+ priorityNodeOpen priorityNodeState = iota+ priorityNodeClosed+ priorityNodeIdle+)++// priorityNode is a node in an HTTP/2 priority tree.+// Each node is associated with a single stream ID.+// See RFC 7540, Section 5.3.+type priorityNode struct {+ q writeQueue // queue of pending frames to write+ id uint32 // id of the stream, or 0 for the root of the tree+ weight uint8 // the actual weight is weight+1, so the value is in [1,256]+ state priorityNodeState // open | closed | idle+ bytes int64 // number of bytes written by this node, or 0 if closed+ subtreeBytes int64 // sum(node.bytes) of all nodes in this subtree++ // These links form the priority tree.+ parent *priorityNode+ kids *priorityNode // start of the kids list+ prev, next *priorityNode // doubly-linked list of siblings+}++func (n *priorityNode) setParent(parent *priorityNode) {+ if n == parent {+ panic("setParent to self")+ }+ if n.parent == parent {+ return+ }+ // Unlink from current parent.+ if parent := n.parent; parent != nil {+ if n.prev == nil {+ parent.kids = n.next+ } else {+ n.prev.next = n.next+ }+ if n.next != nil {+ n.next.prev = n.prev+ }+ }+ // Link to new parent.+ // If parent=nil, remove n from the tree.+ // Always insert at the head of parent.kids (this is assumed by walkReadyInOrder).+ n.parent = parent+ if parent == nil {+ n.next = nil+ n.prev = nil+ } else {+ n.next = parent.kids+ n.prev = nil+ if n.next != nil {+ n.next.prev = n+ }+ parent.kids = n+ }+}++func (n *priorityNode) addBytes(b int64) {+ n.bytes += b+ for ; n != nil; n = n.parent {+ n.subtreeBytes += b+ }+}++// walkReadyInOrder iterates over the tree in priority order, calling f for each node+// with a non-empty write queue. When f returns true, this funcion returns true and the+// walk halts. tmp is used as scratch space for sorting.+//+// f(n, openParent) takes two arguments: the node to visit, n, and a bool that is true+// if any ancestor p of n is still open (ignoring the root node).+func (n *priorityNode) walkReadyInOrder(openParent bool, tmp *[]*priorityNode, f func(*priorityNode, bool) bool) bool {+ if !n.q.empty() && f(n, openParent) {+ return true+ }+ if n.kids == nil {+ return false+ }++ // Don't consider the root "open" when updating openParent since+ // we can't send data frames on the root stream (only control frames).+ if n.id != 0 {+ openParent = openParent || (n.state == priorityNodeOpen)+ }++ // Common case: only one kid or all kids have the same weight.+ // Some clients don't use weights; other clients (like web browsers)+ // use mostly-linear priority trees.+ w := n.kids.weight+ needSort := false+ for k := n.kids.next; k != nil; k = k.next {+ if k.weight != w {+ needSort = true+ break+ }+ }+ if !needSort {+ for k := n.kids; k != nil; k = k.next {+ if k.walkReadyInOrder(openParent, tmp, f) {+ return true+ }+ }+ return false+ }++ // Uncommon case: sort the child nodes. We remove the kids from the parent,+ // then re-insert after sorting so we can reuse tmp for future sort calls.+ *tmp = (*tmp)[:0]+ for n.kids != nil {+ *tmp = append(*tmp, n.kids)+ n.kids.setParent(nil)+ }+ sort.Sort(sortPriorityNodeSiblings(*tmp))+ for i := len(*tmp) - 1; i >= 0; i-- {+ (*tmp)[i].setParent(n) // setParent inserts at the head of n.kids+ }+ for k := n.kids; k != nil; k = k.next {+ if k.walkReadyInOrder(openParent, tmp, f) {+ return true+ }+ }+ return false+}++type sortPriorityNodeSiblings []*priorityNode++func (z sortPriorityNodeSiblings) Len() int { return len(z) }+func (z sortPriorityNodeSiblings) Swap(i, k int) { z[i], z[k] = z[k], z[i] }+func (z sortPriorityNodeSiblings) Less(i, k int) bool {+ // Prefer the subtree that has sent fewer bytes relative to its weight.+ // See sections 5.3.2 and 5.3.4.+ wi, bi := float64(z[i].weight+1), float64(z[i].subtreeBytes)+ wk, bk := float64(z[k].weight+1), float64(z[k].subtreeBytes)+ if bi == 0 && bk == 0 {+ return wi >= wk+ }+ if bk == 0 {+ return false+ }+ return bi/bk <= wi/wk+}++type priorityWriteScheduler struct {+ // root is the root of the priority tree, where root.id = 0.+ // The root queues control frames that are not associated with any stream.+ root priorityNode++ // nodes maps stream ids to priority tree nodes.+ nodes map[uint32]*priorityNode++ // maxID is the maximum stream id in nodes.+ maxID uint32++ // lists of nodes that have been closed or are idle, but are kept in+ // the tree for improved prioritization. When the lengths exceed either+ // maxClosedNodesInTree or maxIdleNodesInTree, old nodes are discarded.+ closedNodes, idleNodes []*priorityNode++ // From the config.+ maxClosedNodesInTree int+ maxIdleNodesInTree int+ writeThrottleLimit int32+ enableWriteThrottle bool++ // tmp is scratch space for priorityNode.walkReadyInOrder to reduce allocations.+ tmp []*priorityNode++ // pool of empty queues for reuse.+ queuePool writeQueuePool+}++func (ws *priorityWriteScheduler) OpenStream(streamID uint32, options OpenStreamOptions) {+ // The stream may be currently idle but cannot be opened or closed.+ if curr := ws.nodes[streamID]; curr != nil {+ if curr.state != priorityNodeIdle {+ panic(fmt.Sprintf("stream %d already opened", streamID))+ }+ curr.state = priorityNodeOpen+ return+ }++ // RFC 7540, Section 5.3.5:+ // "All streams are initially assigned a non-exclusive dependency on stream 0x0.+ // Pushed streams initially depend on their associated stream. In both cases,+ // streams are assigned a default weight of 16."+ parent := ws.nodes[options.PusherID]+ if parent == nil {+ parent = &ws.root+ }+ n := &priorityNode{+ q: *ws.queuePool.get(),+ id: streamID,+ weight: priorityDefaultWeight,+ state: priorityNodeOpen,+ }+ n.setParent(parent)+ ws.nodes[streamID] = n+ if streamID > ws.maxID {+ ws.maxID = streamID+ }+}++func (ws *priorityWriteScheduler) CloseStream(streamID uint32) {+ if streamID == 0 {+ panic("violation of WriteScheduler interface: cannot close stream 0")+ }+ if ws.nodes[streamID] == nil {+ panic(fmt.Sprintf("violation of WriteScheduler interface: unknown stream %d", streamID))+ }+ if ws.nodes[streamID].state != priorityNodeOpen {+ panic(fmt.Sprintf("violation of WriteScheduler interface: stream %d already closed", streamID))+ }++ n := ws.nodes[streamID]+ n.state = priorityNodeClosed+ n.addBytes(-n.bytes)++ q := n.q+ ws.queuePool.put(&q)+ n.q.s = nil+ if ws.maxClosedNodesInTree > 0 {+ ws.addClosedOrIdleNode(&ws.closedNodes, ws.maxClosedNodesInTree, n)+ } else {+ ws.removeNode(n)+ }+}++func (ws *priorityWriteScheduler) AdjustStream(streamID uint32, priority PriorityParam) {+ if streamID == 0 {+ panic("adjustPriority on root")+ }++ // If streamID does not exist, there are two cases:+ // - A closed stream that has been removed (this will have ID <= maxID)+ // - An idle stream that is being used for "grouping" (this will have ID > maxID)+ n := ws.nodes[streamID]+ if n == nil {+ if streamID <= ws.maxID || ws.maxIdleNodesInTree == 0 {+ return+ }+ ws.maxID = streamID+ n = &priorityNode{+ q: *ws.queuePool.get(),+ id: streamID,+ weight: priorityDefaultWeight,+ state: priorityNodeIdle,+ }+ n.setParent(&ws.root)+ ws.nodes[streamID] = n+ ws.addClosedOrIdleNode(&ws.idleNodes, ws.maxIdleNodesInTree, n)+ }++ // Section 5.3.1: A dependency on a stream that is not currently in the tree+ // results in that stream being given a default priority (Section 5.3.5).+ parent := ws.nodes[priority.StreamDep]+ if parent == nil {+ n.setParent(&ws.root)+ n.weight = priorityDefaultWeight+ return+ }++ // Ignore if the client tries to make a node its own parent.+ if n == parent {+ return+ }++ // Section 5.3.3:+ // "If a stream is made dependent on one of its own dependencies, the+ // formerly dependent stream is first moved to be dependent on the+ // reprioritized stream's previous parent. The moved dependency retains+ // its weight."+ //+ // That is: if parent depends on n, move parent to depend on n.parent.+ for x := parent.parent; x != nil; x = x.parent {+ if x == n {+ parent.setParent(n.parent)+ break+ }+ }++ // Section 5.3.3: The exclusive flag causes the stream to become the sole+ // dependency of its parent stream, causing other dependencies to become+ // dependent on the exclusive stream.+ if priority.Exclusive {+ k := parent.kids+ for k != nil {+ next := k.next+ if k != n {+ k.setParent(n)+ }+ k = next+ }+ }++ n.setParent(parent)+ n.weight = priority.Weight+}++func (ws *priorityWriteScheduler) Push(wr FrameWriteRequest) {+ var n *priorityNode+ if id := wr.StreamID(); id == 0 {+ n = &ws.root+ } else {+ n = ws.nodes[id]+ if n == nil {+ // id is an idle or closed stream. wr should not be a HEADERS or+ // DATA frame. However, wr can be a RST_STREAM. In this case, we+ // push wr onto the root, rather than creating a new priorityNode,+ // since RST_STREAM is tiny and the stream's priority is unknown+ // anyway. See issue #17919.+ if wr.DataSize() > 0 {+ panic("add DATA on non-open stream")+ }+ n = &ws.root+ }+ }+ n.q.push(wr)+}++func (ws *priorityWriteScheduler) Pop() (wr FrameWriteRequest, ok bool) {+ ws.root.walkReadyInOrder(false, &ws.tmp, func(n *priorityNode, openParent bool) bool {+ limit := int32(math.MaxInt32)+ if openParent {+ limit = ws.writeThrottleLimit+ }+ wr, ok = n.q.consume(limit)+ if !ok {+ return false+ }+ n.addBytes(int64(wr.DataSize()))+ // If B depends on A and B continuously has data available but A+ // does not, gradually increase the throttling limit to allow B to+ // steal more and more bandwidth from A.+ if openParent {+ ws.writeThrottleLimit += 1024+ if ws.writeThrottleLimit < 0 {+ ws.writeThrottleLimit = math.MaxInt32+ }+ } else if ws.enableWriteThrottle {+ ws.writeThrottleLimit = 1024+ }+ return true+ })+ return wr, ok+}++func (ws *priorityWriteScheduler) addClosedOrIdleNode(list *[]*priorityNode, maxSize int, n *priorityNode) {+ if maxSize == 0 {+ return+ }+ if len(*list) == maxSize {+ // Remove the oldest node, then shift left.+ ws.removeNode((*list)[0])+ x := (*list)[1:]+ copy(*list, x)+ *list = (*list)[:len(x)]+ }+ *list = append(*list, n)+}++func (ws *priorityWriteScheduler) removeNode(n *priorityNode) {+ for k := n.kids; k != nil; k = k.next {+ k.setParent(n.parent)+ }+ n.setParent(nil)+ delete(ws.nodes, n.id)+}diff --git a/vendor/golang.org/x/net/http2/writesched_random.go b/vendor/golang.org/x/net/http2/writesched_random.gonew file mode 100644index 000000000..36d7919f1--- /dev/null+++ b/vendor/golang.org/x/net/http2/writesched_random.go@@ -0,0 +1,72 @@+// Copyright 2014 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package http2++import "math"++// NewRandomWriteScheduler constructs a WriteScheduler that ignores HTTP/2+// priorities. Control frames like SETTINGS and PING are written before DATA+// frames, but if no control frames are queued and multiple streams have queued+// HEADERS or DATA frames, Pop selects a ready stream arbitrarily.+func NewRandomWriteScheduler() WriteScheduler {+ return &randomWriteScheduler{sq: make(map[uint32]*writeQueue)}+}++type randomWriteScheduler struct {+ // zero are frames not associated with a specific stream.+ zero writeQueue++ // sq contains the stream-specific queues, keyed by stream ID.+ // When a stream is idle or closed, it's deleted from the map.+ sq map[uint32]*writeQueue++ // pool of empty queues for reuse.+ queuePool writeQueuePool+}++func (ws *randomWriteScheduler) OpenStream(streamID uint32, options OpenStreamOptions) {+ // no-op: idle streams are not tracked+}++func (ws *randomWriteScheduler) CloseStream(streamID uint32) {+ q, ok := ws.sq[streamID]+ if !ok {+ return+ }+ delete(ws.sq, streamID)+ ws.queuePool.put(q)+}++func (ws *randomWriteScheduler) AdjustStream(streamID uint32, priority PriorityParam) {+ // no-op: priorities are ignored+}++func (ws *randomWriteScheduler) Push(wr FrameWriteRequest) {+ id := wr.StreamID()+ if id == 0 {+ ws.zero.push(wr)+ return+ }+ q, ok := ws.sq[id]+ if !ok {+ q = ws.queuePool.get()+ ws.sq[id] = q+ }+ q.push(wr)+}++func (ws *randomWriteScheduler) Pop() (FrameWriteRequest, bool) {+ // Control frames first.+ if !ws.zero.empty() {+ return ws.zero.shift(), true+ }+ // Iterate over all non-idle streams until finding one that can be consumed.+ for _, q := range ws.sq {+ if wr, ok := q.consume(math.MaxInt32); ok {+ return wr, true+ }+ }+ return FrameWriteRequest{}, false+}diff --git a/vendor/golang.org/x/net/idna/idna.go b/vendor/golang.org/x/net/idna/idna.gonew file mode 100644index 000000000..35ff39d81--- /dev/null+++ b/vendor/golang.org/x/net/idna/idna.go@@ -0,0 +1,68 @@+// Copyright 2012 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++// Package idna implements IDNA2008 (Internationalized Domain Names for+// Applications), defined in RFC 5890, RFC 5891, RFC 5892, RFC 5893 and+// RFC 5894.+package idna++import (+ "strings"+ "unicode/utf8"+)++// TODO(nigeltao): specify when errors occur. For example, is ToASCII(".") or+// ToASCII("foo\x00") an error? See also http://www.unicode.org/faq/idn.html#11++// acePrefix is the ASCII Compatible Encoding prefix.+const acePrefix = "xn--"++// ToASCII converts a domain or domain label to its ASCII form. For example,+// ToASCII("bücher.example.com") is "xn--bcher-kva.example.com", and+// ToASCII("golang") is "golang".+func ToASCII(s string) (string, error) {+ if ascii(s) {+ return s, nil+ }+ labels := strings.Split(s, ".")+ for i, label := range labels {+ if !ascii(label) {+ a, err := encode(acePrefix, label)+ if err != nil {+ return "", err+ }+ labels[i] = a+ }+ }+ return strings.Join(labels, "."), nil+}++// ToUnicode converts a domain or domain label to its Unicode form. For example,+// ToUnicode("xn--bcher-kva.example.com") is "bücher.example.com", and+// ToUnicode("golang") is "golang".+func ToUnicode(s string) (string, error) {+ if !strings.Contains(s, acePrefix) {+ return s, nil+ }+ labels := strings.Split(s, ".")+ for i, label := range labels {+ if strings.HasPrefix(label, acePrefix) {+ u, err := decode(label[len(acePrefix):])+ if err != nil {+ return "", err+ }+ labels[i] = u+ }+ }+ return strings.Join(labels, "."), nil+}++func ascii(s string) bool {+ for i := 0; i < len(s); i++ {+ if s[i] >= utf8.RuneSelf {+ return false+ }+ }+ return true+}diff --git a/vendor/golang.org/x/net/idna/punycode.go b/vendor/golang.org/x/net/idna/punycode.gonew file mode 100644index 000000000..92e733f6a--- /dev/null+++ b/vendor/golang.org/x/net/idna/punycode.go@@ -0,0 +1,200 @@+// Copyright 2012 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package idna++// This file implements the Punycode algorithm from RFC 3492.++import (+ "fmt"+ "math"+ "strings"+ "unicode/utf8"+)++// These parameter values are specified in section 5.+//+// All computation is done with int32s, so that overflow behavior is identical+// regardless of whether int is 32-bit or 64-bit.+const (+ base int32 = 36+ damp int32 = 700+ initialBias int32 = 72+ initialN int32 = 128+ skew int32 = 38+ tmax int32 = 26+ tmin int32 = 1+)++// decode decodes a string as specified in section 6.2.+func decode(encoded string) (string, error) {+ if encoded == "" {+ return "", nil+ }+ pos := 1 + strings.LastIndex(encoded, "-")+ if pos == 1 {+ return "", fmt.Errorf("idna: invalid label %q", encoded)+ }+ if pos == len(encoded) {+ return encoded[:len(encoded)-1], nil+ }+ output := make([]rune, 0, len(encoded))+ if pos != 0 {+ for _, r := range encoded[:pos-1] {+ output = append(output, r)+ }+ }+ i, n, bias := int32(0), initialN, initialBias+ for pos < len(encoded) {+ oldI, w := i, int32(1)+ for k := base; ; k += base {+ if pos == len(encoded) {+ return "", fmt.Errorf("idna: invalid label %q", encoded)+ }+ digit, ok := decodeDigit(encoded[pos])+ if !ok {+ return "", fmt.Errorf("idna: invalid label %q", encoded)+ }+ pos+++ i += digit * w+ if i < 0 {+ return "", fmt.Errorf("idna: invalid label %q", encoded)+ }+ t := k - bias+ if t < tmin {+ t = tmin+ } else if t > tmax {+ t = tmax+ }+ if digit < t {+ break+ }+ w *= base - t+ if w >= math.MaxInt32/base {+ return "", fmt.Errorf("idna: invalid label %q", encoded)+ }+ }+ x := int32(len(output) + 1)+ bias = adapt(i-oldI, x, oldI == 0)+ n += i / x+ i %= x+ if n > utf8.MaxRune || len(output) >= 1024 {+ return "", fmt.Errorf("idna: invalid label %q", encoded)+ }+ output = append(output, 0)+ copy(output[i+1:], output[i:])+ output[i] = n+ i+++ }+ return string(output), nil+}++// encode encodes a string as specified in section 6.3 and prepends prefix to+// the result.+//+// The "while h < length(input)" line in the specification becomes "for+// remaining != 0" in the Go code, because len(s) in Go is in bytes, not runes.+func encode(prefix, s string) (string, error) {+ output := make([]byte, len(prefix), len(prefix)+1+2*len(s))+ copy(output, prefix)+ delta, n, bias := int32(0), initialN, initialBias+ b, remaining := int32(0), int32(0)+ for _, r := range s {+ if r < 0x80 {+ b+++ output = append(output, byte(r))+ } else {+ remaining+++ }+ }+ h := b+ if b > 0 {+ output = append(output, '-')+ }+ for remaining != 0 {+ m := int32(0x7fffffff)+ for _, r := range s {+ if m > r && r >= n {+ m = r+ }+ }+ delta += (m - n) * (h + 1)+ if delta < 0 {+ return "", fmt.Errorf("idna: invalid label %q", s)+ }+ n = m+ for _, r := range s {+ if r < n {+ delta+++ if delta < 0 {+ return "", fmt.Errorf("idna: invalid label %q", s)+ }+ continue+ }+ if r > n {+ continue+ }+ q := delta+ for k := base; ; k += base {+ t := k - bias+ if t < tmin {+ t = tmin+ } else if t > tmax {+ t = tmax+ }+ if q < t {+ break+ }+ output = append(output, encodeDigit(t+(q-t)%(base-t)))+ q = (q - t) / (base - t)+ }+ output = append(output, encodeDigit(q))+ bias = adapt(delta, h+1, h == b)+ delta = 0+ h+++ remaining--+ }+ delta+++ n+++ }+ return string(output), nil+}++func decodeDigit(x byte) (digit int32, ok bool) {+ switch {+ case '0' <= x && x <= '9':+ return int32(x - ('0' - 26)), true+ case 'A' <= x && x <= 'Z':+ return int32(x - 'A'), true+ case 'a' <= x && x <= 'z':+ return int32(x - 'a'), true+ }+ return 0, false+}++func encodeDigit(digit int32) byte {+ switch {+ case 0 <= digit && digit < 26:+ return byte(digit + 'a')+ case 26 <= digit && digit < 36:+ return byte(digit + ('0' - 26))+ }+ panic("idna: internal error in punycode encoding")+}++// adapt is the bias adaptation function specified in section 6.1.+func adapt(delta, numPoints int32, firstTime bool) int32 {+ if firstTime {+ delta /= damp+ } else {+ delta /= 2+ }+ delta += delta / numPoints+ k := int32(0)+ for delta > ((base-tmin)*tmax)/2 {+ delta /= base - tmin+ k += base+ }+ return k + (base-tmin+1)*delta/(delta+skew)+}diff --git a/vendor/golang.org/x/net/internal/timeseries/timeseries.go b/vendor/golang.org/x/net/internal/timeseries/timeseries.gonew file mode 100644index 000000000..3f90b7300--- /dev/null+++ b/vendor/golang.org/x/net/internal/timeseries/timeseries.go@@ -0,0 +1,525 @@+// Copyright 2015 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++// Package timeseries implements a time series structure for stats collection.+package timeseries++import (+ "fmt"+ "log"+ "time"+)++const (+ timeSeriesNumBuckets = 64+ minuteHourSeriesNumBuckets = 60+)++var timeSeriesResolutions = []time.Duration{+ 1 * time.Second,+ 10 * time.Second,+ 1 * time.Minute,+ 10 * time.Minute,+ 1 * time.Hour,+ 6 * time.Hour,+ 24 * time.Hour, // 1 day+ 7 * 24 * time.Hour, // 1 week+ 4 * 7 * 24 * time.Hour, // 4 weeks+ 16 * 7 * 24 * time.Hour, // 16 weeks+}++var minuteHourSeriesResolutions = []time.Duration{+ 1 * time.Second,+ 1 * time.Minute,+}++// An Observable is a kind of data that can be aggregated in a time series.+type Observable interface {+ Multiply(ratio float64) // Multiplies the data in self by a given ratio+ Add(other Observable) // Adds the data from a different observation to self+ Clear() // Clears the observation so it can be reused.+ CopyFrom(other Observable) // Copies the contents of a given observation to self+}++// Float attaches the methods of Observable to a float64.+type Float float64++// NewFloat returns a Float.+func NewFloat() Observable {+ f := Float(0)+ return &f+}++// String returns the float as a string.+func (f *Float) String() string { return fmt.Sprintf("%g", f.Value()) }++// Value returns the float's value.+func (f *Float) Value() float64 { return float64(*f) }++func (f *Float) Multiply(ratio float64) { *f *= Float(ratio) }++func (f *Float) Add(other Observable) {+ o := other.(*Float)+ *f += *o+}++func (f *Float) Clear() { *f = 0 }++func (f *Float) CopyFrom(other Observable) {+ o := other.(*Float)+ *f = *o+}++// A Clock tells the current time.+type Clock interface {+ Time() time.Time+}++type defaultClock int++var defaultClockInstance defaultClock++func (defaultClock) Time() time.Time { return time.Now() }++// Information kept per level. Each level consists of a circular list of+// observations. The start of the level may be derived from end and the+// len(buckets) * sizeInMillis.+type tsLevel struct {+ oldest int // index to oldest bucketed Observable+ newest int // index to newest bucketed Observable+ end time.Time // end timestamp for this level+ size time.Duration // duration of the bucketed Observable+ buckets []Observable // collections of observations+ provider func() Observable // used for creating new Observable+}++func (l *tsLevel) Clear() {+ l.oldest = 0+ l.newest = len(l.buckets) - 1+ l.end = time.Time{}+ for i := range l.buckets {+ if l.buckets[i] != nil {+ l.buckets[i].Clear()+ l.buckets[i] = nil+ }+ }+}++func (l *tsLevel) InitLevel(size time.Duration, numBuckets int, f func() Observable) {+ l.size = size+ l.provider = f+ l.buckets = make([]Observable, numBuckets)+}++// Keeps a sequence of levels. Each level is responsible for storing data at+// a given resolution. For example, the first level stores data at a one+// minute resolution while the second level stores data at a one hour+// resolution.++// Each level is represented by a sequence of buckets. Each bucket spans an+// interval equal to the resolution of the level. New observations are added+// to the last bucket.+type timeSeries struct {+ provider func() Observable // make more Observable+ numBuckets int // number of buckets in each level+ levels []*tsLevel // levels of bucketed Observable+ lastAdd time.Time // time of last Observable tracked+ total Observable // convenient aggregation of all Observable+ clock Clock // Clock for getting current time+ pending Observable // observations not yet bucketed+ pendingTime time.Time // what time are we keeping in pending+ dirty bool // if there are pending observations+}++// init initializes a level according to the supplied criteria.+func (ts *timeSeries) init(resolutions []time.Duration, f func() Observable, numBuckets int, clock Clock) {+ ts.provider = f+ ts.numBuckets = numBuckets+ ts.clock = clock+ ts.levels = make([]*tsLevel, len(resolutions))++ for i := range resolutions {+ if i > 0 && resolutions[i-1] >= resolutions[i] {+ log.Print("timeseries: resolutions must be monotonically increasing")+ break+ }+ newLevel := new(tsLevel)+ newLevel.InitLevel(resolutions[i], ts.numBuckets, ts.provider)+ ts.levels[i] = newLevel+ }++ ts.Clear()+}++// Clear removes all observations from the time series.+func (ts *timeSeries) Clear() {+ ts.lastAdd = time.Time{}+ ts.total = ts.resetObservation(ts.total)+ ts.pending = ts.resetObservation(ts.pending)+ ts.pendingTime = time.Time{}+ ts.dirty = false++ for i := range ts.levels {+ ts.levels[i].Clear()+ }+}++// Add records an observation at the current time.+func (ts *timeSeries) Add(observation Observable) {+ ts.AddWithTime(observation, ts.clock.Time())+}++// AddWithTime records an observation at the specified time.+func (ts *timeSeries) AddWithTime(observation Observable, t time.Time) {++ smallBucketDuration := ts.levels[0].size++ if t.After(ts.lastAdd) {+ ts.lastAdd = t+ }++ if t.After(ts.pendingTime) {+ ts.advance(t)+ ts.mergePendingUpdates()+ ts.pendingTime = ts.levels[0].end+ ts.pending.CopyFrom(observation)+ ts.dirty = true+ } else if t.After(ts.pendingTime.Add(-1 * smallBucketDuration)) {+ // The observation is close enough to go into the pending bucket.+ // This compensates for clock skewing and small scheduling delays+ // by letting the update stay in the fast path.+ ts.pending.Add(observation)+ ts.dirty = true+ } else {+ ts.mergeValue(observation, t)+ }+}++// mergeValue inserts the observation at the specified time in the past into all levels.+func (ts *timeSeries) mergeValue(observation Observable, t time.Time) {+ for _, level := range ts.levels {+ index := (ts.numBuckets - 1) - int(level.end.Sub(t)/level.size)+ if 0 <= index && index < ts.numBuckets {+ bucketNumber := (level.oldest + index) % ts.numBuckets+ if level.buckets[bucketNumber] == nil {+ level.buckets[bucketNumber] = level.provider()+ }+ level.buckets[bucketNumber].Add(observation)+ }+ }+ ts.total.Add(observation)+}++// mergePendingUpdates applies the pending updates into all levels.+func (ts *timeSeries) mergePendingUpdates() {+ if ts.dirty {+ ts.mergeValue(ts.pending, ts.pendingTime)+ ts.pending = ts.resetObservation(ts.pending)+ ts.dirty = false+ }+}++// advance cycles the buckets at each level until the latest bucket in+// each level can hold the time specified.+func (ts *timeSeries) advance(t time.Time) {+ if !t.After(ts.levels[0].end) {+ return+ }+ for i := 0; i < len(ts.levels); i++ {+ level := ts.levels[i]+ if !level.end.Before(t) {+ break+ }++ // If the time is sufficiently far, just clear the level and advance+ // directly.+ if !t.Before(level.end.Add(level.size * time.Duration(ts.numBuckets))) {+ for _, b := range level.buckets {+ ts.resetObservation(b)+ }+ level.end = time.Unix(0, (t.UnixNano()/level.size.Nanoseconds())*level.size.Nanoseconds())+ }++ for t.After(level.end) {+ level.end = level.end.Add(level.size)+ level.newest = level.oldest+ level.oldest = (level.oldest + 1) % ts.numBuckets+ ts.resetObservation(level.buckets[level.newest])+ }++ t = level.end+ }+}++// Latest returns the sum of the num latest buckets from the level.+func (ts *timeSeries) Latest(level, num int) Observable {+ now := ts.clock.Time()+ if ts.levels[0].end.Before(now) {+ ts.advance(now)+ }++ ts.mergePendingUpdates()++ result := ts.provider()+ l := ts.levels[level]+ index := l.newest++ for i := 0; i < num; i++ {+ if l.buckets[index] != nil {+ result.Add(l.buckets[index])+ }+ if index == 0 {+ index = ts.numBuckets+ }+ index--+ }++ return result+}++// LatestBuckets returns a copy of the num latest buckets from level.+func (ts *timeSeries) LatestBuckets(level, num int) []Observable {+ if level < 0 || level > len(ts.levels) {+ log.Print("timeseries: bad level argument: ", level)+ return nil+ }+ if num < 0 || num >= ts.numBuckets {+ log.Print("timeseries: bad num argument: ", num)+ return nil+ }++ results := make([]Observable, num)+ now := ts.clock.Time()+ if ts.levels[0].end.Before(now) {+ ts.advance(now)+ }++ ts.mergePendingUpdates()++ l := ts.levels[level]+ index := l.newest++ for i := 0; i < num; i++ {+ result := ts.provider()+ results[i] = result+ if l.buckets[index] != nil {+ result.CopyFrom(l.buckets[index])+ }++ if index == 0 {+ index = ts.numBuckets+ }+ index -= 1+ }+ return results+}++// ScaleBy updates observations by scaling by factor.+func (ts *timeSeries) ScaleBy(factor float64) {+ for _, l := range ts.levels {+ for i := 0; i < ts.numBuckets; i++ {+ l.buckets[i].Multiply(factor)+ }+ }++ ts.total.Multiply(factor)+ ts.pending.Multiply(factor)+}++// Range returns the sum of observations added over the specified time range.+// If start or finish times don't fall on bucket boundaries of the same+// level, then return values are approximate answers.+func (ts *timeSeries) Range(start, finish time.Time) Observable {+ return ts.ComputeRange(start, finish, 1)[0]+}++// Recent returns the sum of observations from the last delta.+func (ts *timeSeries) Recent(delta time.Duration) Observable {+ now := ts.clock.Time()+ return ts.Range(now.Add(-delta), now)+}++// Total returns the total of all observations.+func (ts *timeSeries) Total() Observable {+ ts.mergePendingUpdates()+ return ts.total+}++// ComputeRange computes a specified number of values into a slice using+// the observations recorded over the specified time period. The return+// values are approximate if the start or finish times don't fall on the+// bucket boundaries at the same level or if the number of buckets spanning+// the range is not an integral multiple of num.+func (ts *timeSeries) ComputeRange(start, finish time.Time, num int) []Observable {+ if start.After(finish) {+ log.Printf("timeseries: start > finish, %v>%v", start, finish)+ return nil+ }++ if num < 0 {+ log.Printf("timeseries: num < 0, %v", num)+ return nil+ }++ results := make([]Observable, num)++ for _, l := range ts.levels {+ if !start.Before(l.end.Add(-l.size * time.Duration(ts.numBuckets))) {+ ts.extract(l, start, finish, num, results)+ return results+ }+ }++ // Failed to find a level that covers the desired range. So just+ // extract from the last level, even if it doesn't cover the entire+ // desired range.+ ts.extract(ts.levels[len(ts.levels)-1], start, finish, num, results)++ return results+}++// RecentList returns the specified number of values in slice over the most+// recent time period of the specified range.+func (ts *timeSeries) RecentList(delta time.Duration, num int) []Observable {+ if delta < 0 {+ return nil+ }+ now := ts.clock.Time()+ return ts.ComputeRange(now.Add(-delta), now, num)+}++// extract returns a slice of specified number of observations from a given+// level over a given range.+func (ts *timeSeries) extract(l *tsLevel, start, finish time.Time, num int, results []Observable) {+ ts.mergePendingUpdates()++ srcInterval := l.size+ dstInterval := finish.Sub(start) / time.Duration(num)+ dstStart := start+ srcStart := l.end.Add(-srcInterval * time.Duration(ts.numBuckets))++ srcIndex := 0++ // Where should scanning start?+ if dstStart.After(srcStart) {+ advance := dstStart.Sub(srcStart) / srcInterval+ srcIndex += int(advance)+ srcStart = srcStart.Add(advance * srcInterval)+ }++ // The i'th value is computed as show below.+ // interval = (finish/start)/num+ // i'th value = sum of observation in range+ // [ start + i * interval,+ // start + (i + 1) * interval )+ for i := 0; i < num; i++ {+ results[i] = ts.resetObservation(results[i])+ dstEnd := dstStart.Add(dstInterval)+ for srcIndex < ts.numBuckets && srcStart.Before(dstEnd) {+ srcEnd := srcStart.Add(srcInterval)+ if srcEnd.After(ts.lastAdd) {+ srcEnd = ts.lastAdd+ }++ if !srcEnd.Before(dstStart) {+ srcValue := l.buckets[(srcIndex+l.oldest)%ts.numBuckets]+ if !srcStart.Before(dstStart) && !srcEnd.After(dstEnd) {+ // dst completely contains src.+ if srcValue != nil {+ results[i].Add(srcValue)+ }+ } else {+ // dst partially overlaps src.+ overlapStart := maxTime(srcStart, dstStart)+ overlapEnd := minTime(srcEnd, dstEnd)+ base := srcEnd.Sub(srcStart)+ fraction := overlapEnd.Sub(overlapStart).Seconds() / base.Seconds()++ used := ts.provider()+ if srcValue != nil {+ used.CopyFrom(srcValue)+ }+ used.Multiply(fraction)+ results[i].Add(used)+ }++ if srcEnd.After(dstEnd) {+ break+ }+ }+ srcIndex+++ srcStart = srcStart.Add(srcInterval)+ }+ dstStart = dstStart.Add(dstInterval)+ }+}++// resetObservation clears the content so the struct may be reused.+func (ts *timeSeries) resetObservation(observation Observable) Observable {+ if observation == nil {+ observation = ts.provider()+ } else {+ observation.Clear()+ }+ return observation+}++// TimeSeries tracks data at granularities from 1 second to 16 weeks.+type TimeSeries struct {+ timeSeries+}++// NewTimeSeries creates a new TimeSeries using the function provided for creating new Observable.+func NewTimeSeries(f func() Observable) *TimeSeries {+ return NewTimeSeriesWithClock(f, defaultClockInstance)+}++// NewTimeSeriesWithClock creates a new TimeSeries using the function provided for creating new Observable and the clock for+// assigning timestamps.+func NewTimeSeriesWithClock(f func() Observable, clock Clock) *TimeSeries {+ ts := new(TimeSeries)+ ts.timeSeries.init(timeSeriesResolutions, f, timeSeriesNumBuckets, clock)+ return ts+}++// MinuteHourSeries tracks data at granularities of 1 minute and 1 hour.+type MinuteHourSeries struct {+ timeSeries+}++// NewMinuteHourSeries creates a new MinuteHourSeries using the function provided for creating new Observable.+func NewMinuteHourSeries(f func() Observable) *MinuteHourSeries {+ return NewMinuteHourSeriesWithClock(f, defaultClockInstance)+}++// NewMinuteHourSeriesWithClock creates a new MinuteHourSeries using the function provided for creating new Observable and the clock for+// assigning timestamps.+func NewMinuteHourSeriesWithClock(f func() Observable, clock Clock) *MinuteHourSeries {+ ts := new(MinuteHourSeries)+ ts.timeSeries.init(minuteHourSeriesResolutions, f,+ minuteHourSeriesNumBuckets, clock)+ return ts+}++func (ts *MinuteHourSeries) Minute() Observable {+ return ts.timeSeries.Latest(0, 60)+}++func (ts *MinuteHourSeries) Hour() Observable {+ return ts.timeSeries.Latest(1, 60)+}++func minTime(a, b time.Time) time.Time {+ if a.Before(b) {+ return a+ }+ return b+}++func maxTime(a, b time.Time) time.Time {+ if a.After(b) {+ return a+ }+ return b+}diff --git a/vendor/golang.org/x/net/lex/httplex/httplex.go b/vendor/golang.org/x/net/lex/httplex/httplex.gonew file mode 100644index 000000000..20f2b8940--- /dev/null+++ b/vendor/golang.org/x/net/lex/httplex/httplex.go@@ -0,0 +1,351 @@+// Copyright 2016 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++// Package httplex contains rules around lexical matters of various+// HTTP-related specifications.+//+// This package is shared by the standard library (which vendors it)+// and x/net/http2. It comes with no API stability promise.+package httplex++import (+ "net"+ "strings"+ "unicode/utf8"++ "golang.org/x/net/idna"+)++var isTokenTable = [127]bool{+ '!': true,+ '#': true,+ '$': true,+ '%': true,+ '&': true,+ '\'': true,+ '*': true,+ '+': true,+ '-': true,+ '.': true,+ '0': true,+ '1': true,+ '2': true,+ '3': true,+ '4': true,+ '5': true,+ '6': true,+ '7': true,+ '8': true,+ '9': true,+ 'A': true,+ 'B': true,+ 'C': true,+ 'D': true,+ 'E': true,+ 'F': true,+ 'G': true,+ 'H': true,+ 'I': true,+ 'J': true,+ 'K': true,+ 'L': true,+ 'M': true,+ 'N': true,+ 'O': true,+ 'P': true,+ 'Q': true,+ 'R': true,+ 'S': true,+ 'T': true,+ 'U': true,+ 'W': true,+ 'V': true,+ 'X': true,+ 'Y': true,+ 'Z': true,+ '^': true,+ '_': true,+ '`': true,+ 'a': true,+ 'b': true,+ 'c': true,+ 'd': true,+ 'e': true,+ 'f': true,+ 'g': true,+ 'h': true,+ 'i': true,+ 'j': true,+ 'k': true,+ 'l': true,+ 'm': true,+ 'n': true,+ 'o': true,+ 'p': true,+ 'q': true,+ 'r': true,+ 's': true,+ 't': true,+ 'u': true,+ 'v': true,+ 'w': true,+ 'x': true,+ 'y': true,+ 'z': true,+ '|': true,+ '~': true,+}++func IsTokenRune(r rune) bool {+ i := int(r)+ return i < len(isTokenTable) && isTokenTable[i]+}++func isNotToken(r rune) bool {+ return !IsTokenRune(r)+}++// HeaderValuesContainsToken reports whether any string in values+// contains the provided token, ASCII case-insensitively.+func HeaderValuesContainsToken(values []string, token string) bool {+ for _, v := range values {+ if headerValueContainsToken(v, token) {+ return true+ }+ }+ return false+}++// isOWS reports whether b is an optional whitespace byte, as defined+// by RFC 7230 section 3.2.3.+func isOWS(b byte) bool { return b == ' ' || b == '\t' }++// trimOWS returns x with all optional whitespace removes from the+// beginning and end.+func trimOWS(x string) string {+ // TODO: consider using strings.Trim(x, " \t") instead,+ // if and when it's fast enough. See issue 10292.+ // But this ASCII-only code will probably always beat UTF-8+ // aware code.+ for len(x) > 0 && isOWS(x[0]) {+ x = x[1:]+ }+ for len(x) > 0 && isOWS(x[len(x)-1]) {+ x = x[:len(x)-1]+ }+ return x+}++// headerValueContainsToken reports whether v (assumed to be a+// 0#element, in the ABNF extension described in RFC 7230 section 7)+// contains token amongst its comma-separated tokens, ASCII+// case-insensitively.+func headerValueContainsToken(v string, token string) bool {+ v = trimOWS(v)+ if comma := strings.IndexByte(v, ','); comma != -1 {+ return tokenEqual(trimOWS(v[:comma]), token) || headerValueContainsToken(v[comma+1:], token)+ }+ return tokenEqual(v, token)+}++// lowerASCII returns the ASCII lowercase version of b.+func lowerASCII(b byte) byte {+ if 'A' <= b && b <= 'Z' {+ return b + ('a' - 'A')+ }+ return b+}++// tokenEqual reports whether t1 and t2 are equal, ASCII case-insensitively.+func tokenEqual(t1, t2 string) bool {+ if len(t1) != len(t2) {+ return false+ }+ for i, b := range t1 {+ if b >= utf8.RuneSelf {+ // No UTF-8 or non-ASCII allowed in tokens.+ return false+ }+ if lowerASCII(byte(b)) != lowerASCII(t2[i]) {+ return false+ }+ }+ return true+}++// isLWS reports whether b is linear white space, according+// to http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2+// LWS = [CRLF] 1*( SP | HT )+func isLWS(b byte) bool { return b == ' ' || b == '\t' }++// isCTL reports whether b is a control byte, according+// to http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2+// CTL = <any US-ASCII control character+// (octets 0 - 31) and DEL (127)>+func isCTL(b byte) bool {+ const del = 0x7f // a CTL+ return b < ' ' || b == del+}++// ValidHeaderFieldName reports whether v is a valid HTTP/1.x header name.+// HTTP/2 imposes the additional restriction that uppercase ASCII+// letters are not allowed.+//+// RFC 7230 says:+// header-field = field-name ":" OWS field-value OWS+// field-name = token+// token = 1*tchar+// tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." /+// "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA+func ValidHeaderFieldName(v string) bool {+ if len(v) == 0 {+ return false+ }+ for _, r := range v {+ if !IsTokenRune(r) {+ return false+ }+ }+ return true+}++// ValidHostHeader reports whether h is a valid host header.+func ValidHostHeader(h string) bool {+ // The latest spec is actually this:+ //+ // http://tools.ietf.org/html/rfc7230#section-5.4+ // Host = uri-host [ ":" port ]+ //+ // Where uri-host is:+ // http://tools.ietf.org/html/rfc3986#section-3.2.2+ //+ // But we're going to be much more lenient for now and just+ // search for any byte that's not a valid byte in any of those+ // expressions.+ for i := 0; i < len(h); i++ {+ if !validHostByte[h[i]] {+ return false+ }+ }+ return true+}++// See the validHostHeader comment.+var validHostByte = [256]bool{+ '0': true, '1': true, '2': true, '3': true, '4': true, '5': true, '6': true, '7': true,+ '8': true, '9': true,++ 'a': true, 'b': true, 'c': true, 'd': true, 'e': true, 'f': true, 'g': true, 'h': true,+ 'i': true, 'j': true, 'k': true, 'l': true, 'm': true, 'n': true, 'o': true, 'p': true,+ 'q': true, 'r': true, 's': true, 't': true, 'u': true, 'v': true, 'w': true, 'x': true,+ 'y': true, 'z': true,++ 'A': true, 'B': true, 'C': true, 'D': true, 'E': true, 'F': true, 'G': true, 'H': true,+ 'I': true, 'J': true, 'K': true, 'L': true, 'M': true, 'N': true, 'O': true, 'P': true,+ 'Q': true, 'R': true, 'S': true, 'T': true, 'U': true, 'V': true, 'W': true, 'X': true,+ 'Y': true, 'Z': true,++ '!': true, // sub-delims+ '$': true, // sub-delims+ '%': true, // pct-encoded (and used in IPv6 zones)+ '&': true, // sub-delims+ '(': true, // sub-delims+ ')': true, // sub-delims+ '*': true, // sub-delims+ '+': true, // sub-delims+ ',': true, // sub-delims+ '-': true, // unreserved+ '.': true, // unreserved+ ':': true, // IPv6address + Host expression's optional port+ ';': true, // sub-delims+ '=': true, // sub-delims+ '[': true,+ '\'': true, // sub-delims+ ']': true,+ '_': true, // unreserved+ '~': true, // unreserved+}++// ValidHeaderFieldValue reports whether v is a valid "field-value" according to+// http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 :+//+// message-header = field-name ":" [ field-value ]+// field-value = *( field-content | LWS )+// field-content = <the OCTETs making up the field-value+// and consisting of either *TEXT or combinations+// of token, separators, and quoted-string>+//+// http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 :+//+// TEXT = <any OCTET except CTLs,+// but including LWS>+// LWS = [CRLF] 1*( SP | HT )+// CTL = <any US-ASCII control character+// (octets 0 - 31) and DEL (127)>+//+// RFC 7230 says:+// field-value = *( field-content / obs-fold )+// obj-fold = N/A to http2, and deprecated+// field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]+// field-vchar = VCHAR / obs-text+// obs-text = %x80-FF+// VCHAR = "any visible [USASCII] character"+//+// http2 further says: "Similarly, HTTP/2 allows header field values+// that are not valid. While most of the values that can be encoded+// will not alter header field parsing, carriage return (CR, ASCII+// 0xd), line feed (LF, ASCII 0xa), and the zero character (NUL, ASCII+// 0x0) might be exploited by an attacker if they are translated+// verbatim. Any request or response that contains a character not+// permitted in a header field value MUST be treated as malformed+// (Section 8.1.2.6). Valid characters are defined by the+// field-content ABNF rule in Section 3.2 of [RFC7230]."+//+// This function does not (yet?) properly handle the rejection of+// strings that begin or end with SP or HTAB.+func ValidHeaderFieldValue(v string) bool {+ for i := 0; i < len(v); i++ {+ b := v[i]+ if isCTL(b) && !isLWS(b) {+ return false+ }+ }+ return true+}++func isASCII(s string) bool {+ for i := 0; i < len(s); i++ {+ if s[i] >= utf8.RuneSelf {+ return false+ }+ }+ return true+}++// PunycodeHostPort returns the IDNA Punycode version+// of the provided "host" or "host:port" string.+func PunycodeHostPort(v string) (string, error) {+ if isASCII(v) {+ return v, nil+ }++ host, port, err := net.SplitHostPort(v)+ if err != nil {+ // The input 'v' argument was just a "host" argument,+ // without a port. This error should not be returned+ // to the caller.+ host = v+ port = ""+ }+ host, err = idna.ToASCII(host)+ if err != nil {+ // Non-UTF-8? Not representable in Punycode, in any+ // case.+ return "", err+ }+ if port == "" {+ return host, nil+ }+ return net.JoinHostPort(host, port), nil+}diff --git a/vendor/golang.org/x/net/trace/events.go b/vendor/golang.org/x/net/trace/events.gonew file mode 100644index 000000000..e66c7e328--- /dev/null+++ b/vendor/golang.org/x/net/trace/events.go@@ -0,0 +1,524 @@+// Copyright 2015 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package trace++import (+ "bytes"+ "fmt"+ "html/template"+ "io"+ "log"+ "net/http"+ "runtime"+ "sort"+ "strconv"+ "strings"+ "sync"+ "sync/atomic"+ "text/tabwriter"+ "time"+)++var eventsTmpl = template.Must(template.New("events").Funcs(template.FuncMap{+ "elapsed": elapsed,+ "trimSpace": strings.TrimSpace,+}).Parse(eventsHTML))++const maxEventsPerLog = 100++type bucket struct {+ MaxErrAge time.Duration+ String string+}++var buckets = []bucket{+ {0, "total"},+ {10 * time.Second, "errs<10s"},+ {1 * time.Minute, "errs<1m"},+ {10 * time.Minute, "errs<10m"},+ {1 * time.Hour, "errs<1h"},+ {10 * time.Hour, "errs<10h"},+ {24000 * time.Hour, "errors"},+}++// RenderEvents renders the HTML page typically served at /debug/events.+// It does not do any auth checking; see AuthRequest for the default auth check+// used by the handler registered on http.DefaultServeMux.+// req may be nil.+func RenderEvents(w http.ResponseWriter, req *http.Request, sensitive bool) {+ now := time.Now()+ data := &struct {+ Families []string // family names+ Buckets []bucket+ Counts [][]int // eventLog count per family/bucket++ // Set when a bucket has been selected.+ Family string+ Bucket int+ EventLogs eventLogs+ Expanded bool+ }{+ Buckets: buckets,+ }++ data.Families = make([]string, 0, len(families))+ famMu.RLock()+ for name := range families {+ data.Families = append(data.Families, name)+ }+ famMu.RUnlock()+ sort.Strings(data.Families)++ // Count the number of eventLogs in each family for each error age.+ data.Counts = make([][]int, len(data.Families))+ for i, name := range data.Families {+ // TODO(sameer): move this loop under the family lock.+ f := getEventFamily(name)+ data.Counts[i] = make([]int, len(data.Buckets))+ for j, b := range data.Buckets {+ data.Counts[i][j] = f.Count(now, b.MaxErrAge)+ }+ }++ if req != nil {+ var ok bool+ data.Family, data.Bucket, ok = parseEventsArgs(req)+ if !ok {+ // No-op+ } else {+ data.EventLogs = getEventFamily(data.Family).Copy(now, buckets[data.Bucket].MaxErrAge)+ }+ if data.EventLogs != nil {+ defer data.EventLogs.Free()+ sort.Sort(data.EventLogs)+ }+ if exp, err := strconv.ParseBool(req.FormValue("exp")); err == nil {+ data.Expanded = exp+ }+ }++ famMu.RLock()+ defer famMu.RUnlock()+ if err := eventsTmpl.Execute(w, data); err != nil {+ log.Printf("net/trace: Failed executing template: %v", err)+ }+}++func parseEventsArgs(req *http.Request) (fam string, b int, ok bool) {+ fam, bStr := req.FormValue("fam"), req.FormValue("b")+ if fam == "" || bStr == "" {+ return "", 0, false+ }+ b, err := strconv.Atoi(bStr)+ if err != nil || b < 0 || b >= len(buckets) {+ return "", 0, false+ }+ return fam, b, true+}++// An EventLog provides a log of events associated with a specific object.+type EventLog interface {+ // Printf formats its arguments with fmt.Sprintf and adds the+ // result to the event log.+ Printf(format string, a ...interface{})++ // Errorf is like Printf, but it marks this event as an error.+ Errorf(format string, a ...interface{})++ // Finish declares that this event log is complete.+ // The event log should not be used after calling this method.+ Finish()+}++// NewEventLog returns a new EventLog with the specified family name+// and title.+func NewEventLog(family, title string) EventLog {+ el := newEventLog()+ el.ref()+ el.Family, el.Title = family, title+ el.Start = time.Now()+ el.events = make([]logEntry, 0, maxEventsPerLog)+ el.stack = make([]uintptr, 32)+ n := runtime.Callers(2, el.stack)+ el.stack = el.stack[:n]++ getEventFamily(family).add(el)+ return el+}++func (el *eventLog) Finish() {+ getEventFamily(el.Family).remove(el)+ el.unref() // matches ref in New+}++var (+ famMu sync.RWMutex+ families = make(map[string]*eventFamily) // family name => family+)++func getEventFamily(fam string) *eventFamily {+ famMu.Lock()+ defer famMu.Unlock()+ f := families[fam]+ if f == nil {+ f = &eventFamily{}+ families[fam] = f+ }+ return f+}++type eventFamily struct {+ mu sync.RWMutex+ eventLogs eventLogs+}++func (f *eventFamily) add(el *eventLog) {+ f.mu.Lock()+ f.eventLogs = append(f.eventLogs, el)+ f.mu.Unlock()+}++func (f *eventFamily) remove(el *eventLog) {+ f.mu.Lock()+ defer f.mu.Unlock()+ for i, el0 := range f.eventLogs {+ if el == el0 {+ copy(f.eventLogs[i:], f.eventLogs[i+1:])+ f.eventLogs = f.eventLogs[:len(f.eventLogs)-1]+ return+ }+ }+}++func (f *eventFamily) Count(now time.Time, maxErrAge time.Duration) (n int) {+ f.mu.RLock()+ defer f.mu.RUnlock()+ for _, el := range f.eventLogs {+ if el.hasRecentError(now, maxErrAge) {+ n+++ }+ }+ return+}++func (f *eventFamily) Copy(now time.Time, maxErrAge time.Duration) (els eventLogs) {+ f.mu.RLock()+ defer f.mu.RUnlock()+ els = make(eventLogs, 0, len(f.eventLogs))+ for _, el := range f.eventLogs {+ if el.hasRecentError(now, maxErrAge) {+ el.ref()+ els = append(els, el)+ }+ }+ return+}++type eventLogs []*eventLog++// Free calls unref on each element of the list.+func (els eventLogs) Free() {+ for _, el := range els {+ el.unref()+ }+}++// eventLogs may be sorted in reverse chronological order.+func (els eventLogs) Len() int { return len(els) }+func (els eventLogs) Less(i, j int) bool { return els[i].Start.After(els[j].Start) }+func (els eventLogs) Swap(i, j int) { els[i], els[j] = els[j], els[i] }++// A logEntry is a timestamped log entry in an event log.+type logEntry struct {+ When time.Time+ Elapsed time.Duration // since previous event in log+ NewDay bool // whether this event is on a different day to the previous event+ What string+ IsErr bool+}++// WhenString returns a string representation of the elapsed time of the event.+// It will include the date if midnight was crossed.+func (e logEntry) WhenString() string {+ if e.NewDay {+ return e.When.Format("2006/01/02 15:04:05.000000")+ }+ return e.When.Format("15:04:05.000000")+}++// An eventLog represents an active event log.+type eventLog struct {+ // Family is the top-level grouping of event logs to which this belongs.+ Family string++ // Title is the title of this event log.+ Title string++ // Timing information.+ Start time.Time++ // Call stack where this event log was created.+ stack []uintptr++ // Append-only sequence of events.+ //+ // TODO(sameer): change this to a ring buffer to avoid the array copy+ // when we hit maxEventsPerLog.+ mu sync.RWMutex+ events []logEntry+ LastErrorTime time.Time+ discarded int++ refs int32 // how many buckets this is in+}++func (el *eventLog) reset() {+ // Clear all but the mutex. Mutexes may not be copied, even when unlocked.+ el.Family = ""+ el.Title = ""+ el.Start = time.Time{}+ el.stack = nil+ el.events = nil+ el.LastErrorTime = time.Time{}+ el.discarded = 0+ el.refs = 0+}++func (el *eventLog) hasRecentError(now time.Time, maxErrAge time.Duration) bool {+ if maxErrAge == 0 {+ return true+ }+ el.mu.RLock()+ defer el.mu.RUnlock()+ return now.Sub(el.LastErrorTime) < maxErrAge+}++// delta returns the elapsed time since the last event or the log start,+// and whether it spans midnight.+// L >= el.mu+func (el *eventLog) delta(t time.Time) (time.Duration, bool) {+ if len(el.events) == 0 {+ return t.Sub(el.Start), false+ }+ prev := el.events[len(el.events)-1].When+ return t.Sub(prev), prev.Day() != t.Day()++}++func (el *eventLog) Printf(format string, a ...interface{}) {+ el.printf(false, format, a...)+}++func (el *eventLog) Errorf(format string, a ...interface{}) {+ el.printf(true, format, a...)+}++func (el *eventLog) printf(isErr bool, format string, a ...interface{}) {+ e := logEntry{When: time.Now(), IsErr: isErr, What: fmt.Sprintf(format, a...)}+ el.mu.Lock()+ e.Elapsed, e.NewDay = el.delta(e.When)+ if len(el.events) < maxEventsPerLog {+ el.events = append(el.events, e)+ } else {+ // Discard the oldest event.+ if el.discarded == 0 {+ // el.discarded starts at two to count for the event it+ // is replacing, plus the next one that we are about to+ // drop.+ el.discarded = 2+ } else {+ el.discarded+++ }+ // TODO(sameer): if this causes allocations on a critical path,+ // change eventLog.What to be a fmt.Stringer, as in trace.go.+ el.events[0].What = fmt.Sprintf("(%d events discarded)", el.discarded)+ // The timestamp of the discarded meta-event should be+ // the time of the last event it is representing.+ el.events[0].When = el.events[1].When+ copy(el.events[1:], el.events[2:])+ el.events[maxEventsPerLog-1] = e+ }+ if e.IsErr {+ el.LastErrorTime = e.When+ }+ el.mu.Unlock()+}++func (el *eventLog) ref() {+ atomic.AddInt32(&el.refs, 1)+}++func (el *eventLog) unref() {+ if atomic.AddInt32(&el.refs, -1) == 0 {+ freeEventLog(el)+ }+}++func (el *eventLog) When() string {+ return el.Start.Format("2006/01/02 15:04:05.000000")+}++func (el *eventLog) ElapsedTime() string {+ elapsed := time.Since(el.Start)+ return fmt.Sprintf("%.6f", elapsed.Seconds())+}++func (el *eventLog) Stack() string {+ buf := new(bytes.Buffer)+ tw := tabwriter.NewWriter(buf, 1, 8, 1, '\t', 0)+ printStackRecord(tw, el.stack)+ tw.Flush()+ return buf.String()+}++// printStackRecord prints the function + source line information+// for a single stack trace.+// Adapted from runtime/pprof/pprof.go.+func printStackRecord(w io.Writer, stk []uintptr) {+ for _, pc := range stk {+ f := runtime.FuncForPC(pc)+ if f == nil {+ continue+ }+ file, line := f.FileLine(pc)+ name := f.Name()+ // Hide runtime.goexit and any runtime functions at the beginning.+ if strings.HasPrefix(name, "runtime.") {+ continue+ }+ fmt.Fprintf(w, "# %s\t%s:%d\n", name, file, line)+ }+}++func (el *eventLog) Events() []logEntry {+ el.mu.RLock()+ defer el.mu.RUnlock()+ return el.events+}++// freeEventLogs is a freelist of *eventLog+var freeEventLogs = make(chan *eventLog, 1000)++// newEventLog returns a event log ready to use.+func newEventLog() *eventLog {+ select {+ case el := <-freeEventLogs:+ return el+ default:+ return new(eventLog)+ }+}++// freeEventLog adds el to freeEventLogs if there's room.+// This is non-blocking.+func freeEventLog(el *eventLog) {+ el.reset()+ select {+ case freeEventLogs <- el:+ default:+ }+}++const eventsHTML = `+<html>+ <head>+ <title>events</title>+ </head>+ <style type="text/css">+ body {+ font-family: sans-serif;+ }+ table#req-status td.family {+ padding-right: 2em;+ }+ table#req-status td.active {+ padding-right: 1em;+ }+ table#req-status td.empty {+ color: #aaa;+ }+ table#reqs {+ margin-top: 1em;+ }+ table#reqs tr.first {+ {{if $.Expanded}}font-weight: bold;{{end}}+ }+ table#reqs td {+ font-family: monospace;+ }+ table#reqs td.when {+ text-align: right;+ white-space: nowrap;+ }+ table#reqs td.elapsed {+ padding: 0 0.5em;+ text-align: right;+ white-space: pre;+ width: 10em;+ }+ address {+ font-size: smaller;+ margin-top: 5em;+ }+ </style>+ <body>++<h1>/debug/events</h1>++<table id="req-status">+ {{range $i, $fam := .Families}}+ <tr>+ <td class="family">{{$fam}}</td>++ {{range $j, $bucket := $.Buckets}}+ {{$n := index $.Counts $i $j}}+ <td class="{{if not $bucket.MaxErrAge}}active{{end}}{{if not $n}}empty{{end}}">+ {{if $n}}<a href="?fam={{$fam}}&b={{$j}}{{if $.Expanded}}&exp=1{{end}}">{{end}}+ [{{$n}} {{$bucket.String}}]+ {{if $n}}</a>{{end}}+ </td>+ {{end}}++ </tr>{{end}}+</table>++{{if $.EventLogs}}+<hr />+<h3>Family: {{$.Family}}</h3>++{{if $.Expanded}}<a href="?fam={{$.Family}}&b={{$.Bucket}}">{{end}}+[Summary]{{if $.Expanded}}</a>{{end}}++{{if not $.Expanded}}<a href="?fam={{$.Family}}&b={{$.Bucket}}&exp=1">{{end}}+[Expanded]{{if not $.Expanded}}</a>{{end}}++<table id="reqs">+ <tr><th>When</th><th>Elapsed</th></tr>+ {{range $el := $.EventLogs}}+ <tr class="first">+ <td class="when">{{$el.When}}</td>+ <td class="elapsed">{{$el.ElapsedTime}}</td>+ <td>{{$el.Title}}+ </tr>+ {{if $.Expanded}}+ <tr>+ <td class="when"></td>+ <td class="elapsed"></td>+ <td><pre>{{$el.Stack|trimSpace}}</pre></td>+ </tr>+ {{range $el.Events}}+ <tr>+ <td class="when">{{.WhenString}}</td>+ <td class="elapsed">{{elapsed .Elapsed}}</td>+ <td>.{{if .IsErr}}E{{else}}.{{end}}. {{.What}}</td>+ </tr>+ {{end}}+ {{end}}+ {{end}}+</table>+{{end}}+ </body>+</html>+`diff --git a/vendor/golang.org/x/net/trace/histogram.go b/vendor/golang.org/x/net/trace/histogram.gonew file mode 100644index 000000000..bb42aa532--- /dev/null+++ b/vendor/golang.org/x/net/trace/histogram.go@@ -0,0 +1,356 @@+// Copyright 2015 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++package trace++// This file implements histogramming for RPC statistics collection.++import (+ "bytes"+ "fmt"+ "html/template"+ "log"+ "math"++ "golang.org/x/net/internal/timeseries"+)++const (+ bucketCount = 38+)++// histogram keeps counts of values in buckets that are spaced+// out in powers of 2: 0-1, 2-3, 4-7...+// histogram implements timeseries.Observable+type histogram struct {+ sum int64 // running total of measurements+ sumOfSquares float64 // square of running total+ buckets []int64 // bucketed values for histogram+ value int // holds a single value as an optimization+ valueCount int64 // number of values recorded for single value+}++// AddMeasurement records a value measurement observation to the histogram.+func (h *histogram) addMeasurement(value int64) {+ // TODO: assert invariant+ h.sum += value+ h.sumOfSquares += float64(value) * float64(value)++ bucketIndex := getBucket(value)++ if h.valueCount == 0 || (h.valueCount > 0 && h.value == bucketIndex) {+ h.value = bucketIndex+ h.valueCount+++ } else {+ h.allocateBuckets()+ h.buckets[bucketIndex]+++ }+}++func (h *histogram) allocateBuckets() {+ if h.buckets == nil {+ h.buckets = make([]int64, bucketCount)+ h.buckets[h.value] = h.valueCount+ h.value = 0+ h.valueCount = -1+ }+}++func log2(i int64) int {+ n := 0+ for ; i >= 0x100; i >>= 8 {+ n += 8+ }+ for ; i > 0; i >>= 1 {+ n += 1+ }+ return n+}++func getBucket(i int64) (index int) {+ index = log2(i) - 1+ if index < 0 {+ index = 0+ }+ if index >= bucketCount {+ index = bucketCount - 1+ }+ return+}++// Total returns the number of recorded observations.+func (h *histogram) total() (total int64) {+ if h.valueCount >= 0 {+ total = h.valueCount+ }+ for _, val := range h.buckets {+ total += int64(val)+ }+ return+}++// Average returns the average value of recorded observations.+func (h *histogram) average() float64 {+ t := h.total()+ if t == 0 {+ return 0+ }+ return float64(h.sum) / float64(t)+}++// Variance returns the variance of recorded observations.+func (h *histogram) variance() float64 {+ t := float64(h.total())+ if t == 0 {+ return 0+ }+ s := float64(h.sum) / t+ return h.sumOfSquares/t - s*s+}++// StandardDeviation returns the standard deviation of recorded observations.+func (h *histogram) standardDeviation() float64 {+ return math.Sqrt(h.variance())+}++// PercentileBoundary estimates the value that the given fraction of recorded+// observations are less than.+func (h *histogram) percentileBoundary(percentile float64) int64 {+ total := h.total()++ // Corner cases (make sure result is strictly less than Total())+ if total == 0 {+ return 0+ } else if total == 1 {+ return int64(h.average())+ }++ percentOfTotal := round(float64(total) * percentile)+ var runningTotal int64++ for i := range h.buckets {+ value := h.buckets[i]+ runningTotal += value+ if runningTotal == percentOfTotal {+ // We hit an exact bucket boundary. If the next bucket has data, it is a+ // good estimate of the value. If the bucket is empty, we interpolate the+ // midpoint between the next bucket's boundary and the next non-zero+ // bucket. If the remaining buckets are all empty, then we use the+ // boundary for the next bucket as the estimate.+ j := uint8(i + 1)+ min := bucketBoundary(j)+ if runningTotal < total {+ for h.buckets[j] == 0 {+ j+++ }+ }+ max := bucketBoundary(j)+ return min + round(float64(max-min)/2)+ } else if runningTotal > percentOfTotal {+ // The value is in this bucket. Interpolate the value.+ delta := runningTotal - percentOfTotal+ percentBucket := float64(value-delta) / float64(value)+ bucketMin := bucketBoundary(uint8(i))+ nextBucketMin := bucketBoundary(uint8(i + 1))+ bucketSize := nextBucketMin - bucketMin+ return bucketMin + round(percentBucket*float64(bucketSize))+ }+ }+ return bucketBoundary(bucketCount - 1)+}++// Median returns the estimated median of the observed values.+func (h *histogram) median() int64 {+ return h.percentileBoundary(0.5)+}++// Add adds other to h.+func (h *histogram) Add(other timeseries.Observable) {+ o := other.(*histogram)+ if o.valueCount == 0 {+ // Other histogram is empty+ } else if h.valueCount >= 0 && o.valueCount > 0 && h.value == o.value {+ // Both have a single bucketed value, aggregate them+ h.valueCount += o.valueCount+ } else {+ // Two different values necessitate buckets in this histogram+ h.allocateBuckets()+ if o.valueCount >= 0 {+ h.buckets[o.value] += o.valueCount+ } else {+ for i := range h.buckets {+ h.buckets[i] += o.buckets[i]+ }+ }+ }+ h.sumOfSquares += o.sumOfSquares+ h.sum += o.sum+}++// Clear resets the histogram to an empty state, removing all observed values.+func (h *histogram) Clear() {+ h.buckets = nil+ h.value = 0+ h.valueCount = 0+ h.sum = 0+ h.sumOfSquares = 0+}++// CopyFrom copies from other, which must be a *histogram, into h.+func (h *histogram) CopyFrom(other timeseries.Observable) {+ o := other.(*histogram)+ if o.valueCount == -1 {+ h.allocateBuckets()+ copy(h.buckets, o.buckets)+ }+ h.sum = o.sum+ h.sumOfSquares = o.sumOfSquares+ h.value = o.value+ h.valueCount = o.valueCount+}++// Multiply scales the histogram by the specified ratio.+func (h *histogram) Multiply(ratio float64) {+ if h.valueCount == -1 {+ for i := range h.buckets {+ h.buckets[i] = int64(float64(h.buckets[i]) * ratio)+ }+ } else {+ h.valueCount = int64(float64(h.valueCount) * ratio)+ }+ h.sum = int64(float64(h.sum) * ratio)+ h.sumOfSquares = h.sumOfSquares * ratio+}++// New creates a new histogram.+func (h *histogram) New() timeseries.Observable {+ r := new(histogram)+ r.Clear()+ return r+}++func (h *histogram) String() string {+ return fmt.Sprintf("%d, %f, %d, %d, %v",+ h.sum, h.sumOfSquares, h.value, h.valueCount, h.buckets)+}++// round returns the closest int64 to the argument+func round(in float64) int64 {+ return int64(math.Floor(in + 0.5))+}++// bucketBoundary returns the first value in the bucket.+func bucketBoundary(bucket uint8) int64 {+ if bucket == 0 {+ return 0+ }+ return 1 << bucket+}++// bucketData holds data about a specific bucket for use in distTmpl.+type bucketData struct {+ Lower, Upper int64+ N int64+ Pct, CumulativePct float64+ GraphWidth int+}++// data holds data about a Distribution for use in distTmpl.+type data struct {+ Buckets []*bucketData+ Count, Median int64+ Mean, StandardDeviation float64+}++// maxHTMLBarWidth is the maximum width of the HTML bar for visualizing buckets.+const maxHTMLBarWidth = 350.0++// newData returns data representing h for use in distTmpl.+func (h *histogram) newData() *data {+ // Force the allocation of buckets to simplify the rendering implementation+ h.allocateBuckets()+ // We scale the bars on the right so that the largest bar is+ // maxHTMLBarWidth pixels in width.+ maxBucket := int64(0)+ for _, n := range h.buckets {+ if n > maxBucket {+ maxBucket = n+ }+ }+ total := h.total()+ barsizeMult := maxHTMLBarWidth / float64(maxBucket)+ var pctMult float64+ if total == 0 {+ pctMult = 1.0+ } else {+ pctMult = 100.0 / float64(total)+ }++ buckets := make([]*bucketData, len(h.buckets))+ runningTotal := int64(0)+ for i, n := range h.buckets {+ if n == 0 {+ continue+ }+ runningTotal += n+ var upperBound int64+ if i < bucketCount-1 {+ upperBound = bucketBoundary(uint8(i + 1))+ } else {+ upperBound = math.MaxInt64+ }+ buckets[i] = &bucketData{+ Lower: bucketBoundary(uint8(i)),+ Upper: upperBound,+ N: n,+ Pct: float64(n) * pctMult,+ CumulativePct: float64(runningTotal) * pctMult,+ GraphWidth: int(float64(n) * barsizeMult),+ }+ }+ return &data{+ Buckets: buckets,+ Count: total,+ Median: h.median(),+ Mean: h.average(),+ StandardDeviation: h.standardDeviation(),+ }+}++func (h *histogram) html() template.HTML {+ buf := new(bytes.Buffer)+ if err := distTmpl.Execute(buf, h.newData()); err != nil {+ buf.Reset()+ log.Printf("net/trace: couldn't execute template: %v", err)+ }+ return template.HTML(buf.String())+}++// Input: data+var distTmpl = template.Must(template.New("distTmpl").Parse(`+<table>+<tr>+ <td style="padding:0.25em">Count: {{.Count}}</td>+ <td style="padding:0.25em">Mean: {{printf "%.0f" .Mean}}</td>+ <td style="padding:0.25em">StdDev: {{printf "%.0f" .StandardDeviation}}</td>+ <td style="padding:0.25em">Median: {{.Median}}</td>+</tr>+</table>+<hr>+<table>+{{range $b := .Buckets}}+{{if $b}}+ <tr>+ <td style="padding:0 0 0 0.25em">[</td>+ <td style="text-align:right;padding:0 0.25em">{{.Lower}},</td>+ <td style="text-align:right;padding:0 0.25em">{{.Upper}})</td>+ <td style="text-align:right;padding:0 0.25em">{{.N}}</td>+ <td style="text-align:right;padding:0 0.25em">{{printf "%#.3f" .Pct}}%</td>+ <td style="text-align:right;padding:0 0.25em">{{printf "%#.3f" .CumulativePct}}%</td>+ <td><div style="background-color: blue; height: 1em; width: {{.GraphWidth}};"></div></td>+ </tr>+{{end}}+{{end}}+</table>+`))diff --git a/vendor/golang.org/x/net/trace/trace.go b/vendor/golang.org/x/net/trace/trace.gonew file mode 100644index 000000000..4a5097dd9--- /dev/null+++ b/vendor/golang.org/x/net/trace/trace.go@@ -0,0 +1,1071 @@+// Copyright 2015 The Go Authors. All rights reserved.+// Use of this source code is governed by a BSD-style+// license that can be found in the LICENSE file.++/*+Package trace implements tracing of requests and long-lived objects.+It exports HTTP interfaces on /debug/requests and /debug/events.++A trace.Trace provides tracing for short-lived objects, usually requests.+A request handler might be implemented like this:++ func fooHandler(w http.ResponseWriter, req *http.Request) {+ tr := trace.New("mypkg.Foo", req.URL.Path)+ defer tr.Finish()+ ...+ tr.LazyPrintf("some event %q happened", str)+ ...+ if err := somethingImportant(); err != nil {+ tr.LazyPrintf("somethingImportant failed: %v", err)+ tr.SetError()+ }+ }++The /debug/requests HTTP endpoint organizes the traces by family,+errors, and duration. It also provides histogram of request duration+for each family.++A trace.EventLog provides tracing for long-lived objects, such as RPC+connections.++ // A Fetcher fetches URL paths for a single domain.+ type Fetcher struct {+ domain string+ events trace.EventLog+ }++ func NewFetcher(domain string) *Fetcher {+ return &Fetcher{+ domain,+ trace.NewEventLog("mypkg.Fetcher", domain),+ }+ }++ func (f *Fetcher) Fetch(path string) (string, error) {+ resp, err := http.Get("http://" + f.domain + "/" + path)+ if err != nil {+ f.events.Errorf("Get(%q) = %v", path, err)+ return "", err+ }+ f.events.Printf("Get(%q) = %s", path, resp.Status)+ ...+ }++ func (f *Fetcher) Close() error {+ f.events.Finish()+ return nil+ }++The /debug/events HTTP endpoint organizes the event logs by family and+by time since the last error. The expanded view displays recent log+entries and the log's call stack.+*/+package trace++import (+ "bytes"+ "fmt"+ "html/template"+ "io"+ "log"+ "net"+ "net/http"+ "runtime"+ "sort"+ "strconv"+ "sync"+ "sync/atomic"+ "time"++ "golang.org/x/net/context"+ "golang.org/x/net/internal/timeseries"+)++// DebugUseAfterFinish controls whether to debug uses of Trace values after finishing.+// FOR DEBUGGING ONLY. This will slow down the program.+var DebugUseAfterFinish = false++// AuthRequest determines whether a specific request is permitted to load the+// /debug/requests or /debug/events pages.+//+// It returns two bools; the first indicates whether the page may be viewed at all,+// and the second indicates whether sensitive events will be shown.+//+// AuthRequest may be replaced by a program to customize its authorization requirements.+//+// The default AuthRequest function returns (true, true) if and only if the request+// comes from localhost/127.0.0.1/[::1].+var AuthRequest = func(req *http.Request) (any, sensitive bool) {+ // RemoteAddr is commonly in the form "IP" or "IP:port".+ // If it is in the form "IP:port", split off the port.+ host, _, err := net.SplitHostPort(req.RemoteAddr)+ if err != nil {+ host = req.RemoteAddr+ }+ switch host {+ case "localhost", "127.0.0.1", "::1":+ return true, true+ default:+ return false, false+ }+}++func init() {+ http.HandleFunc("/debug/requests", func(w http.ResponseWriter, req *http.Request) {+ any, sensitive := AuthRequest(req)+ if !any {+ http.Error(w, "not allowed", http.StatusUnauthorized)+ return+ }+ w.Header().Set("Content-Type", "text/html; charset=utf-8")+ Render(w, req, sensitive)+ })+ http.HandleFunc("/debug/events", func(w http.ResponseWriter, req *http.Request) {+ any, sensitive := AuthRequest(req)+ if !any {+ http.Error(w, "not allowed", http.StatusUnauthorized)+ return+ }+ w.Header().Set("Content-Type", "text/html; charset=utf-8")+ RenderEvents(w, req, sensitive)+ })+}++// Render renders the HTML page typically served at /debug/requests.+// It does not do any auth checking; see AuthRequest for the default auth check+// used by the handler registered on http.DefaultServeMux.+// req may be nil.+func Render(w io.Writer, req *http.Request, sensitive bool) {+ data := &struct {+ Families []string+ ActiveTraceCount map[string]int+ CompletedTraces map[string]*family++ // Set when a bucket has been selected.+ Traces traceList+ Family string+ Bucket int+ Expanded bool+ Traced bool+ Active bool+ ShowSensitive bool // whether to show sensitive events++ Histogram template.HTML+ HistogramWindow string // e.g. "last minute", "last hour", "all time"++ // If non-zero, the set of traces is a partial set,+ // and this is the total number.+ Total int+ }{+ CompletedTraces: completedTraces,+ }++ data.ShowSensitive = sensitive+ if req != nil {+ // Allow show_sensitive=0 to force hiding of sensitive data for testing.+ // This only goes one way; you can't use show_sensitive=1 to see things.+ if req.FormValue("show_sensitive") == "0" {+ data.ShowSensitive = false+ }++ if exp, err := strconv.ParseBool(req.FormValue("exp")); err == nil {+ data.Expanded = exp+ }+ if exp, err := strconv.ParseBool(req.FormValue("rtraced")); err == nil {+ data.Traced = exp+ }+ }++ completedMu.RLock()+ data.Families = make([]string, 0, len(completedTraces))+ for fam := range completedTraces {+ data.Families = append(data.Families, fam)+ }+ completedMu.RUnlock()+ sort.Strings(data.Families)++ // We are careful here to minimize the time spent locking activeMu,+ // since that lock is required every time an RPC starts and finishes.+ data.ActiveTraceCount = make(map[string]int, len(data.Families))+ activeMu.RLock()+ for fam, s := range activeTraces {+ data.ActiveTraceCount[fam] = s.Len()+ }+ activeMu.RUnlock()++ var ok bool+ data.Family, data.Bucket, ok = parseArgs(req)+ switch {+ case !ok:+ // No-op+ case data.Bucket == -1:+ data.Active = true+ n := data.ActiveTraceCount[data.Family]+ data.Traces = getActiveTraces(data.Family)+ if len(data.Traces) < n {+ data.Total = n+ }+ case data.Bucket < bucketsPerFamily:+ if b := lookupBucket(data.Family, data.Bucket); b != nil {+ data.Traces = b.Copy(data.Traced)+ }+ default:+ if f := getFamily(data.Family, false); f != nil {+ var obs timeseries.Observable+ f.LatencyMu.RLock()+ switch o := data.Bucket - bucketsPerFamily; o {+ case 0:+ obs = f.Latency.Minute()+ data.HistogramWindow = "last minute"+ case 1:+ obs = f.Latency.Hour()+ data.HistogramWindow = "last hour"+ case 2:+ obs = f.Latency.Total()+ data.HistogramWindow = "all time"+ }+ f.LatencyMu.RUnlock()+ if obs != nil {+ data.Histogram = obs.(*histogram).html()+ }+ }+ }++ if data.Traces != nil {+ defer data.Traces.Free()+ sort.Sort(data.Traces)+ }++ completedMu.RLock()+ defer completedMu.RUnlock()+ if err := pageTmpl.ExecuteTemplate(w, "Page", data); err != nil {+ log.Printf("net/trace: Failed executing template: %v", err)+ }+}++func parseArgs(req *http.Request) (fam string, b int, ok bool) {+ if req == nil {+ return "", 0, false+ }+ fam, bStr := req.FormValue("fam"), req.FormValue("b")+ if fam == "" || bStr == "" {+ return "", 0, false+ }+ b, err := strconv.Atoi(bStr)+ if err != nil || b < -1 {+ return "", 0, false+ }++ return fam, b, true+}++func lookupBucket(fam string, b int) *traceBucket {+ f := getFamily(fam, false)+ if f == nil || b < 0 || b >= len(f.Buckets) {+ return nil+ }+ return f.Buckets[b]+}++type contextKeyT string++var contextKey = contextKeyT("golang.org/x/net/trace.Trace")++// NewContext returns a copy of the parent context+// and associates it with a Trace.+func NewContext(ctx context.Context, tr Trace) context.Context {+ return context.WithValue(ctx, contextKey, tr)+}++// FromContext returns the Trace bound to the context, if any.+func FromContext(ctx context.Context) (tr Trace, ok bool) {+ tr, ok = ctx.Value(contextKey).(Trace)+ return+}++// Trace represents an active request.+type Trace interface {+ // LazyLog adds x to the event log. It will be evaluated each time the+ // /debug/requests page is rendered. Any memory referenced by x will be+ // pinned until the trace is finished and later discarded.+ LazyLog(x fmt.Stringer, sensitive bool)++ // LazyPrintf evaluates its arguments with fmt.Sprintf each time the+ // /debug/requests page is rendered. Any memory referenced by a will be+ // pinned until the trace is finished and later discarded.+ LazyPrintf(format string, a ...interface{})++ // SetError declares that this trace resulted in an error.+ SetError()++ // SetRecycler sets a recycler for the trace.+ // f will be called for each event passed to LazyLog at a time when+ // it is no longer required, whether while the trace is still active+ // and the event is discarded, or when a completed trace is discarded.+ SetRecycler(f func(interface{}))++ // SetTraceInfo sets the trace info for the trace.+ // This is currently unused.+ SetTraceInfo(traceID, spanID uint64)++ // SetMaxEvents sets the maximum number of events that will be stored+ // in the trace. This has no effect if any events have already been+ // added to the trace.+ SetMaxEvents(m int)++ // Finish declares that this trace is complete.+ // The trace should not be used after calling this method.+ Finish()+}++type lazySprintf struct {+ format string+ a []interface{}+}++func (l *lazySprintf) String() string {+ return fmt.Sprintf(l.format, l.a...)+}++// New returns a new Trace with the specified family and title.+func New(family, title string) Trace {+ tr := newTrace()+ tr.ref()+ tr.Family, tr.Title = family, title+ tr.Start = time.Now()+ tr.maxEvents = maxEventsPerTrace+ tr.events = tr.eventsBuf[:0]++ activeMu.RLock()+ s := activeTraces[tr.Family]+ activeMu.RUnlock()+ if s == nil {+ activeMu.Lock()+ s = activeTraces[tr.Family] // check again+ if s == nil {+ s = new(traceSet)+ activeTraces[tr.Family] = s+ }+ activeMu.Unlock()+ }+ s.Add(tr)++ // Trigger allocation of the completed trace structure for this family.+ // This will cause the family to be present in the request page during+ // the first trace of this family. We don't care about the return value,+ // nor is there any need for this to run inline, so we execute it in its+ // own goroutine, but only if the family isn't allocated yet.+ completedMu.RLock()+ if _, ok := completedTraces[tr.Family]; !ok {+ go allocFamily(tr.Family)+ }+ completedMu.RUnlock()++ return tr+}++func (tr *trace) Finish() {+ tr.Elapsed = time.Now().Sub(tr.Start)+ if DebugUseAfterFinish {+ buf := make([]byte, 4<<10) // 4 KB should be enough+ n := runtime.Stack(buf, false)+ tr.finishStack = buf[:n]+ }++ activeMu.RLock()+ m := activeTraces[tr.Family]+ activeMu.RUnlock()+ m.Remove(tr)++ f := getFamily(tr.Family, true)+ for _, b := range f.Buckets {+ if b.Cond.match(tr) {+ b.Add(tr)+ }+ }+ // Add a sample of elapsed time as microseconds to the family's timeseries+ h := new(histogram)+ h.addMeasurement(tr.Elapsed.Nanoseconds() / 1e3)+ f.LatencyMu.Lock()+ f.Latency.Add(h)+ f.LatencyMu.Unlock()++ tr.unref() // matches ref in New+}++const (+ bucketsPerFamily = 9+ tracesPerBucket = 10+ maxActiveTraces = 20 // Maximum number of active traces to show.+ maxEventsPerTrace = 10+ numHistogramBuckets = 38+)++var (+ // The active traces.+ activeMu sync.RWMutex+ activeTraces = make(map[string]*traceSet) // family -> traces++ // Families of completed traces.+ completedMu sync.RWMutex+ completedTraces = make(map[string]*family) // family -> traces+)++type traceSet struct {+ mu sync.RWMutex+ m map[*trace]bool++ // We could avoid the entire map scan in FirstN by having a slice of all the traces+ // ordered by start time, and an index into that from the trace struct, with a periodic+ // repack of the slice after enough traces finish; we could also use a skip list or similar.+ // However, that would shift some of the expense from /debug/requests time to RPC time,+ // which is probably the wrong trade-off.+}++func (ts *traceSet) Len() int {+ ts.mu.RLock()+ defer ts.mu.RUnlock()+ return len(ts.m)+}++func (ts *traceSet) Add(tr *trace) {+ ts.mu.Lock()+ if ts.m == nil {+ ts.m = make(map[*trace]bool)+ }+ ts.m[tr] = true+ ts.mu.Unlock()+}++func (ts *traceSet) Remove(tr *trace) {+ ts.mu.Lock()+ delete(ts.m, tr)+ ts.mu.Unlock()+}++// FirstN returns the first n traces ordered by time.+func (ts *traceSet) FirstN(n int) traceList {+ ts.mu.RLock()+ defer ts.mu.RUnlock()++ if n > len(ts.m) {+ n = len(ts.m)+ }+ trl := make(traceList, 0, n)++ // Fast path for when no selectivity is needed.+ if n == len(ts.m) {+ for tr := range ts.m {+ tr.ref()+ trl = append(trl, tr)+ }+ sort.Sort(trl)+ return trl+ }++ // Pick the oldest n traces.+ // This is inefficient. See the comment in the traceSet struct.+ for tr := range ts.m {+ // Put the first n traces into trl in the order they occur.+ // When we have n, sort trl, and thereafter maintain its order.+ if len(trl) < n {+ tr.ref()+ trl = append(trl, tr)+ if len(trl) == n {+ // This is guaranteed to happen exactly once during this loop.+ sort.Sort(trl)+ }+ continue+ }+ if tr.Start.After(trl[n-1].Start) {+ continue+ }++ // Find where to insert this one.+ tr.ref()+ i := sort.Search(n, func(i int) bool { return trl[i].Start.After(tr.Start) })+ trl[n-1].unref()+ copy(trl[i+1:], trl[i:])+ trl[i] = tr+ }++ return trl+}++func getActiveTraces(fam string) traceList {+ activeMu.RLock()+ s := activeTraces[fam]+ activeMu.RUnlock()+ if s == nil {+ return nil+ }+ return s.FirstN(maxActiveTraces)+}++func getFamily(fam string, allocNew bool) *family {+ completedMu.RLock()+ f := completedTraces[fam]+ completedMu.RUnlock()+ if f == nil && allocNew {+ f = allocFamily(fam)+ }+ return f+}++func allocFamily(fam string) *family {+ completedMu.Lock()+ defer completedMu.Unlock()+ f := completedTraces[fam]+ if f == nil {+ f = newFamily()+ completedTraces[fam] = f+ }+ return f+}++// family represents a set of trace buckets and associated latency information.+type family struct {+ // traces may occur in multiple buckets.+ Buckets [bucketsPerFamily]*traceBucket++ // latency time series+ LatencyMu sync.RWMutex+ Latency *timeseries.MinuteHourSeries+}++func newFamily() *family {+ return &family{+ Buckets: [bucketsPerFamily]*traceBucket{+ {Cond: minCond(0)},+ {Cond: minCond(50 * time.Millisecond)},+ {Cond: minCond(100 * time.Millisecond)},+ {Cond: minCond(200 * time.Millisecond)},+ {Cond: minCond(500 * time.Millisecond)},+ {Cond: minCond(1 * time.Second)},+ {Cond: minCond(10 * time.Second)},+ {Cond: minCond(100 * time.Second)},+ {Cond: errorCond{}},+ },+ Latency: timeseries.NewMinuteHourSeries(func() timeseries.Observable { return new(histogram) }),+ }+}++// traceBucket represents a size-capped bucket of historic traces,+// along with a condition for a trace to belong to the bucket.+type traceBucket struct {+ Cond cond++ // Ring buffer implementation of a fixed-size FIFO queue.+ mu sync.RWMutex+ buf [tracesPerBucket]*trace+ start int // < tracesPerBucket+ length int // <= tracesPerBucket+}++func (b *traceBucket) Add(tr *trace) {+ b.mu.Lock()+ defer b.mu.Unlock()++ i := b.start + b.length+ if i >= tracesPerBucket {+ i -= tracesPerBucket+ }+ if b.length == tracesPerBucket {+ // "Remove" an element from the bucket.+ b.buf[i].unref()+ b.start+++ if b.start == tracesPerBucket {+ b.start = 0+ }+ }+ b.buf[i] = tr+ if b.length < tracesPerBucket {+ b.length+++ }+ tr.ref()+}++// Copy returns a copy of the traces in the bucket.+// If tracedOnly is true, only the traces with trace information will be returned.+// The logs will be ref'd before returning; the caller should call+// the Free method when it is done with them.+// TODO(dsymonds): keep track of traced requests in separate buckets.+func (b *traceBucket) Copy(tracedOnly bool) traceList {+ b.mu.RLock()+ defer b.mu.RUnlock()++ trl := make(traceList, 0, b.length)+ for i, x := 0, b.start; i < b.length; i++ {+ tr := b.buf[x]+ if !tracedOnly || tr.spanID != 0 {+ tr.ref()+ trl = append(trl, tr)+ }+ x+++ if x == b.length {+ x = 0+ }+ }+ return trl+}++func (b *traceBucket) Empty() bool {+ b.mu.RLock()+ defer b.mu.RUnlock()+ return b.length == 0+}++// cond represents a condition on a trace.+type cond interface {+ match(t *trace) bool+ String() string+}++type minCond time.Duration++func (m minCond) match(t *trace) bool { return t.Elapsed >= time.Duration(m) }+func (m minCond) String() string { return fmt.Sprintf("≥%gs", time.Duration(m).Seconds()) }++type errorCond struct{}++func (e errorCond) match(t *trace) bool { return t.IsError }+func (e errorCond) String() string { return "errors" }++type traceList []*trace++// Free calls unref on each element of the list.+func (trl traceList) Free() {+ for _, t := range trl {+ t.unref()+ }+}++// traceList may be sorted in reverse chronological order.+func (trl traceList) Len() int { return len(trl) }+func (trl traceList) Less(i, j int) bool { return trl[i].Start.After(trl[j].Start) }+func (trl traceList) Swap(i, j int) { trl[i], trl[j] = trl[j], trl[i] }++// An event is a timestamped log entry in a trace.+type event struct {+ When time.Time+ Elapsed time.Duration // since previous event in trace+ NewDay bool // whether this event is on a different day to the previous event+ Recyclable bool // whether this event was passed via LazyLog+ Sensitive bool // whether this event contains sensitive information+ What interface{} // string or fmt.Stringer+}++// WhenString returns a string representation of the elapsed time of the event.+// It will include the date if midnight was crossed.+func (e event) WhenString() string {+ if e.NewDay {+ return e.When.Format("2006/01/02 15:04:05.000000")+ }+ return e.When.Format("15:04:05.000000")+}++// discarded represents a number of discarded events.+// It is stored as *discarded to make it easier to update in-place.+type discarded int++func (d *discarded) String() string {+ return fmt.Sprintf("(%d events discarded)", int(*d))+}++// trace represents an active or complete request,+// either sent or received by this program.+type trace struct {+ // Family is the top-level grouping of traces to which this belongs.+ Family string++ // Title is the title of this trace.+ Title string++ // Timing information.+ Start time.Time+ Elapsed time.Duration // zero while active++ // Trace information if non-zero.+ traceID uint64+ spanID uint64++ // Whether this trace resulted in an error.+ IsError bool++ // Append-only sequence of events (modulo discards).+ mu sync.RWMutex+ events []event+ maxEvents int++ refs int32 // how many buckets this is in+ recycler func(interface{})+ disc discarded // scratch space to avoid allocation++ finishStack []byte // where finish was called, if DebugUseAfterFinish is set++ eventsBuf [4]event // preallocated buffer in case we only log a few events+}++func (tr *trace) reset() {+ // Clear all but the mutex. Mutexes may not be copied, even when unlocked.+ tr.Family = ""+ tr.Title = ""+ tr.Start = time.Time{}+ tr.Elapsed = 0+ tr.traceID = 0+ tr.spanID = 0+ tr.IsError = false+ tr.maxEvents = 0+ tr.events = nil+ tr.refs = 0+ tr.recycler = nil+ tr.disc = 0+ tr.finishStack = nil+ for i := range tr.eventsBuf {+ tr.eventsBuf[i] = event{}+ }+}++// delta returns the elapsed time since the last event or the trace start,+// and whether it spans midnight.+// L >= tr.mu+func (tr *trace) delta(t time.Time) (time.Duration, bool) {+ if len(tr.events) == 0 {+ return t.Sub(tr.Start), false+ }+ prev := tr.events[len(tr.events)-1].When+ return t.Sub(prev), prev.Day() != t.Day()+}++func (tr *trace) addEvent(x interface{}, recyclable, sensitive bool) {+ if DebugUseAfterFinish && tr.finishStack != nil {+ buf := make([]byte, 4<<10) // 4 KB should be enough+ n := runtime.Stack(buf, false)+ log.Printf("net/trace: trace used after finish:\nFinished at:\n%s\nUsed at:\n%s", tr.finishStack, buf[:n])+ }++ /*+ NOTE TO DEBUGGERS++ If you are here because your program panicked in this code,+ it is almost definitely the fault of code using this package,+ and very unlikely to be the fault of this code.++ The most likely scenario is that some code elsewhere is using+ a trace.Trace after its Finish method is called.+ You can temporarily set the DebugUseAfterFinish var+ to help discover where that is; do not leave that var set,+ since it makes this package much less efficient.+ */++ e := event{When: time.Now(), What: x, Recyclable: recyclable, Sensitive: sensitive}+ tr.mu.Lock()+ e.Elapsed, e.NewDay = tr.delta(e.When)+ if len(tr.events) < tr.maxEvents {+ tr.events = append(tr.events, e)+ } else {+ // Discard the middle events.+ di := int((tr.maxEvents - 1) / 2)+ if d, ok := tr.events[di].What.(*discarded); ok {+ (*d)+++ } else {+ // disc starts at two to count for the event it is replacing,+ // plus the next one that we are about to drop.+ tr.disc = 2+ if tr.recycler != nil && tr.events[di].Recyclable {+ go tr.recycler(tr.events[di].What)+ }+ tr.events[di].What = &tr.disc+ }+ // The timestamp of the discarded meta-event should be+ // the time of the last event it is representing.+ tr.events[di].When = tr.events[di+1].When++ if tr.recycler != nil && tr.events[di+1].Recyclable {+ go tr.recycler(tr.events[di+1].What)+ }+ copy(tr.events[di+1:], tr.events[di+2:])+ tr.events[tr.maxEvents-1] = e+ }+ tr.mu.Unlock()+}++func (tr *trace) LazyLog(x fmt.Stringer, sensitive bool) {+ tr.addEvent(x, true, sensitive)+}++func (tr *trace) LazyPrintf(format string, a ...interface{}) {+ tr.addEvent(&lazySprintf{format, a}, false, false)+}++func (tr *trace) SetError() { tr.IsError = true }++func (tr *trace) SetRecycler(f func(interface{})) {+ tr.recycler = f+}++func (tr *trace) SetTraceInfo(traceID, spanID uint64) {+ tr.traceID, tr.spanID = traceID, spanID+}++func (tr *trace) SetMaxEvents(m int) {+ // Always keep at least three events: first, discarded count, last.+ if len(tr.events) == 0 && m > 3 {+ tr.maxEvents = m+ }+}++func (tr *trace) ref() {+ atomic.AddInt32(&tr.refs, 1)+}++func (tr *trace) unref() {+ if atomic.AddInt32(&tr.refs, -1) == 0 {+ if tr.recycler != nil {+ // freeTrace clears tr, so we hold tr.recycler and tr.events here.+ go func(f func(interface{}), es []event) {+ for _, e := range es {+ if e.Recyclable {+ f(e.What)+ }+ }+ }(tr.recycler, tr.events)+ }++ freeTrace(tr)+ }+}++func (tr *trace) When() string {+ return tr.Start.Format("2006/01/02 15:04:05.000000")+}++func (tr *trace) ElapsedTime() string {+ t := tr.Elapsed+ if t == 0 {+ // Active trace.+ t = time.Since(tr.Start)+ }+ return fmt.Sprintf("%.6f", t.Seconds())+}++func (tr *trace) Events() []event {+ tr.mu.RLock()+ defer tr.mu.RUnlock()+ return tr.events+}++var traceFreeList = make(chan *trace, 1000) // TODO(dsymonds): Use sync.Pool?++// newTrace returns a trace ready to use.+func newTrace() *trace {+ select {+ case tr := <-traceFreeList:+ return tr+ default:+ return new(trace)+ }+}++// freeTrace adds tr to traceFreeList if there's room.+// This is non-blocking.+func freeTrace(tr *trace) {+ if DebugUseAfterFinish {+ return // never reuse+ }+ tr.reset()+ select {+ case traceFreeList <- tr:+ default:+ }+}++func elapsed(d time.Duration) string {+ b := []byte(fmt.Sprintf("%.6f", d.Seconds()))++ // For subsecond durations, blank all zeros before decimal point,+ // and all zeros between the decimal point and the first non-zero digit.+ if d < time.Second {+ dot := bytes.IndexByte(b, '.')+ for i := 0; i < dot; i++ {+ b[i] = ' '+ }+ for i := dot + 1; i < len(b); i++ {+ if b[i] == '0' {+ b[i] = ' '+ } else {+ break+ }+ }+ }++ return string(b)+}++var pageTmpl = template.Must(template.New("Page").Funcs(template.FuncMap{+ "elapsed": elapsed,+ "add": func(a, b int) int { return a + b },+}).Parse(pageHTML))++const pageHTML = `+{{template "Prolog" .}}+{{template "StatusTable" .}}+{{template "Epilog" .}}++{{define "Prolog"}}+<html>+ <head>+ <title>/debug/requests</title>+ <style type="text/css">+ body {+ font-family: sans-serif;+ }+ table#tr-status td.family {+ padding-right: 2em;+ }+ table#tr-status td.active {+ padding-right: 1em;+ }+ table#tr-status td.latency-first {+ padding-left: 1em;+ }+ table#tr-status td.empty {+ color: #aaa;+ }+ table#reqs {+ margin-top: 1em;+ }+ table#reqs tr.first {+ {{if $.Expanded}}font-weight: bold;{{end}}+ }+ table#reqs td {+ font-family: monospace;+ }+ table#reqs td.when {+ text-align: right;+ white-space: nowrap;+ }+ table#reqs td.elapsed {+ padding: 0 0.5em;+ text-align: right;+ white-space: pre;+ width: 10em;+ }+ address {+ font-size: smaller;+ margin-top: 5em;+ }+ </style>+ </head>+ <body>++<h1>/debug/requests</h1>+{{end}} {{/* end of Prolog */}}++{{define "StatusTable"}}+<table id="tr-status">+ {{range $fam := .Families}}+ <tr>+ <td class="family">{{$fam}}</td>++ {{$n := index $.ActiveTraceCount $fam}}+ <td class="active {{if not $n}}empty{{end}}">+ {{if $n}}<a href="?fam={{$fam}}&b=-1{{if $.Expanded}}&exp=1{{end}}">{{end}}+ [{{$n}} active]+ {{if $n}}</a>{{end}}+ </td>++ {{$f := index $.CompletedTraces $fam}}+ {{range $i, $b := $f.Buckets}}+ {{$empty := $b.Empty}}+ <td {{if $empty}}class="empty"{{end}}>+ {{if not $empty}}<a href="?fam={{$fam}}&b={{$i}}{{if $.Expanded}}&exp=1{{end}}">{{end}}+ [{{.Cond}}]+ {{if not $empty}}</a>{{end}}+ </td>+ {{end}}++ {{$nb := len $f.Buckets}}+ <td class="latency-first">+ <a href="?fam={{$fam}}&b={{$nb}}">[minute]</a>+ </td>+ <td>+ <a href="?fam={{$fam}}&b={{add $nb 1}}">[hour]</a>+ </td>+ <td>+ <a href="?fam={{$fam}}&b={{add $nb 2}}">[total]</a>+ </td>++ </tr>+ {{end}}+</table>+{{end}} {{/* end of StatusTable */}}++{{define "Epilog"}}+{{if $.Traces}}+<hr />+<h3>Family: {{$.Family}}</h3>++{{if or $.Expanded $.Traced}}+ <a href="?fam={{$.Family}}&b={{$.Bucket}}">[Normal/Summary]</a>+{{else}}+ [Normal/Summary]+{{end}}++{{if or (not $.Expanded) $.Traced}}+ <a href="?fam={{$.Family}}&b={{$.Bucket}}&exp=1">[Normal/Expanded]</a>+{{else}}+ [Normal/Expanded]+{{end}}++{{if not $.Active}}+ {{if or $.Expanded (not $.Traced)}}+ <a href="?fam={{$.Family}}&b={{$.Bucket}}&rtraced=1">[Traced/Summary]</a>+ {{else}}+ [Traced/Summary]+ {{end}}+ {{if or (not $.Expanded) (not $.Traced)}}+ <a href="?fam={{$.Family}}&b={{$.Bucket}}&exp=1&rtraced=1">[Traced/Expanded]</a>+ {{else}}+ [Traced/Expanded]+ {{end}}+{{end}}++{{if $.Total}}+<p><em>Showing <b>{{len $.Traces}}</b> of <b>{{$.Total}}</b> traces.</em></p>+{{end}}++<table id="reqs">+ <caption>+ {{if $.Active}}Active{{else}}Completed{{end}} Requests+ </caption>+ <tr><th>When</th><th>Elapsed (s)</th></tr>+ {{range $tr := $.Traces}}+ <tr class="first">+ <td class="when">{{$tr.When}}</td>+ <td class="elapsed">{{$tr.ElapsedTime}}</td>+ <td>{{$tr.Title}}</td>+ {{/* TODO: include traceID/spanID */}}+ </tr>+ {{if $.Expanded}}+ {{range $tr.Events}}+ <tr>+ <td class="when">{{.WhenString}}</td>+ <td class="elapsed">{{elapsed .Elapsed}}</td>+ <td>{{if or $.ShowSensitive (not .Sensitive)}}... {{.What}}{{else}}<em>[redacted]</em>{{end}}</td>+ </tr>+ {{end}}+ {{end}}+ {{end}}+</table>+{{end}} {{/* if $.Traces */}}++{{if $.Histogram}}+<h4>Latency (µs) of {{$.Family}} over {{$.HistogramWindow}}</h4>+{{$.Histogram}}+{{end}} {{/* if $.Histogram */}}++ </body>+</html>+{{end}} {{/* end of Epilog */}}+`diff --git a/vendor/golang.org/x/oauth2/google/default.go b/vendor/golang.org/x/oauth2/google/default.goindex 565d731c4..c572d1a70 100644--- a/vendor/golang.org/x/oauth2/google/default.go+++ b/vendor/golang.org/x/oauth2/google/default.go@@ -6,7 +6,6 @@ package googleimport ("encoding/json"- "errors""fmt""io/ioutil""net/http"@@ -17,7 +16,6 @@ import ("cloud.google.com/go/compute/metadata""golang.org/x/net/context""golang.org/x/oauth2"- "golang.org/x/oauth2/jwt")// DefaultClient returns an HTTP Client that uses the@@ -112,44 +110,9 @@ func tokenSourceFromFile(ctx context.Context, filename string, scopes []string)if err != nil {return nil, err}- var d struct {- // Common fields- Type string- ClientID string `json:"client_id"`-- // User Credential fields- ClientSecret string `json:"client_secret"`- RefreshToken string `json:"refresh_token"`-- // Service Account fields- ClientEmail string `json:"client_email"`- PrivateKeyID string `json:"private_key_id"`- PrivateKey string `json:"private_key"`- }- if err := json.Unmarshal(b, &d); err != nil {+ var f credentialsFile+ if err := json.Unmarshal(b, &f); err != nil {return nil, err}- switch d.Type {- case "authorized_user":- cfg := &oauth2.Config{- ClientID: d.ClientID,- ClientSecret: d.ClientSecret,- Scopes: append([]string{}, scopes...), // copy- Endpoint: Endpoint,- }- tok := &oauth2.Token{RefreshToken: d.RefreshToken}- return cfg.TokenSource(ctx, tok), nil- case "service_account":- cfg := &jwt.Config{- Email: d.ClientEmail,- PrivateKey: []byte(d.PrivateKey),- Scopes: append([]string{}, scopes...), // copy- TokenURL: JWTTokenURL,- }- return cfg.TokenSource(ctx), nil- case "":- return nil, errors.New("missing 'type' field in credentials")- default:- return nil, fmt.Errorf("unknown credential type: %q", d.Type)- }+ return f.tokenSource(ctx, scopes)}diff --git a/vendor/golang.org/x/oauth2/google/google.go b/vendor/golang.org/x/oauth2/google/google.goindex 4f7352762..f30306dc0 100644--- a/vendor/golang.org/x/oauth2/google/google.go+++ b/vendor/golang.org/x/oauth2/google/google.go@@ -22,6 +22,7 @@ import ("time""cloud.google.com/go/compute/metadata"+ "golang.org/x/net/context""golang.org/x/oauth2""golang.org/x/oauth2/jwt")@@ -85,26 +86,73 @@ func ConfigFromJSON(jsonKey []byte, scope ...string) (*oauth2.Config, error) {// Create a service account on "Credentials" for your project at// https://console.developers.google.com to download a JSON key file.func JWTConfigFromJSON(jsonKey []byte, scope ...string) (*jwt.Config, error) {- var key struct {- Email string `json:"client_email"`- PrivateKey string `json:"private_key"`- PrivateKeyID string `json:"private_key_id"`- TokenURL string `json:"token_uri"`- }- if err := json.Unmarshal(jsonKey, &key); err != nil {+ var f credentialsFile+ if err := json.Unmarshal(jsonKey, &f); err != nil {return nil, err}- config := &jwt.Config{- Email: key.Email,- PrivateKey: []byte(key.PrivateKey),- PrivateKeyID: key.PrivateKeyID,- Scopes: scope,- TokenURL: key.TokenURL,+ if f.Type != serviceAccountKey {+ return nil, fmt.Errorf("google: read JWT from JSON credentials: 'type' field is %q (expected %q)", f.Type, serviceAccountKey)}- if config.TokenURL == "" {- config.TokenURL = JWTTokenURL+ scope = append([]string(nil), scope...) // copy+ return f.jwtConfig(scope), nil+}++// JSON key file types.+const (+ serviceAccountKey = "service_account"+ userCredentialsKey = "authorized_user"+)++// credentialsFile is the unmarshalled representation of a credentials file.+type credentialsFile struct {+ Type string `json:"type"` // serviceAccountKey or userCredentialsKey++ // Service Account fields+ ClientEmail string `json:"client_email"`+ PrivateKeyID string `json:"private_key_id"`+ PrivateKey string `json:"private_key"`+ TokenURL string `json:"token_uri"`++ // User Credential fields+ // (These typically come from gcloud auth.)+ ClientSecret string `json:"client_secret"`+ ClientID string `json:"client_id"`+ RefreshToken string `json:"refresh_token"`+}++func (f *credentialsFile) jwtConfig(scopes []string) *jwt.Config {+ cfg := &jwt.Config{+ Email: f.ClientEmail,+ PrivateKey: []byte(f.PrivateKey),+ PrivateKeyID: f.PrivateKeyID,+ Scopes: scopes,+ TokenURL: f.TokenURL,+ }+ if cfg.TokenURL == "" {+ cfg.TokenURL = JWTTokenURL+ }+ return cfg+}++func (f *credentialsFile) tokenSource(ctx context.Context, scopes []string) (oauth2.TokenSource, error) {+ switch f.Type {+ case serviceAccountKey:+ cfg := f.jwtConfig(scopes)+ return cfg.TokenSource(ctx), nil+ case userCredentialsKey:+ cfg := &oauth2.Config{+ ClientID: f.ClientID,+ ClientSecret: f.ClientSecret,+ Scopes: scopes,+ Endpoint: Endpoint,+ }+ tok := &oauth2.Token{RefreshToken: f.RefreshToken}+ return cfg.TokenSource(ctx, tok), nil+ case "":+ return nil, errors.New("missing 'type' field in credentials")+ default:+ return nil, fmt.Errorf("unknown credential type: %q", f.Type)}- return config, nil}// ComputeTokenSource returns a token source that fetches access tokensdiff --git a/vendor/golang.org/x/sys/AUTHORS b/vendor/golang.org/x/sys/AUTHORSnew file mode 100644index 000000000..15167cd74--- /dev/null+++ b/vendor/golang.org/x/sys/AUTHORS@@ -0,0 +1,3 @@+# This source code refers to The Go Authors for copyright purposes.+# The master list of authors is in the main Go distribution,+# visible at http://tip.golang.org/AUTHORS.diff --git a/vendor/golang.org/x/sys/CONTRIBUTORS b/vendor/golang.org/x/sys/CONTRIBUTORSnew file mode 100644index 000000000..1c4577e96--- /dev/null+++ b/vendor/golang.org/x/sys/CONTRIBUTORS@@ -0,0 +1,3 @@+# This source code was written by the Go contributors.+# The master list of contributors is in the main Go distribution,+# visible at http://tip.golang.org/CONTRIBUTORS.diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.goindex cfac4a440..74eae9b67 100644--- a/vendor/golang.org/x/sys/unix/syscall_linux.go+++ b/vendor/golang.org/x/sys/unix/syscall_linux.go@@ -899,6 +899,7 @@ func Getpgrp() (pid int) {//sysnb Getppid() (ppid int)//sys Getpriority(which int, who int) (prio int, err error)//sysnb Getrusage(who int, rusage *Rusage) (err error)+//sysnb Getsid(pid int) (sid int, err error)//sysnb Gettid() (tid int)//sys Getxattr(path string, attr string, dest []byte) (sz int, err error)//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)@@ -911,7 +912,7 @@ func Getpgrp() (pid int) {//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT-//sysnb prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) = SYS_PRLIMIT64+//sysnb prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)//sys read(fd int, p []byte) (n int, err error)//sys Removexattr(path string, attr string) (err error)diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.goindex 80f6a1b0a..fa92387b1 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.goindex 078c8f05a..b34d5c26f 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.goindex 76e5f7c0b..2e5cb3984 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.goindex 72b79470a..0d584cc0d 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.goindex ba55509ea..bf6f3603b 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.goindex 2b1cc8473..8c86bd70b 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.goindex 25f39db9d..f5d488b4a 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.goindex 70702b516..5183711ec 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.goindex 94b93d3d0..4c7ed08cc 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.goindex 774b10ed8..beb83e4fd 100644--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go@@ -572,6 +572,17 @@ func Getrusage(who int, rusage *Rusage) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Getsid(pid int) (sid int, err error) {+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)+ sid = int(r0)+ if e1 != 0 {+ err = errnoErr(e1)+ }+ return+}++// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT+func Gettid() (tid int) {r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)tid = int(r0)@@ -762,8 +773,8 @@ func PivotRoot(newroot string, putold string) (err error) {// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT-func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {- _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)+func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {+ _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)if e1 != 0 {err = errnoErr(e1)}diff --git a/vendor/golang.org/x/text/AUTHORS b/vendor/golang.org/x/text/AUTHORSnew file mode 100644index 000000000..15167cd74--- /dev/null+++ b/vendor/golang.org/x/text/AUTHORS@@ -0,0 +1,3 @@+# This source code refers to The Go Authors for copyright purposes.+# The master list of authors is in the main Go distribution,+# visible at http://tip.golang.org/AUTHORS.diff --git a/vendor/golang.org/x/text/CONTRIBUTORS b/vendor/golang.org/x/text/CONTRIBUTORSnew file mode 100644index 000000000..1c4577e96--- /dev/null+++ b/vendor/golang.org/x/text/CONTRIBUTORS@@ -0,0 +1,3 @@+# This source code was written by the Go contributors.+# The master list of contributors is in the main Go distribution,+# visible at http://tip.golang.org/CONTRIBUTORS.diff --git a/vendor/golang.org/x/text/transform/transform.go b/vendor/golang.org/x/text/transform/transform.goindex f79b461b8..24dcca6a8 100644--- a/vendor/golang.org/x/text/transform/transform.go+++ b/vendor/golang.org/x/text/transform/transform.go@@ -24,6 +24,10 @@ var (// complete the transformation.ErrShortSrc = errors.New("transform: short source buffer")+ // ErrEndOfSpan means that the input and output (the transformed input)+ // are not identical.+ ErrEndOfSpan = errors.New("transform: input and output are not identical")+// errInconsistentByteCount means that Transform returned success (nil// error) but also returned nSrc inconsistent with the src argument.errInconsistentByteCount = errors.New("transform: inconsistent byte count returned")@@ -60,6 +64,41 @@ type Transformer interface {Reset()}+// SpanningTransformer extends the Transformer interface with a Span method+// that determines how much of the input already conforms to the Transformer.+type SpanningTransformer interface {+ Transformer++ // Span returns a position in src such that transforming src[:n] results in+ // identical output src[:n] for these bytes. It does not necessarily return+ // the largest such n. The atEOF argument tells whether src represents the+ // last bytes of the input.+ //+ // Callers should always account for the n bytes consumed before+ // considering the error err.+ //+ // A nil error means that all input bytes are known to be identical to the+ // output produced by the Transformer. A nil error can be be returned+ // regardless of whether atEOF is true. If err is nil, then then n must+ // equal len(src); the converse is not necessarily true.+ //+ // ErrEndOfSpan means that the Transformer output may differ from the+ // input after n bytes. Note that n may be len(src), meaning that the output+ // would contain additional bytes after otherwise identical output.+ // ErrShortSrc means that src had insufficient data to determine whether the+ // remaining bytes would change. Other than the error conditions listed+ // here, implementations are free to report other errors that arise.+ //+ // Calling Span can modify the Transformer state as a side effect. In+ // effect, it does the transformation just as calling Transform would, only+ // without copying to a destination buffer and only up to a point it can+ // determine the input and output bytes are the same. This is obviously more+ // limited than calling Transform, but can be more efficient in terms of+ // copying and allocating buffers. Calls to Span and Transform may be+ // interleaved.+ Span(src []byte, atEOF bool) (n int, err error)+}+// NopResetter can be embedded by implementations of Transformer to add a nop// Reset method.type NopResetter struct{}@@ -207,7 +246,9 @@ func (w *Writer) Write(data []byte) (n int, err error) {return n, werr}src = src[nSrc:]- if w.n > 0 && len(src) <= n {+ if w.n == 0 {+ n += nSrc+ } else if len(src) <= n {// Enough bytes from w.src have been consumed. We make src point// to data instead to reduce the copying.w.n = 0@@ -216,35 +257,46 @@ func (w *Writer) Write(data []byte) (n int, err error) {if n < len(data) && (err == nil || err == ErrShortSrc) {continue}- } else {- n += nSrc}- switch {- case err == ErrShortDst && (nDst > 0 || nSrc > 0):- case err == ErrShortSrc && len(src) < len(w.src):- m := copy(w.src, src)- // If w.n > 0, bytes from data were already copied to w.src and n- // was already set to the number of bytes consumed.- if w.n == 0 {- n += m+ switch err {+ case ErrShortDst:+ // This error is okay as long as we are making progress.+ if nDst > 0 || nSrc > 0 {+ continue+ }+ case ErrShortSrc:+ if len(src) < len(w.src) {+ m := copy(w.src, src)+ // If w.n > 0, bytes from data were already copied to w.src and n+ // was already set to the number of bytes consumed.+ if w.n == 0 {+ n += m+ }+ w.n = m+ err = nil+ } else if nDst > 0 || nSrc > 0 {+ // Not enough buffer to store the remainder. Keep processing as+ // long as there is progress. Without this case, transforms that+ // require a lookahead larger than the buffer may result in an+ // error. This is not something one may expect to be common in+ // practice, but it may occur when buffers are set to small+ // sizes during testing.+ continue+ }+ case nil:+ if w.n > 0 {+ err = errInconsistentByteCount}- w.n = m- return n, nil- case err == nil && w.n > 0:- return n, errInconsistentByteCount- default:- return n, err}+ return n, err}}// Close implements the io.Closer interface.func (w *Writer) Close() error {- for src := w.src[:w.n]; len(src) > 0; {+ src := w.src[:w.n]+ for {nDst, nSrc, err := w.t.Transform(w.dst, src, true)- if nDst == 0 {- return err- }if _, werr := w.w.Write(w.dst[:nDst]); werr != nil {return werr}@@ -253,7 +305,6 @@ func (w *Writer) Close() error {}src = src[nSrc:]}- return nil}type nop struct{ NopResetter }@@ -266,6 +317,10 @@ func (nop) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {return n, n, err}+func (nop) Span(src []byte, atEOF bool) (n int, err error) {+ return len(src), nil+}+type discard struct{ NopResetter }func (discard) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {@@ -277,8 +332,8 @@ var (// by consuming all bytes and writing nothing.Discard Transformer = discard{}- // Nop is a Transformer that copies src to dst.- Nop Transformer = nop{}+ // Nop is a SpanningTransformer that copies src to dst.+ Nop SpanningTransformer = nop{})// chain is a sequence of links. A chain with N Transformers has N+1 links and@@ -346,6 +401,8 @@ func (c *chain) Reset() {}}+// TODO: make chain use Span (is going to be fun to implement!)+// Transform applies the transformers of c in sequence.func (c *chain) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {// Set up src and dst in the chain.@@ -436,8 +493,7 @@ func (c *chain) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err erroreturn dstL.n, srcL.p, err}-// RemoveFunc returns a Transformer that removes from the input all runes r for-// which f(r) is true. Illegal bytes in the input are replaced by RuneError.+// Deprecated: use runes.Remove instead.func RemoveFunc(f func(r rune) bool) Transformer {return removeF(f)}@@ -493,7 +549,9 @@ func (t removeF) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err err// of b to the start of the new slice.func grow(b []byte, n int) []byte {m := len(b)- if m <= 256 {+ if m <= 32 {+ m = 64+ } else if m <= 256 {m *= 2} else {m += m >> 1@@ -508,86 +566,103 @@ const initialBufSize = 128// String returns a string with the result of converting s[:n] using t, where// n <= len(s). If err == nil, n will be len(s). It calls Reset on t.func String(t Transformer, s string) (result string, n int, err error) {+ t.Reset()if s == "" {- return "", 0, nil+ // Fast path for the common case for empty input. Results in about a+ // 86% reduction of running time for BenchmarkStringLowerEmpty.+ if _, _, err := t.Transform(nil, nil, true); err == nil {+ return "", 0, nil+ }}- t.Reset()-// Allocate only once. Note that both dst and src escape when passed to// Transform.buf := [2 * initialBufSize]byte{}dst := buf[:initialBufSize:initialBufSize]src := buf[initialBufSize : 2*initialBufSize]- // Avoid allocation if the transformed string is identical to the original.- // After this loop, pDst will point to the furthest point in s for which it- // could be detected that t gives equal results, src[:nSrc] will- // indicated the last processed chunk of s for which the output is not equal- // and dst[:nDst] will be the transform of this chunk.- var nDst, nSrc int- pDst := 0 // Used as index in both src and dst in this loop.+ // The input string s is transformed in multiple chunks (starting with a+ // chunk size of initialBufSize). nDst and nSrc are per-chunk (or+ // per-Transform-call) indexes, pDst and pSrc are overall indexes.+ nDst, nSrc := 0, 0+ pDst, pSrc := 0, 0++ // pPrefix is the length of a common prefix: the first pPrefix bytes of the+ // result will equal the first pPrefix bytes of s. It is not guaranteed to+ // be the largest such value, but if pPrefix, len(result) and len(s) are+ // all equal after the final transform (i.e. calling Transform with atEOF+ // being true returned nil error) then we don't need to allocate a new+ // result string.+ pPrefix := 0for {- n := copy(src, s[pDst:])- nDst, nSrc, err = t.Transform(dst, src[:n], pDst+n == len(s))-- // Note 1: we will not enter the loop with pDst == len(s) and we will- // not end the loop with it either. So if nSrc is 0, this means there is- // some kind of error from which we cannot recover given the current- // buffer sizes. We will give up in this case.- // Note 2: it is not entirely correct to simply do a bytes.Equal as- // a Transformer may buffer internally. It will work in most cases,- // though, and no harm is done if it doesn't work.+ // Invariant: pDst == pPrefix && pSrc == pPrefix.++ n := copy(src, s[pSrc:])+ nDst, nSrc, err = t.Transform(dst, src[:n], pSrc+n == len(s))+ pDst += nDst+ pSrc += nSrc+// TODO: let transformers implement an optional Spanner interface, akin// to norm's QuickSpan. This would even allow us to avoid any allocation.- if nSrc == 0 || !bytes.Equal(dst[:nDst], src[:nSrc]) {+ if !bytes.Equal(dst[:nDst], src[:nSrc]) {break}-- if pDst += nDst; pDst == len(s) {- return s, pDst, nil+ pPrefix = pSrc+ if err == ErrShortDst {+ // A buffer can only be short if a transformer modifies its input.+ break+ } else if err == ErrShortSrc {+ if nSrc == 0 {+ // No progress was made.+ break+ }+ // Equal so far and !atEOF, so continue checking.+ } else if err != nil || pPrefix == len(s) {+ return string(s[:pPrefix]), pPrefix, err}}-- // Move the bytes seen so far to dst.- pSrc := pDst + nSrc- if pDst+nDst <= initialBufSize {- copy(dst[pDst:], dst[:nDst])- } else {- b := make([]byte, len(s)+nDst-nSrc)- copy(b[pDst:], dst[:nDst])- dst = b+ // Post-condition: pDst == pPrefix + nDst && pSrc == pPrefix + nSrc.++ // We have transformed the first pSrc bytes of the input s to become pDst+ // transformed bytes. Those transformed bytes are discontiguous: the first+ // pPrefix of them equal s[:pPrefix] and the last nDst of them equal+ // dst[:nDst]. We copy them around, into a new dst buffer if necessary, so+ // that they become one contiguous slice: dst[:pDst].+ if pPrefix != 0 {+ newDst := dst+ if pDst > len(newDst) {+ newDst = make([]byte, len(s)+nDst-nSrc)+ }+ copy(newDst[pPrefix:pDst], dst[:nDst])+ copy(newDst[:pPrefix], s[:pPrefix])+ dst = newDst}- copy(dst, s[:pDst])- pDst += nDst- if err != nil && err != ErrShortDst && err != ErrShortSrc {+ // Prevent duplicate Transform calls with atEOF being true at the end of+ // the input. Also return if we have an unrecoverable error.+ if (err == nil && pSrc == len(s)) ||+ (err != nil && err != ErrShortDst && err != ErrShortSrc) {return string(dst[:pDst]), pSrc, err}- // Complete the string with the remainder.+ // Transform the remaining input, growing dst and src buffers as necessary.for {n := copy(src, s[pSrc:])- nDst, nSrc, err = t.Transform(dst[pDst:], src[:n], pSrc+n == len(s))+ nDst, nSrc, err := t.Transform(dst[pDst:], src[:n], pSrc+n == len(s))pDst += nDstpSrc += nSrc- switch err {- case nil:- if pSrc == len(s) {- return string(dst[:pDst]), pSrc, nil- }- case ErrShortDst:- // Do not grow as long as we can make progress. This may avoid- // excessive allocations.+ // If we got ErrShortDst or ErrShortSrc, do not grow as long as we can+ // make progress. This may avoid excessive allocations.+ if err == ErrShortDst {if nDst == 0 {dst = grow(dst, pDst)}- case ErrShortSrc:+ } else if err == ErrShortSrc {if nSrc == 0 {src = grow(src, 0)}- default:+ } else if err != nil || pSrc == len(s) {return string(dst[:pDst]), pSrc, err}}diff --git a/vendor/golang.org/x/text/unicode/norm/normalize.go b/vendor/golang.org/x/text/unicode/norm/normalize.goindex bcf8450d0..209b9b98e 100644--- a/vendor/golang.org/x/text/unicode/norm/normalize.go+++ b/vendor/golang.org/x/text/unicode/norm/normalize.go@@ -8,7 +8,11 @@// Package norm contains types and functions for normalizing Unicode strings.package norm-import "unicode/utf8"+import (+ "unicode/utf8"++ "golang.org/x/text/transform"+)// A Form denotes a canonical representation of Unicode code points.// The Unicode-defined normalization and equivalence forms are:@@ -263,6 +267,34 @@ func (f Form) QuickSpan(b []byte) int {return n}+// Span implements transform.SpanningTransformer. It returns a boundary n such+// that b[0:n] == f(b[0:n]). It is not guaranteed to return the largest such n.+func (f Form) Span(b []byte, atEOF bool) (n int, err error) {+ n, ok := formTable[f].quickSpan(inputBytes(b), 0, len(b), atEOF)+ if n < len(b) {+ if !ok {+ err = transform.ErrEndOfSpan+ } else {+ err = transform.ErrShortSrc+ }+ }+ return n, err+}++// SpanString returns a boundary n such that s[0:n] == f(s[0:n]).+// It is not guaranteed to return the largest such n.+func (f Form) SpanString(s string, atEOF bool) (n int, err error) {+ n, ok := formTable[f].quickSpan(inputString(s), 0, len(s), atEOF)+ if n < len(s) {+ if !ok {+ err = transform.ErrEndOfSpan+ } else {+ err = transform.ErrShortSrc+ }+ }+ return n, err+}+// quickSpan returns a boundary n such that src[0:n] == f(src[0:n]) and// whether any non-normalized parts were found. If atEOF is false, n will// not point past the last segment if this segment might be become@@ -321,7 +353,7 @@ func (f *formInfo) quickSpan(src input, i, end int, atEOF bool) (n int, ok bool)return lastSegStart, false}-// QuickSpanString returns a boundary n such that b[0:n] == f(s[0:n]).+// QuickSpanString returns a boundary n such that s[0:n] == f(s[0:n]).// It is not guaranteed to return the largest such n.func (f Form) QuickSpanString(s string) int {n, _ := formTable[f].quickSpan(inputString(s), 0, len(s), true)@@ -344,7 +376,6 @@ func (f Form) firstBoundary(src input, nsrc int) int {// We should call ss.first here, but we can't as the first rune is// skipped already. This means FirstBoundary can't really determine// CGJ insertion points correctly. Luckily it doesn't have to.- // TODO: consider adding NextBoundaryfor {info := fd.info(src, i)if info.size == 0 {@@ -369,6 +400,56 @@ func (f Form) FirstBoundaryInString(s string) int {return f.firstBoundary(inputString(s), len(s))}+// NextBoundary reports the index of the boundary between the first and next+// segment in b or -1 if atEOF is false and there are not enough bytes to+// determine this boundary.+func (f Form) NextBoundary(b []byte, atEOF bool) int {+ return f.nextBoundary(inputBytes(b), len(b), atEOF)+}++// NextBoundaryInString reports the index of the boundary between the first and+// next segment in b or -1 if atEOF is false and there are not enough bytes to+// determine this boundary.+func (f Form) NextBoundaryInString(s string, atEOF bool) int {+ return f.nextBoundary(inputString(s), len(s), atEOF)+}++func (f Form) nextBoundary(src input, nsrc int, atEOF bool) int {+ if nsrc == 0 {+ if atEOF {+ return 0+ }+ return -1+ }+ fd := formTable[f]+ info := fd.info(src, 0)+ if info.size == 0 {+ if atEOF {+ return 1+ }+ return -1+ }+ ss := streamSafe(0)+ ss.first(info)++ for i := int(info.size); i < nsrc; i += int(info.size) {+ info = fd.info(src, i)+ if info.size == 0 {+ if atEOF {+ return i+ }+ return -1+ }+ if s := ss.next(info); s != ssSuccess {+ return i+ }+ }+ if !atEOF && !info.BoundaryAfter() && !ss.isMax() {+ return -1+ }+ return nsrc+}+// LastBoundary returns the position i of the last boundary in b// or -1 if b contains no boundary.func (f Form) LastBoundary(b []byte) int {diff --git a/vendor/golang.org/x/text/unicode/norm/readwriter.go b/vendor/golang.org/x/text/unicode/norm/readwriter.goindex 4fa0e04b2..d926ee903 100644--- a/vendor/golang.org/x/text/unicode/norm/readwriter.go+++ b/vendor/golang.org/x/text/unicode/norm/readwriter.go@@ -112,7 +112,6 @@ func (r *normReader) Read(p []byte) (int, error) {}}}- panic("should not reach here")}// Reader returns a new reader that implements Readdiff --git a/vendor/golang.org/x/text/unicode/norm/tables.go b/vendor/golang.org/x/text/unicode/norm/tables.goindex fa956d681..a56697b57 100644--- a/vendor/golang.org/x/text/unicode/norm/tables.go+++ b/vendor/golang.org/x/text/unicode/norm/tables.go@@ -4,7 +4,7 @@ package normconst (// Version is the Unicode edition from which the tables are derived.- Version = "8.0.0"+ Version = "9.0.0"// MaxTransformChunkSize indicates the maximum number of bytes that Transform// may need to write atomically for any Form. Making a destination buffer at@@ -24,17 +24,17 @@ var ccc = [55]uint8{}const (- firstMulti = 0x1869- firstCCC = 0x2C9A- endMulti = 0x2F5C- firstLeadingCCC = 0x4A40- firstCCCZeroExcept = 0x4A56- firstStarterWithNLead = 0x4A7D- lastDecomp = 0x4A7F+ firstMulti = 0x186D+ firstCCC = 0x2C9E+ endMulti = 0x2F60+ firstLeadingCCC = 0x4A44+ firstCCCZeroExcept = 0x4A5A+ firstStarterWithNLead = 0x4A81+ lastDecomp = 0x4A83maxDecomp = 0x8000)-// decomps: 19071 bytes+// decomps: 19075 bytesvar decomps = [...]byte{// Bytes 0 - 3f0x00, 0x41, 0x20, 0x41, 0x21, 0x41, 0x22, 0x41,@@ -766,1958 +766,1960 @@ var decomps = [...]byte{0xE9, 0x83, 0xB1, 0x43, 0xE9, 0x83, 0xBD, 0x43,0xE9, 0x84, 0x91, 0x43, 0xE9, 0x84, 0x9B, 0x43,// Bytes 1440 - 147f- 0xE9, 0x85, 0x89, 0x43, 0xE9, 0x85, 0xAA, 0x43,- 0xE9, 0x86, 0x99, 0x43, 0xE9, 0x86, 0xB4, 0x43,- 0xE9, 0x87, 0x86, 0x43, 0xE9, 0x87, 0x8C, 0x43,- 0xE9, 0x87, 0x8F, 0x43, 0xE9, 0x87, 0x91, 0x43,- 0xE9, 0x88, 0xB4, 0x43, 0xE9, 0x88, 0xB8, 0x43,- 0xE9, 0x89, 0xB6, 0x43, 0xE9, 0x89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x42, 0x31,+ 0x44, 0xF0, 0xA9, 0x92, 0x96, 0x44, 0xF0, 0xA9,+ 0x96, 0xB6, 0x44, 0xF0, 0xA9, 0xAC, 0xB0, 0x44,+ 0xF0, 0xAA, 0x83, 0x8E, 0x44, 0xF0, 0xAA, 0x84,+ 0x85, 0x44, 0xF0, 0xAA, 0x88, 0x8E, 0x44, 0xF0,+ 0xAA, 0x8A, 0x91, 0x44, 0xF0, 0xAA, 0x8E, 0x92,+ 0x44, 0xF0, 0xAA, 0x98, 0x80, 0x42, 0x21, 0x21,+ 0x42, 0x21, 0x3F, 0x42, 0x2E, 0x2E, 0x42, 0x30,+ 0x2C, 0x42, 0x30, 0x2E, 0x42, 0x31, 0x2C, 0x42,// Bytes 1880 - 18bf- 0x30, 0x42, 0x31, 0x31, 0x42, 0x31, 0x32, 0x42,- 0x31, 0x33, 0x42, 0x31, 0x34, 0x42, 0x31, 0x35,- 0x42, 0x31, 0x36, 0x42, 0x31, 0x37, 0x42, 0x31,- 0x38, 0x42, 0x31, 0x39, 0x42, 0x32, 0x2C, 0x42,- 0x32, 0x2E, 0x42, 0x32, 0x30, 0x42, 0x32, 0x31,- 0x42, 0x32, 0x32, 0x42, 0x32, 0x33, 0x42, 0x32,- 0x34, 0x42, 0x32, 0x35, 0x42, 0x32, 0x36, 0x42,- 0x32, 0x37, 0x42, 0x32, 0x38, 0x42, 0x32, 0x39,+ 0x31, 0x2E, 0x42, 0x31, 0x30, 0x42, 0x31, 0x31,+ 0x42, 0x31, 0x32, 0x42, 0x31, 0x33, 0x42, 0x31,+ 0x34, 0x42, 0x31, 0x35, 0x42, 0x31, 0x36, 0x42,+ 0x31, 0x37, 0x42, 0x31, 0x38, 0x42, 0x31, 0x39,+ 0x42, 0x32, 0x2C, 0x42, 0x32, 0x2E, 0x42, 0x32,+ 0x30, 0x42, 0x32, 0x31, 0x42, 0x32, 0x32, 0x42,+ 0x32, 0x33, 0x42, 0x32, 0x34, 0x42, 0x32, 0x35,+ 0x42, 0x32, 0x36, 0x42, 0x32, 0x37, 0x42, 0x32,// Bytes 18c0 - 18ff- 0x42, 0x33, 0x2C, 0x42, 0x33, 0x2E, 0x42, 0x33,- 0x30, 0x42, 0x33, 0x31, 0x42, 0x33, 0x32, 0x42,- 0x33, 0x33, 0x42, 0x33, 0x34, 0x42, 0x33, 0x35,- 0x42, 0x33, 0x36, 0x42, 0x33, 0x37, 0x42, 0x33,- 0x38, 0x42, 0x33, 0x39, 0x42, 0x34, 0x2C, 0x42,- 0x34, 0x2E, 0x42, 0x34, 0x30, 0x42, 0x34, 0x31,- 0x42, 0x34, 0x32, 0x42, 0x34, 0x33, 0x42, 0x34,- 0x34, 0x42, 0x34, 0x35, 0x42, 0x34, 0x36, 0x42,+ 0x38, 0x42, 0x32, 0x39, 0x42, 0x33, 0x2C, 0x42,+ 0x33, 0x2E, 0x42, 0x33, 0x30, 0x42, 0x33, 0x31,+ 0x42, 0x33, 0x32, 0x42, 0x33, 0x33, 0x42, 0x33,+ 0x34, 0x42, 0x33, 0x35, 0x42, 0x33, 0x36, 0x42,+ 0x33, 0x37, 0x42, 0x33, 0x38, 0x42, 0x33, 0x39,+ 0x42, 0x34, 0x2C, 0x42, 0x34, 0x2E, 0x42, 0x34,+ 0x30, 0x42, 0x34, 0x31, 0x42, 0x34, 0x32, 0x42,+ 0x34, 0x33, 0x42, 0x34, 0x34, 0x42, 0x34, 0x35,// Bytes 1900 - 193f- 0x34, 0x37, 0x42, 0x34, 0x38, 0x42, 0x34, 0x39,- 0x42, 0x35, 0x2C, 0x42, 0x35, 0x2E, 0x42, 0x35,- 0x30, 0x42, 0x36, 0x2C, 0x42, 0x36, 0x2E, 0x42,- 0x37, 0x2C, 0x42, 0x37, 0x2E, 0x42, 0x38, 0x2C,- 0x42, 0x38, 0x2E, 0x42, 0x39, 0x2C, 0x42, 0x39,- 0x2E, 0x42, 0x3D, 0x3D, 0x42, 0x3F, 0x21, 0x42,- 0x3F, 0x3F, 0x42, 0x41, 0x55, 0x42, 0x42, 0x71,- 0x42, 0x43, 0x44, 0x42, 0x44, 0x4A, 0x42, 0x44,+ 0x42, 0x34, 0x36, 0x42, 0x34, 0x37, 0x42, 0x34,+ 0x38, 0x42, 0x34, 0x39, 0x42, 0x35, 0x2C, 0x42,+ 0x35, 0x2E, 0x42, 0x35, 0x30, 0x42, 0x36, 0x2C,+ 0x42, 0x36, 0x2E, 0x42, 0x37, 0x2C, 0x42, 0x37,+ 0x2E, 0x42, 0x38, 0x2C, 0x42, 0x38, 0x2E, 0x42,+ 0x39, 0x2C, 0x42, 0x39, 0x2E, 0x42, 0x3D, 0x3D,+ 0x42, 0x3F, 0x21, 0x42, 0x3F, 0x3F, 0x42, 0x41,+ 0x55, 0x42, 0x42, 0x71, 0x42, 0x43, 0x44, 0x42,// Bytes 1940 - 197f- 0x5A, 0x42, 0x44, 0x7A, 0x42, 0x47, 0x42, 0x42,- 0x47, 0x79, 0x42, 0x48, 0x50, 0x42, 0x48, 0x56,- 0x42, 0x48, 0x67, 0x42, 0x48, 0x7A, 0x42, 0x49,- 0x49, 0x42, 0x49, 0x4A, 0x42, 0x49, 0x55, 0x42,- 0x49, 0x56, 0x42, 0x49, 0x58, 0x42, 0x4B, 0x42,- 0x42, 0x4B, 0x4B, 0x42, 0x4B, 0x4D, 0x42, 0x4C,- 0x4A, 0x42, 0x4C, 0x6A, 0x42, 0x4D, 0x42, 0x42,- 0x4D, 0x43, 0x42, 0x4D, 0x44, 0x42, 0x4D, 0x56,+ 0x44, 0x4A, 0x42, 0x44, 0x5A, 0x42, 0x44, 0x7A,+ 0x42, 0x47, 0x42, 0x42, 0x47, 0x79, 0x42, 0x48,+ 0x50, 0x42, 0x48, 0x56, 0x42, 0x48, 0x67, 0x42,+ 0x48, 0x7A, 0x42, 0x49, 0x49, 0x42, 0x49, 0x4A,+ 0x42, 0x49, 0x55, 0x42, 0x49, 0x56, 0x42, 0x49,+ 0x58, 0x42, 0x4B, 0x42, 0x42, 0x4B, 0x4B, 0x42,+ 0x4B, 0x4D, 0x42, 0x4C, 0x4A, 0x42, 0x4C, 0x6A,+ 0x42, 0x4D, 0x42, 0x42, 0x4D, 0x43, 0x42, 0x4D,// Bytes 1980 - 19bf- 0x42, 0x4D, 0x57, 0x42, 0x4E, 0x4A, 0x42, 0x4E,- 0x6A, 0x42, 0x4E, 0x6F, 0x42, 0x50, 0x48, 0x42,- 0x50, 0x52, 0x42, 0x50, 0x61, 0x42, 0x52, 0x73,- 0x42, 0x53, 0x44, 0x42, 0x53, 0x4D, 0x42, 0x53,- 0x53, 0x42, 0x53, 0x76, 0x42, 0x54, 0x4D, 0x42,- 0x56, 0x49, 0x42, 0x57, 0x43, 0x42, 0x57, 0x5A,- 0x42, 0x57, 0x62, 0x42, 0x58, 0x49, 0x42, 0x63,- 0x63, 0x42, 0x63, 0x64, 0x42, 0x63, 0x6D, 0x42,+ 0x44, 0x42, 0x4D, 0x56, 0x42, 0x4D, 0x57, 0x42,+ 0x4E, 0x4A, 0x42, 0x4E, 0x6A, 0x42, 0x4E, 0x6F,+ 0x42, 0x50, 0x48, 0x42, 0x50, 0x52, 0x42, 0x50,+ 0x61, 0x42, 0x52, 0x73, 0x42, 0x53, 0x44, 0x42,+ 0x53, 0x4D, 0x42, 0x53, 0x53, 0x42, 0x53, 0x76,+ 0x42, 0x54, 0x4D, 0x42, 0x56, 0x49, 0x42, 0x57,+ 0x43, 0x42, 0x57, 0x5A, 0x42, 0x57, 0x62, 0x42,+ 0x58, 0x49, 0x42, 0x63, 0x63, 0x42, 0x63, 0x64,// Bytes 19c0 - 19ff- 0x64, 0x42, 0x42, 0x64, 0x61, 0x42, 0x64, 0x6C,- 0x42, 0x64, 0x6D, 0x42, 0x64, 0x7A, 0x42, 0x65,- 0x56, 0x42, 0x66, 0x66, 0x42, 0x66, 0x69, 0x42,- 0x66, 0x6C, 0x42, 0x66, 0x6D, 0x42, 0x68, 0x61,- 0x42, 0x69, 0x69, 0x42, 0x69, 0x6A, 0x42, 0x69,- 0x6E, 0x42, 0x69, 0x76, 0x42, 0x69, 0x78, 0x42,- 0x6B, 0x41, 0x42, 0x6B, 0x56, 0x42, 0x6B, 0x57,- 0x42, 0x6B, 0x67, 0x42, 0x6B, 0x6C, 0x42, 0x6B,+ 0x42, 0x63, 0x6D, 0x42, 0x64, 0x42, 0x42, 0x64,+ 0x61, 0x42, 0x64, 0x6C, 0x42, 0x64, 0x6D, 0x42,+ 0x64, 0x7A, 0x42, 0x65, 0x56, 0x42, 0x66, 0x66,+ 0x42, 0x66, 0x69, 0x42, 0x66, 0x6C, 0x42, 0x66,+ 0x6D, 0x42, 0x68, 0x61, 0x42, 0x69, 0x69, 0x42,+ 0x69, 0x6A, 0x42, 0x69, 0x6E, 0x42, 0x69, 0x76,+ 0x42, 0x69, 0x78, 0x42, 0x6B, 0x41, 0x42, 0x6B,+ 0x56, 0x42, 0x6B, 0x57, 0x42, 0x6B, 0x67, 0x42,// Bytes 1a00 - 1a3f- 0x6D, 0x42, 0x6B, 0x74, 0x42, 0x6C, 0x6A, 0x42,- 0x6C, 0x6D, 0x42, 0x6C, 0x6E, 0x42, 0x6C, 0x78,- 0x42, 0x6D, 0x32, 0x42, 0x6D, 0x33, 0x42, 0x6D,- 0x41, 0x42, 0x6D, 0x56, 0x42, 0x6D, 0x57, 0x42,- 0x6D, 0x62, 0x42, 0x6D, 0x67, 0x42, 0x6D, 0x6C,- 0x42, 0x6D, 0x6D, 0x42, 0x6D, 0x73, 0x42, 0x6E,- 0x41, 0x42, 0x6E, 0x46, 0x42, 0x6E, 0x56, 0x42,- 0x6E, 0x57, 0x42, 0x6E, 0x6A, 0x42, 0x6E, 0x6D,+ 0x6B, 0x6C, 0x42, 0x6B, 0x6D, 0x42, 0x6B, 0x74,+ 0x42, 0x6C, 0x6A, 0x42, 0x6C, 0x6D, 0x42, 0x6C,+ 0x6E, 0x42, 0x6C, 0x78, 0x42, 0x6D, 0x32, 0x42,+ 0x6D, 0x33, 0x42, 0x6D, 0x41, 0x42, 0x6D, 0x56,+ 0x42, 0x6D, 0x57, 0x42, 0x6D, 0x62, 0x42, 0x6D,+ 0x67, 0x42, 0x6D, 0x6C, 0x42, 0x6D, 0x6D, 0x42,+ 0x6D, 0x73, 0x42, 0x6E, 0x41, 0x42, 0x6E, 0x46,+ 0x42, 0x6E, 0x56, 0x42, 0x6E, 0x57, 0x42, 0x6E,// Bytes 1a40 - 1a7f- 0x42, 0x6E, 0x73, 0x42, 0x6F, 0x56, 0x42, 0x70,- 0x41, 0x42, 0x70, 0x46, 0x42, 0x70, 0x56, 0x42,- 0x70, 0x57, 0x42, 0x70, 0x63, 0x42, 0x70, 0x73,- 0x42, 0x73, 0x72, 0x42, 0x73, 0x74, 0x42, 0x76,- 0x69, 0x42, 0x78, 0x69, 0x43, 0x28, 0x31, 0x29,- 0x43, 0x28, 0x32, 0x29, 0x43, 0x28, 0x33, 0x29,- 0x43, 0x28, 0x34, 0x29, 0x43, 0x28, 0x35, 0x29,- 0x43, 0x28, 0x36, 0x29, 0x43, 0x28, 0x37, 0x29,+ 0x6A, 0x42, 0x6E, 0x6D, 0x42, 0x6E, 0x73, 0x42,+ 0x6F, 0x56, 0x42, 0x70, 0x41, 0x42, 0x70, 0x46,+ 0x42, 0x70, 0x56, 0x42, 0x70, 0x57, 0x42, 0x70,+ 0x63, 0x42, 0x70, 0x73, 0x42, 0x73, 0x72, 0x42,+ 0x73, 0x74, 0x42, 0x76, 0x69, 0x42, 0x78, 0x69,+ 0x43, 0x28, 0x31, 0x29, 0x43, 0x28, 0x32, 0x29,+ 0x43, 0x28, 0x33, 0x29, 0x43, 0x28, 0x34, 0x29,+ 0x43, 0x28, 0x35, 0x29, 0x43, 0x28, 0x36, 0x29,// Bytes 1a80 - 1abf- 0x43, 0x28, 0x38, 0x29, 0x43, 0x28, 0x39, 0x29,- 0x43, 0x28, 0x41, 0x29, 0x43, 0x28, 0x42, 0x29,- 0x43, 0x28, 0x43, 0x29, 0x43, 0x28, 0x44, 0x29,- 0x43, 0x28, 0x45, 0x29, 0x43, 0x28, 0x46, 0x29,- 0x43, 0x28, 0x47, 0x29, 0x43, 0x28, 0x48, 0x29,- 0x43, 0x28, 0x49, 0x29, 0x43, 0x28, 0x4A, 0x29,- 0x43, 0x28, 0x4B, 0x29, 0x43, 0x28, 0x4C, 0x29,- 0x43, 0x28, 0x4D, 0x29, 0x43, 0x28, 0x4E, 0x29,+ 0x43, 0x28, 0x37, 0x29, 0x43, 0x28, 0x38, 0x29,+ 0x43, 0x28, 0x39, 0x29, 0x43, 0x28, 0x41, 0x29,+ 0x43, 0x28, 0x42, 0x29, 0x43, 0x28, 0x43, 0x29,+ 0x43, 0x28, 0x44, 0x29, 0x43, 0x28, 0x45, 0x29,+ 0x43, 0x28, 0x46, 0x29, 0x43, 0x28, 0x47, 0x29,+ 0x43, 0x28, 0x48, 0x29, 0x43, 0x28, 0x49, 0x29,+ 0x43, 0x28, 0x4A, 0x29, 0x43, 0x28, 0x4B, 0x29,+ 0x43, 0x28, 0x4C, 0x29, 0x43, 0x28, 0x4D, 0x29,// Bytes 1ac0 - 1aff- 0x43, 0x28, 0x4F, 0x29, 0x43, 0x28, 0x50, 0x29,- 0x43, 0x28, 0x51, 0x29, 0x43, 0x28, 0x52, 0x29,- 0x43, 0x28, 0x53, 0x29, 0x43, 0x28, 0x54, 0x29,- 0x43, 0x28, 0x55, 0x29, 0x43, 0x28, 0x56, 0x29,- 0x43, 0x28, 0x57, 0x29, 0x43, 0x28, 0x58, 0x29,- 0x43, 0x28, 0x59, 0x29, 0x43, 0x28, 0x5A, 0x29,- 0x43, 0x28, 0x61, 0x29, 0x43, 0x28, 0x62, 0x29,- 0x43, 0x28, 0x63, 0x29, 0x43, 0x28, 0x64, 0x29,+ 0x43, 0x28, 0x4E, 0x29, 0x43, 0x28, 0x4F, 0x29,+ 0x43, 0x28, 0x50, 0x29, 0x43, 0x28, 0x51, 0x29,+ 0x43, 0x28, 0x52, 0x29, 0x43, 0x28, 0x53, 0x29,+ 0x43, 0x28, 0x54, 0x29, 0x43, 0x28, 0x55, 0x29,+ 0x43, 0x28, 0x56, 0x29, 0x43, 0x28, 0x57, 0x29,+ 0x43, 0x28, 0x58, 0x29, 0x43, 0x28, 0x59, 0x29,+ 0x43, 0x28, 0x5A, 0x29, 0x43, 0x28, 0x61, 0x29,+ 0x43, 0x28, 0x62, 0x29, 0x43, 0x28, 0x63, 0x29,// Bytes 1b00 - 1b3f- 0x43, 0x28, 0x65, 0x29, 0x43, 0x28, 0x66, 0x29,- 0x43, 0x28, 0x67, 0x29, 0x43, 0x28, 0x68, 0x29,- 0x43, 0x28, 0x69, 0x29, 0x43, 0x28, 0x6A, 0x29,- 0x43, 0x28, 0x6B, 0x29, 0x43, 0x28, 0x6C, 0x29,- 0x43, 0x28, 0x6D, 0x29, 0x43, 0x28, 0x6E, 0x29,- 0x43, 0x28, 0x6F, 0x29, 0x43, 0x28, 0x70, 0x29,- 0x43, 0x28, 0x71, 0x29, 0x43, 0x28, 0x72, 0x29,- 0x43, 0x28, 0x73, 0x29, 0x43, 0x28, 0x74, 0x29,+ 0x43, 0x28, 0x64, 0x29, 0x43, 0x28, 0x65, 0x29,+ 0x43, 0x28, 0x66, 0x29, 0x43, 0x28, 0x67, 0x29,+ 0x43, 0x28, 0x68, 0x29, 0x43, 0x28, 0x69, 0x29,+ 0x43, 0x28, 0x6A, 0x29, 0x43, 0x28, 0x6B, 0x29,+ 0x43, 0x28, 0x6C, 0x29, 0x43, 0x28, 0x6D, 0x29,+ 0x43, 0x28, 0x6E, 0x29, 0x43, 0x28, 0x6F, 0x29,+ 0x43, 0x28, 0x70, 0x29, 0x43, 0x28, 0x71, 0x29,+ 0x43, 0x28, 0x72, 0x29, 0x43, 0x28, 0x73, 0x29,// Bytes 1b40 - 1b7f- 0x43, 0x28, 0x75, 0x29, 0x43, 0x28, 0x76, 0x29,- 0x43, 0x28, 0x77, 0x29, 0x43, 0x28, 0x78, 0x29,- 0x43, 0x28, 0x79, 0x29, 0x43, 0x28, 0x7A, 0x29,- 0x43, 0x2E, 0x2E, 0x2E, 0x43, 0x31, 0x30, 0x2E,- 0x43, 0x31, 0x31, 0x2E, 0x43, 0x31, 0x32, 0x2E,- 0x43, 0x31, 0x33, 0x2E, 0x43, 0x31, 0x34, 0x2E,- 0x43, 0x31, 0x35, 0x2E, 0x43, 0x31, 0x36, 0x2E,- 0x43, 0x31, 0x37, 0x2E, 0x43, 0x31, 0x38, 0x2E,+ 0x43, 0x28, 0x74, 0x29, 0x43, 0x28, 0x75, 0x29,+ 0x43, 0x28, 0x76, 0x29, 0x43, 0x28, 0x77, 0x29,+ 0x43, 0x28, 0x78, 0x29, 0x43, 0x28, 0x79, 0x29,+ 0x43, 0x28, 0x7A, 0x29, 0x43, 0x2E, 0x2E, 0x2E,+ 0x43, 0x31, 0x30, 0x2E, 0x43, 0x31, 0x31, 0x2E,+ 0x43, 0x31, 0x32, 0x2E, 0x43, 0x31, 0x33, 0x2E,+ 0x43, 0x31, 0x34, 0x2E, 0x43, 0x31, 0x35, 0x2E,+ 0x43, 0x31, 0x36, 0x2E, 0x43, 0x31, 0x37, 0x2E,// Bytes 1b80 - 1bbf- 0x43, 0x31, 0x39, 0x2E, 0x43, 0x32, 0x30, 0x2E,- 0x43, 0x3A, 0x3A, 0x3D, 0x43, 0x3D, 0x3D, 0x3D,- 0x43, 0x43, 0x6F, 0x2E, 0x43, 0x46, 0x41, 0x58,- 0x43, 0x47, 0x48, 0x7A, 0x43, 0x47, 0x50, 0x61,- 0x43, 0x49, 0x49, 0x49, 0x43, 0x4C, 0x54, 0x44,- 0x43, 0x4C, 0xC2, 0xB7, 0x43, 0x4D, 0x48, 0x7A,- 0x43, 0x4D, 0x50, 0x61, 0x43, 0x4D, 0xCE, 0xA9,- 0x43, 0x50, 0x50, 0x4D, 0x43, 0x50, 0x50, 0x56,+ 0x43, 0x31, 0x38, 0x2E, 0x43, 0x31, 0x39, 0x2E,+ 0x43, 0x32, 0x30, 0x2E, 0x43, 0x3A, 0x3A, 0x3D,+ 0x43, 0x3D, 0x3D, 0x3D, 0x43, 0x43, 0x6F, 0x2E,+ 0x43, 0x46, 0x41, 0x58, 0x43, 0x47, 0x48, 0x7A,+ 0x43, 0x47, 0x50, 0x61, 0x43, 0x49, 0x49, 0x49,+ 0x43, 0x4C, 0x54, 0x44, 0x43, 0x4C, 0xC2, 0xB7,+ 0x43, 0x4D, 0x48, 0x7A, 0x43, 0x4D, 0x50, 0x61,+ 0x43, 0x4D, 0xCE, 0xA9, 0x43, 0x50, 0x50, 0x4D,// Bytes 1bc0 - 1bff- 0x43, 0x50, 0x54, 0x45, 0x43, 0x54, 0x45, 0x4C,- 0x43, 0x54, 0x48, 0x7A, 0x43, 0x56, 0x49, 0x49,- 0x43, 0x58, 0x49, 0x49, 0x43, 0x61, 0x2F, 0x63,- 0x43, 0x61, 0x2F, 0x73, 0x43, 0x61, 0xCA, 0xBE,- 0x43, 0x62, 0x61, 0x72, 0x43, 0x63, 0x2F, 0x6F,- 0x43, 0x63, 0x2F, 0x75, 0x43, 0x63, 0x61, 0x6C,- 0x43, 0x63, 0x6D, 0x32, 0x43, 0x63, 0x6D, 0x33,- 0x43, 0x64, 0x6D, 0x32, 0x43, 0x64, 0x6D, 0x33,+ 0x43, 0x50, 0x50, 0x56, 0x43, 0x50, 0x54, 0x45,+ 0x43, 0x54, 0x45, 0x4C, 0x43, 0x54, 0x48, 0x7A,+ 0x43, 0x56, 0x49, 0x49, 0x43, 0x58, 0x49, 0x49,+ 0x43, 0x61, 0x2F, 0x63, 0x43, 0x61, 0x2F, 0x73,+ 0x43, 0x61, 0xCA, 0xBE, 0x43, 0x62, 0x61, 0x72,+ 0x43, 0x63, 0x2F, 0x6F, 0x43, 0x63, 0x2F, 0x75,+ 0x43, 0x63, 0x61, 0x6C, 0x43, 0x63, 0x6D, 0x32,+ 0x43, 0x63, 0x6D, 0x33, 0x43, 0x64, 0x6D, 0x32,// Bytes 1c00 - 1c3f- 0x43, 0x65, 0x72, 0x67, 0x43, 0x66, 0x66, 0x69,- 0x43, 0x66, 0x66, 0x6C, 0x43, 0x67, 0x61, 0x6C,- 0x43, 0x68, 0x50, 0x61, 0x43, 0x69, 0x69, 0x69,- 0x43, 0x6B, 0x48, 0x7A, 0x43, 0x6B, 0x50, 0x61,- 0x43, 0x6B, 0x6D, 0x32, 0x43, 0x6B, 0x6D, 0x33,- 0x43, 0x6B, 0xCE, 0xA9, 0x43, 0x6C, 0x6F, 0x67,- 0x43, 0x6C, 0xC2, 0xB7, 0x43, 0x6D, 0x69, 0x6C,- 0x43, 0x6D, 0x6D, 0x32, 0x43, 0x6D, 0x6D, 0x33,+ 0x43, 0x64, 0x6D, 0x33, 0x43, 0x65, 0x72, 0x67,+ 0x43, 0x66, 0x66, 0x69, 0x43, 0x66, 0x66, 0x6C,+ 0x43, 0x67, 0x61, 0x6C, 0x43, 0x68, 0x50, 0x61,+ 0x43, 0x69, 0x69, 0x69, 0x43, 0x6B, 0x48, 0x7A,+ 0x43, 0x6B, 0x50, 0x61, 0x43, 0x6B, 0x6D, 0x32,+ 0x43, 0x6B, 0x6D, 0x33, 0x43, 0x6B, 0xCE, 0xA9,+ 0x43, 0x6C, 0x6F, 0x67, 0x43, 0x6C, 0xC2, 0xB7,+ 0x43, 0x6D, 0x69, 0x6C, 0x43, 0x6D, 0x6D, 0x32,// Bytes 1c40 - 1c7f- 0x43, 0x6D, 0x6F, 0x6C, 0x43, 0x72, 0x61, 0x64,- 0x43, 0x76, 0x69, 0x69, 0x43, 0x78, 0x69, 0x69,- 0x43, 0xC2, 0xB0, 0x43, 0x43, 0xC2, 0xB0, 0x46,- 0x43, 0xCA, 0xBC, 0x6E, 0x43, 0xCE, 0xBC, 0x41,- 0x43, 0xCE, 0xBC, 0x46, 0x43, 0xCE, 0xBC, 0x56,- 0x43, 0xCE, 0xBC, 0x57, 0x43, 0xCE, 0xBC, 0x67,- 0x43, 0xCE, 0xBC, 0x6C, 0x43, 0xCE, 0xBC, 0x6D,- 0x43, 0xCE, 0xBC, 0x73, 0x44, 0x28, 0x31, 0x30,+ 0x43, 0x6D, 0x6D, 0x33, 0x43, 0x6D, 0x6F, 0x6C,+ 0x43, 0x72, 0x61, 0x64, 0x43, 0x76, 0x69, 0x69,+ 0x43, 0x78, 0x69, 0x69, 0x43, 0xC2, 0xB0, 0x43,+ 0x43, 0xC2, 0xB0, 0x46, 0x43, 0xCA, 0xBC, 0x6E,+ 0x43, 0xCE, 0xBC, 0x41, 0x43, 0xCE, 0xBC, 0x46,+ 0x43, 0xCE, 0xBC, 0x56, 0x43, 0xCE, 0xBC, 0x57,+ 0x43, 0xCE, 0xBC, 0x67, 0x43, 0xCE, 0xBC, 0x6C,+ 0x43, 0xCE, 0xBC, 0x6D, 0x43, 0xCE, 0xBC, 0x73,// Bytes 1c80 - 1cbf- 0x29, 0x44, 0x28, 0x31, 0x31, 0x29, 0x44, 0x28,- 0x31, 0x32, 0x29, 0x44, 0x28, 0x31, 0x33, 0x29,- 0x44, 0x28, 0x31, 0x34, 0x29, 0x44, 0x28, 0x31,- 0x35, 0x29, 0x44, 0x28, 0x31, 0x36, 0x29, 0x44,- 0x28, 0x31, 0x37, 0x29, 0x44, 0x28, 0x31, 0x38,- 0x29, 0x44, 0x28, 0x31, 0x39, 0x29, 0x44, 0x28,- 0x32, 0x30, 0x29, 0x44, 0x30, 0xE7, 0x82, 0xB9,- 0x44, 0x31, 0xE2, 0x81, 0x84, 0x44, 0x31, 0xE6,+ 0x44, 0x28, 0x31, 0x30, 0x29, 0x44, 0x28, 0x31,+ 0x31, 0x29, 0x44, 0x28, 0x31, 0x32, 0x29, 0x44,+ 0x28, 0x31, 0x33, 0x29, 0x44, 0x28, 0x31, 0x34,+ 0x29, 0x44, 0x28, 0x31, 0x35, 0x29, 0x44, 0x28,+ 0x31, 0x36, 0x29, 0x44, 0x28, 0x31, 0x37, 0x29,+ 0x44, 0x28, 0x31, 0x38, 0x29, 0x44, 0x28, 0x31,+ 0x39, 0x29, 0x44, 0x28, 0x32, 0x30, 0x29, 0x44,+ 0x30, 0xE7, 0x82, 0xB9, 0x44, 0x31, 0xE2, 0x81,// Bytes 1cc0 - 1cff- 0x97, 0xA5, 0x44, 0x31, 0xE6, 0x9C, 0x88, 0x44,- 0x31, 0xE7, 0x82, 0xB9, 0x44, 0x32, 0xE6, 0x97,- 0xA5, 0x44, 0x32, 0xE6, 0x9C, 0x88, 0x44, 0x32,- 0xE7, 0x82, 0xB9, 0x44, 0x33, 0xE6, 0x97, 0xA5,- 0x44, 0x33, 0xE6, 0x9C, 0x88, 0x44, 0x33, 0xE7,- 0x82, 0xB9, 0x44, 0x34, 0xE6, 0x97, 0xA5, 0x44,- 0x34, 0xE6, 0x9C, 0x88, 0x44, 0x34, 0xE7, 0x82,- 0xB9, 0x44, 0x35, 0xE6, 0x97, 0xA5, 0x44, 0x35,+ 0x84, 0x44, 0x31, 0xE6, 0x97, 0xA5, 0x44, 0x31,+ 0xE6, 0x9C, 0x88, 0x44, 0x31, 0xE7, 0x82, 0xB9,+ 0x44, 0x32, 0xE6, 0x97, 0xA5, 0x44, 0x32, 0xE6,+ 0x9C, 0x88, 0x44, 0x32, 0xE7, 0x82, 0xB9, 0x44,+ 0x33, 0xE6, 0x97, 0xA5, 0x44, 0x33, 0xE6, 0x9C,+ 0x88, 0x44, 0x33, 0xE7, 0x82, 0xB9, 0x44, 0x34,+ 0xE6, 0x97, 0xA5, 0x44, 0x34, 0xE6, 0x9C, 0x88,+ 0x44, 0x34, 0xE7, 0x82, 0xB9, 0x44, 0x35, 0xE6,// Bytes 1d00 - 1d3f- 0xE6, 0x9C, 0x88, 0x44, 0x35, 0xE7, 0x82, 0xB9,- 0x44, 0x36, 0xE6, 0x97, 0xA5, 0x44, 0x36, 0xE6,- 0x9C, 0x88, 0x44, 0x36, 0xE7, 0x82, 0xB9, 0x44,- 0x37, 0xE6, 0x97, 0xA5, 0x44, 0x37, 0xE6, 0x9C,- 0x88, 0x44, 0x37, 0xE7, 0x82, 0xB9, 0x44, 0x38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84, 0x85, 0x29, 0x45, 0x28, 0xE1, 0x84,+ 0x86, 0x29, 0x45, 0x28, 0xE1, 0x84, 0x87, 0x29,+ 0x45, 0x28, 0xE1, 0x84, 0x89, 0x29, 0x45, 0x28,// Bytes 2080 - 20bf- 0x45, 0x28, 0xE1, 0x84, 0x8C, 0x29, 0x45, 0x28,- 0xE1, 0x84, 0x8E, 0x29, 0x45, 0x28, 0xE1, 0x84,- 0x8F, 0x29, 0x45, 0x28, 0xE1, 0x84, 0x90, 0x29,- 0x45, 0x28, 0xE1, 0x84, 0x91, 0x29, 0x45, 0x28,- 0xE1, 0x84, 0x92, 0x29, 0x45, 0x28, 0xE4, 0xB8,- 0x80, 0x29, 0x45, 0x28, 0xE4, 0xB8, 0x83, 0x29,- 0x45, 0x28, 0xE4, 0xB8, 0x89, 0x29, 0x45, 0x28,- 0xE4, 0xB9, 0x9D, 0x29, 0x45, 0x28, 0xE4, 0xBA,+ 0xE1, 0x84, 0x8B, 0x29, 0x45, 0x28, 0xE1, 0x84,+ 0x8C, 0x29, 0x45, 0x28, 0xE1, 0x84, 0x8E, 0x29,+ 0x45, 0x28, 0xE1, 0x84, 0x8F, 0x29, 0x45, 0x28,+ 0xE1, 0x84, 0x90, 0x29, 0x45, 0x28, 0xE1, 0x84,+ 0x91, 0x29, 0x45, 0x28, 0xE1, 0x84, 0x92, 0x29,+ 0x45, 0x28, 0xE4, 0xB8, 0x80, 0x29, 0x45, 0x28,+ 0xE4, 0xB8, 0x83, 0x29, 0x45, 0x28, 0xE4, 0xB8,+ 0x89, 0x29, 0x45, 0x28, 0xE4, 0xB9, 0x9D, 0x29,// Bytes 20c0 - 20ff- 0x8C, 0x29, 0x45, 0x28, 0xE4, 0xBA, 0x94, 0x29,- 0x45, 0x28, 0xE4, 0xBB, 0xA3, 0x29, 0x45, 0x28,- 0xE4, 0xBC, 0x81, 0x29, 0x45, 0x28, 0xE4, 0xBC,- 0x91, 0x29, 0x45, 0x28, 0xE5, 0x85, 0xAB, 0x29,- 0x45, 0x28, 0xE5, 0x85, 0xAD, 0x29, 0x45, 0x28,- 0xE5, 0x8A, 0xB4, 0x29, 0x45, 0x28, 0xE5, 0x8D,- 0x81, 0x29, 0x45, 0x28, 0xE5, 0x8D, 0x94, 0x29,- 0x45, 0x28, 0xE5, 0x90, 0x8D, 0x29, 0x45, 0x28,+ 0x45, 0x28, 0xE4, 0xBA, 0x8C, 0x29, 0x45, 0x28,+ 0xE4, 0xBA, 0x94, 0x29, 0x45, 0x28, 0xE4, 0xBB,+ 0xA3, 0x29, 0x45, 0x28, 0xE4, 0xBC, 0x81, 0x29,+ 0x45, 0x28, 0xE4, 0xBC, 0x91, 0x29, 0x45, 0x28,+ 0xE5, 0x85, 0xAB, 0x29, 0x45, 0x28, 0xE5, 0x85,+ 0xAD, 0x29, 0x45, 0x28, 0xE5, 0x8A, 0xB4, 0x29,+ 0x45, 0x28, 0xE5, 0x8D, 0x81, 0x29, 0x45, 0x28,+ 0xE5, 0x8D, 0x94, 0x29, 0x45, 0x28, 0xE5, 0x90,// Bytes 2100 - 213f- 0xE5, 0x91, 0xBC, 0x29, 0x45, 0x28, 0xE5, 0x9B,- 0x9B, 0x29, 0x45, 0x28, 0xE5, 0x9C, 0x9F, 0x29,- 0x45, 0x28, 0xE5, 0xAD, 0xA6, 0x29, 0x45, 0x28,- 0xE6, 0x97, 0xA5, 0x29, 0x45, 0x28, 0xE6, 0x9C,- 0x88, 0x29, 0x45, 0x28, 0xE6, 0x9C, 0x89, 0x29,- 0x45, 0x28, 0xE6, 0x9C, 0xA8, 0x29, 0x45, 0x28,- 0xE6, 0xA0, 0xAA, 0x29, 0x45, 0x28, 0xE6, 0xB0,- 0xB4, 0x29, 0x45, 0x28, 0xE7, 0x81, 0xAB, 0x29,+ 0x8D, 0x29, 0x45, 0x28, 0xE5, 0x91, 0xBC, 0x29,+ 0x45, 0x28, 0xE5, 0x9B, 0x9B, 0x29, 0x45, 0x28,+ 0xE5, 0x9C, 0x9F, 0x29, 0x45, 0x28, 0xE5, 0xAD,+ 0xA6, 0x29, 0x45, 0x28, 0xE6, 0x97, 0xA5, 0x29,+ 0x45, 0x28, 0xE6, 0x9C, 0x88, 0x29, 0x45, 0x28,+ 0xE6, 0x9C, 0x89, 0x29, 0x45, 0x28, 0xE6, 0x9C,+ 0xA8, 0x29, 0x45, 0x28, 0xE6, 0xA0, 0xAA, 0x29,+ 0x45, 0x28, 0xE6, 0xB0, 0xB4, 0x29, 0x45, 0x28,// Bytes 2140 - 217f- 0x45, 0x28, 0xE7, 0x89, 0xB9, 0x29, 0x45, 0x28,- 0xE7, 0x9B, 0xA3, 0x29, 0x45, 0x28, 0xE7, 0xA4,- 0xBE, 0x29, 0x45, 0x28, 0xE7, 0xA5, 0x9D, 0x29,- 0x45, 0x28, 0xE7, 0xA5, 0xAD, 0x29, 0x45, 0x28,- 0xE8, 0x87, 0xAA, 0x29, 0x45, 0x28, 0xE8, 0x87,- 0xB3, 0x29, 0x45, 0x28, 0xE8, 0xB2, 0xA1, 0x29,- 0x45, 0x28, 0xE8, 0xB3, 0x87, 0x29, 0x45, 0x28,- 0xE9, 0x87, 0x91, 0x29, 0x45, 0x30, 0xE2, 0x81,+ 0xE7, 0x81, 0xAB, 0x29, 0x45, 0x28, 0xE7, 0x89,+ 0xB9, 0x29, 0x45, 0x28, 0xE7, 0x9B, 0xA3, 0x29,+ 0x45, 0x28, 0xE7, 0xA4, 0xBE, 0x29, 0x45, 0x28,+ 0xE7, 0xA5, 0x9D, 0x29, 0x45, 0x28, 0xE7, 0xA5,+ 0xAD, 0x29, 0x45, 0x28, 0xE8, 0x87, 0xAA, 0x29,+ 0x45, 0x28, 0xE8, 0x87, 0xB3, 0x29, 0x45, 0x28,+ 0xE8, 0xB2, 0xA1, 0x29, 0x45, 0x28, 0xE8, 0xB3,+ 0x87, 0x29, 0x45, 0x28, 0xE9, 0x87, 0x91, 0x29,// Bytes 2180 - 21bf- 0x84, 0x33, 0x45, 0x31, 0x30, 0xE6, 0x97, 0xA5,- 0x45, 0x31, 0x30, 0xE6, 0x9C, 0x88, 0x45, 0x31,- 0x30, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x31, 0xE6,- 0x97, 0xA5, 0x45, 0x31, 0x31, 0xE6, 0x9C, 0x88,- 0x45, 0x31, 0x31, 0xE7, 0x82, 0xB9, 0x45, 0x31,- 0x32, 0xE6, 0x97, 0xA5, 0x45, 0x31, 0x32, 0xE6,- 0x9C, 0x88, 0x45, 0x31, 0x32, 0xE7, 0x82, 0xB9,- 0x45, 0x31, 0x33, 0xE6, 0x97, 0xA5, 0x45, 0x31,+ 0x45, 0x30, 0xE2, 0x81, 0x84, 0x33, 0x45, 0x31,+ 0x30, 0xE6, 0x97, 0xA5, 0x45, 0x31, 0x30, 0xE6,+ 0x9C, 0x88, 0x45, 0x31, 0x30, 0xE7, 0x82, 0xB9,+ 0x45, 0x31, 0x31, 0xE6, 0x97, 0xA5, 0x45, 0x31,+ 0x31, 0xE6, 0x9C, 0x88, 0x45, 0x31, 0x31, 0xE7,+ 0x82, 0xB9, 0x45, 0x31, 0x32, 0xE6, 0x97, 0xA5,+ 0x45, 0x31, 0x32, 0xE6, 0x9C, 0x88, 0x45, 0x31,+ 0x32, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x33, 0xE6,// Bytes 21c0 - 21ff- 0x33, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x34, 0xE6,- 0x97, 0xA5, 0x45, 0x31, 0x34, 0xE7, 0x82, 0xB9,- 0x45, 0x31, 0x35, 0xE6, 0x97, 0xA5, 0x45, 0x31,- 0x35, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x36, 0xE6,- 0x97, 0xA5, 0x45, 0x31, 0x36, 0xE7, 0x82, 0xB9,- 0x45, 0x31, 0x37, 0xE6, 0x97, 0xA5, 0x45, 0x31,- 0x37, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x38, 0xE6,- 0x97, 0xA5, 0x45, 0x31, 0x38, 0xE7, 0x82, 0xB9,+ 0x97, 0xA5, 0x45, 0x31, 0x33, 0xE7, 0x82, 0xB9,+ 0x45, 0x31, 0x34, 0xE6, 0x97, 0xA5, 0x45, 0x31,+ 0x34, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x35, 0xE6,+ 0x97, 0xA5, 0x45, 0x31, 0x35, 0xE7, 0x82, 0xB9,+ 0x45, 0x31, 0x36, 0xE6, 0x97, 0xA5, 0x45, 0x31,+ 0x36, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x37, 0xE6,+ 0x97, 0xA5, 0x45, 0x31, 0x37, 0xE7, 0x82, 0xB9,+ 0x45, 0x31, 0x38, 0xE6, 0x97, 0xA5, 0x45, 0x31,// Bytes 2200 - 223f- 0x45, 0x31, 0x39, 0xE6, 0x97, 0xA5, 0x45, 0x31,- 0x39, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0xE2, 0x81,- 0x84, 0x32, 0x45, 0x31, 0xE2, 0x81, 0x84, 0x33,- 0x45, 0x31, 0xE2, 0x81, 0x84, 0x34, 0x45, 0x31,- 0xE2, 0x81, 0x84, 0x35, 0x45, 0x31, 0xE2, 0x81,- 0x84, 0x36, 0x45, 0x31, 0xE2, 0x81, 0x84, 0x37,- 0x45, 0x31, 0xE2, 0x81, 0x84, 0x38, 0x45, 0x31,- 0xE2, 0x81, 0x84, 0x39, 0x45, 0x32, 0x30, 0xE6,+ 0x38, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x39, 0xE6,+ 0x97, 0xA5, 0x45, 0x31, 0x39, 0xE7, 0x82, 0xB9,+ 0x45, 0x31, 0xE2, 0x81, 0x84, 0x32, 0x45, 0x31,+ 0xE2, 0x81, 0x84, 0x33, 0x45, 0x31, 0xE2, 0x81,+ 0x84, 0x34, 0x45, 0x31, 0xE2, 0x81, 0x84, 0x35,+ 0x45, 0x31, 0xE2, 0x81, 0x84, 0x36, 0x45, 0x31,+ 0xE2, 0x81, 0x84, 0x37, 0x45, 0x31, 0xE2, 0x81,+ 0x84, 0x38, 0x45, 0x31, 0xE2, 0x81, 0x84, 0x39,// Bytes 2240 - 227f- 0x97, 0xA5, 0x45, 0x32, 0x30, 0xE7, 0x82, 0xB9,- 0x45, 0x32, 0x31, 0xE6, 0x97, 0xA5, 0x45, 0x32,- 0x31, 0xE7, 0x82, 0xB9, 0x45, 0x32, 0x32, 0xE6,- 0x97, 0xA5, 0x45, 0x32, 0x32, 0xE7, 0x82, 0xB9,- 0x45, 0x32, 0x33, 0xE6, 0x97, 0xA5, 0x45, 0x32,- 0x33, 0xE7, 0x82, 0xB9, 0x45, 0x32, 0x34, 0xE6,- 0x97, 0xA5, 0x45, 0x32, 0x34, 0xE7, 0x82, 0xB9,- 0x45, 0x32, 0x35, 0xE6, 0x97, 0xA5, 0x45, 0x32,+ 0x45, 0x32, 0x30, 0xE6, 0x97, 0xA5, 0x45, 0x32,+ 0x30, 0xE7, 0x82, 0xB9, 0x45, 0x32, 0x31, 0xE6,+ 0x97, 0xA5, 0x45, 0x32, 0x31, 0xE7, 0x82, 0xB9,+ 0x45, 0x32, 0x32, 0xE6, 0x97, 0xA5, 0x45, 0x32,+ 0x32, 0xE7, 0x82, 0xB9, 0x45, 0x32, 0x33, 0xE6,+ 0x97, 0xA5, 0x45, 0x32, 0x33, 0xE7, 0x82, 0xB9,+ 0x45, 0x32, 0x34, 0xE6, 0x97, 0xA5, 0x45, 0x32,+ 0x34, 0xE7, 0x82, 0xB9, 0x45, 0x32, 0x35, 0xE6,// Bytes 2280 - 22bf- 0x36, 0xE6, 0x97, 0xA5, 0x45, 0x32, 0x37, 0xE6,- 0x97, 0xA5, 0x45, 0x32, 0x38, 0xE6, 0x97, 0xA5,- 0x45, 0x32, 0x39, 0xE6, 0x97, 0xA5, 0x45, 0x32,- 0xE2, 0x81, 0x84, 0x33, 0x45, 0x32, 0xE2, 0x81,- 0x84, 0x35, 0x45, 0x33, 0x30, 0xE6, 0x97, 0xA5,- 0x45, 0x33, 0x31, 0xE6, 0x97, 0xA5, 0x45, 0x33,- 0xE2, 0x81, 0x84, 0x34, 0x45, 0x33, 0xE2, 0x81,- 0x84, 0x35, 0x45, 0x33, 0xE2, 0x81, 0x84, 0x38,+ 0x97, 0xA5, 0x45, 0x32, 0x36, 0xE6, 0x97, 0xA5,+ 0x45, 0x32, 0x37, 0xE6, 0x97, 0xA5, 0x45, 0x32,+ 0x38, 0xE6, 0x97, 0xA5, 0x45, 0x32, 0x39, 0xE6,+ 0x97, 0xA5, 0x45, 0x32, 0xE2, 0x81, 0x84, 0x33,+ 0x45, 0x32, 0xE2, 0x81, 0x84, 0x35, 0x45, 0x33,+ 0x30, 0xE6, 0x97, 0xA5, 0x45, 0x33, 0x31, 0xE6,+ 0x97, 0xA5, 0x45, 0x33, 0xE2, 0x81, 0x84, 0x34,+ 0x45, 0x33, 0xE2, 0x81, 0x84, 0x35, 0x45, 0x33,// Bytes 22c0 - 22ff- 0x45, 0x34, 0xE2, 0x81, 0x84, 0x35, 0x45, 0x35,- 0xE2, 0x81, 0x84, 0x36, 0x45, 0x35, 0xE2, 0x81,- 0x84, 0x38, 0x45, 0x37, 0xE2, 0x81, 0x84, 0x38,- 0x45, 0x41, 0xE2, 0x88, 0x95, 0x6D, 0x45, 0x56,- 0xE2, 0x88, 0x95, 0x6D, 0x45, 0x6D, 0xE2, 0x88,- 0x95, 0x73, 0x46, 0x31, 0xE2, 0x81, 0x84, 0x31,- 0x30, 0x46, 0x43, 0xE2, 0x88, 0x95, 0x6B, 0x67,- 0x46, 0x6D, 0xE2, 0x88, 0x95, 0x73, 0x32, 0x46,+ 0xE2, 0x81, 0x84, 0x38, 0x45, 0x34, 0xE2, 0x81,+ 0x84, 0x35, 0x45, 0x35, 0xE2, 0x81, 0x84, 0x36,+ 0x45, 0x35, 0xE2, 0x81, 0x84, 0x38, 0x45, 0x37,+ 0xE2, 0x81, 0x84, 0x38, 0x45, 0x41, 0xE2, 0x88,+ 0x95, 0x6D, 0x45, 0x56, 0xE2, 0x88, 0x95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 0x83, 0xAC, 0xE3,+ 0x83, 0xA0, 0x46, 0xE5, 0xA4, 0xA7, 0xE6, 0xAD,// Bytes 2700 - 273f- 0xB3, 0xE6, 0x88, 0x90, 0x46, 0xE6, 0x98, 0x8E,- 0xE6, 0xB2, 0xBB, 0x46, 0xE6, 0x98, 0xAD, 0xE5,- 0x92, 0x8C, 0x47, 0x72, 0x61, 0x64, 0xE2, 0x88,- 0x95, 0x73, 0x47, 0xE3, 0x80, 0x94, 0x53, 0xE3,- 0x80, 0x95, 0x48, 0x28, 0xE1, 0x84, 0x80, 0xE1,- 0x85, 0xA1, 0x29, 0x48, 0x28, 0xE1, 0x84, 0x82,- 0xE1, 0x85, 0xA1, 0x29, 0x48, 0x28, 0xE1, 0x84,- 0x83, 0xE1, 0x85, 0xA1, 0x29, 0x48, 0x28, 0xE1,+ 0xA3, 0x46, 0xE5, 0xB9, 0xB3, 0xE6, 0x88, 0x90,+ 0x46, 0xE6, 0x98, 0x8E, 0xE6, 0xB2, 0xBB, 0x46,+ 0xE6, 0x98, 0xAD, 0xE5, 0x92, 0x8C, 0x47, 0x72,+ 0x61, 0x64, 0xE2, 0x88, 0x95, 0x73, 0x47, 0xE3,+ 0x80, 0x94, 0x53, 0xE3, 0x80, 0x95, 0x48, 0x28,+ 0xE1, 0x84, 0x80, 0xE1, 0x85, 0xA1, 0x29, 0x48,+ 0x28, 0xE1, 0x84, 0x82, 0xE1, 0x85, 0xA1, 0x29,+ 0x48, 0x28, 0xE1, 0x84, 0x83, 0xE1, 0x85, 0xA1,// Bytes 2740 - 277f- 0x84, 0x85, 0xE1, 0x85, 0xA1, 0x29, 0x48, 0x28,- 0xE1, 0x84, 0x86, 0xE1, 0x85, 0xA1, 0x29, 0x48,- 0x28, 0xE1, 0x84, 0x87, 0xE1, 0x85, 0xA1, 0x29,- 0x48, 0x28, 0xE1, 0x84, 0x89, 0xE1, 0x85, 0xA1,- 0x29, 0x48, 0x28, 0xE1, 0x84, 0x8B, 0xE1, 0x85,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 - 42ff- 0x20, 0xD9, 0x90, 0x6D, 0x43, 0x20, 0xD9, 0x91,- 0x71, 0x43, 0x20, 0xD9, 0x92, 0x75, 0x43, 0x41,- 0xCC, 0x8A, 0xC9, 0x43, 0x73, 0xCC, 0x87, 0xC9,- 0x43, 0xE1, 0x85, 0xA1, 0x01, 0x43, 0xE1, 0x85,- 0xA2, 0x01, 0x43, 0xE1, 0x85, 0xA3, 0x01, 0x43,- 0xE1, 0x85, 0xA4, 0x01, 0x43, 0xE1, 0x85, 0xA5,- 0x01, 0x43, 0xE1, 0x85, 0xA6, 0x01, 0x43, 0xE1,- 0x85, 0xA7, 0x01, 0x43, 0xE1, 0x85, 0xA8, 0x01,+ 0xD9, 0x8F, 0x69, 0x43, 0x20, 0xD9, 0x90, 0x6D,+ 0x43, 0x20, 0xD9, 0x91, 0x71, 0x43, 0x20, 0xD9,+ 0x92, 0x75, 0x43, 0x41, 0xCC, 0x8A, 0xC9, 0x43,+ 0x73, 0xCC, 0x87, 0xC9, 0x43, 0xE1, 0x85, 0xA1,+ 0x01, 0x43, 0xE1, 0x85, 0xA2, 0x01, 0x43, 0xE1,+ 0x85, 0xA3, 0x01, 0x43, 0xE1, 0x85, 0xA4, 0x01,+ 0x43, 0xE1, 0x85, 0xA5, 0x01, 0x43, 0xE1, 0x85,+ 0xA6, 0x01, 0x43, 0xE1, 0x85, 0xA7, 0x01, 0x43,// Bytes 4300 - 433f- 0x43, 0xE1, 0x85, 0xA9, 0x01, 0x43, 0xE1, 0x85,- 0xAA, 0x01, 0x43, 0xE1, 0x85, 0xAB, 0x01, 0x43,- 0xE1, 0x85, 0xAC, 0x01, 0x43, 0xE1, 0x85, 0xAD,- 0x01, 0x43, 0xE1, 0x85, 0xAE, 0x01, 0x43, 0xE1,- 0x85, 0xAF, 0x01, 0x43, 0xE1, 0x85, 0xB0, 0x01,- 0x43, 0xE1, 0x85, 0xB1, 0x01, 0x43, 0xE1, 0x85,- 0xB2, 0x01, 0x43, 0xE1, 0x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, 0x99, 0x0D, 0x03, 0x43, 0xE3, 0x82, 0x9A,- 0x0D, 0x03, 0x46, 0xE0, 0xBD, 0xB1, 0xE0, 0xBD,- 0xB2, 0x9E, 0x26, 0x46, 0xE0, 0xBD, 0xB1, 0xE0,- 0xBD, 0xB4, 0xA2, 0x26, 0x46, 0xE0, 0xBD, 0xB1,- 0xE0, 0xBE, 0x80, 0x9E, 0x26, 0x00, 0x01,+ 0x94, 0xCD, 0x82, 0xCA, 0x42, 0xCC, 0x80, 0xC9,+ 0x32, 0x42, 0xCC, 0x81, 0xC9, 0x32, 0x42, 0xCC,+ 0x93, 0xC9, 0x32, 0x44, 0xCC, 0x88, 0xCC, 0x81,+ 0xCA, 0x32, 0x43, 0xE3, 0x82, 0x99, 0x0D, 0x03,+ 0x43, 0xE3, 0x82, 0x9A, 0x0D, 0x03, 0x46, 0xE0,+ 0xBD, 0xB1, 0xE0, 0xBD, 0xB2, 0x9E, 0x26, 0x46,+ 0xE0, 0xBD, 0xB1, 0xE0, 0xBD, 0xB4, 0xA2, 0x26,+ 0x46, 0xE0, 0xBD, 0xB1, 0xE0, 0xBE, 0x80, 0x9E,+ // Bytes 4a80 - 4abf+ 0x26, 0x00, 0x01,}// lookup returns the trie value for the first UTF-8 encoding in s and@@ -2890,7 +2892,7 @@ func (t *nfcTrie) lookupStringUnsafe(s string) uint16 {return 0}-// nfcTrie. Total size: 10270 bytes (10.03 KiB). Checksum: d7e415c88f2e510a.+// nfcTrie. Total size: 10332 bytes (10.09 KiB). Checksum: ad355b768fddb1b6.type nfcTrie struct{}func newNfcTrie(i int) *nfcTrie {@@ -2926,63 +2928,63 @@ var nfcValues = [2944]uint16{0x76: 0xa000, 0x77: 0xa000, 0x78: 0xa000, 0x79: 0xa000, 0x7a: 0xa000,// Block 0x2, offset 0x80// Block 0x3, offset 0xc0- 0xc0: 0x2f6b, 0xc1: 0x2f70, 0xc2: 0x471a, 0xc3: 0x2f75, 0xc4: 0x4729, 0xc5: 0x472e,- 0xc6: 0xa000, 0xc7: 0x4738, 0xc8: 0x2fde, 0xc9: 0x2fe3, 0xca: 0x473d, 0xcb: 0x2ff7,- 0xcc: 0x306a, 0xcd: 0x306f, 0xce: 0x3074, 0xcf: 0x4751, 0xd1: 0x3100,- 0xd2: 0x3123, 0xd3: 0x3128, 0xd4: 0x475b, 0xd5: 0x4760, 0xd6: 0x476f,- 0xd8: 0xa000, 0xd9: 0x31af, 0xda: 0x31b4, 0xdb: 0x31b9, 0xdc: 0x47a1, 0xdd: 0x3231,- 0xe0: 0x3277, 0xe1: 0x327c, 0xe2: 0x47ab, 0xe3: 0x3281,- 0xe4: 0x47ba, 0xe5: 0x47bf, 0xe6: 0xa000, 0xe7: 0x47c9, 0xe8: 0x32ea, 0xe9: 0x32ef,- 0xea: 0x47ce, 0xeb: 0x3303, 0xec: 0x337b, 0xed: 0x3380, 0xee: 0x3385, 0xef: 0x47e2,- 0xf1: 0x3411, 0xf2: 0x3434, 0xf3: 0x3439, 0xf4: 0x47ec, 0xf5: 0x47f1,- 0xf6: 0x4800, 0xf8: 0xa000, 0xf9: 0x34c5, 0xfa: 0x34ca, 0xfb: 0x34cf,- 0xfc: 0x4832, 0xfd: 0x354c, 0xff: 0x3565,+ 0xc0: 0x2f6f, 0xc1: 0x2f74, 0xc2: 0x471e, 0xc3: 0x2f79, 0xc4: 0x472d, 0xc5: 0x4732,+ 0xc6: 0xa000, 0xc7: 0x473c, 0xc8: 0x2fe2, 0xc9: 0x2fe7, 0xca: 0x4741, 0xcb: 0x2ffb,+ 0xcc: 0x306e, 0xcd: 0x3073, 0xce: 0x3078, 0xcf: 0x4755, 0xd1: 0x3104,+ 0xd2: 0x3127, 0xd3: 0x312c, 0xd4: 0x475f, 0xd5: 0x4764, 0xd6: 0x4773,+ 0xd8: 0xa000, 0xd9: 0x31b3, 0xda: 0x31b8, 0xdb: 0x31bd, 0xdc: 0x47a5, 0xdd: 0x3235,+ 0xe0: 0x327b, 0xe1: 0x3280, 0xe2: 0x47af, 0xe3: 0x3285,+ 0xe4: 0x47be, 0xe5: 0x47c3, 0xe6: 0xa000, 0xe7: 0x47cd, 0xe8: 0x32ee, 0xe9: 0x32f3,+ 0xea: 0x47d2, 0xeb: 0x3307, 0xec: 0x337f, 0xed: 0x3384, 0xee: 0x3389, 0xef: 0x47e6,+ 0xf1: 0x3415, 0xf2: 0x3438, 0xf3: 0x343d, 0xf4: 0x47f0, 0xf5: 0x47f5,+ 0xf6: 0x4804, 0xf8: 0xa000, 0xf9: 0x34c9, 0xfa: 0x34ce, 0xfb: 0x34d3,+ 0xfc: 0x4836, 0xfd: 0x3550, 0xff: 0x3569,// Block 0x4, offset 0x100- 0x100: 0x2f7a, 0x101: 0x3286, 0x102: 0x471f, 0x103: 0x47b0, 0x104: 0x2f98, 0x105: 0x32a4,- 0x106: 0x2fac, 0x107: 0x32b8, 0x108: 0x2fb1, 0x109: 0x32bd, 0x10a: 0x2fb6, 0x10b: 0x32c2,- 0x10c: 0x2fbb, 0x10d: 0x32c7, 0x10e: 0x2fc5, 0x10f: 0x32d1,- 0x112: 0x4742, 0x113: 0x47d3, 0x114: 0x2fed, 0x115: 0x32f9, 0x116: 0x2ff2, 0x117: 0x32fe,- 0x118: 0x3010, 0x119: 0x331c, 0x11a: 0x3001, 0x11b: 0x330d, 0x11c: 0x3029, 0x11d: 0x3335,- 0x11e: 0x3033, 0x11f: 0x333f, 0x120: 0x3038, 0x121: 0x3344, 0x122: 0x3042, 0x123: 0x334e,- 0x124: 0x3047, 0x125: 0x3353, 0x128: 0x3079, 0x129: 0x338a,- 0x12a: 0x307e, 0x12b: 0x338f, 0x12c: 0x3083, 0x12d: 0x3394, 0x12e: 0x30a6, 0x12f: 0x33b2,- 0x130: 0x3088, 0x134: 0x30b0, 0x135: 0x33bc,- 0x136: 0x30c4, 0x137: 0x33d5, 0x139: 0x30ce, 0x13a: 0x33df, 0x13b: 0x30d8,- 0x13c: 0x33e9, 0x13d: 0x30d3, 0x13e: 0x33e4,+ 0x100: 0x2f7e, 0x101: 0x328a, 0x102: 0x4723, 0x103: 0x47b4, 0x104: 0x2f9c, 0x105: 0x32a8,+ 0x106: 0x2fb0, 0x107: 0x32bc, 0x108: 0x2fb5, 0x109: 0x32c1, 0x10a: 0x2fba, 0x10b: 0x32c6,+ 0x10c: 0x2fbf, 0x10d: 0x32cb, 0x10e: 0x2fc9, 0x10f: 0x32d5,+ 0x112: 0x4746, 0x113: 0x47d7, 0x114: 0x2ff1, 0x115: 0x32fd, 0x116: 0x2ff6, 0x117: 0x3302,+ 0x118: 0x3014, 0x119: 0x3320, 0x11a: 0x3005, 0x11b: 0x3311, 0x11c: 0x302d, 0x11d: 0x3339,+ 0x11e: 0x3037, 0x11f: 0x3343, 0x120: 0x303c, 0x121: 0x3348, 0x122: 0x3046, 0x123: 0x3352,+ 0x124: 0x304b, 0x125: 0x3357, 0x128: 0x307d, 0x129: 0x338e,+ 0x12a: 0x3082, 0x12b: 0x3393, 0x12c: 0x3087, 0x12d: 0x3398, 0x12e: 0x30aa, 0x12f: 0x33b6,+ 0x130: 0x308c, 0x134: 0x30b4, 0x135: 0x33c0,+ 0x136: 0x30c8, 0x137: 0x33d9, 0x139: 0x30d2, 0x13a: 0x33e3, 0x13b: 0x30dc,+ 0x13c: 0x33ed, 0x13d: 0x30d7, 0x13e: 0x33e8,// Block 0x5, offset 0x140- 0x143: 0x30fb, 0x144: 0x340c, 0x145: 0x3114,- 0x146: 0x3425, 0x147: 0x310a, 0x148: 0x341b,- 0x14c: 0x4765, 0x14d: 0x47f6, 0x14e: 0x312d, 0x14f: 0x343e, 0x150: 0x3137, 0x151: 0x3448,- 0x154: 0x3155, 0x155: 0x3466, 0x156: 0x316e, 0x157: 0x347f,- 0x158: 0x315f, 0x159: 0x3470, 0x15a: 0x4788, 0x15b: 0x4819, 0x15c: 0x3178, 0x15d: 0x3489,- 0x15e: 0x3187, 0x15f: 0x3498, 0x160: 0x478d, 0x161: 0x481e, 0x162: 0x31a0, 0x163: 0x34b6,- 0x164: 0x3191, 0x165: 0x34a7, 0x168: 0x4797, 0x169: 0x4828,- 0x16a: 0x479c, 0x16b: 0x482d, 0x16c: 0x31be, 0x16d: 0x34d4, 0x16e: 0x31c8, 0x16f: 0x34de,- 0x170: 0x31cd, 0x171: 0x34e3, 0x172: 0x31eb, 0x173: 0x3501, 0x174: 0x320e, 0x175: 0x3524,- 0x176: 0x3236, 0x177: 0x3551, 0x178: 0x324a, 0x179: 0x3259, 0x17a: 0x3579, 0x17b: 0x3263,- 0x17c: 0x3583, 0x17d: 0x3268, 0x17e: 0x3588, 0x17f: 0xa000,+ 0x143: 0x30ff, 0x144: 0x3410, 0x145: 0x3118,+ 0x146: 0x3429, 0x147: 0x310e, 0x148: 0x341f,+ 0x14c: 0x4769, 0x14d: 0x47fa, 0x14e: 0x3131, 0x14f: 0x3442, 0x150: 0x313b, 0x151: 0x344c,+ 0x154: 0x3159, 0x155: 0x346a, 0x156: 0x3172, 0x157: 0x3483,+ 0x158: 0x3163, 0x159: 0x3474, 0x15a: 0x478c, 0x15b: 0x481d, 0x15c: 0x317c, 0x15d: 0x348d,+ 0x15e: 0x318b, 0x15f: 0x349c, 0x160: 0x4791, 0x161: 0x4822, 0x162: 0x31a4, 0x163: 0x34ba,+ 0x164: 0x3195, 0x165: 0x34ab, 0x168: 0x479b, 0x169: 0x482c,+ 0x16a: 0x47a0, 0x16b: 0x4831, 0x16c: 0x31c2, 0x16d: 0x34d8, 0x16e: 0x31cc, 0x16f: 0x34e2,+ 0x170: 0x31d1, 0x171: 0x34e7, 0x172: 0x31ef, 0x173: 0x3505, 0x174: 0x3212, 0x175: 0x3528,+ 0x176: 0x323a, 0x177: 0x3555, 0x178: 0x324e, 0x179: 0x325d, 0x17a: 0x357d, 0x17b: 0x3267,+ 0x17c: 0x3587, 0x17d: 0x326c, 0x17e: 0x358c, 0x17f: 0xa000,// Block 0x6, offset 0x1800x184: 0x8100, 0x185: 0x8100,0x186: 0x8100,- 0x18d: 0x2f84, 0x18e: 0x3290, 0x18f: 0x3092, 0x190: 0x339e, 0x191: 0x313c,- 0x192: 0x344d, 0x193: 0x31d2, 0x194: 0x34e8, 0x195: 0x39cb, 0x196: 0x3b5a, 0x197: 0x39c4,- 0x198: 0x3b53, 0x199: 0x39d2, 0x19a: 0x3b61, 0x19b: 0x39bd, 0x19c: 0x3b4c,- 0x19e: 0x38ac, 0x19f: 0x3a3b, 0x1a0: 0x38a5, 0x1a1: 0x3a34, 0x1a2: 0x35af, 0x1a3: 0x35c1,- 0x1a6: 0x303d, 0x1a7: 0x3349, 0x1a8: 0x30ba, 0x1a9: 0x33cb,- 0x1aa: 0x477e, 0x1ab: 0x480f, 0x1ac: 0x398c, 0x1ad: 0x3b1b, 0x1ae: 0x35d3, 0x1af: 0x35d9,- 0x1b0: 0x33c1, 0x1b4: 0x3024, 0x1b5: 0x3330,- 0x1b8: 0x30f6, 0x1b9: 0x3407, 0x1ba: 0x38b3, 0x1bb: 0x3a42,- 0x1bc: 0x35a9, 0x1bd: 0x35bb, 0x1be: 0x35b5, 0x1bf: 0x35c7,+ 0x18d: 0x2f88, 0x18e: 0x3294, 0x18f: 0x3096, 0x190: 0x33a2, 0x191: 0x3140,+ 0x192: 0x3451, 0x193: 0x31d6, 0x194: 0x34ec, 0x195: 0x39cf, 0x196: 0x3b5e, 0x197: 0x39c8,+ 0x198: 0x3b57, 0x199: 0x39d6, 0x19a: 0x3b65, 0x19b: 0x39c1, 0x19c: 0x3b50,+ 0x19e: 0x38b0, 0x19f: 0x3a3f, 0x1a0: 0x38a9, 0x1a1: 0x3a38, 0x1a2: 0x35b3, 0x1a3: 0x35c5,+ 0x1a6: 0x3041, 0x1a7: 0x334d, 0x1a8: 0x30be, 0x1a9: 0x33cf,+ 0x1aa: 0x4782, 0x1ab: 0x4813, 0x1ac: 0x3990, 0x1ad: 0x3b1f, 0x1ae: 0x35d7, 0x1af: 0x35dd,+ 0x1b0: 0x33c5, 0x1b4: 0x3028, 0x1b5: 0x3334,+ 0x1b8: 0x30fa, 0x1b9: 0x340b, 0x1ba: 0x38b7, 0x1bb: 0x3a46,+ 0x1bc: 0x35ad, 0x1bd: 0x35bf, 0x1be: 0x35b9, 0x1bf: 0x35cb,// Block 0x7, offset 0x1c0- 0x1c0: 0x2f89, 0x1c1: 0x3295, 0x1c2: 0x2f8e, 0x1c3: 0x329a, 0x1c4: 0x3006, 0x1c5: 0x3312,- 0x1c6: 0x300b, 0x1c7: 0x3317, 0x1c8: 0x3097, 0x1c9: 0x33a3, 0x1ca: 0x309c, 0x1cb: 0x33a8,- 0x1cc: 0x3141, 0x1cd: 0x3452, 0x1ce: 0x3146, 0x1cf: 0x3457, 0x1d0: 0x3164, 0x1d1: 0x3475,- 0x1d2: 0x3169, 0x1d3: 0x347a, 0x1d4: 0x31d7, 0x1d5: 0x34ed, 0x1d6: 0x31dc, 0x1d7: 0x34f2,- 0x1d8: 0x3182, 0x1d9: 0x3493, 0x1da: 0x319b, 0x1db: 0x34b1,- 0x1de: 0x3056, 0x1df: 0x3362,- 0x1e6: 0x4724, 0x1e7: 0x47b5, 0x1e8: 0x474c, 0x1e9: 0x47dd,- 0x1ea: 0x395b, 0x1eb: 0x3aea, 0x1ec: 0x3938, 0x1ed: 0x3ac7, 0x1ee: 0x476a, 0x1ef: 0x47fb,- 0x1f0: 0x3954, 0x1f1: 0x3ae3, 0x1f2: 0x3240, 0x1f3: 0x355b,+ 0x1c0: 0x2f8d, 0x1c1: 0x3299, 0x1c2: 0x2f92, 0x1c3: 0x329e, 0x1c4: 0x300a, 0x1c5: 0x3316,+ 0x1c6: 0x300f, 0x1c7: 0x331b, 0x1c8: 0x309b, 0x1c9: 0x33a7, 0x1ca: 0x30a0, 0x1cb: 0x33ac,+ 0x1cc: 0x3145, 0x1cd: 0x3456, 0x1ce: 0x314a, 0x1cf: 0x345b, 0x1d0: 0x3168, 0x1d1: 0x3479,+ 0x1d2: 0x316d, 0x1d3: 0x347e, 0x1d4: 0x31db, 0x1d5: 0x34f1, 0x1d6: 0x31e0, 0x1d7: 0x34f6,+ 0x1d8: 0x3186, 0x1d9: 0x3497, 0x1da: 0x319f, 0x1db: 0x34b5,+ 0x1de: 0x305a, 0x1df: 0x3366,+ 0x1e6: 0x4728, 0x1e7: 0x47b9, 0x1e8: 0x4750, 0x1e9: 0x47e1,+ 0x1ea: 0x395f, 0x1eb: 0x3aee, 0x1ec: 0x393c, 0x1ed: 0x3acb, 0x1ee: 0x476e, 0x1ef: 0x47ff,+ 0x1f0: 0x3958, 0x1f1: 0x3ae7, 0x1f2: 0x3244, 0x1f3: 0x355f,// Block 0x8, offset 0x2000x200: 0x9932, 0x201: 0x9932, 0x202: 0x9932, 0x203: 0x9932, 0x204: 0x9932, 0x205: 0x8132,0x206: 0x9932, 0x207: 0x9932, 0x208: 0x9932, 0x209: 0x9932, 0x20a: 0x9932, 0x20b: 0x9932,@@ -2996,7 +2998,7 @@ var nfcValues = [2944]uint16{0x236: 0x8101, 0x237: 0x8101, 0x238: 0x9901, 0x239: 0x812d, 0x23a: 0x812d, 0x23b: 0x812d,0x23c: 0x812d, 0x23d: 0x8132, 0x23e: 0x8132, 0x23f: 0x8132,// Block 0x9, offset 0x240- 0x240: 0x4a40, 0x241: 0x4a45, 0x242: 0x9932, 0x243: 0x4a4a, 0x244: 0x4a4f, 0x245: 0x9936,+ 0x240: 0x4a44, 0x241: 0x4a49, 0x242: 0x9932, 0x243: 0x4a4e, 0x244: 0x4a53, 0x245: 0x9936,0x246: 0x8132, 0x247: 0x812d, 0x248: 0x812d, 0x249: 0x812d, 0x24a: 0x8132, 0x24b: 0x8132,0x24c: 0x8132, 0x24d: 0x812d, 0x24e: 0x812d, 0x250: 0x8132, 0x251: 0x8132,0x252: 0x8132, 0x253: 0x812d, 0x254: 0x812d, 0x255: 0x812d, 0x256: 0x812d, 0x257: 0x8132,@@ -3008,39 +3010,39 @@ var nfcValues = [2944]uint16{0x27a: 0x8100,0x27e: 0x0037,// Block 0xa, offset 0x280- 0x284: 0x8100, 0x285: 0x359d,- 0x286: 0x35e5, 0x287: 0x00ce, 0x288: 0x3603, 0x289: 0x360f, 0x28a: 0x3621,- 0x28c: 0x363f, 0x28e: 0x3651, 0x28f: 0x366f, 0x290: 0x3e04, 0x291: 0xa000,+ 0x284: 0x8100, 0x285: 0x35a1,+ 0x286: 0x35e9, 0x287: 0x00ce, 0x288: 0x3607, 0x289: 0x3613, 0x28a: 0x3625,+ 0x28c: 0x3643, 0x28e: 0x3655, 0x28f: 0x3673, 0x290: 0x3e08, 0x291: 0xa000,0x295: 0xa000, 0x297: 0xa000,0x299: 0xa000,0x29f: 0xa000, 0x2a1: 0xa000,0x2a5: 0xa000, 0x2a9: 0xa000,- 0x2aa: 0x3633, 0x2ab: 0x3663, 0x2ac: 0x4890, 0x2ad: 0x3693, 0x2ae: 0x48ba, 0x2af: 0x36a5,- 0x2b0: 0x3e6c, 0x2b1: 0xa000, 0x2b5: 0xa000,+ 0x2aa: 0x3637, 0x2ab: 0x3667, 0x2ac: 0x4894, 0x2ad: 0x3697, 0x2ae: 0x48be, 0x2af: 0x36a9,+ 0x2b0: 0x3e70, 0x2b1: 0xa000, 0x2b5: 0xa000,0x2b7: 0xa000, 0x2b9: 0xa000,0x2bf: 0xa000,// Block 0xb, offset 0x2c0- 0x2c0: 0x371d, 0x2c1: 0x3729, 0x2c3: 0x3717,- 0x2c6: 0xa000, 0x2c7: 0x3705,- 0x2cc: 0x3759, 0x2cd: 0x3741, 0x2ce: 0x376b, 0x2d0: 0xa000,+ 0x2c0: 0x3721, 0x2c1: 0x372d, 0x2c3: 0x371b,+ 0x2c6: 0xa000, 0x2c7: 0x3709,+ 0x2cc: 0x375d, 0x2cd: 0x3745, 0x2ce: 0x376f, 0x2d0: 0xa000,0x2d3: 0xa000, 0x2d5: 0xa000, 0x2d6: 0xa000, 0x2d7: 0xa000,- 0x2d8: 0xa000, 0x2d9: 0x374d, 0x2da: 0xa000,+ 0x2d8: 0xa000, 0x2d9: 0x3751, 0x2da: 0xa000,0x2de: 0xa000, 0x2e3: 0xa000,0x2e7: 0xa000,0x2eb: 0xa000, 0x2ed: 0xa000,0x2f0: 0xa000, 0x2f3: 0xa000, 0x2f5: 0xa000,- 0x2f6: 0xa000, 0x2f7: 0xa000, 0x2f8: 0xa000, 0x2f9: 0x37d1, 0x2fa: 0xa000,+ 0x2f6: 0xa000, 0x2f7: 0xa000, 0x2f8: 0xa000, 0x2f9: 0x37d5, 0x2fa: 0xa000,0x2fe: 0xa000,// Block 0xc, offset 0x300- 0x301: 0x372f, 0x302: 0x37b3,- 0x310: 0x370b, 0x311: 0x378f,- 0x312: 0x3711, 0x313: 0x3795, 0x316: 0x3723, 0x317: 0x37a7,- 0x318: 0xa000, 0x319: 0xa000, 0x31a: 0x3825, 0x31b: 0x382b, 0x31c: 0x3735, 0x31d: 0x37b9,- 0x31e: 0x373b, 0x31f: 0x37bf, 0x322: 0x3747, 0x323: 0x37cb,- 0x324: 0x3753, 0x325: 0x37d7, 0x326: 0x375f, 0x327: 0x37e3, 0x328: 0xa000, 0x329: 0xa000,- 0x32a: 0x3831, 0x32b: 0x3837, 0x32c: 0x3789, 0x32d: 0x380d, 0x32e: 0x3765, 0x32f: 0x37e9,- 0x330: 0x3771, 0x331: 0x37f5, 0x332: 0x3777, 0x333: 0x37fb, 0x334: 0x377d, 0x335: 0x3801,- 0x338: 0x3783, 0x339: 0x3807,+ 0x301: 0x3733, 0x302: 0x37b7,+ 0x310: 0x370f, 0x311: 0x3793,+ 0x312: 0x3715, 0x313: 0x3799, 0x316: 0x3727, 0x317: 0x37ab,+ 0x318: 0xa000, 0x319: 0xa000, 0x31a: 0x3829, 0x31b: 0x382f, 0x31c: 0x3739, 0x31d: 0x37bd,+ 0x31e: 0x373f, 0x31f: 0x37c3, 0x322: 0x374b, 0x323: 0x37cf,+ 0x324: 0x3757, 0x325: 0x37db, 0x326: 0x3763, 0x327: 0x37e7, 0x328: 0xa000, 0x329: 0xa000,+ 0x32a: 0x3835, 0x32b: 0x383b, 0x32c: 0x378d, 0x32d: 0x3811, 0x32e: 0x3769, 0x32f: 0x37ed,+ 0x330: 0x3775, 0x331: 0x37f9, 0x332: 0x377b, 0x333: 0x37ff, 0x334: 0x3781, 0x335: 0x3805,+ 0x338: 0x3787, 0x339: 0x380b,// Block 0xd, offset 0x3400x351: 0x812d,0x352: 0x8132, 0x353: 0x8132, 0x354: 0x8132, 0x355: 0x8132, 0x356: 0x812d, 0x357: 0x8132,@@ -3060,213 +3062,213 @@ var nfcValues = [2944]uint16{0x3b0: 0x811e,// Block 0xf, offset 0x3c00x3c5: 0xa000,- 0x3c6: 0x2d22, 0x3c7: 0xa000, 0x3c8: 0x2d2a, 0x3c9: 0xa000, 0x3ca: 0x2d32, 0x3cb: 0xa000,- 0x3cc: 0x2d3a, 0x3cd: 0xa000, 0x3ce: 0x2d42, 0x3d1: 0xa000,- 0x3d2: 0x2d4a,+ 0x3c6: 0x2d26, 0x3c7: 0xa000, 0x3c8: 0x2d2e, 0x3c9: 0xa000, 0x3ca: 0x2d36, 0x3cb: 0xa000,+ 0x3cc: 0x2d3e, 0x3cd: 0xa000, 0x3ce: 0x2d46, 0x3d1: 0xa000,+ 0x3d2: 0x2d4e,0x3f4: 0x8102, 0x3f5: 0x9900,- 0x3fa: 0xa000, 0x3fb: 0x2d52,- 0x3fc: 0xa000, 0x3fd: 0x2d5a, 0x3fe: 0xa000, 0x3ff: 0xa000,+ 0x3fa: 0xa000, 0x3fb: 0x2d56,+ 0x3fc: 0xa000, 0x3fd: 0x2d5e, 0x3fe: 0xa000, 0x3ff: 0xa000,// Block 0x10, offset 0x400- 0x400: 0x2f93, 0x401: 0x329f, 0x402: 0x2f9d, 0x403: 0x32a9, 0x404: 0x2fa2, 0x405: 0x32ae,- 0x406: 0x2fa7, 0x407: 0x32b3, 0x408: 0x38c8, 0x409: 0x3a57, 0x40a: 0x2fc0, 0x40b: 0x32cc,- 0x40c: 0x2fca, 0x40d: 0x32d6, 0x40e: 0x2fd9, 0x40f: 0x32e5, 0x410: 0x2fcf, 0x411: 0x32db,- 0x412: 0x2fd4, 0x413: 0x32e0, 0x414: 0x38eb, 0x415: 0x3a7a, 0x416: 0x38f2, 0x417: 0x3a81,- 0x418: 0x3015, 0x419: 0x3321, 0x41a: 0x301a, 0x41b: 0x3326, 0x41c: 0x3900, 0x41d: 0x3a8f,- 0x41e: 0x301f, 0x41f: 0x332b, 0x420: 0x302e, 0x421: 0x333a, 0x422: 0x304c, 0x423: 0x3358,- 0x424: 0x305b, 0x425: 0x3367, 0x426: 0x3051, 0x427: 0x335d, 0x428: 0x3060, 0x429: 0x336c,- 0x42a: 0x3065, 0x42b: 0x3371, 0x42c: 0x30ab, 0x42d: 0x33b7, 0x42e: 0x3907, 0x42f: 0x3a96,- 0x430: 0x30b5, 0x431: 0x33c6, 0x432: 0x30bf, 0x433: 0x33d0, 0x434: 0x30c9, 0x435: 0x33da,- 0x436: 0x4756, 0x437: 0x47e7, 0x438: 0x390e, 0x439: 0x3a9d, 0x43a: 0x30e2, 0x43b: 0x33f3,- 0x43c: 0x30dd, 0x43d: 0x33ee, 0x43e: 0x30e7, 0x43f: 0x33f8,+ 0x400: 0x2f97, 0x401: 0x32a3, 0x402: 0x2fa1, 0x403: 0x32ad, 0x404: 0x2fa6, 0x405: 0x32b2,+ 0x406: 0x2fab, 0x407: 0x32b7, 0x408: 0x38cc, 0x409: 0x3a5b, 0x40a: 0x2fc4, 0x40b: 0x32d0,+ 0x40c: 0x2fce, 0x40d: 0x32da, 0x40e: 0x2fdd, 0x40f: 0x32e9, 0x410: 0x2fd3, 0x411: 0x32df,+ 0x412: 0x2fd8, 0x413: 0x32e4, 0x414: 0x38ef, 0x415: 0x3a7e, 0x416: 0x38f6, 0x417: 0x3a85,+ 0x418: 0x3019, 0x419: 0x3325, 0x41a: 0x301e, 0x41b: 0x332a, 0x41c: 0x3904, 0x41d: 0x3a93,+ 0x41e: 0x3023, 0x41f: 0x332f, 0x420: 0x3032, 0x421: 0x333e, 0x422: 0x3050, 0x423: 0x335c,+ 0x424: 0x305f, 0x425: 0x336b, 0x426: 0x3055, 0x427: 0x3361, 0x428: 0x3064, 0x429: 0x3370,+ 0x42a: 0x3069, 0x42b: 0x3375, 0x42c: 0x30af, 0x42d: 0x33bb, 0x42e: 0x390b, 0x42f: 0x3a9a,+ 0x430: 0x30b9, 0x431: 0x33ca, 0x432: 0x30c3, 0x433: 0x33d4, 0x434: 0x30cd, 0x435: 0x33de,+ 0x436: 0x475a, 0x437: 0x47eb, 0x438: 0x3912, 0x439: 0x3aa1, 0x43a: 0x30e6, 0x43b: 0x33f7,+ 0x43c: 0x30e1, 0x43d: 0x33f2, 0x43e: 0x30eb, 0x43f: 0x33fc,// Block 0x11, offset 0x440- 0x440: 0x30ec, 0x441: 0x33fd, 0x442: 0x30f1, 0x443: 0x3402, 0x444: 0x3105, 0x445: 0x3416,- 0x446: 0x310f, 0x447: 0x3420, 0x448: 0x311e, 0x449: 0x342f, 0x44a: 0x3119, 0x44b: 0x342a,- 0x44c: 0x3931, 0x44d: 0x3ac0, 0x44e: 0x393f, 0x44f: 0x3ace, 0x450: 0x3946, 0x451: 0x3ad5,- 0x452: 0x394d, 0x453: 0x3adc, 0x454: 0x314b, 0x455: 0x345c, 0x456: 0x3150, 0x457: 0x3461,- 0x458: 0x315a, 0x459: 0x346b, 0x45a: 0x4783, 0x45b: 0x4814, 0x45c: 0x3993, 0x45d: 0x3b22,- 0x45e: 0x3173, 0x45f: 0x3484, 0x460: 0x317d, 0x461: 0x348e, 0x462: 0x4792, 0x463: 0x4823,- 0x464: 0x399a, 0x465: 0x3b29, 0x466: 0x39a1, 0x467: 0x3b30, 0x468: 0x39a8, 0x469: 0x3b37,- 0x46a: 0x318c, 0x46b: 0x349d, 0x46c: 0x3196, 0x46d: 0x34ac, 0x46e: 0x31aa, 0x46f: 0x34c0,- 0x470: 0x31a5, 0x471: 0x34bb, 0x472: 0x31e6, 0x473: 0x34fc, 0x474: 0x31f5, 0x475: 0x350b,- 0x476: 0x31f0, 0x477: 0x3506, 0x478: 0x39af, 0x479: 0x3b3e, 0x47a: 0x39b6, 0x47b: 0x3b45,- 0x47c: 0x31fa, 0x47d: 0x3510, 0x47e: 0x31ff, 0x47f: 0x3515,+ 0x440: 0x30f0, 0x441: 0x3401, 0x442: 0x30f5, 0x443: 0x3406, 0x444: 0x3109, 0x445: 0x341a,+ 0x446: 0x3113, 0x447: 0x3424, 0x448: 0x3122, 0x449: 0x3433, 0x44a: 0x311d, 0x44b: 0x342e,+ 0x44c: 0x3935, 0x44d: 0x3ac4, 0x44e: 0x3943, 0x44f: 0x3ad2, 0x450: 0x394a, 0x451: 0x3ad9,+ 0x452: 0x3951, 0x453: 0x3ae0, 0x454: 0x314f, 0x455: 0x3460, 0x456: 0x3154, 0x457: 0x3465,+ 0x458: 0x315e, 0x459: 0x346f, 0x45a: 0x4787, 0x45b: 0x4818, 0x45c: 0x3997, 0x45d: 0x3b26,+ 0x45e: 0x3177, 0x45f: 0x3488, 0x460: 0x3181, 0x461: 0x3492, 0x462: 0x4796, 0x463: 0x4827,+ 0x464: 0x399e, 0x465: 0x3b2d, 0x466: 0x39a5, 0x467: 0x3b34, 0x468: 0x39ac, 0x469: 0x3b3b,+ 0x46a: 0x3190, 0x46b: 0x34a1, 0x46c: 0x319a, 0x46d: 0x34b0, 0x46e: 0x31ae, 0x46f: 0x34c4,+ 0x470: 0x31a9, 0x471: 0x34bf, 0x472: 0x31ea, 0x473: 0x3500, 0x474: 0x31f9, 0x475: 0x350f,+ 0x476: 0x31f4, 0x477: 0x350a, 0x478: 0x39b3, 0x479: 0x3b42, 0x47a: 0x39ba, 0x47b: 0x3b49,+ 0x47c: 0x31fe, 0x47d: 0x3514, 0x47e: 0x3203, 0x47f: 0x3519,// Block 0x12, offset 0x480- 0x480: 0x3204, 0x481: 0x351a, 0x482: 0x3209, 0x483: 0x351f, 0x484: 0x3218, 0x485: 0x352e,- 0x486: 0x3213, 0x487: 0x3529, 0x488: 0x321d, 0x489: 0x3538, 0x48a: 0x3222, 0x48b: 0x353d,- 0x48c: 0x3227, 0x48d: 0x3542, 0x48e: 0x3245, 0x48f: 0x3560, 0x490: 0x325e, 0x491: 0x357e,- 0x492: 0x326d, 0x493: 0x358d, 0x494: 0x3272, 0x495: 0x3592, 0x496: 0x3376, 0x497: 0x34a2,- 0x498: 0x3533, 0x499: 0x356f, 0x49b: 0x35cd,- 0x4a0: 0x4733, 0x4a1: 0x47c4, 0x4a2: 0x2f7f, 0x4a3: 0x328b,- 0x4a4: 0x3874, 0x4a5: 0x3a03, 0x4a6: 0x386d, 0x4a7: 0x39fc, 0x4a8: 0x3882, 0x4a9: 0x3a11,- 0x4aa: 0x387b, 0x4ab: 0x3a0a, 0x4ac: 0x38ba, 0x4ad: 0x3a49, 0x4ae: 0x3890, 0x4af: 0x3a1f,- 0x4b0: 0x3889, 0x4b1: 0x3a18, 0x4b2: 0x389e, 0x4b3: 0x3a2d, 0x4b4: 0x3897, 0x4b5: 0x3a26,- 0x4b6: 0x38c1, 0x4b7: 0x3a50, 0x4b8: 0x4747, 0x4b9: 0x47d8, 0x4ba: 0x2ffc, 0x4bb: 0x3308,- 0x4bc: 0x2fe8, 0x4bd: 0x32f4, 0x4be: 0x38d6, 0x4bf: 0x3a65,+ 0x480: 0x3208, 0x481: 0x351e, 0x482: 0x320d, 0x483: 0x3523, 0x484: 0x321c, 0x485: 0x3532,+ 0x486: 0x3217, 0x487: 0x352d, 0x488: 0x3221, 0x489: 0x353c, 0x48a: 0x3226, 0x48b: 0x3541,+ 0x48c: 0x322b, 0x48d: 0x3546, 0x48e: 0x3249, 0x48f: 0x3564, 0x490: 0x3262, 0x491: 0x3582,+ 0x492: 0x3271, 0x493: 0x3591, 0x494: 0x3276, 0x495: 0x3596, 0x496: 0x337a, 0x497: 0x34a6,+ 0x498: 0x3537, 0x499: 0x3573, 0x49b: 0x35d1,+ 0x4a0: 0x4737, 0x4a1: 0x47c8, 0x4a2: 0x2f83, 0x4a3: 0x328f,+ 0x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39ee, 0x4ed: 0x3b7d, 0x4ee: 0x39e7, 0x4ef: 0x3b76,- 0x4f0: 0x39f5, 0x4f1: 0x3b84, 0x4f2: 0x322c, 0x4f3: 0x3547, 0x4f4: 0x3254, 0x4f5: 0x3574,- 0x4f6: 0x324f, 0x4f7: 0x356a, 0x4f8: 0x323b, 0x4f9: 0x3556,+ 0x4c0: 0x38d3, 0x4c1: 0x3a62, 0x4c2: 0x38e8, 0x4c3: 0x3a77, 0x4c4: 0x38e1, 0x4c5: 0x3a70,+ 0x4c6: 0x38fd, 0x4c7: 0x3a8c, 0x4c8: 0x3091, 0x4c9: 0x339d, 0x4ca: 0x30a5, 0x4cb: 0x33b1,+ 0x4cc: 0x477d, 0x4cd: 0x480e, 0x4ce: 0x3136, 0x4cf: 0x3447, 0x4d0: 0x3920, 0x4d1: 0x3aaf,+ 0x4d2: 0x3919, 0x4d3: 0x3aa8, 0x4d4: 0x392e, 0x4d5: 0x3abd, 0x4d6: 0x3927, 0x4d7: 0x3ab6,+ 0x4d8: 0x3989, 0x4d9: 0x3b18, 0x4da: 0x396d, 0x4db: 0x3afc, 0x4dc: 0x3966, 0x4dd: 0x3af5,+ 0x4de: 0x397b, 0x4df: 0x3b0a, 0x4e0: 0x3974, 0x4e1: 0x3b03, 0x4e2: 0x3982, 0x4e3: 0x3b11,+ 0x4e4: 0x31e5, 0x4e5: 0x34fb, 0x4e6: 0x31c7, 0x4e7: 0x34dd, 0x4e8: 0x39e4, 0x4e9: 0x3b73,+ 0x4ea: 0x39dd, 0x4eb: 0x3b6c, 0x4ec: 0x39f2, 0x4ed: 0x3b81, 0x4ee: 0x39eb, 0x4ef: 0x3b7a,+ 0x4f0: 0x39f9, 0x4f1: 0x3b88, 0x4f2: 0x3230, 0x4f3: 0x354b, 0x4f4: 0x3258, 0x4f5: 0x3578,+ 0x4f6: 0x3253, 0x4f7: 0x356e, 0x4f8: 0x323f, 0x4f9: 0x355a,// Block 0x14, offset 0x500- 0x500: 0x4896, 0x501: 0x489c, 0x502: 0x49b0, 0x503: 0x49c8, 0x504: 0x49b8, 0x505: 0x49d0,- 0x506: 0x49c0, 0x507: 0x49d8, 0x508: 0x483c, 0x509: 0x4842, 0x50a: 0x4920, 0x50b: 0x4938,- 0x50c: 0x4928, 0x50d: 0x4940, 0x50e: 0x4930, 0x50f: 0x4948, 0x510: 0x48a8, 0x511: 0x48ae,- 0x512: 0x3db4, 0x513: 0x3dc4, 0x514: 0x3dbc, 0x515: 0x3dcc,- 0x518: 0x4848, 0x519: 0x484e, 0x51a: 0x3ce4, 0x51b: 0x3cf4, 0x51c: 0x3cec, 0x51d: 0x3cfc,- 0x520: 0x48c0, 0x521: 0x48c6, 0x522: 0x49e0, 0x523: 0x49f8,- 0x524: 0x49e8, 0x525: 0x4a00, 0x526: 0x49f0, 0x527: 0x4a08, 0x528: 0x4854, 0x529: 0x485a,- 0x52a: 0x4950, 0x52b: 0x4968, 0x52c: 0x4958, 0x52d: 0x4970, 0x52e: 0x4960, 0x52f: 0x4978,- 0x530: 0x48d8, 0x531: 0x48de, 0x532: 0x3e14, 0x533: 0x3e2c, 0x534: 0x3e1c, 0x535: 0x3e34,- 0x536: 0x3e24, 0x537: 0x3e3c, 0x538: 0x4860, 0x539: 0x4866, 0x53a: 0x3d14, 0x53b: 0x3d2c,- 0x53c: 0x3d1c, 0x53d: 0x3d34, 0x53e: 0x3d24, 0x53f: 0x3d3c,+ 0x500: 0x489a, 0x501: 0x48a0, 0x502: 0x49b4, 0x503: 0x49cc, 0x504: 0x49bc, 0x505: 0x49d4,+ 0x506: 0x49c4, 0x507: 0x49dc, 0x508: 0x4840, 0x509: 0x4846, 0x50a: 0x4924, 0x50b: 0x493c,+ 0x50c: 0x492c, 0x50d: 0x4944, 0x50e: 0x4934, 0x50f: 0x494c, 0x510: 0x48ac, 0x511: 0x48b2,+ 0x512: 0x3db8, 0x513: 0x3dc8, 0x514: 0x3dc0, 0x515: 0x3dd0,+ 0x518: 0x484c, 0x519: 0x4852, 0x51a: 0x3ce8, 0x51b: 0x3cf8, 0x51c: 0x3cf0, 0x51d: 0x3d00,+ 0x520: 0x48c4, 0x521: 0x48ca, 0x522: 0x49e4, 0x523: 0x49fc,+ 0x524: 0x49ec, 0x525: 0x4a04, 0x526: 0x49f4, 0x527: 0x4a0c, 0x528: 0x4858, 0x529: 0x485e,+ 0x52a: 0x4954, 0x52b: 0x496c, 0x52c: 0x495c, 0x52d: 0x4974, 0x52e: 0x4964, 0x52f: 0x497c,+ 0x530: 0x48dc, 0x531: 0x48e2, 0x532: 0x3e18, 0x533: 0x3e30, 0x534: 0x3e20, 0x535: 0x3e38,+ 0x536: 0x3e28, 0x537: 0x3e40, 0x538: 0x4864, 0x539: 0x486a, 0x53a: 0x3d18, 0x53b: 0x3d30,+ 0x53c: 0x3d20, 0x53d: 0x3d38, 0x53e: 0x3d28, 0x53f: 0x3d40,// Block 0x15, offset 0x540- 0x540: 0x48e4, 0x541: 0x48ea, 0x542: 0x3e44, 0x543: 0x3e54, 0x544: 0x3e4c, 0x545: 0x3e5c,- 0x548: 0x486c, 0x549: 0x4872, 0x54a: 0x3d44, 0x54b: 0x3d54,- 0x54c: 0x3d4c, 0x54d: 0x3d5c, 0x550: 0x48f6, 0x551: 0x48fc,- 0x552: 0x3e7c, 0x553: 0x3e94, 0x554: 0x3e84, 0x555: 0x3e9c, 0x556: 0x3e8c, 0x557: 0x3ea4,- 0x559: 0x4878, 0x55b: 0x3d64, 0x55d: 0x3d6c,- 0x55f: 0x3d74, 0x560: 0x490e, 0x561: 0x4914, 0x562: 0x4a10, 0x563: 0x4a28,- 0x564: 0x4a18, 0x565: 0x4a30, 0x566: 0x4a20, 0x567: 0x4a38, 0x568: 0x487e, 0x569: 0x4884,- 0x56a: 0x4980, 0x56b: 0x4998, 0x56c: 0x4988, 0x56d: 0x49a0, 0x56e: 0x4990, 0x56f: 0x49a8,- 0x570: 0x488a, 0x571: 0x43b0, 0x572: 0x368d, 0x573: 0x43b6, 0x574: 0x48b4, 0x575: 0x43bc,- 0x576: 0x369f, 0x577: 0x43c2, 0x578: 0x36bd, 0x579: 0x43c8, 0x57a: 0x36d5, 0x57b: 0x43ce,- 0x57c: 0x4902, 0x57d: 0x43d4,+ 0x540: 0x48e8, 0x541: 0x48ee, 0x542: 0x3e48, 0x543: 0x3e58, 0x544: 0x3e50, 0x545: 0x3e60,+ 0x548: 0x4870, 0x549: 0x4876, 0x54a: 0x3d48, 0x54b: 0x3d58,+ 0x54c: 0x3d50, 0x54d: 0x3d60, 0x550: 0x48fa, 0x551: 0x4900,+ 0x552: 0x3e80, 0x553: 0x3e98, 0x554: 0x3e88, 0x555: 0x3ea0, 0x556: 0x3e90, 0x557: 0x3ea8,+ 0x559: 0x487c, 0x55b: 0x3d68, 0x55d: 0x3d70,+ 0x55f: 0x3d78, 0x560: 0x4912, 0x561: 0x4918, 0x562: 0x4a14, 0x563: 0x4a2c,+ 0x564: 0x4a1c, 0x565: 0x4a34, 0x566: 0x4a24, 0x567: 0x4a3c, 0x568: 0x4882, 0x569: 0x4888,+ 0x56a: 0x4984, 0x56b: 0x499c, 0x56c: 0x498c, 0x56d: 0x49a4, 0x56e: 0x4994, 0x56f: 0x49ac,+ 0x570: 0x488e, 0x571: 0x43b4, 0x572: 0x3691, 0x573: 0x43ba, 0x574: 0x48b8, 0x575: 0x43c0,+ 0x576: 0x36a3, 0x577: 0x43c6, 0x578: 0x36c1, 0x579: 0x43cc, 0x57a: 0x36d9, 0x57b: 0x43d2,+ 0x57c: 0x4906, 0x57d: 0x43d8,// Block 0x16, offset 0x580- 0x580: 0x3d9c, 0x581: 0x3da4, 0x582: 0x4180, 0x583: 0x419e, 0x584: 0x418a, 0x585: 0x41a8,- 0x586: 0x4194, 0x587: 0x41b2, 0x588: 0x3cd4, 0x589: 0x3cdc, 0x58a: 0x40cc, 0x58b: 0x40ea,- 0x58c: 0x40d6, 0x58d: 0x40f4, 0x58e: 0x40e0, 0x58f: 0x40fe, 0x590: 0x3de4, 0x591: 0x3dec,- 0x592: 0x41bc, 0x593: 0x41da, 0x594: 0x41c6, 0x595: 0x41e4, 0x596: 0x41d0, 0x597: 0x41ee,- 0x598: 0x3d04, 0x599: 0x3d0c, 0x59a: 0x4108, 0x59b: 0x4126, 0x59c: 0x4112, 0x59d: 0x4130,- 0x59e: 0x411c, 0x59f: 0x413a, 0x5a0: 0x3ebc, 0x5a1: 0x3ec4, 0x5a2: 0x41f8, 0x5a3: 0x4216,- 0x5a4: 0x4202, 0x5a5: 0x4220, 0x5a6: 0x420c, 0x5a7: 0x422a, 0x5a8: 0x3d7c, 0x5a9: 0x3d84,- 0x5aa: 0x4144, 0x5ab: 0x4162, 0x5ac: 0x414e, 0x5ad: 0x416c, 0x5ae: 0x4158, 0x5af: 0x4176,- 0x5b0: 0x3681, 0x5b1: 0x367b, 0x5b2: 0x3d8c, 0x5b3: 0x3687, 0x5b4: 0x3d94,- 0x5b6: 0x48a2, 0x5b7: 0x3dac, 0x5b8: 0x35f1, 0x5b9: 0x35eb, 0x5ba: 0x35df, 0x5bb: 0x4380,- 0x5bc: 0x35f7, 0x5bd: 0x8100, 0x5be: 0x01d3, 0x5bf: 0xa100,+ 0x580: 0x3da0, 0x581: 0x3da8, 0x582: 0x4184, 0x583: 0x41a2, 0x584: 0x418e, 0x585: 0x41ac,+ 0x586: 0x4198, 0x587: 0x41b6, 0x588: 0x3cd8, 0x589: 0x3ce0, 0x58a: 0x40d0, 0x58b: 0x40ee,+ 0x58c: 0x40da, 0x58d: 0x40f8, 0x58e: 0x40e4, 0x58f: 0x4102, 0x590: 0x3de8, 0x591: 0x3df0,+ 0x592: 0x41c0, 0x593: 0x41de, 0x594: 0x41ca, 0x595: 0x41e8, 0x596: 0x41d4, 0x597: 0x41f2,+ 0x598: 0x3d08, 0x599: 0x3d10, 0x59a: 0x410c, 0x59b: 0x412a, 0x59c: 0x4116, 0x59d: 0x4134,+ 0x59e: 0x4120, 0x59f: 0x413e, 0x5a0: 0x3ec0, 0x5a1: 0x3ec8, 0x5a2: 0x41fc, 0x5a3: 0x421a,+ 0x5a4: 0x4206, 0x5a5: 0x4224, 0x5a6: 0x4210, 0x5a7: 0x422e, 0x5a8: 0x3d80, 0x5a9: 0x3d88,+ 0x5aa: 0x4148, 0x5ab: 0x4166, 0x5ac: 0x4152, 0x5ad: 0x4170, 0x5ae: 0x415c, 0x5af: 0x417a,+ 0x5b0: 0x3685, 0x5b1: 0x367f, 0x5b2: 0x3d90, 0x5b3: 0x368b, 0x5b4: 0x3d98,+ 0x5b6: 0x48a6, 0x5b7: 0x3db0, 0x5b8: 0x35f5, 0x5b9: 0x35ef, 0x5ba: 0x35e3, 0x5bb: 0x4384,+ 0x5bc: 0x35fb, 0x5bd: 0x8100, 0x5be: 0x01d3, 0x5bf: 0xa100,// Block 0x17, offset 0x5c0- 0x5c0: 0x8100, 0x5c1: 0x35a3, 0x5c2: 0x3dd4, 0x5c3: 0x3699, 0x5c4: 0x3ddc,- 0x5c6: 0x48cc, 0x5c7: 0x3df4, 0x5c8: 0x35fd, 0x5c9: 0x4386, 0x5ca: 0x3609, 0x5cb: 0x438c,- 0x5cc: 0x3615, 0x5cd: 0x3b8b, 0x5ce: 0x3b92, 0x5cf: 0x3b99, 0x5d0: 0x36b1, 0x5d1: 0x36ab,- 0x5d2: 0x3dfc, 0x5d3: 0x4576, 0x5d6: 0x36b7, 0x5d7: 0x3e0c,- 0x5d8: 0x362d, 0x5d9: 0x3627, 0x5da: 0x361b, 0x5db: 0x4392, 0x5dd: 0x3ba0,- 0x5de: 0x3ba7, 0x5df: 0x3bae, 0x5e0: 0x36e7, 0x5e1: 0x36e1, 0x5e2: 0x3e64, 0x5e3: 0x457e,- 0x5e4: 0x36c9, 0x5e5: 0x36cf, 0x5e6: 0x36ed, 0x5e7: 0x3e74, 0x5e8: 0x365d, 0x5e9: 0x3657,- 0x5ea: 0x364b, 0x5eb: 0x439e, 0x5ec: 0x3645, 0x5ed: 0x3597, 0x5ee: 0x437a, 0x5ef: 0x0081,- 0x5f2: 0x3eac, 0x5f3: 0x36f3, 0x5f4: 0x3eb4,- 0x5f6: 0x491a, 0x5f7: 0x3ecc, 0x5f8: 0x3639, 0x5f9: 0x4398, 0x5fa: 0x3669, 0x5fb: 0x43aa,- 0x5fc: 0x3675, 0x5fd: 0x4252, 0x5fe: 0xa100,+ 0x5c0: 0x8100, 0x5c1: 0x35a7, 0x5c2: 0x3dd8, 0x5c3: 0x369d, 0x5c4: 0x3de0,+ 0x5c6: 0x48d0, 0x5c7: 0x3df8, 0x5c8: 0x3601, 0x5c9: 0x438a, 0x5ca: 0x360d, 0x5cb: 0x4390,+ 0x5cc: 0x3619, 0x5cd: 0x3b8f, 0x5ce: 0x3b96, 0x5cf: 0x3b9d, 0x5d0: 0x36b5, 0x5d1: 0x36af,+ 0x5d2: 0x3e00, 0x5d3: 0x457a, 0x5d6: 0x36bb, 0x5d7: 0x3e10,+ 0x5d8: 0x3631, 0x5d9: 0x362b, 0x5da: 0x361f, 0x5db: 0x4396, 0x5dd: 0x3ba4,+ 0x5de: 0x3bab, 0x5df: 0x3bb2, 0x5e0: 0x36eb, 0x5e1: 0x36e5, 0x5e2: 0x3e68, 0x5e3: 0x4582,+ 0x5e4: 0x36cd, 0x5e5: 0x36d3, 0x5e6: 0x36f1, 0x5e7: 0x3e78, 0x5e8: 0x3661, 0x5e9: 0x365b,+ 0x5ea: 0x364f, 0x5eb: 0x43a2, 0x5ec: 0x3649, 0x5ed: 0x359b, 0x5ee: 0x437e, 0x5ef: 0x0081,+ 0x5f2: 0x3eb0, 0x5f3: 0x36f7, 0x5f4: 0x3eb8,+ 0x5f6: 0x491e, 0x5f7: 0x3ed0, 0x5f8: 0x363d, 0x5f9: 0x439c, 0x5fa: 0x366d, 0x5fb: 0x43ae,+ 0x5fc: 0x3679, 0x5fd: 0x4256, 0x5fe: 0xa100,// Block 0x18, offset 0x600- 0x601: 0x3c02, 0x603: 0xa000, 0x604: 0x3c09, 0x605: 0xa000,- 0x607: 0x3c10, 0x608: 0xa000, 0x609: 0x3c17,+ 0x601: 0x3c06, 0x603: 0xa000, 0x604: 0x3c0d, 0x605: 0xa000,+ 0x607: 0x3c14, 0x608: 0xa000, 0x609: 0x3c1b,0x60d: 0xa000,- 0x620: 0x2f61, 0x621: 0xa000, 0x622: 0x3c25,+ 0x620: 0x2f65, 0x621: 0xa000, 0x622: 0x3c29,0x624: 0xa000, 0x625: 0xa000,- 0x62d: 0x3c1e, 0x62e: 0x2f5c, 0x62f: 0x2f66,- 0x630: 0x3c2c, 0x631: 0x3c33, 0x632: 0xa000, 0x633: 0xa000, 0x634: 0x3c3a, 0x635: 0x3c41,- 0x636: 0xa000, 0x637: 0xa000, 0x638: 0x3c48, 0x639: 0x3c4f, 0x63a: 0xa000, 0x63b: 0xa000,+ 0x62d: 0x3c22, 0x62e: 0x2f60, 0x62f: 0x2f6a,+ 0x630: 0x3c30, 0x631: 0x3c37, 0x632: 0xa000, 0x633: 0xa000, 0x634: 0x3c3e, 0x635: 0x3c45,+ 0x636: 0xa000, 0x637: 0xa000, 0x638: 0x3c4c, 0x639: 0x3c53, 0x63a: 0xa000, 0x63b: 0xa000,0x63c: 0xa000, 0x63d: 0xa000,// Block 0x19, offset 0x640- 0x640: 0x3c56, 0x641: 0x3c5d, 0x642: 0xa000, 0x643: 0xa000, 0x644: 0x3c72, 0x645: 0x3c79,- 0x646: 0xa000, 0x647: 0xa000, 0x648: 0x3c80, 0x649: 0x3c87,+ 0x640: 0x3c5a, 0x641: 0x3c61, 0x642: 0xa000, 0x643: 0xa000, 0x644: 0x3c76, 0x645: 0x3c7d,+ 0x646: 0xa000, 0x647: 0xa000, 0x648: 0x3c84, 0x649: 0x3c8b,0x651: 0xa000,0x652: 0xa000,0x662: 0xa000,0x668: 0xa000, 0x669: 0xa000,- 0x66b: 0xa000, 0x66c: 0x3c9c, 0x66d: 0x3ca3, 0x66e: 0x3caa, 0x66f: 0x3cb1,+ 0x66b: 0xa000, 0x66c: 0x3ca0, 0x66d: 0x3ca7, 0x66e: 0x3cae, 0x66f: 0x3cb5,0x672: 0xa000, 0x673: 0xa000, 0x674: 0xa000, 0x675: 0xa000,// Block 0x1a, offset 0x6800x686: 0xa000, 0x68b: 0xa000,- 0x68c: 0x3f04, 0x68d: 0xa000, 0x68e: 0x3f0c, 0x68f: 0xa000, 0x690: 0x3f14, 0x691: 0xa000,- 0x692: 0x3f1c, 0x693: 0xa000, 0x694: 0x3f24, 0x695: 0xa000, 0x696: 0x3f2c, 0x697: 0xa000,- 0x698: 0x3f34, 0x699: 0xa000, 0x69a: 0x3f3c, 0x69b: 0xa000, 0x69c: 0x3f44, 0x69d: 0xa000,- 0x69e: 0x3f4c, 0x69f: 0xa000, 0x6a0: 0x3f54, 0x6a1: 0xa000, 0x6a2: 0x3f5c,- 0x6a4: 0xa000, 0x6a5: 0x3f64, 0x6a6: 0xa000, 0x6a7: 0x3f6c, 0x6a8: 0xa000, 0x6a9: 0x3f74,+ 0x68c: 0x3f08, 0x68d: 0xa000, 0x68e: 0x3f10, 0x68f: 0xa000, 0x690: 0x3f18, 0x691: 0xa000,+ 0x692: 0x3f20, 0x693: 0xa000, 0x694: 0x3f28, 0x695: 0xa000, 0x696: 0x3f30, 0x697: 0xa000,+ 0x698: 0x3f38, 0x699: 0xa000, 0x69a: 0x3f40, 0x69b: 0xa000, 0x69c: 0x3f48, 0x69d: 0xa000,+ 0x69e: 0x3f50, 0x69f: 0xa000, 0x6a0: 0x3f58, 0x6a1: 0xa000, 0x6a2: 0x3f60,+ 0x6a4: 0xa000, 0x6a5: 0x3f68, 0x6a6: 0xa000, 0x6a7: 0x3f70, 0x6a8: 0xa000, 0x6a9: 0x3f78,0x6af: 0xa000,- 0x6b0: 0x3f7c, 0x6b1: 0x3f84, 0x6b2: 0xa000, 0x6b3: 0x3f8c, 0x6b4: 0x3f94, 0x6b5: 0xa000,- 0x6b6: 0x3f9c, 0x6b7: 0x3fa4, 0x6b8: 0xa000, 0x6b9: 0x3fac, 0x6ba: 0x3fb4, 0x6bb: 0xa000,- 0x6bc: 0x3fbc, 0x6bd: 0x3fc4,+ 0x6b0: 0x3f80, 0x6b1: 0x3f88, 0x6b2: 0xa000, 0x6b3: 0x3f90, 0x6b4: 0x3f98, 0x6b5: 0xa000,+ 0x6b6: 0x3fa0, 0x6b7: 0x3fa8, 0x6b8: 0xa000, 0x6b9: 0x3fb0, 0x6ba: 0x3fb8, 0x6bb: 0xa000,+ 0x6bc: 0x3fc0, 0x6bd: 0x3fc8,// Block 0x1b, offset 0x6c0- 0x6d4: 0x3efc,+ 0x6d4: 0x3f00,0x6d9: 0x9903, 0x6da: 0x9903, 0x6db: 0x8100, 0x6dc: 0x8100, 0x6dd: 0xa000,- 0x6de: 0x3fcc,+ 0x6de: 0x3fd0,0x6e6: 0xa000,- 0x6eb: 0xa000, 0x6ec: 0x3fdc, 0x6ed: 0xa000, 0x6ee: 0x3fe4, 0x6ef: 0xa000,- 0x6f0: 0x3fec, 0x6f1: 0xa000, 0x6f2: 0x3ff4, 0x6f3: 0xa000, 0x6f4: 0x3ffc, 0x6f5: 0xa000,- 0x6f6: 0x4004, 0x6f7: 0xa000, 0x6f8: 0x400c, 0x6f9: 0xa000, 0x6fa: 0x4014, 0x6fb: 0xa000,- 0x6fc: 0x401c, 0x6fd: 0xa000, 0x6fe: 0x4024, 0x6ff: 0xa000,+ 0x6eb: 0xa000, 0x6ec: 0x3fe0, 0x6ed: 0xa000, 0x6ee: 0x3fe8, 0x6ef: 0xa000,+ 0x6f0: 0x3ff0, 0x6f1: 0xa000, 0x6f2: 0x3ff8, 0x6f3: 0xa000, 0x6f4: 0x4000, 0x6f5: 0xa000,+ 0x6f6: 0x4008, 0x6f7: 0xa000, 0x6f8: 0x4010, 0x6f9: 0xa000, 0x6fa: 0x4018, 0x6fb: 0xa000,+ 0x6fc: 0x4020, 0x6fd: 0xa000, 0x6fe: 0x4028, 0x6ff: 0xa000,// Block 0x1c, offset 0x700- 0x700: 0x402c, 0x701: 0xa000, 0x702: 0x4034, 0x704: 0xa000, 0x705: 0x403c,- 0x706: 0xa000, 0x707: 0x4044, 0x708: 0xa000, 0x709: 0x404c,- 0x70f: 0xa000, 0x710: 0x4054, 0x711: 0x405c,- 0x712: 0xa000, 0x713: 0x4064, 0x714: 0x406c, 0x715: 0xa000, 0x716: 0x4074, 0x717: 0x407c,- 0x718: 0xa000, 0x719: 0x4084, 0x71a: 0x408c, 0x71b: 0xa000, 0x71c: 0x4094, 0x71d: 0x409c,+ 0x700: 0x4030, 0x701: 0xa000, 0x702: 0x4038, 0x704: 0xa000, 0x705: 0x4040,+ 0x706: 0xa000, 0x707: 0x4048, 0x708: 0xa000, 0x709: 0x4050,+ 0x70f: 0xa000, 0x710: 0x4058, 0x711: 0x4060,+ 0x712: 0xa000, 0x713: 0x4068, 0x714: 0x4070, 0x715: 0xa000, 0x716: 0x4078, 0x717: 0x4080,+ 0x718: 0xa000, 0x719: 0x4088, 0x71a: 0x4090, 0x71b: 0xa000, 0x71c: 0x4098, 0x71d: 0x40a0,0x72f: 0xa000,- 0x730: 0xa000, 0x731: 0xa000, 0x732: 0xa000, 0x734: 0x3fd4,- 0x737: 0x40a4, 0x738: 0x40ac, 0x739: 0x40b4, 0x73a: 0x40bc,- 0x73d: 0xa000, 0x73e: 0x40c4,+ 0x730: 0xa000, 0x731: 0xa000, 0x732: 0xa000, 0x734: 0x3fd8,+ 0x737: 0x40a8, 0x738: 0x40b0, 0x739: 0x40b8, 0x73a: 0x40c0,+ 0x73d: 0xa000, 0x73e: 0x40c8,// Block 0x1d, offset 0x7400x740: 0x1377, 0x741: 0x0cfb, 0x742: 0x13d3, 0x743: 0x139f, 0x744: 0x0e57, 0x745: 0x06eb,- 0x746: 0x08df, 0x747: 0x1627, 0x748: 0x1627, 0x749: 0x0a0b, 0x74a: 0x145b, 0x74b: 0x0943,+ 0x746: 0x08df, 0x747: 0x162b, 0x748: 0x162b, 0x749: 0x0a0b, 0x74a: 0x145f, 0x74b: 0x0943,0x74c: 0x0a07, 0x74d: 0x0bef, 0x74e: 0x0fcf, 0x74f: 0x115f, 0x750: 0x1297, 0x751: 0x12d3,0x752: 0x1307, 0x753: 0x141b, 0x754: 0x0d73, 0x755: 0x0dff, 0x756: 0x0eab, 0x757: 0x0f43,- 0x758: 0x125f, 0x759: 0x1443, 0x75a: 0x156f, 0x75b: 0x070f, 0x75c: 0x08b3, 0x75d: 0x0d87,- 0x75e: 0x0ecf, 0x75f: 0x1293, 0x760: 0x15bf, 0x761: 0x0ab3, 0x762: 0x0e77, 0x763: 0x1283,+ 0x758: 0x125f, 0x759: 0x1447, 0x75a: 0x1573, 0x75b: 0x070f, 0x75c: 0x08b3, 0x75d: 0x0d87,+ 0x75e: 0x0ecf, 0x75f: 0x1293, 0x760: 0x15c3, 0x761: 0x0ab3, 0x762: 0x0e77, 0x763: 0x1283,0x764: 0x1317, 0x765: 0x0c23, 0x766: 0x11bb, 0x767: 0x12df, 0x768: 0x0b1f, 0x769: 0x0d0f,0x76a: 0x0e17, 0x76b: 0x0f1b, 0x76c: 0x1427, 0x76d: 0x074f, 0x76e: 0x07e7, 0x76f: 0x0853,0x770: 0x0c8b, 0x771: 0x0d7f, 0x772: 0x0ecb, 0x773: 0x0fef, 0x774: 0x1177, 0x775: 0x128b,- 0x776: 0x12a3, 0x777: 0x13c7, 0x778: 0x14eb, 0x779: 0x159f, 0x77a: 0x15bb, 0x77b: 0x102b,- 0x77c: 0x106b, 0x77d: 0x1123, 0x77e: 0x1243, 0x77f: 0x1477,+ 0x776: 0x12a3, 0x777: 0x13c7, 0x778: 0x14ef, 0x779: 0x15a3, 0x77a: 0x15bf, 0x77b: 0x102b,+ 0x77c: 0x106b, 0x77d: 0x1123, 0x77e: 0x1243, 0x77f: 0x147b,// Block 0x1e, offset 0x780- 0x780: 0x15c7, 0x781: 0x134b, 0x782: 0x09c7, 0x783: 0x0b3b, 0x784: 0x10db, 0x785: 0x119b,- 0x786: 0x0eff, 0x787: 0x1033, 0x788: 0x1397, 0x789: 0x14e3, 0x78a: 0x09c3, 0x78b: 0x0a8f,- 0x78c: 0x0d77, 0x78d: 0x0e2b, 0x78e: 0x0e5f, 0x78f: 0x1113, 0x790: 0x113b, 0x791: 0x14a3,+ 0x780: 0x15cb, 0x781: 0x134b, 0x782: 0x09c7, 0x783: 0x0b3b, 0x784: 0x10db, 0x785: 0x119b,+ 0x786: 0x0eff, 0x787: 0x1033, 0x788: 0x1397, 0x789: 0x14e7, 0x78a: 0x09c3, 0x78b: 0x0a8f,+ 0x78c: 0x0d77, 0x78d: 0x0e2b, 0x78e: 0x0e5f, 0x78f: 0x1113, 0x790: 0x113b, 0x791: 0x14a7,0x792: 0x084f, 0x793: 0x11a7, 0x794: 0x07f3, 0x795: 0x07ef, 0x796: 0x1097, 0x797: 0x1127,- 0x798: 0x125b, 0x799: 0x14ab, 0x79a: 0x1367, 0x79b: 0x0c27, 0x79c: 0x0d73, 0x79d: 0x1357,+ 0x798: 0x125b, 0x799: 0x14af, 0x79a: 0x1367, 0x79b: 0x0c27, 0x79c: 0x0d73, 0x79d: 0x1357,0x79e: 0x06f7, 0x79f: 0x0a63, 0x7a0: 0x0b93, 0x7a1: 0x0f2f, 0x7a2: 0x0faf, 0x7a3: 0x0873,0x7a4: 0x103b, 0x7a5: 0x075f, 0x7a6: 0x0b77, 0x7a7: 0x06d7, 0x7a8: 0x0deb, 0x7a9: 0x0ca3,0x7aa: 0x110f, 0x7ab: 0x08c7, 0x7ac: 0x09b3, 0x7ad: 0x0ffb, 0x7ae: 0x1263, 0x7af: 0x133b,0x7b0: 0x0db7, 0x7b1: 0x13f7, 0x7b2: 0x0de3, 0x7b3: 0x0c37, 0x7b4: 0x121b, 0x7b5: 0x0c57,0x7b6: 0x0fab, 0x7b7: 0x072b, 0x7b8: 0x07a7, 0x7b9: 0x07eb, 0x7ba: 0x0d53, 0x7bb: 0x10fb,- 0x7bc: 0x11f3, 0x7bd: 0x1347, 0x7be: 0x1457, 0x7bf: 0x085b,+ 0x7bc: 0x11f3, 0x7bd: 0x1347, 0x7be: 0x145b, 0x7bf: 0x085b,// Block 0x1f, offset 0x7c00x7c0: 0x090f, 0x7c1: 0x0a17, 0x7c2: 0x0b2f, 0x7c3: 0x0cbf, 0x7c4: 0x0e7b, 0x7c5: 0x103f,- 0x7c6: 0x1493, 0x7c7: 0x1577, 0x7c8: 0x15cb, 0x7c9: 0x15e3, 0x7ca: 0x0837, 0x7cb: 0x0cf3,+ 0x7c6: 0x1497, 0x7c7: 0x157b, 0x7c8: 0x15cf, 0x7c9: 0x15e7, 0x7ca: 0x0837, 0x7cb: 0x0cf3,0x7cc: 0x0da3, 0x7cd: 0x13eb, 0x7ce: 0x0afb, 0x7cf: 0x0bd7, 0x7d0: 0x0bf3, 0x7d1: 0x0c83,0x7d2: 0x0e6b, 0x7d3: 0x0eb7, 0x7d4: 0x0f67, 0x7d5: 0x108b, 0x7d6: 0x112f, 0x7d7: 0x1193,- 0x7d8: 0x13db, 0x7d9: 0x126b, 0x7da: 0x1403, 0x7db: 0x147b, 0x7dc: 0x080f, 0x7dd: 0x083b,+ 0x7d8: 0x13db, 0x7d9: 0x126b, 0x7da: 0x1403, 0x7db: 0x147f, 0x7dc: 0x080f, 0x7dd: 0x083b,0x7de: 0x0923, 0x7df: 0x0ea7, 0x7e0: 0x12f3, 0x7e1: 0x133b, 0x7e2: 0x0b1b, 0x7e3: 0x0b8b,0x7e4: 0x0c4f, 0x7e5: 0x0daf, 0x7e6: 0x10d7, 0x7e7: 0x0f23, 0x7e8: 0x073b, 0x7e9: 0x097f,0x7ea: 0x0a63, 0x7eb: 0x0ac7, 0x7ec: 0x0b97, 0x7ed: 0x0f3f, 0x7ee: 0x0f5b, 0x7ef: 0x116b,- 0x7f0: 0x118b, 0x7f1: 0x145f, 0x7f2: 0x14df, 0x7f3: 0x14ef, 0x7f4: 0x152b, 0x7f5: 0x0753,- 0x7f6: 0x107f, 0x7f7: 0x144b, 0x7f8: 0x14c7, 0x7f9: 0x0baf, 0x7fa: 0x0717, 0x7fb: 0x0777,+ 0x7f0: 0x118b, 0x7f1: 0x1463, 0x7f2: 0x14e3, 0x7f3: 0x14f3, 0x7f4: 0x152f, 0x7f5: 0x0753,+ 0x7f6: 0x107f, 0x7f7: 0x144f, 0x7f8: 0x14cb, 0x7f9: 0x0baf, 0x7fa: 0x0717, 0x7fb: 0x0777,0x7fc: 0x0a67, 0x7fd: 0x0a87, 0x7fe: 0x0caf, 0x7ff: 0x0d73,// Block 0x20, offset 0x800- 0x800: 0x0ec3, 0x801: 0x0fcb, 0x802: 0x1277, 0x803: 0x1417, 0x804: 0x161f, 0x805: 0x0ce3,- 0x806: 0x149f, 0x807: 0x0833, 0x808: 0x0d2f, 0x809: 0x0d3b, 0x80a: 0x0e0f, 0x80b: 0x0e47,- 0x80c: 0x0f4b, 0x80d: 0x0fa7, 0x80e: 0x1027, 0x80f: 0x110b, 0x810: 0x1537, 0x811: 0x07af,- 0x812: 0x0c03, 0x813: 0x14af, 0x814: 0x0767, 0x815: 0x0aab, 0x816: 0x0e2f, 0x817: 0x13df,- 0x818: 0x0b67, 0x819: 0x0bb7, 0x81a: 0x0d43, 0x81b: 0x0f2f, 0x81c: 0x14b7, 0x81d: 0x0817,+ 0x800: 0x0ec3, 0x801: 0x0fcb, 0x802: 0x1277, 0x803: 0x1417, 0x804: 0x1623, 0x805: 0x0ce3,+ 0x806: 0x14a3, 0x807: 0x0833, 0x808: 0x0d2f, 0x809: 0x0d3b, 0x80a: 0x0e0f, 0x80b: 0x0e47,+ 0x80c: 0x0f4b, 0x80d: 0x0fa7, 0x80e: 0x1027, 0x80f: 0x110b, 0x810: 0x153b, 0x811: 0x07af,+ 0x812: 0x0c03, 0x813: 0x14b3, 0x814: 0x0767, 0x815: 0x0aab, 0x816: 0x0e2f, 0x817: 0x13df,+ 0x818: 0x0b67, 0x819: 0x0bb7, 0x81a: 0x0d43, 0x81b: 0x0f2f, 0x81c: 0x14bb, 0x81d: 0x0817,0x81e: 0x08ff, 0x81f: 0x0a97, 0x820: 0x0cd3, 0x821: 0x0d1f, 0x822: 0x0d5f, 0x823: 0x0df3,- 0x824: 0x0f47, 0x825: 0x0fbb, 0x826: 0x1157, 0x827: 0x12f7, 0x828: 0x1303, 0x829: 0x1453,- 0x82a: 0x14d3, 0x82b: 0x0883, 0x82c: 0x0e4b, 0x82d: 0x0903, 0x82e: 0x0ec7, 0x82f: 0x0f6b,- 0x830: 0x1287, 0x831: 0x14bb, 0x832: 0x15a7, 0x833: 0x15cf, 0x834: 0x0d37, 0x835: 0x0e27,+ 0x824: 0x0f47, 0x825: 0x0fbb, 0x826: 0x1157, 0x827: 0x12f7, 0x828: 0x1303, 0x829: 0x1457,+ 0x82a: 0x14d7, 0x82b: 0x0883, 0x82c: 0x0e4b, 0x82d: 0x0903, 0x82e: 0x0ec7, 0x82f: 0x0f6b,+ 0x830: 0x1287, 0x831: 0x14bf, 0x832: 0x15ab, 0x833: 0x15d3, 0x834: 0x0d37, 0x835: 0x0e27,0x836: 0x11c3, 0x837: 0x10b7, 0x838: 0x10c3, 0x839: 0x10e7, 0x83a: 0x0f17, 0x83b: 0x0e9f,0x83c: 0x1363, 0x83d: 0x0733, 0x83e: 0x122b, 0x83f: 0x081b,// Block 0x21, offset 0x8400x840: 0x080b, 0x841: 0x0b0b, 0x842: 0x0c2b, 0x843: 0x10f3, 0x844: 0x0a53, 0x845: 0x0e03,- 0x846: 0x0cef, 0x847: 0x13e7, 0x848: 0x12e7, 0x849: 0x14a7, 0x84a: 0x1323, 0x84b: 0x0b27,+ 0x846: 0x0cef, 0x847: 0x13e7, 0x848: 0x12e7, 0x849: 0x14ab, 0x84a: 0x1323, 0x84b: 0x0b27,0x84c: 0x0787, 0x84d: 0x095b, 0x850: 0x09af,0x852: 0x0cdf, 0x855: 0x07f7, 0x856: 0x0f1f, 0x857: 0x0fe3,- 0x858: 0x1047, 0x859: 0x1063, 0x85a: 0x1067, 0x85b: 0x107b, 0x85c: 0x14f7, 0x85d: 0x10eb,+ 0x858: 0x1047, 0x859: 0x1063, 0x85a: 0x1067, 0x85b: 0x107b, 0x85c: 0x14fb, 0x85d: 0x10eb,0x85e: 0x116f, 0x860: 0x128f, 0x862: 0x1353,0x865: 0x1407, 0x866: 0x1433,- 0x86a: 0x154b, 0x86b: 0x154f, 0x86c: 0x1553, 0x86d: 0x15b7, 0x86e: 0x142b, 0x86f: 0x14c3,+ 0x86a: 0x154f, 0x86b: 0x1553, 0x86c: 0x1557, 0x86d: 0x15bb, 0x86e: 0x142b, 0x86f: 0x14c7,0x870: 0x0757, 0x871: 0x077b, 0x872: 0x078f, 0x873: 0x084b, 0x874: 0x0857, 0x875: 0x0897,0x876: 0x094b, 0x877: 0x0967, 0x878: 0x096f, 0x879: 0x09ab, 0x87a: 0x09b7, 0x87b: 0x0a93,0x87c: 0x0a9b, 0x87d: 0x0ba3, 0x87e: 0x0bcb, 0x87f: 0x0bd3,@@ -3277,8 +3279,8 @@ var nfcValues = [2944]uint16{0x892: 0x1073, 0x893: 0x1077, 0x894: 0x109b, 0x895: 0x10af, 0x896: 0x10cb, 0x897: 0x112f,0x898: 0x1137, 0x899: 0x113f, 0x89a: 0x1153, 0x89b: 0x117b, 0x89c: 0x11cb, 0x89d: 0x11ff,0x89e: 0x11ff, 0x89f: 0x1267, 0x8a0: 0x130f, 0x8a1: 0x1327, 0x8a2: 0x135b, 0x8a3: 0x135f,- 0x8a4: 0x13a3, 0x8a5: 0x13a7, 0x8a6: 0x13ff, 0x8a7: 0x1407, 0x8a8: 0x14d7, 0x8a9: 0x151b,- 0x8aa: 0x1533, 0x8ab: 0x0b9b, 0x8ac: 0x171a, 0x8ad: 0x11e3,+ 0x8a4: 0x13a3, 0x8a5: 0x13a7, 0x8a6: 0x13ff, 0x8a7: 0x1407, 0x8a8: 0x14db, 0x8a9: 0x151f,+ 0x8aa: 0x1537, 0x8ab: 0x0b9b, 0x8ac: 0x171e, 0x8ad: 0x11e3,0x8b0: 0x06df, 0x8b1: 0x07e3, 0x8b2: 0x07a3, 0x8b3: 0x074b, 0x8b4: 0x078b, 0x8b5: 0x07b7,0x8b6: 0x0847, 0x8b7: 0x0863, 0x8b8: 0x094b, 0x8b9: 0x0937, 0x8ba: 0x0947, 0x8bb: 0x0963,0x8bc: 0x09af, 0x8bd: 0x09bf, 0x8be: 0x0a03, 0x8bf: 0x0a0f,@@ -3295,113 +3297,113 @@ var nfcValues = [2944]uint16{0x8f6: 0x1313, 0x8f7: 0x131f, 0x8f8: 0x1327, 0x8f9: 0x133f, 0x8fa: 0x1353, 0x8fb: 0x1343,0x8fc: 0x135b, 0x8fd: 0x1357, 0x8fe: 0x134f, 0x8ff: 0x135f,// Block 0x24, offset 0x900- 0x900: 0x136b, 0x901: 0x13a7, 0x902: 0x13e3, 0x903: 0x1413, 0x904: 0x1447, 0x905: 0x1467,- 0x906: 0x14b3, 0x907: 0x14d7, 0x908: 0x14f7, 0x909: 0x150b, 0x90a: 0x151b, 0x90b: 0x1527,- 0x90c: 0x1533, 0x90d: 0x1587, 0x90e: 0x1627, 0x90f: 0x16b1, 0x910: 0x16ac, 0x911: 0x16de,- 0x912: 0x0607, 0x913: 0x062f, 0x914: 0x0633, 0x915: 0x1760, 0x916: 0x178d, 0x917: 0x1805,- 0x918: 0x1613, 0x919: 0x1623,+ 0x900: 0x136b, 0x901: 0x13a7, 0x902: 0x13e3, 0x903: 0x1413, 0x904: 0x144b, 0x905: 0x146b,+ 0x906: 0x14b7, 0x907: 0x14db, 0x908: 0x14fb, 0x909: 0x150f, 0x90a: 0x151f, 0x90b: 0x152b,+ 0x90c: 0x1537, 0x90d: 0x158b, 0x90e: 0x162b, 0x90f: 0x16b5, 0x910: 0x16b0, 0x911: 0x16e2,+ 0x912: 0x0607, 0x913: 0x062f, 0x914: 0x0633, 0x915: 0x1764, 0x916: 0x1791, 0x917: 0x1809,+ 0x918: 0x1617, 0x919: 0x1627,// Block 0x25, offset 0x940- 0x940: 0x06fb, 0x941: 0x06f3, 0x942: 0x0703, 0x943: 0x1643, 0x944: 0x0747, 0x945: 0x0757,+ 0x940: 0x06fb, 0x941: 0x06f3, 0x942: 0x0703, 0x943: 0x1647, 0x944: 0x0747, 0x945: 0x0757,0x946: 0x075b, 0x947: 0x0763, 0x948: 0x076b, 0x949: 0x076f, 0x94a: 0x077b, 0x94b: 0x0773,- 0x94c: 0x05b3, 0x94d: 0x1657, 0x94e: 0x078f, 0x94f: 0x0793, 0x950: 0x0797, 0x951: 0x07b3,- 0x952: 0x1648, 0x953: 0x05b7, 0x954: 0x079f, 0x955: 0x07bf, 0x956: 0x1652, 0x957: 0x07cf,- 0x958: 0x07d7, 0x959: 0x0737, 0x95a: 0x07df, 0x95b: 0x07e3, 0x95c: 0x182d, 0x95d: 0x07ff,+ 0x94c: 0x05b3, 0x94d: 0x165b, 0x94e: 0x078f, 0x94f: 0x0793, 0x950: 0x0797, 0x951: 0x07b3,+ 0x952: 0x164c, 0x953: 0x05b7, 0x954: 0x079f, 0x955: 0x07bf, 0x956: 0x1656, 0x957: 0x07cf,+ 0x958: 0x07d7, 0x959: 0x0737, 0x95a: 0x07df, 0x95b: 0x07e3, 0x95c: 0x1831, 0x95d: 0x07ff,0x95e: 0x0807, 0x95f: 0x05bf, 0x960: 0x081f, 0x961: 0x0823, 0x962: 0x082b, 0x963: 0x082f,0x964: 0x05c3, 0x965: 0x0847, 0x966: 0x084b, 0x967: 0x0857, 0x968: 0x0863, 0x969: 0x0867,0x96a: 0x086b, 0x96b: 0x0873, 0x96c: 0x0893, 0x96d: 0x0897, 0x96e: 0x089f, 0x96f: 0x08af,- 0x970: 0x08b7, 0x971: 0x08bb, 0x972: 0x08bb, 0x973: 0x08bb, 0x974: 0x1666, 0x975: 0x0e93,- 0x976: 0x08cf, 0x977: 0x08d7, 0x978: 0x166b, 0x979: 0x08e3, 0x97a: 0x08eb, 0x97b: 0x08f3,+ 0x970: 0x08b7, 0x971: 0x08bb, 0x972: 0x08bb, 0x973: 0x08bb, 0x974: 0x166a, 0x975: 0x0e93,+ 0x976: 0x08cf, 0x977: 0x08d7, 0x978: 0x166f, 0x979: 0x08e3, 0x97a: 0x08eb, 0x97b: 0x08f3,0x97c: 0x091b, 0x97d: 0x0907, 0x97e: 0x0913, 0x97f: 0x0917,// Block 0x26, offset 0x9800x980: 0x091f, 0x981: 0x0927, 0x982: 0x092b, 0x983: 0x0933, 0x984: 0x093b, 0x985: 0x093f,0x986: 0x093f, 0x987: 0x0947, 0x988: 0x094f, 0x989: 0x0953, 0x98a: 0x095f, 0x98b: 0x0983,0x98c: 0x0967, 0x98d: 0x0987, 0x98e: 0x096b, 0x98f: 0x0973, 0x990: 0x080b, 0x991: 0x09cf,0x992: 0x0997, 0x993: 0x099b, 0x994: 0x099f, 0x995: 0x0993, 0x996: 0x09a7, 0x997: 0x09a3,- 0x998: 0x09bb, 0x999: 0x1670, 0x99a: 0x09d7, 0x99b: 0x09db, 0x99c: 0x09e3, 0x99d: 0x09ef,- 0x99e: 0x09f7, 0x99f: 0x0a13, 0x9a0: 0x1675, 0x9a1: 0x167a, 0x9a2: 0x0a1f, 0x9a3: 0x0a23,+ 0x998: 0x09bb, 0x999: 0x1674, 0x99a: 0x09d7, 0x99b: 0x09db, 0x99c: 0x09e3, 0x99d: 0x09ef,+ 0x99e: 0x09f7, 0x99f: 0x0a13, 0x9a0: 0x1679, 0x9a1: 0x167e, 0x9a2: 0x0a1f, 0x9a3: 0x0a23,0x9a4: 0x0a27, 0x9a5: 0x0a1b, 0x9a6: 0x0a2f, 0x9a7: 0x05c7, 0x9a8: 0x05cb, 0x9a9: 0x0a37,- 0x9aa: 0x0a3f, 0x9ab: 0x0a3f, 0x9ac: 0x167f, 0x9ad: 0x0a5b, 0x9ae: 0x0a5f, 0x9af: 0x0a63,- 0x9b0: 0x0a6b, 0x9b1: 0x1684, 0x9b2: 0x0a73, 0x9b3: 0x0a77, 0x9b4: 0x0b4f, 0x9b5: 0x0a7f,- 0x9b6: 0x05cf, 0x9b7: 0x0a8b, 0x9b8: 0x0a9b, 0x9b9: 0x0aa7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b, 0xa2f: 0x0d8f,+ 0xa30: 0x16f1, 0xa31: 0x0d93, 0xa32: 0x060f, 0xa33: 0x0d9f, 0xa34: 0x0dab, 0xa35: 0x0db7,+ 0xa36: 0x0dbb, 0xa37: 0x16f6, 0xa38: 0x168d, 0xa39: 0x16fb, 0xa3a: 0x0ddb, 0xa3b: 0x1700,0xa3c: 0x0de7, 0xa3d: 0x0def, 0xa3e: 0x0ddf, 0xa3f: 0x0dfb,// Block 0x29, offset 0xa400xa40: 0x0e0b, 0xa41: 0x0e1b, 0xa42: 0x0e0f, 0xa43: 0x0e13, 0xa44: 0x0e1f, 0xa45: 0x0e23,- 0xa46: 0x1701, 0xa47: 0x0e07, 0xa48: 0x0e3b, 0xa49: 0x0e3f, 0xa4a: 0x0613, 0xa4b: 0x0e53,- 0xa4c: 0x0e4f, 0xa4d: 0x1706, 0xa4e: 0x0e33, 0xa4f: 0x0e6f, 0xa50: 0x170b, 0xa51: 0x1710,+ 0xa46: 0x1705, 0xa47: 0x0e07, 0xa48: 0x0e3b, 0xa49: 0x0e3f, 0xa4a: 0x0613, 0xa4b: 0x0e53,+ 0xa4c: 0x0e4f, 0xa4d: 0x170a, 0xa4e: 0x0e33, 0xa4f: 0x0e6f, 0xa50: 0x170f, 0xa51: 0x1714,0xa52: 0x0e73, 0xa53: 0x0e87, 0xa54: 0x0e83, 0xa55: 0x0e7f, 0xa56: 0x0617, 0xa57: 0x0e8b,- 0xa58: 0x0e9b, 0xa59: 0x0e97, 0xa5a: 0x0ea3, 0xa5b: 0x164d, 0xa5c: 0x0eb3, 0xa5d: 0x1715,- 0xa5e: 0x0ebf, 0xa5f: 0x171f, 0xa60: 0x0ed3, 0xa61: 0x0edf, 0xa62: 0x0ef3, 0xa63: 0x1724,- 0xa64: 0x0f07, 0xa65: 0x0f0b, 0xa66: 0x1729, 0xa67: 0x172e, 0xa68: 0x0f27, 0xa69: 0x0f37,+ 0xa58: 0x0e9b, 0xa59: 0x0e97, 0xa5a: 0x0ea3, 0xa5b: 0x1651, 0xa5c: 0x0eb3, 0xa5d: 0x1719,+ 0xa5e: 0x0ebf, 0xa5f: 0x1723, 0xa60: 0x0ed3, 0xa61: 0x0edf, 0xa62: 0x0ef3, 0xa63: 0x1728,+ 0xa64: 0x0f07, 0xa65: 0x0f0b, 0xa66: 0x172d, 0xa67: 0x1732, 0xa68: 0x0f27, 0xa69: 0x0f37,0xa6a: 0x061b, 0xa6b: 0x0f3b, 0xa6c: 0x061f, 0xa6d: 0x061f, 0xa6e: 0x0f53, 0xa6f: 0x0f57,- 0xa70: 0x0f5f, 0xa71: 0x0f63, 0xa72: 0x0f6f, 0xa73: 0x0623, 0xa74: 0x0f87, 0xa75: 0x1733,- 0xa76: 0x0fa3, 0xa77: 0x1738, 0xa78: 0x0faf, 0xa79: 0x169d, 0xa7a: 0x0fbf, 0xa7b: 0x173d,- 0xa7c: 0x1742, 0xa7d: 0x1747, 0xa7e: 0x0627, 0xa7f: 0x062b,+ 0xa70: 0x0f5f, 0xa71: 0x0f63, 0xa72: 0x0f6f, 0xa73: 0x0623, 0xa74: 0x0f87, 0xa75: 0x1737,+ 0xa76: 0x0fa3, 0xa77: 0x173c, 0xa78: 0x0faf, 0xa79: 0x16a1, 0xa7a: 0x0fbf, 0xa7b: 0x1741,+ 0xa7c: 0x1746, 0xa7d: 0x174b, 0xa7e: 0x0627, 0xa7f: 0x062b,// Block 0x2a, offset 0xa80- 0xa80: 0x0ff7, 0xa81: 0x1751, 0xa82: 0x174c, 0xa83: 0x1756, 0xa84: 0x175b, 0xa85: 0x0fff,+ 0xa80: 0x0ff7, 0xa81: 0x1755, 0xa82: 0x1750, 0xa83: 0x175a, 0xa84: 0x175f, 0xa85: 0x0fff,0xa86: 0x1003, 0xa87: 0x1003, 0xa88: 0x100b, 0xa89: 0x0633, 0xa8a: 0x100f, 0xa8b: 0x0637,- 0xa8c: 0x063b, 0xa8d: 0x1765, 0xa8e: 0x1023, 0xa8f: 0x102b, 0xa90: 0x1037, 0xa91: 0x063f,- 0xa92: 0x176a, 0xa93: 0x105b, 0xa94: 0x176f, 0xa95: 0x1774, 0xa96: 0x107b, 0xa97: 0x1093,- 0xa98: 0x0643, 0xa99: 0x109b, 0xa9a: 0x109f, 0xa9b: 0x10a3, 0xa9c: 0x1779, 0xa9d: 0x177e,- 0xa9e: 0x177e, 0xa9f: 0x10bb, 0xaa0: 0x0647, 0xaa1: 0x1783, 0xaa2: 0x10cf, 0xaa3: 0x10d3,- 0xaa4: 0x064b, 0xaa5: 0x1788, 0xaa6: 0x10ef, 0xaa7: 0x064f, 0xaa8: 0x10ff, 0xaa9: 0x10f7,- 0xaaa: 0x1107, 0xaab: 0x1792, 0xaac: 0x111f, 0xaad: 0x0653, 0xaae: 0x112b, 0xaaf: 0x1133,- 0xab0: 0x1143, 0xab1: 0x0657, 0xab2: 0x179c, 0xab3: 0x17a1, 0xab4: 0x065b, 0xab5: 0x17a6,- 0xab6: 0x115b, 0xab7: 0x17ab, 0xab8: 0x1167, 0xab9: 0x1173, 0xaba: 0x117b, 0xabb: 0x17b0,- 0xabc: 0x17b5, 0xabd: 0x118f, 0xabe: 0x17ba, 0xabf: 0x1197,+ 0xa8c: 0x063b, 0xa8d: 0x1769, 0xa8e: 0x1023, 0xa8f: 0x102b, 0xa90: 0x1037, 0xa91: 0x063f,+ 0xa92: 0x176e, 0xa93: 0x105b, 0xa94: 0x1773, 0xa95: 0x1778, 0xa96: 0x107b, 0xa97: 0x1093,+ 0xa98: 0x0643, 0xa99: 0x109b, 0xa9a: 0x109f, 0xa9b: 0x10a3, 0xa9c: 0x177d, 0xa9d: 0x1782,+ 0xa9e: 0x1782, 0xa9f: 0x10bb, 0xaa0: 0x0647, 0xaa1: 0x1787, 0xaa2: 0x10cf, 0xaa3: 0x10d3,+ 0xaa4: 0x064b, 0xaa5: 0x178c, 0xaa6: 0x10ef, 0xaa7: 0x064f, 0xaa8: 0x10ff, 0xaa9: 0x10f7,+ 0xaaa: 0x1107, 0xaab: 0x1796, 0xaac: 0x111f, 0xaad: 0x0653, 0xaae: 0x112b, 0xaaf: 0x1133,+ 0xab0: 0x1143, 0xab1: 0x0657, 0xab2: 0x17a0, 0xab3: 0x17a5, 0xab4: 0x065b, 0xab5: 0x17aa,+ 0xab6: 0x115b, 0xab7: 0x17af, 0xab8: 0x1167, 0xab9: 0x1173, 0xaba: 0x117b, 0xabb: 0x17b4,+ 0xabc: 0x17b9, 0xabd: 0x118f, 0xabe: 0x17be, 0xabf: 0x1197,// Block 0x2b, offset 0xac0- 0xac0: 0x16ca, 0xac1: 0x065f, 0xac2: 0x11af, 0xac3: 0x11b3, 0xac4: 0x0667, 0xac5: 0x11b7,- 0xac6: 0x0a33, 0xac7: 0x17bf, 0xac8: 0x17c4, 0xac9: 0x16cf, 0xaca: 0x16d4, 0xacb: 0x11d7,+ 0xac0: 0x16ce, 0xac1: 0x065f, 0xac2: 0x11af, 0xac3: 0x11b3, 0xac4: 0x0667, 0xac5: 0x11b7,+ 0xac6: 0x0a33, 0xac7: 0x17c3, 0xac8: 0x17c8, 0xac9: 0x16d3, 0xaca: 0x16d8, 0xacb: 0x11d7,0xacc: 0x11db, 0xacd: 0x13f3, 0xace: 0x066b, 0xacf: 0x1207, 0xad0: 0x1203, 0xad1: 0x120b,- 0xad2: 0x083f, 0xad3: 0x120f, 0xad4: 0x1213, 0xad5: 0x1217, 0xad6: 0x121f, 0xad7: 0x17c9,+ 0xad2: 0x083f, 0xad3: 0x120f, 0xad4: 0x1213, 0xad5: 0x1217, 0xad6: 0x121f, 0xad7: 0x17cd,0xad8: 0x121b, 0xad9: 0x1223, 0xada: 0x1237, 0xadb: 0x123b, 0xadc: 0x1227, 0xadd: 0x123f,0xade: 0x1253, 0xadf: 0x1267, 0xae0: 0x1233, 0xae1: 0x1247, 0xae2: 0x124b, 0xae3: 0x124f,- 0xae4: 0x17ce, 0xae5: 0x17d8, 0xae6: 0x17d3, 0xae7: 0x066f, 0xae8: 0x126f, 0xae9: 0x1273,- 0xaea: 0x127b, 0xaeb: 0x17ec, 0xaec: 0x127f, 0xaed: 0x17dd, 0xaee: 0x0673, 0xaef: 0x0677,- 0xaf0: 0x17e2, 0xaf1: 0x17e7, 0xaf2: 0x067b, 0xaf3: 0x129f, 0xaf4: 0x12a3, 0xaf5: 0x12a7,+ 0xae4: 0x17d2, 0xae5: 0x17dc, 0xae6: 0x17d7, 0xae7: 0x066f, 0xae8: 0x126f, 0xae9: 0x1273,+ 0xaea: 0x127b, 0xaeb: 0x17f0, 0xaec: 0x127f, 0xaed: 0x17e1, 0xaee: 0x0673, 0xaef: 0x0677,+ 0xaf0: 0x17e6, 0xaf1: 0x17eb, 0xaf2: 0x067b, 0xaf3: 0x129f, 0xaf4: 0x12a3, 0xaf5: 0x12a7,0xaf6: 0x12ab, 0xaf7: 0x12b7, 0xaf8: 0x12b3, 0xaf9: 0x12bf, 0xafa: 0x12bb, 0xafb: 0x12cb,0xafc: 0x12c3, 0xafd: 0x12c7, 0xafe: 0x12cf, 0xaff: 0x067f,// Block 0x2c, offset 0xb00- 0xb00: 0x12d7, 0xb01: 0x12db, 0xb02: 0x0683, 0xb03: 0x12eb, 0xb04: 0x12ef, 0xb05: 0x17f1,- 0xb06: 0x12fb, 0xb07: 0x12ff, 0xb08: 0x0687, 0xb09: 0x130b, 0xb0a: 0x05bb, 0xb0b: 0x17f6,- 0xb0c: 0x17fb, 0xb0d: 0x068b, 0xb0e: 0x068f, 0xb0f: 0x1337, 0xb10: 0x134f, 0xb11: 0x136b,- 0xb12: 0x137b, 0xb13: 0x1800, 0xb14: 0x138f, 0xb15: 0x1393, 0xb16: 0x13ab, 0xb17: 0x13b7,- 0xb18: 0x180a, 0xb19: 0x165c, 0xb1a: 0x13c3, 0xb1b: 0x13bf, 0xb1c: 0x13cb, 0xb1d: 0x1661,- 0xb1e: 0x13d7, 0xb1f: 0x13e3, 0xb20: 0x180f, 0xb21: 0x1814, 0xb22: 0x1423, 0xb23: 0x142f,- 0xb24: 0x1437, 0xb25: 0x1819, 0xb26: 0x143b, 0xb27: 0x1463, 0xb28: 0x146f, 0xb29: 0x1473,- 0xb2a: 0x146b, 0xb2b: 0x147f, 0xb2c: 0x1483, 0xb2d: 0x181e, 0xb2e: 0x148f, 0xb2f: 0x0693,- 0xb30: 0x1497, 0xb31: 0x1823, 0xb32: 0x0697, 0xb33: 0x14cf, 0xb34: 0x0ac3, 0xb35: 0x14e7,- 0xb36: 0x1828, 0xb37: 0x1832, 0xb38: 0x069b, 0xb39: 0x069f, 0xb3a: 0x150f, 0xb3b: 0x1837,- 0xb3c: 0x06a3, 0xb3d: 0x183c, 0xb3e: 0x1527, 0xb3f: 0x1527,+ 0xb00: 0x12d7, 0xb01: 0x12db, 0xb02: 0x0683, 0xb03: 0x12eb, 0xb04: 0x12ef, 0xb05: 0x17f5,+ 0xb06: 0x12fb, 0xb07: 0x12ff, 0xb08: 0x0687, 0xb09: 0x130b, 0xb0a: 0x05bb, 0xb0b: 0x17fa,+ 0xb0c: 0x17ff, 0xb0d: 0x068b, 0xb0e: 0x068f, 0xb0f: 0x1337, 0xb10: 0x134f, 0xb11: 0x136b,+ 0xb12: 0x137b, 0xb13: 0x1804, 0xb14: 0x138f, 0xb15: 0x1393, 0xb16: 0x13ab, 0xb17: 0x13b7,+ 0xb18: 0x180e, 0xb19: 0x1660, 0xb1a: 0x13c3, 0xb1b: 0x13bf, 0xb1c: 0x13cb, 0xb1d: 0x1665,+ 0xb1e: 0x13d7, 0xb1f: 0x13e3, 0xb20: 0x1813, 0xb21: 0x1818, 0xb22: 0x1423, 0xb23: 0x142f,+ 0xb24: 0x1437, 0xb25: 0x181d, 0xb26: 0x143b, 0xb27: 0x1467, 0xb28: 0x1473, 0xb29: 0x1477,+ 0xb2a: 0x146f, 0xb2b: 0x1483, 0xb2c: 0x1487, 0xb2d: 0x1822, 0xb2e: 0x1493, 0xb2f: 0x0693,+ 0xb30: 0x149b, 0xb31: 0x1827, 0xb32: 0x0697, 0xb33: 0x14d3, 0xb34: 0x0ac3, 0xb35: 0x14eb,+ 0xb36: 0x182c, 0xb37: 0x1836, 0xb38: 0x069b, 0xb39: 0x069f, 0xb3a: 0x1513, 0xb3b: 0x183b,+ 0xb3c: 0x06a3, 0xb3d: 0x1840, 0xb3e: 0x152b, 0xb3f: 0x152b,// Block 0x2d, offset 0xb40- 0xb40: 0x152f, 0xb41: 0x1841, 0xb42: 0x1547, 0xb43: 0x06a7, 0xb44: 0x1557, 0xb45: 0x1563,- 0xb46: 0x156b, 0xb47: 0x1573, 0xb48: 0x06ab, 0xb49: 0x1846, 0xb4a: 0x1587, 0xb4b: 0x15a3,- 0xb4c: 0x15af, 0xb4d: 0x06af, 0xb4e: 0x06b3, 0xb4f: 0x15b3, 0xb50: 0x184b, 0xb51: 0x06b7,- 0xb52: 0x1850, 0xb53: 0x1855, 0xb54: 0x185a, 0xb55: 0x15d7, 0xb56: 0x06bb, 0xb57: 0x15eb,- 0xb58: 0x15f3, 0xb59: 0x15f7, 0xb5a: 0x15ff, 0xb5b: 0x1607, 0xb5c: 0x160f, 0xb5d: 0x1864,+ 0xb40: 0x1533, 0xb41: 0x1845, 0xb42: 0x154b, 0xb43: 0x06a7, 0xb44: 0x155b, 0xb45: 0x1567,+ 0xb46: 0x156f, 0xb47: 0x1577, 0xb48: 0x06ab, 0xb49: 0x184a, 0xb4a: 0x158b, 0xb4b: 0x15a7,+ 0xb4c: 0x15b3, 0xb4d: 0x06af, 0xb4e: 0x06b3, 0xb4f: 0x15b7, 0xb50: 0x184f, 0xb51: 0x06b7,+ 0xb52: 0x1854, 0xb53: 0x1859, 0xb54: 0x185e, 0xb55: 0x15db, 0xb56: 0x06bb, 0xb57: 0x15ef,+ 0xb58: 0x15f7, 0xb59: 0x15fb, 0xb5a: 0x1603, 0xb5b: 0x160b, 0xb5c: 0x1613, 0xb5d: 0x1868,}// nfcIndex: 22 blocks, 1408 entries, 1408 bytes@@ -3480,19 +3482,21 @@ var nfcIndex = [1408]uint8{// Block 0xe, offset 0x3800x381: 0xa1, 0x382: 0xa2, 0x384: 0xa3, 0x385: 0x82, 0x387: 0xa4,0x388: 0xa5, 0x38b: 0xa6, 0x38c: 0x3e, 0x38d: 0xa7,- 0x392: 0xa8, 0x393: 0xa9, 0x396: 0xaa, 0x397: 0xab,- 0x398: 0x73, 0x39a: 0xac, 0x39c: 0xad,+ 0x391: 0xa8, 0x392: 0xa9, 0x393: 0xaa, 0x396: 0xab, 0x397: 0xac,+ 0x398: 0x73, 0x39a: 0xad, 0x39c: 0xae,+ 0x3b0: 0x73,// Block 0xf, offset 0x3c0- 0x3eb: 0xae, 0x3ec: 0xaf,+ 0x3eb: 0xaf, 0x3ec: 0xb0,// Block 0x10, offset 0x400- 0x432: 0xb0,+ 0x432: 0xb1,// Block 0x11, offset 0x440- 0x445: 0xb1, 0x446: 0xb2, 0x447: 0xb3,- 0x449: 0xb4,+ 0x445: 0xb2, 0x446: 0xb3, 0x447: 0xb4,+ 0x449: 0xb5,// Block 0x12, offset 0x480- 0x4a3: 0xb5,+ 0x480: 0xb6,+ 0x4a3: 0xb7, 0x4a5: 0xb8,// Block 0x13, offset 0x4c0- 0x4c8: 0xb6,+ 0x4c8: 0xb9,// Block 0x14, offset 0x5000x520: 0x23, 0x521: 0x24, 0x522: 0x25, 0x523: 0x26, 0x524: 0x27, 0x525: 0x28, 0x526: 0x29, 0x527: 0x2a,0x528: 0x2b,@@ -3502,11 +3506,11 @@ var nfcIndex = [1408]uint8{0x56f: 0x12,}-// nfcSparseOffset: 139 entries, 278 bytes-var nfcSparseOffset = []uint16{0x0, 0x5, 0x9, 0xb, 0xd, 0x18, 0x28, 0x2a, 0x2f, 0x3a, 0x49, 0x56, 0x5e, 0x62, 0x67, 0x69, 0x79, 0x81, 0x88, 0x8b, 0x92, 0x96, 0x9a, 0x9c, 0x9e, 0xa7, 0xab, 0xb2, 0xb7, 0xba, 0xc4, 0xc6, 0xcd, 0xd5, 0xd8, 0xda, 0xdc, 0xde, 0xe3, 0xf4, 0x100, 0x102, 0x108, 0x10a, 0x10c, 0x10e, 0x110, 0x112, 0x114, 0x117, 0x11a, 0x11c, 0x11f, 0x122, 0x126, 0x12b, 0x134, 0x136, 0x139, 0x13b, 0x146, 0x155, 0x159, 0x167, 0x16a, 0x170, 0x176, 0x181, 0x185, 0x187, 0x189, 0x18b, 0x18d, 0x18f, 0x195, 0x199, 0x19b, 0x19d, 0x1a5, 0x1a9, 0x1ac, 0x1ae, 0x1b0, 0x1b2, 0x1b5, 0x1b7, 0x1b9, 0x1bb, 0x1bd, 0x1c3, 0x1c6, 0x1c8, 0x1cf, 0x1d5, 0x1db, 0x1e3, 0x1e9, 0x1ef, 0x1f5, 0x1f9, 0x207, 0x210, 0x213, 0x216, 0x218, 0x21b, 0x21d, 0x221, 0x226, 0x228, 0x22a, 0x22f, 0x235, 0x237, 0x239, 0x23b, 0x241, 0x244, 0x247, 0x24f, 0x256, 0x259, 0x25c, 0x25e, 0x266, 0x26d, 0x270, 0x276, 0x278, 0x27b, 0x27d, 0x27f, 0x281, 0x283, 0x290, 0x29a, 0x29c, 0x29e, 0x2a0}+// nfcSparseOffset: 142 entries, 284 bytes+var nfcSparseOffset = []uint16{0x0, 0x5, 0x9, 0xb, 0xd, 0x18, 0x28, 0x2a, 0x2f, 0x3a, 0x49, 0x56, 0x5e, 0x62, 0x67, 0x69, 0x7a, 0x82, 0x89, 0x8c, 0x93, 0x97, 0x9b, 0x9d, 0x9f, 0xa8, 0xac, 0xb3, 0xb8, 0xbb, 0xc5, 0xc7, 0xce, 0xd6, 0xd9, 0xdb, 0xdd, 0xdf, 0xe4, 0xf5, 0x101, 0x103, 0x109, 0x10b, 0x10d, 0x10f, 0x111, 0x113, 0x115, 0x118, 0x11b, 0x11d, 0x120, 0x123, 0x127, 0x12c, 0x135, 0x137, 0x13a, 0x13c, 0x147, 0x157, 0x15b, 0x169, 0x16c, 0x172, 0x178, 0x183, 0x187, 0x189, 0x18b, 0x18d, 0x18f, 0x191, 0x197, 0x19b, 0x19d, 0x19f, 0x1a7, 0x1ab, 0x1ae, 0x1b0, 0x1b2, 0x1b4, 0x1b7, 0x1b9, 0x1bb, 0x1bd, 0x1bf, 0x1c5, 0x1c8, 0x1ca, 0x1d1, 0x1d7, 0x1dd, 0x1e5, 0x1eb, 0x1f1, 0x1f7, 0x1fb, 0x209, 0x212, 0x215, 0x218, 0x21a, 0x21d, 0x21f, 0x223, 0x228, 0x22a, 0x22c, 0x231, 0x237, 0x239, 0x23b, 0x23d, 0x243, 0x246, 0x249, 0x251, 0x258, 0x25b, 0x25e, 0x260, 0x268, 0x26b, 0x272, 0x275, 0x27b, 0x27d, 0x280, 0x282, 0x284, 0x286, 0x288, 0x295, 0x29f, 0x2a1, 0x2a3, 0x2a9, 0x2ab, 0x2ae}-// nfcSparseValues: 674 entries, 2696 bytes-var nfcSparseValues = [674]valueRange{+// nfcSparseValues: 688 entries, 2752 bytes+var nfcSparseValues = [688]valueRange{// Block 0x0, offset 0x0{value: 0x0000, lo: 0x04},{value: 0xa100, lo: 0xa8, hi: 0xa8},@@ -3515,8 +3519,8 @@ var nfcSparseValues = [674]valueRange{{value: 0x8100, lo: 0xb8, hi: 0xb8},// Block 0x1, offset 0x5{value: 0x0091, lo: 0x03},- {value: 0x4774, lo: 0xa0, hi: 0xa1},- {value: 0x47a6, lo: 0xaf, hi: 0xb0},+ {value: 0x4778, lo: 0xa0, hi: 0xa1},+ {value: 0x47aa, lo: 0xaf, hi: 0xb0},{value: 0xa000, lo: 0xb7, hi: 0xb7},// Block 0x2, offset 0x9{value: 0x0000, lo: 0x01},@@ -3529,30 +3533,30 @@ var nfcSparseValues = [674]valueRange{{value: 0xa000, lo: 0x81, hi: 0x81},{value: 0xa000, lo: 0x85, hi: 0x85},{value: 0xa000, lo: 0x89, hi: 0x89},- {value: 0x48d2, lo: 0x8a, hi: 0x8a},- {value: 0x48f0, lo: 0x8b, hi: 0x8b},- {value: 0x36c3, lo: 0x8c, hi: 0x8c},- {value: 0x36db, lo: 0x8d, hi: 0x8d},- {value: 0x4908, lo: 0x8e, hi: 0x8e},+ {value: 0x48d6, lo: 0x8a, hi: 0x8a},+ {value: 0x48f4, lo: 0x8b, hi: 0x8b},+ {value: 0x36c7, lo: 0x8c, hi: 0x8c},+ {value: 0x36df, lo: 0x8d, hi: 0x8d},+ {value: 0x490c, lo: 0x8e, hi: 0x8e},{value: 0xa000, lo: 0x92, hi: 0x92},- {value: 0x36f9, lo: 0x93, hi: 0x94},+ {value: 0x36fd, lo: 0x93, hi: 0x94},// Block 0x5, offset 0x18{value: 0x0000, lo: 0x0f},{value: 0xa000, lo: 0x83, hi: 0x83},{value: 0xa000, lo: 0x87, hi: 0x87},{value: 0xa000, lo: 0x8b, hi: 0x8b},{value: 0xa000, lo: 0x8d, hi: 0x8d},- {value: 0x37a1, lo: 0x90, hi: 0x90},- {value: 0x37ad, lo: 0x91, hi: 0x91},- {value: 0x379b, lo: 0x93, hi: 0x93},+ {value: 0x37a5, lo: 0x90, hi: 0x90},+ {value: 0x37b1, lo: 0x91, hi: 0x91},+ {value: 0x379f, lo: 0x93, hi: 0x93},{value: 0xa000, lo: 0x96, hi: 0x96},- {value: 0x3813, lo: 0x97, hi: 0x97},- {value: 0x37dd, lo: 0x9c, hi: 0x9c},- {value: 0x37c5, lo: 0x9d, hi: 0x9d},- {value: 0x37ef, lo: 0x9e, hi: 0x9e},+ {value: 0x3817, lo: 0x97, hi: 0x97},+ {value: 0x37e1, lo: 0x9c, hi: 0x9c},+ {value: 0x37c9, lo: 0x9d, hi: 0x9d},+ {value: 0x37f3, lo: 0x9e, hi: 0x9e},{value: 0xa000, lo: 0xb4, hi: 0xb5},- {value: 0x3819, lo: 0xb6, hi: 0xb6},- {value: 0x381f, lo: 0xb7, hi: 0xb7},+ {value: 0x381d, lo: 0xb6, hi: 0xb6},+ {value: 0x3823, lo: 0xb7, hi: 0xb7},// Block 0x6, offset 0x28{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0x83, hi: 0x87},@@ -3568,19 +3572,19 @@ var nfcSparseValues = [674]valueRange{{value: 0x8119, lo: 0x98, hi: 0x98},{value: 0x811a, lo: 0x99, hi: 0x99},{value: 0x811b, lo: 0x9a, hi: 0x9a},- {value: 0x383d, lo: 0xa2, hi: 0xa2},- {value: 0x3843, lo: 0xa3, hi: 0xa3},- {value: 0x384f, lo: 0xa4, hi: 0xa4},- {value: 0x3849, lo: 0xa5, hi: 0xa5},- {value: 0x3855, lo: 0xa6, hi: 0xa6},+ {value: 0x3841, lo: 0xa2, hi: 0xa2},+ {value: 0x3847, lo: 0xa3, hi: 0xa3},+ {value: 0x3853, lo: 0xa4, hi: 0xa4},+ {value: 0x384d, lo: 0xa5, hi: 0xa5},+ {value: 0x3859, lo: 0xa6, hi: 0xa6},{value: 0xa000, lo: 0xa7, hi: 0xa7},// Block 0x9, offset 0x3a{value: 0x0000, lo: 0x0e},- {value: 0x3867, lo: 0x80, hi: 0x80},+ {value: 0x386b, lo: 0x80, hi: 0x80},{value: 0xa000, lo: 0x81, hi: 0x81},- {value: 0x385b, lo: 0x82, hi: 0x82},+ {value: 0x385f, lo: 0x82, hi: 0x82},{value: 0xa000, lo: 0x92, hi: 0x92},- {value: 0x3861, lo: 0x93, hi: 0x93},+ {value: 0x3865, lo: 0x93, hi: 0x93},{value: 0xa000, lo: 0x95, hi: 0x95},{value: 0x8132, lo: 0x96, hi: 0x9c},{value: 0x8132, lo: 0x9f, hi: 0xa2},@@ -3628,7 +3632,8 @@ var nfcSparseValues = [674]valueRange{{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0x99, hi: 0x9b},// Block 0xf, offset 0x69- {value: 0x0000, lo: 0x0f},+ {value: 0x0000, lo: 0x10},+ {value: 0x8132, lo: 0x94, hi: 0xa1},{value: 0x812d, lo: 0xa3, hi: 0xa3},{value: 0x8132, lo: 0xa4, hi: 0xa5},{value: 0x812d, lo: 0xa6, hi: 0xa6},@@ -3644,244 +3649,244 @@ var nfcSparseValues = [674]valueRange{{value: 0x8132, lo: 0xb7, hi: 0xb8},{value: 0x812d, lo: 0xb9, hi: 0xba},{value: 0x8132, lo: 0xbb, hi: 0xbf},- // Block 0x10, offset 0x79+ // Block 0x10, offset 0x7a{value: 0x0000, lo: 0x07},{value: 0xa000, lo: 0xa8, hi: 0xa8},- {value: 0x3ed4, lo: 0xa9, hi: 0xa9},+ {value: 0x3ed8, lo: 0xa9, hi: 0xa9},{value: 0xa000, lo: 0xb0, hi: 0xb0},- {value: 0x3edc, lo: 0xb1, hi: 0xb1},+ {value: 0x3ee0, lo: 0xb1, hi: 0xb1},{value: 0xa000, lo: 0xb3, hi: 0xb3},- {value: 0x3ee4, lo: 0xb4, hi: 0xb4},+ {value: 0x3ee8, lo: 0xb4, hi: 0xb4},{value: 0x9902, lo: 0xbc, hi: 0xbc},- // Block 0x11, offset 0x81+ // Block 0x11, offset 0x82{value: 0x0008, lo: 0x06},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x8132, lo: 0x91, hi: 0x91},{value: 0x812d, lo: 0x92, hi: 0x92},{value: 0x8132, lo: 0x93, hi: 0x93},{value: 0x8132, lo: 0x94, hi: 0x94},- {value: 0x45ae, lo: 0x98, hi: 0x9f},- // Block 0x12, offset 0x88+ {value: 0x45b2, lo: 0x98, hi: 0x9f},+ // Block 0x12, offset 0x89{value: 0x0000, lo: 0x02},{value: 0x8102, lo: 0xbc, hi: 0xbc},{value: 0x9900, lo: 0xbe, hi: 0xbe},- // Block 0x13, offset 0x8b+ // Block 0x13, offset 0x8c{value: 0x0008, lo: 0x06},{value: 0xa000, lo: 0x87, hi: 0x87},- {value: 0x2c9a, lo: 0x8b, hi: 0x8c},+ {value: 0x2c9e, lo: 0x8b, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x97, hi: 0x97},- {value: 0x45ee, lo: 0x9c, hi: 0x9d},- {value: 0x45fe, lo: 0x9f, hi: 0x9f},- // Block 0x14, offset 0x92+ {value: 0x45f2, lo: 0x9c, hi: 0x9d},+ {value: 0x4602, lo: 0x9f, hi: 0x9f},+ // Block 0x14, offset 0x93{value: 0x0000, lo: 0x03},- {value: 0x4626, lo: 0xb3, hi: 0xb3},- {value: 0x462e, lo: 0xb6, hi: 0xb6},+ {value: 0x462a, lo: 0xb3, hi: 0xb3},+ {value: 0x4632, lo: 0xb6, hi: 0xb6},{value: 0x8102, lo: 0xbc, hi: 0xbc},- // Block 0x15, offset 0x96+ // Block 0x15, offset 0x97{value: 0x0008, lo: 0x03},{value: 0x8104, lo: 0x8d, hi: 0x8d},- {value: 0x4606, lo: 0x99, hi: 0x9b},- {value: 0x461e, lo: 0x9e, hi: 0x9e},- // Block 0x16, offset 0x9a+ {value: 0x460a, lo: 0x99, hi: 0x9b},+ {value: 0x4622, lo: 0x9e, hi: 0x9e},+ // Block 0x16, offset 0x9b{value: 0x0000, lo: 0x01},{value: 0x8102, lo: 0xbc, hi: 0xbc},- // Block 0x17, offset 0x9c+ // Block 0x17, offset 0x9d{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0x8d, hi: 0x8d},- // Block 0x18, offset 0x9e+ // Block 0x18, offset 0x9f{value: 0x0000, lo: 0x08},{value: 0xa000, lo: 0x87, hi: 0x87},- {value: 0x2cb2, lo: 0x88, hi: 0x88},- {value: 0x2caa, lo: 0x8b, hi: 0x8b},- {value: 0x2cba, lo: 0x8c, hi: 0x8c},+ {value: 0x2cb6, lo: 0x88, hi: 0x88},+ {value: 0x2cae, lo: 0x8b, hi: 0x8b},+ {value: 0x2cbe, lo: 0x8c, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x96, hi: 0x97},- {value: 0x4636, lo: 0x9c, hi: 0x9c},- {value: 0x463e, lo: 0x9d, hi: 0x9d},- // Block 0x19, offset 0xa7+ {value: 0x463a, lo: 0x9c, hi: 0x9c},+ {value: 0x4642, lo: 0x9d, hi: 0x9d},+ // Block 0x19, offset 0xa8{value: 0x0000, lo: 0x03},{value: 0xa000, lo: 0x92, hi: 0x92},- {value: 0x2cc2, lo: 0x94, hi: 0x94},+ {value: 0x2cc6, lo: 0x94, hi: 0x94},{value: 0x9900, lo: 0xbe, hi: 0xbe},- // Block 0x1a, offset 0xab+ // Block 0x1a, offset 0xac{value: 0x0000, lo: 0x06},{value: 0xa000, lo: 0x86, hi: 0x87},- {value: 0x2cca, lo: 0x8a, hi: 0x8a},- {value: 0x2cda, lo: 0x8b, hi: 0x8b},- {value: 0x2cd2, lo: 0x8c, hi: 0x8c},+ {value: 0x2cce, lo: 0x8a, hi: 0x8a},+ {value: 0x2cde, lo: 0x8b, hi: 0x8b},+ {value: 0x2cd6, lo: 0x8c, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x97, hi: 0x97},- // Block 0x1b, offset 0xb2+ // Block 0x1b, offset 0xb3{value: 0x1801, lo: 0x04},{value: 0xa000, lo: 0x86, hi: 0x86},- {value: 0x3eec, lo: 0x88, hi: 0x88},+ {value: 0x3ef0, lo: 0x88, hi: 0x88},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x8120, lo: 0x95, hi: 0x96},- // Block 0x1c, offset 0xb7+ // Block 0x1c, offset 0xb8{value: 0x0000, lo: 0x02},{value: 0x8102, lo: 0xbc, hi: 0xbc},{value: 0xa000, lo: 0xbf, hi: 0xbf},- // Block 0x1d, offset 0xba+ // Block 0x1d, offset 0xbb{value: 0x0000, lo: 0x09},- {value: 0x2ce2, lo: 0x80, hi: 0x80},+ {value: 0x2ce6, lo: 0x80, hi: 0x80},{value: 0x9900, lo: 0x82, hi: 0x82},{value: 0xa000, lo: 0x86, hi: 0x86},- {value: 0x2cea, lo: 0x87, hi: 0x87},- {value: 0x2cf2, lo: 0x88, hi: 0x88},- {value: 0x2f4c, lo: 0x8a, hi: 0x8a},- {value: 0x2dd4, lo: 0x8b, hi: 0x8b},+ {value: 0x2cee, lo: 0x87, hi: 0x87},+ {value: 0x2cf6, lo: 0x88, hi: 0x88},+ {value: 0x2f50, lo: 0x8a, hi: 0x8a},+ {value: 0x2dd8, lo: 0x8b, hi: 0x8b},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x95, hi: 0x96},- // Block 0x1e, offset 0xc4+ // Block 0x1e, offset 0xc5{value: 0x0000, lo: 0x01},{value: 0x9900, lo: 0xbe, hi: 0xbe},- // Block 0x1f, offset 0xc6+ // Block 0x1f, offset 0xc7{value: 0x0000, lo: 0x06},{value: 0xa000, lo: 0x86, hi: 0x87},- {value: 0x2cfa, lo: 0x8a, hi: 0x8a},- {value: 0x2d0a, lo: 0x8b, hi: 0x8b},- {value: 0x2d02, lo: 0x8c, hi: 0x8c},+ {value: 0x2cfe, lo: 0x8a, hi: 0x8a},+ {value: 0x2d0e, lo: 0x8b, hi: 0x8b},+ {value: 0x2d06, lo: 0x8c, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x97, hi: 0x97},- // Block 0x20, offset 0xcd- {value: 0x6bee, lo: 0x07},+ // Block 0x20, offset 0xce+ {value: 0x6bea, lo: 0x07},{value: 0x9904, lo: 0x8a, hi: 0x8a},{value: 0x9900, lo: 0x8f, hi: 0x8f},{value: 0xa000, lo: 0x99, hi: 0x99},- {value: 0x3ef4, lo: 0x9a, hi: 0x9a},- {value: 0x2f54, lo: 0x9c, hi: 0x9c},- {value: 0x2ddf, lo: 0x9d, hi: 0x9d},- {value: 0x2d12, lo: 0x9e, hi: 0x9f},- // Block 0x21, offset 0xd5+ {value: 0x3ef8, lo: 0x9a, hi: 0x9a},+ {value: 0x2f58, lo: 0x9c, hi: 0x9c},+ {value: 0x2de3, lo: 0x9d, hi: 0x9d},+ {value: 0x2d16, lo: 0x9e, hi: 0x9f},+ // Block 0x21, offset 0xd6{value: 0x0000, lo: 0x02},{value: 0x8122, lo: 0xb8, hi: 0xb9},{value: 0x8104, lo: 0xba, hi: 0xba},- // Block 0x22, offset 0xd8+ // Block 0x22, offset 0xd9{value: 0x0000, lo: 0x01},{value: 0x8123, lo: 0x88, hi: 0x8b},- // Block 0x23, offset 0xda+ // Block 0x23, offset 0xdb{value: 0x0000, lo: 0x01},{value: 0x8124, lo: 0xb8, hi: 0xb9},- // Block 0x24, offset 0xdc+ // Block 0x24, offset 0xdd{value: 0x0000, lo: 0x01},{value: 0x8125, lo: 0x88, hi: 0x8b},- // Block 0x25, offset 0xde+ // Block 0x25, offset 0xdf{value: 0x0000, lo: 0x04},{value: 0x812d, lo: 0x98, hi: 0x99},{value: 0x812d, lo: 0xb5, hi: 0xb5},{value: 0x812d, lo: 0xb7, hi: 0xb7},{value: 0x812b, lo: 0xb9, hi: 0xb9},- // Block 0x26, offset 0xe3+ // Block 0x26, offset 0xe4{value: 0x0000, lo: 0x10},- {value: 0x2640, lo: 0x83, hi: 0x83},- {value: 0x2647, lo: 0x8d, hi: 0x8d},- {value: 0x264e, lo: 0x92, hi: 0x92},- {value: 0x2655, lo: 0x97, hi: 0x97},- {value: 0x265c, lo: 0x9c, hi: 0x9c},- {value: 0x2639, lo: 0xa9, hi: 0xa9},+ {value: 0x2644, lo: 0x83, hi: 0x83},+ {value: 0x264b, lo: 0x8d, hi: 0x8d},+ {value: 0x2652, lo: 0x92, hi: 0x92},+ {value: 0x2659, lo: 0x97, hi: 0x97},+ {value: 0x2660, lo: 0x9c, hi: 0x9c},+ {value: 0x263d, lo: 0xa9, hi: 0xa9},{value: 0x8126, lo: 0xb1, hi: 0xb1},{value: 0x8127, lo: 0xb2, hi: 0xb2},- {value: 0x4a62, lo: 0xb3, hi: 0xb3},+ {value: 0x4a66, lo: 0xb3, hi: 0xb3},{value: 0x8128, lo: 0xb4, hi: 0xb4},- {value: 0x4a6b, lo: 0xb5, hi: 0xb5},- {value: 0x4646, lo: 0xb6, hi: 0xb6},+ {value: 0x4a6f, lo: 0xb5, hi: 0xb5},+ {value: 0x464a, lo: 0xb6, hi: 0xb6},{value: 0x8200, lo: 0xb7, hi: 0xb7},- {value: 0x464e, lo: 0xb8, hi: 0xb8},+ {value: 0x4652, lo: 0xb8, hi: 0xb8},{value: 0x8200, lo: 0xb9, hi: 0xb9},{value: 0x8127, lo: 0xba, hi: 0xbd},- // Block 0x27, offset 0xf4+ // Block 0x27, offset 0xf5{value: 0x0000, lo: 0x0b},{value: 0x8127, lo: 0x80, hi: 0x80},- {value: 0x4a74, lo: 0x81, hi: 0x81},+ {value: 0x4a78, lo: 0x81, hi: 0x81},{value: 0x8132, lo: 0x82, hi: 0x83},{value: 0x8104, lo: 0x84, hi: 0x84},{value: 0x8132, lo: 0x86, hi: 0x87},- {value: 0x266a, lo: 0x93, hi: 0x93},- {value: 0x2671, lo: 0x9d, hi: 0x9d},- {value: 0x2678, lo: 0xa2, hi: 0xa2},- {value: 0x267f, lo: 0xa7, hi: 0xa7},- {value: 0x2686, lo: 0xac, hi: 0xac},- {value: 0x2663, lo: 0xb9, hi: 0xb9},- // Block 0x28, offset 0x100+ {value: 0x266e, lo: 0x93, hi: 0x93},+ {value: 0x2675, lo: 0x9d, hi: 0x9d},+ {value: 0x267c, lo: 0xa2, hi: 0xa2},+ {value: 0x2683, lo: 0xa7, hi: 0xa7},+ {value: 0x268a, lo: 0xac, hi: 0xac},+ {value: 0x2667, lo: 0xb9, hi: 0xb9},+ // Block 0x28, offset 0x101{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0x86, hi: 0x86},- // Block 0x29, offset 0x102+ // Block 0x29, offset 0x103{value: 0x0000, lo: 0x05},{value: 0xa000, lo: 0xa5, hi: 0xa5},- {value: 0x2d1a, lo: 0xa6, hi: 0xa6},+ {value: 0x2d1e, lo: 0xa6, hi: 0xa6},{value: 0x9900, lo: 0xae, hi: 0xae},{value: 0x8102, lo: 0xb7, hi: 0xb7},{value: 0x8104, lo: 0xb9, hi: 0xba},- // Block 0x2a, offset 0x108+ // Block 0x2a, offset 0x109{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0x8d, hi: 0x8d},- // Block 0x2b, offset 0x10a+ // Block 0x2b, offset 0x10b{value: 0x0000, lo: 0x01},{value: 0xa000, lo: 0x80, hi: 0x92},- // Block 0x2c, offset 0x10c+ // Block 0x2c, offset 0x10d{value: 0x0000, lo: 0x01},{value: 0xb900, lo: 0xa1, hi: 0xb5},- // Block 0x2d, offset 0x10e+ // Block 0x2d, offset 0x10f{value: 0x0000, lo: 0x01},{value: 0x9900, lo: 0xa8, hi: 0xbf},- // Block 0x2e, offset 0x110+ // Block 0x2e, offset 0x111{value: 0x0000, lo: 0x01},{value: 0x9900, lo: 0x80, hi: 0x82},- // Block 0x2f, offset 0x112+ // Block 0x2f, offset 0x113{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0x9d, hi: 0x9f},- // Block 0x30, offset 0x114+ // Block 0x30, offset 0x115{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x94, hi: 0x94},{value: 0x8104, lo: 0xb4, hi: 0xb4},- // Block 0x31, offset 0x117+ // Block 0x31, offset 0x118{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x92, hi: 0x92},{value: 0x8132, lo: 0x9d, hi: 0x9d},- // Block 0x32, offset 0x11a+ // Block 0x32, offset 0x11b{value: 0x0000, lo: 0x01},{value: 0x8131, lo: 0xa9, hi: 0xa9},- // Block 0x33, offset 0x11c+ // Block 0x33, offset 0x11d{value: 0x0004, lo: 0x02},{value: 0x812e, lo: 0xb9, hi: 0xba},{value: 0x812d, lo: 0xbb, hi: 0xbb},- // Block 0x34, offset 0x11f+ // Block 0x34, offset 0x120{value: 0x0000, lo: 0x02},{value: 0x8132, lo: 0x97, hi: 0x97},{value: 0x812d, lo: 0x98, hi: 0x98},- // Block 0x35, offset 0x122+ // Block 0x35, offset 0x123{value: 0x0000, lo: 0x03},{value: 0x8104, lo: 0xa0, hi: 0xa0},{value: 0x8132, lo: 0xb5, hi: 0xbc},{value: 0x812d, lo: 0xbf, hi: 0xbf},- // Block 0x36, offset 0x126+ // Block 0x36, offset 0x127{value: 0x0000, lo: 0x04},{value: 0x8132, lo: 0xb0, hi: 0xb4},{value: 0x812d, lo: 0xb5, hi: 0xba},{value: 0x8132, lo: 0xbb, hi: 0xbc},{value: 0x812d, lo: 0xbd, hi: 0xbd},- // Block 0x37, offset 0x12b+ // Block 0x37, offset 0x12c{value: 0x0000, lo: 0x08},- {value: 0x2d62, lo: 0x80, hi: 0x80},- {value: 0x2d6a, lo: 0x81, hi: 0x81},+ {value: 0x2d66, lo: 0x80, hi: 0x80},+ {value: 0x2d6e, lo: 0x81, hi: 0x81},{value: 0xa000, lo: 0x82, hi: 0x82},- {value: 0x2d72, lo: 0x83, hi: 0x83},+ {value: 0x2d76, lo: 0x83, hi: 0x83},{value: 0x8104, lo: 0x84, hi: 0x84},{value: 0x8132, lo: 0xab, hi: 0xab},{value: 0x812d, lo: 0xac, hi: 0xac},{value: 0x8132, lo: 0xad, hi: 0xb3},- // Block 0x38, offset 0x134+ // Block 0x38, offset 0x135{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0xaa, hi: 0xab},- // Block 0x39, offset 0x136+ // Block 0x39, offset 0x137{value: 0x0000, lo: 0x02},{value: 0x8102, lo: 0xa6, hi: 0xa6},{value: 0x8104, lo: 0xb2, hi: 0xb3},- // Block 0x3a, offset 0x139+ // Block 0x3a, offset 0x13a{value: 0x0000, lo: 0x01},{value: 0x8102, lo: 0xb7, hi: 0xb7},- // Block 0x3b, offset 0x13b+ // Block 0x3b, offset 0x13c{value: 0x0000, lo: 0x0a},{value: 0x8132, lo: 0x90, hi: 0x92},{value: 0x8101, lo: 0x94, hi: 0x94},@@ -3893,8 +3898,8 @@ var nfcSparseValues = [674]valueRange{{value: 0x812d, lo: 0xad, hi: 0xad},{value: 0x8132, lo: 0xb4, hi: 0xb4},{value: 0x8132, lo: 0xb8, hi: 0xb9},- // Block 0x3c, offset 0x146- {value: 0x0000, lo: 0x0e},+ // Block 0x3c, offset 0x147+ {value: 0x0000, lo: 0x0f},{value: 0x8132, lo: 0x80, hi: 0x81},{value: 0x812d, lo: 0x82, hi: 0x82},{value: 0x8132, lo: 0x83, hi: 0x89},@@ -3905,16 +3910,17 @@ var nfcSparseValues = [674]valueRange{{value: 0x812d, lo: 0x8f, hi: 0x8f},{value: 0x8129, lo: 0x90, hi: 0x90},{value: 0x8132, lo: 0x91, hi: 0xb5},+ {value: 0x8132, lo: 0xbb, hi: 0xbb},{value: 0x8134, lo: 0xbc, hi: 0xbc},{value: 0x812d, lo: 0xbd, hi: 0xbd},{value: 0x8132, lo: 0xbe, hi: 0xbe},{value: 0x812d, lo: 0xbf, hi: 0xbf},- // Block 0x3d, offset 0x155+ // Block 0x3d, offset 0x157{value: 0x0004, lo: 0x03},{value: 0x0433, lo: 0x80, hi: 0x81},{value: 0x8100, lo: 0x97, hi: 0x97},{value: 0x8100, lo: 0xbe, hi: 0xbe},- // Block 0x3e, offset 0x159+ // Block 0x3e, offset 0x15b{value: 0x0000, lo: 0x0d},{value: 0x8132, lo: 0x90, hi: 0x91},{value: 0x8101, lo: 0x92, hi: 0x93},@@ -3929,75 +3935,75 @@ var nfcSparseValues = [674]valueRange{{value: 0x8101, lo: 0xaa, hi: 0xab},{value: 0x812d, lo: 0xac, hi: 0xaf},{value: 0x8132, lo: 0xb0, hi: 0xb0},- // Block 0x3f, offset 0x167- {value: 0x4277, lo: 0x02},+ // Block 0x3f, offset 0x169+ {value: 0x427b, lo: 0x02},{value: 0x01b8, lo: 0xa6, hi: 0xa6},{value: 0x0057, lo: 0xaa, hi: 0xab},- // Block 0x40, offset 0x16a+ // Block 0x40, offset 0x16c{value: 0x0007, lo: 0x05},{value: 0xa000, lo: 0x90, hi: 0x90},{value: 0xa000, lo: 0x92, hi: 0x92},{value: 0xa000, lo: 0x94, hi: 0x94},- {value: 0x3bb5, lo: 0x9a, hi: 0x9b},- {value: 0x3bc3, lo: 0xae, hi: 0xae},- // Block 0x41, offset 0x170+ {value: 0x3bb9, lo: 0x9a, hi: 0x9b},+ {value: 0x3bc7, lo: 0xae, hi: 0xae},+ // Block 0x41, offset 0x172{value: 0x000e, lo: 0x05},- {value: 0x3bca, lo: 0x8d, hi: 0x8e},- {value: 0x3bd1, lo: 0x8f, hi: 0x8f},+ {value: 0x3bce, lo: 0x8d, hi: 0x8e},+ {value: 0x3bd5, lo: 0x8f, hi: 0x8f},{value: 0xa000, lo: 0x90, hi: 0x90},{value: 0xa000, lo: 0x92, hi: 0x92},{value: 0xa000, lo: 0x94, hi: 0x94},- // Block 0x42, offset 0x176- {value: 0x640c, lo: 0x0a},+ // Block 0x42, offset 0x178+ {value: 0x6408, lo: 0x0a},{value: 0xa000, lo: 0x83, hi: 0x83},- {value: 0x3bdf, lo: 0x84, hi: 0x84},+ {value: 0x3be3, lo: 0x84, hi: 0x84},{value: 0xa000, lo: 0x88, hi: 0x88},- {value: 0x3be6, lo: 0x89, hi: 0x89},+ {value: 0x3bea, lo: 0x89, hi: 0x89},{value: 0xa000, lo: 0x8b, hi: 0x8b},- {value: 0x3bed, lo: 0x8c, hi: 0x8c},+ {value: 0x3bf1, lo: 0x8c, hi: 0x8c},{value: 0xa000, lo: 0xa3, hi: 0xa3},- {value: 0x3bf4, lo: 0xa4, hi: 0xa5},- {value: 0x3bfb, lo: 0xa6, hi: 0xa6},+ {value: 0x3bf8, lo: 0xa4, hi: 0xa5},+ {value: 0x3bff, lo: 0xa6, hi: 0xa6},{value: 0xa000, lo: 0xbc, hi: 0xbc},- // Block 0x43, offset 0x181+ // Block 0x43, offset 0x183{value: 0x0007, lo: 0x03},- {value: 0x3c64, lo: 0xa0, hi: 0xa1},- {value: 0x3c8e, lo: 0xa2, hi: 0xa3},- {value: 0x3cb8, lo: 0xaa, hi: 0xad},- // Block 0x44, offset 0x185+ {value: 0x3c68, lo: 0xa0, hi: 0xa1},+ {value: 0x3c92, lo: 0xa2, hi: 0xa3},+ {value: 0x3cbc, lo: 0xaa, hi: 0xad},+ // Block 0x44, offset 0x187{value: 0x0004, lo: 0x01},{value: 0x048b, lo: 0xa9, hi: 0xaa},- // Block 0x45, offset 0x187+ // Block 0x45, offset 0x189{value: 0x0000, lo: 0x01},- {value: 0x456f, lo: 0x9c, hi: 0x9c},- // Block 0x46, offset 0x189+ {value: 0x4573, lo: 0x9c, hi: 0x9c},+ // Block 0x46, offset 0x18b{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xaf, hi: 0xb1},- // Block 0x47, offset 0x18b+ // Block 0x47, offset 0x18d{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0xbf, hi: 0xbf},- // Block 0x48, offset 0x18d+ // Block 0x48, offset 0x18f{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xa0, hi: 0xbf},- // Block 0x49, offset 0x18f+ // Block 0x49, offset 0x191{value: 0x0000, lo: 0x05},{value: 0x812c, lo: 0xaa, hi: 0xaa},{value: 0x8131, lo: 0xab, hi: 0xab},{value: 0x8133, lo: 0xac, hi: 0xac},{value: 0x812e, lo: 0xad, hi: 0xad},{value: 0x812f, lo: 0xae, hi: 0xaf},- // Block 0x4a, offset 0x195+ // Block 0x4a, offset 0x197{value: 0x0000, lo: 0x03},- {value: 0x4a7d, lo: 0xb3, hi: 0xb3},- {value: 0x4a7d, lo: 0xb5, hi: 0xb6},- {value: 0x4a7d, lo: 0xba, hi: 0xbf},- // Block 0x4b, offset 0x199+ {value: 0x4a81, lo: 0xb3, hi: 0xb3},+ {value: 0x4a81, lo: 0xb5, hi: 0xb6},+ {value: 0x4a81, lo: 0xba, hi: 0xbf},+ // Block 0x4b, offset 0x19b{value: 0x0000, lo: 0x01},- {value: 0x4a7d, lo: 0x8f, hi: 0xa3},- // Block 0x4c, offset 0x19b+ {value: 0x4a81, lo: 0x8f, hi: 0xa3},+ // Block 0x4c, offset 0x19d{value: 0x0000, lo: 0x01},{value: 0x8100, lo: 0xae, hi: 0xbe},- // Block 0x4d, offset 0x19d+ // Block 0x4d, offset 0x19f{value: 0x0000, lo: 0x07},{value: 0x8100, lo: 0x84, hi: 0x84},{value: 0x8100, lo: 0x87, hi: 0x87},@@ -4006,55 +4012,55 @@ var nfcSparseValues = [674]valueRange{{value: 0x8100, lo: 0xa1, hi: 0xa1},{value: 0x8100, lo: 0xb2, hi: 0xb2},{value: 0x8100, lo: 0xbb, hi: 0xbb},- // Block 0x4e, offset 0x1a5+ // Block 0x4e, offset 0x1a7{value: 0x0000, lo: 0x03},{value: 0x8100, lo: 0x80, hi: 0x80},{value: 0x8100, lo: 0x8b, hi: 0x8b},{value: 0x8100, lo: 0x8e, hi: 0x8e},- // Block 0x4f, offset 0x1a9+ // Block 0x4f, offset 0x1ab{value: 0x0000, lo: 0x02},{value: 0x8132, lo: 0xaf, hi: 0xaf},{value: 0x8132, lo: 0xb4, hi: 0xbd},- // Block 0x50, offset 0x1ac+ // Block 0x50, offset 0x1ae{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0x9e, hi: 0x9f},- // Block 0x51, offset 0x1ae+ // Block 0x51, offset 0x1b0{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xb0, hi: 0xb1},- // Block 0x52, offset 0x1b0+ // Block 0x52, offset 0x1b2{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0x86, hi: 0x86},- // Block 0x53, offset 0x1b2+ // Block 0x53, offset 0x1b4{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x84, hi: 0x84},{value: 0x8132, lo: 0xa0, hi: 0xb1},- // Block 0x54, offset 0x1b5+ // Block 0x54, offset 0x1b7{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0xab, hi: 0xad},- // Block 0x55, offset 0x1b7+ // Block 0x55, offset 0x1b9{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0x93, hi: 0x93},- // Block 0x56, offset 0x1b9+ // Block 0x56, offset 0x1bb{value: 0x0000, lo: 0x01},{value: 0x8102, lo: 0xb3, hi: 0xb3},- // Block 0x57, offset 0x1bb+ // Block 0x57, offset 0x1bd{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0x80, hi: 0x80},- // Block 0x58, offset 0x1bd+ // Block 0x58, offset 0x1bf{value: 0x0000, lo: 0x05},{value: 0x8132, lo: 0xb0, hi: 0xb0},{value: 0x8132, lo: 0xb2, hi: 0xb3},{value: 0x812d, lo: 0xb4, hi: 0xb4},{value: 0x8132, lo: 0xb7, hi: 0xb8},{value: 0x8132, lo: 0xbe, hi: 0xbf},- // Block 0x59, offset 0x1c3+ // Block 0x59, offset 0x1c5{value: 0x0000, lo: 0x02},{value: 0x8132, lo: 0x81, hi: 0x81},{value: 0x8104, lo: 0xb6, hi: 0xb6},- // Block 0x5a, offset 0x1c6+ // Block 0x5a, offset 0x1c8{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0xad, hi: 0xad},- // Block 0x5b, offset 0x1c8+ // Block 0x5b, offset 0x1ca{value: 0x0000, lo: 0x06},{value: 0xe500, lo: 0x80, hi: 0x80},{value: 0xc600, lo: 0x81, hi: 0x9b},@@ -4062,21 +4068,21 @@ var nfcSparseValues = [674]valueRange{{value: 0xc600, lo: 0x9d, hi: 0xb7},{value: 0xe500, lo: 0xb8, hi: 0xb8},{value: 0xc600, lo: 0xb9, hi: 0xbf},- // Block 0x5c, offset 0x1cf+ // Block 0x5c, offset 0x1d1{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x93},{value: 0xe500, lo: 0x94, hi: 0x94},{value: 0xc600, lo: 0x95, hi: 0xaf},{value: 0xe500, lo: 0xb0, hi: 0xb0},{value: 0xc600, lo: 0xb1, hi: 0xbf},- // Block 0x5d, offset 0x1d5+ // Block 0x5d, offset 0x1d7{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x8b},{value: 0xe500, lo: 0x8c, hi: 0x8c},{value: 0xc600, lo: 0x8d, hi: 0xa7},{value: 0xe500, lo: 0xa8, hi: 0xa8},{value: 0xc600, lo: 0xa9, hi: 0xbf},- // Block 0x5e, offset 0x1db+ // Block 0x5e, offset 0x1dd{value: 0x0000, lo: 0x07},{value: 0xc600, lo: 0x80, hi: 0x83},{value: 0xe500, lo: 0x84, hi: 0x84},@@ -4085,239 +4091,254 @@ var nfcSparseValues = [674]valueRange{{value: 0xc600, lo: 0xa1, hi: 0xbb},{value: 0xe500, lo: 0xbc, hi: 0xbc},{value: 0xc600, lo: 0xbd, hi: 0xbf},- // Block 0x5f, offset 0x1e3+ // Block 0x5f, offset 0x1e5{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x97},{value: 0xe500, lo: 0x98, hi: 0x98},{value: 0xc600, lo: 0x99, hi: 0xb3},{value: 0xe500, lo: 0xb4, hi: 0xb4},{value: 0xc600, lo: 0xb5, hi: 0xbf},- // Block 0x60, offset 0x1e9+ // Block 0x60, offset 0x1eb{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x8f},{value: 0xe500, lo: 0x90, hi: 0x90},{value: 0xc600, lo: 0x91, hi: 0xab},{value: 0xe500, lo: 0xac, hi: 0xac},{value: 0xc600, lo: 0xad, hi: 0xbf},- // Block 0x61, offset 0x1ef+ // Block 0x61, offset 0x1f1{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x87},{value: 0xe500, lo: 0x88, hi: 0x88},{value: 0xc600, lo: 0x89, hi: 0xa3},{value: 0xe500, lo: 0xa4, hi: 0xa4},{value: 0xc600, lo: 0xa5, hi: 0xbf},- // Block 0x62, offset 0x1f5+ // Block 0x62, offset 0x1f7{value: 0x0000, lo: 0x03},{value: 0xc600, lo: 0x80, hi: 0x87},{value: 0xe500, lo: 0x88, hi: 0x88},{value: 0xc600, lo: 0x89, hi: 0xa3},- // Block 0x63, offset 0x1f9+ // Block 0x63, offset 0x1fb{value: 0x0006, lo: 0x0d},- {value: 0x4422, lo: 0x9d, hi: 0x9d},+ {value: 0x4426, lo: 0x9d, hi: 0x9d},{value: 0x8115, lo: 0x9e, hi: 0x9e},- {value: 0x4494, lo: 0x9f, hi: 0x9f},- {value: 0x4482, lo: 0xaa, hi: 0xab},- {value: 0x4586, lo: 0xac, hi: 0xac},- {value: 0x458e, lo: 0xad, hi: 0xad},- {value: 0x43da, lo: 0xae, hi: 0xb1},- {value: 0x43f8, lo: 0xb2, hi: 0xb4},- {value: 0x4410, lo: 0xb5, hi: 0xb6},- {value: 0x441c, lo: 0xb8, hi: 0xb8},- {value: 0x4428, lo: 0xb9, hi: 0xbb},- {value: 0x4440, lo: 0xbc, hi: 0xbc},- {value: 0x4446, lo: 0xbe, hi: 0xbe},- // Block 0x64, offset 0x207+ {value: 0x4498, lo: 0x9f, hi: 0x9f},+ {value: 0x4486, lo: 0xaa, hi: 0xab},+ {value: 0x458a, lo: 0xac, hi: 0xac},+ {value: 0x4592, lo: 0xad, hi: 0xad},+ {value: 0x43de, lo: 0xae, hi: 0xb1},+ {value: 0x43fc, lo: 0xb2, hi: 0xb4},+ {value: 0x4414, lo: 0xb5, hi: 0xb6},+ {value: 0x4420, lo: 0xb8, hi: 0xb8},+ {value: 0x442c, lo: 0xb9, hi: 0xbb},+ {value: 0x4444, lo: 0xbc, hi: 0xbc},+ {value: 0x444a, lo: 0xbe, hi: 0xbe},+ // Block 0x64, offset 0x209{value: 0x0006, lo: 0x08},- {value: 0x444c, lo: 0x80, hi: 0x81},- {value: 0x4458, lo: 0x83, hi: 0x84},- {value: 0x446a, lo: 0x86, hi: 0x89},- {value: 0x448e, lo: 0x8a, hi: 0x8a},- {value: 0x440a, lo: 0x8b, hi: 0x8b},- {value: 0x43f2, lo: 0x8c, hi: 0x8c},- {value: 0x443a, lo: 0x8d, hi: 0x8d},- {value: 0x4464, lo: 0x8e, hi: 0x8e},- // Block 0x65, offset 0x210+ {value: 0x4450, lo: 0x80, hi: 0x81},+ {value: 0x445c, lo: 0x83, hi: 0x84},+ {value: 0x446e, lo: 0x86, hi: 0x89},+ {value: 0x4492, lo: 0x8a, hi: 0x8a},+ {value: 0x440e, lo: 0x8b, hi: 0x8b},+ {value: 0x43f6, lo: 0x8c, hi: 0x8c},+ {value: 0x443e, lo: 0x8d, hi: 0x8d},+ {value: 0x4468, lo: 0x8e, hi: 0x8e},+ // Block 0x65, offset 0x212{value: 0x0000, lo: 0x02},{value: 0x8100, lo: 0xa4, hi: 0xa5},{value: 0x8100, lo: 0xb0, hi: 0xb1},- // Block 0x66, offset 0x213+ // Block 0x66, offset 0x215{value: 0x0000, lo: 0x02},{value: 0x8100, lo: 0x9b, hi: 0x9d},{value: 0x8200, lo: 0x9e, hi: 0xa3},- // Block 0x67, offset 0x216+ // Block 0x67, offset 0x218{value: 0x0000, lo: 0x01},{value: 0x8100, lo: 0x90, hi: 0x90},- // Block 0x68, offset 0x218+ // Block 0x68, offset 0x21a{value: 0x0000, lo: 0x02},{value: 0x8100, lo: 0x99, hi: 0x99},{value: 0x8200, lo: 0xb2, hi: 0xb4},- // Block 0x69, offset 0x21b+ // Block 0x69, offset 0x21d{value: 0x0000, lo: 0x01},{value: 0x8100, lo: 0xbc, hi: 0xbd},- // Block 0x6a, offset 0x21d+ // Block 0x6a, offset 0x21f{value: 0x0000, lo: 0x03},{value: 0x8132, lo: 0xa0, hi: 0xa6},{value: 0x812d, lo: 0xa7, hi: 0xad},{value: 0x8132, lo: 0xae, hi: 0xaf},- // Block 0x6b, offset 0x221+ // Block 0x6b, offset 0x223{value: 0x0000, lo: 0x04},{value: 0x8100, lo: 0x89, hi: 0x8c},{value: 0x8100, lo: 0xb0, hi: 0xb2},{value: 0x8100, lo: 0xb4, hi: 0xb4},{value: 0x8100, lo: 0xb6, hi: 0xbf},- // Block 0x6c, offset 0x226+ // Block 0x6c, offset 0x228{value: 0x0000, lo: 0x01},{value: 0x8100, lo: 0x81, hi: 0x8c},- // Block 0x6d, offset 0x228+ // Block 0x6d, offset 0x22a{value: 0x0000, lo: 0x01},{value: 0x8100, lo: 0xb5, hi: 0xba},- // Block 0x6e, offset 0x22a+ // Block 0x6e, offset 0x22c{value: 0x0000, lo: 0x04},- {value: 0x4a7d, lo: 0x9e, hi: 0x9f},- {value: 0x4a7d, lo: 0xa3, hi: 0xa3},- {value: 0x4a7d, lo: 0xa5, hi: 0xa6},- {value: 0x4a7d, lo: 0xaa, hi: 0xaf},- // Block 0x6f, offset 0x22f+ {value: 0x4a81, lo: 0x9e, hi: 0x9f},+ {value: 0x4a81, lo: 0xa3, hi: 0xa3},+ {value: 0x4a81, lo: 0xa5, hi: 0xa6},+ {value: 0x4a81, lo: 0xaa, hi: 0xaf},+ // Block 0x6f, offset 0x231{value: 0x0000, lo: 0x05},- {value: 0x4a7d, lo: 0x82, hi: 0x87},- {value: 0x4a7d, lo: 0x8a, hi: 0x8f},- {value: 0x4a7d, lo: 0x92, hi: 0x97},- {value: 0x4a7d, lo: 0x9a, hi: 0x9c},+ {value: 0x4a81, lo: 0x82, hi: 0x87},+ {value: 0x4a81, lo: 0x8a, hi: 0x8f},+ {value: 0x4a81, lo: 0x92, hi: 0x97},+ {value: 0x4a81, lo: 0x9a, hi: 0x9c},{value: 0x8100, lo: 0xa3, hi: 0xa3},- // Block 0x70, offset 0x235+ // Block 0x70, offset 0x237{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0xbd, hi: 0xbd},- // Block 0x71, offset 0x237+ // Block 0x71, offset 0x239{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0xa0, hi: 0xa0},- // Block 0x72, offset 0x239+ // Block 0x72, offset 0x23b{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xb6, hi: 0xba},- // Block 0x73, offset 0x23b+ // Block 0x73, offset 0x23d{value: 0x002c, lo: 0x05},{value: 0x812d, lo: 0x8d, hi: 0x8d},{value: 0x8132, lo: 0x8f, hi: 0x8f},{value: 0x8132, lo: 0xb8, hi: 0xb8},{value: 0x8101, lo: 0xb9, hi: 0xba},{value: 0x8104, lo: 0xbf, hi: 0xbf},- // Block 0x74, offset 0x241+ // Block 0x74, offset 0x243{value: 0x0000, lo: 0x02},{value: 0x8132, lo: 0xa5, hi: 0xa5},{value: 0x812d, lo: 0xa6, hi: 0xa6},- // Block 0x75, offset 0x244+ // Block 0x75, offset 0x246{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x86, hi: 0x86},{value: 0x8104, lo: 0xbf, hi: 0xbf},- // Block 0x76, offset 0x247+ // Block 0x76, offset 0x249{value: 0x17fe, lo: 0x07},{value: 0xa000, lo: 0x99, hi: 0x99},- {value: 0x4234, lo: 0x9a, hi: 0x9a},+ {value: 0x4238, lo: 0x9a, hi: 0x9a},{value: 0xa000, lo: 0x9b, hi: 0x9b},- {value: 0x423e, lo: 0x9c, hi: 0x9c},+ {value: 0x4242, lo: 0x9c, hi: 0x9c},{value: 0xa000, lo: 0xa5, hi: 0xa5},- {value: 0x4248, lo: 0xab, hi: 0xab},+ {value: 0x424c, lo: 0xab, hi: 0xab},{value: 0x8104, lo: 0xb9, hi: 0xba},- // Block 0x77, offset 0x24f+ // Block 0x77, offset 0x251{value: 0x0000, lo: 0x06},{value: 0x8132, lo: 0x80, hi: 0x82},{value: 0x9900, lo: 0xa7, hi: 0xa7},- {value: 0x2d7a, lo: 0xae, hi: 0xae},- {value: 0x2d84, lo: 0xaf, hi: 0xaf},+ {value: 0x2d7e, lo: 0xae, hi: 0xae},+ {value: 0x2d88, lo: 0xaf, hi: 0xaf},{value: 0xa000, lo: 0xb1, hi: 0xb2},{value: 0x8104, lo: 0xb3, hi: 0xb4},- // Block 0x78, offset 0x256+ // Block 0x78, offset 0x258{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x80, hi: 0x80},{value: 0x8102, lo: 0x8a, hi: 0x8a},- // Block 0x79, offset 0x259+ // Block 0x79, offset 0x25b{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0xb5, hi: 0xb5},{value: 0x8102, lo: 0xb6, hi: 0xb6},- // Block 0x7a, offset 0x25c+ // Block 0x7a, offset 0x25e{value: 0x0002, lo: 0x01},{value: 0x8102, lo: 0xa9, hi: 0xaa},- // Block 0x7b, offset 0x25e+ // Block 0x7b, offset 0x260{value: 0x0000, lo: 0x07},{value: 0xa000, lo: 0x87, hi: 0x87},- {value: 0x2d8e, lo: 0x8b, hi: 0x8b},- {value: 0x2d98, lo: 0x8c, hi: 0x8c},+ {value: 0x2d92, lo: 0x8b, hi: 0x8b},+ {value: 0x2d9c, lo: 0x8c, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x97, hi: 0x97},{value: 0x8132, lo: 0xa6, hi: 0xac},{value: 0x8132, lo: 0xb0, hi: 0xb4},- // Block 0x7c, offset 0x266- {value: 0x6b5e, lo: 0x06},+ // Block 0x7c, offset 0x268+ {value: 0x0000, lo: 0x02},+ {value: 0x8104, lo: 0x82, hi: 0x82},+ {value: 0x8102, lo: 0x86, hi: 0x86},+ // Block 0x7d, offset 0x26b+ {value: 0x6b5a, lo: 0x06},{value: 0x9900, lo: 0xb0, hi: 0xb0},{value: 0xa000, lo: 0xb9, hi: 0xb9},{value: 0x9900, lo: 0xba, hi: 0xba},- {value: 0x2dac, lo: 0xbb, hi: 0xbb},- {value: 0x2da2, lo: 0xbc, hi: 0xbd},- {value: 0x2db6, lo: 0xbe, hi: 0xbe},- // Block 0x7d, offset 0x26d+ {value: 0x2db0, lo: 0xbb, hi: 0xbb},+ {value: 0x2da6, lo: 0xbc, hi: 0xbd},+ {value: 0x2dba, lo: 0xbe, hi: 0xbe},+ // Block 0x7e, offset 0x272{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x82, hi: 0x82},{value: 0x8102, lo: 0x83, hi: 0x83},- // Block 0x7e, offset 0x270+ // Block 0x7f, offset 0x275{value: 0x0000, lo: 0x05},{value: 0x9900, lo: 0xaf, hi: 0xaf},{value: 0xa000, lo: 0xb8, hi: 0xb9},- {value: 0x2dc0, lo: 0xba, hi: 0xba},- {value: 0x2dca, lo: 0xbb, hi: 0xbb},+ {value: 0x2dc4, lo: 0xba, hi: 0xba},+ {value: 0x2dce, lo: 0xbb, hi: 0xbb},{value: 0x8104, lo: 0xbf, hi: 0xbf},- // Block 0x7f, offset 0x276+ // Block 0x80, offset 0x27b{value: 0x0000, lo: 0x01},{value: 0x8102, lo: 0x80, hi: 0x80},- // Block 0x80, offset 0x278+ // Block 0x81, offset 0x27d{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0xb6, hi: 0xb6},{value: 0x8102, lo: 0xb7, hi: 0xb7},- // Block 0x81, offset 0x27b+ // Block 0x82, offset 0x280{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0xab, hi: 0xab},- // Block 0x82, offset 0x27d+ // Block 0x83, offset 0x282{value: 0x0000, lo: 0x01},{value: 0x8101, lo: 0xb0, hi: 0xb4},- // Block 0x83, offset 0x27f+ // Block 0x84, offset 0x284{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xb0, hi: 0xb6},- // Block 0x84, offset 0x281+ // Block 0x85, offset 0x286{value: 0x0000, lo: 0x01},{value: 0x8101, lo: 0x9e, hi: 0x9e},- // Block 0x85, offset 0x283+ // Block 0x86, offset 0x288{value: 0x0000, lo: 0x0c},- {value: 0x465e, lo: 0x9e, hi: 0x9e},- {value: 0x4668, lo: 0x9f, hi: 0x9f},- {value: 0x469c, lo: 0xa0, hi: 0xa0},- {value: 0x46aa, lo: 0xa1, hi: 0xa1},- {value: 0x46b8, lo: 0xa2, hi: 0xa2},- {value: 0x46c6, lo: 0xa3, hi: 0xa3},- {value: 0x46d4, lo: 0xa4, hi: 0xa4},+ {value: 0x4662, lo: 0x9e, hi: 0x9e},+ {value: 0x466c, lo: 0x9f, hi: 0x9f},+ {value: 0x46a0, lo: 0xa0, hi: 0xa0},+ {value: 0x46ae, lo: 0xa1, hi: 0xa1},+ {value: 0x46bc, lo: 0xa2, hi: 0xa2},+ {value: 0x46ca, lo: 0xa3, hi: 0xa3},+ {value: 0x46d8, lo: 0xa4, hi: 0xa4},{value: 0x812b, lo: 0xa5, hi: 0xa6},{value: 0x8101, lo: 0xa7, hi: 0xa9},{value: 0x8130, lo: 0xad, hi: 0xad},{value: 0x812b, lo: 0xae, hi: 0xb2},{value: 0x812d, lo: 0xbb, hi: 0xbf},- // Block 0x86, offset 0x290+ // Block 0x87, offset 0x295{value: 0x0000, lo: 0x09},{value: 0x812d, lo: 0x80, hi: 0x82},{value: 0x8132, lo: 0x85, hi: 0x89},{value: 0x812d, lo: 0x8a, hi: 0x8b},{value: 0x8132, lo: 0xaa, hi: 0xad},- {value: 0x4672, lo: 0xbb, hi: 0xbb},- {value: 0x467c, lo: 0xbc, hi: 0xbc},- {value: 0x46e2, lo: 0xbd, hi: 0xbd},- {value: 0x46fe, lo: 0xbe, hi: 0xbe},- {value: 0x46f0, lo: 0xbf, hi: 0xbf},- // Block 0x87, offset 0x29a+ {value: 0x4676, lo: 0xbb, hi: 0xbb},+ {value: 0x4680, lo: 0xbc, hi: 0xbc},+ {value: 0x46e6, lo: 0xbd, hi: 0xbd},+ {value: 0x4702, lo: 0xbe, hi: 0xbe},+ {value: 0x46f4, lo: 0xbf, hi: 0xbf},+ // Block 0x88, offset 0x29f{value: 0x0000, lo: 0x01},- {value: 0x470c, lo: 0x80, hi: 0x80},- // Block 0x88, offset 0x29c+ {value: 0x4710, lo: 0x80, hi: 0x80},+ // Block 0x89, offset 0x2a1{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0x82, hi: 0x84},- // Block 0x89, offset 0x29e+ // Block 0x8a, offset 0x2a3+ {value: 0x0000, lo: 0x05},+ {value: 0x8132, lo: 0x80, hi: 0x86},+ {value: 0x8132, lo: 0x88, hi: 0x98},+ {value: 0x8132, lo: 0x9b, hi: 0xa1},+ {value: 0x8132, lo: 0xa3, hi: 0xa4},+ {value: 0x8132, lo: 0xa6, hi: 0xaa},+ // Block 0x8b, offset 0x2a9{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0x90, hi: 0x96},- // Block 0x8a, offset 0x2a0+ // Block 0x8c, offset 0x2ab+ {value: 0x0000, lo: 0x02},+ {value: 0x8132, lo: 0x84, hi: 0x89},+ {value: 0x8102, lo: 0x8a, hi: 0x8a},+ // Block 0x8d, offset 0x2ae{value: 0x0000, lo: 0x01},{value: 0x8100, lo: 0x93, hi: 0x93},}@@ -4492,7 +4513,7 @@ func (t *nfkcTrie) lookupStringUnsafe(s string) uint16 {return 0}-// nfkcTrie. Total size: 16932 bytes (16.54 KiB). Checksum: 30d032c1800b8f3e.+// nfkcTrie. Total size: 16994 bytes (16.60 KiB). Checksum: 146925fc21092b17.type nfkcTrie struct{}func newNfkcTrie(i int) *nfkcTrie {@@ -4528,63 +4549,63 @@ var nfkcValues = [5888]uint16{0x76: 0xa000, 0x77: 0xa000, 0x78: 0xa000, 0x79: 0xa000, 0x7a: 0xa000,// Block 0x2, offset 0x80// Block 0x3, offset 0xc0- 0xc0: 0x2f6b, 0xc1: 0x2f70, 0xc2: 0x471a, 0xc3: 0x2f75, 0xc4: 0x4729, 0xc5: 0x472e,- 0xc6: 0xa000, 0xc7: 0x4738, 0xc8: 0x2fde, 0xc9: 0x2fe3, 0xca: 0x473d, 0xcb: 0x2ff7,- 0xcc: 0x306a, 0xcd: 0x306f, 0xce: 0x3074, 0xcf: 0x4751, 0xd1: 0x3100,- 0xd2: 0x3123, 0xd3: 0x3128, 0xd4: 0x475b, 0xd5: 0x4760, 0xd6: 0x476f,- 0xd8: 0xa000, 0xd9: 0x31af, 0xda: 0x31b4, 0xdb: 0x31b9, 0xdc: 0x47a1, 0xdd: 0x3231,- 0xe0: 0x3277, 0xe1: 0x327c, 0xe2: 0x47ab, 0xe3: 0x3281,- 0xe4: 0x47ba, 0xe5: 0x47bf, 0xe6: 0xa000, 0xe7: 0x47c9, 0xe8: 0x32ea, 0xe9: 0x32ef,- 0xea: 0x47ce, 0xeb: 0x3303, 0xec: 0x337b, 0xed: 0x3380, 0xee: 0x3385, 0xef: 0x47e2,- 0xf1: 0x3411, 0xf2: 0x3434, 0xf3: 0x3439, 0xf4: 0x47ec, 0xf5: 0x47f1,- 0xf6: 0x4800, 0xf8: 0xa000, 0xf9: 0x34c5, 0xfa: 0x34ca, 0xfb: 0x34cf,- 0xfc: 0x4832, 0xfd: 0x354c, 0xff: 0x3565,+ 0xc0: 0x2f6f, 0xc1: 0x2f74, 0xc2: 0x471e, 0xc3: 0x2f79, 0xc4: 0x472d, 0xc5: 0x4732,+ 0xc6: 0xa000, 0xc7: 0x473c, 0xc8: 0x2fe2, 0xc9: 0x2fe7, 0xca: 0x4741, 0xcb: 0x2ffb,+ 0xcc: 0x306e, 0xcd: 0x3073, 0xce: 0x3078, 0xcf: 0x4755, 0xd1: 0x3104,+ 0xd2: 0x3127, 0xd3: 0x312c, 0xd4: 0x475f, 0xd5: 0x4764, 0xd6: 0x4773,+ 0xd8: 0xa000, 0xd9: 0x31b3, 0xda: 0x31b8, 0xdb: 0x31bd, 0xdc: 0x47a5, 0xdd: 0x3235,+ 0xe0: 0x327b, 0xe1: 0x3280, 0xe2: 0x47af, 0xe3: 0x3285,+ 0xe4: 0x47be, 0xe5: 0x47c3, 0xe6: 0xa000, 0xe7: 0x47cd, 0xe8: 0x32ee, 0xe9: 0x32f3,+ 0xea: 0x47d2, 0xeb: 0x3307, 0xec: 0x337f, 0xed: 0x3384, 0xee: 0x3389, 0xef: 0x47e6,+ 0xf1: 0x3415, 0xf2: 0x3438, 0xf3: 0x343d, 0xf4: 0x47f0, 0xf5: 0x47f5,+ 0xf6: 0x4804, 0xf8: 0xa000, 0xf9: 0x34c9, 0xfa: 0x34ce, 0xfb: 0x34d3,+ 0xfc: 0x4836, 0xfd: 0x3550, 0xff: 0x3569,// Block 0x4, offset 0x100- 0x100: 0x2f7a, 0x101: 0x3286, 0x102: 0x471f, 0x103: 0x47b0, 0x104: 0x2f98, 0x105: 0x32a4,- 0x106: 0x2fac, 0x107: 0x32b8, 0x108: 0x2fb1, 0x109: 0x32bd, 0x10a: 0x2fb6, 0x10b: 0x32c2,- 0x10c: 0x2fbb, 0x10d: 0x32c7, 0x10e: 0x2fc5, 0x10f: 0x32d1,- 0x112: 0x4742, 0x113: 0x47d3, 0x114: 0x2fed, 0x115: 0x32f9, 0x116: 0x2ff2, 0x117: 0x32fe,- 0x118: 0x3010, 0x119: 0x331c, 0x11a: 0x3001, 0x11b: 0x330d, 0x11c: 0x3029, 0x11d: 0x3335,- 0x11e: 0x3033, 0x11f: 0x333f, 0x120: 0x3038, 0x121: 0x3344, 0x122: 0x3042, 0x123: 0x334e,- 0x124: 0x3047, 0x125: 0x3353, 0x128: 0x3079, 0x129: 0x338a,- 0x12a: 0x307e, 0x12b: 0x338f, 0x12c: 0x3083, 0x12d: 0x3394, 0x12e: 0x30a6, 0x12f: 0x33b2,- 0x130: 0x3088, 0x132: 0x1959, 0x133: 0x19e3, 0x134: 0x30b0, 0x135: 0x33bc,- 0x136: 0x30c4, 0x137: 0x33d5, 0x139: 0x30ce, 0x13a: 0x33df, 0x13b: 0x30d8,- 0x13c: 0x33e9, 0x13d: 0x30d3, 0x13e: 0x33e4, 0x13f: 0x1ba8,+ 0x100: 0x2f7e, 0x101: 0x328a, 0x102: 0x4723, 0x103: 0x47b4, 0x104: 0x2f9c, 0x105: 0x32a8,+ 0x106: 0x2fb0, 0x107: 0x32bc, 0x108: 0x2fb5, 0x109: 0x32c1, 0x10a: 0x2fba, 0x10b: 0x32c6,+ 0x10c: 0x2fbf, 0x10d: 0x32cb, 0x10e: 0x2fc9, 0x10f: 0x32d5,+ 0x112: 0x4746, 0x113: 0x47d7, 0x114: 0x2ff1, 0x115: 0x32fd, 0x116: 0x2ff6, 0x117: 0x3302,+ 0x118: 0x3014, 0x119: 0x3320, 0x11a: 0x3005, 0x11b: 0x3311, 0x11c: 0x302d, 0x11d: 0x3339,+ 0x11e: 0x3037, 0x11f: 0x3343, 0x120: 0x303c, 0x121: 0x3348, 0x122: 0x3046, 0x123: 0x3352,+ 0x124: 0x304b, 0x125: 0x3357, 0x128: 0x307d, 0x129: 0x338e,+ 0x12a: 0x3082, 0x12b: 0x3393, 0x12c: 0x3087, 0x12d: 0x3398, 0x12e: 0x30aa, 0x12f: 0x33b6,+ 0x130: 0x308c, 0x132: 0x195d, 0x133: 0x19e7, 0x134: 0x30b4, 0x135: 0x33c0,+ 0x136: 0x30c8, 0x137: 0x33d9, 0x139: 0x30d2, 0x13a: 0x33e3, 0x13b: 0x30dc,+ 0x13c: 0x33ed, 0x13d: 0x30d7, 0x13e: 0x33e8, 0x13f: 0x1bac,// Block 0x5, offset 0x140- 0x140: 0x1c30, 0x143: 0x30fb, 0x144: 0x340c, 0x145: 0x3114,- 0x146: 0x3425, 0x147: 0x310a, 0x148: 0x341b, 0x149: 0x1c58,- 0x14c: 0x4765, 0x14d: 0x47f6, 0x14e: 0x312d, 0x14f: 0x343e, 0x150: 0x3137, 0x151: 0x3448,- 0x154: 0x3155, 0x155: 0x3466, 0x156: 0x316e, 0x157: 0x347f,- 0x158: 0x315f, 0x159: 0x3470, 0x15a: 0x4788, 0x15b: 0x4819, 0x15c: 0x3178, 0x15d: 0x3489,- 0x15e: 0x3187, 0x15f: 0x3498, 0x160: 0x478d, 0x161: 0x481e, 0x162: 0x31a0, 0x163: 0x34b6,- 0x164: 0x3191, 0x165: 0x34a7, 0x168: 0x4797, 0x169: 0x4828,- 0x16a: 0x479c, 0x16b: 0x482d, 0x16c: 0x31be, 0x16d: 0x34d4, 0x16e: 0x31c8, 0x16f: 0x34de,- 0x170: 0x31cd, 0x171: 0x34e3, 0x172: 0x31eb, 0x173: 0x3501, 0x174: 0x320e, 0x175: 0x3524,- 0x176: 0x3236, 0x177: 0x3551, 0x178: 0x324a, 0x179: 0x3259, 0x17a: 0x3579, 0x17b: 0x3263,- 0x17c: 0x3583, 0x17d: 0x3268, 0x17e: 0x3588, 0x17f: 0x00a7,+ 0x140: 0x1c34, 0x143: 0x30ff, 0x144: 0x3410, 0x145: 0x3118,+ 0x146: 0x3429, 0x147: 0x310e, 0x148: 0x341f, 0x149: 0x1c5c,+ 0x14c: 0x4769, 0x14d: 0x47fa, 0x14e: 0x3131, 0x14f: 0x3442, 0x150: 0x313b, 0x151: 0x344c,+ 0x154: 0x3159, 0x155: 0x346a, 0x156: 0x3172, 0x157: 0x3483,+ 0x158: 0x3163, 0x159: 0x3474, 0x15a: 0x478c, 0x15b: 0x481d, 0x15c: 0x317c, 0x15d: 0x348d,+ 0x15e: 0x318b, 0x15f: 0x349c, 0x160: 0x4791, 0x161: 0x4822, 0x162: 0x31a4, 0x163: 0x34ba,+ 0x164: 0x3195, 0x165: 0x34ab, 0x168: 0x479b, 0x169: 0x482c,+ 0x16a: 0x47a0, 0x16b: 0x4831, 0x16c: 0x31c2, 0x16d: 0x34d8, 0x16e: 0x31cc, 0x16f: 0x34e2,+ 0x170: 0x31d1, 0x171: 0x34e7, 0x172: 0x31ef, 0x173: 0x3505, 0x174: 0x3212, 0x175: 0x3528,+ 0x176: 0x323a, 0x177: 0x3555, 0x178: 0x324e, 0x179: 0x325d, 0x17a: 0x357d, 0x17b: 0x3267,+ 0x17c: 0x3587, 0x17d: 0x326c, 0x17e: 0x358c, 0x17f: 0x00a7,// Block 0x6, offset 0x180- 0x184: 0x2dea, 0x185: 0x2df0,- 0x186: 0x2df6, 0x187: 0x196e, 0x188: 0x1971, 0x189: 0x1a04, 0x18a: 0x1983, 0x18b: 0x1986,- 0x18c: 0x1a3a, 0x18d: 0x2f84, 0x18e: 0x3290, 0x18f: 0x3092, 0x190: 0x339e, 0x191: 0x313c,- 0x192: 0x344d, 0x193: 0x31d2, 0x194: 0x34e8, 0x195: 0x39cb, 0x196: 0x3b5a, 0x197: 0x39c4,- 0x198: 0x3b53, 0x199: 0x39d2, 0x19a: 0x3b61, 0x19b: 0x39bd, 0x19c: 0x3b4c,- 0x19e: 0x38ac, 0x19f: 0x3a3b, 0x1a0: 0x38a5, 0x1a1: 0x3a34, 0x1a2: 0x35af, 0x1a3: 0x35c1,- 0x1a6: 0x303d, 0x1a7: 0x3349, 0x1a8: 0x30ba, 0x1a9: 0x33cb,- 0x1aa: 0x477e, 0x1ab: 0x480f, 0x1ac: 0x398c, 0x1ad: 0x3b1b, 0x1ae: 0x35d3, 0x1af: 0x35d9,- 0x1b0: 0x33c1, 0x1b1: 0x193e, 0x1b2: 0x1941, 0x1b3: 0x19cb, 0x1b4: 0x3024, 0x1b5: 0x3330,- 0x1b8: 0x30f6, 0x1b9: 0x3407, 0x1ba: 0x38b3, 0x1bb: 0x3a42,- 0x1bc: 0x35a9, 0x1bd: 0x35bb, 0x1be: 0x35b5, 0x1bf: 0x35c7,+ 0x184: 0x2dee, 0x185: 0x2df4,+ 0x186: 0x2dfa, 0x187: 0x1972, 0x188: 0x1975, 0x189: 0x1a08, 0x18a: 0x1987, 0x18b: 0x198a,+ 0x18c: 0x1a3e, 0x18d: 0x2f88, 0x18e: 0x3294, 0x18f: 0x3096, 0x190: 0x33a2, 0x191: 0x3140,+ 0x192: 0x3451, 0x193: 0x31d6, 0x194: 0x34ec, 0x195: 0x39cf, 0x196: 0x3b5e, 0x197: 0x39c8,+ 0x198: 0x3b57, 0x199: 0x39d6, 0x19a: 0x3b65, 0x19b: 0x39c1, 0x19c: 0x3b50,+ 0x19e: 0x38b0, 0x19f: 0x3a3f, 0x1a0: 0x38a9, 0x1a1: 0x3a38, 0x1a2: 0x35b3, 0x1a3: 0x35c5,+ 0x1a6: 0x3041, 0x1a7: 0x334d, 0x1a8: 0x30be, 0x1a9: 0x33cf,+ 0x1aa: 0x4782, 0x1ab: 0x4813, 0x1ac: 0x3990, 0x1ad: 0x3b1f, 0x1ae: 0x35d7, 0x1af: 0x35dd,+ 0x1b0: 0x33c5, 0x1b1: 0x1942, 0x1b2: 0x1945, 0x1b3: 0x19cf, 0x1b4: 0x3028, 0x1b5: 0x3334,+ 0x1b8: 0x30fa, 0x1b9: 0x340b, 0x1ba: 0x38b7, 0x1bb: 0x3a46,+ 0x1bc: 0x35ad, 0x1bd: 0x35bf, 0x1be: 0x35b9, 0x1bf: 0x35cb,// Block 0x7, offset 0x1c0- 0x1c0: 0x2f89, 0x1c1: 0x3295, 0x1c2: 0x2f8e, 0x1c3: 0x329a, 0x1c4: 0x3006, 0x1c5: 0x3312,- 0x1c6: 0x300b, 0x1c7: 0x3317, 0x1c8: 0x3097, 0x1c9: 0x33a3, 0x1ca: 0x309c, 0x1cb: 0x33a8,- 0x1cc: 0x3141, 0x1cd: 0x3452, 0x1ce: 0x3146, 0x1cf: 0x3457, 0x1d0: 0x3164, 0x1d1: 0x3475,- 0x1d2: 0x3169, 0x1d3: 0x347a, 0x1d4: 0x31d7, 0x1d5: 0x34ed, 0x1d6: 0x31dc, 0x1d7: 0x34f2,- 0x1d8: 0x3182, 0x1d9: 0x3493, 0x1da: 0x319b, 0x1db: 0x34b1,- 0x1de: 0x3056, 0x1df: 0x3362,- 0x1e6: 0x4724, 0x1e7: 0x47b5, 0x1e8: 0x474c, 0x1e9: 0x47dd,- 0x1ea: 0x395b, 0x1eb: 0x3aea, 0x1ec: 0x3938, 0x1ed: 0x3ac7, 0x1ee: 0x476a, 0x1ef: 0x47fb,- 0x1f0: 0x3954, 0x1f1: 0x3ae3, 0x1f2: 0x3240, 0x1f3: 0x355b,+ 0x1c0: 0x2f8d, 0x1c1: 0x3299, 0x1c2: 0x2f92, 0x1c3: 0x329e, 0x1c4: 0x300a, 0x1c5: 0x3316,+ 0x1c6: 0x300f, 0x1c7: 0x331b, 0x1c8: 0x309b, 0x1c9: 0x33a7, 0x1ca: 0x30a0, 0x1cb: 0x33ac,+ 0x1cc: 0x3145, 0x1cd: 0x3456, 0x1ce: 0x314a, 0x1cf: 0x345b, 0x1d0: 0x3168, 0x1d1: 0x3479,+ 0x1d2: 0x316d, 0x1d3: 0x347e, 0x1d4: 0x31db, 0x1d5: 0x34f1, 0x1d6: 0x31e0, 0x1d7: 0x34f6,+ 0x1d8: 0x3186, 0x1d9: 0x3497, 0x1da: 0x319f, 0x1db: 0x34b5,+ 0x1de: 0x305a, 0x1df: 0x3366,+ 0x1e6: 0x4728, 0x1e7: 0x47b9, 0x1e8: 0x4750, 0x1e9: 0x47e1,+ 0x1ea: 0x395f, 0x1eb: 0x3aee, 0x1ec: 0x393c, 0x1ed: 0x3acb, 0x1ee: 0x476e, 0x1ef: 0x47ff,+ 0x1f0: 0x3958, 0x1f1: 0x3ae7, 0x1f2: 0x3244, 0x1f3: 0x355f,// Block 0x8, offset 0x2000x200: 0x9932, 0x201: 0x9932, 0x202: 0x9932, 0x203: 0x9932, 0x204: 0x9932, 0x205: 0x8132,0x206: 0x9932, 0x207: 0x9932, 0x208: 0x9932, 0x209: 0x9932, 0x20a: 0x9932, 0x20b: 0x9932,@@ -4598,7 +4619,7 @@ var nfkcValues = [5888]uint16{0x236: 0x8101, 0x237: 0x8101, 0x238: 0x9901, 0x239: 0x812d, 0x23a: 0x812d, 0x23b: 0x812d,0x23c: 0x812d, 0x23d: 0x8132, 0x23e: 0x8132, 0x23f: 0x8132,// Block 0x9, offset 0x240- 0x240: 0x4a40, 0x241: 0x4a45, 0x242: 0x9932, 0x243: 0x4a4a, 0x244: 0x4a4f, 0x245: 0x9936,+ 0x240: 0x4a44, 0x241: 0x4a49, 0x242: 0x9932, 0x243: 0x4a4e, 0x244: 0x4a53, 0x245: 0x9936,0x246: 0x8132, 0x247: 0x812d, 0x248: 0x812d, 0x249: 0x812d, 0x24a: 0x8132, 0x24b: 0x8132,0x24c: 0x8132, 0x24d: 0x812d, 0x24e: 0x812d, 0x250: 0x8132, 0x251: 0x8132,0x252: 0x8132, 0x253: 0x812d, 0x254: 0x812d, 0x255: 0x812d, 0x256: 0x812d, 0x257: 0x8132,@@ -4607,51 +4628,51 @@ var nfkcValues = [5888]uint16{0x264: 0x8132, 0x265: 0x8132, 0x266: 0x8132, 0x267: 0x8132, 0x268: 0x8132, 0x269: 0x8132,0x26a: 0x8132, 0x26b: 0x8132, 0x26c: 0x8132, 0x26d: 0x8132, 0x26e: 0x8132, 0x26f: 0x8132,0x274: 0x0170,- 0x27a: 0x42a1,+ 0x27a: 0x42a5,0x27e: 0x0037,// Block 0xa, offset 0x280- 0x284: 0x4256, 0x285: 0x450d,- 0x286: 0x35e5, 0x287: 0x00ce, 0x288: 0x3603, 0x289: 0x360f, 0x28a: 0x3621,- 0x28c: 0x363f, 0x28e: 0x3651, 0x28f: 0x366f, 0x290: 0x3e04, 0x291: 0xa000,+ 0x284: 0x425a, 0x285: 0x4511,+ 0x286: 0x35e9, 0x287: 0x00ce, 0x288: 0x3607, 0x289: 0x3613, 0x28a: 0x3625,+ 0x28c: 0x3643, 0x28e: 0x3655, 0x28f: 0x3673, 0x290: 0x3e08, 0x291: 0xa000,0x295: 0xa000, 0x297: 0xa000,0x299: 0xa000,0x29f: 0xa000, 0x2a1: 0xa000,0x2a5: 0xa000, 0x2a9: 0xa000,- 0x2aa: 0x3633, 0x2ab: 0x3663, 0x2ac: 0x4890, 0x2ad: 0x3693, 0x2ae: 0x48ba, 0x2af: 0x36a5,- 0x2b0: 0x3e6c, 0x2b1: 0xa000, 0x2b5: 0xa000,+ 0x2aa: 0x3637, 0x2ab: 0x3667, 0x2ac: 0x4894, 0x2ad: 0x3697, 0x2ae: 0x48be, 0x2af: 0x36a9,+ 0x2b0: 0x3e70, 0x2b1: 0xa000, 0x2b5: 0xa000,0x2b7: 0xa000, 0x2b9: 0xa000,0x2bf: 0xa000,// Block 0xb, offset 0x2c00x2c1: 0xa000, 0x2c5: 0xa000,- 0x2c9: 0xa000, 0x2ca: 0x48d2, 0x2cb: 0x48f0,- 0x2cc: 0x36c3, 0x2cd: 0x36db, 0x2ce: 0x4908, 0x2d0: 0x01be, 0x2d1: 0x01d0,- 0x2d2: 0x01ac, 0x2d3: 0x439e, 0x2d4: 0x43a4, 0x2d5: 0x01fa, 0x2d6: 0x01e8,+ 0x2c9: 0xa000, 0x2ca: 0x48d6, 0x2cb: 0x48f4,+ 0x2cc: 0x36c7, 0x2cd: 0x36df, 0x2ce: 0x490c, 0x2d0: 0x01be, 0x2d1: 0x01d0,+ 0x2d2: 0x01ac, 0x2d3: 0x43a2, 0x2d4: 0x43a8, 0x2d5: 0x01fa, 0x2d6: 0x01e8,0x2f0: 0x01d6, 0x2f1: 0x01eb, 0x2f2: 0x01ee, 0x2f4: 0x0188, 0x2f5: 0x01c7,0x2f9: 0x01a6,// Block 0xc, offset 0x300- 0x300: 0x371d, 0x301: 0x3729, 0x303: 0x3717,- 0x306: 0xa000, 0x307: 0x3705,- 0x30c: 0x3759, 0x30d: 0x3741, 0x30e: 0x376b, 0x310: 0xa000,+ 0x300: 0x3721, 0x301: 0x372d, 0x303: 0x371b,+ 0x306: 0xa000, 0x307: 0x3709,+ 0x30c: 0x375d, 0x30d: 0x3745, 0x30e: 0x376f, 0x310: 0xa000,0x313: 0xa000, 0x315: 0xa000, 0x316: 0xa000, 0x317: 0xa000,- 0x318: 0xa000, 0x319: 0x374d, 0x31a: 0xa000,+ 0x318: 0xa000, 0x319: 0x3751, 0x31a: 0xa000,0x31e: 0xa000, 0x323: 0xa000,0x327: 0xa000,0x32b: 0xa000, 0x32d: 0xa000,0x330: 0xa000, 0x333: 0xa000, 0x335: 0xa000,- 0x336: 0xa000, 0x337: 0xa000, 0x338: 0xa000, 0x339: 0x37d1, 0x33a: 0xa000,+ 0x336: 0xa000, 0x337: 0xa000, 0x338: 0xa000, 0x339: 0x37d5, 0x33a: 0xa000,0x33e: 0xa000,// Block 0xd, offset 0x340- 0x341: 0x372f, 0x342: 0x37b3,- 0x350: 0x370b, 0x351: 0x378f,- 0x352: 0x3711, 0x353: 0x3795, 0x356: 0x3723, 0x357: 0x37a7,- 0x358: 0xa000, 0x359: 0xa000, 0x35a: 0x3825, 0x35b: 0x382b, 0x35c: 0x3735, 0x35d: 0x37b9,- 0x35e: 0x373b, 0x35f: 0x37bf, 0x362: 0x3747, 0x363: 0x37cb,- 0x364: 0x3753, 0x365: 0x37d7, 0x366: 0x375f, 0x367: 0x37e3, 0x368: 0xa000, 0x369: 0xa000,- 0x36a: 0x3831, 0x36b: 0x3837, 0x36c: 0x3789, 0x36d: 0x380d, 0x36e: 0x3765, 0x36f: 0x37e9,- 0x370: 0x3771, 0x371: 0x37f5, 0x372: 0x3777, 0x373: 0x37fb, 0x374: 0x377d, 0x375: 0x3801,- 0x378: 0x3783, 0x379: 0x3807,+ 0x341: 0x3733, 0x342: 0x37b7,+ 0x350: 0x370f, 0x351: 0x3793,+ 0x352: 0x3715, 0x353: 0x3799, 0x356: 0x3727, 0x357: 0x37ab,+ 0x358: 0xa000, 0x359: 0xa000, 0x35a: 0x3829, 0x35b: 0x382f, 0x35c: 0x3739, 0x35d: 0x37bd,+ 0x35e: 0x373f, 0x35f: 0x37c3, 0x362: 0x374b, 0x363: 0x37cf,+ 0x364: 0x3757, 0x365: 0x37db, 0x366: 0x3763, 0x367: 0x37e7, 0x368: 0xa000, 0x369: 0xa000,+ 0x36a: 0x3835, 0x36b: 0x383b, 0x36c: 0x378d, 0x36d: 0x3811, 0x36e: 0x3769, 0x36f: 0x37ed,+ 0x370: 0x3775, 0x371: 0x37f9, 0x372: 0x377b, 0x373: 0x37ff, 0x374: 0x3781, 0x375: 0x3805,+ 0x378: 0x3787, 0x379: 0x380b,// Block 0xe, offset 0x380- 0x387: 0x1d5d,+ 0x387: 0x1d61,0x391: 0x812d,0x392: 0x8132, 0x393: 0x8132, 0x394: 0x8132, 0x395: 0x8132, 0x396: 0x812d, 0x397: 0x8132,0x398: 0x8132, 0x399: 0x8132, 0x39a: 0x812e, 0x39b: 0x812d, 0x39c: 0x8132, 0x39d: 0x8132,@@ -4667,16 +4688,16 @@ var nfkcValues = [5888]uint16{0x3d2: 0x811d, 0x3d3: 0x9932, 0x3d4: 0x9932, 0x3d5: 0x992d, 0x3d6: 0x812d, 0x3d7: 0x8132,0x3d8: 0x8132, 0x3d9: 0x8132, 0x3da: 0x8132, 0x3db: 0x8132, 0x3dc: 0x812d, 0x3dd: 0x8132,0x3de: 0x8132, 0x3df: 0x812d,- 0x3f0: 0x811e, 0x3f5: 0x1d80,- 0x3f6: 0x200f, 0x3f7: 0x204b, 0x3f8: 0x2046,+ 0x3f0: 0x811e, 0x3f5: 0x1d84,+ 0x3f6: 0x2013, 0x3f7: 0x204f, 0x3f8: 0x204a,// Block 0x10, offset 0x4000x405: 0xa000,- 0x406: 0x2d22, 0x407: 0xa000, 0x408: 0x2d2a, 0x409: 0xa000, 0x40a: 0x2d32, 0x40b: 0xa000,- 0x40c: 0x2d3a, 0x40d: 0xa000, 0x40e: 0x2d42, 0x411: 0xa000,- 0x412: 0x2d4a,+ 0x406: 0x2d26, 0x407: 0xa000, 0x408: 0x2d2e, 0x409: 0xa000, 0x40a: 0x2d36, 0x40b: 0xa000,+ 0x40c: 0x2d3e, 0x40d: 0xa000, 0x40e: 0x2d46, 0x411: 0xa000,+ 0x412: 0x2d4e,0x434: 0x8102, 0x435: 0x9900,- 0x43a: 0xa000, 0x43b: 0x2d52,- 0x43c: 0xa000, 0x43d: 0x2d5a, 0x43e: 0xa000, 0x43f: 0xa000,+ 0x43a: 0xa000, 0x43b: 0x2d56,+ 0x43c: 0xa000, 0x43d: 0x2d5e, 0x43e: 0xa000, 0x43f: 0xa000,// Block 0x11, offset 0x4400x440: 0x0069, 0x441: 0x006b, 0x442: 0x006f, 0x443: 0x0083, 0x444: 0x00f5, 0x445: 0x00f8,0x446: 0x0413, 0x447: 0x0085, 0x448: 0x0089, 0x449: 0x008b, 0x44a: 0x0104, 0x44b: 0x0107,@@ -4696,160 +4717,160 @@ var nfkcValues = [5888]uint16{0x4b6: 0x0152, 0x4b7: 0x0155, 0x4b8: 0x041f, 0x4b9: 0x0158, 0x4ba: 0x015b, 0x4bb: 0x00b5,0x4bc: 0x015e, 0x4bd: 0x0161, 0x4be: 0x0164, 0x4bf: 0x01d0,// Block 0x13, offset 0x4c0- 0x4c0: 0x2f93, 0x4c1: 0x329f, 0x4c2: 0x2f9d, 0x4c3: 0x32a9, 0x4c4: 0x2fa2, 0x4c5: 0x32ae,- 0x4c6: 0x2fa7, 0x4c7: 0x32b3, 0x4c8: 0x38c8, 0x4c9: 0x3a57, 0x4ca: 0x2fc0, 0x4cb: 0x32cc,- 0x4cc: 0x2fca, 0x4cd: 0x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6, 0x4d7: 0x3a85,+ 0x4d8: 0x3019, 0x4d9: 0x3325, 0x4da: 0x301e, 0x4db: 0x332a, 0x4dc: 0x3904, 0x4dd: 0x3a93,+ 0x4de: 0x3023, 0x4df: 0x332f, 0x4e0: 0x3032, 0x4e1: 0x333e, 0x4e2: 0x3050, 0x4e3: 0x335c,+ 0x4e4: 0x305f, 0x4e5: 0x336b, 0x4e6: 0x3055, 0x4e7: 0x3361, 0x4e8: 0x3064, 0x4e9: 0x3370,+ 0x4ea: 0x3069, 0x4eb: 0x3375, 0x4ec: 0x30af, 0x4ed: 0x33bb, 0x4ee: 0x390b, 0x4ef: 0x3a9a,+ 0x4f0: 0x30b9, 0x4f1: 0x33ca, 0x4f2: 0x30c3, 0x4f3: 0x33d4, 0x4f4: 0x30cd, 0x4f5: 0x33de,+ 0x4f6: 0x475a, 0x4f7: 0x47eb, 0x4f8: 0x3912, 0x4f9: 0x3aa1, 0x4fa: 0x30e6, 0x4fb: 0x33f7,+ 0x4fc: 0x30e1, 0x4fd: 0x33f2, 0x4fe: 0x30eb, 0x4ff: 0x33fc,// Block 0x14, offset 0x500- 0x500: 0x30ec, 0x501: 0x33fd, 0x502: 0x30f1, 0x503: 0x3402, 0x504: 0x3105, 0x505: 0x3416,- 0x506: 0x310f, 0x507: 0x3420, 0x508: 0x311e, 0x509: 0x342f, 0x50a: 0x3119, 0x50b: 0x342a,- 0x50c: 0x3931, 0x50d: 0x3ac0, 0x50e: 0x393f, 0x50f: 0x3ace, 0x510: 0x3946, 0x511: 0x3ad5,- 0x512: 0x394d, 0x513: 0x3adc, 0x514: 0x314b, 0x515: 0x345c, 0x516: 0x3150, 0x517: 0x3461,- 0x518: 0x315a, 0x519: 0x346b, 0x51a: 0x4783, 0x51b: 0x4814, 0x51c: 0x3993, 0x51d: 0x3b22,- 0x51e: 0x3173, 0x51f: 0x3484, 0x520: 0x317d, 0x521: 0x348e, 0x522: 0x4792, 0x523: 0x4823,- 0x524: 0x399a, 0x525: 0x3b29, 0x526: 0x39a1, 0x527: 0x3b30, 0x528: 0x39a8, 0x529: 0x3b37,- 0x52a: 0x318c, 0x52b: 0x349d, 0x52c: 0x3196, 0x52d: 0x34ac, 0x52e: 0x31aa, 0x52f: 0x34c0,- 0x530: 0x31a5, 0x531: 0x34bb, 0x532: 0x31e6, 0x533: 0x34fc, 0x534: 0x31f5, 0x535: 0x350b,- 0x536: 0x31f0, 0x537: 0x3506, 0x538: 0x39af, 0x539: 0x3b3e, 0x53a: 0x39b6, 0x53b: 0x3b45,- 0x53c: 0x31fa, 0x53d: 0x3510, 0x53e: 0x31ff, 0x53f: 0x3515,+ 0x500: 0x30f0, 0x501: 0x3401, 0x502: 0x30f5, 0x503: 0x3406, 0x504: 0x3109, 0x505: 0x341a,+ 0x506: 0x3113, 0x507: 0x3424, 0x508: 0x3122, 0x509: 0x3433, 0x50a: 0x311d, 0x50b: 0x342e,+ 0x50c: 0x3935, 0x50d: 0x3ac4, 0x50e: 0x3943, 0x50f: 0x3ad2, 0x510: 0x394a, 0x511: 0x3ad9,+ 0x512: 0x3951, 0x513: 0x3ae0, 0x514: 0x314f, 0x515: 0x3460, 0x516: 0x3154, 0x517: 0x3465,+ 0x518: 0x315e, 0x519: 0x346f, 0x51a: 0x4787, 0x51b: 0x4818, 0x51c: 0x3997, 0x51d: 0x3b26,+ 0x51e: 0x3177, 0x51f: 0x3488, 0x520: 0x3181, 0x521: 0x3492, 0x522: 0x4796, 0x523: 0x4827,+ 0x524: 0x399e, 0x525: 0x3b2d, 0x526: 0x39a5, 0x527: 0x3b34, 0x528: 0x39ac, 0x529: 0x3b3b,+ 0x52a: 0x3190, 0x52b: 0x34a1, 0x52c: 0x319a, 0x52d: 0x34b0, 0x52e: 0x31ae, 0x52f: 0x34c4,+ 0x530: 0x31a9, 0x531: 0x34bf, 0x532: 0x31ea, 0x533: 0x3500, 0x534: 0x31f9, 0x535: 0x350f,+ 0x536: 0x31f4, 0x537: 0x350a, 0x538: 0x39b3, 0x539: 0x3b42, 0x53a: 0x39ba, 0x53b: 0x3b49,+ 0x53c: 0x31fe, 0x53d: 0x3514, 0x53e: 0x3203, 0x53f: 0x3519,// Block 0x15, offset 0x540- 0x540: 0x3204, 0x541: 0x351a, 0x542: 0x3209, 0x543: 0x351f, 0x544: 0x3218, 0x545: 0x352e,- 0x546: 0x3213, 0x547: 0x3529, 0x548: 0x321d, 0x549: 0x3538, 0x54a: 0x3222, 0x54b: 0x353d,- 0x54c: 0x3227, 0x54d: 0x3542, 0x54e: 0x3245, 0x54f: 0x3560, 0x550: 0x325e, 0x551: 0x357e,- 0x552: 0x326d, 0x553: 0x358d, 0x554: 0x3272, 0x555: 0x3592, 0x556: 0x3376, 0x557: 0x34a2,- 0x558: 0x3533, 0x559: 0x356f, 0x55a: 0x1bdc, 0x55b: 0x42d3,- 0x560: 0x4733, 0x561: 0x47c4, 0x562: 0x2f7f, 0x563: 0x328b,- 0x564: 0x3874, 0x565: 0x3a03, 0x566: 0x386d, 0x567: 0x39fc, 0x568: 0x3882, 0x569: 0x3a11,- 0x56a: 0x387b, 0x56b: 0x3a0a, 0x56c: 0x38ba, 0x56d: 0x3a49, 0x56e: 0x3890, 0x56f: 0x3a1f,- 0x570: 0x3889, 0x571: 0x3a18, 0x572: 0x389e, 0x573: 0x3a2d, 0x574: 0x3897, 0x575: 0x3a26,- 0x576: 0x38c1, 0x577: 0x3a50, 0x578: 0x4747, 0x579: 0x47d8, 0x57a: 0x2ffc, 0x57b: 0x3308,- 0x57c: 0x2fe8, 0x57d: 0x32f4, 0x57e: 0x38d6, 0x57f: 0x3a65,+ 0x540: 0x3208, 0x541: 0x351e, 0x542: 0x320d, 0x543: 0x3523, 0x544: 0x321c, 0x545: 0x3532,+ 0x546: 0x3217, 0x547: 0x352d, 0x548: 0x3221, 0x549: 0x353c, 0x54a: 0x3226, 0x54b: 0x3541,+ 0x54c: 0x322b, 0x54d: 0x3546, 0x54e: 0x3249, 0x54f: 0x3564, 0x550: 0x3262, 0x551: 0x3582,+ 0x552: 0x3271, 0x553: 0x3591, 0x554: 0x3276, 0x555: 0x3596, 0x556: 0x337a, 0x557: 0x34a6,+ 0x558: 0x3537, 0x559: 0x3573, 0x55a: 0x1be0, 0x55b: 0x42d7,+ 0x560: 0x4737, 0x561: 0x47c8, 0x562: 0x2f83, 0x563: 0x328f,+ 0x564: 0x3878, 0x565: 0x3a07, 0x566: 0x3871, 0x567: 0x3a00, 0x568: 0x3886, 0x569: 0x3a15,+ 0x56a: 0x387f, 0x56b: 0x3a0e, 0x56c: 0x38be, 0x56d: 0x3a4d, 0x56e: 0x3894, 0x56f: 0x3a23,+ 0x570: 0x388d, 0x571: 0x3a1c, 0x572: 0x38a2, 0x573: 0x3a31, 0x574: 0x389b, 0x575: 0x3a2a,+ 0x576: 0x38c5, 0x577: 0x3a54, 0x578: 0x474b, 0x579: 0x47dc, 0x57a: 0x3000, 0x57b: 0x330c,+ 0x57c: 0x2fec, 0x57d: 0x32f8, 0x57e: 0x38da, 0x57f: 0x3a69,// Block 0x16, offset 0x580- 0x580: 0x38cf, 0x581: 0x3a5e, 0x582: 0x38e4, 0x583: 0x3a73, 0x584: 0x38dd, 0x585: 0x3a6c,- 0x586: 0x38f9, 0x587: 0x3a88, 0x588: 0x308d, 0x589: 0x3399, 0x58a: 0x30a1, 0x58b: 0x33ad,- 0x58c: 0x4779, 0x58d: 0x480a, 0x58e: 0x3132, 0x58f: 0x3443, 0x590: 0x391c, 0x591: 0x3aab,- 0x592: 0x3915, 0x593: 0x3aa4, 0x594: 0x392a, 0x595: 0x3ab9, 0x596: 0x3923, 0x597: 0x3ab2,- 0x598: 0x3985, 0x599: 0x3b14, 0x59a: 0x3969, 0x59b: 0x3af8, 0x59c: 0x3962, 0x59d: 0x3af1,- 0x59e: 0x3977, 0x59f: 0x3b06, 0x5a0: 0x3970, 0x5a1: 0x3aff, 0x5a2: 0x397e, 0x5a3: 0x3b0d,- 0x5a4: 0x31e1, 0x5a5: 0x34f7, 0x5a6: 0x31c3, 0x5a7: 0x34d9, 0x5a8: 0x39e0, 0x5a9: 0x3b6f,- 0x5aa: 0x39d9, 0x5ab: 0x3b68, 0x5ac: 0x39ee, 0x5ad: 0x3b7d, 0x5ae: 0x39e7, 0x5af: 0x3b76,- 0x5b0: 0x39f5, 0x5b1: 0x3b84, 0x5b2: 0x322c, 0x5b3: 0x3547, 0x5b4: 0x3254, 0x5b5: 0x3574,- 0x5b6: 0x324f, 0x5b7: 0x356a, 0x5b8: 0x323b, 0x5b9: 0x3556,+ 0x580: 0x38d3, 0x581: 0x3a62, 0x582: 0x38e8, 0x583: 0x3a77, 0x584: 0x38e1, 0x585: 0x3a70,+ 0x586: 0x38fd, 0x587: 0x3a8c, 0x588: 0x3091, 0x589: 0x339d, 0x58a: 0x30a5, 0x58b: 0x33b1,+ 0x58c: 0x477d, 0x58d: 0x480e, 0x58e: 0x3136, 0x58f: 0x3447, 0x590: 0x3920, 0x591: 0x3aaf,+ 0x592: 0x3919, 0x593: 0x3aa8, 0x594: 0x392e, 0x595: 0x3abd, 0x596: 0x3927, 0x597: 0x3ab6,+ 0x598: 0x3989, 0x599: 0x3b18, 0x59a: 0x396d, 0x59b: 0x3afc, 0x59c: 0x3966, 0x59d: 0x3af5,+ 0x59e: 0x397b, 0x59f: 0x3b0a, 0x5a0: 0x3974, 0x5a1: 0x3b03, 0x5a2: 0x3982, 0x5a3: 0x3b11,+ 0x5a4: 0x31e5, 0x5a5: 0x34fb, 0x5a6: 0x31c7, 0x5a7: 0x34dd, 0x5a8: 0x39e4, 0x5a9: 0x3b73,+ 0x5aa: 0x39dd, 0x5ab: 0x3b6c, 0x5ac: 0x39f2, 0x5ad: 0x3b81, 0x5ae: 0x39eb, 0x5af: 0x3b7a,+ 0x5b0: 0x39f9, 0x5b1: 0x3b88, 0x5b2: 0x3230, 0x5b3: 0x354b, 0x5b4: 0x3258, 0x5b5: 0x3578,+ 0x5b6: 0x3253, 0x5b7: 0x356e, 0x5b8: 0x323f, 0x5b9: 0x355a,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0x5cc: 0x492c, 0x5cd: 0x4944, 0x5ce: 0x4934, 0x5cf: 0x494c, 0x5d0: 0x48ac, 0x5d1: 0x48b2,+ 0x5d2: 0x3db8, 0x5d3: 0x3dc8, 0x5d4: 0x3dc0, 0x5d5: 0x3dd0,+ 0x5d8: 0x484c, 0x5d9: 0x4852, 0x5da: 0x3ce8, 0x5db: 0x3cf8, 0x5dc: 0x3cf0, 0x5dd: 0x3d00,+ 0x5e0: 0x48c4, 0x5e1: 0x48ca, 0x5e2: 0x49e4, 0x5e3: 0x49fc,+ 0x5e4: 0x49ec, 0x5e5: 0x4a04, 0x5e6: 0x49f4, 0x5e7: 0x4a0c, 0x5e8: 0x4858, 0x5e9: 0x485e,+ 0x5ea: 0x4954, 0x5eb: 0x496c, 0x5ec: 0x495c, 0x5ed: 0x4974, 0x5ee: 0x4964, 0x5ef: 0x497c,+ 0x5f0: 0x48dc, 0x5f1: 0x48e2, 0x5f2: 0x3e18, 0x5f3: 0x3e30, 0x5f4: 0x3e20, 0x5f5: 0x3e38,+ 0x5f6: 0x3e28, 0x5f7: 0x3e40, 0x5f8: 0x4864, 0x5f9: 0x486a, 0x5fa: 0x3d18, 0x5fb: 0x3d30,+ 0x5fc: 0x3d20, 0x5fd: 0x3d38, 0x5fe: 0x3d28, 0x5ff: 0x3d40,// Block 0x18, offset 0x600- 0x600: 0x48e4, 0x601: 0x48ea, 0x602: 0x3e44, 0x603: 0x3e54, 0x604: 0x3e4c, 0x605: 0x3e5c,- 0x608: 0x486c, 0x609: 0x4872, 0x60a: 0x3d44, 0x60b: 0x3d54,- 0x60c: 0x3d4c, 0x60d: 0x3d5c, 0x610: 0x48f6, 0x611: 0x48fc,- 0x612: 0x3e7c, 0x613: 0x3e94, 0x614: 0x3e84, 0x615: 0x3e9c, 0x616: 0x3e8c, 0x617: 0x3ea4,- 0x619: 0x4878, 0x61b: 0x3d64, 0x61d: 0x3d6c,- 0x61f: 0x3d74, 0x620: 0x490e, 0x621: 0x4914, 0x622: 0x4a10, 0x623: 0x4a28,- 0x624: 0x4a18, 0x625: 0x4a30, 0x626: 0x4a20, 0x627: 0x4a38, 0x628: 0x487e, 0x629: 0x4884,- 0x62a: 0x4980, 0x62b: 0x4998, 0x62c: 0x4988, 0x62d: 0x49a0, 0x62e: 0x4990, 0x62f: 0x49a8,- 0x630: 0x488a, 0x631: 0x43b0, 0x632: 0x368d, 0x633: 0x43b6, 0x634: 0x48b4, 0x635: 0x43bc,- 0x636: 0x369f, 0x637: 0x43c2, 0x638: 0x36bd, 0x639: 0x43c8, 0x63a: 0x36d5, 0x63b: 0x43ce,- 0x63c: 0x4902, 0x63d: 0x43d4,+ 0x600: 0x48e8, 0x601: 0x48ee, 0x602: 0x3e48, 0x603: 0x3e58, 0x604: 0x3e50, 0x605: 0x3e60,+ 0x608: 0x4870, 0x609: 0x4876, 0x60a: 0x3d48, 0x60b: 0x3d58,+ 0x60c: 0x3d50, 0x60d: 0x3d60, 0x610: 0x48fa, 0x611: 0x4900,+ 0x612: 0x3e80, 0x613: 0x3e98, 0x614: 0x3e88, 0x615: 0x3ea0, 0x616: 0x3e90, 0x617: 0x3ea8,+ 0x619: 0x487c, 0x61b: 0x3d68, 0x61d: 0x3d70,+ 0x61f: 0x3d78, 0x620: 0x4912, 0x621: 0x4918, 0x622: 0x4a14, 0x623: 0x4a2c,+ 0x624: 0x4a1c, 0x625: 0x4a34, 0x626: 0x4a24, 0x627: 0x4a3c, 0x628: 0x4882, 0x629: 0x4888,+ 0x62a: 0x4984, 0x62b: 0x499c, 0x62c: 0x498c, 0x62d: 0x49a4, 0x62e: 0x4994, 0x62f: 0x49ac,+ 0x630: 0x488e, 0x631: 0x43b4, 0x632: 0x3691, 0x633: 0x43ba, 0x634: 0x48b8, 0x635: 0x43c0,+ 0x636: 0x36a3, 0x637: 0x43c6, 0x638: 0x36c1, 0x639: 0x43cc, 0x63a: 0x36d9, 0x63b: 0x43d2,+ 0x63c: 0x4906, 0x63d: 0x43d8,// Block 0x19, offset 0x640- 0x640: 0x3d9c, 0x641: 0x3da4, 0x642: 0x4180, 0x643: 0x419e, 0x644: 0x418a, 0x645: 0x41a8,- 0x646: 0x4194, 0x647: 0x41b2, 0x648: 0x3cd4, 0x649: 0x3cdc, 0x64a: 0x40cc, 0x64b: 0x40ea,- 0x64c: 0x40d6, 0x64d: 0x40f4, 0x64e: 0x40e0, 0x64f: 0x40fe, 0x650: 0x3de4, 0x651: 0x3dec,- 0x652: 0x41bc, 0x653: 0x41da, 0x654: 0x41c6, 0x655: 0x41e4, 0x656: 0x41d0, 0x657: 0x41ee,- 0x658: 0x3d04, 0x659: 0x3d0c, 0x65a: 0x4108, 0x65b: 0x4126, 0x65c: 0x4112, 0x65d: 0x4130,- 0x65e: 0x411c, 0x65f: 0x413a, 0x660: 0x3ebc, 0x661: 0x3ec4, 0x662: 0x41f8, 0x663: 0x4216,- 0x664: 0x4202, 0x665: 0x4220, 0x666: 0x420c, 0x667: 0x422a, 0x668: 0x3d7c, 0x669: 0x3d84,- 0x66a: 0x4144, 0x66b: 0x4162, 0x66c: 0x414e, 0x66d: 0x416c, 0x66e: 0x4158, 0x66f: 0x4176,- 0x670: 0x3681, 0x671: 0x367b, 0x672: 0x3d8c, 0x673: 0x3687, 0x674: 0x3d94,- 0x676: 0x48a2, 0x677: 0x3dac, 0x678: 0x35f1, 0x679: 0x35eb, 0x67a: 0x35df, 0x67b: 0x4380,- 0x67c: 0x35f7, 0x67d: 0x4283, 0x67e: 0x01d3, 0x67f: 0x4283,+ 0x640: 0x3da0, 0x641: 0x3da8, 0x642: 0x4184, 0x643: 0x41a2, 0x644: 0x418e, 0x645: 0x41ac,+ 0x646: 0x4198, 0x647: 0x41b6, 0x648: 0x3cd8, 0x649: 0x3ce0, 0x64a: 0x40d0, 0x64b: 0x40ee,+ 0x64c: 0x40da, 0x64d: 0x40f8, 0x64e: 0x40e4, 0x64f: 0x4102, 0x650: 0x3de8, 0x651: 0x3df0,+ 0x652: 0x41c0, 0x653: 0x41de, 0x654: 0x41ca, 0x655: 0x41e8, 0x656: 0x41d4, 0x657: 0x41f2,+ 0x658: 0x3d08, 0x659: 0x3d10, 0x65a: 0x410c, 0x65b: 0x412a, 0x65c: 0x4116, 0x65d: 0x4134,+ 0x65e: 0x4120, 0x65f: 0x413e, 0x660: 0x3ec0, 0x661: 0x3ec8, 0x662: 0x41fc, 0x663: 0x421a,+ 0x664: 0x4206, 0x665: 0x4224, 0x666: 0x4210, 0x667: 0x422e, 0x668: 0x3d80, 0x669: 0x3d88,+ 0x66a: 0x4148, 0x66b: 0x4166, 0x66c: 0x4152, 0x66d: 0x4170, 0x66e: 0x415c, 0x66f: 0x417a,+ 0x670: 0x3685, 0x671: 0x367f, 0x672: 0x3d90, 0x673: 0x368b, 0x674: 0x3d98,+ 0x676: 0x48a6, 0x677: 0x3db0, 0x678: 0x35f5, 0x679: 0x35ef, 0x67a: 0x35e3, 0x67b: 0x4384,+ 0x67c: 0x35fb, 0x67d: 0x4287, 0x67e: 0x01d3, 0x67f: 0x4287,// Block 0x1a, offset 0x680- 0x680: 0x429c, 0x681: 0x4514, 0x682: 0x3dd4, 0x683: 0x3699, 0x684: 0x3ddc,- 0x686: 0x48cc, 0x687: 0x3df4, 0x688: 0x35fd, 0x689: 0x4386, 0x68a: 0x3609, 0x68b: 0x438c,- 0x68c: 0x3615, 0x68d: 0x451b, 0x68e: 0x4522, 0x68f: 0x4529, 0x690: 0x36b1, 0x691: 0x36ab,- 0x692: 0x3dfc, 0x693: 0x4576, 0x696: 0x36b7, 0x697: 0x3e0c,- 0x698: 0x362d, 0x699: 0x3627, 0x69a: 0x361b, 0x69b: 0x4392, 0x69d: 0x4530,- 0x69e: 0x4537, 0x69f: 0x453e, 0x6a0: 0x36e7, 0x6a1: 0x36e1, 0x6a2: 0x3e64, 0x6a3: 0x457e,- 0x6a4: 0x36c9, 0x6a5: 0x36cf, 0x6a6: 0x36ed, 0x6a7: 0x3e74, 0x6a8: 0x365d, 0x6a9: 0x3657,- 0x6aa: 0x364b, 0x6ab: 0x439e, 0x6ac: 0x3645, 0x6ad: 0x4506, 0x6ae: 0x450d, 0x6af: 0x0081,- 0x6b2: 0x3eac, 0x6b3: 0x36f3, 0x6b4: 0x3eb4,- 0x6b6: 0x491a, 0x6b7: 0x3ecc, 0x6b8: 0x3639, 0x6b9: 0x4398, 0x6ba: 0x3669, 0x6bb: 0x43aa,- 0x6bc: 0x3675, 0x6bd: 0x4256, 0x6be: 0x4288,+ 0x680: 0x42a0, 0x681: 0x4518, 0x682: 0x3dd8, 0x683: 0x369d, 0x684: 0x3de0,+ 0x686: 0x48d0, 0x687: 0x3df8, 0x688: 0x3601, 0x689: 0x438a, 0x68a: 0x360d, 0x68b: 0x4390,+ 0x68c: 0x3619, 0x68d: 0x451f, 0x68e: 0x4526, 0x68f: 0x452d, 0x690: 0x36b5, 0x691: 0x36af,+ 0x692: 0x3e00, 0x693: 0x457a, 0x696: 0x36bb, 0x697: 0x3e10,+ 0x698: 0x3631, 0x699: 0x362b, 0x69a: 0x361f, 0x69b: 0x4396, 0x69d: 0x4534,+ 0x69e: 0x453b, 0x69f: 0x4542, 0x6a0: 0x36eb, 0x6a1: 0x36e5, 0x6a2: 0x3e68, 0x6a3: 0x4582,+ 0x6a4: 0x36cd, 0x6a5: 0x36d3, 0x6a6: 0x36f1, 0x6a7: 0x3e78, 0x6a8: 0x3661, 0x6a9: 0x365b,+ 0x6aa: 0x364f, 0x6ab: 0x43a2, 0x6ac: 0x3649, 0x6ad: 0x450a, 0x6ae: 0x4511, 0x6af: 0x0081,+ 0x6b2: 0x3eb0, 0x6b3: 0x36f7, 0x6b4: 0x3eb8,+ 0x6b6: 0x491e, 0x6b7: 0x3ed0, 0x6b8: 0x363d, 0x6b9: 0x439c, 0x6ba: 0x366d, 0x6bb: 0x43ae,+ 0x6bc: 0x3679, 0x6bd: 0x425a, 0x6be: 0x428c,// Block 0x1b, offset 0x6c0- 0x6c0: 0x1bd4, 0x6c1: 0x1bd8, 0x6c2: 0x0047, 0x6c3: 0x1c50, 0x6c5: 0x1be4,- 0x6c6: 0x1be8, 0x6c7: 0x00e9, 0x6c9: 0x1c54, 0x6ca: 0x008f, 0x6cb: 0x0051,+ 0x6c0: 0x1bd8, 0x6c1: 0x1bdc, 0x6c2: 0x0047, 0x6c3: 0x1c54, 0x6c5: 0x1be8,+ 0x6c6: 0x1bec, 0x6c7: 0x00e9, 0x6c9: 0x1c58, 0x6ca: 0x008f, 0x6cb: 0x0051,0x6cc: 0x0051, 0x6cd: 0x0051, 0x6ce: 0x0091, 0x6cf: 0x00da, 0x6d0: 0x0053, 0x6d1: 0x0053,- 0x6d2: 0x0059, 0x6d3: 0x0099, 0x6d5: 0x005d, 0x6d6: 0x1989,+ 0x6d2: 0x0059, 0x6d3: 0x0099, 0x6d5: 0x005d, 0x6d6: 0x198d,0x6d9: 0x0061, 0x6da: 0x0063, 0x6db: 0x0065, 0x6dc: 0x0065, 0x6dd: 0x0065,- 0x6e0: 0x199b, 0x6e1: 0x1bc4, 0x6e2: 0x19a4,+ 0x6e0: 0x199f, 0x6e1: 0x1bc8, 0x6e2: 0x19a8,0x6e4: 0x0075, 0x6e6: 0x01b8, 0x6e8: 0x0075,- 0x6ea: 0x0057, 0x6eb: 0x42ce, 0x6ec: 0x0045, 0x6ed: 0x0047, 0x6ef: 0x008b,+ 0x6ea: 0x0057, 0x6eb: 0x42d2, 0x6ec: 0x0045, 0x6ed: 0x0047, 0x6ef: 0x008b,0x6f0: 0x004b, 0x6f1: 0x004d, 0x6f3: 0x005b, 0x6f4: 0x009f, 0x6f5: 0x0215,- 0x6f6: 0x0218, 0x6f7: 0x021b, 0x6f8: 0x021e, 0x6f9: 0x0093, 0x6fb: 0x1b94,+ 0x6f6: 0x0218, 0x6f7: 0x021b, 0x6f8: 0x021e, 0x6f9: 0x0093, 0x6fb: 0x1b98,0x6fc: 0x01e8, 0x6fd: 0x01c1, 0x6fe: 0x0179, 0x6ff: 0x01a0,// Block 0x1c, offset 0x7000x700: 0x0463, 0x705: 0x0049,0x706: 0x0089, 0x707: 0x008b, 0x708: 0x0093, 0x709: 0x0095,- 0x710: 0x222a, 0x711: 0x2236,- 0x712: 0x22ea, 0x713: 0x2212, 0x714: 0x2296, 0x715: 0x221e, 0x716: 0x229c, 0x717: 0x22b4,- 0x718: 0x22c0, 0x719: 0x2224, 0x71a: 0x22c6, 0x71b: 0x2230, 0x71c: 0x22ba, 0x71d: 0x22cc,- 0x71e: 0x22d2, 0x71f: 0x1cb8, 0x720: 0x0053, 0x721: 0x1956, 0x722: 0x1ba0, 0x723: 0x195f,- 0x724: 0x006d, 0x725: 0x19a7, 0x726: 0x1bcc, 0x727: 0x1d44, 0x728: 0x1962, 0x729: 0x0071,- 0x72a: 0x19b3, 0x72b: 0x1bd0, 0x72c: 0x0059, 0x72d: 0x0047, 0x72e: 0x0049, 0x72f: 0x005b,- 0x730: 0x0093, 0x731: 0x19e0, 0x732: 0x1c14, 0x733: 0x19e9, 0x734: 0x00ad, 0x735: 0x1a5e,- 0x736: 0x1c48, 0x737: 0x1d58, 0x738: 0x19ec, 0x739: 0x00b1, 0x73a: 0x1a61, 0x73b: 0x1c4c,+ 0x710: 0x222e, 0x711: 0x223a,+ 0x712: 0x22ee, 0x713: 0x2216, 0x714: 0x229a, 0x715: 0x2222, 0x716: 0x22a0, 0x717: 0x22b8,+ 0x718: 0x22c4, 0x719: 0x2228, 0x71a: 0x22ca, 0x71b: 0x2234, 0x71c: 0x22be, 0x71d: 0x22d0,+ 0x71e: 0x22d6, 0x71f: 0x1cbc, 0x720: 0x0053, 0x721: 0x195a, 0x722: 0x1ba4, 0x723: 0x1963,+ 0x724: 0x006d, 0x725: 0x19ab, 0x726: 0x1bd0, 0x727: 0x1d48, 0x728: 0x1966, 0x729: 0x0071,+ 0x72a: 0x19b7, 0x72b: 0x1bd4, 0x72c: 0x0059, 0x72d: 0x0047, 0x72e: 0x0049, 0x72f: 0x005b,+ 0x730: 0x0093, 0x731: 0x19e4, 0x732: 0x1c18, 0x733: 0x19ed, 0x734: 0x00ad, 0x735: 0x1a62,+ 0x736: 0x1c4c, 0x737: 0x1d5c, 0x738: 0x19f0, 0x739: 0x00b1, 0x73a: 0x1a65, 0x73b: 0x1c50,0x73c: 0x0099, 0x73d: 0x0087, 0x73e: 0x0089, 0x73f: 0x009b,// Block 0x1d, offset 0x740- 0x741: 0x3c02, 0x743: 0xa000, 0x744: 0x3c09, 0x745: 0xa000,- 0x747: 0x3c10, 0x748: 0xa000, 0x749: 0x3c17,+ 0x741: 0x3c06, 0x743: 0xa000, 0x744: 0x3c0d, 0x745: 0xa000,+ 0x747: 0x3c14, 0x748: 0xa000, 0x749: 0x3c1b,0x74d: 0xa000,- 0x760: 0x2f61, 0x761: 0xa000, 0x762: 0x3c25,+ 0x760: 0x2f65, 0x761: 0xa000, 0x762: 0x3c29,0x764: 0xa000, 0x765: 0xa000,- 0x76d: 0x3c1e, 0x76e: 0x2f5c, 0x76f: 0x2f66,- 0x770: 0x3c2c, 0x771: 0x3c33, 0x772: 0xa000, 0x773: 0xa000, 0x774: 0x3c3a, 0x775: 0x3c41,- 0x776: 0xa000, 0x777: 0xa000, 0x778: 0x3c48, 0x779: 0x3c4f, 0x77a: 0xa000, 0x77b: 0xa000,+ 0x76d: 0x3c22, 0x76e: 0x2f60, 0x76f: 0x2f6a,+ 0x770: 0x3c30, 0x771: 0x3c37, 0x772: 0xa000, 0x773: 0xa000, 0x774: 0x3c3e, 0x775: 0x3c45,+ 0x776: 0xa000, 0x777: 0xa000, 0x778: 0x3c4c, 0x779: 0x3c53, 0x77a: 0xa000, 0x77b: 0xa000,0x77c: 0xa000, 0x77d: 0xa000,// Block 0x1e, offset 0x780- 0x780: 0x3c56, 0x781: 0x3c5d, 0x782: 0xa000, 0x783: 0xa000, 0x784: 0x3c72, 0x785: 0x3c79,- 0x786: 0xa000, 0x787: 0xa000, 0x788: 0x3c80, 0x789: 0x3c87,+ 0x780: 0x3c5a, 0x781: 0x3c61, 0x782: 0xa000, 0x783: 0xa000, 0x784: 0x3c76, 0x785: 0x3c7d,+ 0x786: 0xa000, 0x787: 0xa000, 0x788: 0x3c84, 0x789: 0x3c8b,0x791: 0xa000,0x792: 0xa000,0x7a2: 0xa000,0x7a8: 0xa000, 0x7a9: 0xa000,- 0x7ab: 0xa000, 0x7ac: 0x3c9c, 0x7ad: 0x3ca3, 0x7ae: 0x3caa, 0x7af: 0x3cb1,+ 0x7ab: 0xa000, 0x7ac: 0x3ca0, 0x7ad: 0x3ca7, 0x7ae: 0x3cae, 0x7af: 0x3cb5,0x7b2: 0xa000, 0x7b3: 0xa000, 0x7b4: 0xa000, 0x7b5: 0xa000,// Block 0x1f, offset 0x7c00x7e0: 0x0023, 0x7e1: 0x0025, 0x7e2: 0x0027, 0x7e3: 0x0029,- 0x7e4: 0x002b, 0x7e5: 0x002d, 0x7e6: 0x002f, 0x7e7: 0x0031, 0x7e8: 0x0033, 0x7e9: 0x187e,- 0x7ea: 0x1881, 0x7eb: 0x1884, 0x7ec: 0x1887, 0x7ed: 0x188a, 0x7ee: 0x188d, 0x7ef: 0x1890,- 0x7f0: 0x1893, 0x7f1: 0x1896, 0x7f2: 0x1899, 0x7f3: 0x18a2, 0x7f4: 0x1a64, 0x7f5: 0x1a68,- 0x7f6: 0x1a6c, 0x7f7: 0x1a70, 0x7f8: 0x1a74, 0x7f9: 0x1a78, 0x7fa: 0x1a7c, 0x7fb: 0x1a80,- 0x7fc: 0x1a84, 0x7fd: 0x1c7c, 0x7fe: 0x1c81, 0x7ff: 0x1c86,+ 0x7e4: 0x002b, 0x7e5: 0x002d, 0x7e6: 0x002f, 0x7e7: 0x0031, 0x7e8: 0x0033, 0x7e9: 0x1882,+ 0x7ea: 0x1885, 0x7eb: 0x1888, 0x7ec: 0x188b, 0x7ed: 0x188e, 0x7ee: 0x1891, 0x7ef: 0x1894,+ 0x7f0: 0x1897, 0x7f1: 0x189a, 0x7f2: 0x189d, 0x7f3: 0x18a6, 0x7f4: 0x1a68, 0x7f5: 0x1a6c,+ 0x7f6: 0x1a70, 0x7f7: 0x1a74, 0x7f8: 0x1a78, 0x7f9: 0x1a7c, 0x7fa: 0x1a80, 0x7fb: 0x1a84,+ 0x7fc: 0x1a88, 0x7fd: 0x1c80, 0x7fe: 0x1c85, 0x7ff: 0x1c8a,// Block 0x20, offset 0x800- 0x800: 0x1c8b, 0x801: 0x1c90, 0x802: 0x1c95, 0x803: 0x1c9a, 0x804: 0x1c9f, 0x805: 0x1ca4,- 0x806: 0x1ca9, 0x807: 0x1cae, 0x808: 0x187b, 0x809: 0x189f, 0x80a: 0x18c3, 0x80b: 0x18e7,- 0x80c: 0x190b, 0x80d: 0x1914, 0x80e: 0x191a, 0x80f: 0x1920, 0x810: 0x1926, 0x811: 0x1b5c,- 0x812: 0x1b60, 0x813: 0x1b64, 0x814: 0x1b68, 0x815: 0x1b6c, 0x816: 0x1b70, 0x817: 0x1b74,- 0x818: 0x1b78, 0x819: 0x1b7c, 0x81a: 0x1b80, 0x81b: 0x1b84, 0x81c: 0x1af0, 0x81d: 0x1af4,- 0x81e: 0x1af8, 0x81f: 0x1afc, 0x820: 0x1b00, 0x821: 0x1b04, 0x822: 0x1b08, 0x823: 0x1b0c,- 0x824: 0x1b10, 0x825: 0x1b14, 0x826: 0x1b18, 0x827: 0x1b1c, 0x828: 0x1b20, 0x829: 0x1b24,- 0x82a: 0x1b28, 0x82b: 0x1b2c, 0x82c: 0x1b30, 0x82d: 0x1b34, 0x82e: 0x1b38, 0x82f: 0x1b3c,- 0x830: 0x1b40, 0x831: 0x1b44, 0x832: 0x1b48, 0x833: 0x1b4c, 0x834: 0x1b50, 0x835: 0x1b54,+ 0x800: 0x1c8f, 0x801: 0x1c94, 0x802: 0x1c99, 0x803: 0x1c9e, 0x804: 0x1ca3, 0x805: 0x1ca8,+ 0x806: 0x1cad, 0x807: 0x1cb2, 0x808: 0x187f, 0x809: 0x18a3, 0x80a: 0x18c7, 0x80b: 0x18eb,+ 0x80c: 0x190f, 0x80d: 0x1918, 0x80e: 0x191e, 0x80f: 0x1924, 0x810: 0x192a, 0x811: 0x1b60,+ 0x812: 0x1b64, 0x813: 0x1b68, 0x814: 0x1b6c, 0x815: 0x1b70, 0x816: 0x1b74, 0x817: 0x1b78,+ 0x818: 0x1b7c, 0x819: 0x1b80, 0x81a: 0x1b84, 0x81b: 0x1b88, 0x81c: 0x1af4, 0x81d: 0x1af8,+ 0x81e: 0x1afc, 0x81f: 0x1b00, 0x820: 0x1b04, 0x821: 0x1b08, 0x822: 0x1b0c, 0x823: 0x1b10,+ 0x824: 0x1b14, 0x825: 0x1b18, 0x826: 0x1b1c, 0x827: 0x1b20, 0x828: 0x1b24, 0x829: 0x1b28,+ 0x82a: 0x1b2c, 0x82b: 0x1b30, 0x82c: 0x1b34, 0x82d: 0x1b38, 0x82e: 0x1b3c, 0x82f: 0x1b40,+ 0x830: 0x1b44, 0x831: 0x1b48, 0x832: 0x1b4c, 0x833: 0x1b50, 0x834: 0x1b54, 0x835: 0x1b58,0x836: 0x0043, 0x837: 0x0045, 0x838: 0x0047, 0x839: 0x0049, 0x83a: 0x004b, 0x83b: 0x004d,0x83c: 0x004f, 0x83d: 0x0051, 0x83e: 0x0053, 0x83f: 0x0055,// Block 0x21, offset 0x840@@ -4883,48 +4904,48 @@ var nfkcValues = [5888]uint16{0x8d2: 0x1323, 0x8d3: 0x132b, 0x8d4: 0x1333, 0x8d5: 0x136f, 0x8d6: 0x1373, 0x8d7: 0x137b,0x8d8: 0x137f, 0x8d9: 0x1383, 0x8da: 0x13af, 0x8db: 0x13b3, 0x8dc: 0x13bb, 0x8dd: 0x13cf,0x8de: 0x13d3, 0x8df: 0x13ef, 0x8e0: 0x13f7, 0x8e1: 0x13fb, 0x8e2: 0x141f, 0x8e3: 0x143f,- 0x8e4: 0x144f, 0x8e5: 0x1453, 0x8e6: 0x145b, 0x8e7: 0x1487, 0x8e8: 0x148b, 0x8e9: 0x149b,- 0x8ea: 0x14bf, 0x8eb: 0x14cb, 0x8ec: 0x14db, 0x8ed: 0x14f3, 0x8ee: 0x14fb, 0x8ef: 0x14ff,- 0x8f0: 0x1503, 0x8f1: 0x1507, 0x8f2: 0x1513, 0x8f3: 0x1517, 0x8f4: 0x151f, 0x8f5: 0x153b,- 0x8f6: 0x153f, 0x8f7: 0x1543, 0x8f8: 0x155b, 0x8f9: 0x155f, 0x8fa: 0x1567, 0x8fb: 0x157b,- 0x8fc: 0x157f, 0x8fd: 0x1583, 0x8fe: 0x158b, 0x8ff: 0x158f,+ 0x8e4: 0x1453, 0x8e5: 0x1457, 0x8e6: 0x145f, 0x8e7: 0x148b, 0x8e8: 0x148f, 0x8e9: 0x149f,+ 0x8ea: 0x14c3, 0x8eb: 0x14cf, 0x8ec: 0x14df, 0x8ed: 0x14f7, 0x8ee: 0x14ff, 0x8ef: 0x1503,+ 0x8f0: 0x1507, 0x8f1: 0x150b, 0x8f2: 0x1517, 0x8f3: 0x151b, 0x8f4: 0x1523, 0x8f5: 0x153f,+ 0x8f6: 0x1543, 0x8f7: 0x1547, 0x8f8: 0x155f, 0x8f9: 0x1563, 0x8fa: 0x156b, 0x8fb: 0x157f,+ 0x8fc: 0x1583, 0x8fd: 0x1587, 0x8fe: 0x158f, 0x8ff: 0x1593,// Block 0x24, offset 0x9000x906: 0xa000, 0x90b: 0xa000,- 0x90c: 0x3f04, 0x90d: 0xa000, 0x90e: 0x3f0c, 0x90f: 0xa000, 0x910: 0x3f14, 0x911: 0xa000,- 0x912: 0x3f1c, 0x913: 0xa000, 0x914: 0x3f24, 0x915: 0xa000, 0x916: 0x3f2c, 0x917: 0xa000,- 0x918: 0x3f34, 0x919: 0xa000, 0x91a: 0x3f3c, 0x91b: 0xa000, 0x91c: 0x3f44, 0x91d: 0xa000,- 0x91e: 0x3f4c, 0x91f: 0xa000, 0x920: 0x3f54, 0x921: 0xa000, 0x922: 0x3f5c,- 0x924: 0xa000, 0x925: 0x3f64, 0x926: 0xa000, 0x927: 0x3f6c, 0x928: 0xa000, 0x929: 0x3f74,+ 0x90c: 0x3f08, 0x90d: 0xa000, 0x90e: 0x3f10, 0x90f: 0xa000, 0x910: 0x3f18, 0x911: 0xa000,+ 0x912: 0x3f20, 0x913: 0xa000, 0x914: 0x3f28, 0x915: 0xa000, 0x916: 0x3f30, 0x917: 0xa000,+ 0x918: 0x3f38, 0x919: 0xa000, 0x91a: 0x3f40, 0x91b: 0xa000, 0x91c: 0x3f48, 0x91d: 0xa000,+ 0x91e: 0x3f50, 0x91f: 0xa000, 0x920: 0x3f58, 0x921: 0xa000, 0x922: 0x3f60,+ 0x924: 0xa000, 0x925: 0x3f68, 0x926: 0xa000, 0x927: 0x3f70, 0x928: 0xa000, 0x929: 0x3f78,0x92f: 0xa000,- 0x930: 0x3f7c, 0x931: 0x3f84, 0x932: 0xa000, 0x933: 0x3f8c, 0x934: 0x3f94, 0x935: 0xa000,- 0x936: 0x3f9c, 0x937: 0x3fa4, 0x938: 0xa000, 0x939: 0x3fac, 0x93a: 0x3fb4, 0x93b: 0xa000,- 0x93c: 0x3fbc, 0x93d: 0x3fc4,+ 0x930: 0x3f80, 0x931: 0x3f88, 0x932: 0xa000, 0x933: 0x3f90, 0x934: 0x3f98, 0x935: 0xa000,+ 0x936: 0x3fa0, 0x937: 0x3fa8, 0x938: 0xa000, 0x939: 0x3fb0, 0x93a: 0x3fb8, 0x93b: 0xa000,+ 0x93c: 0x3fc0, 0x93d: 0x3fc8,// Block 0x25, offset 0x940- 0x954: 0x3efc,- 0x959: 0x9903, 0x95a: 0x9903, 0x95b: 0x436e, 0x95c: 0x4374, 0x95d: 0xa000,- 0x95e: 0x3fcc, 0x95f: 0x26b0,+ 0x954: 0x3f00,+ 0x959: 0x9903, 0x95a: 0x9903, 0x95b: 0x4372, 0x95c: 0x4378, 0x95d: 0xa000,+ 0x95e: 0x3fd0, 0x95f: 0x26b4,0x966: 0xa000,- 0x96b: 0xa000, 0x96c: 0x3fdc, 0x96d: 0xa000, 0x96e: 0x3fe4, 0x96f: 0xa000,- 0x970: 0x3fec, 0x971: 0xa000, 0x972: 0x3ff4, 0x973: 0xa000, 0x974: 0x3ffc, 0x975: 0xa000,- 0x976: 0x4004, 0x977: 0xa000, 0x978: 0x400c, 0x979: 0xa000, 0x97a: 0x4014, 0x97b: 0xa000,- 0x97c: 0x401c, 0x97d: 0xa000, 0x97e: 0x4024, 0x97f: 0xa000,+ 0x96b: 0xa000, 0x96c: 0x3fe0, 0x96d: 0xa000, 0x96e: 0x3fe8, 0x96f: 0xa000,+ 0x970: 0x3ff0, 0x971: 0xa000, 0x972: 0x3ff8, 0x973: 0xa000, 0x974: 0x4000, 0x975: 0xa000,+ 0x976: 0x4008, 0x977: 0xa000, 0x978: 0x4010, 0x979: 0xa000, 0x97a: 0x4018, 0x97b: 0xa000,+ 0x97c: 0x4020, 0x97d: 0xa000, 0x97e: 0x4028, 0x97f: 0xa000,// Block 0x26, offset 0x980- 0x980: 0x402c, 0x981: 0xa000, 0x982: 0x4034, 0x984: 0xa000, 0x985: 0x403c,- 0x986: 0xa000, 0x987: 0x4044, 0x988: 0xa000, 0x989: 0x404c,- 0x98f: 0xa000, 0x990: 0x4054, 0x991: 0x405c,- 0x992: 0xa000, 0x993: 0x4064, 0x994: 0x406c, 0x995: 0xa000, 0x996: 0x4074, 0x997: 0x407c,- 0x998: 0xa000, 0x999: 0x4084, 0x99a: 0x408c, 0x99b: 0xa000, 0x99c: 0x4094, 0x99d: 0x409c,+ 0x980: 0x4030, 0x981: 0xa000, 0x982: 0x4038, 0x984: 0xa000, 0x985: 0x4040,+ 0x986: 0xa000, 0x987: 0x4048, 0x988: 0xa000, 0x989: 0x4050,+ 0x98f: 0xa000, 0x990: 0x4058, 0x991: 0x4060,+ 0x992: 0xa000, 0x993: 0x4068, 0x994: 0x4070, 0x995: 0xa000, 0x996: 0x4078, 0x997: 0x4080,+ 0x998: 0xa000, 0x999: 0x4088, 0x99a: 0x4090, 0x99b: 0xa000, 0x99c: 0x4098, 0x99d: 0x40a0,0x9af: 0xa000,- 0x9b0: 0xa000, 0x9b1: 0xa000, 0x9b2: 0xa000, 0x9b4: 0x3fd4,- 0x9b7: 0x40a4, 0x9b8: 0x40ac, 0x9b9: 0x40b4, 0x9ba: 0x40bc,- 0x9bd: 0xa000, 0x9be: 0x40c4, 0x9bf: 0x26c5,+ 0x9b0: 0xa000, 0x9b1: 0xa000, 0x9b2: 0xa000, 0x9b4: 0x3fd8,+ 0x9b7: 0x40a8, 0x9b8: 0x40b0, 0x9b9: 0x40b8, 0x9ba: 0x40c0,+ 0x9bd: 0xa000, 0x9be: 0x40c8, 0x9bf: 0x26c9,// Block 0x27, offset 0x9c00x9c0: 0x0367, 0x9c1: 0x032b, 0x9c2: 0x032f, 0x9c3: 0x0333, 0x9c4: 0x037b, 0x9c5: 0x0337,0x9c6: 0x033b, 0x9c7: 0x033f, 0x9c8: 0x0343, 0x9c9: 0x0347, 0x9ca: 0x034b, 0x9cb: 0x034f,- 0x9cc: 0x0353, 0x9cd: 0x0357, 0x9ce: 0x035b, 0x9cf: 0x42d8, 0x9d0: 0x42dd, 0x9d1: 0x42e2,- 0x9d2: 0x42e7, 0x9d3: 0x42ec, 0x9d4: 0x42f1, 0x9d5: 0x42f6, 0x9d6: 0x42fb, 0x9d7: 0x4300,- 0x9d8: 0x4305, 0x9d9: 0x430a, 0x9da: 0x430f, 0x9db: 0x4314, 0x9dc: 0x4319, 0x9dd: 0x431e,- 0x9de: 0x4323, 0x9df: 0x4328, 0x9e0: 0x432d, 0x9e1: 0x4332, 0x9e2: 0x4337, 0x9e3: 0x433c,+ 0x9cc: 0x0353, 0x9cd: 0x0357, 0x9ce: 0x035b, 0x9cf: 0x42dc, 0x9d0: 0x42e1, 0x9d1: 0x42e6,+ 0x9d2: 0x42eb, 0x9d3: 0x42f0, 0x9d4: 0x42f5, 0x9d5: 0x42fa, 0x9d6: 0x42ff, 0x9d7: 0x4304,+ 0x9d8: 0x4309, 0x9d9: 0x430e, 0x9da: 0x4313, 0x9db: 0x4318, 0x9dc: 0x431d, 0x9dd: 0x4322,+ 0x9de: 0x4327, 0x9df: 0x432c, 0x9e0: 0x4331, 0x9e1: 0x4336, 0x9e2: 0x433b, 0x9e3: 0x4340,0x9e4: 0x03c3, 0x9e5: 0x035f, 0x9e6: 0x0363, 0x9e7: 0x03e7, 0x9e8: 0x03eb, 0x9e9: 0x03ef,0x9ea: 0x03f3, 0x9eb: 0x03f7, 0x9ec: 0x03fb, 0x9ed: 0x03ff, 0x9ee: 0x036b, 0x9ef: 0x0403,0x9f0: 0x0407, 0x9f1: 0x036f, 0x9f2: 0x0373, 0x9f3: 0x0377, 0x9f4: 0x037f, 0x9f5: 0x0383,@@ -4938,45 +4959,45 @@ var nfkcValues = [5888]uint16{0xa18: 0x06d3, 0xa19: 0x0f93, 0xa1a: 0x0707, 0xa1b: 0x06db, 0xa1c: 0x06c3, 0xa1d: 0x09ff,0xa1e: 0x098f, 0xa1f: 0x072f,// Block 0x29, offset 0xa40- 0xa40: 0x2050, 0xa41: 0x2056, 0xa42: 0x205c, 0xa43: 0x2062, 0xa44: 0x2068, 0xa45: 0x206e,- 0xa46: 0x2074, 0xa47: 0x207a, 0xa48: 0x2080, 0xa49: 0x2086, 0xa4a: 0x208c, 0xa4b: 0x2092,- 0xa4c: 0x2098, 0xa4d: 0x209e, 0xa4e: 0x2722, 0xa4f: 0x272b, 0xa50: 0x2734, 0xa51: 0x273d,- 0xa52: 0x2746, 0xa53: 0x274f, 0xa54: 0x2758, 0xa55: 0x2761, 0xa56: 0x276a, 0xa57: 0x277c,- 0xa58: 0x2785, 0xa59: 0x278e, 0xa5a: 0x2797, 0xa5b: 0x27a0, 0xa5c: 0x2773, 0xa5d: 0x2ba8,- 0xa5e: 0x2ae9, 0xa60: 0x20a4, 0xa61: 0x20bc, 0xa62: 0x20b0, 0xa63: 0x2104,- 0xa64: 0x20c2, 0xa65: 0x20e0, 0xa66: 0x20aa, 0xa67: 0x20da, 0xa68: 0x20b6, 0xa69: 0x20ec,- 0xa6a: 0x211c, 0xa6b: 0x213a, 0xa6c: 0x2134, 0xa6d: 0x2128, 0xa6e: 0x2176, 0xa6f: 0x210a,- 0xa70: 0x2116, 0xa71: 0x212e, 0xa72: 0x2122, 0xa73: 0x214c, 0xa74: 0x20f8, 0xa75: 0x2140,- 0xa76: 0x216a, 0xa77: 0x2152, 0xa78: 0x20e6, 0xa79: 0x20c8, 0xa7a: 0x20fe, 0xa7b: 0x2110,- 0xa7c: 0x2146, 0xa7d: 0x20ce, 0xa7e: 0x2170, 0xa7f: 0x20f2,+ 0xa40: 0x2054, 0xa41: 0x205a, 0xa42: 0x2060, 0xa43: 0x2066, 0xa44: 0x206c, 0xa45: 0x2072,+ 0xa46: 0x2078, 0xa47: 0x207e, 0xa48: 0x2084, 0xa49: 0x208a, 0xa4a: 0x2090, 0xa4b: 0x2096,+ 0xa4c: 0x209c, 0xa4d: 0x20a2, 0xa4e: 0x2726, 0xa4f: 0x272f, 0xa50: 0x2738, 0xa51: 0x2741,+ 0xa52: 0x274a, 0xa53: 0x2753, 0xa54: 0x275c, 0xa55: 0x2765, 0xa56: 0x276e, 0xa57: 0x2780,+ 0xa58: 0x2789, 0xa59: 0x2792, 0xa5a: 0x279b, 0xa5b: 0x27a4, 0xa5c: 0x2777, 0xa5d: 0x2bac,+ 0xa5e: 0x2aed, 0xa60: 0x20a8, 0xa61: 0x20c0, 0xa62: 0x20b4, 0xa63: 0x2108,+ 0xa64: 0x20c6, 0xa65: 0x20e4, 0xa66: 0x20ae, 0xa67: 0x20de, 0xa68: 0x20ba, 0xa69: 0x20f0,+ 0xa6a: 0x2120, 0xa6b: 0x213e, 0xa6c: 0x2138, 0xa6d: 0x212c, 0xa6e: 0x217a, 0xa6f: 0x210e,+ 0xa70: 0x211a, 0xa71: 0x2132, 0xa72: 0x2126, 0xa73: 0x2150, 0xa74: 0x20fc, 0xa75: 0x2144,+ 0xa76: 0x216e, 0xa77: 0x2156, 0xa78: 0x20ea, 0xa79: 0x20cc, 0xa7a: 0x2102, 0xa7b: 0x2114,+ 0xa7c: 0x214a, 0xa7d: 0x20d2, 0xa7e: 0x2174, 0xa7f: 0x20f6,// Block 0x2a, offset 0xa80- 0xa80: 0x2158, 0xa81: 0x20d4, 0xa82: 0x215e, 0xa83: 0x2164, 0xa84: 0x092f, 0xa85: 0x0b03,+ 0xa80: 0x215c, 0xa81: 0x20d8, 0xa82: 0x2162, 0xa83: 0x2168, 0xa84: 0x092f, 0xa85: 0x0b03,0xa86: 0x0ca7, 0xa87: 0x10c7,- 0xa90: 0x1bc0, 0xa91: 0x18a5,- 0xa92: 0x18a8, 0xa93: 0x18ab, 0xa94: 0x18ae, 0xa95: 0x18b1, 0xa96: 0x18b4, 0xa97: 0x18b7,- 0xa98: 0x18ba, 0xa99: 0x18bd, 0xa9a: 0x18c6, 0xa9b: 0x18c9, 0xa9c: 0x18cc, 0xa9d: 0x18cf,- 0xa9e: 0x18d2, 0xa9f: 0x18d5, 0xaa0: 0x0313, 0xaa1: 0x031b, 0xaa2: 0x031f, 0xaa3: 0x0327,+ 0xa90: 0x1bc4, 0xa91: 0x18a9,+ 0xa92: 0x18ac, 0xa93: 0x18af, 0xa94: 0x18b2, 0xa95: 0x18b5, 0xa96: 0x18b8, 0xa97: 0x18bb,+ 0xa98: 0x18be, 0xa99: 0x18c1, 0xa9a: 0x18ca, 0xa9b: 0x18cd, 0xa9c: 0x18d0, 0xa9d: 0x18d3,+ 0xa9e: 0x18d6, 0xa9f: 0x18d9, 0xaa0: 0x0313, 0xaa1: 0x031b, 0xaa2: 0x031f, 0xaa3: 0x0327,0xaa4: 0x032b, 0xaa5: 0x032f, 0xaa6: 0x0337, 0xaa7: 0x033f, 0xaa8: 0x0343, 0xaa9: 0x034b,- 0xaaa: 0x034f, 0xaab: 0x0353, 0xaac: 0x0357, 0xaad: 0x035b, 0xaae: 0x2e14, 0xaaf: 0x2e1c,- 0xab0: 0x2e24, 0xab1: 0x2e2c, 0xab2: 0x2e34, 0xab3: 0x2e3c, 0xab4: 0x2e44, 0xab5: 0x2e4c,- 0xab6: 0x2e5c, 0xab7: 0x2e64, 0xab8: 0x2e6c, 0xab9: 0x2e74, 0xaba: 0x2e7c, 0xabb: 0x2e84,- 0xabc: 0x2ecf, 0xabd: 0x2e97, 0xabe: 0x2e54,+ 0xaaa: 0x034f, 0xaab: 0x0353, 0xaac: 0x0357, 0xaad: 0x035b, 0xaae: 0x2e18, 0xaaf: 0x2e20,+ 0xab0: 0x2e28, 0xab1: 0x2e30, 0xab2: 0x2e38, 0xab3: 0x2e40, 0xab4: 0x2e48, 0xab5: 0x2e50,+ 0xab6: 0x2e60, 0xab7: 0x2e68, 0xab8: 0x2e70, 0xab9: 0x2e78, 0xaba: 0x2e80, 0xabb: 0x2e88,+ 0xabc: 0x2ed3, 0xabd: 0x2e9b, 0xabe: 0x2e58,// Block 0x2b, offset 0xac00xac0: 0x06bf, 0xac1: 0x071b, 0xac2: 0x06cb, 0xac3: 0x097b, 0xac4: 0x071f, 0xac5: 0x07af,0xac6: 0x06c7, 0xac7: 0x07ab, 0xac8: 0x070b, 0xac9: 0x0887, 0xaca: 0x0d07, 0xacb: 0x0e8f,- 0xacc: 0x0dd7, 0xacd: 0x0d1b, 0xace: 0x145b, 0xacf: 0x098b, 0xad0: 0x0ccf, 0xad1: 0x0d4b,+ 0xacc: 0x0dd7, 0xacd: 0x0d1b, 0xace: 0x145f, 0xacf: 0x098b, 0xad0: 0x0ccf, 0xad1: 0x0d4b,0xad2: 0x0d0b, 0xad3: 0x104b, 0xad4: 0x08fb, 0xad5: 0x0f03, 0xad6: 0x1387, 0xad7: 0x105f,0xad8: 0x0843, 0xad9: 0x108f, 0xada: 0x0f9b, 0xadb: 0x0a17, 0xadc: 0x140f, 0xadd: 0x077f,- 0xade: 0x08ab, 0xadf: 0x0df7, 0xae0: 0x1523, 0xae1: 0x0743, 0xae2: 0x07d3, 0xae3: 0x0d9b,+ 0xade: 0x08ab, 0xadf: 0x0df7, 0xae0: 0x1527, 0xae1: 0x0743, 0xae2: 0x07d3, 0xae3: 0x0d9b,0xae4: 0x06cf, 0xae5: 0x06e7, 0xae6: 0x06d3, 0xae7: 0x0adb, 0xae8: 0x08ef, 0xae9: 0x087f,0xaea: 0x0a57, 0xaeb: 0x0a4b, 0xaec: 0x0feb, 0xaed: 0x073f, 0xaee: 0x139b, 0xaef: 0x089b,- 0xaf0: 0x09f3, 0xaf1: 0x18d8, 0xaf2: 0x18db, 0xaf3: 0x18de, 0xaf4: 0x18e1, 0xaf5: 0x18ea,- 0xaf6: 0x18ed, 0xaf7: 0x18f0, 0xaf8: 0x18f3, 0xaf9: 0x18f6, 0xafa: 0x18f9, 0xafb: 0x18fc,- 0xafc: 0x18ff, 0xafd: 0x1902, 0xafe: 0x1905, 0xaff: 0x190e,+ 0xaf0: 0x09f3, 0xaf1: 0x18dc, 0xaf2: 0x18df, 0xaf3: 0x18e2, 0xaf4: 0x18e5, 0xaf5: 0x18ee,+ 0xaf6: 0x18f1, 0xaf7: 0x18f4, 0xaf8: 0x18f7, 0xaf9: 0x18fa, 0xafa: 0x18fd, 0xafb: 0x1900,+ 0xafc: 0x1903, 0xafd: 0x1906, 0xafe: 0x1909, 0xaff: 0x1912,// Block 0x2c, offset 0xb00- 0xb00: 0x1cc2, 0xb01: 0x1cd1, 0xb02: 0x1ce0, 0xb03: 0x1cef, 0xb04: 0x1cfe, 0xb05: 0x1d0d,- 0xb06: 0x1d1c, 0xb07: 0x1d2b, 0xb08: 0x1d3a, 0xb09: 0x2188, 0xb0a: 0x219a, 0xb0b: 0x21ac,- 0xb0c: 0x1950, 0xb0d: 0x1c00, 0xb0e: 0x19ce, 0xb0f: 0x1ba4, 0xb10: 0x04cb, 0xb11: 0x04d3,+ 0xb00: 0x1cc6, 0xb01: 0x1cd5, 0xb02: 0x1ce4, 0xb03: 0x1cf3, 0xb04: 0x1d02, 0xb05: 0x1d11,+ 0xb06: 0x1d20, 0xb07: 0x1d2f, 0xb08: 0x1d3e, 0xb09: 0x218c, 0xb0a: 0x219e, 0xb0b: 0x21b0,+ 0xb0c: 0x1954, 0xb0d: 0x1c04, 0xb0e: 0x19d2, 0xb0f: 0x1ba8, 0xb10: 0x04cb, 0xb11: 0x04d3,0xb12: 0x04db, 0xb13: 0x04e3, 0xb14: 0x04eb, 0xb15: 0x04ef, 0xb16: 0x04f3, 0xb17: 0x04f7,0xb18: 0x04fb, 0xb19: 0x04ff, 0xb1a: 0x0503, 0xb1b: 0x0507, 0xb1c: 0x050b, 0xb1d: 0x050f,0xb1e: 0x0513, 0xb1f: 0x0517, 0xb20: 0x051b, 0xb21: 0x0523, 0xb22: 0x0527, 0xb23: 0x052b,@@ -4986,110 +5007,110 @@ var nfkcValues = [5888]uint16{0xb36: 0x0583, 0xb37: 0x0587, 0xb38: 0x058b, 0xb39: 0x058f, 0xb3a: 0x0593, 0xb3b: 0x0597,0xb3c: 0x059b, 0xb3d: 0x059f, 0xb3e: 0x05a3,// Block 0x2d, offset 0xb40- 0xb40: 0x2b08, 0xb41: 0x29a4, 0xb42: 0x2b18, 0xb43: 0x287c, 0xb44: 0x2ee0, 0xb45: 0x2886,- 0xb46: 0x2890, 0xb47: 0x2f24, 0xb48: 0x29b1, 0xb49: 0x289a, 0xb4a: 0x28a4, 0xb4b: 0x28ae,- 0xb4c: 0x29d8, 0xb4d: 0x29e5, 0xb4e: 0x29be, 0xb4f: 0x29cb, 0xb50: 0x2ea5, 0xb51: 0x29f2,- 0xb52: 0x29ff, 0xb53: 0x2bba, 0xb54: 0x26b7, 0xb55: 0x2bcd, 0xb56: 0x2be0, 0xb57: 0x2b28,- 0xb58: 0x2a0c, 0xb59: 0x2bf3, 0xb5a: 0x2c06, 0xb5b: 0x2a19, 0xb5c: 0x28b8, 0xb5d: 0x28c2,- 0xb5e: 0x2eb3, 0xb5f: 0x2a26, 0xb60: 0x2b38, 0xb61: 0x2ef1, 0xb62: 0x28cc, 0xb63: 0x28d6,- 0xb64: 0x2a33, 0xb65: 0x28e0, 0xb66: 0x28ea,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xb71: 0x290c, 0xb72: 0x2f3c, 0xb73: 0x2a5e, 0xb74: 0x2c43, 0xb75: 0x2920,+ 0xb76: 0x2b5c, 0xb77: 0x292a, 0xb78: 0x2a78, 0xb79: 0x2934, 0xb7a: 0x2a85, 0xb7b: 0x2f06,+ 0xb7c: 0x2a6b, 0xb7d: 0x2b6c, 0xb7e: 0x2a92, 0xb7f: 0x26de,// Block 0x2e, offset 0xb80- 0xb80: 0x2f13, 0xb81: 0x293a, 0xb82: 0x2944, 0xb83: 0x2a9b, 0xb84: 0x294e, 0xb85: 0x2958,- 0xb86: 0x2962, 0xb87: 0x2b78, 0xb88: 0x2aa8, 0xb89: 0x26e1, 0xb8a: 0x2c52, 0xb8b: 0x2e8c,- 0xb8c: 0x2b88, 0xb8d: 0x2ab5, 0xb8e: 0x2ec1, 0xb8f: 0x296c, 0xb90: 0x2976, 0xb91: 0x2ac2,- 0xb92: 0x26e8, 0xb93: 0x2acf, 0xb94: 0x2b98, 0xb95: 0x26ef, 0xb96: 0x2c65, 0xb97: 0x2980,- 0xb98: 0x1cb3, 0xb99: 0x1cc7, 0xb9a: 0x1cd6, 0xb9b: 0x1ce5, 0xb9c: 0x1cf4, 0xb9d: 0x1d03,- 0xb9e: 0x1d12, 0xb9f: 0x1d21, 0xba0: 0x1d30, 0xba1: 0x1d3f, 0xba2: 0x218e, 0xba3: 0x21a0,- 0xba4: 0x21b2, 0xba5: 0x21be, 0xba6: 0x21ca, 0xba7: 0x21d6, 0xba8: 0x21e2, 0xba9: 0x21ee,- 0xbaa: 0x21fa, 0xbab: 0x2206, 0xbac: 0x2242, 0xbad: 0x224e, 0xbae: 0x225a, 0xbaf: 0x2266,- 0xbb0: 0x2272, 0xbb1: 0x1c10, 0xbb2: 0x19c2, 0xbb3: 0x1932, 0xbb4: 0x1be0, 0xbb5: 0x1a43,- 0xbb6: 0x1a52, 0xbb7: 0x19c8, 0xbb8: 0x1bf8, 0xbb9: 0x1bfc, 0xbba: 0x195c, 0xbbb: 0x26fd,- 0xbbc: 0x270b, 0xbbd: 0x26f6, 0xbbe: 0x2704, 0xbbf: 0x2adc,+ 0xb80: 0x2f17, 0xb81: 0x293e, 0xb82: 0x2948, 0xb83: 0x2a9f, 0xb84: 0x2952, 0xb85: 0x295c,+ 0xb86: 0x2966, 0xb87: 0x2b7c, 0xb88: 0x2aac, 0xb89: 0x26e5, 0xb8a: 0x2c56, 0xb8b: 0x2e90,+ 0xb8c: 0x2b8c, 0xb8d: 0x2ab9, 0xb8e: 0x2ec5, 0xb8f: 0x2970, 0xb90: 0x297a, 0xb91: 0x2ac6,+ 0xb92: 0x26ec, 0xb93: 0x2ad3, 0xb94: 0x2b9c, 0xb95: 0x26f3, 0xb96: 0x2c69, 0xb97: 0x2984,+ 0xb98: 0x1cb7, 0xb99: 0x1ccb, 0xb9a: 0x1cda, 0xb9b: 0x1ce9, 0xb9c: 0x1cf8, 0xb9d: 0x1d07,+ 0xb9e: 0x1d16, 0xb9f: 0x1d25, 0xba0: 0x1d34, 0xba1: 0x1d43, 0xba2: 0x2192, 0xba3: 0x21a4,+ 0xba4: 0x21b6, 0xba5: 0x21c2, 0xba6: 0x21ce, 0xba7: 0x21da, 0xba8: 0x21e6, 0xba9: 0x21f2,+ 0xbaa: 0x21fe, 0xbab: 0x220a, 0xbac: 0x2246, 0xbad: 0x2252, 0xbae: 0x225e, 0xbaf: 0x226a,+ 0xbb0: 0x2276, 0xbb1: 0x1c14, 0xbb2: 0x19c6, 0xbb3: 0x1936, 0xbb4: 0x1be4, 0xbb5: 0x1a47,+ 0xbb6: 0x1a56, 0xbb7: 0x19cc, 0xbb8: 0x1bfc, 0xbb9: 0x1c00, 0xbba: 0x1960, 0xbbb: 0x2701,+ 0xbbc: 0x270f, 0xbbd: 0x26fa, 0xbbe: 0x2708, 0xbbf: 0x2ae0,// Block 0x2f, offset 0xbc0- 0xbc0: 0x1a46, 0xbc1: 0x1a2e, 0xbc2: 0x1c5c, 0xbc3: 0x1a16, 0xbc4: 0x19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f, 0xc15: 0x1c34, 0xc16: 0x1c40, 0xc17: 0x198c,- 0xc18: 0x1d53, 0xc19: 0x1bb8, 0xc1a: 0x198f, 0xc1b: 0x1a58, 0xc1c: 0x19a1, 0xc1d: 0x19b0,- 0xc1e: 0x22de, 0xc1f: 0x22d8, 0xc20: 0x1cbd, 0xc21: 0x1ccc, 0xc22: 0x1cdb, 0xc23: 0x1cea,- 0xc24: 0x1cf9, 0xc25: 0x1d08, 0xc26: 0x1d17, 0xc27: 0x1d26, 0xc28: 0x1d35, 0xc29: 0x2182,- 0xc2a: 0x2194, 0xc2b: 0x21a6, 0xc2c: 0x21b8, 0xc2d: 0x21c4, 0xc2e: 0x21d0, 0xc2f: 0x21dc,- 0xc30: 0x21e8, 0xc31: 0x21f4, 0xc32: 0x2200, 0xc33: 0x223c, 0xc34: 0x2248, 0xc35: 0x2254,- 0xc36: 0x2260, 0xc37: 0x226c, 0xc38: 0x2278, 0xc39: 0x227e, 0xc3a: 0x2284, 0xc3b: 0x228a,- 0xc3c: 0x2290, 0xc3d: 0x22a2, 0xc3e: 0x22a8, 0xc3f: 0x1c0c,+ 0xc00: 0x1c2c, 0xc01: 0x1bb8, 0xc02: 0x1d4d, 0xc03: 0x1939, 0xc04: 0x19ba, 0xc05: 0x19bd,+ 0xc06: 0x22f5, 0xc07: 0x1b94, 0xc08: 0x19c3, 0xc09: 0x194b, 0xc0a: 0x19e1, 0xc0b: 0x194e,+ 0xc0c: 0x19ea, 0xc0d: 0x196c, 0xc0e: 0x196f, 0xc0f: 0x1a05, 0xc10: 0x1a0b, 0xc11: 0x1a0e,+ 0xc12: 0x1c30, 0xc13: 0x1a11, 0xc14: 0x1a23, 0xc15: 0x1c38, 0xc16: 0x1c44, 0xc17: 0x1990,+ 0xc18: 0x1d57, 0xc19: 0x1bbc, 0xc1a: 0x1993, 0xc1b: 0x1a5c, 0xc1c: 0x19a5, 0xc1d: 0x19b4,+ 0xc1e: 0x22e2, 0xc1f: 0x22dc, 0xc20: 0x1cc1, 0xc21: 0x1cd0, 0xc22: 0x1cdf, 0xc23: 0x1cee,+ 0xc24: 0x1cfd, 0xc25: 0x1d0c, 0xc26: 0x1d1b, 0xc27: 0x1d2a, 0xc28: 0x1d39, 0xc29: 0x2186,+ 0xc2a: 0x2198, 0xc2b: 0x21aa, 0xc2c: 0x21bc, 0xc2d: 0x21c8, 0xc2e: 0x21d4, 0xc2f: 0x21e0,+ 0xc30: 0x21ec, 0xc31: 0x21f8, 0xc32: 0x2204, 0xc33: 0x2240, 0xc34: 0x224c, 0xc35: 0x2258,+ 0xc36: 0x2264, 0xc37: 0x2270, 0xc38: 0x227c, 0xc39: 0x2282, 0xc3a: 0x2288, 0xc3b: 0x228e,+ 0xc3c: 0x2294, 0xc3d: 0x22a6, 0xc3e: 0x22ac, 0xc3f: 0x1c10,// Block 0x31, offset 0xc400xc40: 0x1377, 0xc41: 0x0cfb, 0xc42: 0x13d3, 0xc43: 0x139f, 0xc44: 0x0e57, 0xc45: 0x06eb,- 0xc46: 0x08df, 0xc47: 0x1627, 0xc48: 0x1627, 0xc49: 0x0a0b, 0xc4a: 0x145b, 0xc4b: 0x0943,+ 0xc46: 0x08df, 0xc47: 0x162b, 0xc48: 0x162b, 0xc49: 0x0a0b, 0xc4a: 0x145f, 0xc4b: 0x0943,0xc4c: 0x0a07, 0xc4d: 0x0bef, 0xc4e: 0x0fcf, 0xc4f: 0x115f, 0xc50: 0x1297, 0xc51: 0x12d3,0xc52: 0x1307, 0xc53: 0x141b, 0xc54: 0x0d73, 0xc55: 0x0dff, 0xc56: 0x0eab, 0xc57: 0x0f43,- 0xc58: 0x125f, 0xc59: 0x1443, 0xc5a: 0x156f, 0xc5b: 0x070f, 0xc5c: 0x08b3, 0xc5d: 0x0d87,- 0xc5e: 0x0ecf, 0xc5f: 0x1293, 0xc60: 0x15bf, 0xc61: 0x0ab3, 0xc62: 0x0e77, 0xc63: 0x1283,+ 0xc58: 0x125f, 0xc59: 0x1447, 0xc5a: 0x1573, 0xc5b: 0x070f, 0xc5c: 0x08b3, 0xc5d: 0x0d87,+ 0xc5e: 0x0ecf, 0xc5f: 0x1293, 0xc60: 0x15c3, 0xc61: 0x0ab3, 0xc62: 0x0e77, 0xc63: 0x1283,0xc64: 0x1317, 0xc65: 0x0c23, 0xc66: 0x11bb, 0xc67: 0x12df, 0xc68: 0x0b1f, 0xc69: 0x0d0f,0xc6a: 0x0e17, 0xc6b: 0x0f1b, 0xc6c: 0x1427, 0xc6d: 0x074f, 0xc6e: 0x07e7, 0xc6f: 0x0853,0xc70: 0x0c8b, 0xc71: 0x0d7f, 0xc72: 0x0ecb, 0xc73: 0x0fef, 0xc74: 0x1177, 0xc75: 0x128b,- 0xc76: 0x12a3, 0xc77: 0x13c7, 0xc78: 0x14eb, 0xc79: 0x159f, 0xc7a: 0x15bb, 0xc7b: 0x102b,- 0xc7c: 0x106b, 0xc7d: 0x1123, 0xc7e: 0x1243, 0xc7f: 0x1477,+ 0xc76: 0x12a3, 0xc77: 0x13c7, 0xc78: 0x14ef, 0xc79: 0x15a3, 0xc7a: 0x15bf, 0xc7b: 0x102b,+ 0xc7c: 0x106b, 0xc7d: 0x1123, 0xc7e: 0x1243, 0xc7f: 0x147b,// Block 0x32, offset 0xc80- 0xc80: 0x15c7, 0xc81: 0x134b, 0xc82: 0x09c7, 0xc83: 0x0b3b, 0xc84: 0x10db, 0xc85: 0x119b,- 0xc86: 0x0eff, 0xc87: 0x1033, 0xc88: 0x1397, 0xc89: 0x14e3, 0xc8a: 0x09c3, 0xc8b: 0x0a8f,- 0xc8c: 0x0d77, 0xc8d: 0x0e2b, 0xc8e: 0x0e5f, 0xc8f: 0x1113, 0xc90: 0x113b, 0xc91: 0x14a3,+ 0xc80: 0x15cb, 0xc81: 0x134b, 0xc82: 0x09c7, 0xc83: 0x0b3b, 0xc84: 0x10db, 0xc85: 0x119b,+ 0xc86: 0x0eff, 0xc87: 0x1033, 0xc88: 0x1397, 0xc89: 0x14e7, 0xc8a: 0x09c3, 0xc8b: 0x0a8f,+ 0xc8c: 0x0d77, 0xc8d: 0x0e2b, 0xc8e: 0x0e5f, 0xc8f: 0x1113, 0xc90: 0x113b, 0xc91: 0x14a7,0xc92: 0x084f, 0xc93: 0x11a7, 0xc94: 0x07f3, 0xc95: 0x07ef, 0xc96: 0x1097, 0xc97: 0x1127,- 0xc98: 0x125b, 0xc99: 0x14ab, 0xc9a: 0x1367, 0xc9b: 0x0c27, 0xc9c: 0x0d73, 0xc9d: 0x1357,+ 0xc98: 0x125b, 0xc99: 0x14af, 0xc9a: 0x1367, 0xc9b: 0x0c27, 0xc9c: 0x0d73, 0xc9d: 0x1357,0xc9e: 0x06f7, 0xc9f: 0x0a63, 0xca0: 0x0b93, 0xca1: 0x0f2f, 0xca2: 0x0faf, 0xca3: 0x0873,0xca4: 0x103b, 0xca5: 0x075f, 0xca6: 0x0b77, 0xca7: 0x06d7, 0xca8: 0x0deb, 0xca9: 0x0ca3,0xcaa: 0x110f, 0xcab: 0x08c7, 0xcac: 0x09b3, 0xcad: 0x0ffb, 0xcae: 0x1263, 0xcaf: 0x133b,0xcb0: 0x0db7, 0xcb1: 0x13f7, 0xcb2: 0x0de3, 0xcb3: 0x0c37, 0xcb4: 0x121b, 0xcb5: 0x0c57,0xcb6: 0x0fab, 0xcb7: 0x072b, 0xcb8: 0x07a7, 0xcb9: 0x07eb, 0xcba: 0x0d53, 0xcbb: 0x10fb,- 0xcbc: 0x11f3, 0xcbd: 0x1347, 0xcbe: 0x1457, 0xcbf: 0x085b,+ 0xcbc: 0x11f3, 0xcbd: 0x1347, 0xcbe: 0x145b, 0xcbf: 0x085b,// Block 0x33, offset 0xcc00xcc0: 0x090f, 0xcc1: 0x0a17, 0xcc2: 0x0b2f, 0xcc3: 0x0cbf, 0xcc4: 0x0e7b, 0xcc5: 0x103f,- 0xcc6: 0x1493, 0xcc7: 0x1577, 0xcc8: 0x15cb, 0xcc9: 0x15e3, 0xcca: 0x0837, 0xccb: 0x0cf3,+ 0xcc6: 0x1497, 0xcc7: 0x157b, 0xcc8: 0x15cf, 0xcc9: 0x15e7, 0xcca: 0x0837, 0xccb: 0x0cf3,0xccc: 0x0da3, 0xccd: 0x13eb, 0xcce: 0x0afb, 0xccf: 0x0bd7, 0xcd0: 0x0bf3, 0xcd1: 0x0c83,0xcd2: 0x0e6b, 0xcd3: 0x0eb7, 0xcd4: 0x0f67, 0xcd5: 0x108b, 0xcd6: 0x112f, 0xcd7: 0x1193,- 0xcd8: 0x13db, 0xcd9: 0x126b, 0xcda: 0x1403, 0xcdb: 0x147b, 0xcdc: 0x080f, 0xcdd: 0x083b,+ 0xcd8: 0x13db, 0xcd9: 0x126b, 0xcda: 0x1403, 0xcdb: 0x147f, 0xcdc: 0x080f, 0xcdd: 0x083b,0xcde: 0x0923, 0xcdf: 0x0ea7, 0xce0: 0x12f3, 0xce1: 0x133b, 0xce2: 0x0b1b, 0xce3: 0x0b8b,0xce4: 0x0c4f, 0xce5: 0x0daf, 0xce6: 0x10d7, 0xce7: 0x0f23, 0xce8: 0x073b, 0xce9: 0x097f,0xcea: 0x0a63, 0xceb: 0x0ac7, 0xcec: 0x0b97, 0xced: 0x0f3f, 0xcee: 0x0f5b, 0xcef: 0x116b,- 0xcf0: 0x118b, 0xcf1: 0x145f, 0xcf2: 0x14df, 0xcf3: 0x14ef, 0xcf4: 0x152b, 0xcf5: 0x0753,- 0xcf6: 0x107f, 0xcf7: 0x144b, 0xcf8: 0x14c7, 0xcf9: 0x0baf, 0xcfa: 0x0717, 0xcfb: 0x0777,+ 0xcf0: 0x118b, 0xcf1: 0x1463, 0xcf2: 0x14e3, 0xcf3: 0x14f3, 0xcf4: 0x152f, 0xcf5: 0x0753,+ 0xcf6: 0x107f, 0xcf7: 0x144f, 0xcf8: 0x14cb, 0xcf9: 0x0baf, 0xcfa: 0x0717, 0xcfb: 0x0777,0xcfc: 0x0a67, 0xcfd: 0x0a87, 0xcfe: 0x0caf, 0xcff: 0x0d73,// Block 0x34, offset 0xd00- 0xd00: 0x0ec3, 0xd01: 0x0fcb, 0xd02: 0x1277, 0xd03: 0x1417, 0xd04: 0x161f, 0xd05: 0x0ce3,- 0xd06: 0x149f, 0xd07: 0x0833, 0xd08: 0x0d2f, 0xd09: 0x0d3b, 0xd0a: 0x0e0f, 0xd0b: 0x0e47,- 0xd0c: 0x0f4b, 0xd0d: 0x0fa7, 0xd0e: 0x1027, 0xd0f: 0x110b, 0xd10: 0x1537, 0xd11: 0x07af,- 0xd12: 0x0c03, 0xd13: 0x14af, 0xd14: 0x0767, 0xd15: 0x0aab, 0xd16: 0x0e2f, 0xd17: 0x13df,- 0xd18: 0x0b67, 0xd19: 0x0bb7, 0xd1a: 0x0d43, 0xd1b: 0x0f2f, 0xd1c: 0x14b7, 0xd1d: 0x0817,+ 0xd00: 0x0ec3, 0xd01: 0x0fcb, 0xd02: 0x1277, 0xd03: 0x1417, 0xd04: 0x1623, 0xd05: 0x0ce3,+ 0xd06: 0x14a3, 0xd07: 0x0833, 0xd08: 0x0d2f, 0xd09: 0x0d3b, 0xd0a: 0x0e0f, 0xd0b: 0x0e47,+ 0xd0c: 0x0f4b, 0xd0d: 0x0fa7, 0xd0e: 0x1027, 0xd0f: 0x110b, 0xd10: 0x153b, 0xd11: 0x07af,+ 0xd12: 0x0c03, 0xd13: 0x14b3, 0xd14: 0x0767, 0xd15: 0x0aab, 0xd16: 0x0e2f, 0xd17: 0x13df,+ 0xd18: 0x0b67, 0xd19: 0x0bb7, 0xd1a: 0x0d43, 0xd1b: 0x0f2f, 0xd1c: 0x14bb, 0xd1d: 0x0817,0xd1e: 0x08ff, 0xd1f: 0x0a97, 0xd20: 0x0cd3, 0xd21: 0x0d1f, 0xd22: 0x0d5f, 0xd23: 0x0df3,- 0xd24: 0x0f47, 0xd25: 0x0fbb, 0xd26: 0x1157, 0xd27: 0x12f7, 0xd28: 0x1303, 0xd29: 0x1453,- 0xd2a: 0x14d3, 0xd2b: 0x0883, 0xd2c: 0x0e4b, 0xd2d: 0x0903, 0xd2e: 0x0ec7, 0xd2f: 0x0f6b,- 0xd30: 0x1287, 0xd31: 0x14bb, 0xd32: 0x15a7, 0xd33: 0x15cf, 0xd34: 0x0d37, 0xd35: 0x0e27,+ 0xd24: 0x0f47, 0xd25: 0x0fbb, 0xd26: 0x1157, 0xd27: 0x12f7, 0xd28: 0x1303, 0xd29: 0x1457,+ 0xd2a: 0x14d7, 0xd2b: 0x0883, 0xd2c: 0x0e4b, 0xd2d: 0x0903, 0xd2e: 0x0ec7, 0xd2f: 0x0f6b,+ 0xd30: 0x1287, 0xd31: 0x14bf, 0xd32: 0x15ab, 0xd33: 0x15d3, 0xd34: 0x0d37, 0xd35: 0x0e27,0xd36: 0x11c3, 0xd37: 0x10b7, 0xd38: 0x10c3, 0xd39: 0x10e7, 0xd3a: 0x0f17, 0xd3b: 0x0e9f,0xd3c: 0x1363, 0xd3d: 0x0733, 0xd3e: 0x122b, 0xd3f: 0x081b,// Block 0x35, offset 0xd400xd40: 0x080b, 0xd41: 0x0b0b, 0xd42: 0x0c2b, 0xd43: 0x10f3, 0xd44: 0x0a53, 0xd45: 0x0e03,- 0xd46: 0x0cef, 0xd47: 0x13e7, 0xd48: 0x12e7, 0xd49: 0x14a7, 0xd4a: 0x1323, 0xd4b: 0x0b27,+ 0xd46: 0x0cef, 0xd47: 0x13e7, 0xd48: 0x12e7, 0xd49: 0x14ab, 0xd4a: 0x1323, 0xd4b: 0x0b27,0xd4c: 0x0787, 0xd4d: 0x095b, 0xd50: 0x09af,0xd52: 0x0cdf, 0xd55: 0x07f7, 0xd56: 0x0f1f, 0xd57: 0x0fe3,- 0xd58: 0x1047, 0xd59: 0x1063, 0xd5a: 0x1067, 0xd5b: 0x107b, 0xd5c: 0x14f7, 0xd5d: 0x10eb,+ 0xd58: 0x1047, 0xd59: 0x1063, 0xd5a: 0x1067, 0xd5b: 0x107b, 0xd5c: 0x14fb, 0xd5d: 0x10eb,0xd5e: 0x116f, 0xd60: 0x128f, 0xd62: 0x1353,0xd65: 0x1407, 0xd66: 0x1433,- 0xd6a: 0x154b, 0xd6b: 0x154f, 0xd6c: 0x1553, 0xd6d: 0x15b7, 0xd6e: 0x142b, 0xd6f: 0x14c3,+ 0xd6a: 0x154f, 0xd6b: 0x1553, 0xd6c: 0x1557, 0xd6d: 0x15bb, 0xd6e: 0x142b, 0xd6f: 0x14c7,0xd70: 0x0757, 0xd71: 0x077b, 0xd72: 0x078f, 0xd73: 0x084b, 0xd74: 0x0857, 0xd75: 0x0897,0xd76: 0x094b, 0xd77: 0x0967, 0xd78: 0x096f, 0xd79: 0x09ab, 0xd7a: 0x09b7, 0xd7b: 0x0a93,0xd7c: 0x0a9b, 0xd7d: 0x0ba3, 0xd7e: 0x0bcb, 0xd7f: 0x0bd3,@@ -5100,8 +5121,8 @@ var nfkcValues = [5888]uint16{0xd92: 0x1073, 0xd93: 0x1077, 0xd94: 0x109b, 0xd95: 0x10af, 0xd96: 0x10cb, 0xd97: 0x112f,0xd98: 0x1137, 0xd99: 0x113f, 0xd9a: 0x1153, 0xd9b: 0x117b, 0xd9c: 0x11cb, 0xd9d: 0x11ff,0xd9e: 0x11ff, 0xd9f: 0x1267, 0xda0: 0x130f, 0xda1: 0x1327, 0xda2: 0x135b, 0xda3: 0x135f,- 0xda4: 0x13a3, 0xda5: 0x13a7, 0xda6: 0x13ff, 0xda7: 0x1407, 0xda8: 0x14d7, 0xda9: 0x151b,- 0xdaa: 0x1533, 0xdab: 0x0b9b, 0xdac: 0x171a, 0xdad: 0x11e3,+ 0xda4: 0x13a3, 0xda5: 0x13a7, 0xda6: 0x13ff, 0xda7: 0x1407, 0xda8: 0x14db, 0xda9: 0x151f,+ 0xdaa: 0x1537, 0xdab: 0x0b9b, 0xdac: 0x171e, 0xdad: 0x11e3,0xdb0: 0x06df, 0xdb1: 0x07e3, 0xdb2: 0x07a3, 0xdb3: 0x074b, 0xdb4: 0x078b, 0xdb5: 0x07b7,0xdb6: 0x0847, 0xdb7: 0x0863, 0xdb8: 0x094b, 0xdb9: 0x0937, 0xdba: 0x0947, 0xdbb: 0x0963,0xdbc: 0x09af, 0xdbd: 0x09bf, 0xdbe: 0x0a03, 0xdbf: 0x0a0f,@@ -5118,26 +5139,26 @@ var nfkcValues = [5888]uint16{0xdf6: 0x1313, 0xdf7: 0x131f, 0xdf8: 0x1327, 0xdf9: 0x133f, 0xdfa: 0x1353, 0xdfb: 0x1343,0xdfc: 0x135b, 0xdfd: 0x1357, 0xdfe: 0x134f, 0xdff: 0x135f,// Block 0x38, offset 0xe00- 0xe00: 0x136b, 0xe01: 0x13a7, 0xe02: 0x13e3, 0xe03: 0x1413, 0xe04: 0x1447, 0xe05: 0x1467,- 0xe06: 0x14b3, 0xe07: 0x14d7, 0xe08: 0x14f7, 0xe09: 0x150b, 0xe0a: 0x151b, 0xe0b: 0x1527,- 0xe0c: 0x1533, 0xe0d: 0x1587, 0xe0e: 0x1627, 0xe0f: 0x16b1, 0xe10: 0x16ac, 0xe11: 0x16de,- 0xe12: 0x0607, 0xe13: 0x062f, 0xe14: 0x0633, 0xe15: 0x1760, 0xe16: 0x178d, 0xe17: 0x1805,- 0xe18: 0x1613, 0xe19: 0x1623,+ 0xe00: 0x136b, 0xe01: 0x13a7, 0xe02: 0x13e3, 0xe03: 0x1413, 0xe04: 0x144b, 0xe05: 0x146b,+ 0xe06: 0x14b7, 0xe07: 0x14db, 0xe08: 0x14fb, 0xe09: 0x150f, 0xe0a: 0x151f, 0xe0b: 0x152b,+ 0xe0c: 0x1537, 0xe0d: 0x158b, 0xe0e: 0x162b, 0xe0f: 0x16b5, 0xe10: 0x16b0, 0xe11: 0x16e2,+ 0xe12: 0x0607, 0xe13: 0x062f, 0xe14: 0x0633, 0xe15: 0x1764, 0xe16: 0x1791, 0xe17: 0x1809,+ 0xe18: 0x1617, 0xe19: 0x1627,// Block 0x39, offset 0xe40- 0xe40: 0x19d1, 0xe41: 0x19d4, 0xe42: 0x19d7, 0xe43: 0x1c04, 0xe44: 0x1c08, 0xe45: 0x1a5b,- 0xe46: 0x1a5b,- 0xe53: 0x1d71, 0xe54: 0x1d62, 0xe55: 0x1d67, 0xe56: 0x1d76, 0xe57: 0x1d6c,- 0xe5d: 0x4422,- 0xe5e: 0x8115, 0xe5f: 0x4494, 0xe60: 0x022d, 0xe61: 0x0215, 0xe62: 0x021e, 0xe63: 0x0221,+ 0xe40: 0x19d5, 0xe41: 0x19d8, 0xe42: 0x19db, 0xe43: 0x1c08, 0xe44: 0x1c0c, 0xe45: 0x1a5f,+ 0xe46: 0x1a5f,+ 0xe53: 0x1d75, 0xe54: 0x1d66, 0xe55: 0x1d6b, 0xe56: 0x1d7a, 0xe57: 0x1d70,+ 0xe5d: 0x4426,+ 0xe5e: 0x8115, 0xe5f: 0x4498, 0xe60: 0x022d, 0xe61: 0x0215, 0xe62: 0x021e, 0xe63: 0x0221,0xe64: 0x0224, 0xe65: 0x0227, 0xe66: 0x022a, 0xe67: 0x0230, 0xe68: 0x0233, 0xe69: 0x0017,- 0xe6a: 0x4482, 0xe6b: 0x4488, 0xe6c: 0x4586, 0xe6d: 0x458e, 0xe6e: 0x43da, 0xe6f: 0x43e0,- 0xe70: 0x43e6, 0xe71: 0x43ec, 0xe72: 0x43f8, 0xe73: 0x43fe, 0xe74: 0x4404, 0xe75: 0x4410,- 0xe76: 0x4416, 0xe78: 0x441c, 0xe79: 0x4428, 0xe7a: 0x442e, 0xe7b: 0x4434,- 0xe7c: 0x4440, 0xe7e: 0x4446,+ 0xe6a: 0x4486, 0xe6b: 0x448c, 0xe6c: 0x458a, 0xe6d: 0x4592, 0xe6e: 0x43de, 0xe6f: 0x43e4,+ 0xe70: 0x43ea, 0xe71: 0x43f0, 0xe72: 0x43fc, 0xe73: 0x4402, 0xe74: 0x4408, 0xe75: 0x4414,+ 0xe76: 0x441a, 0xe78: 0x4420, 0xe79: 0x442c, 0xe7a: 0x4432, 0xe7b: 0x4438,+ 0xe7c: 0x4444, 0xe7e: 0x444a,// Block 0x3a, offset 0xe80- 0xe80: 0x444c, 0xe81: 0x4452, 0xe83: 0x4458, 0xe84: 0x445e,- 0xe86: 0x446a, 0xe87: 0x4470, 0xe88: 0x4476, 0xe89: 0x447c, 0xe8a: 0x448e, 0xe8b: 0x440a,- 0xe8c: 0x43f2, 0xe8d: 0x443a, 0xe8e: 0x4464, 0xe8f: 0x1d7b, 0xe90: 0x0299, 0xe91: 0x0299,+ 0xe80: 0x4450, 0xe81: 0x4456, 0xe83: 0x445c, 0xe84: 0x4462,+ 0xe86: 0x446e, 0xe87: 0x4474, 0xe88: 0x447a, 0xe89: 0x4480, 0xe8a: 0x4492, 0xe8b: 0x440e,+ 0xe8c: 0x43f6, 0xe8d: 0x443e, 0xe8e: 0x4468, 0xe8f: 0x1d7f, 0xe90: 0x0299, 0xe91: 0x0299,0xe92: 0x02a2, 0xe93: 0x02a2, 0xe94: 0x02a2, 0xe95: 0x02a2, 0xe96: 0x02a5, 0xe97: 0x02a5,0xe98: 0x02a5, 0xe99: 0x02a5, 0xe9a: 0x02ab, 0xe9b: 0x02ab, 0xe9c: 0x02ab, 0xe9d: 0x02ab,0xe9e: 0x029f, 0xe9f: 0x029f, 0xea0: 0x029f, 0xea1: 0x029f, 0xea2: 0x02a8, 0xea3: 0x02a8,@@ -5153,132 +5174,132 @@ var nfkcValues = [5888]uint16{0xed2: 0x02db, 0xed3: 0x02db, 0xed4: 0x02db, 0xed5: 0x02db, 0xed6: 0x02e1, 0xed7: 0x02e1,0xed8: 0x02e1, 0xed9: 0x02e1, 0xeda: 0x02de, 0xedb: 0x02de, 0xedc: 0x02de, 0xedd: 0x02de,0xede: 0x02e4, 0xedf: 0x02e4, 0xee0: 0x02e7, 0xee1: 0x02e7, 0xee2: 0x02e7, 0xee3: 0x02e7,- 0xee4: 0x4500, 0xee5: 0x4500, 0xee6: 0x02ed, 0xee7: 0x02ed, 0xee8: 0x02ed, 0xee9: 0x02ed,+ 0xee4: 0x4504, 0xee5: 0x4504, 0xee6: 0x02ed, 0xee7: 0x02ed, 0xee8: 0x02ed, 0xee9: 0x02ed,0xeea: 0x02ea, 0xeeb: 0x02ea, 0xeec: 0x02ea, 0xeed: 0x02ea, 0xeee: 0x0308, 0xeef: 0x0308,- 0xef0: 0x44fa, 0xef1: 0x44fa,+ 0xef0: 0x44fe, 0xef1: 0x44fe,// Block 0x3c, offset 0xf000xf13: 0x02d8, 0xf14: 0x02d8, 0xf15: 0x02d8, 0xf16: 0x02d8, 0xf17: 0x02f6,- 0xf18: 0x02f6, 0xf19: 0x02f3, 0xf1a: 0x02f3, 0xf1b: 0x02f9, 0xf1c: 0x02f9, 0xf1d: 0x204b,+ 0xf18: 0x02f6, 0xf19: 0x02f3, 0xf1a: 0x02f3, 0xf1b: 0x02f9, 0xf1c: 0x02f9, 0xf1d: 0x204f,0xf1e: 0x02ff, 0xf1f: 0x02ff, 0xf20: 0x02f0, 0xf21: 0x02f0, 0xf22: 0x02fc, 0xf23: 0x02fc,0xf24: 0x0305, 0xf25: 0x0305, 0xf26: 0x0305, 0xf27: 0x0305, 0xf28: 0x028d, 0xf29: 0x028d,- 0xf2a: 0x25a6, 0xf2b: 0x25a6, 0xf2c: 0x2616, 0xf2d: 0x2616, 0xf2e: 0x25e5, 0xf2f: 0x25e5,- 0xf30: 0x2601, 0xf31: 0x2601, 0xf32: 0x25fa, 0xf33: 0x25fa, 0xf34: 0x2608, 0xf35: 0x2608,- 0xf36: 0x260f, 0xf37: 0x260f, 0xf38: 0x260f, 0xf39: 0x25ec, 0xf3a: 0x25ec, 0xf3b: 0x25ec,+ 0xf2a: 0x25aa, 0xf2b: 0x25aa, 0xf2c: 0x261a, 0xf2d: 0x261a, 0xf2e: 0x25e9, 0xf2f: 0x25e9,+ 0xf30: 0x2605, 0xf31: 0x2605, 0xf32: 0x25fe, 0xf33: 0x25fe, 0xf34: 0x260c, 0xf35: 0x260c,+ 0xf36: 0x2613, 0xf37: 0x2613, 0xf38: 0x2613, 0xf39: 0x25f0, 0xf3a: 0x25f0, 0xf3b: 0x25f0,0xf3c: 0x0302, 0xf3d: 0x0302, 0xf3e: 0x0302, 0xf3f: 0x0302,// Block 0x3d, offset 0xf40- 0xf40: 0x25ad, 0xf41: 0x25b4, 0xf42: 0x25d0, 0xf43: 0x25ec, 0xf44: 0x25f3, 0xf45: 0x1d85,- 0xf46: 0x1d8a, 0xf47: 0x1d8f, 0xf48: 0x1d9e, 0xf49: 0x1dad, 0xf4a: 0x1db2, 0xf4b: 0x1db7,- 0xf4c: 0x1dbc, 0xf4d: 0x1dc1, 0xf4e: 0x1dd0, 0xf4f: 0x1ddf, 0xf50: 0x1de4, 0xf51: 0x1de9,- 0xf52: 0x1df8, 0xf53: 0x1e07, 0xf54: 0x1e0c, 0xf55: 0x1e11, 0xf56: 0x1e16, 0xf57: 0x1e25,- 0xf58: 0x1e2a, 0xf59: 0x1e39, 0xf5a: 0x1e3e, 0xf5b: 0x1e43, 0xf5c: 0x1e52, 0xf5d: 0x1e57,- 0xf5e: 0x1e5c, 0xf5f: 0x1e66, 0xf60: 0x1ea2, 0xf61: 0x1eb1, 0xf62: 0x1ec0, 0xf63: 0x1ec5,- 0xf64: 0x1eca, 0xf65: 0x1ed4, 0xf66: 0x1ee3, 0xf67: 0x1ee8, 0xf68: 0x1ef7, 0xf69: 0x1efc,- 0xf6a: 0x1f01, 0xf6b: 0x1f10, 0xf6c: 0x1f15, 0xf6d: 0x1f24, 0xf6e: 0x1f29, 0xf6f: 0x1f2e,- 0xf70: 0x1f33, 0xf71: 0x1f38, 0xf72: 0x1f3d, 0xf73: 0x1f42, 0xf74: 0x1f47, 0xf75: 0x1f4c,- 0xf76: 0x1f51, 0xf77: 0x1f56, 0xf78: 0x1f5b, 0xf79: 0x1f60, 0xf7a: 0x1f65, 0xf7b: 0x1f6a,- 0xf7c: 0x1f6f, 0xf7d: 0x1f74, 0xf7e: 0x1f79, 0xf7f: 0x1f83,+ 0xf40: 0x25b1, 0xf41: 0x25b8, 0xf42: 0x25d4, 0xf43: 0x25f0, 0xf44: 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0x1dd4, 0xfe5: 0x1dde, 0xfe6: 0x1dfc, 0xfe7: 0x1e15, 0xfe8: 0x1e1a, 0xfe9: 0x1e29,+ 0xfea: 0x1e2e, 0xfeb: 0x1e3d, 0xfec: 0x1e47, 0xfed: 0x1e56, 0xfee: 0x1e5b, 0xfef: 0x1e60,+ 0xff0: 0x1e6a, 0xff1: 0x1ea6, 0xff2: 0x1eab, 0xff3: 0x1eb5, 0xff4: 0x1ec4, 0xff5: 0x1ec9,+ 0xff6: 0x1ece, 0xff7: 0x1ed8, 0xff8: 0x1ee7, 0xff9: 0x1efb, 0xffa: 0x1f00, 0xffb: 0x1f05,+ 0xffc: 0x1f14, 0xffd: 0x1f19, 0xffe: 0x1f28, 0xfff: 0x1f2d,// Block 0x40, offset 0x1000- 0x1000: 0x1f2e, 0x1001: 0x1f33, 0x1002: 0x1f42, 0x1003: 0x1f47, 0x1004: 0x1f5b, 0x1005: 0x1f60,- 0x1006: 0x1f65, 0x1007: 0x1f6a, 0x1008: 0x1f6f, 0x1009: 0x1f83, 0x100a: 0x1f88, 0x100b: 0x1f8d,- 0x100c: 0x1f92, 0x100d: 0x1f97, 0x100e: 0x1fab, 0x100f: 0x1fb0, 0x1010: 0x1fb5, 0x1011: 0x1fba,- 0x1012: 0x1fc9, 0x1013: 0x1fce, 0x1014: 0x1fd3, 0x1015: 0x1fe2, 0x1016: 0x1fec, 0x1017: 0x1ffb,- 0x1018: 0x2000, 0x1019: 0x44e2, 0x101a: 0x2014, 0x101b: 0x2019, 0x101c: 0x201e, 0x101d: 0x202d,- 0x101e: 0x2037, 0x101f: 0x25d0, 0x1020: 0x25de, 0x1021: 0x1d9e, 0x1022: 0x1da8, 0x1023: 0x1dd0,- 0x1024: 0x1dda, 0x1025: 0x1df8, 0x1026: 0x1e02, 0x1027: 0x1e66, 0x1028: 0x1e6b, 0x1029: 0x1e8e,- 0x102a: 0x1e93, 0x102b: 0x1f6a, 0x102c: 0x1f6f, 0x102d: 0x1f92, 0x102e: 0x1fe2, 0x102f: 0x1fec,- 0x1030: 0x202d, 0x1031: 0x2037, 0x1032: 0x4596, 0x1033: 0x459e, 0x1034: 0x45a6, 0x1035: 0x1eed,- 0x1036: 0x1ef2, 0x1037: 0x1f06, 0x1038: 0x1f0b, 0x1039: 0x1f1a, 0x103a: 0x1f1f, 0x103b: 0x1e70,- 0x103c: 0x1e75, 0x103d: 0x1e98, 0x103e: 0x1e9d, 0x103f: 0x1e2f,+ 0x1000: 0x1f32, 0x1001: 0x1f37, 0x1002: 0x1f46, 0x1003: 0x1f4b, 0x1004: 0x1f5f, 0x1005: 0x1f64,+ 0x1006: 0x1f69, 0x1007: 0x1f6e, 0x1008: 0x1f73, 0x1009: 0x1f87, 0x100a: 0x1f8c, 0x100b: 0x1f91,+ 0x100c: 0x1f96, 0x100d: 0x1f9b, 0x100e: 0x1faf, 0x100f: 0x1fb4, 0x1010: 0x1fb9, 0x1011: 0x1fbe,+ 0x1012: 0x1fcd, 0x1013: 0x1fd2, 0x1014: 0x1fd7, 0x1015: 0x1fe6, 0x1016: 0x1ff0, 0x1017: 0x1fff,+ 0x1018: 0x2004, 0x1019: 0x44e6, 0x101a: 0x2018, 0x101b: 0x201d, 0x101c: 0x2022, 0x101d: 0x2031,+ 0x101e: 0x203b, 0x101f: 0x25d4, 0x1020: 0x25e2, 0x1021: 0x1da2, 0x1022: 0x1dac, 0x1023: 0x1dd4,+ 0x1024: 0x1dde, 0x1025: 0x1dfc, 0x1026: 0x1e06, 0x1027: 0x1e6a, 0x1028: 0x1e6f, 0x1029: 0x1e92,+ 0x102a: 0x1e97, 0x102b: 0x1f6e, 0x102c: 0x1f73, 0x102d: 0x1f96, 0x102e: 0x1fe6, 0x102f: 0x1ff0,+ 0x1030: 0x2031, 0x1031: 0x203b, 0x1032: 0x459a, 0x1033: 0x45a2, 0x1034: 0x45aa, 0x1035: 0x1ef1,+ 0x1036: 0x1ef6, 0x1037: 0x1f0a, 0x1038: 0x1f0f, 0x1039: 0x1f1e, 0x103a: 0x1f23, 0x103b: 0x1e74,+ 0x103c: 0x1e79, 0x103d: 0x1e9c, 0x103e: 0x1ea1, 0x103f: 0x1e33,// Block 0x41, offset 0x1040- 0x1040: 0x1e34, 0x1041: 0x1e1b, 0x1042: 0x1e20, 0x1043: 0x1e48, 0x1044: 0x1e4d, 0x1045: 0x1eb6,- 0x1046: 0x1ebb, 0x1047: 0x1ed9, 0x1048: 0x1ede, 0x1049: 0x1e7a, 0x104a: 0x1e7f, 0x104b: 0x1e84,- 0x104c: 0x1e8e, 0x104d: 0x1e89, 0x104e: 0x1e61, 0x104f: 0x1eac, 0x1050: 0x1ecf, 0x1051: 0x1eed,- 0x1052: 0x1ef2, 0x1053: 0x1f06, 0x1054: 0x1f0b, 0x1055: 0x1f1a, 0x1056: 0x1f1f, 0x1057: 0x1e70,- 0x1058: 0x1e75, 0x1059: 0x1e98, 0x105a: 0x1e9d, 0x105b: 0x1e2f, 0x105c: 0x1e34, 0x105d: 0x1e1b,- 0x105e: 0x1e20, 0x105f: 0x1e48, 0x1060: 0x1e4d, 0x1061: 0x1eb6, 0x1062: 0x1ebb, 0x1063: 0x1ed9,- 0x1064: 0x1ede, 0x1065: 0x1e7a, 0x1066: 0x1e7f, 0x1067: 0x1e84, 0x1068: 0x1e8e, 0x1069: 0x1e89,- 0x106a: 0x1e61, 0x106b: 0x1eac, 0x106c: 0x1ecf, 0x106d: 0x1e7a, 0x106e: 0x1e7f, 0x106f: 0x1e84,- 0x1070: 0x1e8e, 0x1071: 0x1e6b, 0x1072: 0x1e93, 0x1073: 0x1ee8, 0x1074: 0x1e52, 0x1075: 0x1e57,- 0x1076: 0x1e5c, 0x1077: 0x1e7a, 0x1078: 0x1e7f, 0x1079: 0x1e84, 0x107a: 0x1ee8, 0x107b: 0x1ef7,- 0x107c: 0x449a, 0x107d: 0x449a,+ 0x1040: 0x1e38, 0x1041: 0x1e1f, 0x1042: 0x1e24, 0x1043: 0x1e4c, 0x1044: 0x1e51, 0x1045: 0x1eba,+ 0x1046: 0x1ebf, 0x1047: 0x1edd, 0x1048: 0x1ee2, 0x1049: 0x1e7e, 0x104a: 0x1e83, 0x104b: 0x1e88,+ 0x104c: 0x1e92, 0x104d: 0x1e8d, 0x104e: 0x1e65, 0x104f: 0x1eb0, 0x1050: 0x1ed3, 0x1051: 0x1ef1,+ 0x1052: 0x1ef6, 0x1053: 0x1f0a, 0x1054: 0x1f0f, 0x1055: 0x1f1e, 0x1056: 0x1f23, 0x1057: 0x1e74,+ 0x1058: 0x1e79, 0x1059: 0x1e9c, 0x105a: 0x1ea1, 0x105b: 0x1e33, 0x105c: 0x1e38, 0x105d: 0x1e1f,+ 0x105e: 0x1e24, 0x105f: 0x1e4c, 0x1060: 0x1e51, 0x1061: 0x1eba, 0x1062: 0x1ebf, 0x1063: 0x1edd,+ 0x1064: 0x1ee2, 0x1065: 0x1e7e, 0x1066: 0x1e83, 0x1067: 0x1e88, 0x1068: 0x1e92, 0x1069: 0x1e8d,+ 0x106a: 0x1e65, 0x106b: 0x1eb0, 0x106c: 0x1ed3, 0x106d: 0x1e7e, 0x106e: 0x1e83, 0x106f: 0x1e88,+ 0x1070: 0x1e92, 0x1071: 0x1e6f, 0x1072: 0x1e97, 0x1073: 0x1eec, 0x1074: 0x1e56, 0x1075: 0x1e5b,+ 0x1076: 0x1e60, 0x1077: 0x1e7e, 0x1078: 0x1e83, 0x1079: 0x1e88, 0x107a: 0x1eec, 0x107b: 0x1efb,+ 0x107c: 0x449e, 0x107d: 0x449e,// Block 0x42, offset 0x1080- 0x1090: 0x230d, 0x1091: 0x2322,- 0x1092: 0x2322, 0x1093: 0x2329, 0x1094: 0x2330, 0x1095: 0x2345, 0x1096: 0x234c, 0x1097: 0x2353,- 0x1098: 0x2376, 0x1099: 0x2376, 0x109a: 0x2399, 0x109b: 0x2392, 0x109c: 0x23ae, 0x109d: 0x23a0,- 0x109e: 0x23a7, 0x109f: 0x23ca, 0x10a0: 0x23ca, 0x10a1: 0x23c3, 0x10a2: 0x23d1, 0x10a3: 0x23d1,- 0x10a4: 0x23fb, 0x10a5: 0x23fb, 0x10a6: 0x2417, 0x10a7: 0x23df, 0x10a8: 0x23df, 0x10a9: 0x23d8,- 0x10aa: 0x23ed, 0x10ab: 0x23ed, 0x10ac: 0x23f4, 0x10ad: 0x23f4, 0x10ae: 0x241e, 0x10af: 0x242c,- 0x10b0: 0x242c, 0x10b1: 0x2433, 0x10b2: 0x2433, 0x10b3: 0x243a, 0x10b4: 0x2441, 0x10b5: 0x2448,- 0x10b6: 0x244f, 0x10b7: 0x244f, 0x10b8: 0x2456, 0x10b9: 0x2464, 0x10ba: 0x2472, 0x10bb: 0x246b,- 0x10bc: 0x2479, 0x10bd: 0x2479, 0x10be: 0x248e, 0x10bf: 0x2495,+ 0x1090: 0x2311, 0x1091: 0x2326,+ 0x1092: 0x2326, 0x1093: 0x232d, 0x1094: 0x2334, 0x1095: 0x2349, 0x1096: 0x2350, 0x1097: 0x2357,+ 0x1098: 0x237a, 0x1099: 0x237a, 0x109a: 0x239d, 0x109b: 0x2396, 0x109c: 0x23b2, 0x109d: 0x23a4,+ 0x109e: 0x23ab, 0x109f: 0x23ce, 0x10a0: 0x23ce, 0x10a1: 0x23c7, 0x10a2: 0x23d5, 0x10a3: 0x23d5,+ 0x10a4: 0x23ff, 0x10a5: 0x23ff, 0x10a6: 0x241b, 0x10a7: 0x23e3, 0x10a8: 0x23e3, 0x10a9: 0x23dc,+ 0x10aa: 0x23f1, 0x10ab: 0x23f1, 0x10ac: 0x23f8, 0x10ad: 0x23f8, 0x10ae: 0x2422, 0x10af: 0x2430,+ 0x10b0: 0x2430, 0x10b1: 0x2437, 0x10b2: 0x2437, 0x10b3: 0x243e, 0x10b4: 0x2445, 0x10b5: 0x244c,+ 0x10b6: 0x2453, 0x10b7: 0x2453, 0x10b8: 0x245a, 0x10b9: 0x2468, 0x10ba: 0x2476, 0x10bb: 0x246f,+ 0x10bc: 0x247d, 0x10bd: 0x247d, 0x10be: 0x2492, 0x10bf: 0x2499,// Block 0x43, offset 0x10c0- 0x10c0: 0x24c6, 0x10c1: 0x24d4, 0x10c2: 0x24cd, 0x10c3: 0x24b1, 0x10c4: 0x24b1, 0x10c5: 0x24db,- 0x10c6: 0x24db, 0x10c7: 0x24e2, 0x10c8: 0x24e2, 0x10c9: 0x250c, 0x10ca: 0x2513, 0x10cb: 0x251a,- 0x10cc: 0x24f0, 0x10cd: 0x24fe, 0x10ce: 0x2521, 0x10cf: 0x2528,- 0x10d2: 0x24f7, 0x10d3: 0x257c, 0x10d4: 0x2583, 0x10d5: 0x2559, 0x10d6: 0x2560, 0x10d7: 0x2544,- 0x10d8: 0x2544, 0x10d9: 0x254b, 0x10da: 0x2575, 0x10db: 0x256e, 0x10dc: 0x2598, 0x10dd: 0x2598,- 0x10de: 0x2306, 0x10df: 0x231b, 0x10e0: 0x2314, 0x10e1: 0x233e, 0x10e2: 0x2337, 0x10e3: 0x2361,- 0x10e4: 0x235a, 0x10e5: 0x2384, 0x10e6: 0x2368, 0x10e7: 0x237d, 0x10e8: 0x23b5, 0x10e9: 0x2402,- 0x10ea: 0x23e6, 0x10eb: 0x2425, 0x10ec: 0x24bf, 0x10ed: 0x24e9, 0x10ee: 0x2591, 0x10ef: 0x258a,- 0x10f0: 0x259f, 0x10f1: 0x2536, 0x10f2: 0x249c, 0x10f3: 0x2567, 0x10f4: 0x248e, 0x10f5: 0x24c6,- 0x10f6: 0x245d, 0x10f7: 0x24aa, 0x10f8: 0x253d, 0x10f9: 0x252f, 0x10fa: 0x24b8, 0x10fb: 0x24a3,- 0x10fc: 0x24b8, 0x10fd: 0x253d, 0x10fe: 0x236f, 0x10ff: 0x238b,+ 0x10c0: 0x24ca, 0x10c1: 0x24d8, 0x10c2: 0x24d1, 0x10c3: 0x24b5, 0x10c4: 0x24b5, 0x10c5: 0x24df,+ 0x10c6: 0x24df, 0x10c7: 0x24e6, 0x10c8: 0x24e6, 0x10c9: 0x2510, 0x10ca: 0x2517, 0x10cb: 0x251e,+ 0x10cc: 0x24f4, 0x10cd: 0x2502, 0x10ce: 0x2525, 0x10cf: 0x252c,+ 0x10d2: 0x24fb, 0x10d3: 0x2580, 0x10d4: 0x2587, 0x10d5: 0x255d, 0x10d6: 0x2564, 0x10d7: 0x2548,+ 0x10d8: 0x2548, 0x10d9: 0x254f, 0x10da: 0x2579, 0x10db: 0x2572, 0x10dc: 0x259c, 0x10dd: 0x259c,+ 0x10de: 0x230a, 0x10df: 0x231f, 0x10e0: 0x2318, 0x10e1: 0x2342, 0x10e2: 0x233b, 0x10e3: 0x2365,+ 0x10e4: 0x235e, 0x10e5: 0x2388, 0x10e6: 0x236c, 0x10e7: 0x2381, 0x10e8: 0x23b9, 0x10e9: 0x2406,+ 0x10ea: 0x23ea, 0x10eb: 0x2429, 0x10ec: 0x24c3, 0x10ed: 0x24ed, 0x10ee: 0x2595, 0x10ef: 0x258e,+ 0x10f0: 0x25a3, 0x10f1: 0x253a, 0x10f2: 0x24a0, 0x10f3: 0x256b, 0x10f4: 0x2492, 0x10f5: 0x24ca,+ 0x10f6: 0x2461, 0x10f7: 0x24ae, 0x10f8: 0x2541, 0x10f9: 0x2533, 0x10fa: 0x24bc, 0x10fb: 0x24a7,+ 0x10fc: 0x24bc, 0x10fd: 0x2541, 0x10fe: 0x2373, 0x10ff: 0x238f,// Block 0x44, offset 0x1100- 0x1100: 0x2505, 0x1101: 0x2480, 0x1102: 0x22ff, 0x1103: 0x24a3, 0x1104: 0x2448, 0x1105: 0x2417,- 0x1106: 0x23bc, 0x1107: 0x2552,- 0x1130: 0x2410, 0x1131: 0x2487, 0x1132: 0x27bb, 0x1133: 0x27b2, 0x1134: 0x27e8, 0x1135: 0x27d6,- 0x1136: 0x27c4, 0x1137: 0x27df, 0x1138: 0x27f1, 0x1139: 0x2409, 0x113a: 0x2c78, 0x113b: 0x2af8,- 0x113c: 0x27cd,+ 0x1100: 0x2509, 0x1101: 0x2484, 0x1102: 0x2303, 0x1103: 0x24a7, 0x1104: 0x244c, 0x1105: 0x241b,+ 0x1106: 0x23c0, 0x1107: 0x2556,+ 0x1130: 0x2414, 0x1131: 0x248b, 0x1132: 0x27bf, 0x1133: 0x27b6, 0x1134: 0x27ec, 0x1135: 0x27da,+ 0x1136: 0x27c8, 0x1137: 0x27e3, 0x1138: 0x27f5, 0x1139: 0x240d, 0x113a: 0x2c7c, 0x113b: 0x2afc,+ 0x113c: 0x27d1,// Block 0x45, offset 0x11400x1150: 0x0019, 0x1151: 0x0483,0x1152: 0x0487, 0x1153: 0x0035, 0x1154: 0x0037, 0x1155: 0x0003, 0x1156: 0x003f, 0x1157: 0x04bf,- 0x1158: 0x04c3, 0x1159: 0x1b58,+ 0x1158: 0x04c3, 0x1159: 0x1b5c,0x1160: 0x8132, 0x1161: 0x8132, 0x1162: 0x8132, 0x1163: 0x8132,0x1164: 0x8132, 0x1165: 0x8132, 0x1166: 0x8132, 0x1167: 0x812d, 0x1168: 0x812d, 0x1169: 0x812d,0x116a: 0x812d, 0x116b: 0x812d, 0x116c: 0x812d, 0x116d: 0x812d, 0x116e: 0x8132, 0x116f: 0x8132,- 0x1170: 0x186f, 0x1171: 0x0443, 0x1172: 0x043f, 0x1173: 0x007f, 0x1174: 0x007f, 0x1175: 0x0011,+ 0x1170: 0x1873, 0x1171: 0x0443, 0x1172: 0x043f, 0x1173: 0x007f, 0x1174: 0x007f, 0x1175: 0x0011,0x1176: 0x0013, 0x1177: 0x00b7, 0x1178: 0x00bb, 0x1179: 0x04b7, 0x117a: 0x04bb, 0x117b: 0x04ab,0x117c: 0x04af, 0x117d: 0x0493, 0x117e: 0x0497, 0x117f: 0x048b,// Block 0x46, offset 0x11800x1180: 0x048f, 0x1181: 0x049b, 0x1182: 0x049f, 0x1183: 0x04a3, 0x1184: 0x04a7,- 0x1187: 0x0077, 0x1188: 0x007b, 0x1189: 0x4265, 0x118a: 0x4265, 0x118b: 0x4265,- 0x118c: 0x4265, 0x118d: 0x007f, 0x118e: 0x007f, 0x118f: 0x007f, 0x1190: 0x0019, 0x1191: 0x0483,+ 0x1187: 0x0077, 0x1188: 0x007b, 0x1189: 0x4269, 0x118a: 0x4269, 0x118b: 0x4269,+ 0x118c: 0x4269, 0x118d: 0x007f, 0x118e: 0x007f, 0x118f: 0x007f, 0x1190: 0x0019, 0x1191: 0x0483,0x1192: 0x001d, 0x1194: 0x0037, 0x1195: 0x0035, 0x1196: 0x003f, 0x1197: 0x0003,0x1198: 0x0443, 0x1199: 0x0011, 0x119a: 0x0013, 0x119b: 0x00b7, 0x119c: 0x00bb, 0x119d: 0x04b7,0x119e: 0x04bb, 0x119f: 0x0007, 0x11a0: 0x000d, 0x11a1: 0x0015, 0x11a2: 0x0017, 0x11a3: 0x001b,0x11a4: 0x0039, 0x11a5: 0x003d, 0x11a6: 0x003b, 0x11a8: 0x0079, 0x11a9: 0x0009,0x11aa: 0x000b, 0x11ab: 0x0041,- 0x11b0: 0x42a6, 0x11b1: 0x44be, 0x11b2: 0x42ab, 0x11b4: 0x42b0,- 0x11b6: 0x42b5, 0x11b7: 0x44c4, 0x11b8: 0x42ba, 0x11b9: 0x44ca, 0x11ba: 0x42bf, 0x11bb: 0x44d0,- 0x11bc: 0x42c4, 0x11bd: 0x44d6, 0x11be: 0x42c9, 0x11bf: 0x44dc,+ 0x11b0: 0x42aa, 0x11b1: 0x44c2, 0x11b2: 0x42af, 0x11b4: 0x42b4,+ 0x11b6: 0x42b9, 0x11b7: 0x44c8, 0x11b8: 0x42be, 0x11b9: 0x44ce, 0x11ba: 0x42c3, 0x11bb: 0x44d4,+ 0x11bc: 0x42c8, 0x11bd: 0x44da, 0x11be: 0x42cd, 0x11bf: 0x44e0,// Block 0x47, offset 0x11c0- 0x11c0: 0x0236, 0x11c1: 0x44a0, 0x11c2: 0x44a0, 0x11c3: 0x44a6, 0x11c4: 0x44a6, 0x11c5: 0x44e8,- 0x11c6: 0x44e8, 0x11c7: 0x44ac, 0x11c8: 0x44ac, 0x11c9: 0x44f4, 0x11ca: 0x44f4, 0x11cb: 0x44f4,- 0x11cc: 0x44f4, 0x11cd: 0x0239, 0x11ce: 0x0239, 0x11cf: 0x023c, 0x11d0: 0x023c, 0x11d1: 0x023c,+ 0x11c0: 0x0236, 0x11c1: 0x44a4, 0x11c2: 0x44a4, 0x11c3: 0x44aa, 0x11c4: 0x44aa, 0x11c5: 0x44ec,+ 0x11c6: 0x44ec, 0x11c7: 0x44b0, 0x11c8: 0x44b0, 0x11c9: 0x44f8, 0x11ca: 0x44f8, 0x11cb: 0x44f8,+ 0x11cc: 0x44f8, 0x11cd: 0x0239, 0x11ce: 0x0239, 0x11cf: 0x023c, 0x11d0: 0x023c, 0x11d1: 0x023c,0x11d2: 0x023c, 0x11d3: 0x023f, 0x11d4: 0x023f, 0x11d5: 0x0242, 0x11d6: 0x0242, 0x11d7: 0x0242,0x11d8: 0x0242, 0x11d9: 0x0245, 0x11da: 0x0245, 0x11db: 0x0245, 0x11dc: 0x0245, 0x11dd: 0x0248,0x11de: 0x0248, 0x11df: 0x0248, 0x11e0: 0x0248, 0x11e1: 0x024b, 0x11e2: 0x024b, 0x11e3: 0x024b,@@ -5296,9 +5317,9 @@ var nfkcValues = [5888]uint16{0x121e: 0x027e, 0x121f: 0x027e, 0x1220: 0x027e, 0x1221: 0x0281, 0x1222: 0x0281, 0x1223: 0x0281,0x1224: 0x0281, 0x1225: 0x0284, 0x1226: 0x0284, 0x1227: 0x0284, 0x1228: 0x0284, 0x1229: 0x0287,0x122a: 0x0287, 0x122b: 0x0287, 0x122c: 0x0287, 0x122d: 0x028a, 0x122e: 0x028a, 0x122f: 0x028d,- 0x1230: 0x028d, 0x1231: 0x0290, 0x1232: 0x0290, 0x1233: 0x0290, 0x1234: 0x0290, 0x1235: 0x2dfc,- 0x1236: 0x2dfc, 0x1237: 0x2e04, 0x1238: 0x2e04, 0x1239: 0x2e0c, 0x123a: 0x2e0c, 0x123b: 0x1f7e,- 0x123c: 0x1f7e,+ 0x1230: 0x028d, 0x1231: 0x0290, 0x1232: 0x0290, 0x1233: 0x0290, 0x1234: 0x0290, 0x1235: 0x2e00,+ 0x1236: 0x2e00, 0x1237: 0x2e08, 0x1238: 0x2e08, 0x1239: 0x2e10, 0x123a: 0x2e10, 0x123b: 0x1f82,+ 0x123c: 0x1f82,// Block 0x49, offset 0x12400x1240: 0x0081, 0x1241: 0x0083, 0x1242: 0x0085, 0x1243: 0x0087, 0x1244: 0x0089, 0x1245: 0x008b,0x1246: 0x008d, 0x1247: 0x008f, 0x1248: 0x0091, 0x1249: 0x0093, 0x124a: 0x0095, 0x124b: 0x0097,@@ -5317,19 +5338,19 @@ var nfkcValues = [5888]uint16{0x128c: 0x054b, 0x128d: 0x054f, 0x128e: 0x0553, 0x128f: 0x0557, 0x1290: 0x055b, 0x1291: 0x055f,0x1292: 0x0563, 0x1293: 0x0567, 0x1294: 0x056f, 0x1295: 0x0577, 0x1296: 0x057f, 0x1297: 0x0583,0x1298: 0x0587, 0x1299: 0x058b, 0x129a: 0x058f, 0x129b: 0x0593, 0x129c: 0x0597, 0x129d: 0x05a7,- 0x129e: 0x4a56, 0x129f: 0x4a5c, 0x12a0: 0x03c3, 0x12a1: 0x0313, 0x12a2: 0x0317, 0x12a3: 0x4341,- 0x12a4: 0x031b, 0x12a5: 0x4346, 0x12a6: 0x434b, 0x12a7: 0x031f, 0x12a8: 0x0323, 0x12a9: 0x0327,- 0x12aa: 0x4350, 0x12ab: 0x4355, 0x12ac: 0x435a, 0x12ad: 0x435f, 0x12ae: 0x4364, 0x12af: 0x4369,+ 0x129e: 0x4a5a, 0x129f: 0x4a60, 0x12a0: 0x03c3, 0x12a1: 0x0313, 0x12a2: 0x0317, 0x12a3: 0x4345,+ 0x12a4: 0x031b, 0x12a5: 0x434a, 0x12a6: 0x434f, 0x12a7: 0x031f, 0x12a8: 0x0323, 0x12a9: 0x0327,+ 0x12aa: 0x4354, 0x12ab: 0x4359, 0x12ac: 0x435e, 0x12ad: 0x4363, 0x12ae: 0x4368, 0x12af: 0x436d,0x12b0: 0x0367, 0x12b1: 0x032b, 0x12b2: 0x032f, 0x12b3: 0x0333, 0x12b4: 0x037b, 0x12b5: 0x0337,0x12b6: 0x033b, 0x12b7: 0x033f, 0x12b8: 0x0343, 0x12b9: 0x0347, 0x12ba: 0x034b, 0x12bb: 0x034f,0x12bc: 0x0353, 0x12bd: 0x0357, 0x12be: 0x035b,// Block 0x4b, offset 0x12c0- 0x12c2: 0x42d8, 0x12c3: 0x42dd, 0x12c4: 0x42e2, 0x12c5: 0x42e7,- 0x12c6: 0x42ec, 0x12c7: 0x42f1, 0x12ca: 0x42f6, 0x12cb: 0x42fb,- 0x12cc: 0x4300, 0x12cd: 0x4305, 0x12ce: 0x430a, 0x12cf: 0x430f,- 0x12d2: 0x4314, 0x12d3: 0x4319, 0x12d4: 0x431e, 0x12d5: 0x4323, 0x12d6: 0x4328, 0x12d7: 0x432d,- 0x12da: 0x4332, 0x12db: 0x4337, 0x12dc: 0x433c,- 0x12e0: 0x00bf, 0x12e1: 0x00c2, 0x12e2: 0x00cb, 0x12e3: 0x4260,+ 0x12c2: 0x42dc, 0x12c3: 0x42e1, 0x12c4: 0x42e6, 0x12c5: 0x42eb,+ 0x12c6: 0x42f0, 0x12c7: 0x42f5, 0x12ca: 0x42fa, 0x12cb: 0x42ff,+ 0x12cc: 0x4304, 0x12cd: 0x4309, 0x12ce: 0x430e, 0x12cf: 0x4313,+ 0x12d2: 0x4318, 0x12d3: 0x431d, 0x12d4: 0x4322, 0x12d5: 0x4327, 0x12d6: 0x432c, 0x12d7: 0x4331,+ 0x12da: 0x4336, 0x12db: 0x433b, 0x12dc: 0x4340,+ 0x12e0: 0x00bf, 0x12e1: 0x00c2, 0x12e2: 0x00cb, 0x12e3: 0x4264,0x12e4: 0x00c8, 0x12e5: 0x00c5, 0x12e6: 0x0447, 0x12e8: 0x046b, 0x12e9: 0x044b,0x12ea: 0x044f, 0x12eb: 0x0453, 0x12ec: 0x0457, 0x12ed: 0x046f, 0x12ee: 0x0473,// Block 0x4c, offset 0x1300@@ -5391,129 +5412,129 @@ var nfkcValues = [5888]uint16{0x1430: 0x0275, 0x1431: 0x0263, 0x1432: 0x0278, 0x1433: 0x0257, 0x1434: 0x0260, 0x1435: 0x0242,0x1436: 0x0245, 0x1437: 0x024e, 0x1438: 0x0254, 0x1439: 0x0266, 0x143a: 0x026c, 0x143b: 0x0272,// Block 0x51, offset 0x1440- 0x1440: 0x1875, 0x1441: 0x1872, 0x1442: 0x1878, 0x1443: 0x189c, 0x1444: 0x18c0, 0x1445: 0x18e4,- 0x1446: 0x1908, 0x1447: 0x1911, 0x1448: 0x1917, 0x1449: 0x191d, 0x144a: 0x1923,- 0x1450: 0x1a88, 0x1451: 0x1a8c,- 0x1452: 0x1a90, 0x1453: 0x1a94, 0x1454: 0x1a98, 0x1455: 0x1a9c, 0x1456: 0x1aa0, 0x1457: 0x1aa4,- 0x1458: 0x1aa8, 0x1459: 0x1aac, 0x145a: 0x1ab0, 0x145b: 0x1ab4, 0x145c: 0x1ab8, 0x145d: 0x1abc,- 0x145e: 0x1ac0, 0x145f: 0x1ac4, 0x1460: 0x1ac8, 0x1461: 0x1acc, 0x1462: 0x1ad0, 0x1463: 0x1ad4,- 0x1464: 0x1ad8, 0x1465: 0x1adc, 0x1466: 0x1ae0, 0x1467: 0x1ae4, 0x1468: 0x1ae8, 0x1469: 0x1aec,- 0x146a: 0x271a, 0x146b: 0x0047, 0x146c: 0x0065, 0x146d: 0x1938, 0x146e: 0x19ad,+ 0x1440: 0x1879, 0x1441: 0x1876, 0x1442: 0x187c, 0x1443: 0x18a0, 0x1444: 0x18c4, 0x1445: 0x18e8,+ 0x1446: 0x190c, 0x1447: 0x1915, 0x1448: 0x191b, 0x1449: 0x1921, 0x144a: 0x1927,+ 0x1450: 0x1a8c, 0x1451: 0x1a90,+ 0x1452: 0x1a94, 0x1453: 0x1a98, 0x1454: 0x1a9c, 0x1455: 0x1aa0, 0x1456: 0x1aa4, 0x1457: 0x1aa8,+ 0x1458: 0x1aac, 0x1459: 0x1ab0, 0x145a: 0x1ab4, 0x145b: 0x1ab8, 0x145c: 0x1abc, 0x145d: 0x1ac0,+ 0x145e: 0x1ac4, 0x145f: 0x1ac8, 0x1460: 0x1acc, 0x1461: 0x1ad0, 0x1462: 0x1ad4, 0x1463: 0x1ad8,+ 0x1464: 0x1adc, 0x1465: 0x1ae0, 0x1466: 0x1ae4, 0x1467: 0x1ae8, 0x1468: 0x1aec, 0x1469: 0x1af0,+ 0x146a: 0x271e, 0x146b: 0x0047, 0x146c: 0x0065, 0x146d: 0x193c, 0x146e: 0x19b1,0x1470: 0x0043, 0x1471: 0x0045, 0x1472: 0x0047, 0x1473: 0x0049, 0x1474: 0x004b, 0x1475: 0x004d,0x1476: 0x004f, 0x1477: 0x0051, 0x1478: 0x0053, 0x1479: 0x0055, 0x147a: 0x0057, 0x147b: 0x0059,0x147c: 0x005b, 0x147d: 0x005d, 0x147e: 0x005f, 0x147f: 0x0061,// Block 0x52, offset 0x1480- 0x1480: 0x26a9, 0x1481: 0x26be, 0x1482: 0x0503,+ 0x1480: 0x26ad, 0x1481: 0x26c2, 0x1482: 0x0503,0x1490: 0x0c0f, 0x1491: 0x0a47,- 0x1492: 0x08d3, 0x1493: 0x4656, 0x1494: 0x071b, 0x1495: 0x09ef, 0x1496: 0x132f, 0x1497: 0x09ff,+ 0x1492: 0x08d3, 0x1493: 0x465a, 0x1494: 0x071b, 0x1495: 0x09ef, 0x1496: 0x132f, 0x1497: 0x09ff,0x1498: 0x0727, 0x1499: 0x0cd7, 0x149a: 0x0eaf, 0x149b: 0x0caf, 0x149c: 0x0827, 0x149d: 0x0b6b,0x149e: 0x07bf, 0x149f: 0x0cb7, 0x14a0: 0x0813, 0x14a1: 0x1117, 0x14a2: 0x0f83, 0x14a3: 0x138b,0x14a4: 0x09d3, 0x14a5: 0x090b, 0x14a6: 0x0e63, 0x14a7: 0x0c1b, 0x14a8: 0x0c47, 0x14a9: 0x06bf,0x14aa: 0x06cb, 0x14ab: 0x140b, 0x14ac: 0x0adb, 0x14ad: 0x06e7, 0x14ae: 0x08ef, 0x14af: 0x0c3b,0x14b0: 0x13b3, 0x14b1: 0x0c13, 0x14b2: 0x106f, 0x14b3: 0x10ab, 0x14b4: 0x08f7, 0x14b5: 0x0e43,- 0x14b6: 0x0d0b, 0x14b7: 0x0d07, 0x14b8: 0x0f97, 0x14b9: 0x082b, 0x14ba: 0x0957,+ 0x14b6: 0x0d0b, 0x14b7: 0x0d07, 0x14b8: 0x0f97, 0x14b9: 0x082b, 0x14ba: 0x0957, 0x14bb: 0x1443,// Block 0x53, offset 0x14c0- 0x14c0: 0x06fb, 0x14c1: 0x06f3, 0x14c2: 0x0703, 0x14c3: 0x1643, 0x14c4: 0x0747, 0x14c5: 0x0757,+ 0x14c0: 0x06fb, 0x14c1: 0x06f3, 0x14c2: 0x0703, 0x14c3: 0x1647, 0x14c4: 0x0747, 0x14c5: 0x0757,0x14c6: 0x075b, 0x14c7: 0x0763, 0x14c8: 0x076b, 0x14c9: 0x076f, 0x14ca: 0x077b, 0x14cb: 0x0773,- 0x14cc: 0x05b3, 0x14cd: 0x1657, 0x14ce: 0x078f, 0x14cf: 0x0793, 0x14d0: 0x0797, 0x14d1: 0x07b3,- 0x14d2: 0x1648, 0x14d3: 0x05b7, 0x14d4: 0x079f, 0x14d5: 0x07bf, 0x14d6: 0x1652, 0x14d7: 0x07cf,- 0x14d8: 0x07d7, 0x14d9: 0x0737, 0x14da: 0x07df, 0x14db: 0x07e3, 0x14dc: 0x182d, 0x14dd: 0x07ff,+ 0x14cc: 0x05b3, 0x14cd: 0x165b, 0x14ce: 0x078f, 0x14cf: 0x0793, 0x14d0: 0x0797, 0x14d1: 0x07b3,+ 0x14d2: 0x164c, 0x14d3: 0x05b7, 0x14d4: 0x079f, 0x14d5: 0x07bf, 0x14d6: 0x1656, 0x14d7: 0x07cf,+ 0x14d8: 0x07d7, 0x14d9: 0x0737, 0x14da: 0x07df, 0x14db: 0x07e3, 0x14dc: 0x1831, 0x14dd: 0x07ff,0x14de: 0x0807, 0x14df: 0x05bf, 0x14e0: 0x081f, 0x14e1: 0x0823, 0x14e2: 0x082b, 0x14e3: 0x082f,0x14e4: 0x05c3, 0x14e5: 0x0847, 0x14e6: 0x084b, 0x14e7: 0x0857, 0x14e8: 0x0863, 0x14e9: 0x0867,0x14ea: 0x086b, 0x14eb: 0x0873, 0x14ec: 0x0893, 0x14ed: 0x0897, 0x14ee: 0x089f, 0x14ef: 0x08af,- 0x14f0: 0x08b7, 0x14f1: 0x08bb, 0x14f2: 0x08bb, 0x14f3: 0x08bb, 0x14f4: 0x1666, 0x14f5: 0x0e93,- 0x14f6: 0x08cf, 0x14f7: 0x08d7, 0x14f8: 0x166b, 0x14f9: 0x08e3, 0x14fa: 0x08eb, 0x14fb: 0x08f3,+ 0x14f0: 0x08b7, 0x14f1: 0x08bb, 0x14f2: 0x08bb, 0x14f3: 0x08bb, 0x14f4: 0x166a, 0x14f5: 0x0e93,+ 0x14f6: 0x08cf, 0x14f7: 0x08d7, 0x14f8: 0x166f, 0x14f9: 0x08e3, 0x14fa: 0x08eb, 0x14fb: 0x08f3,0x14fc: 0x091b, 0x14fd: 0x0907, 0x14fe: 0x0913, 0x14ff: 0x0917,// Block 0x54, offset 0x15000x1500: 0x091f, 0x1501: 0x0927, 0x1502: 0x092b, 0x1503: 0x0933, 0x1504: 0x093b, 0x1505: 0x093f,0x1506: 0x093f, 0x1507: 0x0947, 0x1508: 0x094f, 0x1509: 0x0953, 0x150a: 0x095f, 0x150b: 0x0983,0x150c: 0x0967, 0x150d: 0x0987, 0x150e: 0x096b, 0x150f: 0x0973, 0x1510: 0x080b, 0x1511: 0x09cf,0x1512: 0x0997, 0x1513: 0x099b, 0x1514: 0x099f, 0x1515: 0x0993, 0x1516: 0x09a7, 0x1517: 0x09a3,- 0x1518: 0x09bb, 0x1519: 0x1670, 0x151a: 0x09d7, 0x151b: 0x09db, 0x151c: 0x09e3, 0x151d: 0x09ef,- 0x151e: 0x09f7, 0x151f: 0x0a13, 0x1520: 0x1675, 0x1521: 0x167a, 0x1522: 0x0a1f, 0x1523: 0x0a23,+ 0x1518: 0x09bb, 0x1519: 0x1674, 0x151a: 0x09d7, 0x151b: 0x09db, 0x151c: 0x09e3, 0x151d: 0x09ef,+ 0x151e: 0x09f7, 0x151f: 0x0a13, 0x1520: 0x1679, 0x1521: 0x167e, 0x1522: 0x0a1f, 0x1523: 0x0a23,0x1524: 0x0a27, 0x1525: 0x0a1b, 0x1526: 0x0a2f, 0x1527: 0x05c7, 0x1528: 0x05cb, 0x1529: 0x0a37,- 0x152a: 0x0a3f, 0x152b: 0x0a3f, 0x152c: 0x167f, 0x152d: 0x0a5b, 0x152e: 0x0a5f, 0x152f: 0x0a63,- 0x1530: 0x0a6b, 0x1531: 0x1684, 0x1532: 0x0a73, 0x1533: 0x0a77, 0x1534: 0x0b4f, 0x1535: 0x0a7f,- 0x1536: 0x05cf, 0x1537: 0x0a8b, 0x1538: 0x0a9b, 0x1539: 0x0aa7, 0x153a: 0x0aa3, 0x153b: 0x168e,- 0x153c: 0x0aaf, 0x153d: 0x1693, 0x153e: 0x0abb, 0x153f: 0x0ab7,+ 0x152a: 0x0a3f, 0x152b: 0x0a3f, 0x152c: 0x1683, 0x152d: 0x0a5b, 0x152e: 0x0a5f, 0x152f: 0x0a63,+ 0x1530: 0x0a6b, 0x1531: 0x1688, 0x1532: 0x0a73, 0x1533: 0x0a77, 0x1534: 0x0b4f, 0x1535: 0x0a7f,+ 0x1536: 0x05cf, 0x1537: 0x0a8b, 0x1538: 0x0a9b, 0x1539: 0x0aa7, 0x153a: 0x0aa3, 0x153b: 0x1692,+ 0x153c: 0x0aaf, 0x153d: 0x1697, 0x153e: 0x0abb, 0x153f: 0x0ab7,// Block 0x55, offset 0x15400x1540: 0x0abf, 0x1541: 0x0acf, 0x1542: 0x0ad3, 0x1543: 0x05d3, 0x1544: 0x0ae3, 0x1545: 0x0aeb,- 0x1546: 0x0aef, 0x1547: 0x0af3, 0x1548: 0x05d7, 0x1549: 0x1698, 0x154a: 0x05db, 0x154b: 0x0b0f,- 0x154c: 0x0b13, 0x154d: 0x0b17, 0x154e: 0x0b1f, 0x154f: 0x185f, 0x1550: 0x0b37, 0x1551: 0x16a2,- 0x1552: 0x16a2, 0x1553: 0x11d7, 0x1554: 0x0b47, 0x1555: 0x0b47, 0x1556: 0x05df, 0x1557: 0x16c5,- 0x1558: 0x1797, 0x1559: 0x0b57, 0x155a: 0x0b5f, 0x155b: 0x05e3, 0x155c: 0x0b73, 0x155d: 0x0b83,+ 0x1546: 0x0aef, 0x1547: 0x0af3, 0x1548: 0x05d7, 0x1549: 0x169c, 0x154a: 0x05db, 0x154b: 0x0b0f,+ 0x154c: 0x0b13, 0x154d: 0x0b17, 0x154e: 0x0b1f, 0x154f: 0x1863, 0x1550: 0x0b37, 0x1551: 0x16a6,+ 0x1552: 0x16a6, 0x1553: 0x11d7, 0x1554: 0x0b47, 0x1555: 0x0b47, 0x1556: 0x05df, 0x1557: 0x16c9,+ 0x1558: 0x179b, 0x1559: 0x0b57, 0x155a: 0x0b5f, 0x155b: 0x05e3, 0x155c: 0x0b73, 0x155d: 0x0b83,0x155e: 0x0b87, 0x155f: 0x0b8f, 0x1560: 0x0b9f, 0x1561: 0x05eb, 0x1562: 0x05e7, 0x1563: 0x0ba3,- 0x1564: 0x16a7, 0x1565: 0x0ba7, 0x1566: 0x0bbb, 0x1567: 0x0bbf, 0x1568: 0x0bc3, 0x1569: 0x0bbf,+ 0x1564: 0x16ab, 0x1565: 0x0ba7, 0x1566: 0x0bbb, 0x1567: 0x0bbf, 0x1568: 0x0bc3, 0x1569: 0x0bbf,0x156a: 0x0bcf, 0x156b: 0x0bd3, 0x156c: 0x0be3, 0x156d: 0x0bdb, 0x156e: 0x0bdf, 0x156f: 0x0be7,0x1570: 0x0beb, 0x1571: 0x0bef, 0x1572: 0x0bfb, 0x1573: 0x0bff, 0x1574: 0x0c17, 0x1575: 0x0c1f,- 0x1576: 0x0c2f, 0x1577: 0x0c43, 0x1578: 0x16b6, 0x1579: 0x0c3f, 0x157a: 0x0c33, 0x157b: 0x0c4b,- 0x157c: 0x0c53, 0x157d: 0x0c67, 0x157e: 0x16bb, 0x157f: 0x0c6f,+ 0x1576: 0x0c2f, 0x1577: 0x0c43, 0x1578: 0x16ba, 0x1579: 0x0c3f, 0x157a: 0x0c33, 0x157b: 0x0c4b,+ 0x157c: 0x0c53, 0x157d: 0x0c67, 0x157e: 0x16bf, 0x157f: 0x0c6f,// Block 0x56, offset 0x15800x1580: 0x0c63, 0x1581: 0x0c5b, 0x1582: 0x05ef, 0x1583: 0x0c77, 0x1584: 0x0c7f, 0x1585: 0x0c87,- 0x1586: 0x0c7b, 0x1587: 0x05f3, 0x1588: 0x0c97, 0x1589: 0x0c9f, 0x158a: 0x16c0, 0x158b: 0x0ccb,+ 0x1586: 0x0c7b, 0x1587: 0x05f3, 0x1588: 0x0c97, 0x1589: 0x0c9f, 0x158a: 0x16c4, 0x158b: 0x0ccb,0x158c: 0x0cff, 0x158d: 0x0cdb, 0x158e: 0x05ff, 0x158f: 0x0ce7, 0x1590: 0x05fb, 0x1591: 0x05f7,0x1592: 0x07c3, 0x1593: 0x07c7, 0x1594: 0x0d03, 0x1595: 0x0ceb, 0x1596: 0x11ab, 0x1597: 0x0663,- 0x1598: 0x0d0f, 0x1599: 0x0d13, 0x159a: 0x0d17, 0x159b: 0x0d2b, 0x159c: 0x0d23, 0x159d: 0x16d9,- 0x159e: 0x0603, 0x159f: 0x0d3f, 0x15a0: 0x0d33, 0x15a1: 0x0d4f, 0x15a2: 0x0d57, 0x15a3: 0x16e3,+ 0x1598: 0x0d0f, 0x1599: 0x0d13, 0x159a: 0x0d17, 0x159b: 0x0d2b, 0x159c: 0x0d23, 0x159d: 0x16dd,+ 0x159e: 0x0603, 0x159f: 0x0d3f, 0x15a0: 0x0d33, 0x15a1: 0x0d4f, 0x15a2: 0x0d57, 0x15a3: 0x16e7,0x15a4: 0x0d5b, 0x15a5: 0x0d47, 0x15a6: 0x0d63, 0x15a7: 0x0607, 0x15a8: 0x0d67, 0x15a9: 0x0d6b,- 0x15aa: 0x0d6f, 0x15ab: 0x0d7b, 0x15ac: 0x16e8, 0x15ad: 0x0d83, 0x15ae: 0x060b, 0x15af: 0x0d8f,- 0x15b0: 0x16ed, 0x15b1: 0x0d93, 0x15b2: 0x060f, 0x15b3: 0x0d9f, 0x15b4: 0x0dab, 0x15b5: 0x0db7,- 0x15b6: 0x0dbb, 0x15b7: 0x16f2, 0x15b8: 0x1689, 0x15b9: 0x16f7, 0x15ba: 0x0ddb, 0x15bb: 0x16fc,+ 0x15aa: 0x0d6f, 0x15ab: 0x0d7b, 0x15ac: 0x16ec, 0x15ad: 0x0d83, 0x15ae: 0x060b, 0x15af: 0x0d8f,+ 0x15b0: 0x16f1, 0x15b1: 0x0d93, 0x15b2: 0x060f, 0x15b3: 0x0d9f, 0x15b4: 0x0dab, 0x15b5: 0x0db7,+ 0x15b6: 0x0dbb, 0x15b7: 0x16f6, 0x15b8: 0x168d, 0x15b9: 0x16fb, 0x15ba: 0x0ddb, 0x15bb: 0x1700,0x15bc: 0x0de7, 0x15bd: 0x0def, 0x15be: 0x0ddf, 0x15bf: 0x0dfb,// Block 0x57, offset 0x15c00x15c0: 0x0e0b, 0x15c1: 0x0e1b, 0x15c2: 0x0e0f, 0x15c3: 0x0e13, 0x15c4: 0x0e1f, 0x15c5: 0x0e23,- 0x15c6: 0x1701, 0x15c7: 0x0e07, 0x15c8: 0x0e3b, 0x15c9: 0x0e3f, 0x15ca: 0x0613, 0x15cb: 0x0e53,- 0x15cc: 0x0e4f, 0x15cd: 0x1706, 0x15ce: 0x0e33, 0x15cf: 0x0e6f, 0x15d0: 0x170b, 0x15d1: 0x1710,+ 0x15c6: 0x1705, 0x15c7: 0x0e07, 0x15c8: 0x0e3b, 0x15c9: 0x0e3f, 0x15ca: 0x0613, 0x15cb: 0x0e53,+ 0x15cc: 0x0e4f, 0x15cd: 0x170a, 0x15ce: 0x0e33, 0x15cf: 0x0e6f, 0x15d0: 0x170f, 0x15d1: 0x1714,0x15d2: 0x0e73, 0x15d3: 0x0e87, 0x15d4: 0x0e83, 0x15d5: 0x0e7f, 0x15d6: 0x0617, 0x15d7: 0x0e8b,- 0x15d8: 0x0e9b, 0x15d9: 0x0e97, 0x15da: 0x0ea3, 0x15db: 0x164d, 0x15dc: 0x0eb3, 0x15dd: 0x1715,- 0x15de: 0x0ebf, 0x15df: 0x171f, 0x15e0: 0x0ed3, 0x15e1: 0x0edf, 0x15e2: 0x0ef3, 0x15e3: 0x1724,- 0x15e4: 0x0f07, 0x15e5: 0x0f0b, 0x15e6: 0x1729, 0x15e7: 0x172e, 0x15e8: 0x0f27, 0x15e9: 0x0f37,+ 0x15d8: 0x0e9b, 0x15d9: 0x0e97, 0x15da: 0x0ea3, 0x15db: 0x1651, 0x15dc: 0x0eb3, 0x15dd: 0x1719,+ 0x15de: 0x0ebf, 0x15df: 0x1723, 0x15e0: 0x0ed3, 0x15e1: 0x0edf, 0x15e2: 0x0ef3, 0x15e3: 0x1728,+ 0x15e4: 0x0f07, 0x15e5: 0x0f0b, 0x15e6: 0x172d, 0x15e7: 0x1732, 0x15e8: 0x0f27, 0x15e9: 0x0f37,0x15ea: 0x061b, 0x15eb: 0x0f3b, 0x15ec: 0x061f, 0x15ed: 0x061f, 0x15ee: 0x0f53, 0x15ef: 0x0f57,- 0x15f0: 0x0f5f, 0x15f1: 0x0f63, 0x15f2: 0x0f6f, 0x15f3: 0x0623, 0x15f4: 0x0f87, 0x15f5: 0x1733,- 0x15f6: 0x0fa3, 0x15f7: 0x1738, 0x15f8: 0x0faf, 0x15f9: 0x169d, 0x15fa: 0x0fbf, 0x15fb: 0x173d,- 0x15fc: 0x1742, 0x15fd: 0x1747, 0x15fe: 0x0627, 0x15ff: 0x062b,+ 0x15f0: 0x0f5f, 0x15f1: 0x0f63, 0x15f2: 0x0f6f, 0x15f3: 0x0623, 0x15f4: 0x0f87, 0x15f5: 0x1737,+ 0x15f6: 0x0fa3, 0x15f7: 0x173c, 0x15f8: 0x0faf, 0x15f9: 0x16a1, 0x15fa: 0x0fbf, 0x15fb: 0x1741,+ 0x15fc: 0x1746, 0x15fd: 0x174b, 0x15fe: 0x0627, 0x15ff: 0x062b,// Block 0x58, offset 0x1600- 0x1600: 0x0ff7, 0x1601: 0x1751, 0x1602: 0x174c, 0x1603: 0x1756, 0x1604: 0x175b, 0x1605: 0x0fff,+ 0x1600: 0x0ff7, 0x1601: 0x1755, 0x1602: 0x1750, 0x1603: 0x175a, 0x1604: 0x175f, 0x1605: 0x0fff,0x1606: 0x1003, 0x1607: 0x1003, 0x1608: 0x100b, 0x1609: 0x0633, 0x160a: 0x100f, 0x160b: 0x0637,- 0x160c: 0x063b, 0x160d: 0x1765, 0x160e: 0x1023, 0x160f: 0x102b, 0x1610: 0x1037, 0x1611: 0x063f,- 0x1612: 0x176a, 0x1613: 0x105b, 0x1614: 0x176f, 0x1615: 0x1774, 0x1616: 0x107b, 0x1617: 0x1093,- 0x1618: 0x0643, 0x1619: 0x109b, 0x161a: 0x109f, 0x161b: 0x10a3, 0x161c: 0x1779, 0x161d: 0x177e,- 0x161e: 0x177e, 0x161f: 0x10bb, 0x1620: 0x0647, 0x1621: 0x1783, 0x1622: 0x10cf, 0x1623: 0x10d3,- 0x1624: 0x064b, 0x1625: 0x1788, 0x1626: 0x10ef, 0x1627: 0x064f, 0x1628: 0x10ff, 0x1629: 0x10f7,- 0x162a: 0x1107, 0x162b: 0x1792, 0x162c: 0x111f, 0x162d: 0x0653, 0x162e: 0x112b, 0x162f: 0x1133,- 0x1630: 0x1143, 0x1631: 0x0657, 0x1632: 0x179c, 0x1633: 0x17a1, 0x1634: 0x065b, 0x1635: 0x17a6,- 0x1636: 0x115b, 0x1637: 0x17ab, 0x1638: 0x1167, 0x1639: 0x1173, 0x163a: 0x117b, 0x163b: 0x17b0,- 0x163c: 0x17b5, 0x163d: 0x118f, 0x163e: 0x17ba, 0x163f: 0x1197,+ 0x160c: 0x063b, 0x160d: 0x1769, 0x160e: 0x1023, 0x160f: 0x102b, 0x1610: 0x1037, 0x1611: 0x063f,+ 0x1612: 0x176e, 0x1613: 0x105b, 0x1614: 0x1773, 0x1615: 0x1778, 0x1616: 0x107b, 0x1617: 0x1093,+ 0x1618: 0x0643, 0x1619: 0x109b, 0x161a: 0x109f, 0x161b: 0x10a3, 0x161c: 0x177d, 0x161d: 0x1782,+ 0x161e: 0x1782, 0x161f: 0x10bb, 0x1620: 0x0647, 0x1621: 0x1787, 0x1622: 0x10cf, 0x1623: 0x10d3,+ 0x1624: 0x064b, 0x1625: 0x178c, 0x1626: 0x10ef, 0x1627: 0x064f, 0x1628: 0x10ff, 0x1629: 0x10f7,+ 0x162a: 0x1107, 0x162b: 0x1796, 0x162c: 0x111f, 0x162d: 0x0653, 0x162e: 0x112b, 0x162f: 0x1133,+ 0x1630: 0x1143, 0x1631: 0x0657, 0x1632: 0x17a0, 0x1633: 0x17a5, 0x1634: 0x065b, 0x1635: 0x17aa,+ 0x1636: 0x115b, 0x1637: 0x17af, 0x1638: 0x1167, 0x1639: 0x1173, 0x163a: 0x117b, 0x163b: 0x17b4,+ 0x163c: 0x17b9, 0x163d: 0x118f, 0x163e: 0x17be, 0x163f: 0x1197,// Block 0x59, offset 0x1640- 0x1640: 0x16ca, 0x1641: 0x065f, 0x1642: 0x11af, 0x1643: 0x11b3, 0x1644: 0x0667, 0x1645: 0x11b7,- 0x1646: 0x0a33, 0x1647: 0x17bf, 0x1648: 0x17c4, 0x1649: 0x16cf, 0x164a: 0x16d4, 0x164b: 0x11d7,+ 0x1640: 0x16ce, 0x1641: 0x065f, 0x1642: 0x11af, 0x1643: 0x11b3, 0x1644: 0x0667, 0x1645: 0x11b7,+ 0x1646: 0x0a33, 0x1647: 0x17c3, 0x1648: 0x17c8, 0x1649: 0x16d3, 0x164a: 0x16d8, 0x164b: 0x11d7,0x164c: 0x11db, 0x164d: 0x13f3, 0x164e: 0x066b, 0x164f: 0x1207, 0x1650: 0x1203, 0x1651: 0x120b,- 0x1652: 0x083f, 0x1653: 0x120f, 0x1654: 0x1213, 0x1655: 0x1217, 0x1656: 0x121f, 0x1657: 0x17c9,+ 0x1652: 0x083f, 0x1653: 0x120f, 0x1654: 0x1213, 0x1655: 0x1217, 0x1656: 0x121f, 0x1657: 0x17cd,0x1658: 0x121b, 0x1659: 0x1223, 0x165a: 0x1237, 0x165b: 0x123b, 0x165c: 0x1227, 0x165d: 0x123f,0x165e: 0x1253, 0x165f: 0x1267, 0x1660: 0x1233, 0x1661: 0x1247, 0x1662: 0x124b, 0x1663: 0x124f,- 0x1664: 0x17ce, 0x1665: 0x17d8, 0x1666: 0x17d3, 0x1667: 0x066f, 0x1668: 0x126f, 0x1669: 0x1273,- 0x166a: 0x127b, 0x166b: 0x17ec, 0x166c: 0x127f, 0x166d: 0x17dd, 0x166e: 0x0673, 0x166f: 0x0677,- 0x1670: 0x17e2, 0x1671: 0x17e7, 0x1672: 0x067b, 0x1673: 0x129f, 0x1674: 0x12a3, 0x1675: 0x12a7,+ 0x1664: 0x17d2, 0x1665: 0x17dc, 0x1666: 0x17d7, 0x1667: 0x066f, 0x1668: 0x126f, 0x1669: 0x1273,+ 0x166a: 0x127b, 0x166b: 0x17f0, 0x166c: 0x127f, 0x166d: 0x17e1, 0x166e: 0x0673, 0x166f: 0x0677,+ 0x1670: 0x17e6, 0x1671: 0x17eb, 0x1672: 0x067b, 0x1673: 0x129f, 0x1674: 0x12a3, 0x1675: 0x12a7,0x1676: 0x12ab, 0x1677: 0x12b7, 0x1678: 0x12b3, 0x1679: 0x12bf, 0x167a: 0x12bb, 0x167b: 0x12cb,0x167c: 0x12c3, 0x167d: 0x12c7, 0x167e: 0x12cf, 0x167f: 0x067f,// Block 0x5a, offset 0x1680- 0x1680: 0x12d7, 0x1681: 0x12db, 0x1682: 0x0683, 0x1683: 0x12eb, 0x1684: 0x12ef, 0x1685: 0x17f1,- 0x1686: 0x12fb, 0x1687: 0x12ff, 0x1688: 0x0687, 0x1689: 0x130b, 0x168a: 0x05bb, 0x168b: 0x17f6,- 0x168c: 0x17fb, 0x168d: 0x068b, 0x168e: 0x068f, 0x168f: 0x1337, 0x1690: 0x134f, 0x1691: 0x136b,- 0x1692: 0x137b, 0x1693: 0x1800, 0x1694: 0x138f, 0x1695: 0x1393, 0x1696: 0x13ab, 0x1697: 0x13b7,- 0x1698: 0x180a, 0x1699: 0x165c, 0x169a: 0x13c3, 0x169b: 0x13bf, 0x169c: 0x13cb, 0x169d: 0x1661,- 0x169e: 0x13d7, 0x169f: 0x13e3, 0x16a0: 0x180f, 0x16a1: 0x1814, 0x16a2: 0x1423, 0x16a3: 0x142f,- 0x16a4: 0x1437, 0x16a5: 0x1819, 0x16a6: 0x143b, 0x16a7: 0x1463, 0x16a8: 0x146f, 0x16a9: 0x1473,- 0x16aa: 0x146b, 0x16ab: 0x147f, 0x16ac: 0x1483, 0x16ad: 0x181e, 0x16ae: 0x148f, 0x16af: 0x0693,- 0x16b0: 0x1497, 0x16b1: 0x1823, 0x16b2: 0x0697, 0x16b3: 0x14cf, 0x16b4: 0x0ac3, 0x16b5: 0x14e7,- 0x16b6: 0x1828, 0x16b7: 0x1832, 0x16b8: 0x069b, 0x16b9: 0x069f, 0x16ba: 0x150f, 0x16bb: 0x1837,- 0x16bc: 0x06a3, 0x16bd: 0x183c, 0x16be: 0x1527, 0x16bf: 0x1527,+ 0x1680: 0x12d7, 0x1681: 0x12db, 0x1682: 0x0683, 0x1683: 0x12eb, 0x1684: 0x12ef, 0x1685: 0x17f5,+ 0x1686: 0x12fb, 0x1687: 0x12ff, 0x1688: 0x0687, 0x1689: 0x130b, 0x168a: 0x05bb, 0x168b: 0x17fa,+ 0x168c: 0x17ff, 0x168d: 0x068b, 0x168e: 0x068f, 0x168f: 0x1337, 0x1690: 0x134f, 0x1691: 0x136b,+ 0x1692: 0x137b, 0x1693: 0x1804, 0x1694: 0x138f, 0x1695: 0x1393, 0x1696: 0x13ab, 0x1697: 0x13b7,+ 0x1698: 0x180e, 0x1699: 0x1660, 0x169a: 0x13c3, 0x169b: 0x13bf, 0x169c: 0x13cb, 0x169d: 0x1665,+ 0x169e: 0x13d7, 0x169f: 0x13e3, 0x16a0: 0x1813, 0x16a1: 0x1818, 0x16a2: 0x1423, 0x16a3: 0x142f,+ 0x16a4: 0x1437, 0x16a5: 0x181d, 0x16a6: 0x143b, 0x16a7: 0x1467, 0x16a8: 0x1473, 0x16a9: 0x1477,+ 0x16aa: 0x146f, 0x16ab: 0x1483, 0x16ac: 0x1487, 0x16ad: 0x1822, 0x16ae: 0x1493, 0x16af: 0x0693,+ 0x16b0: 0x149b, 0x16b1: 0x1827, 0x16b2: 0x0697, 0x16b3: 0x14d3, 0x16b4: 0x0ac3, 0x16b5: 0x14eb,+ 0x16b6: 0x182c, 0x16b7: 0x1836, 0x16b8: 0x069b, 0x16b9: 0x069f, 0x16ba: 0x1513, 0x16bb: 0x183b,+ 0x16bc: 0x06a3, 0x16bd: 0x1840, 0x16be: 0x152b, 0x16bf: 0x152b,// Block 0x5b, offset 0x16c0- 0x16c0: 0x152f, 0x16c1: 0x1841, 0x16c2: 0x1547, 0x16c3: 0x06a7, 0x16c4: 0x1557, 0x16c5: 0x1563,- 0x16c6: 0x156b, 0x16c7: 0x1573, 0x16c8: 0x06ab, 0x16c9: 0x1846, 0x16ca: 0x1587, 0x16cb: 0x15a3,- 0x16cc: 0x15af, 0x16cd: 0x06af, 0x16ce: 0x06b3, 0x16cf: 0x15b3, 0x16d0: 0x184b, 0x16d1: 0x06b7,- 0x16d2: 0x1850, 0x16d3: 0x1855, 0x16d4: 0x185a, 0x16d5: 0x15d7, 0x16d6: 0x06bb, 0x16d7: 0x15eb,- 0x16d8: 0x15f3, 0x16d9: 0x15f7, 0x16da: 0x15ff, 0x16db: 0x1607, 0x16dc: 0x160f, 0x16dd: 0x1864,+ 0x16c0: 0x1533, 0x16c1: 0x1845, 0x16c2: 0x154b, 0x16c3: 0x06a7, 0x16c4: 0x155b, 0x16c5: 0x1567,+ 0x16c6: 0x156f, 0x16c7: 0x1577, 0x16c8: 0x06ab, 0x16c9: 0x184a, 0x16ca: 0x158b, 0x16cb: 0x15a7,+ 0x16cc: 0x15b3, 0x16cd: 0x06af, 0x16ce: 0x06b3, 0x16cf: 0x15b7, 0x16d0: 0x184f, 0x16d1: 0x06b7,+ 0x16d2: 0x1854, 0x16d3: 0x1859, 0x16d4: 0x185e, 0x16d5: 0x15db, 0x16d6: 0x06bb, 0x16d7: 0x15ef,+ 0x16d8: 0x15f7, 0x16d9: 0x15fb, 0x16da: 0x1603, 0x16db: 0x160b, 0x16dc: 0x1613, 0x16dd: 0x1868,}// nfkcIndex: 22 blocks, 1408 entries, 1408 bytes@@ -5594,23 +5615,25 @@ var nfkcIndex = [1408]uint8{// Block 0xe, offset 0x3800x381: 0xcb, 0x382: 0xcc, 0x384: 0xcd, 0x385: 0xb7, 0x387: 0xce,0x388: 0xcf, 0x38b: 0xd0, 0x38c: 0x6b, 0x38d: 0xd1,- 0x392: 0xd2, 0x393: 0xd3, 0x396: 0xd4, 0x397: 0xd5,- 0x398: 0xd6, 0x39a: 0xd7, 0x39c: 0xd8,+ 0x391: 0xd2, 0x392: 0xd3, 0x393: 0xd4, 0x396: 0xd5, 0x397: 0xd6,+ 0x398: 0xd7, 0x39a: 0xd8, 0x39c: 0xd9,+ 0x3b0: 0xd7,// Block 0xf, offset 0x3c0- 0x3eb: 0xd9, 0x3ec: 0xda,+ 0x3eb: 0xda, 0x3ec: 0xdb,// Block 0x10, offset 0x400- 0x432: 0xdb,+ 0x432: 0xdc,// Block 0x11, offset 0x440- 0x445: 0xdc, 0x446: 0xdd, 0x447: 0xde,- 0x449: 0xdf,- 0x450: 0xe0, 0x451: 0xe1, 0x452: 0xe2, 0x453: 0xe3, 0x454: 0xe4, 0x455: 0xe5, 0x456: 0xe6, 0x457: 0xe7,- 0x458: 0xe8, 0x459: 0xe9, 0x45a: 0x4a, 0x45b: 0xea, 0x45c: 0xeb, 0x45d: 0xec, 0x45e: 0xed, 0x45f: 0x4b,+ 0x445: 0xdd, 0x446: 0xde, 0x447: 0xdf,+ 0x449: 0xe0,+ 0x450: 0xe1, 0x451: 0xe2, 0x452: 0xe3, 0x453: 0xe4, 0x454: 0xe5, 0x455: 0xe6, 0x456: 0xe7, 0x457: 0xe8,+ 0x458: 0xe9, 0x459: 0xea, 0x45a: 0x4a, 0x45b: 0xeb, 0x45c: 0xec, 0x45d: 0xed, 0x45e: 0xee, 0x45f: 0x4b,// Block 0x12, offset 0x480- 0x4a3: 0xee,+ 0x480: 0xef,+ 0x4a3: 0xf0, 0x4a5: 0xf1,0x4b8: 0x4c, 0x4b9: 0x4d, 0x4ba: 0x4e,// Block 0x13, offset 0x4c0- 0x4c4: 0x4f, 0x4c5: 0xef, 0x4c6: 0xf0,- 0x4c8: 0x50, 0x4c9: 0xf1,+ 0x4c4: 0x4f, 0x4c5: 0xf2, 0x4c6: 0xf3,+ 0x4c8: 0x50, 0x4c9: 0xf4,// Block 0x14, offset 0x5000x520: 0x51, 0x521: 0x52, 0x522: 0x53, 0x523: 0x54, 0x524: 0x55, 0x525: 0x56, 0x526: 0x57, 0x527: 0x58,0x528: 0x59,@@ -5620,30 +5643,30 @@ var nfkcIndex = [1408]uint8{0x56f: 0x12,}-// nfkcSparseOffset: 152 entries, 304 bytes-var nfkcSparseOffset = []uint16{0x0, 0xe, 0x12, 0x1b, 0x25, 0x35, 0x37, 0x3c, 0x47, 0x56, 0x63, 0x6b, 0x6f, 0x74, 0x76, 0x86, 0x8e, 0x95, 0x98, 0x9f, 0xa3, 0xa7, 0xa9, 0xab, 0xb4, 0xb8, 0xbf, 0xc4, 0xc7, 0xd1, 0xd3, 0xda, 0xe2, 0xe6, 0xe8, 0xeb, 0xef, 0xf5, 0x106, 0x112, 0x114, 0x11a, 0x11c, 0x11e, 0x120, 0x122, 0x124, 0x126, 0x128, 0x12b, 0x12e, 0x130, 0x133, 0x136, 0x13a, 0x13f, 0x148, 0x14a, 0x14d, 0x14f, 0x15a, 0x165, 0x174, 0x182, 0x190, 0x1a0, 0x1ae, 0x1b5, 0x1bb, 0x1ca, 0x1ce, 0x1d0, 0x1d4, 0x1d6, 0x1d9, 0x1db, 0x1de, 0x1e0, 0x1e3, 0x1e5, 0x1e7, 0x1e9, 0x1f5, 0x1ff, 0x209, 0x20c, 0x210, 0x212, 0x214, 0x216, 0x218, 0x21b, 0x21d, 0x21f, 0x221, 0x223, 0x229, 0x22c, 0x230, 0x232, 0x239, 0x23f, 0x245, 0x24d, 0x253, 0x259, 0x25f, 0x263, 0x265, 0x267, 0x269, 0x26b, 0x271, 0x274, 0x277, 0x27f, 0x286, 0x289, 0x28c, 0x28e, 0x296, 0x29d, 0x2a0, 0x2a6, 0x2a8, 0x2aa, 0x2ad, 0x2af, 0x2b1, 0x2b3, 0x2b5, 0x2c2, 0x2cc, 0x2ce, 0x2d0, 0x2d4, 0x2d9, 0x2e5, 0x2ea, 0x2f3, 0x2f9, 0x2fe, 0x302, 0x307, 0x30b, 0x31b, 0x329, 0x337, 0x345, 0x347, 0x351, 0x353}+// nfkcSparseOffset: 155 entries, 310 bytes+var nfkcSparseOffset = []uint16{0x0, 0xe, 0x12, 0x1b, 0x25, 0x35, 0x37, 0x3c, 0x47, 0x56, 0x63, 0x6b, 0x6f, 0x74, 0x76, 0x87, 0x8f, 0x96, 0x99, 0xa0, 0xa4, 0xa8, 0xaa, 0xac, 0xb5, 0xb9, 0xc0, 0xc5, 0xc8, 0xd2, 0xd4, 0xdb, 0xe3, 0xe7, 0xe9, 0xec, 0xf0, 0xf6, 0x107, 0x113, 0x115, 0x11b, 0x11d, 0x11f, 0x121, 0x123, 0x125, 0x127, 0x129, 0x12c, 0x12f, 0x131, 0x134, 0x137, 0x13b, 0x140, 0x149, 0x14b, 0x14e, 0x150, 0x15b, 0x166, 0x176, 0x184, 0x192, 0x1a2, 0x1b0, 0x1b7, 0x1bd, 0x1cc, 0x1d0, 0x1d2, 0x1d6, 0x1d8, 0x1db, 0x1dd, 0x1e0, 0x1e2, 0x1e5, 0x1e7, 0x1e9, 0x1eb, 0x1f7, 0x201, 0x20b, 0x20e, 0x212, 0x214, 0x216, 0x218, 0x21a, 0x21d, 0x21f, 0x221, 0x223, 0x225, 0x22b, 0x22e, 0x232, 0x234, 0x23b, 0x241, 0x247, 0x24f, 0x255, 0x25b, 0x261, 0x265, 0x267, 0x269, 0x26b, 0x26d, 0x273, 0x276, 0x279, 0x281, 0x288, 0x28b, 0x28e, 0x290, 0x298, 0x29b, 0x2a2, 0x2a5, 0x2ab, 0x2ad, 0x2af, 0x2b2, 0x2b4, 0x2b6, 0x2b8, 0x2ba, 0x2c7, 0x2d1, 0x2d3, 0x2d5, 0x2d9, 0x2de, 0x2ea, 0x2ef, 0x2f8, 0x2fe, 0x303, 0x307, 0x30c, 0x310, 0x320, 0x32e, 0x33c, 0x34a, 0x350, 0x352, 0x355, 0x35f, 0x361}-// nfkcSparseValues: 861 entries, 3444 bytes-var nfkcSparseValues = [861]valueRange{+// nfkcSparseValues: 875 entries, 3500 bytes+var nfkcSparseValues = [875]valueRange{// Block 0x0, offset 0x0{value: 0x0002, lo: 0x0d},{value: 0x0001, lo: 0xa0, hi: 0xa0},- {value: 0x4274, lo: 0xa8, hi: 0xa8},+ {value: 0x4278, lo: 0xa8, hi: 0xa8},{value: 0x0083, lo: 0xaa, hi: 0xaa},- {value: 0x4260, lo: 0xaf, hi: 0xaf},+ {value: 0x4264, lo: 0xaf, hi: 0xaf},{value: 0x0025, lo: 0xb2, hi: 0xb3},- {value: 0x4256, lo: 0xb4, hi: 0xb4},+ {value: 0x425a, lo: 0xb4, hi: 0xb4},{value: 0x01dc, lo: 0xb5, hi: 0xb5},- {value: 0x428d, lo: 0xb8, hi: 0xb8},+ {value: 0x4291, lo: 0xb8, hi: 0xb8},{value: 0x0023, lo: 0xb9, hi: 0xb9},{value: 0x009f, lo: 0xba, hi: 0xba},- {value: 0x2218, lo: 0xbc, hi: 0xbc},- {value: 0x220c, lo: 0xbd, hi: 0xbd},- {value: 0x22ae, lo: 0xbe, hi: 0xbe},+ {value: 0x221c, lo: 0xbc, hi: 0xbc},+ {value: 0x2210, lo: 0xbd, hi: 0xbd},+ {value: 0x22b2, lo: 0xbe, hi: 0xbe},// Block 0x1, offset 0xe{value: 0x0091, lo: 0x03},- {value: 0x4774, lo: 0xa0, hi: 0xa1},- {value: 0x47a6, lo: 0xaf, hi: 0xb0},+ {value: 0x4778, lo: 0xa0, hi: 0xa1},+ {value: 0x47aa, lo: 0xaf, hi: 0xb0},{value: 0xa000, lo: 0xb7, hi: 0xb7},// Block 0x2, offset 0x12{value: 0x0003, lo: 0x08},@@ -5657,11 +5680,11 @@ var nfkcSparseValues = [861]valueRange{{value: 0x00b3, lo: 0xb8, hi: 0xb8},// Block 0x3, offset 0x1b{value: 0x000a, lo: 0x09},- {value: 0x426a, lo: 0x98, hi: 0x98},- {value: 0x426f, lo: 0x99, hi: 0x9a},- {value: 0x4292, lo: 0x9b, hi: 0x9b},- {value: 0x425b, lo: 0x9c, hi: 0x9c},- {value: 0x427e, lo: 0x9d, hi: 0x9d},+ {value: 0x426e, lo: 0x98, hi: 0x98},+ {value: 0x4273, lo: 0x99, hi: 0x9a},+ {value: 0x4296, lo: 0x9b, hi: 0x9b},+ {value: 0x425f, lo: 0x9c, hi: 0x9c},+ {value: 0x4282, lo: 0x9d, hi: 0x9d},{value: 0x0113, lo: 0xa0, hi: 0xa0},{value: 0x0099, lo: 0xa1, hi: 0xa1},{value: 0x00a7, lo: 0xa2, hi: 0xa3},@@ -5672,17 +5695,17 @@ var nfkcSparseValues = [861]valueRange{{value: 0xa000, lo: 0x87, hi: 0x87},{value: 0xa000, lo: 0x8b, hi: 0x8b},{value: 0xa000, lo: 0x8d, hi: 0x8d},- {value: 0x37a1, lo: 0x90, hi: 0x90},- {value: 0x37ad, lo: 0x91, hi: 0x91},- {value: 0x379b, lo: 0x93, hi: 0x93},+ {value: 0x37a5, lo: 0x90, hi: 0x90},+ {value: 0x37b1, lo: 0x91, hi: 0x91},+ {value: 0x379f, lo: 0x93, hi: 0x93},{value: 0xa000, lo: 0x96, hi: 0x96},- {value: 0x3813, lo: 0x97, hi: 0x97},- {value: 0x37dd, lo: 0x9c, hi: 0x9c},- {value: 0x37c5, lo: 0x9d, hi: 0x9d},- {value: 0x37ef, lo: 0x9e, hi: 0x9e},+ {value: 0x3817, lo: 0x97, hi: 0x97},+ {value: 0x37e1, lo: 0x9c, hi: 0x9c},+ {value: 0x37c9, lo: 0x9d, hi: 0x9d},+ {value: 0x37f3, lo: 0x9e, hi: 0x9e},{value: 0xa000, lo: 0xb4, hi: 0xb5},- {value: 0x3819, lo: 0xb6, hi: 0xb6},- {value: 0x381f, lo: 0xb7, hi: 0xb7},+ {value: 0x381d, lo: 0xb6, hi: 0xb6},+ {value: 0x3823, lo: 0xb7, hi: 0xb7},// Block 0x5, offset 0x35{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0x83, hi: 0x87},@@ -5698,19 +5721,19 @@ var nfkcSparseValues = [861]valueRange{{value: 0x8119, lo: 0x98, hi: 0x98},{value: 0x811a, lo: 0x99, hi: 0x99},{value: 0x811b, lo: 0x9a, hi: 0x9a},- {value: 0x383d, lo: 0xa2, hi: 0xa2},- {value: 0x3843, lo: 0xa3, hi: 0xa3},- {value: 0x384f, lo: 0xa4, hi: 0xa4},- {value: 0x3849, lo: 0xa5, hi: 0xa5},- {value: 0x3855, lo: 0xa6, hi: 0xa6},+ {value: 0x3841, lo: 0xa2, hi: 0xa2},+ {value: 0x3847, lo: 0xa3, hi: 0xa3},+ {value: 0x3853, lo: 0xa4, hi: 0xa4},+ {value: 0x384d, lo: 0xa5, hi: 0xa5},+ {value: 0x3859, lo: 0xa6, hi: 0xa6},{value: 0xa000, lo: 0xa7, hi: 0xa7},// Block 0x8, offset 0x47{value: 0x0000, lo: 0x0e},- {value: 0x3867, lo: 0x80, hi: 0x80},+ {value: 0x386b, lo: 0x80, hi: 0x80},{value: 0xa000, lo: 0x81, hi: 0x81},- {value: 0x385b, lo: 0x82, hi: 0x82},+ {value: 0x385f, lo: 0x82, hi: 0x82},{value: 0xa000, lo: 0x92, hi: 0x92},- {value: 0x3861, lo: 0x93, hi: 0x93},+ {value: 0x3865, lo: 0x93, hi: 0x93},{value: 0xa000, lo: 0x95, hi: 0x95},{value: 0x8132, lo: 0x96, hi: 0x9c},{value: 0x8132, lo: 0x9f, hi: 0xa2},@@ -5758,7 +5781,8 @@ var nfkcSparseValues = [861]valueRange{{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0x99, hi: 0x9b},// Block 0xe, offset 0x76- {value: 0x0000, lo: 0x0f},+ {value: 0x0000, lo: 0x10},+ {value: 0x8132, lo: 0x94, hi: 0xa1},{value: 0x812d, lo: 0xa3, hi: 0xa3},{value: 0x8132, lo: 0xa4, hi: 0xa5},{value: 0x812d, lo: 0xa6, hi: 0xa6},@@ -5774,252 +5798,252 @@ var nfkcSparseValues = [861]valueRange{{value: 0x8132, lo: 0xb7, hi: 0xb8},{value: 0x812d, lo: 0xb9, hi: 0xba},{value: 0x8132, lo: 0xbb, hi: 0xbf},- // Block 0xf, offset 0x86+ // Block 0xf, offset 0x87{value: 0x0000, lo: 0x07},{value: 0xa000, lo: 0xa8, hi: 0xa8},- {value: 0x3ed4, lo: 0xa9, hi: 0xa9},+ {value: 0x3ed8, lo: 0xa9, hi: 0xa9},{value: 0xa000, lo: 0xb0, hi: 0xb0},- {value: 0x3edc, lo: 0xb1, hi: 0xb1},+ {value: 0x3ee0, lo: 0xb1, hi: 0xb1},{value: 0xa000, lo: 0xb3, hi: 0xb3},- {value: 0x3ee4, lo: 0xb4, hi: 0xb4},+ {value: 0x3ee8, lo: 0xb4, hi: 0xb4},{value: 0x9902, lo: 0xbc, hi: 0xbc},- // Block 0x10, offset 0x8e+ // Block 0x10, offset 0x8f{value: 0x0008, lo: 0x06},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x8132, lo: 0x91, hi: 0x91},{value: 0x812d, lo: 0x92, hi: 0x92},{value: 0x8132, lo: 0x93, hi: 0x93},{value: 0x8132, lo: 0x94, hi: 0x94},- {value: 0x45ae, lo: 0x98, hi: 0x9f},- // Block 0x11, offset 0x95+ {value: 0x45b2, lo: 0x98, hi: 0x9f},+ // Block 0x11, offset 0x96{value: 0x0000, lo: 0x02},{value: 0x8102, lo: 0xbc, hi: 0xbc},{value: 0x9900, lo: 0xbe, hi: 0xbe},- // Block 0x12, offset 0x98+ // Block 0x12, offset 0x99{value: 0x0008, lo: 0x06},{value: 0xa000, lo: 0x87, hi: 0x87},- {value: 0x2c9a, lo: 0x8b, hi: 0x8c},+ {value: 0x2c9e, lo: 0x8b, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x97, hi: 0x97},- {value: 0x45ee, lo: 0x9c, hi: 0x9d},- {value: 0x45fe, lo: 0x9f, hi: 0x9f},- // Block 0x13, offset 0x9f+ {value: 0x45f2, lo: 0x9c, hi: 0x9d},+ {value: 0x4602, lo: 0x9f, hi: 0x9f},+ // Block 0x13, offset 0xa0{value: 0x0000, lo: 0x03},- {value: 0x4626, lo: 0xb3, hi: 0xb3},- {value: 0x462e, lo: 0xb6, hi: 0xb6},+ {value: 0x462a, lo: 0xb3, hi: 0xb3},+ {value: 0x4632, lo: 0xb6, hi: 0xb6},{value: 0x8102, lo: 0xbc, hi: 0xbc},- // Block 0x14, offset 0xa3+ // Block 0x14, offset 0xa4{value: 0x0008, lo: 0x03},{value: 0x8104, lo: 0x8d, hi: 0x8d},- {value: 0x4606, lo: 0x99, hi: 0x9b},- {value: 0x461e, lo: 0x9e, hi: 0x9e},- // Block 0x15, offset 0xa7+ {value: 0x460a, lo: 0x99, hi: 0x9b},+ {value: 0x4622, lo: 0x9e, hi: 0x9e},+ // Block 0x15, offset 0xa8{value: 0x0000, lo: 0x01},{value: 0x8102, lo: 0xbc, hi: 0xbc},- // Block 0x16, offset 0xa9+ // Block 0x16, offset 0xaa{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0x8d, hi: 0x8d},- // Block 0x17, offset 0xab+ // Block 0x17, offset 0xac{value: 0x0000, lo: 0x08},{value: 0xa000, lo: 0x87, hi: 0x87},- {value: 0x2cb2, lo: 0x88, hi: 0x88},- {value: 0x2caa, lo: 0x8b, hi: 0x8b},- {value: 0x2cba, lo: 0x8c, hi: 0x8c},+ {value: 0x2cb6, lo: 0x88, hi: 0x88},+ {value: 0x2cae, lo: 0x8b, hi: 0x8b},+ {value: 0x2cbe, lo: 0x8c, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x96, hi: 0x97},- {value: 0x4636, lo: 0x9c, hi: 0x9c},- {value: 0x463e, lo: 0x9d, hi: 0x9d},- // Block 0x18, offset 0xb4+ {value: 0x463a, lo: 0x9c, hi: 0x9c},+ {value: 0x4642, lo: 0x9d, hi: 0x9d},+ // Block 0x18, offset 0xb5{value: 0x0000, lo: 0x03},{value: 0xa000, lo: 0x92, hi: 0x92},- {value: 0x2cc2, lo: 0x94, hi: 0x94},+ {value: 0x2cc6, lo: 0x94, hi: 0x94},{value: 0x9900, lo: 0xbe, hi: 0xbe},- // Block 0x19, offset 0xb8+ // Block 0x19, offset 0xb9{value: 0x0000, lo: 0x06},{value: 0xa000, lo: 0x86, hi: 0x87},- {value: 0x2cca, lo: 0x8a, hi: 0x8a},- {value: 0x2cda, lo: 0x8b, hi: 0x8b},- {value: 0x2cd2, lo: 0x8c, hi: 0x8c},+ {value: 0x2cce, lo: 0x8a, hi: 0x8a},+ {value: 0x2cde, lo: 0x8b, hi: 0x8b},+ {value: 0x2cd6, lo: 0x8c, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x97, hi: 0x97},- // Block 0x1a, offset 0xbf+ // Block 0x1a, offset 0xc0{value: 0x1801, lo: 0x04},{value: 0xa000, lo: 0x86, hi: 0x86},- {value: 0x3eec, lo: 0x88, hi: 0x88},+ {value: 0x3ef0, lo: 0x88, hi: 0x88},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x8120, lo: 0x95, hi: 0x96},- // Block 0x1b, offset 0xc4+ // Block 0x1b, offset 0xc5{value: 0x0000, lo: 0x02},{value: 0x8102, lo: 0xbc, hi: 0xbc},{value: 0xa000, lo: 0xbf, hi: 0xbf},- // Block 0x1c, offset 0xc7+ // Block 0x1c, offset 0xc8{value: 0x0000, lo: 0x09},- {value: 0x2ce2, lo: 0x80, hi: 0x80},+ {value: 0x2ce6, lo: 0x80, hi: 0x80},{value: 0x9900, lo: 0x82, hi: 0x82},{value: 0xa000, lo: 0x86, hi: 0x86},- {value: 0x2cea, lo: 0x87, hi: 0x87},- {value: 0x2cf2, lo: 0x88, hi: 0x88},- {value: 0x2f4c, lo: 0x8a, hi: 0x8a},- {value: 0x2dd4, lo: 0x8b, hi: 0x8b},+ {value: 0x2cee, lo: 0x87, hi: 0x87},+ {value: 0x2cf6, lo: 0x88, hi: 0x88},+ {value: 0x2f50, lo: 0x8a, hi: 0x8a},+ {value: 0x2dd8, lo: 0x8b, hi: 0x8b},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x95, hi: 0x96},- // Block 0x1d, offset 0xd1+ // Block 0x1d, offset 0xd2{value: 0x0000, lo: 0x01},{value: 0x9900, lo: 0xbe, hi: 0xbe},- // Block 0x1e, offset 0xd3+ // Block 0x1e, offset 0xd4{value: 0x0000, lo: 0x06},{value: 0xa000, lo: 0x86, hi: 0x87},- {value: 0x2cfa, lo: 0x8a, hi: 0x8a},- {value: 0x2d0a, lo: 0x8b, hi: 0x8b},- {value: 0x2d02, lo: 0x8c, hi: 0x8c},+ {value: 0x2cfe, lo: 0x8a, hi: 0x8a},+ {value: 0x2d0e, lo: 0x8b, hi: 0x8b},+ {value: 0x2d06, lo: 0x8c, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x97, hi: 0x97},- // Block 0x1f, offset 0xda- {value: 0x6bee, lo: 0x07},+ // Block 0x1f, offset 0xdb+ {value: 0x6bea, lo: 0x07},{value: 0x9904, lo: 0x8a, hi: 0x8a},{value: 0x9900, lo: 0x8f, hi: 0x8f},{value: 0xa000, lo: 0x99, hi: 0x99},- {value: 0x3ef4, lo: 0x9a, hi: 0x9a},- {value: 0x2f54, lo: 0x9c, hi: 0x9c},- {value: 0x2ddf, lo: 0x9d, hi: 0x9d},- {value: 0x2d12, lo: 0x9e, hi: 0x9f},- // Block 0x20, offset 0xe2+ {value: 0x3ef8, lo: 0x9a, hi: 0x9a},+ {value: 0x2f58, lo: 0x9c, hi: 0x9c},+ {value: 0x2de3, lo: 0x9d, hi: 0x9d},+ {value: 0x2d16, lo: 0x9e, hi: 0x9f},+ // Block 0x20, offset 0xe3{value: 0x0000, lo: 0x03},- {value: 0x261d, lo: 0xb3, hi: 0xb3},+ {value: 0x2621, lo: 0xb3, hi: 0xb3},{value: 0x8122, lo: 0xb8, hi: 0xb9},{value: 0x8104, lo: 0xba, hi: 0xba},- // Block 0x21, offset 0xe6+ // Block 0x21, offset 0xe7{value: 0x0000, lo: 0x01},{value: 0x8123, lo: 0x88, hi: 0x8b},- // Block 0x22, offset 0xe8+ // Block 0x22, offset 0xe9{value: 0x0000, lo: 0x02},- {value: 0x2632, lo: 0xb3, hi: 0xb3},+ {value: 0x2636, lo: 0xb3, hi: 0xb3},{value: 0x8124, lo: 0xb8, hi: 0xb9},- // Block 0x23, offset 0xeb+ // Block 0x23, offset 0xec{value: 0x0000, lo: 0x03},{value: 0x8125, lo: 0x88, hi: 0x8b},- {value: 0x2624, lo: 0x9c, hi: 0x9c},- {value: 0x262b, lo: 0x9d, hi: 0x9d},- // Block 0x24, offset 0xef+ {value: 0x2628, lo: 0x9c, hi: 0x9c},+ {value: 0x262f, lo: 0x9d, hi: 0x9d},+ // Block 0x24, offset 0xf0{value: 0x0000, lo: 0x05},{value: 0x030b, lo: 0x8c, hi: 0x8c},{value: 0x812d, lo: 0x98, hi: 0x99},{value: 0x812d, lo: 0xb5, hi: 0xb5},{value: 0x812d, lo: 0xb7, hi: 0xb7},{value: 0x812b, lo: 0xb9, hi: 0xb9},- // Block 0x25, offset 0xf5+ // Block 0x25, offset 0xf6{value: 0x0000, lo: 0x10},- {value: 0x2640, lo: 0x83, hi: 0x83},- {value: 0x2647, lo: 0x8d, hi: 0x8d},- {value: 0x264e, lo: 0x92, hi: 0x92},- {value: 0x2655, lo: 0x97, hi: 0x97},- {value: 0x265c, lo: 0x9c, hi: 0x9c},- {value: 0x2639, lo: 0xa9, hi: 0xa9},+ {value: 0x2644, lo: 0x83, hi: 0x83},+ {value: 0x264b, lo: 0x8d, hi: 0x8d},+ {value: 0x2652, lo: 0x92, hi: 0x92},+ {value: 0x2659, lo: 0x97, hi: 0x97},+ {value: 0x2660, lo: 0x9c, hi: 0x9c},+ {value: 0x263d, lo: 0xa9, hi: 0xa9},{value: 0x8126, lo: 0xb1, hi: 0xb1},{value: 0x8127, lo: 0xb2, hi: 0xb2},- {value: 0x4a62, lo: 0xb3, hi: 0xb3},+ {value: 0x4a66, lo: 0xb3, hi: 0xb3},{value: 0x8128, lo: 0xb4, hi: 0xb4},- {value: 0x4a6b, lo: 0xb5, hi: 0xb5},- {value: 0x4646, lo: 0xb6, hi: 0xb6},- {value: 0x4686, lo: 0xb7, hi: 0xb7},- {value: 0x464e, lo: 0xb8, hi: 0xb8},- {value: 0x4691, lo: 0xb9, hi: 0xb9},+ {value: 0x4a6f, lo: 0xb5, hi: 0xb5},+ {value: 0x464a, lo: 0xb6, hi: 0xb6},+ {value: 0x468a, lo: 0xb7, hi: 0xb7},+ {value: 0x4652, lo: 0xb8, hi: 0xb8},+ {value: 0x4695, lo: 0xb9, hi: 0xb9},{value: 0x8127, lo: 0xba, hi: 0xbd},- // Block 0x26, offset 0x106+ // Block 0x26, offset 0x107{value: 0x0000, lo: 0x0b},{value: 0x8127, lo: 0x80, hi: 0x80},- {value: 0x4a74, lo: 0x81, hi: 0x81},+ {value: 0x4a78, lo: 0x81, hi: 0x81},{value: 0x8132, lo: 0x82, hi: 0x83},{value: 0x8104, lo: 0x84, hi: 0x84},{value: 0x8132, lo: 0x86, hi: 0x87},- {value: 0x266a, lo: 0x93, hi: 0x93},- {value: 0x2671, lo: 0x9d, hi: 0x9d},- {value: 0x2678, lo: 0xa2, hi: 0xa2},- {value: 0x267f, lo: 0xa7, hi: 0xa7},- {value: 0x2686, lo: 0xac, hi: 0xac},- {value: 0x2663, lo: 0xb9, hi: 0xb9},- // Block 0x27, offset 0x112+ {value: 0x266e, lo: 0x93, hi: 0x93},+ {value: 0x2675, lo: 0x9d, hi: 0x9d},+ {value: 0x267c, lo: 0xa2, hi: 0xa2},+ {value: 0x2683, lo: 0xa7, hi: 0xa7},+ {value: 0x268a, lo: 0xac, hi: 0xac},+ {value: 0x2667, lo: 0xb9, hi: 0xb9},+ // Block 0x27, offset 0x113{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0x86, hi: 0x86},- // Block 0x28, offset 0x114+ // Block 0x28, offset 0x115{value: 0x0000, lo: 0x05},{value: 0xa000, lo: 0xa5, hi: 0xa5},- {value: 0x2d1a, lo: 0xa6, hi: 0xa6},+ {value: 0x2d1e, lo: 0xa6, hi: 0xa6},{value: 0x9900, lo: 0xae, hi: 0xae},{value: 0x8102, lo: 0xb7, hi: 0xb7},{value: 0x8104, lo: 0xb9, hi: 0xba},- // Block 0x29, offset 0x11a+ // Block 0x29, offset 0x11b{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0x8d, hi: 0x8d},- // Block 0x2a, offset 0x11c+ // Block 0x2a, offset 0x11d{value: 0x0000, lo: 0x01},{value: 0x030f, lo: 0xbc, hi: 0xbc},- // Block 0x2b, offset 0x11e+ // Block 0x2b, offset 0x11f{value: 0x0000, lo: 0x01},{value: 0xa000, lo: 0x80, hi: 0x92},- // Block 0x2c, offset 0x120+ // Block 0x2c, offset 0x121{value: 0x0000, lo: 0x01},{value: 0xb900, lo: 0xa1, hi: 0xb5},- // Block 0x2d, offset 0x122+ // Block 0x2d, offset 0x123{value: 0x0000, lo: 0x01},{value: 0x9900, lo: 0xa8, hi: 0xbf},- // Block 0x2e, offset 0x124+ // Block 0x2e, offset 0x125{value: 0x0000, lo: 0x01},{value: 0x9900, lo: 0x80, hi: 0x82},- // Block 0x2f, offset 0x126+ // Block 0x2f, offset 0x127{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0x9d, hi: 0x9f},- // Block 0x30, offset 0x128+ // Block 0x30, offset 0x129{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x94, hi: 0x94},{value: 0x8104, lo: 0xb4, hi: 0xb4},- // Block 0x31, offset 0x12b+ // Block 0x31, offset 0x12c{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x92, hi: 0x92},{value: 0x8132, lo: 0x9d, hi: 0x9d},- // Block 0x32, offset 0x12e+ // Block 0x32, offset 0x12f{value: 0x0000, lo: 0x01},{value: 0x8131, lo: 0xa9, hi: 0xa9},- // Block 0x33, offset 0x130+ // Block 0x33, offset 0x131{value: 0x0004, lo: 0x02},{value: 0x812e, lo: 0xb9, hi: 0xba},{value: 0x812d, lo: 0xbb, hi: 0xbb},- // Block 0x34, offset 0x133+ // Block 0x34, offset 0x134{value: 0x0000, lo: 0x02},{value: 0x8132, lo: 0x97, hi: 0x97},{value: 0x812d, lo: 0x98, hi: 0x98},- // Block 0x35, offset 0x136+ // Block 0x35, offset 0x137{value: 0x0000, lo: 0x03},{value: 0x8104, lo: 0xa0, hi: 0xa0},{value: 0x8132, lo: 0xb5, hi: 0xbc},{value: 0x812d, lo: 0xbf, hi: 0xbf},- // Block 0x36, offset 0x13a+ // Block 0x36, offset 0x13b{value: 0x0000, lo: 0x04},{value: 0x8132, lo: 0xb0, hi: 0xb4},{value: 0x812d, lo: 0xb5, hi: 0xba},{value: 0x8132, lo: 0xbb, hi: 0xbc},{value: 0x812d, lo: 0xbd, hi: 0xbd},- // Block 0x37, offset 0x13f+ // Block 0x37, offset 0x140{value: 0x0000, lo: 0x08},- {value: 0x2d62, lo: 0x80, hi: 0x80},- {value: 0x2d6a, lo: 0x81, hi: 0x81},+ {value: 0x2d66, lo: 0x80, hi: 0x80},+ {value: 0x2d6e, lo: 0x81, hi: 0x81},{value: 0xa000, lo: 0x82, hi: 0x82},- {value: 0x2d72, lo: 0x83, hi: 0x83},+ {value: 0x2d76, lo: 0x83, hi: 0x83},{value: 0x8104, lo: 0x84, hi: 0x84},{value: 0x8132, lo: 0xab, hi: 0xab},{value: 0x812d, lo: 0xac, hi: 0xac},{value: 0x8132, lo: 0xad, hi: 0xb3},- // Block 0x38, offset 0x148+ // Block 0x38, offset 0x149{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0xaa, hi: 0xab},- // Block 0x39, offset 0x14a+ // Block 0x39, offset 0x14b{value: 0x0000, lo: 0x02},{value: 0x8102, lo: 0xa6, hi: 0xa6},{value: 0x8104, lo: 0xb2, hi: 0xb3},- // Block 0x3a, offset 0x14d+ // Block 0x3a, offset 0x14e{value: 0x0000, lo: 0x01},{value: 0x8102, lo: 0xb7, hi: 0xb7},- // Block 0x3b, offset 0x14f+ // Block 0x3b, offset 0x150{value: 0x0000, lo: 0x0a},{value: 0x8132, lo: 0x90, hi: 0x92},{value: 0x8101, lo: 0x94, hi: 0x94},@@ -6031,7 +6055,7 @@ var nfkcSparseValues = [861]valueRange{{value: 0x812d, lo: 0xad, hi: 0xad},{value: 0x8132, lo: 0xb4, hi: 0xb4},{value: 0x8132, lo: 0xb8, hi: 0xb9},- // Block 0x3c, offset 0x15a+ // Block 0x3c, offset 0x15b{value: 0x0002, lo: 0x0a},{value: 0x0043, lo: 0xac, hi: 0xac},{value: 0x00d1, lo: 0xad, hi: 0xad},@@ -6043,8 +6067,8 @@ var nfkcSparseValues = [861]valueRange{{value: 0x00ef, lo: 0xbd, hi: 0xbd},{value: 0x0061, lo: 0xbe, hi: 0xbe},{value: 0x0065, lo: 0xbf, hi: 0xbf},- // Block 0x3d, offset 0x165- {value: 0x0000, lo: 0x0e},+ // Block 0x3d, offset 0x166+ {value: 0x0000, lo: 0x0f},{value: 0x8132, lo: 0x80, hi: 0x81},{value: 0x812d, lo: 0x82, hi: 0x82},{value: 0x8132, lo: 0x83, hi: 0x89},@@ -6055,31 +6079,32 @@ var nfkcSparseValues = [861]valueRange{{value: 0x812d, lo: 0x8f, hi: 0x8f},{value: 0x8129, lo: 0x90, hi: 0x90},{value: 0x8132, lo: 0x91, hi: 0xb5},+ {value: 0x8132, lo: 0xbb, hi: 0xbb},{value: 0x8134, lo: 0xbc, hi: 0xbc},{value: 0x812d, lo: 0xbd, hi: 0xbd},{value: 0x8132, lo: 0xbe, hi: 0xbe},{value: 0x812d, lo: 0xbf, hi: 0xbf},- // Block 0x3e, offset 0x174+ // Block 0x3e, offset 0x176{value: 0x0000, lo: 0x0d},{value: 0x0001, lo: 0x80, hi: 0x8a},{value: 0x043b, lo: 0x91, hi: 0x91},- {value: 0x4297, lo: 0x97, hi: 0x97},+ {value: 0x429b, lo: 0x97, hi: 0x97},{value: 0x001d, lo: 0xa4, hi: 0xa4},- {value: 0x186f, lo: 0xa5, hi: 0xa5},- {value: 0x1b58, lo: 0xa6, hi: 0xa6},+ {value: 0x1873, lo: 0xa5, hi: 0xa5},+ {value: 0x1b5c, lo: 0xa6, hi: 0xa6},{value: 0x0001, lo: 0xaf, hi: 0xaf},- {value: 0x268d, lo: 0xb3, hi: 0xb3},- {value: 0x27fa, lo: 0xb4, hi: 0xb4},- {value: 0x2694, lo: 0xb6, hi: 0xb6},- {value: 0x2804, lo: 0xb7, hi: 0xb7},- {value: 0x1869, lo: 0xbc, hi: 0xbc},- {value: 0x4265, lo: 0xbe, hi: 0xbe},- // Block 0x3f, offset 0x182+ {value: 0x2691, lo: 0xb3, hi: 0xb3},+ {value: 0x27fe, lo: 0xb4, hi: 0xb4},+ {value: 0x2698, lo: 0xb6, hi: 0xb6},+ {value: 0x2808, lo: 0xb7, hi: 0xb7},+ {value: 0x186d, lo: 0xbc, hi: 0xbc},+ {value: 0x4269, lo: 0xbe, hi: 0xbe},+ // Block 0x3f, offset 0x184{value: 0x0002, lo: 0x0d},- {value: 0x192f, lo: 0x87, hi: 0x87},- {value: 0x192c, lo: 0x88, hi: 0x88},- {value: 0x186c, lo: 0x89, hi: 0x89},- {value: 0x298a, lo: 0x97, hi: 0x97},+ {value: 0x1933, lo: 0x87, hi: 0x87},+ {value: 0x1930, lo: 0x88, hi: 0x88},+ {value: 0x1870, lo: 0x89, hi: 0x89},+ {value: 0x298e, lo: 0x97, hi: 0x97},{value: 0x0001, lo: 0x9f, hi: 0x9f},{value: 0x0021, lo: 0xb0, hi: 0xb0},{value: 0x0093, lo: 0xb1, hi: 0xb1},@@ -6089,7 +6114,7 @@ var nfkcSparseValues = [861]valueRange{{value: 0x003b, lo: 0xbc, hi: 0xbc},{value: 0x0011, lo: 0xbd, hi: 0xbe},{value: 0x009d, lo: 0xbf, hi: 0xbf},- // Block 0x40, offset 0x190+ // Block 0x40, offset 0x192{value: 0x0002, lo: 0x0f},{value: 0x0021, lo: 0x80, hi: 0x89},{value: 0x0017, lo: 0x8a, hi: 0x8a},@@ -6105,8 +6130,8 @@ var nfkcSparseValues = [861]valueRange{{value: 0x0097, lo: 0x96, hi: 0x99},{value: 0x00a1, lo: 0x9a, hi: 0x9a},{value: 0x00a7, lo: 0x9b, hi: 0x9c},- {value: 0x1995, lo: 0xa8, hi: 0xa8},- // Block 0x41, offset 0x1a0+ {value: 0x1999, lo: 0xa8, hi: 0xa8},+ // Block 0x41, offset 0x1a2{value: 0x0000, lo: 0x0d},{value: 0x8132, lo: 0x90, hi: 0x91},{value: 0x8101, lo: 0x92, hi: 0x93},@@ -6121,94 +6146,94 @@ var nfkcSparseValues = [861]valueRange{{value: 0x8101, lo: 0xaa, hi: 0xab},{value: 0x812d, lo: 0xac, hi: 0xaf},{value: 0x8132, lo: 0xb0, hi: 0xb0},- // Block 0x42, offset 0x1ae+ // Block 0x42, offset 0x1b0{value: 0x0007, lo: 0x06},- {value: 0x217c, lo: 0x89, hi: 0x89},+ {value: 0x2180, lo: 0x89, hi: 0x89},{value: 0xa000, lo: 0x90, hi: 0x90},{value: 0xa000, lo: 0x92, hi: 0x92},{value: 0xa000, lo: 0x94, hi: 0x94},- {value: 0x3bb5, lo: 0x9a, hi: 0x9b},- {value: 0x3bc3, lo: 0xae, hi: 0xae},- // Block 0x43, offset 0x1b5+ {value: 0x3bb9, lo: 0x9a, hi: 0x9b},+ {value: 0x3bc7, lo: 0xae, hi: 0xae},+ // Block 0x43, offset 0x1b7{value: 0x000e, lo: 0x05},- {value: 0x3bca, lo: 0x8d, hi: 0x8e},- {value: 0x3bd1, lo: 0x8f, hi: 0x8f},+ {value: 0x3bce, lo: 0x8d, hi: 0x8e},+ {value: 0x3bd5, lo: 0x8f, hi: 0x8f},{value: 0xa000, lo: 0x90, hi: 0x90},{value: 0xa000, lo: 0x92, hi: 0x92},{value: 0xa000, lo: 0x94, hi: 0x94},- // Block 0x44, offset 0x1bb+ // Block 0x44, offset 0x1bd{value: 0x0173, lo: 0x0e},{value: 0xa000, lo: 0x83, hi: 0x83},- {value: 0x3bdf, lo: 0x84, hi: 0x84},+ {value: 0x3be3, lo: 0x84, hi: 0x84},{value: 0xa000, lo: 0x88, hi: 0x88},- {value: 0x3be6, lo: 0x89, hi: 0x89},+ {value: 0x3bea, lo: 0x89, hi: 0x89},{value: 0xa000, lo: 0x8b, hi: 0x8b},- {value: 0x3bed, lo: 0x8c, hi: 0x8c},+ {value: 0x3bf1, lo: 0x8c, hi: 0x8c},{value: 0xa000, lo: 0xa3, hi: 0xa3},- {value: 0x3bf4, lo: 0xa4, hi: 0xa4},+ {value: 0x3bf8, lo: 0xa4, hi: 0xa4},{value: 0xa000, lo: 0xa5, hi: 0xa5},- {value: 0x3bfb, lo: 0xa6, hi: 0xa6},- {value: 0x269b, lo: 0xac, hi: 0xad},- {value: 0x26a2, lo: 0xaf, hi: 0xaf},- {value: 0x2818, lo: 0xb0, hi: 0xb0},+ {value: 0x3bff, lo: 0xa6, hi: 0xa6},+ {value: 0x269f, lo: 0xac, hi: 0xad},+ {value: 0x26a6, lo: 0xaf, hi: 0xaf},+ {value: 0x281c, lo: 0xb0, hi: 0xb0},{value: 0xa000, lo: 0xbc, hi: 0xbc},- // Block 0x45, offset 0x1ca+ // Block 0x45, offset 0x1cc{value: 0x0007, lo: 0x03},- {value: 0x3c64, lo: 0xa0, hi: 0xa1},- {value: 0x3c8e, lo: 0xa2, hi: 0xa3},- {value: 0x3cb8, lo: 0xaa, hi: 0xad},- // Block 0x46, offset 0x1ce+ {value: 0x3c68, lo: 0xa0, hi: 0xa1},+ {value: 0x3c92, lo: 0xa2, hi: 0xa3},+ {value: 0x3cbc, lo: 0xaa, hi: 0xad},+ // Block 0x46, offset 0x1d0{value: 0x0004, lo: 0x01},{value: 0x048b, lo: 0xa9, hi: 0xaa},- // Block 0x47, offset 0x1d0+ // Block 0x47, offset 0x1d2{value: 0x0002, lo: 0x03},{value: 0x0057, lo: 0x80, hi: 0x8f},{value: 0x0083, lo: 0x90, hi: 0xa9},{value: 0x0021, lo: 0xaa, hi: 0xaa},- // Block 0x48, offset 0x1d4+ // Block 0x48, offset 0x1d6{value: 0x0000, lo: 0x01},- {value: 0x2997, lo: 0x8c, hi: 0x8c},- // Block 0x49, offset 0x1d6+ {value: 0x299b, lo: 0x8c, hi: 0x8c},+ // Block 0x49, offset 0x1d8{value: 0x0263, lo: 0x02},- {value: 0x1b88, lo: 0xb4, hi: 0xb4},- {value: 0x1929, lo: 0xb5, hi: 0xb6},- // Block 0x4a, offset 0x1d9+ {value: 0x1b8c, lo: 0xb4, hi: 0xb4},+ {value: 0x192d, lo: 0xb5, hi: 0xb6},+ // Block 0x4a, offset 0x1db{value: 0x0000, lo: 0x01},- {value: 0x456f, lo: 0x9c, hi: 0x9c},- // Block 0x4b, offset 0x1db+ {value: 0x4573, lo: 0x9c, hi: 0x9c},+ // Block 0x4b, offset 0x1dd{value: 0x0000, lo: 0x02},{value: 0x0095, lo: 0xbc, hi: 0xbc},{value: 0x006d, lo: 0xbd, hi: 0xbd},- // Block 0x4c, offset 0x1de+ // Block 0x4c, offset 0x1e0{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xaf, hi: 0xb1},- // Block 0x4d, offset 0x1e0+ // Block 0x4d, offset 0x1e2{value: 0x0000, lo: 0x02},{value: 0x047f, lo: 0xaf, hi: 0xaf},{value: 0x8104, lo: 0xbf, hi: 0xbf},- // Block 0x4e, offset 0x1e3+ // Block 0x4e, offset 0x1e5{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xa0, hi: 0xbf},- // Block 0x4f, offset 0x1e5+ // Block 0x4f, offset 0x1e7{value: 0x0000, lo: 0x01},{value: 0x0dc3, lo: 0x9f, hi: 0x9f},- // Block 0x50, offset 0x1e7+ // Block 0x50, offset 0x1e9{value: 0x0000, lo: 0x01},- {value: 0x162b, lo: 0xb3, hi: 0xb3},- // Block 0x51, offset 0x1e9+ {value: 0x162f, lo: 0xb3, hi: 0xb3},+ // Block 0x51, offset 0x1eb{value: 0x0004, lo: 0x0b},- {value: 0x1593, lo: 0x80, hi: 0x82},- {value: 0x15ab, lo: 0x83, hi: 0x83},- {value: 0x15c3, lo: 0x84, hi: 0x85},- {value: 0x15d3, lo: 0x86, hi: 0x89},- {value: 0x15e7, lo: 0x8a, hi: 0x8c},- {value: 0x15fb, lo: 0x8d, hi: 0x8d},- {value: 0x1603, lo: 0x8e, hi: 0x8e},- {value: 0x160b, lo: 0x8f, hi: 0x90},- {value: 0x1617, lo: 0x91, hi: 0x93},- {value: 0x1627, lo: 0x94, hi: 0x94},- {value: 0x162f, lo: 0x95, hi: 0x95},- // Block 0x52, offset 0x1f5+ {value: 0x1597, lo: 0x80, hi: 0x82},+ {value: 0x15af, lo: 0x83, hi: 0x83},+ {value: 0x15c7, lo: 0x84, hi: 0x85},+ {value: 0x15d7, lo: 0x86, hi: 0x89},+ {value: 0x15eb, lo: 0x8a, hi: 0x8c},+ {value: 0x15ff, lo: 0x8d, hi: 0x8d},+ {value: 0x1607, lo: 0x8e, hi: 0x8e},+ {value: 0x160f, lo: 0x8f, hi: 0x90},+ {value: 0x161b, lo: 0x91, hi: 0x93},+ {value: 0x162b, lo: 0x94, hi: 0x94},+ {value: 0x1633, lo: 0x95, hi: 0x95},+ // Block 0x52, offset 0x1f7{value: 0x0004, lo: 0x09},{value: 0x0001, lo: 0x80, hi: 0x80},{value: 0x812c, lo: 0xaa, hi: 0xaa},@@ -6219,74 +6244,74 @@ var nfkcSparseValues = [861]valueRange{{value: 0x812f, lo: 0xaf, hi: 0xaf},{value: 0x04b3, lo: 0xb6, hi: 0xb6},{value: 0x0887, lo: 0xb8, hi: 0xba},- // Block 0x53, offset 0x1ff+ // Block 0x53, offset 0x201{value: 0x0005, lo: 0x09},{value: 0x0313, lo: 0xb1, hi: 0xb1},{value: 0x0317, lo: 0xb2, hi: 0xb2},- {value: 0x4341, lo: 0xb3, hi: 0xb3},+ {value: 0x4345, lo: 0xb3, hi: 0xb3},{value: 0x031b, lo: 0xb4, hi: 0xb4},- {value: 0x4346, lo: 0xb5, hi: 0xb6},+ {value: 0x434a, lo: 0xb5, hi: 0xb6},{value: 0x031f, lo: 0xb7, hi: 0xb7},{value: 0x0323, lo: 0xb8, hi: 0xb8},{value: 0x0327, lo: 0xb9, hi: 0xb9},- {value: 0x4350, lo: 0xba, hi: 0xbf},- // Block 0x54, offset 0x209+ {value: 0x4354, lo: 0xba, hi: 0xbf},+ // Block 0x54, offset 0x20b{value: 0x0000, lo: 0x02},{value: 0x8132, lo: 0xaf, hi: 0xaf},{value: 0x8132, lo: 0xb4, hi: 0xbd},- // Block 0x55, offset 0x20c+ // Block 0x55, offset 0x20e{value: 0x0000, lo: 0x03},{value: 0x020f, lo: 0x9c, hi: 0x9c},{value: 0x0212, lo: 0x9d, hi: 0x9d},{value: 0x8132, lo: 0x9e, hi: 0x9f},- // Block 0x56, offset 0x210+ // Block 0x56, offset 0x212{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xb0, hi: 0xb1},- // Block 0x57, offset 0x212+ // Block 0x57, offset 0x214{value: 0x0000, lo: 0x01},- {value: 0x1637, lo: 0xb0, hi: 0xb0},- // Block 0x58, offset 0x214+ {value: 0x163b, lo: 0xb0, hi: 0xb0},+ // Block 0x58, offset 0x216{value: 0x000c, lo: 0x01},{value: 0x00d7, lo: 0xb8, hi: 0xb9},- // Block 0x59, offset 0x216+ // Block 0x59, offset 0x218{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0x86, hi: 0x86},- // Block 0x5a, offset 0x218+ // Block 0x5a, offset 0x21a{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x84, hi: 0x84},{value: 0x8132, lo: 0xa0, hi: 0xb1},- // Block 0x5b, offset 0x21b+ // Block 0x5b, offset 0x21d{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0xab, hi: 0xad},- // Block 0x5c, offset 0x21d+ // Block 0x5c, offset 0x21f{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0x93, hi: 0x93},- // Block 0x5d, offset 0x21f+ // Block 0x5d, offset 0x221{value: 0x0000, lo: 0x01},{value: 0x8102, lo: 0xb3, hi: 0xb3},- // Block 0x5e, offset 0x221+ // Block 0x5e, offset 0x223{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0x80, hi: 0x80},- // Block 0x5f, offset 0x223+ // Block 0x5f, offset 0x225{value: 0x0000, lo: 0x05},{value: 0x8132, lo: 0xb0, hi: 0xb0},{value: 0x8132, lo: 0xb2, hi: 0xb3},{value: 0x812d, lo: 0xb4, hi: 0xb4},{value: 0x8132, lo: 0xb7, hi: 0xb8},{value: 0x8132, lo: 0xbe, hi: 0xbf},- // Block 0x60, offset 0x229+ // Block 0x60, offset 0x22b{value: 0x0000, lo: 0x02},{value: 0x8132, lo: 0x81, hi: 0x81},{value: 0x8104, lo: 0xb6, hi: 0xb6},- // Block 0x61, offset 0x22c+ // Block 0x61, offset 0x22e{value: 0x0008, lo: 0x03},- {value: 0x1633, lo: 0x9c, hi: 0x9d},+ {value: 0x1637, lo: 0x9c, hi: 0x9d},{value: 0x0125, lo: 0x9e, hi: 0x9e},- {value: 0x163f, lo: 0x9f, hi: 0x9f},- // Block 0x62, offset 0x230+ {value: 0x1643, lo: 0x9f, hi: 0x9f},+ // Block 0x62, offset 0x232{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0xad, hi: 0xad},- // Block 0x63, offset 0x232+ // Block 0x63, offset 0x234{value: 0x0000, lo: 0x06},{value: 0xe500, lo: 0x80, hi: 0x80},{value: 0xc600, lo: 0x81, hi: 0x9b},@@ -6294,21 +6319,21 @@ var nfkcSparseValues = [861]valueRange{{value: 0xc600, lo: 0x9d, hi: 0xb7},{value: 0xe500, lo: 0xb8, hi: 0xb8},{value: 0xc600, lo: 0xb9, hi: 0xbf},- // Block 0x64, offset 0x239+ // Block 0x64, offset 0x23b{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x93},{value: 0xe500, lo: 0x94, hi: 0x94},{value: 0xc600, lo: 0x95, hi: 0xaf},{value: 0xe500, lo: 0xb0, hi: 0xb0},{value: 0xc600, lo: 0xb1, hi: 0xbf},- // Block 0x65, offset 0x23f+ // Block 0x65, offset 0x241{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x8b},{value: 0xe500, lo: 0x8c, hi: 0x8c},{value: 0xc600, lo: 0x8d, hi: 0xa7},{value: 0xe500, lo: 0xa8, hi: 0xa8},{value: 0xc600, lo: 0xa9, hi: 0xbf},- // Block 0x66, offset 0x245+ // Block 0x66, offset 0x247{value: 0x0000, lo: 0x07},{value: 0xc600, lo: 0x80, hi: 0x83},{value: 0xe500, lo: 0x84, hi: 0x84},@@ -6317,180 +6342,184 @@ var nfkcSparseValues = [861]valueRange{{value: 0xc600, lo: 0xa1, hi: 0xbb},{value: 0xe500, lo: 0xbc, hi: 0xbc},{value: 0xc600, lo: 0xbd, hi: 0xbf},- // Block 0x67, offset 0x24d+ // Block 0x67, offset 0x24f{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x97},{value: 0xe500, lo: 0x98, hi: 0x98},{value: 0xc600, lo: 0x99, hi: 0xb3},{value: 0xe500, lo: 0xb4, hi: 0xb4},{value: 0xc600, lo: 0xb5, hi: 0xbf},- // Block 0x68, offset 0x253+ // Block 0x68, offset 0x255{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x8f},{value: 0xe500, lo: 0x90, hi: 0x90},{value: 0xc600, lo: 0x91, hi: 0xab},{value: 0xe500, lo: 0xac, hi: 0xac},{value: 0xc600, lo: 0xad, hi: 0xbf},- // Block 0x69, offset 0x259+ // Block 0x69, offset 0x25b{value: 0x0000, lo: 0x05},{value: 0xc600, lo: 0x80, hi: 0x87},{value: 0xe500, lo: 0x88, hi: 0x88},{value: 0xc600, lo: 0x89, hi: 0xa3},{value: 0xe500, lo: 0xa4, hi: 0xa4},{value: 0xc600, lo: 0xa5, hi: 0xbf},- // Block 0x6a, offset 0x25f+ // Block 0x6a, offset 0x261{value: 0x0000, lo: 0x03},{value: 0xc600, lo: 0x80, hi: 0x87},{value: 0xe500, lo: 0x88, hi: 0x88},{value: 0xc600, lo: 0x89, hi: 0xa3},- // Block 0x6b, offset 0x263+ // Block 0x6b, offset 0x265{value: 0x0002, lo: 0x01},{value: 0x0003, lo: 0x81, hi: 0xbf},- // Block 0x6c, offset 0x265+ // Block 0x6c, offset 0x267{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0xbd, hi: 0xbd},- // Block 0x6d, offset 0x267+ // Block 0x6d, offset 0x269{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0xa0, hi: 0xa0},- // Block 0x6e, offset 0x269+ // Block 0x6e, offset 0x26b{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xb6, hi: 0xba},- // Block 0x6f, offset 0x26b+ // Block 0x6f, offset 0x26d{value: 0x002c, lo: 0x05},{value: 0x812d, lo: 0x8d, hi: 0x8d},{value: 0x8132, lo: 0x8f, hi: 0x8f},{value: 0x8132, lo: 0xb8, hi: 0xb8},{value: 0x8101, lo: 0xb9, hi: 0xba},{value: 0x8104, lo: 0xbf, hi: 0xbf},- // Block 0x70, offset 0x271+ // Block 0x70, offset 0x273{value: 0x0000, lo: 0x02},{value: 0x8132, lo: 0xa5, hi: 0xa5},{value: 0x812d, lo: 0xa6, hi: 0xa6},- // Block 0x71, offset 0x274+ // Block 0x71, offset 0x276{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x86, hi: 0x86},{value: 0x8104, lo: 0xbf, hi: 0xbf},- // Block 0x72, offset 0x277+ // Block 0x72, offset 0x279{value: 0x17fe, lo: 0x07},{value: 0xa000, lo: 0x99, hi: 0x99},- {value: 0x4234, lo: 0x9a, hi: 0x9a},+ {value: 0x4238, lo: 0x9a, hi: 0x9a},{value: 0xa000, lo: 0x9b, hi: 0x9b},- {value: 0x423e, lo: 0x9c, hi: 0x9c},+ {value: 0x4242, lo: 0x9c, hi: 0x9c},{value: 0xa000, lo: 0xa5, hi: 0xa5},- {value: 0x4248, lo: 0xab, hi: 0xab},+ {value: 0x424c, lo: 0xab, hi: 0xab},{value: 0x8104, lo: 0xb9, hi: 0xba},- // Block 0x73, offset 0x27f+ // Block 0x73, offset 0x281{value: 0x0000, lo: 0x06},{value: 0x8132, lo: 0x80, hi: 0x82},{value: 0x9900, lo: 0xa7, hi: 0xa7},- {value: 0x2d7a, lo: 0xae, hi: 0xae},- {value: 0x2d84, lo: 0xaf, hi: 0xaf},+ {value: 0x2d7e, lo: 0xae, hi: 0xae},+ {value: 0x2d88, lo: 0xaf, hi: 0xaf},{value: 0xa000, lo: 0xb1, hi: 0xb2},{value: 0x8104, lo: 0xb3, hi: 0xb4},- // Block 0x74, offset 0x286+ // Block 0x74, offset 0x288{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x80, hi: 0x80},{value: 0x8102, lo: 0x8a, hi: 0x8a},- // Block 0x75, offset 0x289+ // Block 0x75, offset 0x28b{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0xb5, hi: 0xb5},{value: 0x8102, lo: 0xb6, hi: 0xb6},- // Block 0x76, offset 0x28c+ // Block 0x76, offset 0x28e{value: 0x0002, lo: 0x01},{value: 0x8102, lo: 0xa9, hi: 0xaa},- // Block 0x77, offset 0x28e+ // Block 0x77, offset 0x290{value: 0x0000, lo: 0x07},{value: 0xa000, lo: 0x87, hi: 0x87},- {value: 0x2d8e, lo: 0x8b, hi: 0x8b},- {value: 0x2d98, lo: 0x8c, hi: 0x8c},+ {value: 0x2d92, lo: 0x8b, hi: 0x8b},+ {value: 0x2d9c, lo: 0x8c, hi: 0x8c},{value: 0x8104, lo: 0x8d, hi: 0x8d},{value: 0x9900, lo: 0x97, hi: 0x97},{value: 0x8132, lo: 0xa6, hi: 0xac},{value: 0x8132, lo: 0xb0, hi: 0xb4},- // Block 0x78, offset 0x296- {value: 0x6b5e, lo: 0x06},+ // Block 0x78, offset 0x298+ {value: 0x0000, lo: 0x02},+ {value: 0x8104, lo: 0x82, hi: 0x82},+ {value: 0x8102, lo: 0x86, hi: 0x86},+ // Block 0x79, offset 0x29b+ {value: 0x6b5a, lo: 0x06},{value: 0x9900, lo: 0xb0, hi: 0xb0},{value: 0xa000, lo: 0xb9, hi: 0xb9},{value: 0x9900, lo: 0xba, hi: 0xba},- {value: 0x2dac, lo: 0xbb, hi: 0xbb},- {value: 0x2da2, lo: 0xbc, hi: 0xbd},- {value: 0x2db6, lo: 0xbe, hi: 0xbe},- // Block 0x79, offset 0x29d+ {value: 0x2db0, lo: 0xbb, hi: 0xbb},+ {value: 0x2da6, lo: 0xbc, hi: 0xbd},+ {value: 0x2dba, lo: 0xbe, hi: 0xbe},+ // Block 0x7a, offset 0x2a2{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0x82, hi: 0x82},{value: 0x8102, lo: 0x83, hi: 0x83},- // Block 0x7a, offset 0x2a0+ // Block 0x7b, offset 0x2a5{value: 0x0000, lo: 0x05},{value: 0x9900, lo: 0xaf, hi: 0xaf},{value: 0xa000, lo: 0xb8, hi: 0xb9},- {value: 0x2dc0, lo: 0xba, hi: 0xba},- {value: 0x2dca, lo: 0xbb, hi: 0xbb},+ {value: 0x2dc4, lo: 0xba, hi: 0xba},+ {value: 0x2dce, lo: 0xbb, hi: 0xbb},{value: 0x8104, lo: 0xbf, hi: 0xbf},- // Block 0x7b, offset 0x2a6+ // Block 0x7c, offset 0x2ab{value: 0x0000, lo: 0x01},{value: 0x8102, lo: 0x80, hi: 0x80},- // Block 0x7c, offset 0x2a8+ // Block 0x7d, offset 0x2ad{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0xbf, hi: 0xbf},- // Block 0x7d, offset 0x2aa+ // Block 0x7e, offset 0x2af{value: 0x0000, lo: 0x02},{value: 0x8104, lo: 0xb6, hi: 0xb6},{value: 0x8102, lo: 0xb7, hi: 0xb7},- // Block 0x7e, offset 0x2ad+ // Block 0x7f, offset 0x2b2{value: 0x0000, lo: 0x01},{value: 0x8104, lo: 0xab, hi: 0xab},- // Block 0x7f, offset 0x2af+ // Block 0x80, offset 0x2b4{value: 0x0000, lo: 0x01},{value: 0x8101, lo: 0xb0, hi: 0xb4},- // Block 0x80, offset 0x2b1+ // Block 0x81, offset 0x2b6{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0xb0, hi: 0xb6},- // Block 0x81, offset 0x2b3+ // Block 0x82, offset 0x2b8{value: 0x0000, lo: 0x01},{value: 0x8101, lo: 0x9e, hi: 0x9e},- // Block 0x82, offset 0x2b5+ // Block 0x83, offset 0x2ba{value: 0x0000, lo: 0x0c},- {value: 0x465e, lo: 0x9e, hi: 0x9e},- {value: 0x4668, lo: 0x9f, hi: 0x9f},- {value: 0x469c, lo: 0xa0, hi: 0xa0},- {value: 0x46aa, lo: 0xa1, hi: 0xa1},- {value: 0x46b8, lo: 0xa2, hi: 0xa2},- {value: 0x46c6, lo: 0xa3, hi: 0xa3},- {value: 0x46d4, lo: 0xa4, hi: 0xa4},+ {value: 0x4662, lo: 0x9e, hi: 0x9e},+ {value: 0x466c, lo: 0x9f, hi: 0x9f},+ {value: 0x46a0, lo: 0xa0, hi: 0xa0},+ {value: 0x46ae, lo: 0xa1, hi: 0xa1},+ {value: 0x46bc, lo: 0xa2, hi: 0xa2},+ {value: 0x46ca, lo: 0xa3, hi: 0xa3},+ {value: 0x46d8, lo: 0xa4, hi: 0xa4},{value: 0x812b, lo: 0xa5, hi: 0xa6},{value: 0x8101, lo: 0xa7, hi: 0xa9},{value: 0x8130, lo: 0xad, hi: 0xad},{value: 0x812b, lo: 0xae, hi: 0xb2},{value: 0x812d, lo: 0xbb, hi: 0xbf},- // Block 0x83, offset 0x2c2+ // Block 0x84, offset 0x2c7{value: 0x0000, lo: 0x09},{value: 0x812d, lo: 0x80, hi: 0x82},{value: 0x8132, lo: 0x85, hi: 0x89},{value: 0x812d, lo: 0x8a, hi: 0x8b},{value: 0x8132, lo: 0xaa, hi: 0xad},- {value: 0x4672, lo: 0xbb, hi: 0xbb},- {value: 0x467c, lo: 0xbc, hi: 0xbc},- {value: 0x46e2, lo: 0xbd, hi: 0xbd},- {value: 0x46fe, lo: 0xbe, hi: 0xbe},- {value: 0x46f0, lo: 0xbf, hi: 0xbf},- // Block 0x84, offset 0x2cc+ {value: 0x4676, lo: 0xbb, hi: 0xbb},+ {value: 0x4680, lo: 0xbc, hi: 0xbc},+ {value: 0x46e6, lo: 0xbd, hi: 0xbd},+ {value: 0x4702, lo: 0xbe, hi: 0xbe},+ {value: 0x46f4, lo: 0xbf, hi: 0xbf},+ // Block 0x85, offset 0x2d1{value: 0x0000, lo: 0x01},- {value: 0x470c, lo: 0x80, hi: 0x80},- // Block 0x85, offset 0x2ce+ {value: 0x4710, lo: 0x80, hi: 0x80},+ // Block 0x86, offset 0x2d3{value: 0x0000, lo: 0x01},{value: 0x8132, lo: 0x82, hi: 0x84},- // Block 0x86, offset 0x2d0+ // Block 0x87, offset 0x2d5{value: 0x0002, lo: 0x03},{value: 0x0043, lo: 0x80, hi: 0x99},{value: 0x0083, lo: 0x9a, hi: 0xb3},{value: 0x0043, lo: 0xb4, hi: 0xbf},- // Block 0x87, offset 0x2d4+ // Block 0x88, offset 0x2d9{value: 0x0002, lo: 0x04},{value: 0x005b, lo: 0x80, hi: 0x8d},{value: 0x0083, lo: 0x8e, hi: 0x94},{value: 0x0093, lo: 0x96, hi: 0xa7},{value: 0x0043, lo: 0xa8, hi: 0xbf},- // Block 0x88, offset 0x2d9+ // Block 0x89, offset 0x2de{value: 0x0002, lo: 0x0b},{value: 0x0073, lo: 0x80, hi: 0x81},{value: 0x0083, lo: 0x82, hi: 0x9b},@@ -6503,13 +6532,13 @@ var nfkcSparseValues = [861]valueRange{{value: 0x0083, lo: 0xb6, hi: 0xb9},{value: 0x008d, lo: 0xbb, hi: 0xbb},{value: 0x0091, lo: 0xbd, hi: 0xbf},- // Block 0x89, offset 0x2e5+ // Block 0x8a, offset 0x2ea{value: 0x0002, lo: 0x04},{value: 0x0097, lo: 0x80, hi: 0x83},{value: 0x00a1, lo: 0x85, hi: 0x8f},{value: 0x0043, lo: 0x90, hi: 0xa9},{value: 0x0083, lo: 0xaa, hi: 0xbf},- // Block 0x8a, offset 0x2ea+ // Block 0x8b, offset 0x2ef{value: 0x0002, lo: 0x08},{value: 0x00af, lo: 0x80, hi: 0x83},{value: 0x0043, lo: 0x84, hi: 0x85},@@ -6519,36 +6548,36 @@ var nfkcSparseValues = [861]valueRange{{value: 0x0083, lo: 0x9e, hi: 0xb7},{value: 0x0043, lo: 0xb8, hi: 0xb9},{value: 0x0049, lo: 0xbb, hi: 0xbe},- // Block 0x8b, offset 0x2f3+ // Block 0x8c, offset 0x2f8{value: 0x0002, lo: 0x05},{value: 0x0053, lo: 0x80, hi: 0x84},{value: 0x005f, lo: 0x86, hi: 0x86},{value: 0x0067, lo: 0x8a, hi: 0x90},{value: 0x0083, lo: 0x92, hi: 0xab},{value: 0x0043, lo: 0xac, hi: 0xbf},- // Block 0x8c, offset 0x2f9+ // Block 0x8d, offset 0x2fe{value: 0x0002, lo: 0x04},{value: 0x006b, lo: 0x80, hi: 0x85},{value: 0x0083, lo: 0x86, hi: 0x9f},{value: 0x0043, lo: 0xa0, hi: 0xb9},{value: 0x0083, lo: 0xba, hi: 0xbf},- // Block 0x8d, offset 0x2fe+ // Block 0x8e, offset 0x303{value: 0x0002, lo: 0x03},{value: 0x008f, lo: 0x80, hi: 0x93},{value: 0x0043, lo: 0x94, hi: 0xad},{value: 0x0083, lo: 0xae, hi: 0xbf},- // Block 0x8e, offset 0x302+ // Block 0x8f, offset 0x307{value: 0x0002, lo: 0x04},{value: 0x00a7, lo: 0x80, hi: 0x87},{value: 0x0043, lo: 0x88, hi: 0xa1},{value: 0x0083, lo: 0xa2, hi: 0xbb},{value: 0x0043, lo: 0xbc, hi: 0xbf},- // Block 0x8f, offset 0x307+ // Block 0x90, offset 0x30c{value: 0x0002, lo: 0x03},{value: 0x004b, lo: 0x80, hi: 0x95},{value: 0x0083, lo: 0x96, hi: 0xaf},{value: 0x0043, lo: 0xb0, hi: 0xbf},- // Block 0x90, offset 0x30b+ // Block 0x91, offset 0x310{value: 0x0003, lo: 0x0f},{value: 0x01b8, lo: 0x80, hi: 0x80},{value: 0x045f, lo: 0x81, hi: 0x81},@@ -6565,7 +6594,7 @@ var nfkcSparseValues = [861]valueRange{{value: 0x01a6, lo: 0xb4, hi: 0xba},{value: 0x045f, lo: 0xbb, hi: 0xbb},{value: 0x01bb, lo: 0xbc, hi: 0xbf},- // Block 0x91, offset 0x31b+ // Block 0x92, offset 0x320{value: 0x0003, lo: 0x0d},{value: 0x01c7, lo: 0x80, hi: 0x94},{value: 0x045b, lo: 0x95, hi: 0x95},@@ -6580,7 +6609,7 @@ var nfkcSparseValues = [861]valueRange{{value: 0x01a6, lo: 0xae, hi: 0xb4},{value: 0x045f, lo: 0xb5, hi: 0xb5},{value: 0x01bb, lo: 0xb6, hi: 0xbf},- // Block 0x92, offset 0x329+ // Block 0x93, offset 0x32e{value: 0x0003, lo: 0x0d},{value: 0x01d9, lo: 0x80, hi: 0x8e},{value: 0x045b, lo: 0x8f, hi: 0x8f},@@ -6595,7 +6624,7 @@ var nfkcSparseValues = [861]valueRange{{value: 0x01a6, lo: 0xa8, hi: 0xae},{value: 0x045f, lo: 0xaf, hi: 0xaf},{value: 0x01bb, lo: 0xb0, hi: 0xbf},- // Block 0x93, offset 0x337+ // Block 0x94, offset 0x33c{value: 0x0003, lo: 0x0d},{value: 0x01eb, lo: 0x80, hi: 0x88},{value: 0x045b, lo: 0x89, hi: 0x89},@@ -6610,32 +6639,43 @@ var nfkcSparseValues = [861]valueRange{{value: 0x01a6, lo: 0xa2, hi: 0xa8},{value: 0x045f, lo: 0xa9, hi: 0xa9},{value: 0x01bb, lo: 0xaa, hi: 0xbf},- // Block 0x94, offset 0x345+ // Block 0x95, offset 0x34a+ {value: 0x0000, lo: 0x05},+ {value: 0x8132, lo: 0x80, hi: 0x86},+ {value: 0x8132, lo: 0x88, hi: 0x98},+ {value: 0x8132, lo: 0x9b, hi: 0xa1},+ {value: 0x8132, lo: 0xa3, hi: 0xa4},+ {value: 0x8132, lo: 0xa6, hi: 0xaa},+ // Block 0x96, offset 0x350{value: 0x0000, lo: 0x01},{value: 0x812d, lo: 0x90, hi: 0x96},- // Block 0x95, offset 0x347+ // Block 0x97, offset 0x352+ {value: 0x0000, lo: 0x02},+ {value: 0x8132, lo: 0x84, hi: 0x89},+ {value: 0x8102, lo: 0x8a, hi: 0x8a},+ // Block 0x98, offset 0x355{value: 0x0002, lo: 0x09},{value: 0x0063, lo: 0x80, hi: 0x89},- {value: 0x194d, lo: 0x8a, hi: 0x8a},- {value: 0x197d, lo: 0x8b, hi: 0x8b},- {value: 0x1998, lo: 0x8c, hi: 0x8c},- {value: 0x199e, lo: 0x8d, hi: 0x8d},- {value: 0x1bbc, lo: 0x8e, hi: 0x8e},- {value: 0x19aa, lo: 0x8f, hi: 0x8f},- {value: 0x1977, lo: 0xaa, hi: 0xaa},- {value: 0x197a, lo: 0xab, hi: 0xab},- // Block 0x96, offset 0x351+ {value: 0x1951, lo: 0x8a, hi: 0x8a},+ {value: 0x1981, lo: 0x8b, hi: 0x8b},+ {value: 0x199c, lo: 0x8c, hi: 0x8c},+ {value: 0x19a2, lo: 0x8d, hi: 0x8d},+ {value: 0x1bc0, lo: 0x8e, hi: 0x8e},+ {value: 0x19ae, lo: 0x8f, hi: 0x8f},+ {value: 0x197b, lo: 0xaa, hi: 0xaa},+ {value: 0x197e, lo: 0xab, hi: 0xab},+ // Block 0x99, offset 0x35f{value: 0x0000, lo: 0x01},- {value: 0x193b, lo: 0x90, hi: 0x90},- // Block 0x97, offset 0x353+ {value: 0x193f, lo: 0x90, hi: 0x90},+ // Block 0x9a, offset 0x361{value: 0x0028, lo: 0x09},- {value: 0x285e, lo: 0x80, hi: 0x80},- {value: 0x2822, lo: 0x81, hi: 0x81},- {value: 0x282c, lo: 0x82, hi: 0x82},- {value: 0x2840, lo: 0x83, hi: 0x84},- {value: 0x284a, lo: 0x85, hi: 0x86},- {value: 0x2836, lo: 0x87, hi: 0x87},- {value: 0x2854, lo: 0x88, hi: 0x88},+ {value: 0x2862, lo: 0x80, hi: 0x80},+ {value: 0x2826, lo: 0x81, hi: 0x81},+ {value: 0x2830, lo: 0x82, hi: 0x82},+ {value: 0x2844, lo: 0x83, hi: 0x84},+ {value: 0x284e, lo: 0x85, hi: 0x86},+ {value: 0x283a, lo: 0x87, hi: 0x87},+ {value: 0x2858, lo: 0x88, hi: 0x88},{value: 0x0b6f, lo: 0x90, hi: 0x90},{value: 0x08e7, lo: 0x91, hi: 0x91},}@@ -7584,4 +7624,4 @@ var recompMap = map[uint32]rune{0x15B915AF: 0x115BB,}-// Total size of tables: 53KB (53848 bytes)+// Total size of tables: 53KB (53976 bytes)diff --git a/vendor/google.golang.org/api/AUTHORS b/vendor/google.golang.org/api/AUTHORSnew file mode 100644index 000000000..f73b72574--- /dev/null+++ b/vendor/google.golang.org/api/AUTHORS@@ -0,0 +1,10 @@+# This is the official list of authors for copyright purposes.+# This file is distinct from the CONTRIBUTORS files.+# See the latter for an explanation.++# Names should be added to this file as+# Name or Organization <email address>+# The email address is not required for organizations.++# Please keep the list sorted.+Google Inc.diff --git a/vendor/google.golang.org/api/CONTRIBUTORS b/vendor/google.golang.org/api/CONTRIBUTORSnew file mode 100644index 000000000..e16e530b8--- /dev/null+++ b/vendor/google.golang.org/api/CONTRIBUTORS@@ -0,0 +1,50 @@+# This is the official list of people who can contribute+# (and typically have contributed) code to the repository.+# The AUTHORS file lists the copyright holders; this file+# lists people. For example, Google employees are listed here+# but not in AUTHORS, because Google holds the copyright.+#+# The submission process automatically checks to make sure+# that people submitting code are listed in this file (by email address).+#+# Names should be added to this file only after verifying that+# the individual or the individual's organization has agreed to+# the appropriate Contributor License Agreement, found here:+#+# https://cla.developers.google.com/about/google-individual+# https://cla.developers.google.com/about/google-corporate+#+# The CLA can be filled out on the web:+#+# https://cla.developers.google.com/+#+# When adding J Random Contributor's name to this file,+# either J's name or J's organization's name should be+# added to the AUTHORS file, depending on whether the+# individual or corporate CLA was used.++# Names should be added to this file like so:+# Name <email address>+#+# An entry with two email addresses specifies that the+# first address should be used in the submit logs and+# that the second address should be recognized as the+# same person when interacting with Rietveld.++# Please keep the list sorted.++Alain Vongsouvanhalainv <[email protected]>+Andrew Gerrand <[email protected]>+Brad Fitzpatrick <[email protected]>+Eric Koleda <[email protected]>+Francesc Campoy <[email protected]>+Garrick Evans <[email protected]>+Glenn Lewis <[email protected]>+Ivan Krasin <[email protected]>+Jason Hall <[email protected]>+Johan Euphrosine <[email protected]>+Kostik Shtoyk <[email protected]>+Michael McGreevy <[email protected]>+Nick Craig-Wood <[email protected]>+Scott Van Woudenberg <[email protected]>+Takashi Matsuo <[email protected]>diff --git a/vendor/google.golang.org/api/drive/v2/drive-api.json b/vendor/google.golang.org/api/drive/v2/drive-api.jsonindex 80fc16c05..081433416 100644--- a/vendor/google.golang.org/api/drive/v2/drive-api.json+++ b/vendor/google.golang.org/api/drive/v2/drive-api.json@@ -1,11 +1,11 @@{"kind": "discovery#restDescription",- "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/Bxo7TXXOxzhoC81JSCcKcp551FA\"",+ "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/Q3Kd6t_wsQx8lVoiuJLagBsP-sc\"","discoveryVersion": "v1","id": "drive:v2","name": "drive","version": "v2",- "revision": "20161018",+ "revision": "20161103","title": "Drive API","description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.","ownerDomain": "google.com",@@ -1119,6 +1119,10 @@"type": "boolean","description": "Deprecated."},+ "modified": {+ "type": "boolean",+ "description": "Whether the file has been modified by this user."+ },"restricted": {"type": "boolean","description": "Whether viewers and commenters are prevented from downloading, printing, and copying this file."@@ -4246,8 +4250,10 @@"maxResults": {"type": "integer","description": "Maximum number of revisions to return.",+ "default": "200","format": "int32","minimum": "1",+ "maximum": "1000","location": "query"},"pageToken": {diff --git a/vendor/google.golang.org/api/drive/v2/drive-gen.go b/vendor/google.golang.org/api/drive/v2/drive-gen.goindex 38e664c1b..7402eea4c 100644--- a/vendor/google.golang.org/api/drive/v2/drive-gen.go+++ b/vendor/google.golang.org/api/drive/v2/drive-gen.go@@ -1733,6 +1733,9 @@ type FileLabels struct {// Hidden: Deprecated.Hidden bool `json:"hidden,omitempty"`+ // Modified: Whether the file has been modified by this user.+ Modified bool `json:"modified,omitempty"`+// Restricted: Whether viewers and commenters are prevented from// downloading, printing, and copying this file.Restricted bool `json:"restricted,omitempty"`@@ -2505,6 +2508,7 @@ type AboutGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets the information about the current user along with Drive API@@ -2566,8 +2570,20 @@ func (c *AboutGetCall) Context(ctx context.Context) *AboutGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *AboutGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -2668,6 +2684,7 @@ type AppsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a specific app.@@ -2703,8 +2720,20 @@ func (c *AppsGetCall) Context(ctx context.Context) *AppsGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *AppsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -2797,6 +2826,7 @@ type AppsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists a user's installed apps.@@ -2861,8 +2891,20 @@ func (c *AppsListCall) Context(ctx context.Context) *AppsListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *AppsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *AppsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -2955,6 +2997,7 @@ type ChangesGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a specific change.@@ -2990,8 +3033,20 @@ func (c *ChangesGetCall) Context(ctx context.Context) *ChangesGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ChangesGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -3085,6 +3140,7 @@ type ChangesListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists the changes for a user.@@ -3164,8 +3220,20 @@ func (c *ChangesListCall) Context(ctx context.Context) *ChangesListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ChangesListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -3305,6 +3373,7 @@ type ChangesWatchCall struct {channel *ChannelurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Watch: Subscribe to changes for a user.@@ -3375,8 +3444,20 @@ func (c *ChangesWatchCall) Context(ctx context.Context) *ChangesWatchCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ChangesWatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.channel)@@ -3501,6 +3582,7 @@ type ChannelsStopCall struct {channel *ChannelurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Stop: Stop watching resources through this channel@@ -3526,8 +3608,20 @@ func (c *ChannelsStopCall) Context(ctx context.Context) *ChannelsStopCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ChannelsStopCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.channel)@@ -3586,6 +3680,7 @@ type ChildrenDeleteCall struct {childId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Removes a child from a folder.@@ -3612,8 +3707,20 @@ func (c *ChildrenDeleteCall) Context(ctx context.Context) *ChildrenDeleteCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ChildrenDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ChildrenDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -3680,6 +3787,7 @@ type ChildrenGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a specific child reference.@@ -3716,8 +3824,20 @@ func (c *ChildrenGetCall) Context(ctx context.Context) *ChildrenGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ChildrenGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ChildrenGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -3819,6 +3939,7 @@ type ChildrenInsertCall struct {childreference *ChildReferenceurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Inserts a file into a folder.@@ -3845,8 +3966,20 @@ func (c *ChildrenInsertCall) Context(ctx context.Context) *ChildrenInsertCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ChildrenInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ChildrenInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.childreference)@@ -3941,6 +4074,7 @@ type ChildrenListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists a folder's children.@@ -4011,8 +4145,20 @@ func (c *ChildrenListCall) Context(ctx context.Context) *ChildrenListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ChildrenListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ChildrenListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -4150,6 +4296,7 @@ type CommentsDeleteCall struct {commentId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Deletes a comment.@@ -4176,8 +4323,20 @@ func (c *CommentsDeleteCall) Context(ctx context.Context) *CommentsDeleteCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *CommentsDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -4244,6 +4403,7 @@ type CommentsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a comment by ID.@@ -4288,8 +4448,20 @@ func (c *CommentsGetCall) Context(ctx context.Context) *CommentsGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *CommentsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -4393,6 +4565,7 @@ type CommentsInsertCall struct {comment *CommenturlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Creates a new comment on the given file.@@ -4419,8 +4592,20 @@ func (c *CommentsInsertCall) Context(ctx context.Context) *CommentsInsertCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *CommentsInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *CommentsInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.comment)@@ -4514,6 +4699,7 @@ type CommentsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists a file's comments.@@ -4581,8 +4767,20 @@ func (c *CommentsListCall) Context(ctx context.Context) *CommentsListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *CommentsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -4719,6 +4917,7 @@ type CommentsPatchCall struct {comment *CommenturlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates an existing comment. This method supports patch@@ -4747,8 +4946,20 @@ func (c *CommentsPatchCall) Context(ctx context.Context) *CommentsPatchCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *CommentsPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *CommentsPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.comment)@@ -4851,6 +5062,7 @@ type CommentsUpdateCall struct {comment *CommenturlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates an existing comment.@@ -4878,8 +5090,20 @@ func (c *CommentsUpdateCall) Context(ctx context.Context) *CommentsUpdateCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *CommentsUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.comment)@@ -4981,6 +5205,7 @@ type FilesCopyCall struct {file *FileurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Copy: Creates a copy of the specified file.@@ -5063,8 +5288,20 @@ func (c *FilesCopyCall) Context(ctx context.Context) *FilesCopyCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesCopyCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.file)@@ -5207,6 +5444,7 @@ type FilesDeleteCall struct {fileId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Permanently deletes a file by ID. Skips the trash. The@@ -5233,8 +5471,20 @@ func (c *FilesDeleteCall) Context(ctx context.Context) *FilesDeleteCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -5291,6 +5541,7 @@ type FilesEmptyTrashCall struct {s *ServiceurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// EmptyTrash: Permanently deletes all of the user's trashed files.@@ -5315,8 +5566,20 @@ func (c *FilesEmptyTrashCall) Context(ctx context.Context) *FilesEmptyTrashCallreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesEmptyTrashCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -5359,6 +5622,7 @@ type FilesExportCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Export: Exports a Google Doc to the requested MIME type and returns@@ -5396,8 +5660,20 @@ func (c *FilesExportCall) Context(ctx context.Context) *FilesExportCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesExportCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -5482,6 +5758,7 @@ type FilesGenerateIdsCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// GenerateIds: Generates a set of file IDs which can be provided in@@ -5532,8 +5809,20 @@ func (c *FilesGenerateIdsCall) Context(ctx context.Context) *FilesGenerateIdsCalreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesGenerateIdsCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -5626,6 +5915,7 @@ type FilesGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a file's metadata by ID.@@ -5696,8 +5986,20 @@ func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -5844,6 +6146,7 @@ type FilesInsertCall struct {mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.progressUpdater_ googleapi.ProgressUpdaterctx_ context.Context+ header_ http.Header}// Insert: Insert a new file.@@ -5980,8 +6283,20 @@ func (c *FilesInsertCall) Context(ctx context.Context) *FilesInsertCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.file)@@ -6183,6 +6498,7 @@ type FilesListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists the user's files.@@ -6281,8 +6597,20 @@ func (c *FilesListCall) Context(ctx context.Context) *FilesListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -6440,6 +6768,7 @@ type FilesPatchCall struct {file *FileurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates file metadata and/or content. This method supports@@ -6578,8 +6907,20 @@ func (c *FilesPatchCall) Context(ctx context.Context) *FilesPatchCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.file)@@ -6764,6 +7105,7 @@ type FilesTouchCall struct {fileId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Touch: Set the file's updated time to the current server time.@@ -6789,8 +7131,20 @@ func (c *FilesTouchCall) Context(ctx context.Context) *FilesTouchCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesTouchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesTouchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -6878,6 +7232,7 @@ type FilesTrashCall struct {fileId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Trash: Moves a file to the trash. The currently authenticated user@@ -6904,8 +7259,20 @@ func (c *FilesTrashCall) Context(ctx context.Context) *FilesTrashCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesTrashCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesTrashCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -6992,6 +7359,7 @@ type FilesUntrashCall struct {fileId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Untrash: Restores a file from the trash.@@ -7017,8 +7385,20 @@ func (c *FilesUntrashCall) Context(ctx context.Context) *FilesUntrashCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesUntrashCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesUntrashCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -7111,6 +7491,7 @@ type FilesUpdateCall struct {mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.progressUpdater_ googleapi.ProgressUpdaterctx_ context.Context+ header_ http.Header}// Update: Updates file metadata and/or content.@@ -7296,8 +7677,20 @@ func (c *FilesUpdateCall) Context(ctx context.Context) *FilesUpdateCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.file)@@ -7548,6 +7941,7 @@ type FilesWatchCall struct {channel *ChannelurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Watch: Subscribe to changes on a file@@ -7609,8 +8003,20 @@ func (c *FilesWatchCall) Context(ctx context.Context) *FilesWatchCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *FilesWatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.channel)@@ -7759,6 +8165,7 @@ type ParentsDeleteCall struct {parentId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Removes a parent from a file.@@ -7785,8 +8192,20 @@ func (c *ParentsDeleteCall) Context(ctx context.Context) *ParentsDeleteCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ParentsDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ParentsDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -7853,6 +8272,7 @@ type ParentsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a specific parent reference.@@ -7889,8 +8309,20 @@ func (c *ParentsGetCall) Context(ctx context.Context) *ParentsGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ParentsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ParentsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -7992,6 +8424,7 @@ type ParentsInsertCall struct {parentreference *ParentReferenceurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Adds a parent folder for a file.@@ -8018,8 +8451,20 @@ func (c *ParentsInsertCall) Context(ctx context.Context) *ParentsInsertCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ParentsInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ParentsInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.parentreference)@@ -8114,6 +8559,7 @@ type ParentsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists a file's parents.@@ -8149,8 +8595,20 @@ func (c *ParentsListCall) Context(ctx context.Context) *ParentsListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ParentsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ParentsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -8244,6 +8702,7 @@ type PermissionsDeleteCall struct {permissionId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Deletes a permission from a file.@@ -8270,8 +8729,20 @@ func (c *PermissionsDeleteCall) Context(ctx context.Context) *PermissionsDeleteCreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PermissionsDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -8338,6 +8809,7 @@ type PermissionsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a permission by ID.@@ -8374,8 +8846,20 @@ func (c *PermissionsGetCall) Context(ctx context.Context) *PermissionsGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PermissionsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -8476,6 +8960,7 @@ type PermissionsGetIdForEmailCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// GetIdForEmail: Returns the permission ID for an email address.@@ -8511,8 +8996,20 @@ func (c *PermissionsGetIdForEmailCall) Context(ctx context.Context) *Permissionsreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PermissionsGetIdForEmailCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PermissionsGetIdForEmailCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -8607,6 +9104,7 @@ type PermissionsInsertCall struct {permission *PermissionurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Inserts a permission for a file.@@ -8649,8 +9147,20 @@ func (c *PermissionsInsertCall) Context(ctx context.Context) *PermissionsInsertCreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PermissionsInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PermissionsInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.permission)@@ -8755,6 +9265,7 @@ type PermissionsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists a file's permissions.@@ -8790,8 +9301,20 @@ func (c *PermissionsListCall) Context(ctx context.Context) *PermissionsListCallreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PermissionsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -8885,6 +9408,7 @@ type PermissionsPatchCall struct {permission *PermissionurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates a permission using patch semantics.@@ -8927,8 +9451,20 @@ func (c *PermissionsPatchCall) Context(ctx context.Context) *PermissionsPatchCalreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PermissionsPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PermissionsPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.permission)@@ -9043,6 +9579,7 @@ type PermissionsUpdateCall struct {permission *PermissionurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates a permission.@@ -9085,8 +9622,20 @@ func (c *PermissionsUpdateCall) Context(ctx context.Context) *PermissionsUpdateCreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PermissionsUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.permission)@@ -9200,6 +9749,7 @@ type PropertiesDeleteCall struct {propertyKey stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Deletes a property.@@ -9233,8 +9783,20 @@ func (c *PropertiesDeleteCall) Context(ctx context.Context) *PropertiesDeleteCalreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PropertiesDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -9309,6 +9871,7 @@ type PropertiesGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a property by its key.@@ -9352,8 +9915,20 @@ func (c *PropertiesGetCall) Context(ctx context.Context) *PropertiesGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PropertiesGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -9461,6 +10036,7 @@ type PropertiesInsertCall struct {property *PropertyurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Adds a property to a file, or updates it if it already@@ -9488,8 +10064,20 @@ func (c *PropertiesInsertCall) Context(ctx context.Context) *PropertiesInsertCalreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PropertiesInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PropertiesInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.property)@@ -9585,6 +10173,7 @@ type PropertiesListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists a file's properties.@@ -9620,8 +10209,20 @@ func (c *PropertiesListCall) Context(ctx context.Context) *PropertiesListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PropertiesListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -9716,6 +10317,7 @@ type PropertiesPatchCall struct {property *PropertyurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates a property, or adds it if it doesn't exist. This@@ -9751,8 +10353,20 @@ func (c *PropertiesPatchCall) Context(ctx context.Context) *PropertiesPatchCallreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PropertiesPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.property)@@ -9863,6 +10477,7 @@ type PropertiesUpdateCall struct {property *PropertyurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates a property, or adds it if it doesn't exist.@@ -9897,8 +10512,20 @@ func (c *PropertiesUpdateCall) Context(ctx context.Context) *PropertiesUpdateCalreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *PropertiesUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *PropertiesUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.property)@@ -10008,6 +10635,7 @@ type RealtimeGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Exports the contents of the Realtime API data model associated@@ -10053,8 +10681,20 @@ func (c *RealtimeGetCall) Context(ctx context.Context) *RealtimeGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RealtimeGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RealtimeGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -10144,6 +10784,7 @@ type RealtimeUpdateCall struct {mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.progressUpdater_ googleapi.ProgressUpdaterctx_ context.Context+ header_ http.Header}// Update: Overwrites the Realtime API data model associated with this@@ -10229,8 +10870,20 @@ func (c *RealtimeUpdateCall) Context(ctx context.Context) *RealtimeUpdateCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RealtimeUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RealtimeUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -10359,6 +11012,7 @@ type RepliesDeleteCall struct {replyId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Deletes a reply.@@ -10386,8 +11040,20 @@ func (c *RepliesDeleteCall) Context(ctx context.Context) *RepliesDeleteCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RepliesDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -10463,6 +11129,7 @@ type RepliesGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a reply.@@ -10507,8 +11174,20 @@ func (c *RepliesGetCall) Context(ctx context.Context) *RepliesGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RepliesGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -10621,6 +11300,7 @@ type RepliesInsertCall struct {commentreply *CommentReplyurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Creates a new reply to the given comment.@@ -10648,8 +11328,20 @@ func (c *RepliesInsertCall) Context(ctx context.Context) *RepliesInsertCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RepliesInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RepliesInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.commentreply)@@ -10752,6 +11444,7 @@ type RepliesListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists all of the replies to a comment.@@ -10812,8 +11505,20 @@ func (c *RepliesListCall) Context(ctx context.Context) *RepliesListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RepliesListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -10954,6 +11659,7 @@ type RepliesPatchCall struct {commentreply *CommentReplyurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates an existing reply. This method supports patch@@ -10983,8 +11689,20 @@ func (c *RepliesPatchCall) Context(ctx context.Context) *RepliesPatchCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RepliesPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RepliesPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.commentreply)@@ -11096,6 +11814,7 @@ type RepliesUpdateCall struct {commentreply *CommentReplyurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates an existing reply.@@ -11124,8 +11843,20 @@ func (c *RepliesUpdateCall) Context(ctx context.Context) *RepliesUpdateCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RepliesUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.commentreply)@@ -11235,6 +11966,7 @@ type RevisionsDeleteCall struct {revisionId stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Removes a revision.@@ -11261,8 +11993,20 @@ func (c *RevisionsDeleteCall) Context(ctx context.Context) *RevisionsDeleteCallreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RevisionsDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -11330,6 +12074,7 @@ type RevisionsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Gets a specific revision.@@ -11366,8 +12111,20 @@ func (c *RevisionsGetCall) Context(ctx context.Context) *RevisionsGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RevisionsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -11469,6 +12226,7 @@ type RevisionsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Lists a file's revisions.@@ -11519,8 +12277,20 @@ func (c *RevisionsListCall) Context(ctx context.Context) *RevisionsListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RevisionsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -11589,9 +12359,11 @@ func (c *RevisionsListCall) Do(opts ...googleapi.CallOption) (*RevisionList, err// "type": "string"// },// "maxResults": {+ // "default": "200",// "description": "Maximum number of revisions to return.",// "format": "int32",// "location": "query",+ // "maximum": "1000",// "minimum": "1",// "type": "integer"// },@@ -11648,6 +12420,7 @@ type RevisionsPatchCall struct {revision *RevisionurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates a revision. This method supports patch semantics.@@ -11675,8 +12448,20 @@ func (c *RevisionsPatchCall) Context(ctx context.Context) *RevisionsPatchCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RevisionsPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RevisionsPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.revision)@@ -11780,6 +12565,7 @@ type RevisionsUpdateCall struct {revision *RevisionurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates a revision.@@ -11807,8 +12593,20 @@ func (c *RevisionsUpdateCall) Context(ctx context.Context) *RevisionsUpdateCallreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *RevisionsUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.revision)diff --git a/vendor/google.golang.org/api/gensupport/resumable.go b/vendor/google.golang.org/api/gensupport/resumable.goindex 695e365a1..dcd591f7f 100644--- a/vendor/google.golang.org/api/gensupport/resumable.go+++ b/vendor/google.golang.org/api/gensupport/resumable.go@@ -5,6 +5,7 @@package gensupportimport (+ "errors""fmt""io""net/http"@@ -15,10 +16,6 @@ import ()const (- // statusResumeIncomplete is the code returned by the Google uploader- // when the transfer is not yet complete.- statusResumeIncomplete = 308-// statusTooManyRequests is returned by the storage API if the// per-project limits have been temporarily exceeded. The request// should be retried.@@ -79,8 +76,23 @@ func (rx *ResumableUpload) doUploadRequest(ctx context.Context, data io.Reader,req.Header.Set("Content-Range", contentRange)req.Header.Set("Content-Type", rx.MediaType)req.Header.Set("User-Agent", rx.UserAgent)++ // Google's upload endpoint uses status code 308 for a+ // different purpose than the "308 Permanent Redirect"+ // since-standardized in RFC 7238. Because of the conflict in+ // semantics, Google added this new request header which+ // causes it to not use "308" and instead reply with 200 OK+ // and sets the upload-specific "X-HTTP-Status-Code-Override:+ // 308" response header.+ req.Header.Set("X-GUploader-No-308", "yes")+return SendRequest(ctx, rx.Client, req)+}+func statusResumeIncomplete(resp *http.Response) bool {+ // This is how the server signals "status resume incomplete"+ // when X-GUploader-No-308 is set to "yes":+ return resp != nil && resp.Header.Get("X-Http-Status-Code-Override") == "308"}// reportProgress calls a user-supplied callback to report upload progress.@@ -111,11 +123,17 @@ func (rx *ResumableUpload) transferChunk(ctx context.Context) (*http.Response, ereturn res, err}- if res.StatusCode == statusResumeIncomplete || res.StatusCode == http.StatusOK {+ // We sent "X-GUploader-No-308: yes" (see comment elsewhere in+ // this file), so we don't expect to get a 308.+ if res.StatusCode == 308 {+ return nil, errors.New("unexpected 308 response status code")+ }++ if res.StatusCode == http.StatusOK {rx.reportProgress(off, off+int64(size))}- if res.StatusCode == statusResumeIncomplete {+ if statusResumeIncomplete(res) {rx.Media.Next()}return res, nil@@ -177,7 +195,7 @@ func (rx *ResumableUpload) Upload(ctx context.Context) (resp *http.Response, err// If the chunk was uploaded successfully, but there's still// more to go, upload the next chunk without any delay.- if status == statusResumeIncomplete {+ if statusResumeIncomplete(resp) {pause = 0backoff.Reset()resp.Body.Close()diff --git a/vendor/google.golang.org/api/gensupport/retry.go b/vendor/google.golang.org/api/gensupport/retry.goindex 7f83d1da9..9023368ac 100644--- a/vendor/google.golang.org/api/gensupport/retry.go+++ b/vendor/google.golang.org/api/gensupport/retry.go@@ -55,23 +55,17 @@ func DefaultBackoffStrategy() BackoffStrategy {// shouldRetry returns true if the HTTP response / error indicates that the// request should be attempted again.func shouldRetry(status int, err error) bool {- // Retry for 5xx response codes.- if 500 <= status && status < 600 {+ if 500 <= status && status <= 599 {return true}-- // Retry on statusTooManyRequests{if status == statusTooManyRequests {return true}-- // Retry on unexpected EOFs and temporary network errors.if err == io.ErrUnexpectedEOF {return true}if err, ok := err.(net.Error); ok {return err.Temporary()}-return false}diff --git a/vendor/google.golang.org/api/storage/v1/storage-gen.go b/vendor/google.golang.org/api/storage/v1/storage-gen.goindex da5ef5ff1..67cd3ba09 100644--- a/vendor/google.golang.org/api/storage/v1/storage-gen.go+++ b/vendor/google.golang.org/api/storage/v1/storage-gen.go@@ -1390,6 +1390,7 @@ type BucketAccessControlsDeleteCall struct {entity stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Permanently deletes the ACL entry for the specified entity on@@ -1417,8 +1418,20 @@ func (c *BucketAccessControlsDeleteCall) Context(ctx context.Context) *BucketAccreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketAccessControlsDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -1485,6 +1498,7 @@ type BucketAccessControlsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Returns the ACL entry for the specified entity on the specified@@ -1522,8 +1536,20 @@ func (c *BucketAccessControlsGetCall) Context(ctx context.Context) *BucketAccessreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketAccessControlsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -1620,6 +1646,7 @@ type BucketAccessControlsInsertCall struct {bucketaccesscontrol *BucketAccessControlurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Creates a new ACL entry on the specified bucket.@@ -1646,8 +1673,20 @@ func (c *BucketAccessControlsInsertCall) Context(ctx context.Context) *BucketAccreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketAccessControlsInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.bucketaccesscontrol)@@ -1741,6 +1780,7 @@ type BucketAccessControlsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Retrieves ACL entries on the specified bucket.@@ -1776,8 +1816,20 @@ func (c *BucketAccessControlsListCall) Context(ctx context.Context) *BucketAccesreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketAccessControlsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -1867,6 +1919,7 @@ type BucketAccessControlsPatchCall struct {bucketaccesscontrol *BucketAccessControlurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates an ACL entry on the specified bucket. This method@@ -1895,8 +1948,20 @@ func (c *BucketAccessControlsPatchCall) Context(ctx context.Context) *BucketAccereturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketAccessControlsPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.bucketaccesscontrol)@@ -1999,6 +2064,7 @@ type BucketAccessControlsUpdateCall struct {bucketaccesscontrol *BucketAccessControlurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates an ACL entry on the specified bucket.@@ -2026,8 +2092,20 @@ func (c *BucketAccessControlsUpdateCall) Context(ctx context.Context) *BucketAccreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketAccessControlsUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.bucketaccesscontrol)@@ -2128,6 +2206,7 @@ type BucketsDeleteCall struct {bucket stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Permanently deletes an empty bucket.@@ -2169,8 +2248,20 @@ func (c *BucketsDeleteCall) Context(ctx context.Context) *BucketsDeleteCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketsDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -2241,6 +2332,7 @@ type BucketsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Returns metadata for the specified bucket.@@ -2305,8 +2397,20 @@ func (c *BucketsGetCall) Context(ctx context.Context) *BucketsGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -2422,6 +2526,7 @@ type BucketsInsertCall struct {bucket *BucketurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Creates a new bucket.@@ -2500,8 +2605,20 @@ func (c *BucketsInsertCall) Context(ctx context.Context) *BucketsInsertCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketsInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.bucket)@@ -2645,6 +2762,7 @@ type BucketsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Retrieves a list of buckets for a given project.@@ -2713,8 +2831,20 @@ func (c *BucketsListCall) Context(ctx context.Context) *BucketsListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -2854,6 +2984,7 @@ type BucketsPatchCall struct {bucket2 *BucketurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates a bucket. Changes to the bucket will be readable@@ -2950,8 +3081,20 @@ func (c *BucketsPatchCall) Context(ctx context.Context) *BucketsPatchCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketsPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.bucket2)@@ -3110,6 +3253,7 @@ type BucketsUpdateCall struct {bucket2 *BucketurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates a bucket. Changes to the bucket will be readable@@ -3206,8 +3350,20 @@ func (c *BucketsUpdateCall) Context(ctx context.Context) *BucketsUpdateCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *BucketsUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.bucket2)@@ -3365,6 +3521,7 @@ type ChannelsStopCall struct {channel *ChannelurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Stop: Stop watching resources through this channel@@ -3390,8 +3547,20 @@ func (c *ChannelsStopCall) Context(ctx context.Context) *ChannelsStopCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ChannelsStopCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.channel)@@ -3447,6 +3616,7 @@ type DefaultObjectAccessControlsDeleteCall struct {entity stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Permanently deletes the default object ACL entry for the@@ -3474,8 +3644,20 @@ func (c *DefaultObjectAccessControlsDeleteCall) Context(ctx context.Context) *Dereturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *DefaultObjectAccessControlsDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -3542,6 +3724,7 @@ type DefaultObjectAccessControlsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Returns the default object ACL entry for the specified entity on@@ -3579,8 +3762,20 @@ func (c *DefaultObjectAccessControlsGetCall) Context(ctx context.Context) *Defaureturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *DefaultObjectAccessControlsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -3677,6 +3872,7 @@ type DefaultObjectAccessControlsInsertCall struct {objectaccesscontrol *ObjectAccessControlurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Creates a new default object ACL entry on the specified@@ -3704,8 +3900,20 @@ func (c *DefaultObjectAccessControlsInsertCall) Context(ctx context.Context) *Dereturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *DefaultObjectAccessControlsInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol)@@ -3799,6 +4007,7 @@ type DefaultObjectAccessControlsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Retrieves default object ACL entries on the specified bucket.@@ -3851,8 +4060,20 @@ func (c *DefaultObjectAccessControlsListCall) Context(ctx context.Context) *Defareturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *DefaultObjectAccessControlsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -3954,6 +4175,7 @@ type DefaultObjectAccessControlsPatchCall struct {objectaccesscontrol *ObjectAccessControlurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates a default object ACL entry on the specified bucket.@@ -3982,8 +4204,20 @@ func (c *DefaultObjectAccessControlsPatchCall) Context(ctx context.Context) *Defreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *DefaultObjectAccessControlsPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol)@@ -4086,6 +4320,7 @@ type DefaultObjectAccessControlsUpdateCall struct {objectaccesscontrol *ObjectAccessControlurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates a default object ACL entry on the specified bucket.@@ -4113,8 +4348,20 @@ func (c *DefaultObjectAccessControlsUpdateCall) Context(ctx context.Context) *Dereturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *DefaultObjectAccessControlsUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol)@@ -4217,6 +4464,7 @@ type ObjectAccessControlsDeleteCall struct {entity stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Permanently deletes the ACL entry for the specified entity on@@ -4253,8 +4501,20 @@ func (c *ObjectAccessControlsDeleteCall) Context(ctx context.Context) *ObjectAccreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectAccessControlsDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -4336,6 +4596,7 @@ type ObjectAccessControlsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Returns the ACL entry for the specified entity on the specified@@ -4382,8 +4643,20 @@ func (c *ObjectAccessControlsGetCall) Context(ctx context.Context) *ObjectAccessreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectAccessControlsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -4495,6 +4768,7 @@ type ObjectAccessControlsInsertCall struct {objectaccesscontrol *ObjectAccessControlurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Insert: Creates a new ACL entry on the specified object.@@ -4530,8 +4804,20 @@ func (c *ObjectAccessControlsInsertCall) Context(ctx context.Context) *ObjectAccreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectAccessControlsInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol)@@ -4640,6 +4926,7 @@ type ObjectAccessControlsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Retrieves ACL entries on the specified object.@@ -4684,8 +4971,20 @@ func (c *ObjectAccessControlsListCall) Context(ctx context.Context) *ObjectAccesreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectAccessControlsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -4790,6 +5089,7 @@ type ObjectAccessControlsPatchCall struct {objectaccesscontrol *ObjectAccessControlurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates an ACL entry on the specified object. This method@@ -4827,8 +5127,20 @@ func (c *ObjectAccessControlsPatchCall) Context(ctx context.Context) *ObjectAccereturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectAccessControlsPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol)@@ -4946,6 +5258,7 @@ type ObjectAccessControlsUpdateCall struct {objectaccesscontrol *ObjectAccessControlurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates an ACL entry on the specified object.@@ -4982,8 +5295,20 @@ func (c *ObjectAccessControlsUpdateCall) Context(ctx context.Context) *ObjectAccreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectAccessControlsUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol)@@ -5100,6 +5425,7 @@ type ObjectsComposeCall struct {composerequest *ComposeRequesturlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Compose: Concatenates a list of existing objects into a new object in@@ -5165,8 +5491,20 @@ func (c *ObjectsComposeCall) Context(ctx context.Context) *ObjectsComposeCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsComposeCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.composerequest)@@ -5323,6 +5661,7 @@ type ObjectsCopyCall struct {object *ObjecturlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Copy: Copies a source object to a destination object. Optionally@@ -5464,8 +5803,20 @@ func (c *ObjectsCopyCall) Context(ctx context.Context) *ObjectsCopyCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsCopyCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.object)@@ -5690,6 +6041,7 @@ type ObjectsDeleteCall struct {object stringurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Delete: Deletes an object and its metadata. Deletions are permanent@@ -5759,8 +6111,20 @@ func (c *ObjectsDeleteCall) Context(ctx context.Context) *ObjectsDeleteCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsDeleteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilc.urlParams_.Set("alt", alt)@@ -5858,6 +6222,7 @@ type ObjectsGetCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// Get: Retrieves an object or its metadata.@@ -5946,8 +6311,20 @@ func (c *ObjectsGetCall) Context(ctx context.Context) *ObjectsGetCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsGetCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -6113,6 +6490,7 @@ type ObjectsInsertCall struct {mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.progressUpdater_ googleapi.ProgressUpdaterctx_ context.Context+ header_ http.Header}// Insert: Stores a new object and metadata.@@ -6275,8 +6653,20 @@ func (c *ObjectsInsertCall) Context(ctx context.Context) *ObjectsInsertCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsInsertCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.object)@@ -6505,6 +6895,7 @@ type ObjectsListCall struct {urlParams_ gensupport.URLParamsifNoneMatch_ stringctx_ context.Context+ header_ http.Header}// List: Retrieves a list of objects matching the criteria.@@ -6594,8 +6985,20 @@ func (c *ObjectsListCall) Context(ctx context.Context) *ObjectsListCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsListCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())if c.ifNoneMatch_ != "" {reqHeaders.Set("If-None-Match", c.ifNoneMatch_)@@ -6750,6 +7153,7 @@ type ObjectsPatchCall struct {object2 *ObjecturlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Patch: Updates an object's metadata. This method supports patch@@ -6850,8 +7254,20 @@ func (c *ObjectsPatchCall) Context(ctx context.Context) *ObjectsPatchCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsPatchCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.object2)@@ -7020,6 +7436,7 @@ type ObjectsRewriteCall struct {object *ObjecturlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Rewrite: Rewrites a source object to a destination object. Optionally@@ -7186,8 +7603,20 @@ func (c *ObjectsRewriteCall) Context(ctx context.Context) *ObjectsRewriteCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsRewriteCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsRewriteCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.object)@@ -7406,6 +7835,7 @@ type ObjectsUpdateCall struct {object2 *ObjecturlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// Update: Updates an object's metadata.@@ -7505,8 +7935,20 @@ func (c *ObjectsUpdateCall) Context(ctx context.Context) *ObjectsUpdateCall {return c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsUpdateCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.object2)@@ -7690,6 +8132,7 @@ type ObjectsWatchAllCall struct {channel *ChannelurlParams_ gensupport.URLParamsctx_ context.Context+ header_ http.Header}// WatchAll: Watch for changes on all objects in a bucket.@@ -7770,8 +8213,20 @@ func (c *ObjectsWatchAllCall) Context(ctx context.Context) *ObjectsWatchAllCallreturn c}+// Header returns an http.Header that can be modified by the caller to+// add HTTP headers to the request.+func (c *ObjectsWatchAllCall) Header() http.Header {+ if c.header_ == nil {+ c.header_ = make(http.Header)+ }+ return c.header_+}+func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) {reqHeaders := make(http.Header)+ for k, v := range c.header_ {+ reqHeaders[k] = v+ }reqHeaders.Set("User-Agent", c.s.userAgent())var body io.Reader = nilbody, err := googleapi.WithoutDataWrapper.JSONReader(c.channel)diff --git a/vendor/google.golang.org/grpc/.travis.yml b/vendor/google.golang.org/grpc/.travis.ymlnew file mode 100644index 000000000..0c1a96c68--- /dev/null+++ b/vendor/google.golang.org/grpc/.travis.yml@@ -0,0 +1,19 @@+language: go++go:+ - 1.5.4+ - 1.6.3+ - 1.7++go_import_path: google.golang.org/grpc++before_install:+ - if [[ $TRAVIS_GO_VERSION != 1.5* ]]; then go get github.com/golang/lint/golint; fi+ - go get -u golang.org/x/tools/cmd/goimports github.com/axw/gocov/gocov github.com/mattn/goveralls golang.org/x/tools/cmd/cover++script:+ - '! gofmt -s -d -l . 2>&1 | read'+ - '! goimports -l . | read'+ - 'if [[ $TRAVIS_GO_VERSION != 1.5* ]]; then ! golint ./... | grep -vE "(_string|\.pb)\.go:"; fi'+ - '! go tool vet -all . 2>&1 | grep -vE "constant [0-9]+ not a string in call to Errorf" | grep -vF .pb.go:' # https://github.com/golang/protobuf/issues/214+ - make test testracediff --git a/vendor/google.golang.org/grpc/CONTRIBUTING.md b/vendor/google.golang.org/grpc/CONTRIBUTING.mdnew file mode 100644index 000000000..36cd6f758--- /dev/null+++ b/vendor/google.golang.org/grpc/CONTRIBUTING.md@@ -0,0 +1,46 @@+# How to contribute++We definitely welcome patches and contribution to grpc! Here are some guidelines+and information about how to do so.++## Sending patches++### Getting started++1. Check out the code:++ $ go get google.golang.org/grpc+ $ cd $GOPATH/src/google.golang.org/grpc++1. Create a fork of the grpc-go repository.+1. Add your fork as a remote:++ $ git remote add fork [email protected]:$YOURGITHUBUSERNAME/grpc-go.git++1. Make changes, commit them.+1. Run the test suite:++ $ make test++1. Push your changes to your fork:++ $ git push fork ...++1. Open a pull request.++## Legal requirements++In order to protect both you and ourselves, you will need to sign the+[Contributor License Agreement](https://cla.developers.google.com/clas).++## Filing Issues+When filing an issue, make sure to answer these five questions:++1. What version of Go are you using (`go version`)?+2. What operating system and processor architecture are you using?+3. What did you do?+4. What did you expect to see?+5. What did you see instead?++### Contributing code+Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.diff --git a/vendor/google.golang.org/grpc/LICENSE b/vendor/google.golang.org/grpc/LICENSEnew file mode 100644index 000000000..f4988b450--- /dev/null+++ b/vendor/google.golang.org/grpc/LICENSE@@ -0,0 +1,28 @@+Copyright 2014, Google Inc.+All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are+met:++ * Redistributions of source code must retain the above copyright+notice, this list of conditions and the following disclaimer.+ * Redistributions in binary form must reproduce the above+copyright notice, this list of conditions and the following disclaimer+in the documentation and/or other materials provided with the+distribution.+ * Neither the name of Google Inc. nor the names of its+contributors may be used to endorse or promote products derived from+this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.diff --git a/vendor/google.golang.org/grpc/Makefile b/vendor/google.golang.org/grpc/Makefilenew file mode 100644index 000000000..03bb01f0b--- /dev/null+++ b/vendor/google.golang.org/grpc/Makefile@@ -0,0 +1,52 @@+all: test testrace++deps:+ go get -d -v google.golang.org/grpc/...++updatedeps:+ go get -d -v -u -f google.golang.org/grpc/...++testdeps:+ go get -d -v -t google.golang.org/grpc/...++updatetestdeps:+ go get -d -v -t -u -f google.golang.org/grpc/...++build: deps+ go build google.golang.org/grpc/...++proto:+ @ if ! which protoc > /dev/null; then \+ echo "error: protoc not installed" >&2; \+ exit 1; \+ fi+ go get -u -v github.com/golang/protobuf/protoc-gen-go+ # use $$dir as the root for all proto files in the same directory+ for dir in $$(git ls-files '*.proto' | xargs -n1 dirname | uniq); do \+ protoc -I $$dir --go_out=plugins=grpc:$$dir $$dir/*.proto; \+ done++test: testdeps+ go test -v -cpu 1,4 google.golang.org/grpc/...++testrace: testdeps+ go test -v -race -cpu 1,4 google.golang.org/grpc/...++clean:+ go clean -i google.golang.org/grpc/...++coverage: testdeps+ ./coverage.sh --coveralls++.PHONY: \+ all \+ deps \+ updatedeps \+ testdeps \+ updatetestdeps \+ build \+ proto \+ test \+ testrace \+ clean \+ coveragediff --git a/vendor/google.golang.org/grpc/PATENTS b/vendor/google.golang.org/grpc/PATENTSnew file mode 100644index 000000000..69b47959f--- /dev/null+++ b/vendor/google.golang.org/grpc/PATENTS@@ -0,0 +1,22 @@+Additional IP Rights Grant (Patents)++"This implementation" means the copyrightable works distributed by+Google as part of the gRPC project.++Google hereby grants to You a perpetual, worldwide, non-exclusive,+no-charge, royalty-free, irrevocable (except as stated in this section)+patent license to make, have made, use, offer to sell, sell, import,+transfer and otherwise run, modify and propagate the contents of this+implementation of gRPC, where such license applies only to those patent+claims, both currently owned or controlled by Google and acquired in+the future, licensable by Google that are necessarily infringed by this+implementation of gRPC. This grant does not include claims that would be+infringed only as a consequence of further modification of this+implementation. If you or your agent or exclusive licensee institute or+order or agree to the institution of patent litigation against any+entity (including a cross-claim or counterclaim in a lawsuit) alleging+that this implementation of gRPC or any code incorporated within this+implementation of gRPC constitutes direct or contributory patent+infringement, or inducement of patent infringement, then any patent+rights granted to you under this License for this implementation of gRPC+shall terminate as of the date such litigation is filed.diff --git a/vendor/google.golang.org/grpc/README.md b/vendor/google.golang.org/grpc/README.mdnew file mode 100644index 000000000..39120c203--- /dev/null+++ b/vendor/google.golang.org/grpc/README.md@@ -0,0 +1,57 @@+#gRPC-Go++[](https://travis-ci.org/grpc/grpc-go) [](https://godoc.org/google.golang.org/grpc)++The Go implementation of [gRPC](http://www.grpc.io/): A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the [gRPC Quick Start](http://www.grpc.io/docs/) guide.++Installation+------------++To install this package, you need to install Go and setup your Go workspace on your computer. The simplest way to install the library is to run:++```+$ go get google.golang.org/grpc+```++Prerequisites+-------------++This requires Go 1.5 or later.++A note on the version used: significant performance improvements in benchmarks+of grpc-go have been seen by upgrading the go version from 1.5 to the latest+1.7.1.++From https://golang.org/doc/install, one way to install the latest version of go is:+```+$ GO_VERSION=1.7.1+$ OS=linux+$ ARCH=amd64+$ curl -O https://storage.googleapis.com/golang/go${GO_VERSION}.${OS}-${ARCH}.tar.gz+$ sudo tar -C /usr/local -xzf go$GO_VERSION.$OS-$ARCH.tar.gz+$ # Put go on the PATH, keep the usual installation dir+$ sudo ln -s /usr/local/go/bin/go /usr/bin/go+$ rm go$GO_VERSION.$OS-$ARCH.tar.gz+```++Constraints+-----------+The grpc package should only depend on standard Go packages and a small number of exceptions. If your contribution introduces new dependencies which are NOT in the [list](http://godoc.org/google.golang.org/grpc?imports), you need a discussion with gRPC-Go authors and consultants.++Documentation+-------------+See [API documentation](https://godoc.org/google.golang.org/grpc) for package and API descriptions and find examples in the [examples directory](examples/).++Status+------+GA++FAQ+---++#### Compiling error, undefined: grpc.SupportPackageIsVersion++Please update proto package, gRPC package and rebuild the proto files:+ - `go get -u github.com/golang/protobuf/{proto,protoc-gen-go}`+ - `go get -u google.golang.org/grpc`+ - `protoc --go_out=plugins=grpc:. *.proto`diff --git a/vendor/google.golang.org/grpc/backoff.go b/vendor/google.golang.org/grpc/backoff.gonew file mode 100644index 000000000..c99024ee3--- /dev/null+++ b/vendor/google.golang.org/grpc/backoff.go@@ -0,0 +1,80 @@+package grpc++import (+ "math/rand"+ "time"+)++// DefaultBackoffConfig uses values specified for backoff in+// https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md.+var (+ DefaultBackoffConfig = BackoffConfig{+ MaxDelay: 120 * time.Second,+ baseDelay: 1.0 * time.Second,+ factor: 1.6,+ jitter: 0.2,+ }+)++// backoffStrategy defines the methodology for backing off after a grpc+// connection failure.+//+// This is unexported until the gRPC project decides whether or not to allow+// alternative backoff strategies. Once a decision is made, this type and its+// method may be exported.+type backoffStrategy interface {+ // backoff returns the amount of time to wait before the next retry given+ // the number of consecutive failures.+ backoff(retries int) time.Duration+}++// BackoffConfig defines the parameters for the default gRPC backoff strategy.+type BackoffConfig struct {+ // MaxDelay is the upper bound of backoff delay.+ MaxDelay time.Duration++ // TODO(stevvooe): The following fields are not exported, as allowing+ // changes would violate the current gRPC specification for backoff. If+ // gRPC decides to allow more interesting backoff strategies, these fields+ // may be opened up in the future.++ // baseDelay is the amount of time to wait before retrying after the first+ // failure.+ baseDelay time.Duration++ // factor is applied to the backoff after each retry.+ factor float64++ // jitter provides a range to randomize backoff delays.+ jitter float64+}++func setDefaults(bc *BackoffConfig) {+ md := bc.MaxDelay+ *bc = DefaultBackoffConfig++ if md > 0 {+ bc.MaxDelay = md+ }+}++func (bc BackoffConfig) backoff(retries int) time.Duration {+ if retries == 0 {+ return bc.baseDelay+ }+ backoff, max := float64(bc.baseDelay), float64(bc.MaxDelay)+ for backoff < max && retries > 0 {+ backoff *= bc.factor+ retries--+ }+ if backoff > max {+ backoff = max+ }+ // Randomize backoff delays so that if a cluster of requests start at+ // the same time, they won't operate in lockstep.+ backoff *= 1 + bc.jitter*(rand.Float64()*2-1)+ if backoff < 0 {+ return 0+ }+ return time.Duration(backoff)+}diff --git a/vendor/google.golang.org/grpc/balancer.go b/vendor/google.golang.org/grpc/balancer.gonew file mode 100644index 000000000..9d943fbad--- /dev/null+++ b/vendor/google.golang.org/grpc/balancer.go@@ -0,0 +1,400 @@+/*+ *+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package grpc++import (+ "fmt"+ "sync"++ "golang.org/x/net/context"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/credentials"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/naming"+)++// Address represents a server the client connects to.+// This is the EXPERIMENTAL API and may be changed or extended in the future.+type Address struct {+ // Addr is the server address on which a connection will be established.+ Addr string+ // Metadata is the information associated with Addr, which may be used+ // to make load balancing decision.+ Metadata interface{}+}++// BalancerConfig specifies the configurations for Balancer.+type BalancerConfig struct {+ // DialCreds is the transport credential the Balancer implementation can+ // use to dial to a remote load balancer server. The Balancer implementations+ // can ignore this if it does not need to talk to another party securely.+ DialCreds credentials.TransportCredentials+}++// BalancerGetOptions configures a Get call.+// This is the EXPERIMENTAL API and may be changed or extended in the future.+type BalancerGetOptions struct {+ // BlockingWait specifies whether Get should block when there is no+ // connected address.+ BlockingWait bool+}++// Balancer chooses network addresses for RPCs.+// This is the EXPERIMENTAL API and may be changed or extended in the future.+type Balancer interface {+ // Start does the initialization work to bootstrap a Balancer. For example,+ // this function may start the name resolution and watch the updates. It will+ // be called when dialing.+ Start(target string, config BalancerConfig) error+ // Up informs the Balancer that gRPC has a connection to the server at+ // addr. It returns down which is called once the connection to addr gets+ // lost or closed.+ // TODO: It is not clear how to construct and take advantage of the meaningful error+ // parameter for down. Need realistic demands to guide.+ Up(addr Address) (down func(error))+ // Get gets the address of a server for the RPC corresponding to ctx.+ // i) If it returns a connected address, gRPC internals issues the RPC on the+ // connection to this address;+ // ii) If it returns an address on which the connection is under construction+ // (initiated by Notify(...)) but not connected, gRPC internals+ // * fails RPC if the RPC is fail-fast and connection is in the TransientFailure or+ // Shutdown state;+ // or+ // * issues RPC on the connection otherwise.+ // iii) If it returns an address on which the connection does not exist, gRPC+ // internals treats it as an error and will fail the corresponding RPC.+ //+ // Therefore, the following is the recommended rule when writing a custom Balancer.+ // If opts.BlockingWait is true, it should return a connected address or+ // block if there is no connected address. It should respect the timeout or+ // cancellation of ctx when blocking. If opts.BlockingWait is false (for fail-fast+ // RPCs), it should return an address it has notified via Notify(...) immediately+ // instead of blocking.+ //+ // The function returns put which is called once the rpc has completed or failed.+ // put can collect and report RPC stats to a remote load balancer.+ //+ // This function should only return the errors Balancer cannot recover by itself.+ // gRPC internals will fail the RPC if an error is returned.+ Get(ctx context.Context, opts BalancerGetOptions) (addr Address, put func(), err error)+ // Notify returns a channel that is used by gRPC internals to watch the addresses+ // gRPC needs to connect. The addresses might be from a name resolver or remote+ // load balancer. gRPC internals will compare it with the existing connected+ // addresses. If the address Balancer notified is not in the existing connected+ // addresses, gRPC starts to connect the address. If an address in the existing+ // connected addresses is not in the notification list, the corresponding connection+ // is shutdown gracefully. Otherwise, there are no operations to take. Note that+ // the Address slice must be the full list of the Addresses which should be connected.+ // It is NOT delta.+ Notify() <-chan []Address+ // Close shuts down the balancer.+ Close() error+}++// downErr implements net.Error. It is constructed by gRPC internals and passed to the down+// call of Balancer.+type downErr struct {+ timeout bool+ temporary bool+ desc string+}++func (e downErr) Error() string { return e.desc }+func (e downErr) Timeout() bool { return e.timeout }+func (e downErr) Temporary() bool { return e.temporary }++func downErrorf(timeout, temporary bool, format string, a ...interface{}) downErr {+ return downErr{+ timeout: timeout,+ temporary: temporary,+ desc: fmt.Sprintf(format, a...),+ }+}++// RoundRobin returns a Balancer that selects addresses round-robin. It uses r to watch+// the name resolution updates and updates the addresses available correspondingly.+func RoundRobin(r naming.Resolver) Balancer {+ return &roundRobin{r: r}+}++type addrInfo struct {+ addr Address+ connected bool+}++type roundRobin struct {+ r naming.Resolver+ w naming.Watcher+ addrs []*addrInfo // all the addresses the client should potentially connect+ mu sync.Mutex+ addrCh chan []Address // the channel to notify gRPC internals the list of addresses the client should connect to.+ next int // index of the next address to return for Get()+ waitCh chan struct{} // the channel to block when there is no connected address available+ done bool // The Balancer is closed.+}++func (rr *roundRobin) watchAddrUpdates() error {+ updates, err := rr.w.Next()+ if err != nil {+ grpclog.Printf("grpc: the naming watcher stops working due to %v.\n", err)+ return err+ }+ rr.mu.Lock()+ defer rr.mu.Unlock()+ for _, update := range updates {+ addr := Address{+ Addr: update.Addr,+ Metadata: update.Metadata,+ }+ switch update.Op {+ case naming.Add:+ var exist bool+ for _, v := range rr.addrs {+ if addr == v.addr {+ exist = true+ grpclog.Println("grpc: The name resolver wanted to add an existing address: ", addr)+ break+ }+ }+ if exist {+ continue+ }+ rr.addrs = append(rr.addrs, &addrInfo{addr: addr})+ case naming.Delete:+ for i, v := range rr.addrs {+ if addr == v.addr {+ copy(rr.addrs[i:], rr.addrs[i+1:])+ rr.addrs = rr.addrs[:len(rr.addrs)-1]+ break+ }+ }+ default:+ grpclog.Println("Unknown update.Op ", update.Op)+ }+ }+ // Make a copy of rr.addrs and write it onto rr.addrCh so that gRPC internals gets notified.+ open := make([]Address, len(rr.addrs))+ for i, v := range rr.addrs {+ open[i] = v.addr+ }+ if rr.done {+ return ErrClientConnClosing+ }+ rr.addrCh <- open+ return nil+}++func (rr *roundRobin) Start(target string, config BalancerConfig) error {+ rr.mu.Lock()+ defer rr.mu.Unlock()+ if rr.done {+ return ErrClientConnClosing+ }+ if rr.r == nil {+ // If there is no name resolver installed, it is not needed to+ // do name resolution. In this case, target is added into rr.addrs+ // as the only address available and rr.addrCh stays nil.+ rr.addrs = append(rr.addrs, &addrInfo{addr: Address{Addr: target}})+ return nil+ }+ w, err := rr.r.Resolve(target)+ if err != nil {+ return err+ }+ rr.w = w+ rr.addrCh = make(chan []Address)+ go func() {+ for {+ if err := rr.watchAddrUpdates(); err != nil {+ return+ }+ }+ }()+ return nil+}++// Up sets the connected state of addr and sends notification if there are pending+// Get() calls.+func (rr *roundRobin) Up(addr Address) func(error) {+ rr.mu.Lock()+ defer rr.mu.Unlock()+ var cnt int+ for _, a := range rr.addrs {+ if a.addr == addr {+ if a.connected {+ return nil+ }+ a.connected = true+ }+ if a.connected {+ cnt+++ }+ }+ // addr is only one which is connected. Notify the Get() callers who are blocking.+ if cnt == 1 && rr.waitCh != nil {+ close(rr.waitCh)+ rr.waitCh = nil+ }+ return func(err error) {+ rr.down(addr, err)+ }+}++// down unsets the connected state of addr.+func (rr *roundRobin) down(addr Address, err error) {+ rr.mu.Lock()+ defer rr.mu.Unlock()+ for _, a := range rr.addrs {+ if addr == a.addr {+ a.connected = false+ break+ }+ }+}++// Get returns the next addr in the rotation.+func (rr *roundRobin) Get(ctx context.Context, opts BalancerGetOptions) (addr Address, put func(), err error) {+ var ch chan struct{}+ rr.mu.Lock()+ if rr.done {+ rr.mu.Unlock()+ err = ErrClientConnClosing+ return+ }++ if len(rr.addrs) > 0 {+ if rr.next >= len(rr.addrs) {+ rr.next = 0+ }+ next := rr.next+ for {+ a := rr.addrs[next]+ next = (next + 1) % len(rr.addrs)+ if a.connected {+ addr = a.addr+ rr.next = next+ rr.mu.Unlock()+ return+ }+ if next == rr.next {+ // Has iterated all the possible address but none is connected.+ break+ }+ }+ }+ if !opts.BlockingWait {+ if len(rr.addrs) == 0 {+ rr.mu.Unlock()+ err = Errorf(codes.Unavailable, "there is no address available")+ return+ }+ // Returns the next addr on rr.addrs for failfast RPCs.+ addr = rr.addrs[rr.next].addr+ rr.next+++ rr.mu.Unlock()+ return+ }+ // Wait on rr.waitCh for non-failfast RPCs.+ if rr.waitCh == nil {+ ch = make(chan struct{})+ rr.waitCh = ch+ } else {+ ch = rr.waitCh+ }+ rr.mu.Unlock()+ for {+ select {+ case <-ctx.Done():+ err = ctx.Err()+ return+ case <-ch:+ rr.mu.Lock()+ if rr.done {+ rr.mu.Unlock()+ err = ErrClientConnClosing+ return+ }++ if len(rr.addrs) > 0 {+ if rr.next >= len(rr.addrs) {+ rr.next = 0+ }+ next := rr.next+ for {+ a := rr.addrs[next]+ next = (next + 1) % len(rr.addrs)+ if a.connected {+ addr = a.addr+ rr.next = next+ rr.mu.Unlock()+ return+ }+ if next == rr.next {+ // Has iterated all the possible address but none is connected.+ break+ }+ }+ }+ // The newly added addr got removed by Down() again.+ if rr.waitCh == nil {+ ch = make(chan struct{})+ rr.waitCh = ch+ } else {+ ch = rr.waitCh+ }+ rr.mu.Unlock()+ }+ }+}++func (rr *roundRobin) Notify() <-chan []Address {+ return rr.addrCh+}++func (rr *roundRobin) Close() error {+ rr.mu.Lock()+ defer rr.mu.Unlock()+ rr.done = true+ if rr.w != nil {+ rr.w.Close()+ }+ if rr.waitCh != nil {+ close(rr.waitCh)+ rr.waitCh = nil+ }+ if rr.addrCh != nil {+ close(rr.addrCh)+ }+ return nil+}diff --git a/vendor/google.golang.org/grpc/call.go b/vendor/google.golang.org/grpc/call.gonew file mode 100644index 000000000..5d9214d15--- /dev/null+++ b/vendor/google.golang.org/grpc/call.go@@ -0,0 +1,275 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package grpc++import (+ "bytes"+ "io"+ "math"+ "time"++ "golang.org/x/net/context"+ "golang.org/x/net/trace"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/stats"+ "google.golang.org/grpc/transport"+)++// recvResponse receives and parses an RPC response.+// On error, it returns the error and indicates whether the call should be retried.+//+// TODO(zhaoq): Check whether the received message sequence is valid.+// TODO ctx is used for stats collection and processing. It is the context passed from the application.+func recvResponse(ctx context.Context, dopts dialOptions, t transport.ClientTransport, c *callInfo, stream *transport.Stream, reply interface{}) (err error) {+ // Try to acquire header metadata from the server if there is any.+ defer func() {+ if err != nil {+ if _, ok := err.(transport.ConnectionError); !ok {+ t.CloseStream(stream, err)+ }+ }+ }()+ c.headerMD, err = stream.Header()+ if err != nil {+ return+ }+ p := &parser{r: stream}+ var inPayload *stats.InPayload+ if stats.On() {+ inPayload = &stats.InPayload{+ Client: true,+ }+ }+ for {+ if err = recv(p, dopts.codec, stream, dopts.dc, reply, math.MaxInt32, inPayload); err != nil {+ if err == io.EOF {+ break+ }+ return+ }+ }+ if inPayload != nil && err == io.EOF && stream.StatusCode() == codes.OK {+ // TODO in the current implementation, inTrailer may be handled before inPayload in some cases.+ // Fix the order if necessary.+ stats.Handle(ctx, inPayload)+ }+ c.trailerMD = stream.Trailer()+ return nil+}++// sendRequest writes out various information of an RPC such as Context and Message.+func sendRequest(ctx context.Context, codec Codec, compressor Compressor, callHdr *transport.CallHdr, t transport.ClientTransport, args interface{}, opts *transport.Options) (_ *transport.Stream, err error) {+ stream, err := t.NewStream(ctx, callHdr)+ if err != nil {+ return nil, err+ }+ defer func() {+ if err != nil {+ // If err is connection error, t will be closed, no need to close stream here.+ if _, ok := err.(transport.ConnectionError); !ok {+ t.CloseStream(stream, err)+ }+ }+ }()+ var (+ cbuf *bytes.Buffer+ outPayload *stats.OutPayload+ )+ if compressor != nil {+ cbuf = new(bytes.Buffer)+ }+ if stats.On() {+ outPayload = &stats.OutPayload{+ Client: true,+ }+ }+ outBuf, err := encode(codec, args, compressor, cbuf, outPayload)+ if err != nil {+ return nil, Errorf(codes.Internal, "grpc: %v", err)+ }+ err = t.Write(stream, outBuf, opts)+ if err == nil && outPayload != nil {+ outPayload.SentTime = time.Now()+ stats.Handle(ctx, outPayload)+ }+ // t.NewStream(...) could lead to an early rejection of the RPC (e.g., the service/method+ // does not exist.) so that t.Write could get io.EOF from wait(...). Leave the following+ // recvResponse to get the final status.+ if err != nil && err != io.EOF {+ return nil, err+ }+ // Sent successfully.+ return stream, nil+}++// Invoke sends the RPC request on the wire and returns after response is received.+// Invoke is called by generated code. Also users can call Invoke directly when it+// is really needed in their use cases.+func Invoke(ctx context.Context, method string, args, reply interface{}, cc *ClientConn, opts ...CallOption) error {+ if cc.dopts.unaryInt != nil {+ return cc.dopts.unaryInt(ctx, method, args, reply, cc, invoke, opts...)+ }+ return invoke(ctx, method, args, reply, cc, opts...)+}++func invoke(ctx context.Context, method string, args, reply interface{}, cc *ClientConn, opts ...CallOption) (e error) {+ c := defaultCallInfo+ for _, o := range opts {+ if err := o.before(&c); err != nil {+ return toRPCErr(err)+ }+ }+ defer func() {+ for _, o := range opts {+ o.after(&c)+ }+ }()+ if EnableTracing {+ c.traceInfo.tr = trace.New("grpc.Sent."+methodFamily(method), method)+ defer c.traceInfo.tr.Finish()+ c.traceInfo.firstLine.client = true+ if deadline, ok := ctx.Deadline(); ok {+ c.traceInfo.firstLine.deadline = deadline.Sub(time.Now())+ }+ c.traceInfo.tr.LazyLog(&c.traceInfo.firstLine, false)+ // TODO(dsymonds): Arrange for c.traceInfo.firstLine.remoteAddr to be set.+ defer func() {+ if e != nil {+ c.traceInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{e}}, true)+ c.traceInfo.tr.SetError()+ }+ }()+ }+ if stats.On() {+ begin := &stats.Begin{+ Client: true,+ BeginTime: time.Now(),+ FailFast: c.failFast,+ }+ stats.Handle(ctx, begin)+ }+ defer func() {+ if stats.On() {+ end := &stats.End{+ Client: true,+ EndTime: time.Now(),+ Error: e,+ }+ stats.Handle(ctx, end)+ }+ }()+ topts := &transport.Options{+ Last: true,+ Delay: false,+ }+ for {+ var (+ err error+ t transport.ClientTransport+ stream *transport.Stream+ // Record the put handler from Balancer.Get(...). It is called once the+ // RPC has completed or failed.+ put func()+ )+ // TODO(zhaoq): Need a formal spec of fail-fast.+ callHdr := &transport.CallHdr{+ Host: cc.authority,+ Method: method,+ }+ if cc.dopts.cp != nil {+ callHdr.SendCompress = cc.dopts.cp.Type()+ }+ gopts := BalancerGetOptions{+ BlockingWait: !c.failFast,+ }+ t, put, err = cc.getTransport(ctx, gopts)+ if err != nil {+ // TODO(zhaoq): Probably revisit the error handling.+ if _, ok := err.(*rpcError); ok {+ return err+ }+ if err == errConnClosing || err == errConnUnavailable {+ if c.failFast {+ return Errorf(codes.Unavailable, "%v", err)+ }+ continue+ }+ // All the other errors are treated as Internal errors.+ return Errorf(codes.Internal, "%v", err)+ }+ if c.traceInfo.tr != nil {+ c.traceInfo.tr.LazyLog(&payload{sent: true, msg: args}, true)+ }+ stream, err = sendRequest(ctx, cc.dopts.codec, cc.dopts.cp, callHdr, t, args, topts)+ if err != nil {+ if put != nil {+ put()+ put = nil+ }+ // Retry a non-failfast RPC when+ // i) there is a connection error; or+ // ii) the server started to drain before this RPC was initiated.+ if _, ok := err.(transport.ConnectionError); ok || err == transport.ErrStreamDrain {+ if c.failFast {+ return toRPCErr(err)+ }+ continue+ }+ return toRPCErr(err)+ }+ err = recvResponse(ctx, cc.dopts, t, &c, stream, reply)+ if err != nil {+ if put != nil {+ put()+ put = nil+ }+ if _, ok := err.(transport.ConnectionError); ok || err == transport.ErrStreamDrain {+ if c.failFast {+ return toRPCErr(err)+ }+ continue+ }+ return toRPCErr(err)+ }+ if c.traceInfo.tr != nil {+ c.traceInfo.tr.LazyLog(&payload{sent: false, msg: reply}, true)+ }+ t.CloseStream(stream, nil)+ if put != nil {+ put()+ put = nil+ }+ return Errorf(stream.StatusCode(), "%s", stream.StatusDesc())+ }+}diff --git a/vendor/google.golang.org/grpc/clientconn.go b/vendor/google.golang.org/grpc/clientconn.gonew file mode 100644index 000000000..f6dab4b77--- /dev/null+++ b/vendor/google.golang.org/grpc/clientconn.go@@ -0,0 +1,901 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package grpc++import (+ "errors"+ "fmt"+ "net"+ "strings"+ "sync"+ "time"++ "golang.org/x/net/context"+ "golang.org/x/net/trace"+ "google.golang.org/grpc/credentials"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/transport"+)++var (+ // ErrClientConnClosing indicates that the operation is illegal because+ // the ClientConn is closing.+ ErrClientConnClosing = errors.New("grpc: the client connection is closing")+ // ErrClientConnTimeout indicates that the ClientConn cannot establish the+ // underlying connections within the specified timeout.+ ErrClientConnTimeout = errors.New("grpc: timed out when dialing")++ // errNoTransportSecurity indicates that there is no transport security+ // being set for ClientConn. Users should either set one or explicitly+ // call WithInsecure DialOption to disable security.+ errNoTransportSecurity = errors.New("grpc: no transport security set (use grpc.WithInsecure() explicitly or set credentials)")+ // errTransportCredentialsMissing indicates that users want to transmit security+ // information (e.g., oauth2 token) which requires secure connection on an insecure+ // connection.+ errTransportCredentialsMissing = errors.New("grpc: the credentials require transport level security (use grpc.WithTransportCredentials() to set)")+ // errCredentialsConflict indicates that grpc.WithTransportCredentials()+ // and grpc.WithInsecure() are both called for a connection.+ errCredentialsConflict = errors.New("grpc: transport credentials are set for an insecure connection (grpc.WithTransportCredentials() and grpc.WithInsecure() are both called)")+ // errNetworkIO indicates that the connection is down due to some network I/O error.+ errNetworkIO = errors.New("grpc: failed with network I/O error")+ // errConnDrain indicates that the connection starts to be drained and does not accept any new RPCs.+ errConnDrain = errors.New("grpc: the connection is drained")+ // errConnClosing indicates that the connection is closing.+ errConnClosing = errors.New("grpc: the connection is closing")+ // errConnUnavailable indicates that the connection is unavailable.+ errConnUnavailable = errors.New("grpc: the connection is unavailable")+ errNoAddr = errors.New("grpc: there is no address available to dial")+ // minimum time to give a connection to complete+ minConnectTimeout = 20 * time.Second+)++// dialOptions configure a Dial call. dialOptions are set by the DialOption+// values passed to Dial.+type dialOptions struct {+ unaryInt UnaryClientInterceptor+ streamInt StreamClientInterceptor+ codec Codec+ cp Compressor+ dc Decompressor+ bs backoffStrategy+ balancer Balancer+ block bool+ insecure bool+ timeout time.Duration+ copts transport.ConnectOptions+}++// DialOption configures how we set up the connection.+type DialOption func(*dialOptions)++// WithCodec returns a DialOption which sets a codec for message marshaling and unmarshaling.+func WithCodec(c Codec) DialOption {+ return func(o *dialOptions) {+ o.codec = c+ }+}++// WithCompressor returns a DialOption which sets a CompressorGenerator for generating message+// compressor.+func WithCompressor(cp Compressor) DialOption {+ return func(o *dialOptions) {+ o.cp = cp+ }+}++// WithDecompressor returns a DialOption which sets a DecompressorGenerator for generating+// message decompressor.+func WithDecompressor(dc Decompressor) DialOption {+ return func(o *dialOptions) {+ o.dc = dc+ }+}++// WithBalancer returns a DialOption which sets a load balancer.+func WithBalancer(b Balancer) DialOption {+ return func(o *dialOptions) {+ o.balancer = b+ }+}++// WithBackoffMaxDelay configures the dialer to use the provided maximum delay+// when backing off after failed connection attempts.+func WithBackoffMaxDelay(md time.Duration) DialOption {+ return WithBackoffConfig(BackoffConfig{MaxDelay: md})+}++// WithBackoffConfig configures the dialer to use the provided backoff+// parameters after connection failures.+//+// Use WithBackoffMaxDelay until more parameters on BackoffConfig are opened up+// for use.+func WithBackoffConfig(b BackoffConfig) DialOption {+ // Set defaults to ensure that provided BackoffConfig is valid and+ // unexported fields get default values.+ setDefaults(&b)+ return withBackoff(b)+}++// withBackoff sets the backoff strategy used for retries after a+// failed connection attempt.+//+// This can be exported if arbitrary backoff strategies are allowed by gRPC.+func withBackoff(bs backoffStrategy) DialOption {+ return func(o *dialOptions) {+ o.bs = bs+ }+}++// WithBlock returns a DialOption which makes caller of Dial blocks until the underlying+// connection is up. Without this, Dial returns immediately and connecting the server+// happens in background.+func WithBlock() DialOption {+ return func(o *dialOptions) {+ o.block = true+ }+}++// WithInsecure returns a DialOption which disables transport security for this ClientConn.+// Note that transport security is required unless WithInsecure is set.+func WithInsecure() DialOption {+ return func(o *dialOptions) {+ o.insecure = true+ }+}++// WithTransportCredentials returns a DialOption which configures a+// connection level security credentials (e.g., TLS/SSL).+func WithTransportCredentials(creds credentials.TransportCredentials) DialOption {+ return func(o *dialOptions) {+ o.copts.TransportCredentials = creds+ }+}++// WithPerRPCCredentials returns a DialOption which sets+// credentials which will place auth state on each outbound RPC.+func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption {+ return func(o *dialOptions) {+ o.copts.PerRPCCredentials = append(o.copts.PerRPCCredentials, creds)+ }+}++// WithTimeout returns a DialOption that configures a timeout for dialing a ClientConn+// initially. This is valid if and only if WithBlock() is present.+func WithTimeout(d time.Duration) DialOption {+ return func(o *dialOptions) {+ o.timeout = d+ }+}++// WithDialer returns a DialOption that specifies a function to use for dialing network addresses.+// If FailOnNonTempDialError() is set to true, and an error is returned by f, gRPC checks the error's+// Temporary() method to decide if it should try to reconnect to the network address.+func WithDialer(f func(string, time.Duration) (net.Conn, error)) DialOption {+ return func(o *dialOptions) {+ o.copts.Dialer = func(ctx context.Context, addr string) (net.Conn, error) {+ if deadline, ok := ctx.Deadline(); ok {+ return f(addr, deadline.Sub(time.Now()))+ }+ return f(addr, 0)+ }+ }+}++// FailOnNonTempDialError returns a DialOption that specified if gRPC fails on non-temporary dial errors.+// If f is true, and dialer returns a non-temporary error, gRPC will fail the connection to the network+// address and won't try to reconnect.+// The default value of FailOnNonTempDialError is false.+// This is an EXPERIMENTAL API.+func FailOnNonTempDialError(f bool) DialOption {+ return func(o *dialOptions) {+ o.copts.FailOnNonTempDialError = f+ }+}++// WithUserAgent returns a DialOption that specifies a user agent string for all the RPCs.+func WithUserAgent(s string) DialOption {+ return func(o *dialOptions) {+ o.copts.UserAgent = s+ }+}++// WithUnaryInterceptor returns a DialOption that specifies the interceptor for unary RPCs.+func WithUnaryInterceptor(f UnaryClientInterceptor) DialOption {+ return func(o *dialOptions) {+ o.unaryInt = f+ }+}++// WithStreamInterceptor returns a DialOption that specifies the interceptor for streaming RPCs.+func WithStreamInterceptor(f StreamClientInterceptor) DialOption {+ return func(o *dialOptions) {+ o.streamInt = f+ }+}++// Dial creates a client connection to the given target.+func Dial(target string, opts ...DialOption) (*ClientConn, error) {+ return DialContext(context.Background(), target, opts...)+}++// DialContext creates a client connection to the given target. ctx can be used to+// cancel or expire the pending connecting. Once this function returns, the+// cancellation and expiration of ctx will be noop. Users should call ClientConn.Close+// to terminate all the pending operations after this function returns.+// This is the EXPERIMENTAL API.+func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) {+ cc := &ClientConn{+ target: target,+ conns: make(map[Address]*addrConn),+ }+ cc.ctx, cc.cancel = context.WithCancel(context.Background())+ defer func() {+ select {+ case <-ctx.Done():+ conn, err = nil, ctx.Err()+ default:+ }++ if err != nil {+ cc.Close()+ }+ }()++ for _, opt := range opts {+ opt(&cc.dopts)+ }++ // Set defaults.+ if cc.dopts.codec == nil {+ cc.dopts.codec = protoCodec{}+ }+ if cc.dopts.bs == nil {+ cc.dopts.bs = DefaultBackoffConfig+ }+ creds := cc.dopts.copts.TransportCredentials+ if creds != nil && creds.Info().ServerName != "" {+ cc.authority = creds.Info().ServerName+ } else {+ colonPos := strings.LastIndex(target, ":")+ if colonPos == -1 {+ colonPos = len(target)+ }+ cc.authority = target[:colonPos]+ }+ var ok bool+ waitC := make(chan error, 1)+ go func() {+ var addrs []Address+ if cc.dopts.balancer == nil {+ // Connect to target directly if balancer is nil.+ addrs = append(addrs, Address{Addr: target})+ } else {+ var credsClone credentials.TransportCredentials+ if creds != nil {+ credsClone = creds.Clone()+ }+ config := BalancerConfig{+ DialCreds: credsClone,+ }+ if err := cc.dopts.balancer.Start(target, config); err != nil {+ waitC <- err+ return+ }+ ch := cc.dopts.balancer.Notify()+ if ch == nil {+ // There is no name resolver installed.+ addrs = append(addrs, Address{Addr: target})+ } else {+ addrs, ok = <-ch+ if !ok || len(addrs) == 0 {+ waitC <- errNoAddr+ return+ }+ }+ }+ for _, a := range addrs {+ if err := cc.resetAddrConn(a, false, nil); err != nil {+ waitC <- err+ return+ }+ }+ close(waitC)+ }()+ var timeoutCh <-chan time.Time+ if cc.dopts.timeout > 0 {+ timeoutCh = time.After(cc.dopts.timeout)+ }+ select {+ case <-ctx.Done():+ return nil, ctx.Err()+ case err := <-waitC:+ if err != nil {+ return nil, err+ }+ case <-timeoutCh:+ return nil, ErrClientConnTimeout+ }+ // If balancer is nil or balancer.Notify() is nil, ok will be false here.+ // The lbWatcher goroutine will not be created.+ if ok {+ go cc.lbWatcher()+ }+ return cc, nil+}++// ConnectivityState indicates the state of a client connection.+type ConnectivityState int++const (+ // Idle indicates the ClientConn is idle.+ Idle ConnectivityState = iota+ // Connecting indicates the ClienConn is connecting.+ Connecting+ // Ready indicates the ClientConn is ready for work.+ Ready+ // TransientFailure indicates the ClientConn has seen a failure but expects to recover.+ TransientFailure+ // Shutdown indicates the ClientConn has started shutting down.+ Shutdown+)++func (s ConnectivityState) String() string {+ switch s {+ case Idle:+ return "IDLE"+ case Connecting:+ return "CONNECTING"+ case Ready:+ return "READY"+ case TransientFailure:+ return "TRANSIENT_FAILURE"+ case Shutdown:+ return "SHUTDOWN"+ default:+ panic(fmt.Sprintf("unknown connectivity state: %d", s))+ }+}++// ClientConn represents a client connection to an RPC server.+type ClientConn struct {+ ctx context.Context+ cancel context.CancelFunc++ target string+ authority string+ dopts dialOptions++ mu sync.RWMutex+ conns map[Address]*addrConn+}++func (cc *ClientConn) lbWatcher() {+ for addrs := range cc.dopts.balancer.Notify() {+ var (+ add []Address // Addresses need to setup connections.+ del []*addrConn // Connections need to tear down.+ )+ cc.mu.Lock()+ for _, a := range addrs {+ if _, ok := cc.conns[a]; !ok {+ add = append(add, a)+ }+ }+ for k, c := range cc.conns {+ var keep bool+ for _, a := range addrs {+ if k == a {+ keep = true+ break+ }+ }+ if !keep {+ del = append(del, c)+ delete(cc.conns, c.addr)+ }+ }+ cc.mu.Unlock()+ for _, a := range add {+ cc.resetAddrConn(a, true, nil)+ }+ for _, c := range del {+ c.tearDown(errConnDrain)+ }+ }+}++// resetAddrConn creates an addrConn for addr and adds it to cc.conns.+// If there is an old addrConn for addr, it will be torn down, using tearDownErr as the reason.+// If tearDownErr is nil, errConnDrain will be used instead.+func (cc *ClientConn) resetAddrConn(addr Address, skipWait bool, tearDownErr error) error {+ ac := &addrConn{+ cc: cc,+ addr: addr,+ dopts: cc.dopts,+ }+ ac.ctx, ac.cancel = context.WithCancel(cc.ctx)+ ac.stateCV = sync.NewCond(&ac.mu)+ if EnableTracing {+ ac.events = trace.NewEventLog("grpc.ClientConn", ac.addr.Addr)+ }+ if !ac.dopts.insecure {+ if ac.dopts.copts.TransportCredentials == nil {+ return errNoTransportSecurity+ }+ } else {+ if ac.dopts.copts.TransportCredentials != nil {+ return errCredentialsConflict+ }+ for _, cd := range ac.dopts.copts.PerRPCCredentials {+ if cd.RequireTransportSecurity() {+ return errTransportCredentialsMissing+ }+ }+ }+ // Track ac in cc. This needs to be done before any getTransport(...) is called.+ cc.mu.Lock()+ if cc.conns == nil {+ cc.mu.Unlock()+ return ErrClientConnClosing+ }+ stale := cc.conns[ac.addr]+ cc.conns[ac.addr] = ac+ cc.mu.Unlock()+ if stale != nil {+ // There is an addrConn alive on ac.addr already. This could be due to+ // 1) a buggy Balancer notifies duplicated Addresses;+ // 2) goaway was received, a new ac will replace the old ac.+ // The old ac should be deleted from cc.conns, but the+ // underlying transport should drain rather than close.+ if tearDownErr == nil {+ // tearDownErr is nil if resetAddrConn is called by+ // 1) Dial+ // 2) lbWatcher+ // In both cases, the stale ac should drain, not close.+ stale.tearDown(errConnDrain)+ } else {+ stale.tearDown(tearDownErr)+ }+ }+ // skipWait may overwrite the decision in ac.dopts.block.+ if ac.dopts.block && !skipWait {+ if err := ac.resetTransport(false); err != nil {+ if err != errConnClosing {+ // Tear down ac and delete it from cc.conns.+ cc.mu.Lock()+ delete(cc.conns, ac.addr)+ cc.mu.Unlock()+ ac.tearDown(err)+ }+ if e, ok := err.(transport.ConnectionError); ok && !e.Temporary() {+ return e.Origin()+ }+ return err+ }+ // Start to monitor the error status of transport.+ go ac.transportMonitor()+ } else {+ // Start a goroutine connecting to the server asynchronously.+ go func() {+ if err := ac.resetTransport(false); err != nil {+ grpclog.Printf("Failed to dial %s: %v; please retry.", ac.addr.Addr, err)+ if err != errConnClosing {+ // Keep this ac in cc.conns, to get the reason it's torn down.+ ac.tearDown(err)+ }+ return+ }+ ac.transportMonitor()+ }()+ }+ return nil+}++func (cc *ClientConn) getTransport(ctx context.Context, opts BalancerGetOptions) (transport.ClientTransport, func(), error) {+ var (+ ac *addrConn+ ok bool+ put func()+ )+ if cc.dopts.balancer == nil {+ // If balancer is nil, there should be only one addrConn available.+ cc.mu.RLock()+ if cc.conns == nil {+ cc.mu.RUnlock()+ return nil, nil, toRPCErr(ErrClientConnClosing)+ }+ for _, ac = range cc.conns {+ // Break after the first iteration to get the first addrConn.+ ok = true+ break+ }+ cc.mu.RUnlock()+ } else {+ var (+ addr Address+ err error+ )+ addr, put, err = cc.dopts.balancer.Get(ctx, opts)+ if err != nil {+ return nil, nil, toRPCErr(err)+ }+ cc.mu.RLock()+ if cc.conns == nil {+ cc.mu.RUnlock()+ return nil, nil, toRPCErr(ErrClientConnClosing)+ }+ ac, ok = cc.conns[addr]+ cc.mu.RUnlock()+ }+ if !ok {+ if put != nil {+ put()+ }+ return nil, nil, errConnClosing+ }+ t, err := ac.wait(ctx, cc.dopts.balancer != nil, !opts.BlockingWait)+ if err != nil {+ if put != nil {+ put()+ }+ return nil, nil, err+ }+ return t, put, nil+}++// Close tears down the ClientConn and all underlying connections.+func (cc *ClientConn) Close() error {+ cc.cancel()++ cc.mu.Lock()+ if cc.conns == nil {+ cc.mu.Unlock()+ return ErrClientConnClosing+ }+ conns := cc.conns+ cc.conns = nil+ cc.mu.Unlock()+ if cc.dopts.balancer != nil {+ cc.dopts.balancer.Close()+ }+ for _, ac := range conns {+ ac.tearDown(ErrClientConnClosing)+ }+ return nil+}++// addrConn is a network connection to a given address.+type addrConn struct {+ ctx context.Context+ cancel context.CancelFunc++ cc *ClientConn+ addr Address+ dopts dialOptions+ events trace.EventLog++ mu sync.Mutex+ state ConnectivityState+ stateCV *sync.Cond+ down func(error) // the handler called when a connection is down.+ // ready is closed and becomes nil when a new transport is up or failed+ // due to timeout.+ ready chan struct{}+ transport transport.ClientTransport++ // The reason this addrConn is torn down.+ tearDownErr error+}++// printf records an event in ac's event log, unless ac has been closed.+// REQUIRES ac.mu is held.+func (ac *addrConn) printf(format string, a ...interface{}) {+ if ac.events != nil {+ ac.events.Printf(format, a...)+ }+}++// errorf records an error in ac's event log, unless ac has been closed.+// REQUIRES ac.mu is held.+func (ac *addrConn) errorf(format string, a ...interface{}) {+ if ac.events != nil {+ ac.events.Errorf(format, a...)+ }+}++// getState returns the connectivity state of the Conn+func (ac *addrConn) getState() ConnectivityState {+ ac.mu.Lock()+ defer ac.mu.Unlock()+ return ac.state+}++// waitForStateChange blocks until the state changes to something other than the sourceState.+func (ac *addrConn) waitForStateChange(ctx context.Context, sourceState ConnectivityState) (ConnectivityState, error) {+ ac.mu.Lock()+ defer ac.mu.Unlock()+ if sourceState != ac.state {+ return ac.state, nil+ }+ done := make(chan struct{})+ var err error+ go func() {+ select {+ case <-ctx.Done():+ ac.mu.Lock()+ err = ctx.Err()+ ac.stateCV.Broadcast()+ ac.mu.Unlock()+ case <-done:+ }+ }()+ defer close(done)+ for sourceState == ac.state {+ ac.stateCV.Wait()+ if err != nil {+ return ac.state, err+ }+ }+ return ac.state, nil+}++func (ac *addrConn) resetTransport(closeTransport bool) error {+ for retries := 0; ; retries++ {+ ac.mu.Lock()+ ac.printf("connecting")+ if ac.state == Shutdown {+ // ac.tearDown(...) has been invoked.+ ac.mu.Unlock()+ return errConnClosing+ }+ if ac.down != nil {+ ac.down(downErrorf(false, true, "%v", errNetworkIO))+ ac.down = nil+ }+ ac.state = Connecting+ ac.stateCV.Broadcast()+ t := ac.transport+ ac.mu.Unlock()+ if closeTransport && t != nil {+ t.Close()+ }+ sleepTime := ac.dopts.bs.backoff(retries)+ timeout := minConnectTimeout+ if timeout < sleepTime {+ timeout = sleepTime+ }+ ctx, cancel := context.WithTimeout(ac.ctx, timeout)+ connectTime := time.Now()+ sinfo := transport.TargetInfo{+ Addr: ac.addr.Addr,+ Metadata: ac.addr.Metadata,+ }+ newTransport, err := transport.NewClientTransport(ctx, sinfo, ac.dopts.copts)+ if err != nil {+ cancel()++ if e, ok := err.(transport.ConnectionError); ok && !e.Temporary() {+ return err+ }+ grpclog.Printf("grpc: addrConn.resetTransport failed to create client transport: %v; Reconnecting to %v", err, ac.addr)+ ac.mu.Lock()+ if ac.state == Shutdown {+ // ac.tearDown(...) has been invoked.+ ac.mu.Unlock()+ return errConnClosing+ }+ ac.errorf("transient failure: %v", err)+ ac.state = TransientFailure+ ac.stateCV.Broadcast()+ if ac.ready != nil {+ close(ac.ready)+ ac.ready = nil+ }+ ac.mu.Unlock()+ closeTransport = false+ select {+ case <-time.After(sleepTime - time.Since(connectTime)):+ case <-ac.ctx.Done():+ return ac.ctx.Err()+ }+ continue+ }+ ac.mu.Lock()+ ac.printf("ready")+ if ac.state == Shutdown {+ // ac.tearDown(...) has been invoked.+ ac.mu.Unlock()+ newTransport.Close()+ return errConnClosing+ }+ ac.state = Ready+ ac.stateCV.Broadcast()+ ac.transport = newTransport+ if ac.ready != nil {+ close(ac.ready)+ ac.ready = nil+ }+ if ac.cc.dopts.balancer != nil {+ ac.down = ac.cc.dopts.balancer.Up(ac.addr)+ }+ ac.mu.Unlock()+ return nil+ }+}++// Run in a goroutine to track the error in transport and create the+// new transport if an error happens. It returns when the channel is closing.+func (ac *addrConn) transportMonitor() {+ for {+ ac.mu.Lock()+ t := ac.transport+ ac.mu.Unlock()+ select {+ // This is needed to detect the teardown when+ // the addrConn is idle (i.e., no RPC in flight).+ case <-ac.ctx.Done():+ select {+ case <-t.Error():+ t.Close()+ default:+ }+ return+ case <-t.GoAway():+ // If GoAway happens without any network I/O error, ac is closed without shutting down the+ // underlying transport (the transport will be closed when all the pending RPCs finished or+ // failed.).+ // If GoAway and some network I/O error happen concurrently, ac and its underlying transport+ // are closed.+ // In both cases, a new ac is created.+ select {+ case <-t.Error():+ ac.cc.resetAddrConn(ac.addr, true, errNetworkIO)+ default:+ ac.cc.resetAddrConn(ac.addr, true, errConnDrain)+ }+ return+ case <-t.Error():+ select {+ case <-ac.ctx.Done():+ t.Close()+ return+ case <-t.GoAway():+ ac.cc.resetAddrConn(ac.addr, true, errNetworkIO)+ return+ default:+ }+ ac.mu.Lock()+ if ac.state == Shutdown {+ // ac has been shutdown.+ ac.mu.Unlock()+ return+ }+ ac.state = TransientFailure+ ac.stateCV.Broadcast()+ ac.mu.Unlock()+ if err := ac.resetTransport(true); err != nil {+ ac.mu.Lock()+ ac.printf("transport exiting: %v", err)+ ac.mu.Unlock()+ grpclog.Printf("grpc: addrConn.transportMonitor exits due to: %v", err)+ if err != errConnClosing {+ // Keep this ac in cc.conns, to get the reason it's torn down.+ ac.tearDown(err)+ }+ return+ }+ }+ }+}++// wait blocks until i) the new transport is up or ii) ctx is done or iii) ac is closed or+// iv) transport is in TransientFailure and there is a balancer/failfast is true.+func (ac *addrConn) wait(ctx context.Context, hasBalancer, failfast bool) (transport.ClientTransport, error) {+ for {+ ac.mu.Lock()+ switch {+ case ac.state == Shutdown:+ if failfast || !hasBalancer {+ // RPC is failfast or balancer is nil. This RPC should fail with ac.tearDownErr.+ err := ac.tearDownErr+ ac.mu.Unlock()+ return nil, err+ }+ ac.mu.Unlock()+ return nil, errConnClosing+ case ac.state == Ready:+ ct := ac.transport+ ac.mu.Unlock()+ return ct, nil+ case ac.state == TransientFailure:+ if failfast || hasBalancer {+ ac.mu.Unlock()+ return nil, errConnUnavailable+ }+ }+ ready := ac.ready+ if ready == nil {+ ready = make(chan struct{})+ ac.ready = ready+ }+ ac.mu.Unlock()+ select {+ case <-ctx.Done():+ return nil, toRPCErr(ctx.Err())+ // Wait until the new transport is ready or failed.+ case <-ready:+ }+ }+}++// tearDown starts to tear down the addrConn.+// TODO(zhaoq): Make this synchronous to avoid unbounded memory consumption in+// some edge cases (e.g., the caller opens and closes many addrConn's in a+// tight loop.+// tearDown doesn't remove ac from ac.cc.conns.+func (ac *addrConn) tearDown(err error) {+ ac.cancel()++ ac.mu.Lock()+ defer ac.mu.Unlock()+ if ac.down != nil {+ ac.down(downErrorf(false, false, "%v", err))+ ac.down = nil+ }+ if err == errConnDrain && ac.transport != nil {+ // GracefulClose(...) may be executed multiple times when+ // i) receiving multiple GoAway frames from the server; or+ // ii) there are concurrent name resolver/Balancer triggered+ // address removal and GoAway.+ ac.transport.GracefulClose()+ }+ if ac.state == Shutdown {+ return+ }+ ac.state = Shutdown+ ac.tearDownErr = err+ ac.stateCV.Broadcast()+ if ac.events != nil {+ ac.events.Finish()+ ac.events = nil+ }+ if ac.ready != nil {+ close(ac.ready)+ ac.ready = nil+ }+ if ac.transport != nil && err != errConnDrain {+ ac.transport.Close()+ }+ return+}diff --git a/vendor/google.golang.org/grpc/codegen.sh b/vendor/google.golang.org/grpc/codegen.shnew file mode 100755index 000000000..b00948884--- /dev/null+++ b/vendor/google.golang.org/grpc/codegen.sh@@ -0,0 +1,17 @@+#!/bin/bash++# This script serves as an example to demonstrate how to generate the gRPC-Go+# interface and the related messages from .proto file.+#+# It assumes the installation of i) Google proto buffer compiler at+# https://github.com/google/protobuf (after v2.6.1) and ii) the Go codegen+# plugin at https://github.com/golang/protobuf (after 2015-02-20). If you have+# not, please install them first.+#+# We recommend running this script at $GOPATH/src.+#+# If this is not what you need, feel free to make your own scripts. Again, this+# script is for demonstration purpose.+#+proto=$1+protoc --go_out=plugins=grpc:. $protodiff --git a/vendor/google.golang.org/grpc/codes/code_string.go b/vendor/google.golang.org/grpc/codes/code_string.gonew file mode 100644index 000000000..e6762d084--- /dev/null+++ b/vendor/google.golang.org/grpc/codes/code_string.go@@ -0,0 +1,16 @@+// generated by stringer -type=Code; DO NOT EDIT++package codes++import "fmt"++const _Code_name = "OKCanceledUnknownInvalidArgumentDeadlineExceededNotFoundAlreadyExistsPermissionDeniedResourceExhaustedFailedPreconditionAbortedOutOfRangeUnimplementedInternalUnavailableDataLossUnauthenticated"++var _Code_index = [...]uint8{0, 2, 10, 17, 32, 48, 56, 69, 85, 102, 120, 127, 137, 150, 158, 169, 177, 192}++func (i Code) String() string {+ if i+1 >= Code(len(_Code_index)) {+ return fmt.Sprintf("Code(%d)", i)+ }+ return _Code_name[_Code_index[i]:_Code_index[i+1]]+}diff --git a/vendor/google.golang.org/grpc/codes/codes.go b/vendor/google.golang.org/grpc/codes/codes.gonew file mode 100644index 000000000..37c5b860b--- /dev/null+++ b/vendor/google.golang.org/grpc/codes/codes.go@@ -0,0 +1,159 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++// Package codes defines the canonical error codes used by gRPC. It is+// consistent across various languages.+package codes++// A Code is an unsigned 32-bit error code as defined in the gRPC spec.+type Code uint32++//go:generate stringer -type=Code++const (+ // OK is returned on success.+ OK Code = 0++ // Canceled indicates the operation was cancelled (typically by the caller).+ Canceled Code = 1++ // Unknown error. An example of where this error may be returned is+ // if a Status value received from another address space belongs to+ // an error-space that is not known in this address space. Also+ // errors raised by APIs that do not return enough error information+ // may be converted to this error.+ Unknown Code = 2++ // InvalidArgument indicates client specified an invalid argument.+ // Note that this differs from FailedPrecondition. It indicates arguments+ // that are problematic regardless of the state of the system+ // (e.g., a malformed file name).+ InvalidArgument Code = 3++ // DeadlineExceeded means operation expired before completion.+ // For operations that change the state of the system, this error may be+ // returned even if the operation has completed successfully. For+ // example, a successful response from a server could have been delayed+ // long enough for the deadline to expire.+ DeadlineExceeded Code = 4++ // NotFound means some requested entity (e.g., file or directory) was+ // not found.+ NotFound Code = 5++ // AlreadyExists means an attempt to create an entity failed because one+ // already exists.+ AlreadyExists Code = 6++ // PermissionDenied indicates the caller does not have permission to+ // execute the specified operation. It must not be used for rejections+ // caused by exhausting some resource (use ResourceExhausted+ // instead for those errors). It must not be+ // used if the caller cannot be identified (use Unauthenticated+ // instead for those errors).+ PermissionDenied Code = 7++ // Unauthenticated indicates the request does not have valid+ // authentication credentials for the operation.+ Unauthenticated Code = 16++ // ResourceExhausted indicates some resource has been exhausted, perhaps+ // a per-user quota, or perhaps the entire file system is out of space.+ ResourceExhausted Code = 8++ // FailedPrecondition indicates operation was rejected because the+ // system is not in a state required for the operation's execution.+ // For example, directory to be deleted may be non-empty, an rmdir+ // operation is applied to a non-directory, etc.+ //+ // A litmus test that may help a service implementor in deciding+ // between FailedPrecondition, Aborted, and Unavailable:+ // (a) Use Unavailable if the client can retry just the failing call.+ // (b) Use Aborted if the client should retry at a higher-level+ // (e.g., restarting a read-modify-write sequence).+ // (c) Use FailedPrecondition if the client should not retry until+ // the system state has been explicitly fixed. E.g., if an "rmdir"+ // fails because the directory is non-empty, FailedPrecondition+ // should be returned since the client should not retry unless+ // they have first fixed up the directory by deleting files from it.+ // (d) Use FailedPrecondition if the client performs conditional+ // REST Get/Update/Delete on a resource and the resource on the+ // server does not match the condition. E.g., conflicting+ // read-modify-write on the same resource.+ FailedPrecondition Code = 9++ // Aborted indicates the operation was aborted, typically due to a+ // concurrency issue like sequencer check failures, transaction aborts,+ // etc.+ //+ // See litmus test above for deciding between FailedPrecondition,+ // Aborted, and Unavailable.+ Aborted Code = 10++ // OutOfRange means operation was attempted past the valid range.+ // E.g., seeking or reading past end of file.+ //+ // Unlike InvalidArgument, this error indicates a problem that may+ // be fixed if the system state changes. For example, a 32-bit file+ // system will generate InvalidArgument if asked to read at an+ // offset that is not in the range [0,2^32-1], but it will generate+ // OutOfRange if asked to read from an offset past the current+ // file size.+ //+ // There is a fair bit of overlap between FailedPrecondition and+ // OutOfRange. We recommend using OutOfRange (the more specific+ // error) when it applies so that callers who are iterating through+ // a space can easily look for an OutOfRange error to detect when+ // they are done.+ OutOfRange Code = 11++ // Unimplemented indicates operation is not implemented or not+ // supported/enabled in this service.+ Unimplemented Code = 12++ // Internal errors. Means some invariants expected by underlying+ // system has been broken. If you see one of these errors,+ // something is very broken.+ Internal Code = 13++ // Unavailable indicates the service is currently unavailable.+ // This is a most likely a transient condition and may be corrected+ // by retrying with a backoff.+ //+ // See litmus test above for deciding between FailedPrecondition,+ // Aborted, and Unavailable.+ Unavailable Code = 14++ // DataLoss indicates unrecoverable data loss or corruption.+ DataLoss Code = 15+)diff --git a/vendor/google.golang.org/grpc/coverage.sh b/vendor/google.golang.org/grpc/coverage.shnew file mode 100755index 000000000..120235374--- /dev/null+++ b/vendor/google.golang.org/grpc/coverage.sh@@ -0,0 +1,47 @@+#!/bin/bash++set -e++workdir=.cover+profile="$workdir/cover.out"+mode=set+end2endtest="google.golang.org/grpc/test"++generate_cover_data() {+ rm -rf "$workdir"+ mkdir "$workdir"++ for pkg in "$@"; do+ if [ $pkg == "google.golang.org/grpc" -o $pkg == "google.golang.org/grpc/transport" -o $pkg == "google.golang.org/grpc/metadata" -o $pkg == "google.golang.org/grpc/credentials" ]+ then+ f="$workdir/$(echo $pkg | tr / -)"+ go test -covermode="$mode" -coverprofile="$f.cover" "$pkg"+ go test -covermode="$mode" -coverpkg "$pkg" -coverprofile="$f.e2e.cover" "$end2endtest"+ fi+ done++ echo "mode: $mode" >"$profile"+ grep -h -v "^mode:" "$workdir"/*.cover >>"$profile"+}++show_cover_report() {+ go tool cover -${1}="$profile"+}++push_to_coveralls() {+ goveralls -coverprofile="$profile"+}++generate_cover_data $(go list ./...)+show_cover_report func+case "$1" in+"")+ ;;+--html)+ show_cover_report html ;;+--coveralls)+ push_to_coveralls ;;+*)+ echo >&2 "error: invalid option: $1" ;;+esac+rm -rf "$workdir"diff --git a/vendor/google.golang.org/grpc/credentials/credentials.go b/vendor/google.golang.org/grpc/credentials/credentials.gonew file mode 100644index 000000000..4154f1eeb--- /dev/null+++ b/vendor/google.golang.org/grpc/credentials/credentials.go@@ -0,0 +1,232 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++// Package credentials implements various credentials supported by gRPC library,+// which encapsulate all the state needed by a client to authenticate with a+// server and make various assertions, e.g., about the client's identity, role,+// or whether it is authorized to make a particular call.+package credentials++import (+ "crypto/tls"+ "crypto/x509"+ "errors"+ "fmt"+ "io/ioutil"+ "net"+ "strings"++ "golang.org/x/net/context"+)++var (+ // alpnProtoStr are the specified application level protocols for gRPC.+ alpnProtoStr = []string{"h2"}+)++// PerRPCCredentials defines the common interface for the credentials which need to+// attach security information to every RPC (e.g., oauth2).+type PerRPCCredentials interface {+ // GetRequestMetadata gets the current request metadata, refreshing+ // tokens if required. This should be called by the transport layer on+ // each request, and the data should be populated in headers or other+ // context. uri is the URI of the entry point for the request. When+ // supported by the underlying implementation, ctx can be used for+ // timeout and cancellation.+ // TODO(zhaoq): Define the set of the qualified keys instead of leaving+ // it as an arbitrary string.+ GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)+ // RequireTransportSecurity indicates whether the credentials requires+ // transport security.+ RequireTransportSecurity() bool+}++// ProtocolInfo provides information regarding the gRPC wire protocol version,+// security protocol, security protocol version in use, server name, etc.+type ProtocolInfo struct {+ // ProtocolVersion is the gRPC wire protocol version.+ ProtocolVersion string+ // SecurityProtocol is the security protocol in use.+ SecurityProtocol string+ // SecurityVersion is the security protocol version.+ SecurityVersion string+ // ServerName is the user-configured server name.+ ServerName string+}++// AuthInfo defines the common interface for the auth information the users are interested in.+type AuthInfo interface {+ AuthType() string+}++var (+ // ErrConnDispatched indicates that rawConn has been dispatched out of gRPC+ // and the caller should not close rawConn.+ ErrConnDispatched = errors.New("credentials: rawConn is dispatched out of gRPC")+)++// TransportCredentials defines the common interface for all the live gRPC wire+// protocols and supported transport security protocols (e.g., TLS, SSL).+type TransportCredentials interface {+ // ClientHandshake does the authentication handshake specified by the corresponding+ // authentication protocol on rawConn for clients. It returns the authenticated+ // connection and the corresponding auth information about the connection.+ // Implementations must use the provided context to implement timely cancellation.+ ClientHandshake(context.Context, string, net.Conn) (net.Conn, AuthInfo, error)+ // ServerHandshake does the authentication handshake for servers. It returns+ // the authenticated connection and the corresponding auth information about+ // the connection.+ ServerHandshake(net.Conn) (net.Conn, AuthInfo, error)+ // Info provides the ProtocolInfo of this TransportCredentials.+ Info() ProtocolInfo+ // Clone makes a copy of this TransportCredentials.+ Clone() TransportCredentials+ // OverrideServerName overrides the server name used to verify the hostname on the returned certificates from the server.+ // gRPC internals also use it to override the virtual hosting name if it is set.+ // It must be called before dialing. Currently, this is only used by grpclb.+ OverrideServerName(string) error+}++// TLSInfo contains the auth information for a TLS authenticated connection.+// It implements the AuthInfo interface.+type TLSInfo struct {+ State tls.ConnectionState+}++// AuthType returns the type of TLSInfo as a string.+func (t TLSInfo) AuthType() string {+ return "tls"+}++// tlsCreds is the credentials required for authenticating a connection using TLS.+type tlsCreds struct {+ // TLS configuration+ config *tls.Config+}++func (c tlsCreds) Info() ProtocolInfo {+ return ProtocolInfo{+ SecurityProtocol: "tls",+ SecurityVersion: "1.2",+ ServerName: c.config.ServerName,+ }+}++func (c *tlsCreds) ClientHandshake(ctx context.Context, addr string, rawConn net.Conn) (_ net.Conn, _ AuthInfo, err error) {+ // use local cfg to avoid clobbering ServerName if using multiple endpoints+ cfg := cloneTLSConfig(c.config)+ if cfg.ServerName == "" {+ colonPos := strings.LastIndex(addr, ":")+ if colonPos == -1 {+ colonPos = len(addr)+ }+ cfg.ServerName = addr[:colonPos]+ }+ conn := tls.Client(rawConn, cfg)+ errChannel := make(chan error, 1)+ go func() {+ errChannel <- conn.Handshake()+ }()+ select {+ case err := <-errChannel:+ if err != nil {+ return nil, nil, err+ }+ case <-ctx.Done():+ return nil, nil, ctx.Err()+ }+ // TODO(zhaoq): Omit the auth info for client now. It is more for+ // information than anything else.+ return conn, nil, nil+}++func (c *tlsCreds) ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error) {+ conn := tls.Server(rawConn, c.config)+ if err := conn.Handshake(); err != nil {+ return nil, nil, err+ }+ return conn, TLSInfo{conn.ConnectionState()}, nil+}++func (c *tlsCreds) Clone() TransportCredentials {+ return NewTLS(c.config)+}++func (c *tlsCreds) OverrideServerName(serverNameOverride string) error {+ c.config.ServerName = serverNameOverride+ return nil+}++// NewTLS uses c to construct a TransportCredentials based on TLS.+func NewTLS(c *tls.Config) TransportCredentials {+ tc := &tlsCreds{cloneTLSConfig(c)}+ tc.config.NextProtos = alpnProtoStr+ return tc+}++// NewClientTLSFromCert constructs a TLS from the input certificate for client.+// serverNameOverride is for testing only. If set to a non empty string,+// it will override the virtual host name of authority (e.g. :authority header field) in requests.+func NewClientTLSFromCert(cp *x509.CertPool, serverNameOverride string) TransportCredentials {+ return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp})+}++// NewClientTLSFromFile constructs a TLS from the input certificate file for client.+// serverNameOverride is for testing only. If set to a non empty string,+// it will override the virtual host name of authority (e.g. :authority header field) in requests.+func NewClientTLSFromFile(certFile, serverNameOverride string) (TransportCredentials, error) {+ b, err := ioutil.ReadFile(certFile)+ if err != nil {+ return nil, err+ }+ cp := x509.NewCertPool()+ if !cp.AppendCertsFromPEM(b) {+ return nil, fmt.Errorf("credentials: failed to append certificates")+ }+ return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp}), nil+}++// NewServerTLSFromCert constructs a TLS from the input certificate for server.+func NewServerTLSFromCert(cert *tls.Certificate) TransportCredentials {+ return NewTLS(&tls.Config{Certificates: []tls.Certificate{*cert}})+}++// NewServerTLSFromFile constructs a TLS from the input certificate file and key+// file for server.+func NewServerTLSFromFile(certFile, keyFile string) (TransportCredentials, error) {+ cert, err := tls.LoadX509KeyPair(certFile, keyFile)+ if err != nil {+ return nil, err+ }+ return NewTLS(&tls.Config{Certificates: []tls.Certificate{cert}}), nil+}diff --git a/vendor/google.golang.org/grpc/credentials/credentials_util_go17.go b/vendor/google.golang.org/grpc/credentials/credentials_util_go17.gonew file mode 100644index 000000000..9647b9ec8--- /dev/null+++ b/vendor/google.golang.org/grpc/credentials/credentials_util_go17.go@@ -0,0 +1,76 @@+// +build go1.7++/*+ *+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package credentials++import (+ "crypto/tls"+)++// cloneTLSConfig returns a shallow clone of the exported+// fields of cfg, ignoring the unexported sync.Once, which+// contains a mutex and must not be copied.+//+// If cfg is nil, a new zero tls.Config is returned.+//+// TODO replace this function with official clone function.+func cloneTLSConfig(cfg *tls.Config) *tls.Config {+ if cfg == nil {+ return &tls.Config{}+ }+ return &tls.Config{+ Rand: cfg.Rand,+ Time: cfg.Time,+ Certificates: cfg.Certificates,+ NameToCertificate: cfg.NameToCertificate,+ GetCertificate: cfg.GetCertificate,+ RootCAs: cfg.RootCAs,+ NextProtos: cfg.NextProtos,+ ServerName: cfg.ServerName,+ ClientAuth: cfg.ClientAuth,+ ClientCAs: cfg.ClientCAs,+ InsecureSkipVerify: cfg.InsecureSkipVerify,+ CipherSuites: cfg.CipherSuites,+ PreferServerCipherSuites: cfg.PreferServerCipherSuites,+ SessionTicketsDisabled: cfg.SessionTicketsDisabled,+ SessionTicketKey: cfg.SessionTicketKey,+ ClientSessionCache: cfg.ClientSessionCache,+ MinVersion: cfg.MinVersion,+ MaxVersion: cfg.MaxVersion,+ CurvePreferences: cfg.CurvePreferences,+ DynamicRecordSizingDisabled: cfg.DynamicRecordSizingDisabled,+ Renegotiation: cfg.Renegotiation,+ }+}diff --git a/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go b/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.gonew file mode 100644index 000000000..09b8d12c7--- /dev/null+++ b/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go@@ -0,0 +1,74 @@+// +build !go1.7++/*+ *+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package credentials++import (+ "crypto/tls"+)++// cloneTLSConfig returns a shallow clone of the exported+// fields of cfg, ignoring the unexported sync.Once, which+// contains a mutex and must not be copied.+//+// If cfg is nil, a new zero tls.Config is returned.+//+// TODO replace this function with official clone function.+func cloneTLSConfig(cfg *tls.Config) *tls.Config {+ if cfg == nil {+ return &tls.Config{}+ }+ return &tls.Config{+ Rand: cfg.Rand,+ Time: cfg.Time,+ Certificates: cfg.Certificates,+ NameToCertificate: cfg.NameToCertificate,+ GetCertificate: cfg.GetCertificate,+ RootCAs: cfg.RootCAs,+ NextProtos: cfg.NextProtos,+ ServerName: cfg.ServerName,+ ClientAuth: cfg.ClientAuth,+ ClientCAs: cfg.ClientCAs,+ InsecureSkipVerify: cfg.InsecureSkipVerify,+ CipherSuites: cfg.CipherSuites,+ PreferServerCipherSuites: cfg.PreferServerCipherSuites,+ SessionTicketsDisabled: cfg.SessionTicketsDisabled,+ SessionTicketKey: cfg.SessionTicketKey,+ ClientSessionCache: cfg.ClientSessionCache,+ MinVersion: cfg.MinVersion,+ MaxVersion: cfg.MaxVersion,+ CurvePreferences: cfg.CurvePreferences,+ }+}diff --git a/vendor/google.golang.org/grpc/doc.go b/vendor/google.golang.org/grpc/doc.gonew file mode 100644index 000000000..b4c0e740e--- /dev/null+++ b/vendor/google.golang.org/grpc/doc.go@@ -0,0 +1,6 @@+/*+Package grpc implements an RPC system called gRPC.++See www.grpc.io for more information about gRPC.+*/+package grpcdiff --git a/vendor/google.golang.org/grpc/grpclog/logger.go b/vendor/google.golang.org/grpc/grpclog/logger.gonew file mode 100644index 000000000..2cc09be48--- /dev/null+++ b/vendor/google.golang.org/grpc/grpclog/logger.go@@ -0,0 +1,93 @@+/*+ *+ * Copyright 2015, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++/*+Package grpclog defines logging for grpc.+*/+package grpclog++import (+ "log"+ "os"+)++// Use golang's standard logger by default.+// Access is not mutex-protected: do not modify except in init()+// functions.+var logger Logger = log.New(os.Stderr, "", log.LstdFlags)++// Logger mimics golang's standard Logger as an interface.+type Logger interface {+ Fatal(args ...interface{})+ Fatalf(format string, args ...interface{})+ Fatalln(args ...interface{})+ Print(args ...interface{})+ Printf(format string, args ...interface{})+ Println(args ...interface{})+}++// SetLogger sets the logger that is used in grpc. Call only from+// init() functions.+func SetLogger(l Logger) {+ logger = l+}++// Fatal is equivalent to Print() followed by a call to os.Exit() with a non-zero exit code.+func Fatal(args ...interface{}) {+ logger.Fatal(args...)+}++// Fatalf is equivalent to Printf() followed by a call to os.Exit() with a non-zero exit code.+func Fatalf(format string, args ...interface{}) {+ logger.Fatalf(format, args...)+}++// Fatalln is equivalent to Println() followed by a call to os.Exit()) with a non-zero exit code.+func Fatalln(args ...interface{}) {+ logger.Fatalln(args...)+}++// Print prints to the logger. Arguments are handled in the manner of fmt.Print.+func Print(args ...interface{}) {+ logger.Print(args...)+}++// Printf prints to the logger. Arguments are handled in the manner of fmt.Printf.+func Printf(format string, args ...interface{}) {+ logger.Printf(format, args...)+}++// Println prints to the logger. Arguments are handled in the manner of fmt.Println.+func Println(args ...interface{}) {+ logger.Println(args...)+}diff --git a/vendor/google.golang.org/grpc/interceptor.go b/vendor/google.golang.org/grpc/interceptor.gonew file mode 100644index 000000000..8d932efed--- /dev/null+++ b/vendor/google.golang.org/grpc/interceptor.go@@ -0,0 +1,90 @@+/*+ *+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package grpc++import (+ "golang.org/x/net/context"+)++// UnaryInvoker is called by UnaryClientInterceptor to complete RPCs.+type UnaryInvoker func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, opts ...CallOption) error++// UnaryClientInterceptor intercepts the execution of a unary RPC on the client. inovker is the handler to complete the RPC+// and it is the responsibility of the interceptor to call it.+// This is the EXPERIMENTAL API.+type UnaryClientInterceptor func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, invoker UnaryInvoker, opts ...CallOption) error++// Streamer is called by StreamClientInterceptor to create a ClientStream.+type Streamer func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error)++// StreamClientInterceptor intercepts the creation of ClientStream. It may return a custom ClientStream to intercept all I/O+// operations. streamer is the handlder to create a ClientStream and it is the responsibility of the interceptor to call it.+// This is the EXPERIMENTAL API.+type StreamClientInterceptor func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, streamer Streamer, opts ...CallOption) (ClientStream, error)++// UnaryServerInfo consists of various information about a unary RPC on+// server side. All per-rpc information may be mutated by the interceptor.+type UnaryServerInfo struct {+ // Server is the service implementation the user provides. This is read-only.+ Server interface{}+ // FullMethod is the full RPC method string, i.e., /package.service/method.+ FullMethod string+}++// UnaryHandler defines the handler invoked by UnaryServerInterceptor to complete the normal+// execution of a unary RPC.+type UnaryHandler func(ctx context.Context, req interface{}) (interface{}, error)++// UnaryServerInterceptor provides a hook to intercept the execution of a unary RPC on the server. info+// contains all the information of this RPC the interceptor can operate on. And handler is the wrapper+// of the service method implementation. It is the responsibility of the interceptor to invoke handler+// to complete the RPC.+type UnaryServerInterceptor func(ctx context.Context, req interface{}, info *UnaryServerInfo, handler UnaryHandler) (resp interface{}, err error)++// StreamServerInfo consists of various information about a streaming RPC on+// server side. All per-rpc information may be mutated by the interceptor.+type StreamServerInfo struct {+ // FullMethod is the full RPC method string, i.e., /package.service/method.+ FullMethod string+ // IsClientStream indicates whether the RPC is a client streaming RPC.+ IsClientStream bool+ // IsServerStream indicates whether the RPC is a server streaming RPC.+ IsServerStream bool+}++// StreamServerInterceptor provides a hook to intercept the execution of a streaming RPC on the server.+// info contains all the information of this RPC the interceptor can operate on. And handler is the+// service method implementation. It is the responsibility of the interceptor to invoke handler to+// complete the RPC.+type StreamServerInterceptor func(srv interface{}, ss ServerStream, info *StreamServerInfo, handler StreamHandler) errordiff --git a/vendor/google.golang.org/grpc/internal/internal.go b/vendor/google.golang.org/grpc/internal/internal.gonew file mode 100644index 000000000..5489143a8--- /dev/null+++ b/vendor/google.golang.org/grpc/internal/internal.go@@ -0,0 +1,49 @@+/*+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++// Package internal contains gRPC-internal code for testing, to avoid polluting+// the godoc of the top-level grpc package.+package internal++// TestingCloseConns closes all existing transports but keeps+// grpcServer.lis accepting new connections.+//+// The provided grpcServer must be of type *grpc.Server. It is untyped+// for circular dependency reasons.+var TestingCloseConns func(grpcServer interface{})++// TestingUseHandlerImpl enables the http.Handler-based server implementation.+// It must be called before Serve and requires TLS credentials.+//+// The provided grpcServer must be of type *grpc.Server. It is untyped+// for circular dependency reasons.+var TestingUseHandlerImpl func(grpcServer interface{})diff --git a/vendor/google.golang.org/grpc/metadata/metadata.go b/vendor/google.golang.org/grpc/metadata/metadata.gonew file mode 100644index 000000000..7295f0056--- /dev/null+++ b/vendor/google.golang.org/grpc/metadata/metadata.go@@ -0,0 +1,149 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++// Package metadata define the structure of the metadata supported by gRPC library.+package metadata++import (+ "encoding/base64"+ "fmt"+ "strings"++ "golang.org/x/net/context"+)++const (+ binHdrSuffix = "-bin"+)++// encodeKeyValue encodes key and value qualified for transmission via gRPC.+// Transmitting binary headers violates HTTP/2 spec.+// TODO(zhaoq): Maybe check if k is ASCII also.+func encodeKeyValue(k, v string) (string, string) {+ k = strings.ToLower(k)+ if strings.HasSuffix(k, binHdrSuffix) {+ val := base64.StdEncoding.EncodeToString([]byte(v))+ v = string(val)+ }+ return k, v+}++// DecodeKeyValue returns the original key and value corresponding to the+// encoded data in k, v.+// If k is a binary header and v contains comma, v is split on comma before decoded,+// and the decoded v will be joined with comma before returned.+func DecodeKeyValue(k, v string) (string, string, error) {+ if !strings.HasSuffix(k, binHdrSuffix) {+ return k, v, nil+ }+ vvs := strings.Split(v, ",")+ for i, vv := range vvs {+ val, err := base64.StdEncoding.DecodeString(vv)+ if err != nil {+ return "", "", err+ }+ vvs[i] = string(val)+ }+ return k, strings.Join(vvs, ","), nil+}++// MD is a mapping from metadata keys to values. Users should use the following+// two convenience functions New and Pairs to generate MD.+type MD map[string][]string++// New creates a MD from given key-value map.+func New(m map[string]string) MD {+ md := MD{}+ for k, v := range m {+ key, val := encodeKeyValue(k, v)+ md[key] = append(md[key], val)+ }+ return md+}++// Pairs returns an MD formed by the mapping of key, value ...+// Pairs panics if len(kv) is odd.+func Pairs(kv ...string) MD {+ if len(kv)%2 == 1 {+ panic(fmt.Sprintf("metadata: Pairs got the odd number of input pairs for metadata: %d", len(kv)))+ }+ md := MD{}+ var k string+ for i, s := range kv {+ if i%2 == 0 {+ k = s+ continue+ }+ key, val := encodeKeyValue(k, s)+ md[key] = append(md[key], val)+ }+ return md+}++// Len returns the number of items in md.+func (md MD) Len() int {+ return len(md)+}++// Copy returns a copy of md.+func (md MD) Copy() MD {+ return Join(md)+}++// Join joins any number of MDs into a single MD.+// The order of values for each key is determined by the order in which+// the MDs containing those values are presented to Join.+func Join(mds ...MD) MD {+ out := MD{}+ for _, md := range mds {+ for k, v := range md {+ out[k] = append(out[k], v...)+ }+ }+ return out+}++type mdKey struct{}++// NewContext creates a new context with md attached.+func NewContext(ctx context.Context, md MD) context.Context {+ return context.WithValue(ctx, mdKey{}, md)+}++// FromContext returns the MD in ctx if it exists.+// The returned md should be immutable, writing to it may cause races.+// Modification should be made to the copies of the returned md.+func FromContext(ctx context.Context) (md MD, ok bool) {+ md, ok = ctx.Value(mdKey{}).(MD)+ return+}diff --git a/vendor/google.golang.org/grpc/naming/naming.go b/vendor/google.golang.org/grpc/naming/naming.gonew file mode 100644index 000000000..c2e0871e6--- /dev/null+++ b/vendor/google.golang.org/grpc/naming/naming.go@@ -0,0 +1,74 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++// Package naming defines the naming API and related data structures for gRPC.+// The interface is EXPERIMENTAL and may be suject to change.+package naming++// Operation defines the corresponding operations for a name resolution change.+type Operation uint8++const (+ // Add indicates a new address is added.+ Add Operation = iota+ // Delete indicates an exisiting address is deleted.+ Delete+)++// Update defines a name resolution update. Notice that it is not valid having both+// empty string Addr and nil Metadata in an Update.+type Update struct {+ // Op indicates the operation of the update.+ Op Operation+ // Addr is the updated address. It is empty string if there is no address update.+ Addr string+ // Metadata is the updated metadata. It is nil if there is no metadata update.+ // Metadata is not required for a custom naming implementation.+ Metadata interface{}+}++// Resolver creates a Watcher for a target to track its resolution changes.+type Resolver interface {+ // Resolve creates a Watcher for target.+ Resolve(target string) (Watcher, error)+}++// Watcher watches for the updates on the specified target.+type Watcher interface {+ // Next blocks until an update or error happens. It may return one or more+ // updates. The first call should get the full set of the results. It should+ // return an error if and only if Watcher cannot recover.+ Next() ([]*Update, error)+ // Close closes the Watcher.+ Close()+}diff --git a/vendor/google.golang.org/grpc/peer/peer.go b/vendor/google.golang.org/grpc/peer/peer.gonew file mode 100644index 000000000..bfa6205ba--- /dev/null+++ b/vendor/google.golang.org/grpc/peer/peer.go@@ -0,0 +1,65 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++// Package peer defines various peer information associated with RPCs and+// corresponding utils.+package peer++import (+ "net"++ "golang.org/x/net/context"+ "google.golang.org/grpc/credentials"+)++// Peer contains the information of the peer for an RPC.+type Peer struct {+ // Addr is the peer address.+ Addr net.Addr+ // AuthInfo is the authentication information of the transport.+ // It is nil if there is no transport security being used.+ AuthInfo credentials.AuthInfo+}++type peerKey struct{}++// NewContext creates a new context with peer information attached.+func NewContext(ctx context.Context, p *Peer) context.Context {+ return context.WithValue(ctx, peerKey{}, p)+}++// FromContext returns the peer information in ctx if it exists.+func FromContext(ctx context.Context) (p *Peer, ok bool) {+ p, ok = ctx.Value(peerKey{}).(*Peer)+ return+}diff --git a/vendor/google.golang.org/grpc/rpc_util.go b/vendor/google.golang.org/grpc/rpc_util.gonew file mode 100644index 000000000..66d08b5aa--- /dev/null+++ b/vendor/google.golang.org/grpc/rpc_util.go@@ -0,0 +1,481 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package grpc++import (+ "bytes"+ "compress/gzip"+ "encoding/binary"+ "fmt"+ "io"+ "io/ioutil"+ "math"+ "os"+ "time"++ "github.com/golang/protobuf/proto"+ "golang.org/x/net/context"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/stats"+ "google.golang.org/grpc/transport"+)++// Codec defines the interface gRPC uses to encode and decode messages.+type Codec interface {+ // Marshal returns the wire format of v.+ Marshal(v interface{}) ([]byte, error)+ // Unmarshal parses the wire format into v.+ Unmarshal(data []byte, v interface{}) error+ // String returns the name of the Codec implementation. The returned+ // string will be used as part of content type in transmission.+ String() string+}++// protoCodec is a Codec implementation with protobuf. It is the default codec for gRPC.+type protoCodec struct{}++func (protoCodec) Marshal(v interface{}) ([]byte, error) {+ return proto.Marshal(v.(proto.Message))+}++func (protoCodec) Unmarshal(data []byte, v interface{}) error {+ return proto.Unmarshal(data, v.(proto.Message))+}++func (protoCodec) String() string {+ return "proto"+}++// Compressor defines the interface gRPC uses to compress a message.+type Compressor interface {+ // Do compresses p into w.+ Do(w io.Writer, p []byte) error+ // Type returns the compression algorithm the Compressor uses.+ Type() string+}++// NewGZIPCompressor creates a Compressor based on GZIP.+func NewGZIPCompressor() Compressor {+ return &gzipCompressor{}+}++type gzipCompressor struct {+}++func (c *gzipCompressor) Do(w io.Writer, p []byte) error {+ z := gzip.NewWriter(w)+ if _, err := z.Write(p); err != nil {+ return err+ }+ return z.Close()+}++func (c *gzipCompressor) Type() string {+ return "gzip"+}++// Decompressor defines the interface gRPC uses to decompress a message.+type Decompressor interface {+ // Do reads the data from r and uncompress them.+ Do(r io.Reader) ([]byte, error)+ // Type returns the compression algorithm the Decompressor uses.+ Type() string+}++type gzipDecompressor struct {+}++// NewGZIPDecompressor creates a Decompressor based on GZIP.+func NewGZIPDecompressor() Decompressor {+ return &gzipDecompressor{}+}++func (d *gzipDecompressor) Do(r io.Reader) ([]byte, error) {+ z, err := gzip.NewReader(r)+ if err != nil {+ return nil, err+ }+ defer z.Close()+ return ioutil.ReadAll(z)+}++func (d *gzipDecompressor) Type() string {+ return "gzip"+}++// callInfo contains all related configuration and information about an RPC.+type callInfo struct {+ failFast bool+ headerMD metadata.MD+ trailerMD metadata.MD+ traceInfo traceInfo // in trace.go+}++var defaultCallInfo = callInfo{failFast: true}++// CallOption configures a Call before it starts or extracts information from+// a Call after it completes.+type CallOption interface {+ // before is called before the call is sent to any server. If before+ // returns a non-nil error, the RPC fails with that error.+ before(*callInfo) error++ // after is called after the call has completed. after cannot return an+ // error, so any failures should be reported via output parameters.+ after(*callInfo)+}++type beforeCall func(c *callInfo) error++func (o beforeCall) before(c *callInfo) error { return o(c) }+func (o beforeCall) after(c *callInfo) {}++type afterCall func(c *callInfo)++func (o afterCall) before(c *callInfo) error { return nil }+func (o afterCall) after(c *callInfo) { o(c) }++// Header returns a CallOptions that retrieves the header metadata+// for a unary RPC.+func Header(md *metadata.MD) CallOption {+ return afterCall(func(c *callInfo) {+ *md = c.headerMD+ })+}++// Trailer returns a CallOptions that retrieves the trailer metadata+// for a unary RPC.+func Trailer(md *metadata.MD) CallOption {+ return afterCall(func(c *callInfo) {+ *md = c.trailerMD+ })+}++// FailFast configures the action to take when an RPC is attempted on broken+// connections or unreachable servers. If failfast is true, the RPC will fail+// immediately. Otherwise, the RPC client will block the call until a+// connection is available (or the call is canceled or times out) and will retry+// the call if it fails due to a transient error. Please refer to+// https://github.com/grpc/grpc/blob/master/doc/fail_fast.md+func FailFast(failFast bool) CallOption {+ return beforeCall(func(c *callInfo) error {+ c.failFast = failFast+ return nil+ })+}++// The format of the payload: compressed or not?+type payloadFormat uint8++const (+ compressionNone payloadFormat = iota // no compression+ compressionMade+)++// parser reads complete gRPC messages from the underlying reader.+type parser struct {+ // r is the underlying reader.+ // See the comment on recvMsg for the permissible+ // error types.+ r io.Reader++ // The header of a gRPC message. Find more detail+ // at http://www.grpc.io/docs/guides/wire.html.+ header [5]byte+}++// recvMsg reads a complete gRPC message from the stream.+//+// It returns the message and its payload (compression/encoding)+// format. The caller owns the returned msg memory.+//+// If there is an error, possible values are:+// * io.EOF, when no messages remain+// * io.ErrUnexpectedEOF+// * of type transport.ConnectionError+// * of type transport.StreamError+// No other error values or types must be returned, which also means+// that the underlying io.Reader must not return an incompatible+// error.+func (p *parser) recvMsg(maxMsgSize int) (pf payloadFormat, msg []byte, err error) {+ if _, err := io.ReadFull(p.r, p.header[:]); err != nil {+ return 0, nil, err+ }++ pf = payloadFormat(p.header[0])+ length := binary.BigEndian.Uint32(p.header[1:])++ if length == 0 {+ return pf, nil, nil+ }+ if length > uint32(maxMsgSize) {+ return 0, nil, Errorf(codes.Internal, "grpc: received message length %d exceeding the max size %d", length, maxMsgSize)+ }+ // TODO(bradfitz,zhaoq): garbage. reuse buffer after proto decoding instead+ // of making it for each message:+ msg = make([]byte, int(length))+ if _, err := io.ReadFull(p.r, msg); err != nil {+ if err == io.EOF {+ err = io.ErrUnexpectedEOF+ }+ return 0, nil, err+ }+ return pf, msg, nil+}++// encode serializes msg and prepends the message header. If msg is nil, it+// generates the message header of 0 message length.+func encode(c Codec, msg interface{}, cp Compressor, cbuf *bytes.Buffer, outPayload *stats.OutPayload) ([]byte, error) {+ var (+ b []byte+ length uint+ )+ if msg != nil {+ var err error+ // TODO(zhaoq): optimize to reduce memory alloc and copying.+ b, err = c.Marshal(msg)+ if err != nil {+ return nil, err+ }+ if outPayload != nil {+ outPayload.Payload = msg+ // TODO truncate large payload.+ outPayload.Data = b+ outPayload.Length = len(b)+ }+ if cp != nil {+ if err := cp.Do(cbuf, b); err != nil {+ return nil, err+ }+ b = cbuf.Bytes()+ }+ length = uint(len(b))+ }+ if length > math.MaxUint32 {+ return nil, Errorf(codes.InvalidArgument, "grpc: message too large (%d bytes)", length)+ }++ const (+ payloadLen = 1+ sizeLen = 4+ )++ var buf = make([]byte, payloadLen+sizeLen+len(b))++ // Write payload format+ if cp == nil {+ buf[0] = byte(compressionNone)+ } else {+ buf[0] = byte(compressionMade)+ }+ // Write length of b into buf+ binary.BigEndian.PutUint32(buf[1:], uint32(length))+ // Copy encoded msg to buf+ copy(buf[5:], b)++ if outPayload != nil {+ outPayload.WireLength = len(buf)+ }++ return buf, nil+}++func checkRecvPayload(pf payloadFormat, recvCompress string, dc Decompressor) error {+ switch pf {+ case compressionNone:+ case compressionMade:+ if dc == nil || recvCompress != dc.Type() {+ return Errorf(codes.Unimplemented, "grpc: Decompressor is not installed for grpc-encoding %q", recvCompress)+ }+ default:+ return Errorf(codes.Internal, "grpc: received unexpected payload format %d", pf)+ }+ return nil+}++func recv(p *parser, c Codec, s *transport.Stream, dc Decompressor, m interface{}, maxMsgSize int, inPayload *stats.InPayload) error {+ pf, d, err := p.recvMsg(maxMsgSize)+ if err != nil {+ return err+ }+ if inPayload != nil {+ inPayload.WireLength = len(d)+ }+ if err := checkRecvPayload(pf, s.RecvCompress(), dc); err != nil {+ return err+ }+ if pf == compressionMade {+ d, err = dc.Do(bytes.NewReader(d))+ if err != nil {+ return Errorf(codes.Internal, "grpc: failed to decompress the received message %v", err)+ }+ }+ if len(d) > maxMsgSize {+ // TODO: Revisit the error code. Currently keep it consistent with java+ // implementation.+ return Errorf(codes.Internal, "grpc: received a message of %d bytes exceeding %d limit", len(d), maxMsgSize)+ }+ if err := c.Unmarshal(d, m); err != nil {+ return Errorf(codes.Internal, "grpc: failed to unmarshal the received message %v", err)+ }+ if inPayload != nil {+ inPayload.RecvTime = time.Now()+ inPayload.Payload = m+ // TODO truncate large payload.+ inPayload.Data = d+ inPayload.Length = len(d)+ }+ return nil+}++// rpcError defines the status from an RPC.+type rpcError struct {+ code codes.Code+ desc string+}++func (e *rpcError) Error() string {+ return fmt.Sprintf("rpc error: code = %d desc = %s", e.code, e.desc)+}++// Code returns the error code for err if it was produced by the rpc system.+// Otherwise, it returns codes.Unknown.+func Code(err error) codes.Code {+ if err == nil {+ return codes.OK+ }+ if e, ok := err.(*rpcError); ok {+ return e.code+ }+ return codes.Unknown+}++// ErrorDesc returns the error description of err if it was produced by the rpc system.+// Otherwise, it returns err.Error() or empty string when err is nil.+func ErrorDesc(err error) string {+ if err == nil {+ return ""+ }+ if e, ok := err.(*rpcError); ok {+ return e.desc+ }+ return err.Error()+}++// Errorf returns an error containing an error code and a description;+// Errorf returns nil if c is OK.+func Errorf(c codes.Code, format string, a ...interface{}) error {+ if c == codes.OK {+ return nil+ }+ return &rpcError{+ code: c,+ desc: fmt.Sprintf(format, a...),+ }+}++// toRPCErr converts an error into a rpcError.+func toRPCErr(err error) error {+ switch e := err.(type) {+ case *rpcError:+ return err+ case transport.StreamError:+ return &rpcError{+ code: e.Code,+ desc: e.Desc,+ }+ case transport.ConnectionError:+ return &rpcError{+ code: codes.Internal,+ desc: e.Desc,+ }+ default:+ switch err {+ case context.DeadlineExceeded:+ return &rpcError{+ code: codes.DeadlineExceeded,+ desc: err.Error(),+ }+ case context.Canceled:+ return &rpcError{+ code: codes.Canceled,+ desc: err.Error(),+ }+ case ErrClientConnClosing:+ return &rpcError{+ code: codes.FailedPrecondition,+ desc: err.Error(),+ }+ }++ }+ return Errorf(codes.Unknown, "%v", err)+}++// convertCode converts a standard Go error into its canonical code. Note that+// this is only used to translate the error returned by the server applications.+func convertCode(err error) codes.Code {+ switch err {+ case nil:+ return codes.OK+ case io.EOF:+ return codes.OutOfRange+ case io.ErrClosedPipe, io.ErrNoProgress, io.ErrShortBuffer, io.ErrShortWrite, io.ErrUnexpectedEOF:+ return codes.FailedPrecondition+ case os.ErrInvalid:+ return codes.InvalidArgument+ case context.Canceled:+ return codes.Canceled+ case context.DeadlineExceeded:+ return codes.DeadlineExceeded+ }+ switch {+ case os.IsExist(err):+ return codes.AlreadyExists+ case os.IsNotExist(err):+ return codes.NotFound+ case os.IsPermission(err):+ return codes.PermissionDenied+ }+ return codes.Unknown+}++// SupportPackageIsVersion4 is referenced from generated protocol buffer files+// to assert that that code is compatible with this version of the grpc package.+//+// This constant may be renamed in the future if a change in the generated code+// requires a synchronised update of grpc-go and protoc-gen-go. This constant+// should not be referenced from any other code.+const SupportPackageIsVersion4 = truediff --git a/vendor/google.golang.org/grpc/server.go b/vendor/google.golang.org/grpc/server.gonew file mode 100644index 000000000..3af001ac9--- /dev/null+++ b/vendor/google.golang.org/grpc/server.go@@ -0,0 +1,1041 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package grpc++import (+ "bytes"+ "errors"+ "fmt"+ "io"+ "net"+ "net/http"+ "reflect"+ "runtime"+ "strings"+ "sync"+ "time"++ "golang.org/x/net/context"+ "golang.org/x/net/http2"+ "golang.org/x/net/trace"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/credentials"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/internal"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/stats"+ "google.golang.org/grpc/tap"+ "google.golang.org/grpc/transport"+)++type methodHandler func(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor UnaryServerInterceptor) (interface{}, error)++// MethodDesc represents an RPC service's method specification.+type MethodDesc struct {+ MethodName string+ Handler methodHandler+}++// ServiceDesc represents an RPC service's specification.+type ServiceDesc struct {+ ServiceName string+ // The pointer to the service interface. Used to check whether the user+ // provided implementation satisfies the interface requirements.+ HandlerType interface{}+ Methods []MethodDesc+ Streams []StreamDesc+ Metadata interface{}+}++// service consists of the information of the server serving this service and+// the methods in this service.+type service struct {+ server interface{} // the server for service methods+ md map[string]*MethodDesc+ sd map[string]*StreamDesc+ mdata interface{}+}++// Server is a gRPC server to serve RPC requests.+type Server struct {+ opts options++ mu sync.Mutex // guards following+ lis map[net.Listener]bool+ conns map[io.Closer]bool+ drain bool+ ctx context.Context+ cancel context.CancelFunc+ // A CondVar to let GracefulStop() blocks until all the pending RPCs are finished+ // and all the transport goes away.+ cv *sync.Cond+ m map[string]*service // service name -> service info+ events trace.EventLog+}++type options struct {+ creds credentials.TransportCredentials+ codec Codec+ cp Compressor+ dc Decompressor+ maxMsgSize int+ unaryInt UnaryServerInterceptor+ streamInt StreamServerInterceptor+ inTapHandle tap.ServerInHandle+ maxConcurrentStreams uint32+ useHandlerImpl bool // use http.Handler-based server+}++var defaultMaxMsgSize = 1024 * 1024 * 4 // use 4MB as the default message size limit++// A ServerOption sets options.+type ServerOption func(*options)++// CustomCodec returns a ServerOption that sets a codec for message marshaling and unmarshaling.+func CustomCodec(codec Codec) ServerOption {+ return func(o *options) {+ o.codec = codec+ }+}++// RPCCompressor returns a ServerOption that sets a compressor for outbound messages.+func RPCCompressor(cp Compressor) ServerOption {+ return func(o *options) {+ o.cp = cp+ }+}++// RPCDecompressor returns a ServerOption that sets a decompressor for inbound messages.+func RPCDecompressor(dc Decompressor) ServerOption {+ return func(o *options) {+ o.dc = dc+ }+}++// MaxMsgSize returns a ServerOption to set the max message size in bytes for inbound mesages.+// If this is not set, gRPC uses the default 4MB.+func MaxMsgSize(m int) ServerOption {+ return func(o *options) {+ o.maxMsgSize = m+ }+}++// MaxConcurrentStreams returns a ServerOption that will apply a limit on the number+// of concurrent streams to each ServerTransport.+func MaxConcurrentStreams(n uint32) ServerOption {+ return func(o *options) {+ o.maxConcurrentStreams = n+ }+}++// Creds returns a ServerOption that sets credentials for server connections.+func Creds(c credentials.TransportCredentials) ServerOption {+ return func(o *options) {+ o.creds = c+ }+}++// UnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the+// server. Only one unary interceptor can be installed. The construction of multiple+// interceptors (e.g., chaining) can be implemented at the caller.+func UnaryInterceptor(i UnaryServerInterceptor) ServerOption {+ return func(o *options) {+ if o.unaryInt != nil {+ panic("The unary server interceptor has been set.")+ }+ o.unaryInt = i+ }+}++// StreamInterceptor returns a ServerOption that sets the StreamServerInterceptor for the+// server. Only one stream interceptor can be installed.+func StreamInterceptor(i StreamServerInterceptor) ServerOption {+ return func(o *options) {+ if o.streamInt != nil {+ panic("The stream server interceptor has been set.")+ }+ o.streamInt = i+ }+}++// InTapHandle returns a ServerOption that sets the tap handle for all the server+// transport to be created. Only one can be installed.+func InTapHandle(h tap.ServerInHandle) ServerOption {+ return func(o *options) {+ if o.inTapHandle != nil {+ panic("The tap handle has been set.")+ }+ o.inTapHandle = h+ }+}++// NewServer creates a gRPC server which has no service registered and has not+// started to accept requests yet.+func NewServer(opt ...ServerOption) *Server {+ var opts options+ opts.maxMsgSize = defaultMaxMsgSize+ for _, o := range opt {+ o(&opts)+ }+ if opts.codec == nil {+ // Set the default codec.+ opts.codec = protoCodec{}+ }+ s := &Server{+ lis: make(map[net.Listener]bool),+ opts: opts,+ conns: make(map[io.Closer]bool),+ m: make(map[string]*service),+ }+ s.cv = sync.NewCond(&s.mu)+ s.ctx, s.cancel = context.WithCancel(context.Background())+ if EnableTracing {+ _, file, line, _ := runtime.Caller(1)+ s.events = trace.NewEventLog("grpc.Server", fmt.Sprintf("%s:%d", file, line))+ }+ return s+}++// printf records an event in s's event log, unless s has been stopped.+// REQUIRES s.mu is held.+func (s *Server) printf(format string, a ...interface{}) {+ if s.events != nil {+ s.events.Printf(format, a...)+ }+}++// errorf records an error in s's event log, unless s has been stopped.+// REQUIRES s.mu is held.+func (s *Server) errorf(format string, a ...interface{}) {+ if s.events != nil {+ s.events.Errorf(format, a...)+ }+}++// RegisterService register a service and its implementation to the gRPC+// server. Called from the IDL generated code. This must be called before+// invoking Serve.+func (s *Server) RegisterService(sd *ServiceDesc, ss interface{}) {+ ht := reflect.TypeOf(sd.HandlerType).Elem()+ st := reflect.TypeOf(ss)+ if !st.Implements(ht) {+ grpclog.Fatalf("grpc: Server.RegisterService found the handler of type %v that does not satisfy %v", st, ht)+ }+ s.register(sd, ss)+}++func (s *Server) register(sd *ServiceDesc, ss interface{}) {+ s.mu.Lock()+ defer s.mu.Unlock()+ s.printf("RegisterService(%q)", sd.ServiceName)+ if _, ok := s.m[sd.ServiceName]; ok {+ grpclog.Fatalf("grpc: Server.RegisterService found duplicate service registration for %q", sd.ServiceName)+ }+ srv := &service{+ server: ss,+ md: make(map[string]*MethodDesc),+ sd: make(map[string]*StreamDesc),+ mdata: sd.Metadata,+ }+ for i := range sd.Methods {+ d := &sd.Methods[i]+ srv.md[d.MethodName] = d+ }+ for i := range sd.Streams {+ d := &sd.Streams[i]+ srv.sd[d.StreamName] = d+ }+ s.m[sd.ServiceName] = srv+}++// MethodInfo contains the information of an RPC including its method name and type.+type MethodInfo struct {+ // Name is the method name only, without the service name or package name.+ Name string+ // IsClientStream indicates whether the RPC is a client streaming RPC.+ IsClientStream bool+ // IsServerStream indicates whether the RPC is a server streaming RPC.+ IsServerStream bool+}++// ServiceInfo contains unary RPC method info, streaming RPC methid info and metadata for a service.+type ServiceInfo struct {+ Methods []MethodInfo+ // Metadata is the metadata specified in ServiceDesc when registering service.+ Metadata interface{}+}++// GetServiceInfo returns a map from service names to ServiceInfo.+// Service names include the package names, in the form of <package>.<service>.+func (s *Server) GetServiceInfo() map[string]ServiceInfo {+ ret := make(map[string]ServiceInfo)+ for n, srv := range s.m {+ methods := make([]MethodInfo, 0, len(srv.md)+len(srv.sd))+ for m := range srv.md {+ methods = append(methods, MethodInfo{+ Name: m,+ IsClientStream: false,+ IsServerStream: false,+ })+ }+ for m, d := range srv.sd {+ methods = append(methods, MethodInfo{+ Name: m,+ IsClientStream: d.ClientStreams,+ IsServerStream: d.ServerStreams,+ })+ }++ ret[n] = ServiceInfo{+ Methods: methods,+ Metadata: srv.mdata,+ }+ }+ return ret+}++var (+ // ErrServerStopped indicates that the operation is now illegal because of+ // the server being stopped.+ ErrServerStopped = errors.New("grpc: the server has been stopped")+)++func (s *Server) useTransportAuthenticator(rawConn net.Conn) (net.Conn, credentials.AuthInfo, error) {+ if s.opts.creds == nil {+ return rawConn, nil, nil+ }+ return s.opts.creds.ServerHandshake(rawConn)+}++// Serve accepts incoming connections on the listener lis, creating a new+// ServerTransport and service goroutine for each. The service goroutines+// read gRPC requests and then call the registered handlers to reply to them.+// Serve returns when lis.Accept fails with fatal errors. lis will be closed when+// this method returns.+func (s *Server) Serve(lis net.Listener) error {+ s.mu.Lock()+ s.printf("serving")+ if s.lis == nil {+ s.mu.Unlock()+ lis.Close()+ return ErrServerStopped+ }+ s.lis[lis] = true+ s.mu.Unlock()+ defer func() {+ s.mu.Lock()+ if s.lis != nil && s.lis[lis] {+ lis.Close()+ delete(s.lis, lis)+ }+ s.mu.Unlock()+ }()++ var tempDelay time.Duration // how long to sleep on accept failure++ for {+ rawConn, err := lis.Accept()+ if err != nil {+ if ne, ok := err.(interface {+ Temporary() bool+ }); ok && ne.Temporary() {+ if tempDelay == 0 {+ tempDelay = 5 * time.Millisecond+ } else {+ tempDelay *= 2+ }+ if max := 1 * time.Second; tempDelay > max {+ tempDelay = max+ }+ s.mu.Lock()+ s.printf("Accept error: %v; retrying in %v", err, tempDelay)+ s.mu.Unlock()+ select {+ case <-time.After(tempDelay):+ case <-s.ctx.Done():+ }+ continue+ }+ s.mu.Lock()+ s.printf("done serving; Accept = %v", err)+ s.mu.Unlock()+ return err+ }+ tempDelay = 0+ // Start a new goroutine to deal with rawConn+ // so we don't stall this Accept loop goroutine.+ go s.handleRawConn(rawConn)+ }+}++// handleRawConn is run in its own goroutine and handles a just-accepted+// connection that has not had any I/O performed on it yet.+func (s *Server) handleRawConn(rawConn net.Conn) {+ conn, authInfo, err := s.useTransportAuthenticator(rawConn)+ if err != nil {+ s.mu.Lock()+ s.errorf("ServerHandshake(%q) failed: %v", rawConn.RemoteAddr(), err)+ s.mu.Unlock()+ grpclog.Printf("grpc: Server.Serve failed to complete security handshake from %q: %v", rawConn.RemoteAddr(), err)+ // If serverHandShake returns ErrConnDispatched, keep rawConn open.+ if err != credentials.ErrConnDispatched {+ rawConn.Close()+ }+ return+ }++ s.mu.Lock()+ if s.conns == nil {+ s.mu.Unlock()+ conn.Close()+ return+ }+ s.mu.Unlock()++ if s.opts.useHandlerImpl {+ s.serveUsingHandler(conn)+ } else {+ s.serveHTTP2Transport(conn, authInfo)+ }+}++// serveHTTP2Transport sets up a http/2 transport (using the+// gRPC http2 server transport in transport/http2_server.go) and+// serves streams on it.+// This is run in its own goroutine (it does network I/O in+// transport.NewServerTransport).+func (s *Server) serveHTTP2Transport(c net.Conn, authInfo credentials.AuthInfo) {+ config := &transport.ServerConfig{+ MaxStreams: s.opts.maxConcurrentStreams,+ AuthInfo: authInfo,+ InTapHandle: s.opts.inTapHandle,+ }+ st, err := transport.NewServerTransport("http2", c, config)+ if err != nil {+ s.mu.Lock()+ s.errorf("NewServerTransport(%q) failed: %v", c.RemoteAddr(), err)+ s.mu.Unlock()+ c.Close()+ grpclog.Println("grpc: Server.Serve failed to create ServerTransport: ", err)+ return+ }+ if !s.addConn(st) {+ st.Close()+ return+ }+ s.serveStreams(st)+}++func (s *Server) serveStreams(st transport.ServerTransport) {+ defer s.removeConn(st)+ defer st.Close()+ var wg sync.WaitGroup+ st.HandleStreams(func(stream *transport.Stream) {+ wg.Add(1)+ go func() {+ defer wg.Done()+ s.handleStream(st, stream, s.traceInfo(st, stream))+ }()+ }, func(ctx context.Context, method string) context.Context {+ if !EnableTracing {+ return ctx+ }+ tr := trace.New("grpc.Recv."+methodFamily(method), method)+ return trace.NewContext(ctx, tr)+ })+ wg.Wait()+}++var _ http.Handler = (*Server)(nil)++// serveUsingHandler is called from handleRawConn when s is configured+// to handle requests via the http.Handler interface. It sets up a+// net/http.Server to handle the just-accepted conn. The http.Server+// is configured to route all incoming requests (all HTTP/2 streams)+// to ServeHTTP, which creates a new ServerTransport for each stream.+// serveUsingHandler blocks until conn closes.+//+// This codepath is only used when Server.TestingUseHandlerImpl has+// been configured. This lets the end2end tests exercise the ServeHTTP+// method as one of the environment types.+//+// conn is the *tls.Conn that's already been authenticated.+func (s *Server) serveUsingHandler(conn net.Conn) {+ if !s.addConn(conn) {+ conn.Close()+ return+ }+ defer s.removeConn(conn)+ h2s := &http2.Server{+ MaxConcurrentStreams: s.opts.maxConcurrentStreams,+ }+ h2s.ServeConn(conn, &http2.ServeConnOpts{+ Handler: s,+ })+}++func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {+ st, err := transport.NewServerHandlerTransport(w, r)+ if err != nil {+ http.Error(w, err.Error(), http.StatusInternalServerError)+ return+ }+ if !s.addConn(st) {+ st.Close()+ return+ }+ defer s.removeConn(st)+ s.serveStreams(st)+}++// traceInfo returns a traceInfo and associates it with stream, if tracing is enabled.+// If tracing is not enabled, it returns nil.+func (s *Server) traceInfo(st transport.ServerTransport, stream *transport.Stream) (trInfo *traceInfo) {+ tr, ok := trace.FromContext(stream.Context())+ if !ok {+ return nil+ }++ trInfo = &traceInfo{+ tr: tr,+ }+ trInfo.firstLine.client = false+ trInfo.firstLine.remoteAddr = st.RemoteAddr()++ if dl, ok := stream.Context().Deadline(); ok {+ trInfo.firstLine.deadline = dl.Sub(time.Now())+ }+ return trInfo+}++func (s *Server) addConn(c io.Closer) bool {+ s.mu.Lock()+ defer s.mu.Unlock()+ if s.conns == nil || s.drain {+ return false+ }+ s.conns[c] = true+ return true+}++func (s *Server) removeConn(c io.Closer) {+ s.mu.Lock()+ defer s.mu.Unlock()+ if s.conns != nil {+ delete(s.conns, c)+ s.cv.Broadcast()+ }+}++func (s *Server) sendResponse(t transport.ServerTransport, stream *transport.Stream, msg interface{}, cp Compressor, opts *transport.Options) error {+ var (+ cbuf *bytes.Buffer+ outPayload *stats.OutPayload+ )+ if cp != nil {+ cbuf = new(bytes.Buffer)+ }+ if stats.On() {+ outPayload = &stats.OutPayload{}+ }+ p, err := encode(s.opts.codec, msg, cp, cbuf, outPayload)+ if err != nil {+ // This typically indicates a fatal issue (e.g., memory+ // corruption or hardware faults) the application program+ // cannot handle.+ //+ // TODO(zhaoq): There exist other options also such as only closing the+ // faulty stream locally and remotely (Other streams can keep going). Find+ // the optimal option.+ grpclog.Fatalf("grpc: Server failed to encode response %v", err)+ }+ err = t.Write(stream, p, opts)+ if err == nil && outPayload != nil {+ outPayload.SentTime = time.Now()+ stats.Handle(stream.Context(), outPayload)+ }+ return err+}++func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, md *MethodDesc, trInfo *traceInfo) (err error) {+ if stats.On() {+ begin := &stats.Begin{+ BeginTime: time.Now(),+ }+ stats.Handle(stream.Context(), begin)+ }+ defer func() {+ if stats.On() {+ end := &stats.End{+ EndTime: time.Now(),+ }+ if err != nil && err != io.EOF {+ end.Error = toRPCErr(err)+ }+ stats.Handle(stream.Context(), end)+ }+ }()+ if trInfo != nil {+ defer trInfo.tr.Finish()+ trInfo.firstLine.client = false+ trInfo.tr.LazyLog(&trInfo.firstLine, false)+ defer func() {+ if err != nil && err != io.EOF {+ trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)+ trInfo.tr.SetError()+ }+ }()+ }+ if s.opts.cp != nil {+ // NOTE: this needs to be ahead of all handling, https://github.com/grpc/grpc-go/issues/686.+ stream.SetSendCompress(s.opts.cp.Type())+ }+ p := &parser{r: stream}+ for {+ pf, req, err := p.recvMsg(s.opts.maxMsgSize)+ if err == io.EOF {+ // The entire stream is done (for unary RPC only).+ return err+ }+ if err == io.ErrUnexpectedEOF {+ err = Errorf(codes.Internal, io.ErrUnexpectedEOF.Error())+ }+ if err != nil {+ switch err := err.(type) {+ case *rpcError:+ if e := t.WriteStatus(stream, err.code, err.desc); e != nil {+ grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", e)+ }+ case transport.ConnectionError:+ // Nothing to do here.+ case transport.StreamError:+ if e := t.WriteStatus(stream, err.Code, err.Desc); e != nil {+ grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", e)+ }+ default:+ panic(fmt.Sprintf("grpc: Unexpected error (%T) from recvMsg: %v", err, err))+ }+ return err+ }++ if err := checkRecvPayload(pf, stream.RecvCompress(), s.opts.dc); err != nil {+ switch err := err.(type) {+ case *rpcError:+ if e := t.WriteStatus(stream, err.code, err.desc); e != nil {+ grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", e)+ }+ return err+ default:+ if e := t.WriteStatus(stream, codes.Internal, err.Error()); e != nil {+ grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", e)+ }+ // TODO checkRecvPayload always return RPC error. Add a return here if necessary.+ }+ }+ var inPayload *stats.InPayload+ if stats.On() {+ inPayload = &stats.InPayload{+ RecvTime: time.Now(),+ }+ }+ statusCode := codes.OK+ statusDesc := ""+ df := func(v interface{}) error {+ if inPayload != nil {+ inPayload.WireLength = len(req)+ }+ if pf == compressionMade {+ var err error+ req, err = s.opts.dc.Do(bytes.NewReader(req))+ if err != nil {+ if err := t.WriteStatus(stream, codes.Internal, err.Error()); err != nil {+ grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", err)+ }+ return Errorf(codes.Internal, err.Error())+ }+ }+ if len(req) > s.opts.maxMsgSize {+ // TODO: Revisit the error code. Currently keep it consistent with+ // java implementation.+ statusCode = codes.Internal+ statusDesc = fmt.Sprintf("grpc: server received a message of %d bytes exceeding %d limit", len(req), s.opts.maxMsgSize)+ }+ if err := s.opts.codec.Unmarshal(req, v); err != nil {+ return err+ }+ if inPayload != nil {+ inPayload.Payload = v+ inPayload.Data = req+ inPayload.Length = len(req)+ stats.Handle(stream.Context(), inPayload)+ }+ if trInfo != nil {+ trInfo.tr.LazyLog(&payload{sent: false, msg: v}, true)+ }+ return nil+ }+ reply, appErr := md.Handler(srv.server, stream.Context(), df, s.opts.unaryInt)+ if appErr != nil {+ if err, ok := appErr.(*rpcError); ok {+ statusCode = err.code+ statusDesc = err.desc+ } else {+ statusCode = convertCode(appErr)+ statusDesc = appErr.Error()+ }+ if trInfo != nil && statusCode != codes.OK {+ trInfo.tr.LazyLog(stringer(statusDesc), true)+ trInfo.tr.SetError()+ }+ if err := t.WriteStatus(stream, statusCode, statusDesc); err != nil {+ grpclog.Printf("grpc: Server.processUnaryRPC failed to write status: %v", err)+ }+ return Errorf(statusCode, statusDesc)+ }+ if trInfo != nil {+ trInfo.tr.LazyLog(stringer("OK"), false)+ }+ opts := &transport.Options{+ Last: true,+ Delay: false,+ }+ if err := s.sendResponse(t, stream, reply, s.opts.cp, opts); err != nil {+ switch err := err.(type) {+ case transport.ConnectionError:+ // Nothing to do here.+ case transport.StreamError:+ statusCode = err.Code+ statusDesc = err.Desc+ default:+ statusCode = codes.Unknown+ statusDesc = err.Error()+ }+ return err+ }+ if trInfo != nil {+ trInfo.tr.LazyLog(&payload{sent: true, msg: reply}, true)+ }+ errWrite := t.WriteStatus(stream, statusCode, statusDesc)+ if statusCode != codes.OK {+ return Errorf(statusCode, statusDesc)+ }+ return errWrite+ }+}++func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, sd *StreamDesc, trInfo *traceInfo) (err error) {+ if stats.On() {+ begin := &stats.Begin{+ BeginTime: time.Now(),+ }+ stats.Handle(stream.Context(), begin)+ }+ defer func() {+ if stats.On() {+ end := &stats.End{+ EndTime: time.Now(),+ }+ if err != nil && err != io.EOF {+ end.Error = toRPCErr(err)+ }+ stats.Handle(stream.Context(), end)+ }+ }()+ if s.opts.cp != nil {+ stream.SetSendCompress(s.opts.cp.Type())+ }+ ss := &serverStream{+ t: t,+ s: stream,+ p: &parser{r: stream},+ codec: s.opts.codec,+ cp: s.opts.cp,+ dc: s.opts.dc,+ maxMsgSize: s.opts.maxMsgSize,+ trInfo: trInfo,+ }+ if ss.cp != nil {+ ss.cbuf = new(bytes.Buffer)+ }+ if trInfo != nil {+ trInfo.tr.LazyLog(&trInfo.firstLine, false)+ defer func() {+ ss.mu.Lock()+ if err != nil && err != io.EOF {+ ss.trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)+ ss.trInfo.tr.SetError()+ }+ ss.trInfo.tr.Finish()+ ss.trInfo.tr = nil+ ss.mu.Unlock()+ }()+ }+ var appErr error+ if s.opts.streamInt == nil {+ appErr = sd.Handler(srv.server, ss)+ } else {+ info := &StreamServerInfo{+ FullMethod: stream.Method(),+ IsClientStream: sd.ClientStreams,+ IsServerStream: sd.ServerStreams,+ }+ appErr = s.opts.streamInt(srv.server, ss, info, sd.Handler)+ }+ if appErr != nil {+ if err, ok := appErr.(*rpcError); ok {+ ss.statusCode = err.code+ ss.statusDesc = err.desc+ } else if err, ok := appErr.(transport.StreamError); ok {+ ss.statusCode = err.Code+ ss.statusDesc = err.Desc+ } else {+ ss.statusCode = convertCode(appErr)+ ss.statusDesc = appErr.Error()+ }+ }+ if trInfo != nil {+ ss.mu.Lock()+ if ss.statusCode != codes.OK {+ ss.trInfo.tr.LazyLog(stringer(ss.statusDesc), true)+ ss.trInfo.tr.SetError()+ } else {+ ss.trInfo.tr.LazyLog(stringer("OK"), false)+ }+ ss.mu.Unlock()+ }+ errWrite := t.WriteStatus(ss.s, ss.statusCode, ss.statusDesc)+ if ss.statusCode != codes.OK {+ return Errorf(ss.statusCode, ss.statusDesc)+ }+ return errWrite++}++func (s *Server) handleStream(t transport.ServerTransport, stream *transport.Stream, trInfo *traceInfo) {+ sm := stream.Method()+ if sm != "" && sm[0] == '/' {+ sm = sm[1:]+ }+ pos := strings.LastIndex(sm, "/")+ if pos == -1 {+ if trInfo != nil {+ trInfo.tr.LazyLog(&fmtStringer{"Malformed method name %q", []interface{}{sm}}, true)+ trInfo.tr.SetError()+ }+ errDesc := fmt.Sprintf("malformed method name: %q", stream.Method())+ if err := t.WriteStatus(stream, codes.InvalidArgument, errDesc); err != nil {+ if trInfo != nil {+ trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)+ trInfo.tr.SetError()+ }+ grpclog.Printf("grpc: Server.handleStream failed to write status: %v", err)+ }+ if trInfo != nil {+ trInfo.tr.Finish()+ }+ return+ }+ service := sm[:pos]+ method := sm[pos+1:]+ srv, ok := s.m[service]+ if !ok {+ if trInfo != nil {+ trInfo.tr.LazyLog(&fmtStringer{"Unknown service %v", []interface{}{service}}, true)+ trInfo.tr.SetError()+ }+ errDesc := fmt.Sprintf("unknown service %v", service)+ if err := t.WriteStatus(stream, codes.Unimplemented, errDesc); err != nil {+ if trInfo != nil {+ trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)+ trInfo.tr.SetError()+ }+ grpclog.Printf("grpc: Server.handleStream failed to write status: %v", err)+ }+ if trInfo != nil {+ trInfo.tr.Finish()+ }+ return+ }+ // Unary RPC or Streaming RPC?+ if md, ok := srv.md[method]; ok {+ s.processUnaryRPC(t, stream, srv, md, trInfo)+ return+ }+ if sd, ok := srv.sd[method]; ok {+ s.processStreamingRPC(t, stream, srv, sd, trInfo)+ return+ }+ if trInfo != nil {+ trInfo.tr.LazyLog(&fmtStringer{"Unknown method %v", []interface{}{method}}, true)+ trInfo.tr.SetError()+ }+ errDesc := fmt.Sprintf("unknown method %v", method)+ if err := t.WriteStatus(stream, codes.Unimplemented, errDesc); err != nil {+ if trInfo != nil {+ trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)+ trInfo.tr.SetError()+ }+ grpclog.Printf("grpc: Server.handleStream failed to write status: %v", err)+ }+ if trInfo != nil {+ trInfo.tr.Finish()+ }+}++// Stop stops the gRPC server. It immediately closes all open+// connections and listeners.+// It cancels all active RPCs on the server side and the corresponding+// pending RPCs on the client side will get notified by connection+// errors.+func (s *Server) Stop() {+ s.mu.Lock()+ listeners := s.lis+ s.lis = nil+ st := s.conns+ s.conns = nil+ // interrupt GracefulStop if Stop and GracefulStop are called concurrently.+ s.cv.Broadcast()+ s.mu.Unlock()++ for lis := range listeners {+ lis.Close()+ }+ for c := range st {+ c.Close()+ }++ s.mu.Lock()+ s.cancel()+ if s.events != nil {+ s.events.Finish()+ s.events = nil+ }+ s.mu.Unlock()+}++// GracefulStop stops the gRPC server gracefully. It stops the server to accept new+// connections and RPCs and blocks until all the pending RPCs are finished.+func (s *Server) GracefulStop() {+ s.mu.Lock()+ defer s.mu.Unlock()+ if s.conns == nil {+ return+ }+ for lis := range s.lis {+ lis.Close()+ }+ s.lis = nil+ s.cancel()+ if !s.drain {+ for c := range s.conns {+ c.(transport.ServerTransport).Drain()+ }+ s.drain = true+ }+ for len(s.conns) != 0 {+ s.cv.Wait()+ }+ s.conns = nil+ if s.events != nil {+ s.events.Finish()+ s.events = nil+ }+}++func init() {+ internal.TestingCloseConns = func(arg interface{}) {+ arg.(*Server).testingCloseConns()+ }+ internal.TestingUseHandlerImpl = func(arg interface{}) {+ arg.(*Server).opts.useHandlerImpl = true+ }+}++// testingCloseConns closes all existing transports but keeps s.lis+// accepting new connections.+func (s *Server) testingCloseConns() {+ s.mu.Lock()+ for c := range s.conns {+ c.Close()+ delete(s.conns, c)+ }+ s.mu.Unlock()+}++// SetHeader sets the header metadata.+// When called multiple times, all the provided metadata will be merged.+// All the metadata will be sent out when one of the following happens:+// - grpc.SendHeader() is called;+// - The first response is sent out;+// - An RPC status is sent out (error or success).+func SetHeader(ctx context.Context, md metadata.MD) error {+ if md.Len() == 0 {+ return nil+ }+ stream, ok := transport.StreamFromContext(ctx)+ if !ok {+ return Errorf(codes.Internal, "grpc: failed to fetch the stream from the context %v", ctx)+ }+ return stream.SetHeader(md)+}++// SendHeader sends header metadata. It may be called at most once.+// The provided md and headers set by SetHeader() will be sent.+func SendHeader(ctx context.Context, md metadata.MD) error {+ stream, ok := transport.StreamFromContext(ctx)+ if !ok {+ return Errorf(codes.Internal, "grpc: failed to fetch the stream from the context %v", ctx)+ }+ t := stream.ServerTransport()+ if t == nil {+ grpclog.Fatalf("grpc: SendHeader: %v has no ServerTransport to send header metadata.", stream)+ }+ if err := t.WriteHeader(stream, md); err != nil {+ return toRPCErr(err)+ }+ return nil+}++// SetTrailer sets the trailer metadata that will be sent when an RPC returns.+// When called more than once, all the provided metadata will be merged.+func SetTrailer(ctx context.Context, md metadata.MD) error {+ if md.Len() == 0 {+ return nil+ }+ stream, ok := transport.StreamFromContext(ctx)+ if !ok {+ return Errorf(codes.Internal, "grpc: failed to fetch the stream from the context %v", ctx)+ }+ return stream.SetTrailer(md)+}diff --git a/vendor/google.golang.org/grpc/stats/stats.go b/vendor/google.golang.org/grpc/stats/stats.gonew file mode 100644index 000000000..4f84aed1d--- /dev/null+++ b/vendor/google.golang.org/grpc/stats/stats.go@@ -0,0 +1,219 @@+/*+ *+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++// Package stats is for collecting and reporting various network and RPC stats.+// This package is for monitoring purpose only. All fields are read-only.+// All APIs are experimental.+package stats++import (+ "net"+ "sync/atomic"+ "time"++ "golang.org/x/net/context"+ "google.golang.org/grpc/grpclog"+)++// RPCStats contains stats information about RPCs.+// All stats types in this package implements this interface.+type RPCStats interface {+ // IsClient returns true if this RPCStats is from client side.+ IsClient() bool+}++// Begin contains stats when an RPC begins.+// FailFast are only valid if Client is true.+type Begin struct {+ // Client is true if this Begin is from client side.+ Client bool+ // BeginTime is the time when the RPC begins.+ BeginTime time.Time+ // FailFast indicates if this RPC is failfast.+ FailFast bool+}++// IsClient indicates if this is from client side.+func (s *Begin) IsClient() bool { return s.Client }++// InPayload contains the information for an incoming payload.+type InPayload struct {+ // Client is true if this InPayload is from client side.+ Client bool+ // Payload is the payload with original type.+ Payload interface{}+ // Data is the serialized message payload.+ Data []byte+ // Length is the length of uncompressed data.+ Length int+ // WireLength is the length of data on wire (compressed, signed, encrypted).+ WireLength int+ // RecvTime is the time when the payload is received.+ RecvTime time.Time+}++// IsClient indicates if this is from client side.+func (s *InPayload) IsClient() bool { return s.Client }++// InHeader contains stats when a header is received.+// FullMethod, addresses and Compression are only valid if Client is false.+type InHeader struct {+ // Client is true if this InHeader is from client side.+ Client bool+ // WireLength is the wire length of header.+ WireLength int++ // FullMethod is the full RPC method string, i.e., /package.service/method.+ FullMethod string+ // RemoteAddr is the remote address of the corresponding connection.+ RemoteAddr net.Addr+ // LocalAddr is the local address of the corresponding connection.+ LocalAddr net.Addr+ // Compression is the compression algorithm used for the RPC.+ Compression string+}++// IsClient indicates if this is from client side.+func (s *InHeader) IsClient() bool { return s.Client }++// InTrailer contains stats when a trailer is received.+type InTrailer struct {+ // Client is true if this InTrailer is from client side.+ Client bool+ // WireLength is the wire length of trailer.+ WireLength int+}++// IsClient indicates if this is from client side.+func (s *InTrailer) IsClient() bool { return s.Client }++// OutPayload contains the information for an outgoing payload.+type OutPayload struct {+ // Client is true if this OutPayload is from client side.+ Client bool+ // Payload is the payload with original type.+ Payload interface{}+ // Data is the serialized message payload.+ Data []byte+ // Length is the length of uncompressed data.+ Length int+ // WireLength is the length of data on wire (compressed, signed, encrypted).+ WireLength int+ // SentTime is the time when the payload is sent.+ SentTime time.Time+}++// IsClient indicates if this is from client side.+func (s *OutPayload) IsClient() bool { return s.Client }++// OutHeader contains stats when a header is sent.+// FullMethod, addresses and Compression are only valid if Client is true.+type OutHeader struct {+ // Client is true if this OutHeader is from client side.+ Client bool+ // WireLength is the wire length of header.+ WireLength int++ // FullMethod is the full RPC method string, i.e., /package.service/method.+ FullMethod string+ // RemoteAddr is the remote address of the corresponding connection.+ RemoteAddr net.Addr+ // LocalAddr is the local address of the corresponding connection.+ LocalAddr net.Addr+ // Compression is the compression algorithm used for the RPC.+ Compression string+}++// IsClient indicates if this is from client side.+func (s *OutHeader) IsClient() bool { return s.Client }++// OutTrailer contains stats when a trailer is sent.+type OutTrailer struct {+ // Client is true if this OutTrailer is from client side.+ Client bool+ // WireLength is the wire length of trailer.+ WireLength int+}++// IsClient indicates if this is from client side.+func (s *OutTrailer) IsClient() bool { return s.Client }++// End contains stats when an RPC ends.+type End struct {+ // Client is true if this End is from client side.+ Client bool+ // EndTime is the time when the RPC ends.+ EndTime time.Time+ // Error is the error just happened. Its type is gRPC error.+ Error error+}++// IsClient indicates if this is from client side.+func (s *End) IsClient() bool { return s.Client }++var (+ on = new(int32)+ handler func(context.Context, RPCStats)+)++// On indicates whether stats is started.+func On() bool {+ return atomic.CompareAndSwapInt32(on, 1, 1)+}++// Handle processes the stats using the call back function registered by user.+func Handle(ctx context.Context, s RPCStats) {+ handler(ctx, s)+}++// RegisterHandler registers the user handler function.+// If another handler was registered before, this new handler will overwrite the old one.+// This handler function will be called to process the stats.+func RegisterHandler(f func(context.Context, RPCStats)) {+ handler = f+}++// Start starts the stats collection and reporting if there is a registered stats handle.+func Start() {+ if handler == nil {+ grpclog.Println("handler is nil when starting stats. Stats is not started")+ return+ }+ atomic.StoreInt32(on, 1)+}++// Stop stops the stats collection and processing.+// Stop does not unregister handler.+func Stop() {+ atomic.StoreInt32(on, 0)+}diff --git a/vendor/google.golang.org/grpc/stream.go b/vendor/google.golang.org/grpc/stream.gonew file mode 100644index 000000000..95c8acf8d--- /dev/null+++ b/vendor/google.golang.org/grpc/stream.go@@ -0,0 +1,605 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package grpc++import (+ "bytes"+ "errors"+ "io"+ "math"+ "sync"+ "time"++ "golang.org/x/net/context"+ "golang.org/x/net/trace"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/stats"+ "google.golang.org/grpc/transport"+)++// StreamHandler defines the handler called by gRPC server to complete the+// execution of a streaming RPC.+type StreamHandler func(srv interface{}, stream ServerStream) error++// StreamDesc represents a streaming RPC service's method specification.+type StreamDesc struct {+ StreamName string+ Handler StreamHandler++ // At least one of these is true.+ ServerStreams bool+ ClientStreams bool+}++// Stream defines the common interface a client or server stream has to satisfy.+type Stream interface {+ // Context returns the context for this stream.+ Context() context.Context+ // SendMsg blocks until it sends m, the stream is done or the stream+ // breaks.+ // On error, it aborts the stream and returns an RPC status on client+ // side. On server side, it simply returns the error to the caller.+ // SendMsg is called by generated code. Also Users can call SendMsg+ // directly when it is really needed in their use cases.+ SendMsg(m interface{}) error+ // RecvMsg blocks until it receives a message or the stream is+ // done. On client side, it returns io.EOF when the stream is done. On+ // any other error, it aborts the stream and returns an RPC status. On+ // server side, it simply returns the error to the caller.+ RecvMsg(m interface{}) error+}++// ClientStream defines the interface a client stream has to satisfy.+type ClientStream interface {+ // Header returns the header metadata received from the server if there+ // is any. It blocks if the metadata is not ready to read.+ Header() (metadata.MD, error)+ // Trailer returns the trailer metadata from the server, if there is any.+ // It must only be called after stream.CloseAndRecv has returned, or+ // stream.Recv has returned a non-nil error (including io.EOF).+ Trailer() metadata.MD+ // CloseSend closes the send direction of the stream. It closes the stream+ // when non-nil error is met.+ CloseSend() error+ Stream+}++// NewClientStream creates a new Stream for the client side. This is called+// by generated code.+func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (_ ClientStream, err error) {+ if cc.dopts.streamInt != nil {+ return cc.dopts.streamInt(ctx, desc, cc, method, newClientStream, opts...)+ }+ return newClientStream(ctx, desc, cc, method, opts...)+}++func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (_ ClientStream, err error) {+ var (+ t transport.ClientTransport+ s *transport.Stream+ put func()+ )+ c := defaultCallInfo+ for _, o := range opts {+ if err := o.before(&c); err != nil {+ return nil, toRPCErr(err)+ }+ }+ callHdr := &transport.CallHdr{+ Host: cc.authority,+ Method: method,+ Flush: desc.ServerStreams && desc.ClientStreams,+ }+ if cc.dopts.cp != nil {+ callHdr.SendCompress = cc.dopts.cp.Type()+ }+ var trInfo traceInfo+ if EnableTracing {+ trInfo.tr = trace.New("grpc.Sent."+methodFamily(method), method)+ trInfo.firstLine.client = true+ if deadline, ok := ctx.Deadline(); ok {+ trInfo.firstLine.deadline = deadline.Sub(time.Now())+ }+ trInfo.tr.LazyLog(&trInfo.firstLine, false)+ ctx = trace.NewContext(ctx, trInfo.tr)+ defer func() {+ if err != nil {+ // Need to call tr.finish() if error is returned.+ // Because tr will not be returned to caller.+ trInfo.tr.LazyPrintf("RPC: [%v]", err)+ trInfo.tr.SetError()+ trInfo.tr.Finish()+ }+ }()+ }+ if stats.On() {+ begin := &stats.Begin{+ Client: true,+ BeginTime: time.Now(),+ FailFast: c.failFast,+ }+ stats.Handle(ctx, begin)+ }+ defer func() {+ if err != nil && stats.On() {+ // Only handle end stats if err != nil.+ end := &stats.End{+ Client: true,+ Error: err,+ }+ stats.Handle(ctx, end)+ }+ }()+ gopts := BalancerGetOptions{+ BlockingWait: !c.failFast,+ }+ for {+ t, put, err = cc.getTransport(ctx, gopts)+ if err != nil {+ // TODO(zhaoq): Probably revisit the error handling.+ if _, ok := err.(*rpcError); ok {+ return nil, err+ }+ if err == errConnClosing || err == errConnUnavailable {+ if c.failFast {+ return nil, Errorf(codes.Unavailable, "%v", err)+ }+ continue+ }+ // All the other errors are treated as Internal errors.+ return nil, Errorf(codes.Internal, "%v", err)+ }++ s, err = t.NewStream(ctx, callHdr)+ if err != nil {+ if put != nil {+ put()+ put = nil+ }+ if _, ok := err.(transport.ConnectionError); ok || err == transport.ErrStreamDrain {+ if c.failFast {+ return nil, toRPCErr(err)+ }+ continue+ }+ return nil, toRPCErr(err)+ }+ break+ }+ cs := &clientStream{+ opts: opts,+ c: c,+ desc: desc,+ codec: cc.dopts.codec,+ cp: cc.dopts.cp,+ dc: cc.dopts.dc,++ put: put,+ t: t,+ s: s,+ p: &parser{r: s},++ tracing: EnableTracing,+ trInfo: trInfo,++ statsCtx: ctx,+ }+ if cc.dopts.cp != nil {+ cs.cbuf = new(bytes.Buffer)+ }+ // Listen on ctx.Done() to detect cancellation and s.Done() to detect normal termination+ // when there is no pending I/O operations on this stream.+ go func() {+ select {+ case <-t.Error():+ // Incur transport error, simply exit.+ case <-s.Done():+ // TODO: The trace of the RPC is terminated here when there is no pending+ // I/O, which is probably not the optimal solution.+ if s.StatusCode() == codes.OK {+ cs.finish(nil)+ } else {+ cs.finish(Errorf(s.StatusCode(), "%s", s.StatusDesc()))+ }+ cs.closeTransportStream(nil)+ case <-s.GoAway():+ cs.finish(errConnDrain)+ cs.closeTransportStream(errConnDrain)+ case <-s.Context().Done():+ err := s.Context().Err()+ cs.finish(err)+ cs.closeTransportStream(transport.ContextErr(err))+ }+ }()+ return cs, nil+}++// clientStream implements a client side Stream.+type clientStream struct {+ opts []CallOption+ c callInfo+ t transport.ClientTransport+ s *transport.Stream+ p *parser+ desc *StreamDesc+ codec Codec+ cp Compressor+ cbuf *bytes.Buffer+ dc Decompressor++ tracing bool // set to EnableTracing when the clientStream is created.++ mu sync.Mutex+ put func()+ closed bool+ // trInfo.tr is set when the clientStream is created (if EnableTracing is true),+ // and is set to nil when the clientStream's finish method is called.+ trInfo traceInfo++ // statsCtx keeps the user context for stats handling.+ // All stats collection should use the statsCtx (instead of the stream context)+ // so that all the generated stats for a particular RPC can be associated in the processing phase.+ statsCtx context.Context+}++func (cs *clientStream) Context() context.Context {+ return cs.s.Context()+}++func (cs *clientStream) Header() (metadata.MD, error) {+ m, err := cs.s.Header()+ if err != nil {+ if _, ok := err.(transport.ConnectionError); !ok {+ cs.closeTransportStream(err)+ }+ }+ return m, err+}++func (cs *clientStream) Trailer() metadata.MD {+ return cs.s.Trailer()+}++func (cs *clientStream) SendMsg(m interface{}) (err error) {+ if cs.tracing {+ cs.mu.Lock()+ if cs.trInfo.tr != nil {+ cs.trInfo.tr.LazyLog(&payload{sent: true, msg: m}, true)+ }+ cs.mu.Unlock()+ }+ // TODO Investigate how to signal the stats handling party.+ // generate error stats if err != nil && err != io.EOF?+ defer func() {+ if err != nil {+ cs.finish(err)+ }+ if err == nil {+ return+ }+ if err == io.EOF {+ // Specialize the process for server streaming. SendMesg is only called+ // once when creating the stream object. io.EOF needs to be skipped when+ // the rpc is early finished (before the stream object is created.).+ // TODO: It is probably better to move this into the generated code.+ if !cs.desc.ClientStreams && cs.desc.ServerStreams {+ err = nil+ }+ return+ }+ if _, ok := err.(transport.ConnectionError); !ok {+ cs.closeTransportStream(err)+ }+ err = toRPCErr(err)+ }()+ var outPayload *stats.OutPayload+ if stats.On() {+ outPayload = &stats.OutPayload{+ Client: true,+ }+ }+ out, err := encode(cs.codec, m, cs.cp, cs.cbuf, outPayload)+ defer func() {+ if cs.cbuf != nil {+ cs.cbuf.Reset()+ }+ }()+ if err != nil {+ return Errorf(codes.Internal, "grpc: %v", err)+ }+ err = cs.t.Write(cs.s, out, &transport.Options{Last: false})+ if err == nil && outPayload != nil {+ outPayload.SentTime = time.Now()+ stats.Handle(cs.statsCtx, outPayload)+ }+ return err+}++func (cs *clientStream) RecvMsg(m interface{}) (err error) {+ defer func() {+ if err != nil && stats.On() {+ // Only generate End if err != nil.+ // If err == nil, it's not the last RecvMsg.+ // The last RecvMsg gets either an RPC error or io.EOF.+ end := &stats.End{+ Client: true,+ EndTime: time.Now(),+ }+ if err != io.EOF {+ end.Error = toRPCErr(err)+ }+ stats.Handle(cs.statsCtx, end)+ }+ }()+ var inPayload *stats.InPayload+ if stats.On() {+ inPayload = &stats.InPayload{+ Client: true,+ }+ }+ err = recv(cs.p, cs.codec, cs.s, cs.dc, m, math.MaxInt32, inPayload)+ defer func() {+ // err != nil indicates the termination of the stream.+ if err != nil {+ cs.finish(err)+ }+ }()+ if err == nil {+ if cs.tracing {+ cs.mu.Lock()+ if cs.trInfo.tr != nil {+ cs.trInfo.tr.LazyLog(&payload{sent: false, msg: m}, true)+ }+ cs.mu.Unlock()+ }+ if inPayload != nil {+ stats.Handle(cs.statsCtx, inPayload)+ }+ if !cs.desc.ClientStreams || cs.desc.ServerStreams {+ return+ }+ // Special handling for client streaming rpc.+ // This recv expects EOF or errors, so we don't collect inPayload.+ err = recv(cs.p, cs.codec, cs.s, cs.dc, m, math.MaxInt32, nil)+ cs.closeTransportStream(err)+ if err == nil {+ return toRPCErr(errors.New("grpc: client streaming protocol violation: get <nil>, want <EOF>"))+ }+ if err == io.EOF {+ if cs.s.StatusCode() == codes.OK {+ cs.finish(err)+ return nil+ }+ return Errorf(cs.s.StatusCode(), "%s", cs.s.StatusDesc())+ }+ return toRPCErr(err)+ }+ if _, ok := err.(transport.ConnectionError); !ok {+ cs.closeTransportStream(err)+ }+ if err == io.EOF {+ if cs.s.StatusCode() == codes.OK {+ // Returns io.EOF to indicate the end of the stream.+ return+ }+ return Errorf(cs.s.StatusCode(), "%s", cs.s.StatusDesc())+ }+ return toRPCErr(err)+}++func (cs *clientStream) CloseSend() (err error) {+ err = cs.t.Write(cs.s, nil, &transport.Options{Last: true})+ defer func() {+ if err != nil {+ cs.finish(err)+ }+ }()+ if err == nil || err == io.EOF {+ return nil+ }+ if _, ok := err.(transport.ConnectionError); !ok {+ cs.closeTransportStream(err)+ }+ err = toRPCErr(err)+ return+}++func (cs *clientStream) closeTransportStream(err error) {+ cs.mu.Lock()+ if cs.closed {+ cs.mu.Unlock()+ return+ }+ cs.closed = true+ cs.mu.Unlock()+ cs.t.CloseStream(cs.s, err)+}++func (cs *clientStream) finish(err error) {+ cs.mu.Lock()+ defer cs.mu.Unlock()+ for _, o := range cs.opts {+ o.after(&cs.c)+ }+ if cs.put != nil {+ cs.put()+ cs.put = nil+ }+ if !cs.tracing {+ return+ }+ if cs.trInfo.tr != nil {+ if err == nil || err == io.EOF {+ cs.trInfo.tr.LazyPrintf("RPC: [OK]")+ } else {+ cs.trInfo.tr.LazyPrintf("RPC: [%v]", err)+ cs.trInfo.tr.SetError()+ }+ cs.trInfo.tr.Finish()+ cs.trInfo.tr = nil+ }+}++// ServerStream defines the interface a server stream has to satisfy.+type ServerStream interface {+ // SetHeader sets the header metadata. It may be called multiple times.+ // When call multiple times, all the provided metadata will be merged.+ // All the metadata will be sent out when one of the following happens:+ // - ServerStream.SendHeader() is called;+ // - The first response is sent out;+ // - An RPC status is sent out (error or success).+ SetHeader(metadata.MD) error+ // SendHeader sends the header metadata.+ // The provided md and headers set by SetHeader() will be sent.+ // It fails if called multiple times.+ SendHeader(metadata.MD) error+ // SetTrailer sets the trailer metadata which will be sent with the RPC status.+ // When called more than once, all the provided metadata will be merged.+ SetTrailer(metadata.MD)+ Stream+}++// serverStream implements a server side Stream.+type serverStream struct {+ t transport.ServerTransport+ s *transport.Stream+ p *parser+ codec Codec+ cp Compressor+ dc Decompressor+ cbuf *bytes.Buffer+ maxMsgSize int+ statusCode codes.Code+ statusDesc string+ trInfo *traceInfo++ mu sync.Mutex // protects trInfo.tr after the service handler runs.+}++func (ss *serverStream) Context() context.Context {+ return ss.s.Context()+}++func (ss *serverStream) SetHeader(md metadata.MD) error {+ if md.Len() == 0 {+ return nil+ }+ return ss.s.SetHeader(md)+}++func (ss *serverStream) SendHeader(md metadata.MD) error {+ return ss.t.WriteHeader(ss.s, md)+}++func (ss *serverStream) SetTrailer(md metadata.MD) {+ if md.Len() == 0 {+ return+ }+ ss.s.SetTrailer(md)+ return+}++func (ss *serverStream) SendMsg(m interface{}) (err error) {+ defer func() {+ if ss.trInfo != nil {+ ss.mu.Lock()+ if ss.trInfo.tr != nil {+ if err == nil {+ ss.trInfo.tr.LazyLog(&payload{sent: true, msg: m}, true)+ } else {+ ss.trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)+ ss.trInfo.tr.SetError()+ }+ }+ ss.mu.Unlock()+ }+ }()+ var outPayload *stats.OutPayload+ if stats.On() {+ outPayload = &stats.OutPayload{}+ }+ out, err := encode(ss.codec, m, ss.cp, ss.cbuf, outPayload)+ defer func() {+ if ss.cbuf != nil {+ ss.cbuf.Reset()+ }+ }()+ if err != nil {+ err = Errorf(codes.Internal, "grpc: %v", err)+ return err+ }+ if err := ss.t.Write(ss.s, out, &transport.Options{Last: false}); err != nil {+ return toRPCErr(err)+ }+ if outPayload != nil {+ outPayload.SentTime = time.Now()+ stats.Handle(ss.s.Context(), outPayload)+ }+ return nil+}++func (ss *serverStream) RecvMsg(m interface{}) (err error) {+ defer func() {+ if ss.trInfo != nil {+ ss.mu.Lock()+ if ss.trInfo.tr != nil {+ if err == nil {+ ss.trInfo.tr.LazyLog(&payload{sent: false, msg: m}, true)+ } else if err != io.EOF {+ ss.trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)+ ss.trInfo.tr.SetError()+ }+ }+ ss.mu.Unlock()+ }+ }()+ var inPayload *stats.InPayload+ if stats.On() {+ inPayload = &stats.InPayload{}+ }+ if err := recv(ss.p, ss.codec, ss.s, ss.dc, m, ss.maxMsgSize, inPayload); err != nil {+ if err == io.EOF {+ return err+ }+ if err == io.ErrUnexpectedEOF {+ err = Errorf(codes.Internal, io.ErrUnexpectedEOF.Error())+ }+ return toRPCErr(err)+ }+ if inPayload != nil {+ stats.Handle(ss.s.Context(), inPayload)+ }+ return nil+}diff --git a/vendor/google.golang.org/grpc/tap/tap.go b/vendor/google.golang.org/grpc/tap/tap.gonew file mode 100644index 000000000..0f3664767--- /dev/null+++ b/vendor/google.golang.org/grpc/tap/tap.go@@ -0,0 +1,54 @@+/*+ *+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++// Package tap defines the function handles which are executed on the transport+// layer of gRPC-Go and related information. Everything here is EXPERIMENTAL.+package tap++import (+ "golang.org/x/net/context"+)++// Info defines the relevant information needed by the handles.+type Info struct {+ // FullMethodName is the string of grpc method (in the format of+ // /package.service/method).+ FullMethodName string+ // TODO: More to be added.+}++// ServerInHandle defines the function which runs when a new stream is created+// on the server side. Note that it is executed in the per-connection I/O goroutine(s) instead+// of per-RPC goroutine. Therefore, users should NOT have any blocking/time-consuming+// work in this handle. Otherwise all the RPCs would slow down.+type ServerInHandle func(ctx context.Context, info *Info) (context.Context, error)diff --git a/vendor/google.golang.org/grpc/trace.go b/vendor/google.golang.org/grpc/trace.gonew file mode 100644index 000000000..f6747e1df--- /dev/null+++ b/vendor/google.golang.org/grpc/trace.go@@ -0,0 +1,119 @@+/*+ *+ * Copyright 2015, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package grpc++import (+ "bytes"+ "fmt"+ "io"+ "net"+ "strings"+ "time"++ "golang.org/x/net/trace"+)++// EnableTracing controls whether to trace RPCs using the golang.org/x/net/trace package.+// This should only be set before any RPCs are sent or received by this program.+var EnableTracing = true++// methodFamily returns the trace family for the given method.+// It turns "/pkg.Service/GetFoo" into "pkg.Service".+func methodFamily(m string) string {+ m = strings.TrimPrefix(m, "/") // remove leading slash+ if i := strings.Index(m, "/"); i >= 0 {+ m = m[:i] // remove everything from second slash+ }+ if i := strings.LastIndex(m, "."); i >= 0 {+ m = m[i+1:] // cut down to last dotted component+ }+ return m+}++// traceInfo contains tracing information for an RPC.+type traceInfo struct {+ tr trace.Trace+ firstLine firstLine+}++// firstLine is the first line of an RPC trace.+type firstLine struct {+ client bool // whether this is a client (outgoing) RPC+ remoteAddr net.Addr+ deadline time.Duration // may be zero+}++func (f *firstLine) String() string {+ var line bytes.Buffer+ io.WriteString(&line, "RPC: ")+ if f.client {+ io.WriteString(&line, "to")+ } else {+ io.WriteString(&line, "from")+ }+ fmt.Fprintf(&line, " %v deadline:", f.remoteAddr)+ if f.deadline != 0 {+ fmt.Fprint(&line, f.deadline)+ } else {+ io.WriteString(&line, "none")+ }+ return line.String()+}++// payload represents an RPC request or response payload.+type payload struct {+ sent bool // whether this is an outgoing payload+ msg interface{} // e.g. a proto.Message+ // TODO(dsymonds): add stringifying info to codec, and limit how much we hold here?+}++func (p payload) String() string {+ if p.sent {+ return fmt.Sprintf("sent: %v", p.msg)+ }+ return fmt.Sprintf("recv: %v", p.msg)+}++type fmtStringer struct {+ format string+ a []interface{}+}++func (f *fmtStringer) String() string {+ return fmt.Sprintf(f.format, f.a...)+}++type stringer string++func (s stringer) String() string { return string(s) }diff --git a/vendor/google.golang.org/grpc/transport/control.go b/vendor/google.golang.org/grpc/transport/control.gonew file mode 100644index 000000000..4ef0830b5--- /dev/null+++ b/vendor/google.golang.org/grpc/transport/control.go@@ -0,0 +1,215 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package transport++import (+ "fmt"+ "sync"++ "golang.org/x/net/http2"+)++const (+ // The default value of flow control window size in HTTP2 spec.+ defaultWindowSize = 65535+ // The initial window size for flow control.+ initialWindowSize = defaultWindowSize // for an RPC+ initialConnWindowSize = defaultWindowSize * 16 // for a connection+)++// The following defines various control items which could flow through+// the control buffer of transport. They represent different aspects of+// control tasks, e.g., flow control, settings, streaming resetting, etc.+type windowUpdate struct {+ streamID uint32+ increment uint32+}++func (*windowUpdate) item() {}++type settings struct {+ ack bool+ ss []http2.Setting+}++func (*settings) item() {}++type resetStream struct {+ streamID uint32+ code http2.ErrCode+}++func (*resetStream) item() {}++type goAway struct {+}++func (*goAway) item() {}++type flushIO struct {+}++func (*flushIO) item() {}++type ping struct {+ ack bool+ data [8]byte+}++func (*ping) item() {}++// quotaPool is a pool which accumulates the quota and sends it to acquire()+// when it is available.+type quotaPool struct {+ c chan int++ mu sync.Mutex+ quota int+}++// newQuotaPool creates a quotaPool which has quota q available to consume.+func newQuotaPool(q int) *quotaPool {+ qb := "aPool{+ c: make(chan int, 1),+ }+ if q > 0 {+ qb.c <- q+ } else {+ qb.quota = q+ }+ return qb+}++// add adds n to the available quota and tries to send it on acquire.+func (qb *quotaPool) add(n int) {+ qb.mu.Lock()+ defer qb.mu.Unlock()+ qb.quota += n+ if qb.quota <= 0 {+ return+ }+ select {+ case qb.c <- qb.quota:+ qb.quota = 0+ default:+ }+}++// cancel cancels the pending quota sent on acquire, if any.+func (qb *quotaPool) cancel() {+ qb.mu.Lock()+ defer qb.mu.Unlock()+ select {+ case n := <-qb.c:+ qb.quota += n+ default:+ }+}++// reset cancels the pending quota sent on acquired, incremented by v and sends+// it back on acquire.+func (qb *quotaPool) reset(v int) {+ qb.mu.Lock()+ defer qb.mu.Unlock()+ select {+ case n := <-qb.c:+ qb.quota += n+ default:+ }+ qb.quota += v+ if qb.quota <= 0 {+ return+ }+ select {+ case qb.c <- qb.quota:+ qb.quota = 0+ default:+ }+}++// acquire returns the channel on which available quota amounts are sent.+func (qb *quotaPool) acquire() <-chan int {+ return qb.c+}++// inFlow deals with inbound flow control+type inFlow struct {+ // The inbound flow control limit for pending data.+ limit uint32++ mu sync.Mutex+ // pendingData is the overall data which have been received but not been+ // consumed by applications.+ pendingData uint32+ // The amount of data the application has consumed but grpc has not sent+ // window update for them. Used to reduce window update frequency.+ pendingUpdate uint32+}++// onData is invoked when some data frame is received. It updates pendingData.+func (f *inFlow) onData(n uint32) error {+ f.mu.Lock()+ defer f.mu.Unlock()+ f.pendingData += n+ if f.pendingData+f.pendingUpdate > f.limit {+ return fmt.Errorf("received %d-bytes data exceeding the limit %d bytes", f.pendingData+f.pendingUpdate, f.limit)+ }+ return nil+}++// onRead is invoked when the application reads the data. It returns the window size+// to be sent to the peer.+func (f *inFlow) onRead(n uint32) uint32 {+ f.mu.Lock()+ defer f.mu.Unlock()+ if f.pendingData == 0 {+ return 0+ }+ f.pendingData -= n+ f.pendingUpdate += n+ if f.pendingUpdate >= f.limit/4 {+ wu := f.pendingUpdate+ f.pendingUpdate = 0+ return wu+ }+ return 0+}++func (f *inFlow) resetPendingData() uint32 {+ f.mu.Lock()+ defer f.mu.Unlock()+ n := f.pendingData+ f.pendingData = 0+ return n+}diff --git a/vendor/google.golang.org/grpc/transport/go16.go b/vendor/google.golang.org/grpc/transport/go16.gonew file mode 100644index 000000000..ee1c46bad--- /dev/null+++ b/vendor/google.golang.org/grpc/transport/go16.go@@ -0,0 +1,46 @@+// +build go1.6,!go1.7++/*+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package transport++import (+ "net"++ "golang.org/x/net/context"+)++// dialContext connects to the address on the named network.+func dialContext(ctx context.Context, network, address string) (net.Conn, error) {+ return (&net.Dialer{Cancel: ctx.Done()}).Dial(network, address)+}diff --git a/vendor/google.golang.org/grpc/transport/go17.go b/vendor/google.golang.org/grpc/transport/go17.gonew file mode 100644index 000000000..356f13ff1--- /dev/null+++ b/vendor/google.golang.org/grpc/transport/go17.go@@ -0,0 +1,46 @@+// +build go1.7++/*+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package transport++import (+ "net"++ "golang.org/x/net/context"+)++// dialContext connects to the address on the named network.+func dialContext(ctx context.Context, network, address string) (net.Conn, error) {+ return (&net.Dialer{}).DialContext(ctx, network, address)+}diff --git a/vendor/google.golang.org/grpc/transport/handler_server.go b/vendor/google.golang.org/grpc/transport/handler_server.gonew file mode 100644index 000000000..10b6dc0b1--- /dev/null+++ b/vendor/google.golang.org/grpc/transport/handler_server.go@@ -0,0 +1,397 @@+/*+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++// This file is the implementation of a gRPC server using HTTP/2 which+// uses the standard Go http2 Server implementation (via the+// http.Handler interface), rather than speaking low-level HTTP/2+// frames itself. It is the implementation of *grpc.Server.ServeHTTP.++package transport++import (+ "errors"+ "fmt"+ "io"+ "net"+ "net/http"+ "strings"+ "sync"+ "time"++ "golang.org/x/net/context"+ "golang.org/x/net/http2"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/credentials"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/peer"+)++// NewServerHandlerTransport returns a ServerTransport handling gRPC+// from inside an http.Handler. It requires that the http Server+// supports HTTP/2.+func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request) (ServerTransport, error) {+ if r.ProtoMajor != 2 {+ return nil, errors.New("gRPC requires HTTP/2")+ }+ if r.Method != "POST" {+ return nil, errors.New("invalid gRPC request method")+ }+ if !validContentType(r.Header.Get("Content-Type")) {+ return nil, errors.New("invalid gRPC request content-type")+ }+ if _, ok := w.(http.Flusher); !ok {+ return nil, errors.New("gRPC requires a ResponseWriter supporting http.Flusher")+ }+ if _, ok := w.(http.CloseNotifier); !ok {+ return nil, errors.New("gRPC requires a ResponseWriter supporting http.CloseNotifier")+ }++ st := &serverHandlerTransport{+ rw: w,+ req: r,+ closedCh: make(chan struct{}),+ writes: make(chan func()),+ }++ if v := r.Header.Get("grpc-timeout"); v != "" {+ to, err := decodeTimeout(v)+ if err != nil {+ return nil, streamErrorf(codes.Internal, "malformed time-out: %v", err)+ }+ st.timeoutSet = true+ st.timeout = to+ }++ var metakv []string+ if r.Host != "" {+ metakv = append(metakv, ":authority", r.Host)+ }+ for k, vv := range r.Header {+ k = strings.ToLower(k)+ if isReservedHeader(k) && !isWhitelistedPseudoHeader(k) {+ continue+ }+ for _, v := range vv {+ if k == "user-agent" {+ // user-agent is special. Copying logic of http_util.go.+ if i := strings.LastIndex(v, " "); i == -1 {+ // There is no application user agent string being set+ continue+ } else {+ v = v[:i]+ }+ }+ metakv = append(metakv, k, v)+ }+ }+ st.headerMD = metadata.Pairs(metakv...)++ return st, nil+}++// serverHandlerTransport is an implementation of ServerTransport+// which replies to exactly one gRPC request (exactly one HTTP request),+// using the net/http.Handler interface. This http.Handler is guaranteed+// at this point to be speaking over HTTP/2, so it's able to speak valid+// gRPC.+type serverHandlerTransport struct {+ rw http.ResponseWriter+ req *http.Request+ timeoutSet bool+ timeout time.Duration+ didCommonHeaders bool++ headerMD metadata.MD++ closeOnce sync.Once+ closedCh chan struct{} // closed on Close++ // writes is a channel of code to run serialized in the+ // ServeHTTP (HandleStreams) goroutine. The channel is closed+ // when WriteStatus is called.+ writes chan func()+}++func (ht *serverHandlerTransport) Close() error {+ ht.closeOnce.Do(ht.closeCloseChanOnce)+ return nil+}++func (ht *serverHandlerTransport) closeCloseChanOnce() { close(ht.closedCh) }++func (ht *serverHandlerTransport) RemoteAddr() net.Addr { return strAddr(ht.req.RemoteAddr) }++// strAddr is a net.Addr backed by either a TCP "ip:port" string, or+// the empty string if unknown.+type strAddr string++func (a strAddr) Network() string {+ if a != "" {+ // Per the documentation on net/http.Request.RemoteAddr, if this is+ // set, it's set to the IP:port of the peer (hence, TCP):+ // https://golang.org/pkg/net/http/#Request+ //+ // If we want to support Unix sockets later, we can+ // add our own grpc-specific convention within the+ // grpc codebase to set RemoteAddr to a different+ // format, or probably better: we can attach it to the+ // context and use that from serverHandlerTransport.RemoteAddr.+ return "tcp"+ }+ return ""+}++func (a strAddr) String() string { return string(a) }++// do runs fn in the ServeHTTP goroutine.+func (ht *serverHandlerTransport) do(fn func()) error {+ select {+ case ht.writes <- fn:+ return nil+ case <-ht.closedCh:+ return ErrConnClosing+ }+}++func (ht *serverHandlerTransport) WriteStatus(s *Stream, statusCode codes.Code, statusDesc string) error {+ err := ht.do(func() {+ ht.writeCommonHeaders(s)++ // And flush, in case no header or body has been sent yet.+ // This forces a separation of headers and trailers if this is the+ // first call (for example, in end2end tests's TestNoService).+ ht.rw.(http.Flusher).Flush()++ h := ht.rw.Header()+ h.Set("Grpc-Status", fmt.Sprintf("%d", statusCode))+ if statusDesc != "" {+ h.Set("Grpc-Message", encodeGrpcMessage(statusDesc))+ }+ if md := s.Trailer(); len(md) > 0 {+ for k, vv := range md {+ // Clients don't tolerate reading restricted headers after some non restricted ones were sent.+ if isReservedHeader(k) {+ continue+ }+ for _, v := range vv {+ // http2 ResponseWriter mechanism to+ // send undeclared Trailers after the+ // headers have possibly been written.+ h.Add(http2.TrailerPrefix+k, v)+ }+ }+ }+ })+ close(ht.writes)+ return err+}++// writeCommonHeaders sets common headers on the first write+// call (Write, WriteHeader, or WriteStatus).+func (ht *serverHandlerTransport) writeCommonHeaders(s *Stream) {+ if ht.didCommonHeaders {+ return+ }+ ht.didCommonHeaders = true++ h := ht.rw.Header()+ h["Date"] = nil // suppress Date to make tests happy; TODO: restore+ h.Set("Content-Type", "application/grpc")++ // Predeclare trailers we'll set later in WriteStatus (after the body).+ // This is a SHOULD in the HTTP RFC, and the way you add (known)+ // Trailers per the net/http.ResponseWriter contract.+ // See https://golang.org/pkg/net/http/#ResponseWriter+ // and https://golang.org/pkg/net/http/#example_ResponseWriter_trailers+ h.Add("Trailer", "Grpc-Status")+ h.Add("Trailer", "Grpc-Message")++ if s.sendCompress != "" {+ h.Set("Grpc-Encoding", s.sendCompress)+ }+}++func (ht *serverHandlerTransport) Write(s *Stream, data []byte, opts *Options) error {+ return ht.do(func() {+ ht.writeCommonHeaders(s)+ ht.rw.Write(data)+ if !opts.Delay {+ ht.rw.(http.Flusher).Flush()+ }+ })+}++func (ht *serverHandlerTransport) WriteHeader(s *Stream, md metadata.MD) error {+ return ht.do(func() {+ ht.writeCommonHeaders(s)+ h := ht.rw.Header()+ for k, vv := range md {+ // Clients don't tolerate reading restricted headers after some non restricted ones were sent.+ if isReservedHeader(k) {+ continue+ }+ for _, v := range vv {+ h.Add(k, v)+ }+ }+ ht.rw.WriteHeader(200)+ ht.rw.(http.Flusher).Flush()+ })+}++func (ht *serverHandlerTransport) HandleStreams(startStream func(*Stream), traceCtx func(context.Context, string) context.Context) {+ // With this transport type there will be exactly 1 stream: this HTTP request.++ var ctx context.Context+ var cancel context.CancelFunc+ if ht.timeoutSet {+ ctx, cancel = context.WithTimeout(context.Background(), ht.timeout)+ } else {+ ctx, cancel = context.WithCancel(context.Background())+ }++ // requestOver is closed when either the request's context is done+ // or the status has been written via WriteStatus.+ requestOver := make(chan struct{})++ // clientGone receives a single value if peer is gone, either+ // because the underlying connection is dead or because the+ // peer sends an http2 RST_STREAM.+ clientGone := ht.rw.(http.CloseNotifier).CloseNotify()+ go func() {+ select {+ case <-requestOver:+ return+ case <-ht.closedCh:+ case <-clientGone:+ }+ cancel()+ }()++ req := ht.req++ s := &Stream{+ id: 0, // irrelevant+ windowHandler: func(int) {}, // nothing+ cancel: cancel,+ buf: newRecvBuffer(),+ st: ht,+ method: req.URL.Path,+ recvCompress: req.Header.Get("grpc-encoding"),+ }+ pr := &peer.Peer{+ Addr: ht.RemoteAddr(),+ }+ if req.TLS != nil {+ pr.AuthInfo = credentials.TLSInfo{State: *req.TLS}+ }+ ctx = metadata.NewContext(ctx, ht.headerMD)+ ctx = peer.NewContext(ctx, pr)+ s.ctx = newContextWithStream(ctx, s)+ s.dec = &recvBufferReader{ctx: s.ctx, recv: s.buf}++ // readerDone is closed when the Body.Read-ing goroutine exits.+ readerDone := make(chan struct{})+ go func() {+ defer close(readerDone)++ // TODO: minimize garbage, optimize recvBuffer code/ownership+ const readSize = 8196+ for buf := make([]byte, readSize); ; {+ n, err := req.Body.Read(buf)+ if n > 0 {+ s.buf.put(&recvMsg{data: buf[:n:n]})+ buf = buf[n:]+ }+ if err != nil {+ s.buf.put(&recvMsg{err: mapRecvMsgError(err)})+ return+ }+ if len(buf) == 0 {+ buf = make([]byte, readSize)+ }+ }+ }()++ // startStream is provided by the *grpc.Server's serveStreams.+ // It starts a goroutine serving s and exits immediately.+ // The goroutine that is started is the one that then calls+ // into ht, calling WriteHeader, Write, WriteStatus, Close, etc.+ startStream(s)++ ht.runStream()+ close(requestOver)++ // Wait for reading goroutine to finish.+ req.Body.Close()+ <-readerDone+}++func (ht *serverHandlerTransport) runStream() {+ for {+ select {+ case fn, ok := <-ht.writes:+ if !ok {+ return+ }+ fn()+ case <-ht.closedCh:+ return+ }+ }+}++func (ht *serverHandlerTransport) Drain() {+ panic("Drain() is not implemented")+}++// mapRecvMsgError returns the non-nil err into the appropriate+// error value as expected by callers of *grpc.parser.recvMsg.+// In particular, in can only be:+// * io.EOF+// * io.ErrUnexpectedEOF+// * of type transport.ConnectionError+// * of type transport.StreamError+func mapRecvMsgError(err error) error {+ if err == io.EOF || err == io.ErrUnexpectedEOF {+ return err+ }+ if se, ok := err.(http2.StreamError); ok {+ if code, ok := http2ErrConvTab[se.Code]; ok {+ return StreamError{+ Code: code,+ Desc: se.Error(),+ }+ }+ }+ return connectionErrorf(true, err, err.Error())+}diff --git a/vendor/google.golang.org/grpc/transport/http2_client.go b/vendor/google.golang.org/grpc/transport/http2_client.gonew file mode 100644index 000000000..cbd9f3260--- /dev/null+++ b/vendor/google.golang.org/grpc/transport/http2_client.go@@ -0,0 +1,1113 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package transport++import (+ "bytes"+ "fmt"+ "io"+ "math"+ "net"+ "strings"+ "sync"+ "time"++ "golang.org/x/net/context"+ "golang.org/x/net/http2"+ "golang.org/x/net/http2/hpack"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/credentials"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/peer"+ "google.golang.org/grpc/stats"+)++// http2Client implements the ClientTransport interface with HTTP2.+type http2Client struct {+ target string // server name/addr+ userAgent string+ md interface{}+ conn net.Conn // underlying communication channel+ remoteAddr net.Addr+ localAddr net.Addr+ authInfo credentials.AuthInfo // auth info about the connection+ nextID uint32 // the next stream ID to be used++ // writableChan synchronizes write access to the transport.+ // A writer acquires the write lock by sending a value on writableChan+ // and releases it by receiving from writableChan.+ writableChan chan int+ // shutdownChan is closed when Close is called.+ // Blocking operations should select on shutdownChan to avoid+ // blocking forever after Close.+ // TODO(zhaoq): Maybe have a channel context?+ shutdownChan chan struct{}+ // errorChan is closed to notify the I/O error to the caller.+ errorChan chan struct{}+ // goAway is closed to notify the upper layer (i.e., addrConn.transportMonitor)+ // that the server sent GoAway on this transport.+ goAway chan struct{}++ framer *framer+ hBuf *bytes.Buffer // the buffer for HPACK encoding+ hEnc *hpack.Encoder // HPACK encoder++ // controlBuf delivers all the control related tasks (e.g., window+ // updates, reset streams, and various settings) to the controller.+ controlBuf *recvBuffer+ fc *inFlow+ // sendQuotaPool provides flow control to outbound message.+ sendQuotaPool *quotaPool+ // streamsQuota limits the max number of concurrent streams.+ streamsQuota *quotaPool++ // The scheme used: https if TLS is on, http otherwise.+ scheme string++ creds []credentials.PerRPCCredentials++ mu sync.Mutex // guard the following variables+ state transportState // the state of underlying connection+ activeStreams map[uint32]*Stream+ // The max number of concurrent streams+ maxStreams int+ // the per-stream outbound flow control window size set by the peer.+ streamSendQuota uint32+ // goAwayID records the Last-Stream-ID in the GoAway frame from the server.+ goAwayID uint32+ // prevGoAway ID records the Last-Stream-ID in the previous GOAway frame.+ prevGoAwayID uint32+}++func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error), addr string) (net.Conn, error) {+ if fn != nil {+ return fn(ctx, addr)+ }+ return dialContext(ctx, "tcp", addr)+}++func isTemporary(err error) bool {+ switch err {+ case io.EOF:+ // Connection closures may be resolved upon retry, and are thus+ // treated as temporary.+ return true+ case context.DeadlineExceeded:+ // In Go 1.7, context.DeadlineExceeded implements Timeout(), and this+ // special case is not needed. Until then, we need to keep this+ // clause.+ return true+ }++ switch err := err.(type) {+ case interface {+ Temporary() bool+ }:+ return err.Temporary()+ case interface {+ Timeout() bool+ }:+ // Timeouts may be resolved upon retry, and are thus treated as+ // temporary.+ return err.Timeout()+ }+ return false+}++// newHTTP2Client constructs a connected ClientTransport to addr based on HTTP2+// and starts to receive messages on it. Non-nil error returns if construction+// fails.+func newHTTP2Client(ctx context.Context, addr TargetInfo, opts ConnectOptions) (_ ClientTransport, err error) {+ scheme := "http"+ conn, err := dial(ctx, opts.Dialer, addr.Addr)+ if err != nil {+ if opts.FailOnNonTempDialError {+ return nil, connectionErrorf(isTemporary(err), err, "transport: %v", err)+ }+ return nil, connectionErrorf(true, err, "transport: %v", err)+ }+ // Any further errors will close the underlying connection+ defer func(conn net.Conn) {+ if err != nil {+ conn.Close()+ }+ }(conn)+ var authInfo credentials.AuthInfo+ if creds := opts.TransportCredentials; creds != nil {+ scheme = "https"+ conn, authInfo, err = creds.ClientHandshake(ctx, addr.Addr, conn)+ if err != nil {+ // Credentials handshake errors are typically considered permanent+ // to avoid retrying on e.g. bad certificates.+ temp := isTemporary(err)+ return nil, connectionErrorf(temp, err, "transport: %v", err)+ }+ }+ ua := primaryUA+ if opts.UserAgent != "" {+ ua = opts.UserAgent + " " + ua+ }+ var buf bytes.Buffer+ t := &http2Client{+ target: addr.Addr,+ userAgent: ua,+ md: addr.Metadata,+ conn: conn,+ remoteAddr: conn.RemoteAddr(),+ localAddr: conn.LocalAddr(),+ authInfo: authInfo,+ // The client initiated stream id is odd starting from 1.+ nextID: 1,+ writableChan: make(chan int, 1),+ shutdownChan: make(chan struct{}),+ errorChan: make(chan struct{}),+ goAway: make(chan struct{}),+ framer: newFramer(conn),+ hBuf: &buf,+ hEnc: hpack.NewEncoder(&buf),+ controlBuf: newRecvBuffer(),+ fc: &inFlow{limit: initialConnWindowSize},+ sendQuotaPool: newQuotaPool(defaultWindowSize),+ scheme: scheme,+ state: reachable,+ activeStreams: make(map[uint32]*Stream),+ creds: opts.PerRPCCredentials,+ maxStreams: math.MaxInt32,+ streamSendQuota: defaultWindowSize,+ }+ // Start the reader goroutine for incoming message. Each transport has+ // a dedicated goroutine which reads HTTP2 frame from network. Then it+ // dispatches the frame to the corresponding stream entity.+ go t.reader()+ // Send connection preface to server.+ n, err := t.conn.Write(clientPreface)+ if err != nil {+ t.Close()+ return nil, connectionErrorf(true, err, "transport: %v", err)+ }+ if n != len(clientPreface) {+ t.Close()+ return nil, connectionErrorf(true, err, "transport: preface mismatch, wrote %d bytes; want %d", n, len(clientPreface))+ }+ if initialWindowSize != defaultWindowSize {+ err = t.framer.writeSettings(true, http2.Setting{+ ID: http2.SettingInitialWindowSize,+ Val: uint32(initialWindowSize),+ })+ } else {+ err = t.framer.writeSettings(true)+ }+ if err != nil {+ t.Close()+ return nil, connectionErrorf(true, err, "transport: %v", err)+ }+ // Adjust the connection flow control window if needed.+ if delta := uint32(initialConnWindowSize - defaultWindowSize); delta > 0 {+ if err := t.framer.writeWindowUpdate(true, 0, delta); err != nil {+ t.Close()+ return nil, connectionErrorf(true, err, "transport: %v", err)+ }+ }+ go t.controller()+ t.writableChan <- 0+ return t, nil+}++func (t *http2Client) newStream(ctx context.Context, callHdr *CallHdr) *Stream {+ // TODO(zhaoq): Handle uint32 overflow of Stream.id.+ s := &Stream{+ id: t.nextID,+ done: make(chan struct{}),+ goAway: make(chan struct{}),+ method: callHdr.Method,+ sendCompress: callHdr.SendCompress,+ buf: newRecvBuffer(),+ fc: &inFlow{limit: initialWindowSize},+ sendQuotaPool: newQuotaPool(int(t.streamSendQuota)),+ headerChan: make(chan struct{}),+ }+ t.nextID += 2+ s.windowHandler = func(n int) {+ t.updateWindow(s, uint32(n))+ }+ // The client side stream context should have exactly the same life cycle with the user provided context.+ // That means, s.ctx should be read-only. And s.ctx is done iff ctx is done.+ // So we use the original context here instead of creating a copy.+ s.ctx = ctx+ s.dec = &recvBufferReader{+ ctx: s.ctx,+ goAway: s.goAway,+ recv: s.buf,+ }+ return s+}++// NewStream creates a stream and register it into the transport as "active"+// streams.+func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (_ *Stream, err error) {+ pr := &peer.Peer{+ Addr: t.remoteAddr,+ }+ // Attach Auth info if there is any.+ if t.authInfo != nil {+ pr.AuthInfo = t.authInfo+ }+ userCtx := ctx+ ctx = peer.NewContext(ctx, pr)+ authData := make(map[string]string)+ for _, c := range t.creds {+ // Construct URI required to get auth request metadata.+ var port string+ if pos := strings.LastIndex(t.target, ":"); pos != -1 {+ // Omit port if it is the default one.+ if t.target[pos+1:] != "443" {+ port = ":" + t.target[pos+1:]+ }+ }+ pos := strings.LastIndex(callHdr.Method, "/")+ if pos == -1 {+ return nil, streamErrorf(codes.InvalidArgument, "transport: malformed method name: %q", callHdr.Method)+ }+ audience := "https://" + callHdr.Host + port + callHdr.Method[:pos]+ data, err := c.GetRequestMetadata(ctx, audience)+ if err != nil {+ return nil, streamErrorf(codes.InvalidArgument, "transport: %v", err)+ }+ for k, v := range data {+ authData[k] = v+ }+ }+ t.mu.Lock()+ if t.activeStreams == nil {+ t.mu.Unlock()+ return nil, ErrConnClosing+ }+ if t.state == draining {+ t.mu.Unlock()+ return nil, ErrStreamDrain+ }+ if t.state != reachable {+ t.mu.Unlock()+ return nil, ErrConnClosing+ }+ checkStreamsQuota := t.streamsQuota != nil+ t.mu.Unlock()+ if checkStreamsQuota {+ sq, err := wait(ctx, nil, nil, t.shutdownChan, t.streamsQuota.acquire())+ if err != nil {+ return nil, err+ }+ // Returns the quota balance back.+ if sq > 1 {+ t.streamsQuota.add(sq - 1)+ }+ }+ if _, err := wait(ctx, nil, nil, t.shutdownChan, t.writableChan); err != nil {+ // Return the quota back now because there is no stream returned to the caller.+ if _, ok := err.(StreamError); ok && checkStreamsQuota {+ t.streamsQuota.add(1)+ }+ return nil, err+ }+ t.mu.Lock()+ if t.state == draining {+ t.mu.Unlock()+ if checkStreamsQuota {+ t.streamsQuota.add(1)+ }+ // Need to make t writable again so that the rpc in flight can still proceed.+ t.writableChan <- 0+ return nil, ErrStreamDrain+ }+ if t.state != reachable {+ t.mu.Unlock()+ return nil, ErrConnClosing+ }+ s := t.newStream(ctx, callHdr)+ s.clientStatsCtx = userCtx+ t.activeStreams[s.id] = s++ // This stream is not counted when applySetings(...) initialize t.streamsQuota.+ // Reset t.streamsQuota to the right value.+ var reset bool+ if !checkStreamsQuota && t.streamsQuota != nil {+ reset = true+ }+ t.mu.Unlock()+ if reset {+ t.streamsQuota.reset(-1)+ }++ // HPACK encodes various headers. Note that once WriteField(...) is+ // called, the corresponding headers/continuation frame has to be sent+ // because hpack.Encoder is stateful.+ t.hBuf.Reset()+ t.hEnc.WriteField(hpack.HeaderField{Name: ":method", Value: "POST"})+ t.hEnc.WriteField(hpack.HeaderField{Name: ":scheme", Value: t.scheme})+ t.hEnc.WriteField(hpack.HeaderField{Name: ":path", Value: callHdr.Method})+ t.hEnc.WriteField(hpack.HeaderField{Name: ":authority", Value: callHdr.Host})+ t.hEnc.WriteField(hpack.HeaderField{Name: "content-type", Value: "application/grpc"})+ t.hEnc.WriteField(hpack.HeaderField{Name: "user-agent", Value: t.userAgent})+ t.hEnc.WriteField(hpack.HeaderField{Name: "te", Value: "trailers"})++ if callHdr.SendCompress != "" {+ t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-encoding", Value: callHdr.SendCompress})+ }+ if dl, ok := ctx.Deadline(); ok {+ // Send out timeout regardless its value. The server can detect timeout context by itself.+ timeout := dl.Sub(time.Now())+ t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-timeout", Value: encodeTimeout(timeout)})+ }++ for k, v := range authData {+ // Capital header names are illegal in HTTP/2.+ k = strings.ToLower(k)+ t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: v})+ }+ var (+ hasMD bool+ endHeaders bool+ )+ if md, ok := metadata.FromContext(ctx); ok {+ hasMD = true+ for k, v := range md {+ // HTTP doesn't allow you to set pseudoheaders after non pseudoheaders were set.+ if isReservedHeader(k) {+ continue+ }+ for _, entry := range v {+ t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: entry})+ }+ }+ }+ if md, ok := t.md.(*metadata.MD); ok {+ for k, v := range *md {+ if isReservedHeader(k) {+ continue+ }+ for _, entry := range v {+ t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: entry})+ }+ }+ }+ first := true+ bufLen := t.hBuf.Len()+ // Sends the headers in a single batch even when they span multiple frames.+ for !endHeaders {+ size := t.hBuf.Len()+ if size > http2MaxFrameLen {+ size = http2MaxFrameLen+ } else {+ endHeaders = true+ }+ var flush bool+ if endHeaders && (hasMD || callHdr.Flush) {+ flush = true+ }+ if first {+ // Sends a HeadersFrame to server to start a new stream.+ p := http2.HeadersFrameParam{+ StreamID: s.id,+ BlockFragment: t.hBuf.Next(size),+ EndStream: false,+ EndHeaders: endHeaders,+ }+ // Do a force flush for the buffered frames iff it is the last headers frame+ // and there is header metadata to be sent. Otherwise, there is flushing until+ // the corresponding data frame is written.+ err = t.framer.writeHeaders(flush, p)+ first = false+ } else {+ // Sends Continuation frames for the leftover headers.+ err = t.framer.writeContinuation(flush, s.id, endHeaders, t.hBuf.Next(size))+ }+ if err != nil {+ t.notifyError(err)+ return nil, connectionErrorf(true, err, "transport: %v", err)+ }+ }+ if stats.On() {+ outHeader := &stats.OutHeader{+ Client: true,+ WireLength: bufLen,+ FullMethod: callHdr.Method,+ RemoteAddr: t.remoteAddr,+ LocalAddr: t.localAddr,+ Compression: callHdr.SendCompress,+ }+ stats.Handle(s.clientStatsCtx, outHeader)+ }+ t.writableChan <- 0+ return s, nil+}++// CloseStream clears the footprint of a stream when the stream is not needed any more.+// This must not be executed in reader's goroutine.+func (t *http2Client) CloseStream(s *Stream, err error) {+ var updateStreams bool+ t.mu.Lock()+ if t.activeStreams == nil {+ t.mu.Unlock()+ return+ }+ if t.streamsQuota != nil {+ updateStreams = true+ }+ delete(t.activeStreams, s.id)+ if t.state == draining && len(t.activeStreams) == 0 {+ // The transport is draining and s is the last live stream on t.+ t.mu.Unlock()+ t.Close()+ return+ }+ t.mu.Unlock()+ if updateStreams {+ t.streamsQuota.add(1)+ }+ s.mu.Lock()+ if q := s.fc.resetPendingData(); q > 0 {+ if n := t.fc.onRead(q); n > 0 {+ t.controlBuf.put(&windowUpdate{0, n})+ }+ }+ if s.state == streamDone {+ s.mu.Unlock()+ return+ }+ if !s.headerDone {+ close(s.headerChan)+ s.headerDone = true+ }+ s.state = streamDone+ s.mu.Unlock()+ if se, ok := err.(StreamError); ok && se.Code != codes.DeadlineExceeded {+ t.controlBuf.put(&resetStream{s.id, http2.ErrCodeCancel})+ }+}++// Close kicks off the shutdown process of the transport. This should be called+// only once on a transport. Once it is called, the transport should not be+// accessed any more.+func (t *http2Client) Close() (err error) {+ t.mu.Lock()+ if t.state == closing {+ t.mu.Unlock()+ return+ }+ if t.state == reachable || t.state == draining {+ close(t.errorChan)+ }+ t.state = closing+ t.mu.Unlock()+ close(t.shutdownChan)+ err = t.conn.Close()+ t.mu.Lock()+ streams := t.activeStreams+ t.activeStreams = nil+ t.mu.Unlock()+ // Notify all active streams.+ for _, s := range streams {+ s.mu.Lock()+ if !s.headerDone {+ close(s.headerChan)+ s.headerDone = true+ }+ s.mu.Unlock()+ s.write(recvMsg{err: ErrConnClosing})+ }+ return+}++func (t *http2Client) GracefulClose() error {+ t.mu.Lock()+ switch t.state {+ case unreachable:+ // The server may close the connection concurrently. t is not available for+ // any streams. Close it now.+ t.mu.Unlock()+ t.Close()+ return nil+ case closing:+ t.mu.Unlock()+ return nil+ }+ // Notify the streams which were initiated after the server sent GOAWAY.+ select {+ case <-t.goAway:+ n := t.prevGoAwayID+ if n == 0 && t.nextID > 1 {+ n = t.nextID - 2+ }+ m := t.goAwayID + 2+ if m == 2 {+ m = 1+ }+ for i := m; i <= n; i += 2 {+ if s, ok := t.activeStreams[i]; ok {+ close(s.goAway)+ }+ }+ default:+ }+ if t.state == draining {+ t.mu.Unlock()+ return nil+ }+ t.state = draining+ active := len(t.activeStreams)+ t.mu.Unlock()+ if active == 0 {+ return t.Close()+ }+ return nil+}++// Write formats the data into HTTP2 data frame(s) and sends it out. The caller+// should proceed only if Write returns nil.+// TODO(zhaoq): opts.Delay is ignored in this implementation. Support it later+// if it improves the performance.+func (t *http2Client) Write(s *Stream, data []byte, opts *Options) error {+ r := bytes.NewBuffer(data)+ for {+ var p []byte+ if r.Len() > 0 {+ size := http2MaxFrameLen+ s.sendQuotaPool.add(0)+ // Wait until the stream has some quota to send the data.+ sq, err := wait(s.ctx, s.done, s.goAway, t.shutdownChan, s.sendQuotaPool.acquire())+ if err != nil {+ return err+ }+ t.sendQuotaPool.add(0)+ // Wait until the transport has some quota to send the data.+ tq, err := wait(s.ctx, s.done, s.goAway, t.shutdownChan, t.sendQuotaPool.acquire())+ if err != nil {+ if _, ok := err.(StreamError); ok || err == io.EOF {+ t.sendQuotaPool.cancel()+ }+ return err+ }+ if sq < size {+ size = sq+ }+ if tq < size {+ size = tq+ }+ p = r.Next(size)+ ps := len(p)+ if ps < sq {+ // Overbooked stream quota. Return it back.+ s.sendQuotaPool.add(sq - ps)+ }+ if ps < tq {+ // Overbooked transport quota. Return it back.+ t.sendQuotaPool.add(tq - ps)+ }+ }+ var (+ endStream bool+ forceFlush bool+ )+ if opts.Last && r.Len() == 0 {+ endStream = true+ }+ // Indicate there is a writer who is about to write a data frame.+ t.framer.adjustNumWriters(1)+ // Got some quota. Try to acquire writing privilege on the transport.+ if _, err := wait(s.ctx, s.done, s.goAway, t.shutdownChan, t.writableChan); err != nil {+ if _, ok := err.(StreamError); ok || err == io.EOF {+ // Return the connection quota back.+ t.sendQuotaPool.add(len(p))+ }+ if t.framer.adjustNumWriters(-1) == 0 {+ // This writer is the last one in this batch and has the+ // responsibility to flush the buffered frames. It queues+ // a flush request to controlBuf instead of flushing directly+ // in order to avoid the race with other writing or flushing.+ t.controlBuf.put(&flushIO{})+ }+ return err+ }+ select {+ case <-s.ctx.Done():+ t.sendQuotaPool.add(len(p))+ if t.framer.adjustNumWriters(-1) == 0 {+ t.controlBuf.put(&flushIO{})+ }+ t.writableChan <- 0+ return ContextErr(s.ctx.Err())+ default:+ }+ if r.Len() == 0 && t.framer.adjustNumWriters(0) == 1 {+ // Do a force flush iff this is last frame for the entire gRPC message+ // and the caller is the only writer at this moment.+ forceFlush = true+ }+ // If WriteData fails, all the pending streams will be handled+ // by http2Client.Close(). No explicit CloseStream() needs to be+ // invoked.+ if err := t.framer.writeData(forceFlush, s.id, endStream, p); err != nil {+ t.notifyError(err)+ return connectionErrorf(true, err, "transport: %v", err)+ }+ if t.framer.adjustNumWriters(-1) == 0 {+ t.framer.flushWrite()+ }+ t.writableChan <- 0+ if r.Len() == 0 {+ break+ }+ }+ if !opts.Last {+ return nil+ }+ s.mu.Lock()+ if s.state != streamDone {+ s.state = streamWriteDone+ }+ s.mu.Unlock()+ return nil+}++func (t *http2Client) getStream(f http2.Frame) (*Stream, bool) {+ t.mu.Lock()+ defer t.mu.Unlock()+ s, ok := t.activeStreams[f.Header().StreamID]+ return s, ok+}++// updateWindow adjusts the inbound quota for the stream and the transport.+// Window updates will deliver to the controller for sending when+// the cumulative quota exceeds the corresponding threshold.+func (t *http2Client) updateWindow(s *Stream, n uint32) {+ s.mu.Lock()+ defer s.mu.Unlock()+ if s.state == streamDone {+ return+ }+ if w := t.fc.onRead(n); w > 0 {+ t.controlBuf.put(&windowUpdate{0, w})+ }+ if w := s.fc.onRead(n); w > 0 {+ t.controlBuf.put(&windowUpdate{s.id, w})+ }+}++func (t *http2Client) handleData(f *http2.DataFrame) {+ size := len(f.Data())+ if err := t.fc.onData(uint32(size)); err != nil {+ t.notifyError(connectionErrorf(true, err, "%v", err))+ return+ }+ // Select the right stream to dispatch.+ s, ok := t.getStream(f)+ if !ok {+ if w := t.fc.onRead(uint32(size)); w > 0 {+ t.controlBuf.put(&windowUpdate{0, w})+ }+ return+ }+ if size > 0 {+ s.mu.Lock()+ if s.state == streamDone {+ s.mu.Unlock()+ // The stream has been closed. Release the corresponding quota.+ if w := t.fc.onRead(uint32(size)); w > 0 {+ t.controlBuf.put(&windowUpdate{0, w})+ }+ return+ }+ if err := s.fc.onData(uint32(size)); err != nil {+ s.state = streamDone+ s.statusCode = codes.Internal+ s.statusDesc = err.Error()+ close(s.done)+ s.mu.Unlock()+ s.write(recvMsg{err: io.EOF})+ t.controlBuf.put(&resetStream{s.id, http2.ErrCodeFlowControl})+ return+ }+ s.mu.Unlock()+ // TODO(bradfitz, zhaoq): A copy is required here because there is no+ // guarantee f.Data() is consumed before the arrival of next frame.+ // Can this copy be eliminated?+ data := make([]byte, size)+ copy(data, f.Data())+ s.write(recvMsg{data: data})+ }+ // The server has closed the stream without sending trailers. Record that+ // the read direction is closed, and set the status appropriately.+ if f.FrameHeader.Flags.Has(http2.FlagDataEndStream) {+ s.mu.Lock()+ if s.state == streamDone {+ s.mu.Unlock()+ return+ }+ s.state = streamDone+ s.statusCode = codes.Internal+ s.statusDesc = "server closed the stream without sending trailers"+ close(s.done)+ s.mu.Unlock()+ s.write(recvMsg{err: io.EOF})+ }+}++func (t *http2Client) handleRSTStream(f *http2.RSTStreamFrame) {+ s, ok := t.getStream(f)+ if !ok {+ return+ }+ s.mu.Lock()+ if s.state == streamDone {+ s.mu.Unlock()+ return+ }+ s.state = streamDone+ if !s.headerDone {+ close(s.headerChan)+ s.headerDone = true+ }+ s.statusCode, ok = http2ErrConvTab[http2.ErrCode(f.ErrCode)]+ if !ok {+ grpclog.Println("transport: http2Client.handleRSTStream found no mapped gRPC status for the received http2 error ", f.ErrCode)+ s.statusCode = codes.Unknown+ }+ s.statusDesc = fmt.Sprintf("stream terminated by RST_STREAM with error code: %d", f.ErrCode)+ close(s.done)+ s.mu.Unlock()+ s.write(recvMsg{err: io.EOF})+}++func (t *http2Client) handleSettings(f *http2.SettingsFrame) {+ if f.IsAck() {+ return+ }+ var ss []http2.Setting+ f.ForeachSetting(func(s http2.Setting) error {+ ss = append(ss, s)+ return nil+ })+ // The settings will be applied once the ack is sent.+ t.controlBuf.put(&settings{ack: true, ss: ss})+}++func (t *http2Client) handlePing(f *http2.PingFrame) {+ if f.IsAck() { // Do nothing.+ return+ }+ pingAck := &ping{ack: true}+ copy(pingAck.data[:], f.Data[:])+ t.controlBuf.put(pingAck)+}++func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) {+ t.mu.Lock()+ if t.state == reachable || t.state == draining {+ if f.LastStreamID > 0 && f.LastStreamID%2 != 1 {+ t.mu.Unlock()+ t.notifyError(connectionErrorf(true, nil, "received illegal http2 GOAWAY frame: stream ID %d is even", f.LastStreamID))+ return+ }+ select {+ case <-t.goAway:+ id := t.goAwayID+ // t.goAway has been closed (i.e.,multiple GoAways).+ if id < f.LastStreamID {+ t.mu.Unlock()+ t.notifyError(connectionErrorf(true, nil, "received illegal http2 GOAWAY frame: previously recv GOAWAY frame with LastStramID %d, currently recv %d", id, f.LastStreamID))+ return+ }+ t.prevGoAwayID = id+ t.goAwayID = f.LastStreamID+ t.mu.Unlock()+ return+ default:+ }+ t.goAwayID = f.LastStreamID+ close(t.goAway)+ }+ t.mu.Unlock()+}++func (t *http2Client) handleWindowUpdate(f *http2.WindowUpdateFrame) {+ id := f.Header().StreamID+ incr := f.Increment+ if id == 0 {+ t.sendQuotaPool.add(int(incr))+ return+ }+ if s, ok := t.getStream(f); ok {+ s.sendQuotaPool.add(int(incr))+ }+}++// operateHeaders takes action on the decoded headers.+func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {+ s, ok := t.getStream(frame)+ if !ok {+ return+ }+ var state decodeState+ for _, hf := range frame.Fields {+ state.processHeaderField(hf)+ }+ if state.err != nil {+ s.mu.Lock()+ if !s.headerDone {+ close(s.headerChan)+ s.headerDone = true+ }+ s.mu.Unlock()+ s.write(recvMsg{err: state.err})+ // Something wrong. Stops reading even when there is remaining.+ return+ }++ endStream := frame.StreamEnded()+ var isHeader bool+ defer func() {+ if stats.On() {+ if isHeader {+ inHeader := &stats.InHeader{+ Client: true,+ WireLength: int(frame.Header().Length),+ }+ stats.Handle(s.clientStatsCtx, inHeader)+ } else {+ inTrailer := &stats.InTrailer{+ Client: true,+ WireLength: int(frame.Header().Length),+ }+ stats.Handle(s.clientStatsCtx, inTrailer)+ }+ }+ }()++ s.mu.Lock()+ if !endStream {+ s.recvCompress = state.encoding+ }+ if !s.headerDone {+ if !endStream && len(state.mdata) > 0 {+ s.header = state.mdata+ }+ close(s.headerChan)+ s.headerDone = true+ isHeader = true+ }+ if !endStream || s.state == streamDone {+ s.mu.Unlock()+ return+ }++ if len(state.mdata) > 0 {+ s.trailer = state.mdata+ }+ s.statusCode = state.statusCode+ s.statusDesc = state.statusDesc+ close(s.done)+ s.state = streamDone+ s.mu.Unlock()+ s.write(recvMsg{err: io.EOF})+}++func handleMalformedHTTP2(s *Stream, err error) {+ s.mu.Lock()+ if !s.headerDone {+ close(s.headerChan)+ s.headerDone = true+ }+ s.mu.Unlock()+ s.write(recvMsg{err: err})+}++// reader runs as a separate goroutine in charge of reading data from network+// connection.+//+// TODO(zhaoq): currently one reader per transport. Investigate whether this is+// optimal.+// TODO(zhaoq): Check the validity of the incoming frame sequence.+func (t *http2Client) reader() {+ // Check the validity of server preface.+ frame, err := t.framer.readFrame()+ if err != nil {+ t.notifyError(err)+ return+ }+ sf, ok := frame.(*http2.SettingsFrame)+ if !ok {+ t.notifyError(err)+ return+ }+ t.handleSettings(sf)++ // loop to keep reading incoming messages on this transport.+ for {+ frame, err := t.framer.readFrame()+ if err != nil {+ // Abort an active stream if the http2.Framer returns a+ // http2.StreamError. This can happen only if the server's response+ // is malformed http2.+ if se, ok := err.(http2.StreamError); ok {+ t.mu.Lock()+ s := t.activeStreams[se.StreamID]+ t.mu.Unlock()+ if s != nil {+ // use error detail to provide better err message+ handleMalformedHTTP2(s, streamErrorf(http2ErrConvTab[se.Code], "%v", t.framer.errorDetail()))+ }+ continue+ } else {+ // Transport error.+ t.notifyError(err)+ return+ }+ }+ switch frame := frame.(type) {+ case *http2.MetaHeadersFrame:+ t.operateHeaders(frame)+ case *http2.DataFrame:+ t.handleData(frame)+ case *http2.RSTStreamFrame:+ t.handleRSTStream(frame)+ case *http2.SettingsFrame:+ t.handleSettings(frame)+ case *http2.PingFrame:+ t.handlePing(frame)+ case *http2.GoAwayFrame:+ t.handleGoAway(frame)+ case *http2.WindowUpdateFrame:+ t.handleWindowUpdate(frame)+ default:+ grpclog.Printf("transport: http2Client.reader got unhandled frame type %v.", frame)+ }+ }+}++func (t *http2Client) applySettings(ss []http2.Setting) {+ for _, s := range ss {+ switch s.ID {+ case http2.SettingMaxConcurrentStreams:+ // TODO(zhaoq): This is a hack to avoid significant refactoring of the+ // code to deal with the unrealistic int32 overflow. Probably will try+ // to find a better way to handle this later.+ if s.Val > math.MaxInt32 {+ s.Val = math.MaxInt32+ }+ t.mu.Lock()+ reset := t.streamsQuota != nil+ if !reset {+ t.streamsQuota = newQuotaPool(int(s.Val) - len(t.activeStreams))+ }+ ms := t.maxStreams+ t.maxStreams = int(s.Val)+ t.mu.Unlock()+ if reset {+ t.streamsQuota.reset(int(s.Val) - ms)+ }+ case http2.SettingInitialWindowSize:+ t.mu.Lock()+ for _, stream := range t.activeStreams {+ // Adjust the sending quota for each stream.+ stream.sendQuotaPool.reset(int(s.Val - t.streamSendQuota))+ }+ t.streamSendQuota = s.Val+ t.mu.Unlock()+ }+ }+}++// controller running in a separate goroutine takes charge of sending control+// frames (e.g., window update, reset stream, setting, etc.) to the server.+func (t *http2Client) controller() {+ for {+ select {+ case i := <-t.controlBuf.get():+ t.controlBuf.load()+ select {+ case <-t.writableChan:+ switch i := i.(type) {+ case *windowUpdate:+ t.framer.writeWindowUpdate(true, i.streamID, i.increment)+ case *settings:+ if i.ack {+ t.framer.writeSettingsAck(true)+ t.applySettings(i.ss)+ } else {+ t.framer.writeSettings(true, i.ss...)+ }+ case *resetStream:+ t.framer.writeRSTStream(true, i.streamID, i.code)+ case *flushIO:+ t.framer.flushWrite()+ case *ping:+ t.framer.writePing(true, i.ack, i.data)+ default:+ grpclog.Printf("transport: http2Client.controller got unexpected item type %v\n", i)+ }+ t.writableChan <- 0+ continue+ case <-t.shutdownChan:+ return+ }+ case <-t.shutdownChan:+ return+ }+ }+}++func (t *http2Client) Error() <-chan struct{} {+ return t.errorChan+}++func (t *http2Client) GoAway() <-chan struct{} {+ return t.goAway+}++func (t *http2Client) notifyError(err error) {+ t.mu.Lock()+ // make sure t.errorChan is closed only once.+ if t.state == draining {+ t.mu.Unlock()+ t.Close()+ return+ }+ if t.state == reachable {+ t.state = unreachable+ close(t.errorChan)+ grpclog.Printf("transport: http2Client.notifyError got notified that the client transport was broken %v.", err)+ }+ t.mu.Unlock()+}diff --git a/vendor/google.golang.org/grpc/transport/http2_server.go b/vendor/google.golang.org/grpc/transport/http2_server.gonew file mode 100644index 000000000..db9beb90a--- /dev/null+++ b/vendor/google.golang.org/grpc/transport/http2_server.go@@ -0,0 +1,822 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package transport++import (+ "bytes"+ "errors"+ "io"+ "math"+ "net"+ "strconv"+ "sync"++ "golang.org/x/net/context"+ "golang.org/x/net/http2"+ "golang.org/x/net/http2/hpack"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/credentials"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/peer"+ "google.golang.org/grpc/stats"+ "google.golang.org/grpc/tap"+)++// ErrIllegalHeaderWrite indicates that setting header is illegal because of+// the stream's state.+var ErrIllegalHeaderWrite = errors.New("transport: the stream is done or WriteHeader was already called")++// http2Server implements the ServerTransport interface with HTTP2.+type http2Server struct {+ conn net.Conn+ remoteAddr net.Addr+ localAddr net.Addr+ maxStreamID uint32 // max stream ID ever seen+ authInfo credentials.AuthInfo // auth info about the connection+ inTapHandle tap.ServerInHandle+ // writableChan synchronizes write access to the transport.+ // A writer acquires the write lock by receiving a value on writableChan+ // and releases it by sending on writableChan.+ writableChan chan int+ // shutdownChan is closed when Close is called.+ // Blocking operations should select on shutdownChan to avoid+ // blocking forever after Close.+ shutdownChan chan struct{}+ framer *framer+ hBuf *bytes.Buffer // the buffer for HPACK encoding+ hEnc *hpack.Encoder // HPACK encoder++ // The max number of concurrent streams.+ maxStreams uint32+ // controlBuf delivers all the control related tasks (e.g., window+ // updates, reset streams, and various settings) to the controller.+ controlBuf *recvBuffer+ fc *inFlow+ // sendQuotaPool provides flow control to outbound message.+ sendQuotaPool *quotaPool++ mu sync.Mutex // guard the following+ state transportState+ activeStreams map[uint32]*Stream+ // the per-stream outbound flow control window size set by the peer.+ streamSendQuota uint32+}++// newHTTP2Server constructs a ServerTransport based on HTTP2. ConnectionError is+// returned if something goes wrong.+func newHTTP2Server(conn net.Conn, config *ServerConfig) (_ ServerTransport, err error) {+ framer := newFramer(conn)+ // Send initial settings as connection preface to client.+ var settings []http2.Setting+ // TODO(zhaoq): Have a better way to signal "no limit" because 0 is+ // permitted in the HTTP2 spec.+ maxStreams := config.MaxStreams+ if maxStreams == 0 {+ maxStreams = math.MaxUint32+ } else {+ settings = append(settings, http2.Setting{+ ID: http2.SettingMaxConcurrentStreams,+ Val: maxStreams,+ })+ }+ if initialWindowSize != defaultWindowSize {+ settings = append(settings, http2.Setting{+ ID: http2.SettingInitialWindowSize,+ Val: uint32(initialWindowSize)})+ }+ if err := framer.writeSettings(true, settings...); err != nil {+ return nil, connectionErrorf(true, err, "transport: %v", err)+ }+ // Adjust the connection flow control window if needed.+ if delta := uint32(initialConnWindowSize - defaultWindowSize); delta > 0 {+ if err := framer.writeWindowUpdate(true, 0, delta); err != nil {+ return nil, connectionErrorf(true, err, "transport: %v", err)+ }+ }+ var buf bytes.Buffer+ t := &http2Server{+ conn: conn,+ remoteAddr: conn.RemoteAddr(),+ localAddr: conn.LocalAddr(),+ authInfo: config.AuthInfo,+ framer: framer,+ hBuf: &buf,+ hEnc: hpack.NewEncoder(&buf),+ maxStreams: maxStreams,+ inTapHandle: config.InTapHandle,+ controlBuf: newRecvBuffer(),+ fc: &inFlow{limit: initialConnWindowSize},+ sendQuotaPool: newQuotaPool(defaultWindowSize),+ state: reachable,+ writableChan: make(chan int, 1),+ shutdownChan: make(chan struct{}),+ activeStreams: make(map[uint32]*Stream),+ streamSendQuota: defaultWindowSize,+ }+ go t.controller()+ t.writableChan <- 0+ return t, nil+}++// operateHeader takes action on the decoded headers.+func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func(*Stream), traceCtx func(context.Context, string) context.Context) (close bool) {+ buf := newRecvBuffer()+ s := &Stream{+ id: frame.Header().StreamID,+ st: t,+ buf: buf,+ fc: &inFlow{limit: initialWindowSize},+ }++ var state decodeState+ for _, hf := range frame.Fields {+ state.processHeaderField(hf)+ }+ if err := state.err; err != nil {+ if se, ok := err.(StreamError); ok {+ t.controlBuf.put(&resetStream{s.id, statusCodeConvTab[se.Code]})+ }+ return+ }++ if frame.StreamEnded() {+ // s is just created by the caller. No lock needed.+ s.state = streamReadDone+ }+ s.recvCompress = state.encoding+ if state.timeoutSet {+ s.ctx, s.cancel = context.WithTimeout(context.TODO(), state.timeout)+ } else {+ s.ctx, s.cancel = context.WithCancel(context.TODO())+ }+ pr := &peer.Peer{+ Addr: t.remoteAddr,+ }+ // Attach Auth info if there is any.+ if t.authInfo != nil {+ pr.AuthInfo = t.authInfo+ }+ s.ctx = peer.NewContext(s.ctx, pr)+ // Cache the current stream to the context so that the server application+ // can find out. Required when the server wants to send some metadata+ // back to the client (unary call only).+ s.ctx = newContextWithStream(s.ctx, s)+ // Attach the received metadata to the context.+ if len(state.mdata) > 0 {+ s.ctx = metadata.NewContext(s.ctx, state.mdata)+ }++ s.dec = &recvBufferReader{+ ctx: s.ctx,+ recv: s.buf,+ }+ s.recvCompress = state.encoding+ s.method = state.method+ if t.inTapHandle != nil {+ var err error+ info := &tap.Info{+ FullMethodName: state.method,+ }+ s.ctx, err = t.inTapHandle(s.ctx, info)+ if err != nil {+ // TODO: Log the real error.+ t.controlBuf.put(&resetStream{s.id, http2.ErrCodeRefusedStream})+ return+ }+ }+ t.mu.Lock()+ if t.state != reachable {+ t.mu.Unlock()+ return+ }+ if uint32(len(t.activeStreams)) >= t.maxStreams {+ t.mu.Unlock()+ t.controlBuf.put(&resetStream{s.id, http2.ErrCodeRefusedStream})+ return+ }+ if s.id%2 != 1 || s.id <= t.maxStreamID {+ t.mu.Unlock()+ // illegal gRPC stream id.+ grpclog.Println("transport: http2Server.HandleStreams received an illegal stream id: ", s.id)+ return true+ }+ t.maxStreamID = s.id+ s.sendQuotaPool = newQuotaPool(int(t.streamSendQuota))+ t.activeStreams[s.id] = s+ t.mu.Unlock()+ s.windowHandler = func(n int) {+ t.updateWindow(s, uint32(n))+ }+ s.ctx = traceCtx(s.ctx, s.method)+ if stats.On() {+ inHeader := &stats.InHeader{+ FullMethod: s.method,+ RemoteAddr: t.remoteAddr,+ LocalAddr: t.localAddr,+ Compression: s.recvCompress,+ WireLength: int(frame.Header().Length),+ }+ stats.Handle(s.ctx, inHeader)+ }+ handle(s)+ return+}++// HandleStreams receives incoming streams using the given handler. This is+// typically run in a separate goroutine.+// traceCtx attaches trace to ctx and returns the new context.+func (t *http2Server) HandleStreams(handle func(*Stream), traceCtx func(context.Context, string) context.Context) {+ // Check the validity of client preface.+ preface := make([]byte, len(clientPreface))+ if _, err := io.ReadFull(t.conn, preface); err != nil {+ grpclog.Printf("transport: http2Server.HandleStreams failed to receive the preface from client: %v", err)+ t.Close()+ return+ }+ if !bytes.Equal(preface, clientPreface) {+ grpclog.Printf("transport: http2Server.HandleStreams received bogus greeting from client: %q", preface)+ t.Close()+ return+ }++ frame, err := t.framer.readFrame()+ if err == io.EOF || err == io.ErrUnexpectedEOF {+ t.Close()+ return+ }+ if err != nil {+ grpclog.Printf("transport: http2Server.HandleStreams failed to read frame: %v", err)+ t.Close()+ return+ }+ sf, ok := frame.(*http2.SettingsFrame)+ if !ok {+ grpclog.Printf("transport: http2Server.HandleStreams saw invalid preface type %T from client", frame)+ t.Close()+ return+ }+ t.handleSettings(sf)++ for {+ frame, err := t.framer.readFrame()+ if err != nil {+ if se, ok := err.(http2.StreamError); ok {+ t.mu.Lock()+ s := t.activeStreams[se.StreamID]+ t.mu.Unlock()+ if s != nil {+ t.closeStream(s)+ }+ t.controlBuf.put(&resetStream{se.StreamID, se.Code})+ continue+ }+ if err == io.EOF || err == io.ErrUnexpectedEOF {+ t.Close()+ return+ }+ grpclog.Printf("transport: http2Server.HandleStreams failed to read frame: %v", err)+ t.Close()+ return+ }+ switch frame := frame.(type) {+ case *http2.MetaHeadersFrame:+ if t.operateHeaders(frame, handle, traceCtx) {+ t.Close()+ break+ }+ case *http2.DataFrame:+ t.handleData(frame)+ case *http2.RSTStreamFrame:+ t.handleRSTStream(frame)+ case *http2.SettingsFrame:+ t.handleSettings(frame)+ case *http2.PingFrame:+ t.handlePing(frame)+ case *http2.WindowUpdateFrame:+ t.handleWindowUpdate(frame)+ case *http2.GoAwayFrame:+ // TODO: Handle GoAway from the client appropriately.+ default:+ grpclog.Printf("transport: http2Server.HandleStreams found unhandled frame type %v.", frame)+ }+ }+}++func (t *http2Server) getStream(f http2.Frame) (*Stream, bool) {+ t.mu.Lock()+ defer t.mu.Unlock()+ if t.activeStreams == nil {+ // The transport is closing.+ return nil, false+ }+ s, ok := t.activeStreams[f.Header().StreamID]+ if !ok {+ // The stream is already done.+ return nil, false+ }+ return s, true+}++// updateWindow adjusts the inbound quota for the stream and the transport.+// Window updates will deliver to the controller for sending when+// the cumulative quota exceeds the corresponding threshold.+func (t *http2Server) updateWindow(s *Stream, n uint32) {+ s.mu.Lock()+ defer s.mu.Unlock()+ if s.state == streamDone {+ return+ }+ if w := t.fc.onRead(n); w > 0 {+ t.controlBuf.put(&windowUpdate{0, w})+ }+ if w := s.fc.onRead(n); w > 0 {+ t.controlBuf.put(&windowUpdate{s.id, w})+ }+}++func (t *http2Server) handleData(f *http2.DataFrame) {+ size := len(f.Data())+ if err := t.fc.onData(uint32(size)); err != nil {+ grpclog.Printf("transport: http2Server %v", err)+ t.Close()+ return+ }+ // Select the right stream to dispatch.+ s, ok := t.getStream(f)+ if !ok {+ if w := t.fc.onRead(uint32(size)); w > 0 {+ t.controlBuf.put(&windowUpdate{0, w})+ }+ return+ }+ if size > 0 {+ s.mu.Lock()+ if s.state == streamDone {+ s.mu.Unlock()+ // The stream has been closed. Release the corresponding quota.+ if w := t.fc.onRead(uint32(size)); w > 0 {+ t.controlBuf.put(&windowUpdate{0, w})+ }+ return+ }+ if err := s.fc.onData(uint32(size)); err != nil {+ s.mu.Unlock()+ t.closeStream(s)+ t.controlBuf.put(&resetStream{s.id, http2.ErrCodeFlowControl})+ return+ }+ s.mu.Unlock()+ // TODO(bradfitz, zhaoq): A copy is required here because there is no+ // guarantee f.Data() is consumed before the arrival of next frame.+ // Can this copy be eliminated?+ data := make([]byte, size)+ copy(data, f.Data())+ s.write(recvMsg{data: data})+ }+ if f.Header().Flags.Has(http2.FlagDataEndStream) {+ // Received the end of stream from the client.+ s.mu.Lock()+ if s.state != streamDone {+ s.state = streamReadDone+ }+ s.mu.Unlock()+ s.write(recvMsg{err: io.EOF})+ }+}++func (t *http2Server) handleRSTStream(f *http2.RSTStreamFrame) {+ s, ok := t.getStream(f)+ if !ok {+ return+ }+ t.closeStream(s)+}++func (t *http2Server) handleSettings(f *http2.SettingsFrame) {+ if f.IsAck() {+ return+ }+ var ss []http2.Setting+ f.ForeachSetting(func(s http2.Setting) error {+ ss = append(ss, s)+ return nil+ })+ // The settings will be applied once the ack is sent.+ t.controlBuf.put(&settings{ack: true, ss: ss})+}++func (t *http2Server) handlePing(f *http2.PingFrame) {+ if f.IsAck() { // Do nothing.+ return+ }+ pingAck := &ping{ack: true}+ copy(pingAck.data[:], f.Data[:])+ t.controlBuf.put(pingAck)+}++func (t *http2Server) handleWindowUpdate(f *http2.WindowUpdateFrame) {+ id := f.Header().StreamID+ incr := f.Increment+ if id == 0 {+ t.sendQuotaPool.add(int(incr))+ return+ }+ if s, ok := t.getStream(f); ok {+ s.sendQuotaPool.add(int(incr))+ }+}++func (t *http2Server) writeHeaders(s *Stream, b *bytes.Buffer, endStream bool) error {+ first := true+ endHeaders := false+ var err error+ // Sends the headers in a single batch.+ for !endHeaders {+ size := t.hBuf.Len()+ if size > http2MaxFrameLen {+ size = http2MaxFrameLen+ } else {+ endHeaders = true+ }+ if first {+ p := http2.HeadersFrameParam{+ StreamID: s.id,+ BlockFragment: b.Next(size),+ EndStream: endStream,+ EndHeaders: endHeaders,+ }+ err = t.framer.writeHeaders(endHeaders, p)+ first = false+ } else {+ err = t.framer.writeContinuation(endHeaders, s.id, endHeaders, b.Next(size))+ }+ if err != nil {+ t.Close()+ return connectionErrorf(true, err, "transport: %v", err)+ }+ }+ return nil+}++// WriteHeader sends the header metedata md back to the client.+func (t *http2Server) WriteHeader(s *Stream, md metadata.MD) error {+ s.mu.Lock()+ if s.headerOk || s.state == streamDone {+ s.mu.Unlock()+ return ErrIllegalHeaderWrite+ }+ s.headerOk = true+ if md.Len() > 0 {+ if s.header.Len() > 0 {+ s.header = metadata.Join(s.header, md)+ } else {+ s.header = md+ }+ }+ md = s.header+ s.mu.Unlock()+ if _, err := wait(s.ctx, nil, nil, t.shutdownChan, t.writableChan); err != nil {+ return err+ }+ t.hBuf.Reset()+ t.hEnc.WriteField(hpack.HeaderField{Name: ":status", Value: "200"})+ t.hEnc.WriteField(hpack.HeaderField{Name: "content-type", Value: "application/grpc"})+ if s.sendCompress != "" {+ t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-encoding", Value: s.sendCompress})+ }+ for k, v := range md {+ if isReservedHeader(k) {+ // Clients don't tolerate reading restricted headers after some non restricted ones were sent.+ continue+ }+ for _, entry := range v {+ t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: entry})+ }+ }+ bufLen := t.hBuf.Len()+ if err := t.writeHeaders(s, t.hBuf, false); err != nil {+ return err+ }+ if stats.On() {+ outHeader := &stats.OutHeader{+ WireLength: bufLen,+ }+ stats.Handle(s.Context(), outHeader)+ }+ t.writableChan <- 0+ return nil+}++// WriteStatus sends stream status to the client and terminates the stream.+// There is no further I/O operations being able to perform on this stream.+// TODO(zhaoq): Now it indicates the end of entire stream. Revisit if early+// OK is adopted.+func (t *http2Server) WriteStatus(s *Stream, statusCode codes.Code, statusDesc string) error {+ var headersSent, hasHeader bool+ s.mu.Lock()+ if s.state == streamDone {+ s.mu.Unlock()+ return nil+ }+ if s.headerOk {+ headersSent = true+ }+ if s.header.Len() > 0 {+ hasHeader = true+ }+ s.mu.Unlock()++ if !headersSent && hasHeader {+ t.WriteHeader(s, nil)+ headersSent = true+ }++ if _, err := wait(s.ctx, nil, nil, t.shutdownChan, t.writableChan); err != nil {+ return err+ }+ t.hBuf.Reset()+ if !headersSent {+ t.hEnc.WriteField(hpack.HeaderField{Name: ":status", Value: "200"})+ t.hEnc.WriteField(hpack.HeaderField{Name: "content-type", Value: "application/grpc"})+ }+ t.hEnc.WriteField(+ hpack.HeaderField{+ Name: "grpc-status",+ Value: strconv.Itoa(int(statusCode)),+ })+ t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-message", Value: encodeGrpcMessage(statusDesc)})+ // Attach the trailer metadata.+ for k, v := range s.trailer {+ // Clients don't tolerate reading restricted headers after some non restricted ones were sent.+ if isReservedHeader(k) {+ continue+ }+ for _, entry := range v {+ t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: entry})+ }+ }+ bufLen := t.hBuf.Len()+ if err := t.writeHeaders(s, t.hBuf, true); err != nil {+ t.Close()+ return err+ }+ if stats.On() {+ outTrailer := &stats.OutTrailer{+ WireLength: bufLen,+ }+ stats.Handle(s.Context(), outTrailer)+ }+ t.closeStream(s)+ t.writableChan <- 0+ return nil+}++// Write converts the data into HTTP2 data frame and sends it out. Non-nil error+// is returns if it fails (e.g., framing error, transport error).+func (t *http2Server) Write(s *Stream, data []byte, opts *Options) error {+ // TODO(zhaoq): Support multi-writers for a single stream.+ var writeHeaderFrame bool+ s.mu.Lock()+ if s.state == streamDone {+ s.mu.Unlock()+ return streamErrorf(codes.Unknown, "the stream has been done")+ }+ if !s.headerOk {+ writeHeaderFrame = true+ }+ s.mu.Unlock()+ if writeHeaderFrame {+ t.WriteHeader(s, nil)+ }+ r := bytes.NewBuffer(data)+ for {+ if r.Len() == 0 {+ return nil+ }+ size := http2MaxFrameLen+ s.sendQuotaPool.add(0)+ // Wait until the stream has some quota to send the data.+ sq, err := wait(s.ctx, nil, nil, t.shutdownChan, s.sendQuotaPool.acquire())+ if err != nil {+ return err+ }+ t.sendQuotaPool.add(0)+ // Wait until the transport has some quota to send the data.+ tq, err := wait(s.ctx, nil, nil, t.shutdownChan, t.sendQuotaPool.acquire())+ if err != nil {+ if _, ok := err.(StreamError); ok {+ t.sendQuotaPool.cancel()+ }+ return err+ }+ if sq < size {+ size = sq+ }+ if tq < size {+ size = tq+ }+ p := r.Next(size)+ ps := len(p)+ if ps < sq {+ // Overbooked stream quota. Return it back.+ s.sendQuotaPool.add(sq - ps)+ }+ if ps < tq {+ // Overbooked transport quota. Return it back.+ t.sendQuotaPool.add(tq - ps)+ }+ t.framer.adjustNumWriters(1)+ // Got some quota. Try to acquire writing privilege on the+ // transport.+ if _, err := wait(s.ctx, nil, nil, t.shutdownChan, t.writableChan); err != nil {+ if _, ok := err.(StreamError); ok {+ // Return the connection quota back.+ t.sendQuotaPool.add(ps)+ }+ if t.framer.adjustNumWriters(-1) == 0 {+ // This writer is the last one in this batch and has the+ // responsibility to flush the buffered frames. It queues+ // a flush request to controlBuf instead of flushing directly+ // in order to avoid the race with other writing or flushing.+ t.controlBuf.put(&flushIO{})+ }+ return err+ }+ select {+ case <-s.ctx.Done():+ t.sendQuotaPool.add(ps)+ if t.framer.adjustNumWriters(-1) == 0 {+ t.controlBuf.put(&flushIO{})+ }+ t.writableChan <- 0+ return ContextErr(s.ctx.Err())+ default:+ }+ var forceFlush bool+ if r.Len() == 0 && t.framer.adjustNumWriters(0) == 1 && !opts.Last {+ forceFlush = true+ }+ if err := t.framer.writeData(forceFlush, s.id, false, p); err != nil {+ t.Close()+ return connectionErrorf(true, err, "transport: %v", err)+ }+ if t.framer.adjustNumWriters(-1) == 0 {+ t.framer.flushWrite()+ }+ t.writableChan <- 0+ }++}++func (t *http2Server) applySettings(ss []http2.Setting) {+ for _, s := range ss {+ if s.ID == http2.SettingInitialWindowSize {+ t.mu.Lock()+ defer t.mu.Unlock()+ for _, stream := range t.activeStreams {+ stream.sendQuotaPool.reset(int(s.Val - t.streamSendQuota))+ }+ t.streamSendQuota = s.Val+ }++ }+}++// controller running in a separate goroutine takes charge of sending control+// frames (e.g., window update, reset stream, setting, etc.) to the server.+func (t *http2Server) controller() {+ for {+ select {+ case i := <-t.controlBuf.get():+ t.controlBuf.load()+ select {+ case <-t.writableChan:+ switch i := i.(type) {+ case *windowUpdate:+ t.framer.writeWindowUpdate(true, i.streamID, i.increment)+ case *settings:+ if i.ack {+ t.framer.writeSettingsAck(true)+ t.applySettings(i.ss)+ } else {+ t.framer.writeSettings(true, i.ss...)+ }+ case *resetStream:+ t.framer.writeRSTStream(true, i.streamID, i.code)+ case *goAway:+ t.mu.Lock()+ if t.state == closing {+ t.mu.Unlock()+ // The transport is closing.+ return+ }+ sid := t.maxStreamID+ t.state = draining+ t.mu.Unlock()+ t.framer.writeGoAway(true, sid, http2.ErrCodeNo, nil)+ case *flushIO:+ t.framer.flushWrite()+ case *ping:+ t.framer.writePing(true, i.ack, i.data)+ default:+ grpclog.Printf("transport: http2Server.controller got unexpected item type %v\n", i)+ }+ t.writableChan <- 0+ continue+ case <-t.shutdownChan:+ return+ }+ case <-t.shutdownChan:+ return+ }+ }+}++// Close starts shutting down the http2Server transport.+// TODO(zhaoq): Now the destruction is not blocked on any pending streams. This+// could cause some resource issue. Revisit this later.+func (t *http2Server) Close() (err error) {+ t.mu.Lock()+ if t.state == closing {+ t.mu.Unlock()+ return errors.New("transport: Close() was already called")+ }+ t.state = closing+ streams := t.activeStreams+ t.activeStreams = nil+ t.mu.Unlock()+ close(t.shutdownChan)+ err = t.conn.Close()+ // Cancel all active streams.+ for _, s := range streams {+ s.cancel()+ }+ return+}++// closeStream clears the footprint of a stream when the stream is not needed+// any more.+func (t *http2Server) closeStream(s *Stream) {+ t.mu.Lock()+ delete(t.activeStreams, s.id)+ if t.state == draining && len(t.activeStreams) == 0 {+ defer t.Close()+ }+ t.mu.Unlock()+ // In case stream sending and receiving are invoked in separate+ // goroutines (e.g., bi-directional streaming), cancel needs to be+ // called to interrupt the potential blocking on other goroutines.+ s.cancel()+ s.mu.Lock()+ if q := s.fc.resetPendingData(); q > 0 {+ if w := t.fc.onRead(q); w > 0 {+ t.controlBuf.put(&windowUpdate{0, w})+ }+ }+ if s.state == streamDone {+ s.mu.Unlock()+ return+ }+ s.state = streamDone+ s.mu.Unlock()+}++func (t *http2Server) RemoteAddr() net.Addr {+ return t.remoteAddr+}++func (t *http2Server) Drain() {+ t.controlBuf.put(&goAway{})+}diff --git a/vendor/google.golang.org/grpc/transport/http_util.go b/vendor/google.golang.org/grpc/transport/http_util.gonew file mode 100644index 000000000..a3c68d4ca--- /dev/null+++ b/vendor/google.golang.org/grpc/transport/http_util.go@@ -0,0 +1,513 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package transport++import (+ "bufio"+ "bytes"+ "fmt"+ "io"+ "net"+ "strconv"+ "strings"+ "sync/atomic"+ "time"++ "golang.org/x/net/http2"+ "golang.org/x/net/http2/hpack"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/metadata"+)++const (+ // The primary user agent+ primaryUA = "grpc-go/1.0"+ // http2MaxFrameLen specifies the max length of a HTTP2 frame.+ http2MaxFrameLen = 16384 // 16KB frame+ // http://http2.github.io/http2-spec/#SettingValues+ http2InitHeaderTableSize = 4096+ // http2IOBufSize specifies the buffer size for sending frames.+ http2IOBufSize = 32 * 1024+)++var (+ clientPreface = []byte(http2.ClientPreface)+ http2ErrConvTab = map[http2.ErrCode]codes.Code{+ http2.ErrCodeNo: codes.Internal,+ http2.ErrCodeProtocol: codes.Internal,+ http2.ErrCodeInternal: codes.Internal,+ http2.ErrCodeFlowControl: codes.ResourceExhausted,+ http2.ErrCodeSettingsTimeout: codes.Internal,+ http2.ErrCodeStreamClosed: codes.Internal,+ http2.ErrCodeFrameSize: codes.Internal,+ http2.ErrCodeRefusedStream: codes.Unavailable,+ http2.ErrCodeCancel: codes.Canceled,+ http2.ErrCodeCompression: codes.Internal,+ http2.ErrCodeConnect: codes.Internal,+ http2.ErrCodeEnhanceYourCalm: codes.ResourceExhausted,+ http2.ErrCodeInadequateSecurity: codes.PermissionDenied,+ http2.ErrCodeHTTP11Required: codes.FailedPrecondition,+ }+ statusCodeConvTab = map[codes.Code]http2.ErrCode{+ codes.Internal: http2.ErrCodeInternal,+ codes.Canceled: http2.ErrCodeCancel,+ codes.Unavailable: http2.ErrCodeRefusedStream,+ codes.ResourceExhausted: http2.ErrCodeEnhanceYourCalm,+ codes.PermissionDenied: http2.ErrCodeInadequateSecurity,+ }+)++// Records the states during HPACK decoding. Must be reset once the+// decoding of the entire headers are finished.+type decodeState struct {+ err error // first error encountered decoding++ encoding string+ // statusCode caches the stream status received from the trailer+ // the server sent. Client side only.+ statusCode codes.Code+ statusDesc string+ // Server side only fields.+ timeoutSet bool+ timeout time.Duration+ method string+ // key-value metadata map from the peer.+ mdata map[string][]string+}++// isReservedHeader checks whether hdr belongs to HTTP2 headers+// reserved by gRPC protocol. Any other headers are classified as the+// user-specified metadata.+func isReservedHeader(hdr string) bool {+ if hdr != "" && hdr[0] == ':' {+ return true+ }+ switch hdr {+ case "content-type",+ "grpc-message-type",+ "grpc-encoding",+ "grpc-message",+ "grpc-status",+ "grpc-timeout",+ "te":+ return true+ default:+ return false+ }+}++// isWhitelistedPseudoHeader checks whether hdr belongs to HTTP2 pseudoheaders+// that should be propagated into metadata visible to users.+func isWhitelistedPseudoHeader(hdr string) bool {+ switch hdr {+ case ":authority":+ return true+ default:+ return false+ }+}++func (d *decodeState) setErr(err error) {+ if d.err == nil {+ d.err = err+ }+}++func validContentType(t string) bool {+ e := "application/grpc"+ if !strings.HasPrefix(t, e) {+ return false+ }+ // Support variations on the content-type+ // (e.g. "application/grpc+blah", "application/grpc;blah").+ if len(t) > len(e) && t[len(e)] != '+' && t[len(e)] != ';' {+ return false+ }+ return true+}++func (d *decodeState) processHeaderField(f hpack.HeaderField) {+ switch f.Name {+ case "content-type":+ if !validContentType(f.Value) {+ d.setErr(streamErrorf(codes.FailedPrecondition, "transport: received the unexpected content-type %q", f.Value))+ return+ }+ case "grpc-encoding":+ d.encoding = f.Value+ case "grpc-status":+ code, err := strconv.Atoi(f.Value)+ if err != nil {+ d.setErr(streamErrorf(codes.Internal, "transport: malformed grpc-status: %v", err))+ return+ }+ d.statusCode = codes.Code(code)+ case "grpc-message":+ d.statusDesc = decodeGrpcMessage(f.Value)+ case "grpc-timeout":+ d.timeoutSet = true+ var err error+ d.timeout, err = decodeTimeout(f.Value)+ if err != nil {+ d.setErr(streamErrorf(codes.Internal, "transport: malformed time-out: %v", err))+ return+ }+ case ":path":+ d.method = f.Value+ default:+ if !isReservedHeader(f.Name) || isWhitelistedPseudoHeader(f.Name) {+ if f.Name == "user-agent" {+ i := strings.LastIndex(f.Value, " ")+ if i == -1 {+ // There is no application user agent string being set.+ return+ }+ // Extract the application user agent string.+ f.Value = f.Value[:i]+ }+ if d.mdata == nil {+ d.mdata = make(map[string][]string)+ }+ k, v, err := metadata.DecodeKeyValue(f.Name, f.Value)+ if err != nil {+ grpclog.Printf("Failed to decode (%q, %q): %v", f.Name, f.Value, err)+ return+ }+ d.mdata[k] = append(d.mdata[k], v)+ }+ }+}++type timeoutUnit uint8++const (+ hour timeoutUnit = 'H'+ minute timeoutUnit = 'M'+ second timeoutUnit = 'S'+ millisecond timeoutUnit = 'm'+ microsecond timeoutUnit = 'u'+ nanosecond timeoutUnit = 'n'+)++func timeoutUnitToDuration(u timeoutUnit) (d time.Duration, ok bool) {+ switch u {+ case hour:+ return time.Hour, true+ case minute:+ return time.Minute, true+ case second:+ return time.Second, true+ case millisecond:+ return time.Millisecond, true+ case microsecond:+ return time.Microsecond, true+ case nanosecond:+ return time.Nanosecond, true+ default:+ }+ return+}++const maxTimeoutValue int64 = 100000000 - 1++// div does integer division and round-up the result. Note that this is+// equivalent to (d+r-1)/r but has less chance to overflow.+func div(d, r time.Duration) int64 {+ if m := d % r; m > 0 {+ return int64(d/r + 1)+ }+ return int64(d / r)+}++// TODO(zhaoq): It is the simplistic and not bandwidth efficient. Improve it.+func encodeTimeout(t time.Duration) string {+ if t <= 0 {+ return "0n"+ }+ if d := div(t, time.Nanosecond); d <= maxTimeoutValue {+ return strconv.FormatInt(d, 10) + "n"+ }+ if d := div(t, time.Microsecond); d <= maxTimeoutValue {+ return strconv.FormatInt(d, 10) + "u"+ }+ if d := div(t, time.Millisecond); d <= maxTimeoutValue {+ return strconv.FormatInt(d, 10) + "m"+ }+ if d := div(t, time.Second); d <= maxTimeoutValue {+ return strconv.FormatInt(d, 10) + "S"+ }+ if d := div(t, time.Minute); d <= maxTimeoutValue {+ return strconv.FormatInt(d, 10) + "M"+ }+ // Note that maxTimeoutValue * time.Hour > MaxInt64.+ return strconv.FormatInt(div(t, time.Hour), 10) + "H"+}++func decodeTimeout(s string) (time.Duration, error) {+ size := len(s)+ if size < 2 {+ return 0, fmt.Errorf("transport: timeout string is too short: %q", s)+ }+ unit := timeoutUnit(s[size-1])+ d, ok := timeoutUnitToDuration(unit)+ if !ok {+ return 0, fmt.Errorf("transport: timeout unit is not recognized: %q", s)+ }+ t, err := strconv.ParseInt(s[:size-1], 10, 64)+ if err != nil {+ return 0, err+ }+ return d * time.Duration(t), nil+}++const (+ spaceByte = ' '+ tildaByte = '~'+ percentByte = '%'+)++// encodeGrpcMessage is used to encode status code in header field+// "grpc-message".+// It checks to see if each individual byte in msg is an+// allowable byte, and then either percent encoding or passing it through.+// When percent encoding, the byte is converted into hexadecimal notation+// with a '%' prepended.+func encodeGrpcMessage(msg string) string {+ if msg == "" {+ return ""+ }+ lenMsg := len(msg)+ for i := 0; i < lenMsg; i++ {+ c := msg[i]+ if !(c >= spaceByte && c < tildaByte && c != percentByte) {+ return encodeGrpcMessageUnchecked(msg)+ }+ }+ return msg+}++func encodeGrpcMessageUnchecked(msg string) string {+ var buf bytes.Buffer+ lenMsg := len(msg)+ for i := 0; i < lenMsg; i++ {+ c := msg[i]+ if c >= spaceByte && c < tildaByte && c != percentByte {+ buf.WriteByte(c)+ } else {+ buf.WriteString(fmt.Sprintf("%%%02X", c))+ }+ }+ return buf.String()+}++// decodeGrpcMessage decodes the msg encoded by encodeGrpcMessage.+func decodeGrpcMessage(msg string) string {+ if msg == "" {+ return ""+ }+ lenMsg := len(msg)+ for i := 0; i < lenMsg; i++ {+ if msg[i] == percentByte && i+2 < lenMsg {+ return decodeGrpcMessageUnchecked(msg)+ }+ }+ return msg+}++func decodeGrpcMessageUnchecked(msg string) string {+ var buf bytes.Buffer+ lenMsg := len(msg)+ for i := 0; i < lenMsg; i++ {+ c := msg[i]+ if c == percentByte && i+2 < lenMsg {+ parsed, err := strconv.ParseUint(msg[i+1:i+3], 16, 8)+ if err != nil {+ buf.WriteByte(c)+ } else {+ buf.WriteByte(byte(parsed))+ i += 2+ }+ } else {+ buf.WriteByte(c)+ }+ }+ return buf.String()+}++type framer struct {+ numWriters int32+ reader io.Reader+ writer *bufio.Writer+ fr *http2.Framer+}++func newFramer(conn net.Conn) *framer {+ f := &framer{+ reader: bufio.NewReaderSize(conn, http2IOBufSize),+ writer: bufio.NewWriterSize(conn, http2IOBufSize),+ }+ f.fr = http2.NewFramer(f.writer, f.reader)+ f.fr.ReadMetaHeaders = hpack.NewDecoder(http2InitHeaderTableSize, nil)+ return f+}++func (f *framer) adjustNumWriters(i int32) int32 {+ return atomic.AddInt32(&f.numWriters, i)+}++// The following writeXXX functions can only be called when the caller gets+// unblocked from writableChan channel (i.e., owns the privilege to write).++func (f *framer) writeContinuation(forceFlush bool, streamID uint32, endHeaders bool, headerBlockFragment []byte) error {+ if err := f.fr.WriteContinuation(streamID, endHeaders, headerBlockFragment); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writeData(forceFlush bool, streamID uint32, endStream bool, data []byte) error {+ if err := f.fr.WriteData(streamID, endStream, data); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writeGoAway(forceFlush bool, maxStreamID uint32, code http2.ErrCode, debugData []byte) error {+ if err := f.fr.WriteGoAway(maxStreamID, code, debugData); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writeHeaders(forceFlush bool, p http2.HeadersFrameParam) error {+ if err := f.fr.WriteHeaders(p); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writePing(forceFlush, ack bool, data [8]byte) error {+ if err := f.fr.WritePing(ack, data); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writePriority(forceFlush bool, streamID uint32, p http2.PriorityParam) error {+ if err := f.fr.WritePriority(streamID, p); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writePushPromise(forceFlush bool, p http2.PushPromiseParam) error {+ if err := f.fr.WritePushPromise(p); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writeRSTStream(forceFlush bool, streamID uint32, code http2.ErrCode) error {+ if err := f.fr.WriteRSTStream(streamID, code); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writeSettings(forceFlush bool, settings ...http2.Setting) error {+ if err := f.fr.WriteSettings(settings...); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writeSettingsAck(forceFlush bool) error {+ if err := f.fr.WriteSettingsAck(); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) writeWindowUpdate(forceFlush bool, streamID, incr uint32) error {+ if err := f.fr.WriteWindowUpdate(streamID, incr); err != nil {+ return err+ }+ if forceFlush {+ return f.writer.Flush()+ }+ return nil+}++func (f *framer) flushWrite() error {+ return f.writer.Flush()+}++func (f *framer) readFrame() (http2.Frame, error) {+ return f.fr.ReadFrame()+}++func (f *framer) errorDetail() error {+ return f.fr.ErrorDetail()+}diff --git a/vendor/google.golang.org/grpc/transport/pre_go16.go b/vendor/google.golang.org/grpc/transport/pre_go16.gonew file mode 100644index 000000000..33d91c17c--- /dev/null+++ b/vendor/google.golang.org/grpc/transport/pre_go16.go@@ -0,0 +1,51 @@+// +build !go1.6++/*+ * Copyright 2016, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++package transport++import (+ "net"+ "time"++ "golang.org/x/net/context"+)++// dialContext connects to the address on the named network.+func dialContext(ctx context.Context, network, address string) (net.Conn, error) {+ var dialer net.Dialer+ if deadline, ok := ctx.Deadline(); ok {+ dialer.Timeout = deadline.Sub(time.Now())+ }+ return dialer.Dial(network, address)+}diff --git a/vendor/google.golang.org/grpc/transport/transport.go b/vendor/google.golang.org/grpc/transport/transport.gonew file mode 100644index 000000000..06c53bd83--- /dev/null+++ b/vendor/google.golang.org/grpc/transport/transport.go@@ -0,0 +1,604 @@+/*+ *+ * Copyright 2014, Google Inc.+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions are+ * met:+ *+ * * Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above+ * copyright notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of Google Inc. nor the names of its+ * contributors may be used to endorse or promote products derived from+ * this software without specific prior written permission.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ *+ */++/*+Package transport defines and implements message oriented communication channel+to complete various transactions (e.g., an RPC).+*/+package transport++import (+ "bytes"+ "fmt"+ "io"+ "net"+ "sync"++ "golang.org/x/net/context"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/credentials"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/tap"+)++// recvMsg represents the received msg from the transport. All transport+// protocol specific info has been removed.+type recvMsg struct {+ data []byte+ // nil: received some data+ // io.EOF: stream is completed. data is nil.+ // other non-nil error: transport failure. data is nil.+ err error+}++func (*recvMsg) item() {}++// All items in an out of a recvBuffer should be the same type.+type item interface {+ item()+}++// recvBuffer is an unbounded channel of item.+type recvBuffer struct {+ c chan item+ mu sync.Mutex+ backlog []item+}++func newRecvBuffer() *recvBuffer {+ b := &recvBuffer{+ c: make(chan item, 1),+ }+ return b+}++func (b *recvBuffer) put(r item) {+ b.mu.Lock()+ defer b.mu.Unlock()+ if len(b.backlog) == 0 {+ select {+ case b.c <- r:+ return+ default:+ }+ }+ b.backlog = append(b.backlog, r)+}++func (b *recvBuffer) load() {+ b.mu.Lock()+ defer b.mu.Unlock()+ if len(b.backlog) > 0 {+ select {+ case b.c <- b.backlog[0]:+ b.backlog = b.backlog[1:]+ default:+ }+ }+}++// get returns the channel that receives an item in the buffer.+//+// Upon receipt of an item, the caller should call load to send another+// item onto the channel if there is any.+func (b *recvBuffer) get() <-chan item {+ return b.c+}++// recvBufferReader implements io.Reader interface to read the data from+// recvBuffer.+type recvBufferReader struct {+ ctx context.Context+ goAway chan struct{}+ recv *recvBuffer+ last *bytes.Reader // Stores the remaining data in the previous calls.+ err error+}++// Read reads the next len(p) bytes from last. If last is drained, it tries to+// read additional data from recv. It blocks if there no additional data available+// in recv. If Read returns any non-nil error, it will continue to return that error.+func (r *recvBufferReader) Read(p []byte) (n int, err error) {+ if r.err != nil {+ return 0, r.err+ }+ defer func() { r.err = err }()+ if r.last != nil && r.last.Len() > 0 {+ // Read remaining data left in last call.+ return r.last.Read(p)+ }+ select {+ case <-r.ctx.Done():+ return 0, ContextErr(r.ctx.Err())+ case <-r.goAway:+ return 0, ErrStreamDrain+ case i := <-r.recv.get():+ r.recv.load()+ m := i.(*recvMsg)+ if m.err != nil {+ return 0, m.err+ }+ r.last = bytes.NewReader(m.data)+ return r.last.Read(p)+ }+}++type streamState uint8++const (+ streamActive streamState = iota+ streamWriteDone // EndStream sent+ streamReadDone // EndStream received+ streamDone // the entire stream is finished.+)++// Stream represents an RPC in the transport layer.+type Stream struct {+ id uint32+ // nil for client side Stream.+ st ServerTransport+ // clientStatsCtx keeps the user context for stats handling.+ // It's only valid on client side. Server side stats context is same as s.ctx.+ // All client side stats collection should use the clientStatsCtx (instead of the stream context)+ // so that all the generated stats for a particular RPC can be associated in the processing phase.+ clientStatsCtx context.Context+ // ctx is the associated context of the stream.+ ctx context.Context+ // cancel is always nil for client side Stream.+ cancel context.CancelFunc+ // done is closed when the final status arrives.+ done chan struct{}+ // goAway is closed when the server sent GoAways signal before this stream was initiated.+ goAway chan struct{}+ // method records the associated RPC method of the stream.+ method string+ recvCompress string+ sendCompress string+ buf *recvBuffer+ dec io.Reader+ fc *inFlow+ recvQuota uint32+ // The accumulated inbound quota pending for window update.+ updateQuota uint32+ // The handler to control the window update procedure for both this+ // particular stream and the associated transport.+ windowHandler func(int)++ sendQuotaPool *quotaPool+ // Close headerChan to indicate the end of reception of header metadata.+ headerChan chan struct{}+ // header caches the received header metadata.+ header metadata.MD+ // The key-value map of trailer metadata.+ trailer metadata.MD++ mu sync.RWMutex // guard the following+ // headerOK becomes true from the first header is about to send.+ headerOk bool+ state streamState+ // true iff headerChan is closed. Used to avoid closing headerChan+ // multiple times.+ headerDone bool+ // the status received from the server.+ statusCode codes.Code+ statusDesc string+}++// RecvCompress returns the compression algorithm applied to the inbound+// message. It is empty string if there is no compression applied.+func (s *Stream) RecvCompress() string {+ return s.recvCompress+}++// SetSendCompress sets the compression algorithm to the stream.+func (s *Stream) SetSendCompress(str string) {+ s.sendCompress = str+}++// Done returns a chanel which is closed when it receives the final status+// from the server.+func (s *Stream) Done() <-chan struct{} {+ return s.done+}++// GoAway returns a channel which is closed when the server sent GoAways signal+// before this stream was initiated.+func (s *Stream) GoAway() <-chan struct{} {+ return s.goAway+}++// Header acquires the key-value pairs of header metadata once it+// is available. It blocks until i) the metadata is ready or ii) there is no+// header metadata or iii) the stream is cancelled/expired.+func (s *Stream) Header() (metadata.MD, error) {+ select {+ case <-s.ctx.Done():+ return nil, ContextErr(s.ctx.Err())+ case <-s.goAway:+ return nil, ErrStreamDrain+ case <-s.headerChan:+ return s.header.Copy(), nil+ }+}++// Trailer returns the cached trailer metedata. Note that if it is not called+// after the entire stream is done, it could return an empty MD. Client+// side only.+func (s *Stream) Trailer() metadata.MD {+ s.mu.RLock()+ defer s.mu.RUnlock()+ return s.trailer.Copy()+}++// ServerTransport returns the underlying ServerTransport for the stream.+// The client side stream always returns nil.+func (s *Stream) ServerTransport() ServerTransport {+ return s.st+}++// Context returns the context of the stream.+func (s *Stream) Context() context.Context {+ return s.ctx+}++// Method returns the method for the stream.+func (s *Stream) Method() string {+ return s.method+}++// StatusCode returns statusCode received from the server.+func (s *Stream) StatusCode() codes.Code {+ return s.statusCode+}++// StatusDesc returns statusDesc received from the server.+func (s *Stream) StatusDesc() string {+ return s.statusDesc+}++// SetHeader sets the header metadata. This can be called multiple times.+// Server side only.+func (s *Stream) SetHeader(md metadata.MD) error {+ s.mu.Lock()+ defer s.mu.Unlock()+ if s.headerOk || s.state == streamDone {+ return ErrIllegalHeaderWrite+ }+ if md.Len() == 0 {+ return nil+ }+ s.header = metadata.Join(s.header, md)+ return nil+}++// SetTrailer sets the trailer metadata which will be sent with the RPC status+// by the server. This can be called multiple times. Server side only.+func (s *Stream) SetTrailer(md metadata.MD) error {+ if md.Len() == 0 {+ return nil+ }+ s.mu.Lock()+ defer s.mu.Unlock()+ s.trailer = metadata.Join(s.trailer, md)+ return nil+}++func (s *Stream) write(m recvMsg) {+ s.buf.put(&m)+}++// Read reads all the data available for this Stream from the transport and+// passes them into the decoder, which converts them into a gRPC message stream.+// The error is io.EOF when the stream is done or another non-nil error if+// the stream broke.+func (s *Stream) Read(p []byte) (n int, err error) {+ n, err = s.dec.Read(p)+ if err != nil {+ return+ }+ s.windowHandler(n)+ return+}++// The key to save transport.Stream in the context.+type streamKey struct{}++// newContextWithStream creates a new context from ctx and attaches stream+// to it.+func newContextWithStream(ctx context.Context, stream *Stream) context.Context {+ return context.WithValue(ctx, streamKey{}, stream)+}++// StreamFromContext returns the stream saved in ctx.+func StreamFromContext(ctx context.Context) (s *Stream, ok bool) {+ s, ok = ctx.Value(streamKey{}).(*Stream)+ return+}++// state of transport+type transportState int++const (+ reachable transportState = iota+ unreachable+ closing+ draining+)++// ServerConfig consists of all the configurations to establish a server transport.+type ServerConfig struct {+ MaxStreams uint32+ AuthInfo credentials.AuthInfo+ InTapHandle tap.ServerInHandle+}++// NewServerTransport creates a ServerTransport with conn or non-nil error+// if it fails.+func NewServerTransport(protocol string, conn net.Conn, config *ServerConfig) (ServerTransport, error) {+ return newHTTP2Server(conn, config)+}++// ConnectOptions covers all relevant options for communicating with the server.+type ConnectOptions struct {+ // UserAgent is the application user agent.+ UserAgent string+ // Dialer specifies how to dial a network address.+ Dialer func(context.Context, string) (net.Conn, error)+ // FailOnNonTempDialError specifies if gRPC fails on non-temporary dial errors.+ FailOnNonTempDialError bool+ // PerRPCCredentials stores the PerRPCCredentials required to issue RPCs.+ PerRPCCredentials []credentials.PerRPCCredentials+ // TransportCredentials stores the Authenticator required to setup a client connection.+ TransportCredentials credentials.TransportCredentials+}++// TargetInfo contains the information of the target such as network address and metadata.+type TargetInfo struct {+ Addr string+ Metadata interface{}+}++// NewClientTransport establishes the transport with the required ConnectOptions+// and returns it to the caller.+func NewClientTransport(ctx context.Context, target TargetInfo, opts ConnectOptions) (ClientTransport, error) {+ return newHTTP2Client(ctx, target, opts)+}++// Options provides additional hints and information for message+// transmission.+type Options struct {+ // Last indicates whether this write is the last piece for+ // this stream.+ Last bool++ // Delay is a hint to the transport implementation for whether+ // the data could be buffered for a batching write. The+ // Transport implementation may ignore the hint.+ Delay bool+}++// CallHdr carries the information of a particular RPC.+type CallHdr struct {+ // Host specifies the peer's host.+ Host string++ // Method specifies the operation to perform.+ Method string++ // RecvCompress specifies the compression algorithm applied on+ // inbound messages.+ RecvCompress string++ // SendCompress specifies the compression algorithm applied on+ // outbound message.+ SendCompress string++ // Flush indicates whether a new stream command should be sent+ // to the peer without waiting for the first data. This is+ // only a hint. The transport may modify the flush decision+ // for performance purposes.+ Flush bool+}++// ClientTransport is the common interface for all gRPC client-side transport+// implementations.+type ClientTransport interface {+ // Close tears down this transport. Once it returns, the transport+ // should not be accessed any more. The caller must make sure this+ // is called only once.+ Close() error++ // GracefulClose starts to tear down the transport. It stops accepting+ // new RPCs and wait the completion of the pending RPCs.+ GracefulClose() error++ // Write sends the data for the given stream. A nil stream indicates+ // the write is to be performed on the transport as a whole.+ Write(s *Stream, data []byte, opts *Options) error++ // NewStream creates a Stream for an RPC.+ NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, error)++ // CloseStream clears the footprint of a stream when the stream is+ // not needed any more. The err indicates the error incurred when+ // CloseStream is called. Must be called when a stream is finished+ // unless the associated transport is closing.+ CloseStream(stream *Stream, err error)++ // Error returns a channel that is closed when some I/O error+ // happens. Typically the caller should have a goroutine to monitor+ // this in order to take action (e.g., close the current transport+ // and create a new one) in error case. It should not return nil+ // once the transport is initiated.+ Error() <-chan struct{}++ // GoAway returns a channel that is closed when ClientTranspor+ // receives the draining signal from the server (e.g., GOAWAY frame in+ // HTTP/2).+ GoAway() <-chan struct{}+}++// ServerTransport is the common interface for all gRPC server-side transport+// implementations.+//+// Methods may be called concurrently from multiple goroutines, but+// Write methods for a given Stream will be called serially.+type ServerTransport interface {+ // HandleStreams receives incoming streams using the given handler.+ HandleStreams(func(*Stream), func(context.Context, string) context.Context)++ // WriteHeader sends the header metadata for the given stream.+ // WriteHeader may not be called on all streams.+ WriteHeader(s *Stream, md metadata.MD) error++ // Write sends the data for the given stream.+ // Write may not be called on all streams.+ Write(s *Stream, data []byte, opts *Options) error++ // WriteStatus sends the status of a stream to the client.+ // WriteStatus is the final call made on a stream and always+ // occurs.+ WriteStatus(s *Stream, statusCode codes.Code, statusDesc string) error++ // Close tears down the transport. Once it is called, the transport+ // should not be accessed any more. All the pending streams and their+ // handlers will be terminated asynchronously.+ Close() error++ // RemoteAddr returns the remote network address.+ RemoteAddr() net.Addr++ // Drain notifies the client this ServerTransport stops accepting new RPCs.+ Drain()+}++// streamErrorf creates an StreamError with the specified error code and description.+func streamErrorf(c codes.Code, format string, a ...interface{}) StreamError {+ return StreamError{+ Code: c,+ Desc: fmt.Sprintf(format, a...),+ }+}++// connectionErrorf creates an ConnectionError with the specified error description.+func connectionErrorf(temp bool, e error, format string, a ...interface{}) ConnectionError {+ return ConnectionError{+ Desc: fmt.Sprintf(format, a...),+ temp: temp,+ err: e,+ }+}++// ConnectionError is an error that results in the termination of the+// entire connection and the retry of all the active streams.+type ConnectionError struct {+ Desc string+ temp bool+ err error+}++func (e ConnectionError) Error() string {+ return fmt.Sprintf("connection error: desc = %q", e.Desc)+}++// Temporary indicates if this connection error is temporary or fatal.+func (e ConnectionError) Temporary() bool {+ return e.temp+}++// Origin returns the original error of this connection error.+func (e ConnectionError) Origin() error {+ // Never return nil error here.+ // If the original error is nil, return itself.+ if e.err == nil {+ return e+ }+ return e.err+}++var (+ // ErrConnClosing indicates that the transport is closing.+ ErrConnClosing = connectionErrorf(true, nil, "transport is closing")+ // ErrStreamDrain indicates that the stream is rejected by the server because+ // the server stops accepting new RPCs.+ ErrStreamDrain = streamErrorf(codes.Unavailable, "the server stops accepting new RPCs")+)++// StreamError is an error that only affects one stream within a connection.+type StreamError struct {+ Code codes.Code+ Desc string+}++func (e StreamError) Error() string {+ return fmt.Sprintf("stream error: code = %d desc = %q", e.Code, e.Desc)+}++// ContextErr converts the error from context package into a StreamError.+func ContextErr(err error) StreamError {+ switch err {+ case context.DeadlineExceeded:+ return streamErrorf(codes.DeadlineExceeded, "%v", err)+ case context.Canceled:+ return streamErrorf(codes.Canceled, "%v", err)+ }+ panic(fmt.Sprintf("Unexpected error from context packet: %v", err))+}++// wait blocks until it can receive from ctx.Done, closing, or proceed.+// If it receives from ctx.Done, it returns 0, the StreamError for ctx.Err.+// If it receives from done, it returns 0, io.EOF if ctx is not done; otherwise+// it return the StreamError for ctx.Err.+// If it receives from goAway, it returns 0, ErrStreamDrain.+// If it receives from closing, it returns 0, ErrConnClosing.+// If it receives from proceed, it returns the received integer, nil.+func wait(ctx context.Context, done, goAway, closing <-chan struct{}, proceed <-chan int) (int, error) {+ select {+ case <-ctx.Done():+ return 0, ContextErr(ctx.Err())+ case <-done:+ // User cancellation has precedence.+ select {+ case <-ctx.Done():+ return 0, ContextErr(ctx.Err())+ default:+ }+ return 0, io.EOF+ case <-goAway:+ return 0, ErrStreamDrain+ case <-closing:+ return 0, ErrConnClosing+ case i := <-proceed:+ return i, nil+ }+}